/* CBS RHONE ALPES - styles.css propre
   Remplace le fichier styles.css actuel après sauvegarde.
*/

:root{
  --red:#bd0009;--red-dark:#880006;--ink:#151515;--muted:#626a73;
  --line:#e9e9e9;--paper:#fff;--soft:#f7f7f7;
  --shadow:0 24px 70px rgba(0,0,0,.12);--radius:24px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);background:var(--paper);line-height:1.6}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.container{width:min(1160px,calc(100% - 40px));margin-inline:auto}
.skip{position:absolute;left:-999px;top:12px;background:#fff;color:#000;padding:10px 16px;border-radius:8px;z-index:2000}
.skip:focus{left:12px}

/* Header */
.topbar{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-bottom:1px solid rgba(0,0,0,.08);overflow:visible}
.nav{min-height:104px;display:flex;align-items:center;justify-content:space-between;gap:22px;overflow:visible}
.brand{display:inline-flex;align-items:center;justify-content:center;background:#fff;padding:12px 30px;border-radius:22px;border:1px solid rgba(200,0,0,.12);box-shadow:0 18px 45px rgba(160,0,0,.13),0 5px 14px rgba(0,0,0,.06);line-height:0;overflow:visible}
.brand img{width:auto;height:auto;max-width:360px;max-height:62px;object-fit:contain}
.menu{display:flex;align-items:center;gap:22px;font-weight:800;font-size:15px}
.menu a{color:#222}.menu a:hover{color:var(--red)}
.menu-cta{background:var(--red);color:#fff!important;padding:12px 20px;border-radius:999px}
.menu-toggle{display:none;border:0;background:#f0f0f0;border-radius:12px;padding:10px 13px;font-size:20px;cursor:pointer}
#accueil,#metiers,#references,#methode,#avis,#contact,.section{scroll-margin-top:130px}

/* Hero */
.hero{background:linear-gradient(135deg,#fff 0%,#fff 44%,#f4f4f4 44%,#fff 100%);padding:78px 0 46px}
.hero-layout{display:grid;grid-template-columns:1.02fr .98fr;gap:46px;align-items:center}
.eyebrow{margin:0 0 12px;color:var(--red);font-size:13px;text-transform:uppercase;letter-spacing:.13em;font-weight:900}
.hero h1,.section h2{font-size:clamp(34px,5vw,62px);line-height:1.03;letter-spacing:-.045em;margin:0}
.lead{font-size:clamp(17px,2vw,20px);color:var(--muted);max-width:640px;margin:22px 0 0}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px}
.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:14px 20px;font-weight:900;border:1px solid transparent;transition:.2s ease;cursor:pointer}
.btn.primary{background:var(--red);color:#fff;box-shadow:0 14px 34px rgba(189,0,9,.23)}
.btn.primary:hover{background:var(--red-dark);transform:translateY(-1px)}
.btn.secondary,.btn.ghost{background:#fff;color:#111;border-color:#ddd}
.btn.secondary:hover,.btn.ghost:hover{border-color:var(--red);color:var(--red)}
.btn.light{background:#fff;color:var(--red)}
.quick-facts{display:flex;gap:10px;flex-wrap:wrap;margin-top:26px}
.quick-facts span,.quick-facts a{display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--line);padding:10px 14px;border-radius:999px;font-size:13px;font-weight:800;box-shadow:0 8px 24px rgba(0,0,0,.06)}
.quick-facts a:hover{background:var(--red);color:#fff;border-color:var(--red)}
.hero-visual{position:relative}
.hero-visual img{width:100%;height:580px;object-fit:cover;border-radius:32px;box-shadow:var(--shadow)}
.floating-card{position:absolute;left:22px;right:22px;bottom:22px;background:rgba(255,255,255,.93);backdrop-filter:blur(10px);border-radius:22px;padding:18px 20px;box-shadow:0 12px 40px rgba(0,0,0,.13)}
.floating-card strong{display:block;font-size:18px}.floating-card span{color:var(--muted);font-size:14px}

/* Bande logo et ligne contact */
logo-strip{
  padding:24px 0;
  background:#fff;
  border-top:1px solid rgba(200,0,0,.10);
  border-bottom:1px solid rgba(200,0,0,.10)
}
.logo-strip img{
  margin-inline:auto;
  width:92%;
  max-width:620px;
  max-height:115px;
  height:auto;
  object-fit:contain;
  padding:10px 24px;
  background:#fff;
  border-radius:22px;
  border:1px solid rgba(200,0,0,.14);
  box-shadow:0 18px 42px rgba(160,0,0,.14),0 6px 18px rgba(0,0,0,.07)
}
.contact-line{background:#151515;color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}
.contact-line-inner{display:flex;gap:14px;align-items:center;justify-content:center;flex-wrap:wrap;padding:13px 0}
.contact-line a{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:10px 14px;font-weight:800}
.contact-line strong{color:#ff4b55;margin-right:6px}

/* Sections */
.section{padding:88px 0}
.intro{background:#fff}
.intro-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:50px;align-items:start}
.intro-grid p:last-child{font-size:18px;color:var(--muted);margin:0}
.section-head{max-width:760px;margin-bottom:34px}
.section-head h2{font-size:clamp(30px,4vw,48px)}
.section-head p:not(.eyebrow),.split>p{color:var(--muted);margin:0}
.split{max-width:none;display:grid;grid-template-columns:1fr .85fr;gap:44px;align-items:end}
.services{background:var(--soft)}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px;box-shadow:0 10px 30px rgba(0,0,0,.04)}
.card span{display:inline-flex;width:42px;height:42px;border-radius:50%;align-items:center;justify-content:center;background:#fff1f1;color:var(--red);font-weight:900;margin-bottom:22px}
.card h3{margin:0 0 10px;font-size:20px}.card p{margin:0;color:var(--muted)}

/* Références */
.references{background:#fff}
.gallery{display:grid;grid-template-columns:repeat(12,1fr);gap:18px}
.gallery figure{margin:0;position:relative;overflow:hidden;border-radius:26px;background:#eee;min-height:320px;box-shadow:0 10px 35px rgba(0,0,0,.08)}
.gallery figure:nth-child(1),.gallery figure:nth-child(2){grid-column:span 6;min-height:430px}
.gallery figure:nth-child(n+3){grid-column:span 4}
.gallery img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.gallery figure:hover img{transform:scale(1.035)}
.gallery figcaption{position:absolute;left:14px;right:14px;bottom:14px;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);padding:12px 14px;border-radius:16px;font-size:14px;font-weight:800}

/* Carrousel références si utilisé */
.gallery-slider{position:relative;display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center}
.gallery-track{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:6px 2px 10px;-ms-overflow-style:none;scrollbar-width:none}
.gallery-track::-webkit-scrollbar{display:none}
.gallery-slide{flex:0 0 calc(33.333% - 12px);margin:0;position:relative;overflow:hidden;border-radius:26px;background:#eee;min-height:360px;scroll-snap-align:start;box-shadow:0 10px 35px rgba(0,0,0,.08)}
.gallery-slide img{width:100%;height:100%;object-fit:cover}
.gallery-slide figcaption{position:absolute;left:14px;right:14px;bottom:14px;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);padding:12px 14px;border-radius:16px;font-size:14px;font-weight:800}
.slider-btn{width:54px;height:54px;border:0;border-radius:50%;background:var(--red);color:#fff;font-size:34px;line-height:1;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 14px 30px rgba(189,0,9,.24)}
.slider-btn:hover{background:var(--red-dark);transform:translateY(-1px)}
.slider-dots{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:22px}
.slider-dots button{width:12px;height:12px;border-radius:50%;border:0;background:#d9d9d9;cursor:pointer;padding:0}
.slider-dots button.active{background:var(--red);transform:scale(1.15)}

/* Méthode */
.method{background:#151515;color:#fff}
.method .eyebrow{color:#ff4b55}
.method-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:42px;align-items:start}
.sticky-copy{position:sticky;top:130px;margin-bottom:0}
.sticky-copy p:not(.eyebrow){color:#c9c9c9}
.steps{display:grid;gap:16px}
.steps article{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.10);border-radius:24px;padding:24px}
.steps strong{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:var(--red);margin-bottom:12px}
.steps h3{margin:0 0 8px}.steps p{margin:0;color:#cfcfcf}

/* CTA */
.cta{background:linear-gradient(135deg,var(--red),#640005);color:#fff}
.cta-box{display:flex;justify-content:space-between;align-items:center;gap:30px}
.cta h2{font-size:clamp(28px,4vw,46px)}
.cta p{margin:12px 0 0;color:#ffe1e1}
.cta .eyebrow{color:#fff}
.cta-email{display:inline-flex;align-items:center;justify-content:center;min-width:210px;padding:18px 28px;border-radius:999px;background:#fff;color:#b80000;font-weight:900;text-align:center;white-space:nowrap;box-shadow:0 18px 40px rgba(0,0,0,.12)}

/* Contact */
.contact{background:#fff}
.contact-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:50px}
.contact-card{background:var(--soft);border:1px solid var(--line);border-radius:24px;padding:28px;margin-top:22px}
.contact-card p{margin:0 0 18px}.contact-card p:last-child{margin-bottom:0}
.contact-card a{color:var(--red);font-weight:800}
.contact-form{display:grid;grid-template-columns:1fr 1fr;gap:18px;background:#fff;color:#111;padding:32px;border-radius:28px;box-shadow:0 20px 60px rgba(120,0,10,.12)}
.contact-form .form-group{display:flex;flex-direction:column;gap:8px}
.contact-form label{font-weight:800;color:#151515}
.contact-form input,.contact-form select,.contact-form textarea{width:100%;padding:14px 16px;border:1px solid #ddd;border-radius:14px;font-size:16px;font-family:inherit;background:#fff;color:#111}
.contact-form textarea{resize:vertical;min-height:160px}
.contact-form input::placeholder,.contact-form textarea::placeholder{color:#777;opacity:1}
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{outline:none;border-color:#c40000;box-shadow:0 0 0 3px rgba(196,0,0,.12)}
.contact-form input:-webkit-autofill,.contact-form textarea:-webkit-autofill,.contact-form select:-webkit-autofill{-webkit-text-fill-color:#111;box-shadow:0 0 0 1000px #fff inset;transition:background-color 5000s ease-in-out 0s}
.form-full,.contact-form .form-full{grid-column:1 / -1}
.contact-form .btn{border:none;cursor:pointer}
.form-rgpd{margin-top:8px;max-width:760px;font-size:13px;line-height:1.55;color:#6b7280}
.form-rgpd a{color:#c40000;font-weight:800}.form-rgpd a:hover{text-decoration:underline}
.form-note{margin:0;color:#777;font-size:13px}

/* Avis clients */
.reviews-section{padding:90px 0;background:#fff}
.reviews-section .section-head{max-width:820px;margin-bottom:42px}
.reviews-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:34px}
.review-card{background:#fff;border:1px solid rgba(196,0,0,.14);border-radius:28px;padding:30px;box-shadow:0 22px 60px rgba(15,23,42,.10)}
.review-stars{color:#c40000;font-size:22px;letter-spacing:3px;margin-bottom:18px}
.review-text{color:#111;font-size:17px;line-height:1.7;margin-bottom:22px}
.review-author{color:#111;font-weight:800;margin-bottom:6px}
.review-card small{display:block;color:#6b7280;font-size:13px;line-height:1.5}
.reviews-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:36px}
.reviews-note{margin-top:20px;color:#6b7280;font-size:13px;line-height:1.6}

/* Pages légales */
.legal-page{padding:90px 0;background:#f8fafc}
.legal-container{max-width:920px;background:#fff;padding:48px;border-radius:28px;box-shadow:0 24px 70px rgba(15,23,42,.08)}
.legal-kicker{color:var(--red);font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.legal-page h1{font-size:clamp(34px,5vw,56px);margin:0 0 34px}
.legal-page h2{font-size:24px;margin-top:34px;margin-bottom:14px}
.legal-page p,.legal-page li{color:#4b5563;line-height:1.75;font-size:16px}
.legal-page a{color:var(--red);font-weight:800}
.legal-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:38px}

/* Footer */
.footer{background:#f6f6f6;border-top:1px solid var(--line);padding:42px 0;color:#333}
.footer-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:36px;align-items:start}
.footer-brand{text-align:center}
.footer-logo-wrap{display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.footer-logo{display:block;width:auto;height:auto;max-width:280px;max-height:58px;object-fit:contain}
.footer p{margin:8px 0 0;line-height:1.7;color:#333}
.footer strong{color:#222;font-weight:800}
.footer a{color:#c40000;font-weight:800}.footer a:hover{text-decoration:underline}

/* Responsive */
@media (max-width:980px){
  .gallery-slide{flex:0 0 calc(50% - 9px)}
  .gallery-slider{grid-template-columns:auto 1fr auto}
}
@media (max-width:900px){
  .nav{min-height:90px}.brand{padding:9px 18px;border-radius:18px}.brand img{max-width:250px;max-height:48px}
  .menu-toggle{display:block}
  .menu{position:absolute;top:90px;left:20px;right:20px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:18px;display:none;flex-direction:column;align-items:stretch}
  .menu.open{display:flex}.menu a{padding:8px 0}
  .hero{padding-top:42px}
  .hero-layout,.intro-grid,.split,.method-grid,.contact-grid,.cta-box,.footer-grid{grid-template-columns:1fr;display:grid}
  .hero-visual img{height:420px}
  .cards{grid-template-columns:1fr 1fr}
  .gallery figure:nth-child(n){grid-column:span 12;min-height:360px}
  .sticky-copy{position:static}.cta-box{align-items:start}
  .logo-strip img{max-height:70px;padding:12px 20px}
  .reviews-grid{grid-template-columns:1fr}
  .footer-grid{text-align:center;gap:28px}
  .footer-contact,.footer-legal{text-align:center}
}
@media (max-width:800px){
  .contact-form{grid-template-columns:1fr;padding:24px}
  .contact-form .form-full,.form-full{grid-column:auto}
  .contact-line-inner{align-items:stretch}
  .contact-line a{width:100%;text-align:center}
}
@media (max-width:700px){
  .gallery-slider{grid-template-columns:1fr;gap:12px}
  .slider-btn{display:none}
  .gallery-slide{flex:0 0 100%;min-height:320px}
}
@media (max-width:560px){
  .container{width:min(100% - 26px,1160px)}
  .cards{grid-template-columns:1fr}
  .hero h1{font-size:38px}.hero-visual img{height:380px}
  .section{padding:64px 0}
  .brand img{max-width:210px;max-height:42px}
  .logo-strip img{max-height:62px}
  .legal-container{padding:28px 20px;border-radius:20px}
  .legal-actions{flex-direction:column}
}
.service-link {
  display: inline-flex;
  margin-top: 18px;
  color: #bd0009;
  font-weight: 900;
  text-decoration: none;
}

.service-link:hover {
  text-decoration: underline;
}
.services .container {
  width: min(1160px, calc(100% - 40px)) !important;
  max-width: 1160px !important;
  margin: 0 auto !important;
}

.services .cards {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
}

.services .card {
  min-height: 250px !important;
  padding: 30px !important;
}

.services .card h3 {
  font-size: 21px !important;
  line-height: 1.25 !important;
}

.services .card p {
  font-size: 15px !important;
  line-height: 1.65 !important;
}

.service-link {
  display: inline-flex !important;
  margin-top: 18px !important;
  color: #bd0009 !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.service-link:hover {
  text-decoration: underline !important;
}

@media (max-width: 900px) {
  .services .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .services .cards {
    grid-template-columns: 1fr !important;
  }
}
.section.services {
  width: 100% !important;
  padding: 90px 0 !important;
}

.section.services > .container {
  width: 100% !important;
  max-width: 1160px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.section.services .section-head {
  width: 100% !important;
  max-width: 760px !important;
}

.section.services .cards {
  width: 100% !important;
  max-width: 1160px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(260px, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

.section.services .card {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 260px !important;
  padding: 30px !important;
}

.section.services .card h3 {
  font-size: 21px !important;
  line-height: 1.25 !important;
}

.section.services .card p {
  font-size: 15px !important;
  line-height: 1.65 !important;
}

.section.services .service-link {
  display: inline-flex !important;
  margin-top: 18px !important;
  color: #bd0009 !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.section.services .service-link:hover {
  text-decoration: underline !important;
}

@media (max-width: 980px) {
  .section.services .cards {
    grid-template-columns: repeat(2, minmax(240px, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .section.services .cards {
    grid-template-columns: 1fr !important;
  }
}
.logo-premium,
.logo-card,
.header-logo-box {
  max-width: 620px;
  width: 90%;
  min-height: 105px;
  margin: 30px auto;
  padding: 18px 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(180, 0, 0, 0.18);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(160, 0, 0, 0.12);
}

.logo-premium img,
.logo-card img,
.header-logo-box img {
  width: auto;
  max-width: 460px;
  height: auto;
  max-height: 78px;
  display: block;
  object-fit: contain;
}
@media (max-width: 600px) {
  .logo-premium,
  .logo-card,
  .header-logo-box {
    max-width: 92%;
    min-height: 90px;
    padding: 15px 20px;
  }

  .logo-premium img,
  .logo-card img,
  .header-logo-box img {
    max-width: 330px;
    max-height: 65px;
  }
}