/* ==========================================================================
   MBS DIAG IMMO — Design system
   Charte : vert #2E7D32 dominant, orange #F57C00 accent, fond blanc.
   Aucune dépendance externe (police système + Google Fonts en <link>).
   ========================================================================== */

:root {
  /* Couleurs marque */
  --green: #4CAF50;
  --green-light: #7BC97F;
  --green-dark: #2E7D32;
  --orange: #F57C00;
  --orange-light: #FFB74D;

  --gray-text: #455A64;
  --gray-light: #78909C;
  --gray-dark: #263238;

  --bg: #FFFFFF;
  --bg-soft: #FAFBFC;
  --bg-warm: #F5F7F0;
  --white: #FFFFFF;

  --text: #1A2332;
  --text-muted: #5A6978;
  --border: #E0E4E8;

  /* Plateformes */
  --google: #4285F4;
  --trustpilot: #00B67A;
  --whatsapp: #25D366;

  /* Rayons & ombres */
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, .06);
  --shadow: 0 8px 24px rgba(16, 24, 40, .08);
  --shadow-lg: 0 18px 50px rgba(16, 24, 40, .12);
  --shadow-green: 0 10px 26px rgba(76, 175, 80, .16);

  /* Layout */
  --maxw: 1180px;
  --gut: clamp(16px, 4vw, 28px);
  --topbar-h: 38px;
  --header-h: 72px;

  --font: 'Inter', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Poppins', 'Inter', system-ui, sans-serif;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
/* Taille par défaut des icônes SVG inline (les règles .classe svg plus spécifiques l'emportent) */
svg { width: 1em; height: 1em; vertical-align: middle; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text); line-height: 1.18; font-weight: 700; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: .35rem; }

/* ----- Utils ----- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding: clamp(48px, 8vw, 90px) 0; }
.section--soft { background: var(--bg-soft); }
.section--warm { background: var(--bg-warm); }
.section--green {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
}
.section--green h2, .section--green h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--green);
  background: rgba(76,175,80,.08); padding: 6px 14px; border-radius: 999px;
  margin-bottom: 16px;
}
.section--green .eyebrow { color: #fff; background: rgba(255,255,255,.15); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-inline: auto; }
.muted { color: var(--text-muted); }
.green-text { color: var(--green); }
.orange-text { color: var(--orange); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; }

/* ----- Boutons ----- */
.btn {
  --bg: var(--green); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg); cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap; line-height: 1; text-align: center;
}
.btn:hover { transform: translateY(-2px); color: var(--fg); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--green { --bg: var(--green); box-shadow: var(--shadow-green); }
.btn--green:hover { --bg: var(--green-dark); }
.btn--orange { --bg: var(--orange); box-shadow: 0 12px 30px rgba(245,124,0,.28); }
.btn--orange:hover { --bg: #E06C00; }
.btn--wa { --bg: var(--whatsapp); box-shadow: 0 12px 30px rgba(37,211,102,.28); }
.btn--wa:hover { --bg: #1da851; }
.btn--ghost { --bg: transparent; --fg: var(--green); border-color: var(--border); }
.btn--ghost:hover { --bg: var(--bg-warm); --fg: var(--green-dark); border-color: var(--green-light); }
.btn--white { --bg: #fff; --fg: var(--green-dark); }
.btn--white:hover { --bg: #f3f5f0; }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ----- Badges / chips ----- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .85rem; font-weight: 600; color: var(--gray-dark);
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 14px; box-shadow: var(--shadow-xs);
}
.chip svg { width: 16px; height: 16px; }
.stars { display: inline-flex; gap: 1px; color: #FBBF24; }
.stars svg { width: 16px; height: 16px; }
.stars--green { color: var(--trustpilot); }

/* Badge note (Google / Trustpilot) */
.rating-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r);
  padding: 10px 16px; box-shadow: var(--shadow-sm);
}
.rating-badge .rb-logo { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.rating-badge .rb-score { font-weight: 800; font-size: 1.15rem; color: var(--text); font-family: var(--font-head); }
.rating-badge .rb-sub { font-size: .78rem; color: var(--text-muted); }
.g-blue { color: #4285F4; } .g-red { color: #EA4335; } .g-yellow { color: #FBBC05; } .g-green { color: #34A853; }

/* ==========================================================================
   TOP BAR + HEADER
   ========================================================================== */
.topbar {
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  color: #fff; font-size: .82rem; height: var(--topbar-h);
  display: flex; align-items: center;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .tb-left, .topbar .tb-right { display: flex; align-items: center; gap: 18px; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar svg { width: 14px; height: 14px; }
.topbar .tb-badge { background: var(--orange); padding: 2px 10px; border-radius: 999px; font-weight: 700; }
@media (max-width: 760px) {
  .topbar .tb-right { display: none; }
  .topbar .tb-left .tb-item:last-child { display: none; } /* masque les horaires, garde le téléphone */
  .topbar .container { justify-content: center; }
}

.intro-copy { max-width: 820px; margin: 0 auto; }
.intro-copy p { margin: 0 0 16px; font-size: 1.05rem; line-height: 1.75; color: var(--text); }
.intro-copy p:last-child { margin-bottom: 0; }

.hero-banner { display: block; width: 100%; line-height: 0; background: #fff; }
.hero-banner img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; object-position: center; }
@media (max-width: 720px) { .hero-banner img { max-height: 180px; } }

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border); transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img, .brand svg { height: 50px; width: auto; }
.brand-word { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-head); }
.brand-word strong { font-size: 1.22rem; font-weight: 800; color: var(--gray-dark); letter-spacing: -.01em; }
.brand-word span { font-size: .64rem; font-weight: 600; letter-spacing: .26em; color: var(--green); margin-top: 3px; }
@media (max-width: 360px){ .brand-word { display: none; } }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: var(--gray-dark);
  padding: 9px 11px; border-radius: var(--r-sm); transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav a:hover, .nav a.active { background: var(--bg-warm); color: var(--green-dark); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--gray-dark); margin: 5px 0; border-radius: 2px; transition: .25s; }

@media (max-width: 1080px) {
  .nav, .header-cta .btn { display: none; }
  .burger { display: block; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; padding: 14px var(--gut) 22px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.open a { padding: 12px 14px; font-size: 1rem; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: radial-gradient(1100px 480px at 85% -10%, rgba(76,175,80,.12), transparent 60%), var(--bg); }
.hero .container { padding-top: clamp(40px, 6vw, 70px); padding-bottom: clamp(40px, 6vw, 70px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .hl { color: var(--green); }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-muted); margin-bottom: 26px; max-width: 54ch; }
.hero .btn-row { margin-bottom: 22px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-visual { position: relative; }
.hero-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); padding: 22px; position: relative;
}
.hero-card .hero-photo {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--green-dark), var(--green-light));
}
.hero-card .hero-photo .vt-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-card .vc-cap { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.hero-card .vc-cap strong { font-family: var(--font-head); }

.urgency {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 18px;
  background: rgba(245,124,0,.1); color: #B45309; border: 1px solid rgba(245,124,0,.25);
  font-weight: 600; font-size: .9rem; padding: 9px 16px; border-radius: 999px;
}
.urgency .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(245,124,0,.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(245,124,0,.5);} 70%{box-shadow:0 0 0 10px rgba(245,124,0,0);} 100%{box-shadow:0 0 0 0 rgba(245,124,0,0);} }

@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; } }

/* ==========================================================================
   STATS BAND
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.stat { text-align: center; padding: 8px; }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.6rem); color: #fff; line-height: 1; }
.stat .lbl { font-size: .9rem; opacity: .9; margin-top: 8px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats .stat:last-child { grid-column: span 2; } }

/* ==========================================================================
   CARDS GRID (diagnostics, etc.)
   ========================================================================== */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--shadow-xs); transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4dae0; }

.diag-card .di-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.diag-icon {
  width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center;
  font-size: 1.4rem; color: #fff; font-weight: 700;
}
.diag-card h3 { margin: 0; font-size: 1.12rem; }
.diag-card .di-full { font-size: .8rem; color: var(--text-muted); font-weight: 500; }
.diag-card p { font-size: .92rem; color: var(--text-muted); margin-bottom: 16px; flex: 1; }
.diag-card .di-links { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.di-more { font-weight: 600; font-family: var(--font-head); font-size: .9rem; display: inline-flex; align-items: center; gap: 5px; }
.di-more:hover { gap: 9px; }
.di-quote { font-size: .82rem; font-weight: 700; color: var(--orange); border: 1px solid var(--orange-light); padding: 5px 12px; border-radius: 999px; }
.di-quote:hover { background: var(--orange); color: #fff; }
.badge-pill { position: absolute; top: -10px; right: 14px; background: var(--orange); color: #fff; font-size: .68rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.diag-card { position: relative; }

/* Feature / step cards */
.feature { text-align: left; }
.feature .f-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--bg-warm); color: var(--green); display: grid; place-items: center; margin-bottom: 14px; }
.feature .f-ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.12rem; }
.feature p { font-size: .94rem; color: var(--text-muted); margin: 0; }

.steps { counter-reset: step; }
.step .s-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff;
  font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; font-size: 1.1rem;
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: .92rem; color: var(--text-muted); margin: 0; }

/* ==========================================================================
   PRICING / TARIFS
   ========================================================================== */
.price-table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
table.pricing { width: 100%; border-collapse: collapse; min-width: 760px; background: #fff; font-size: .92rem; }
table.pricing th, table.pricing td { padding: 13px 12px; text-align: center; border-bottom: 1px solid var(--border); }
table.pricing thead th { background: var(--green-dark); color: #fff; font-family: var(--font-head); font-weight: 600; position: sticky; top: 0; }
table.pricing thead th small { display: block; font-weight: 400; opacity: .85; font-size: .72rem; margin-top: 3px; }
table.pricing tbody th { text-align: left; font-weight: 700; background: var(--bg-warm); color: var(--gray-dark); white-space: nowrap; }
table.pricing td { font-weight: 600; color: var(--text); }
table.pricing .col-popular { background: rgba(245,124,0,.07); position: relative; }
table.pricing thead .col-popular { background: var(--orange); }
table.pricing tbody tr:hover td { background: var(--bg-soft); }
table.pricing tbody tr:hover .col-popular { background: rgba(245,124,0,.12); }

.pack-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px){ .pack-cards { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .pack-cards { grid-template-columns: 1fr; } }
.pack { background:#fff; border:1px solid var(--border); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-xs); position: relative; }
.pack.featured { border-color: var(--orange); box-shadow: 0 12px 34px rgba(245,124,0,.16); }
.pack h3 { font-size: 1.05rem; margin-bottom: 2px; }
.pack .p-from { font-size: .82rem; color: var(--text-muted); }
.pack .p-price { font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; color: var(--green); margin: 8px 0 4px; }
.pack ul { list-style: none; padding: 0; margin: 14px 0; }
.pack ul li { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; color: var(--gray-text); }
.pack ul li svg { width: 16px; height: 16px; color: var(--green-light); flex: none; margin-top: 3px; }

/* ==========================================================================
   QUOTE TUNNEL (audit/devis instantané)
   ========================================================================== */
.tunnel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); overflow: hidden; max-width: 880px; margin-inline: auto;
}
.tunnel-head { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; padding: 22px 26px; }
.tunnel-head .th-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.tunnel-head h3 { color: #fff; margin: 0; font-size: 1.2rem; }
.tunnel-head .th-sub { opacity: .9; font-size: .88rem; }
.progress { margin-top: 16px; }
.progress-bar { height: 8px; background: rgba(255,255,255,.25); border-radius: 999px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 33%; background: var(--orange); border-radius: 999px; transition: width .4s ease; }
.progress-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: .78rem; opacity: .85; }
.progress-labels span.active { opacity: 1; font-weight: 700; }
.tunnel-body { padding: 26px; }
.tunnel-step { display: none; }
.tunnel-step.active { display: block; animation: fadeUp .35s ease; }
.q-block { margin-bottom: 22px; }
.q-block > label { display: block; font-family: var(--font-head); font-weight: 600; margin-bottom: 10px; font-size: .98rem; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.opt {
  border: 2px solid var(--border); border-radius: var(--r); padding: 14px 12px; cursor: pointer;
  text-align: center; font-weight: 600; font-size: .92rem; background: #fff; transition: .15s;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.opt .opt-ico { font-size: 1.5rem; }
.opt:hover { border-color: var(--green-light); background: var(--bg-warm); }
.opt.selected { border-color: var(--green); background: rgba(76,175,80,.07); color: var(--green-dark); box-shadow: 0 0 0 3px rgba(76,175,80,.12); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font: inherit; font-size: 1rem; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--green-light); box-shadow: 0 0 0 3px rgba(76,175,80,.15); }
.field input.invalid { border-color: #E53935; }
.field .err { color: #E53935; font-size: .8rem; margin-top: 4px; display: none; }
.field input.invalid + .err { display: block; }
.range-wrap { display: flex; align-items: center; gap: 14px; }
.range-wrap input[type=range] { flex: 1; accent-color: var(--green); }
.range-val { font-family: var(--font-head); font-weight: 800; color: var(--green); font-size: 1.2rem; min-width: 88px; text-align: right; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px){ .two-col { grid-template-columns: 1fr; } }

.reco-box { background: var(--bg-warm); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; margin-bottom: 18px; }
.reco-box .rb-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; color: var(--green-dark); margin-bottom: 6px; }
.diag-toggle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 8px; margin-top: 12px; }
.diag-toggle {
  display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: 9px 11px; cursor: pointer; font-size: .88rem; font-weight: 600; background: #fff; transition: .15s; user-select: none;
}
.diag-toggle:hover { border-color: var(--green-light); }
.diag-toggle.on { border-color: var(--green); background: rgba(76,175,80,.06); }
.diag-toggle .tk { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--gray-light); display: grid; place-items: center; flex: none; }
.diag-toggle.on .tk { background: var(--green); border-color: var(--green); }
.diag-toggle .tk svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.diag-toggle.on .tk svg { opacity: 1; }
.diag-toggle.mandatory { opacity: 1; }

.price-panel {
  background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff;
  border-radius: var(--r-lg); padding: 20px 22px; margin: 18px 0; text-align: center;
}
.price-panel .pp-label { font-size: .85rem; opacity: .9; }
.price-panel .pp-amount { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; line-height: 1.1; }
.price-panel .pp-amount small { font-size: 1rem; font-weight: 600; opacity: .85; }
.price-panel .pp-note { font-size: .78rem; opacity: .85; margin-top: 4px; }
.price-panel .pp-pack { display: inline-block; background: var(--orange); padding: 3px 12px; border-radius: 999px; font-weight: 700; font-size: .8rem; margin-top: 8px; }

.recap { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; margin-bottom: 18px; font-size: .92rem; }
.recap dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.recap dt { color: var(--text-muted); }
.recap dd { margin: 0; font-weight: 600; text-align: right; }
.tunnel-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: .82rem; color: var(--text-muted); margin-bottom: 14px; }
.consent input { margin-top: 3px; accent-color: var(--green); }
.tunnel-success { text-align: center; padding: 20px; }
.tunnel-success .ts-ico { width: 70px; height: 70px; border-radius: 50%; background: rgba(76,175,80,.12); color: var(--green); display: grid; place-items: center; margin: 0 auto 16px; }
.tunnel-success .ts-ico svg { width: 34px; height: 34px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   REVIEWS
   ========================================================================== */
.review-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-xs); height: 100%; display: flex; flex-direction: column; }
.review-card .plat { display: inline-flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 800; letter-spacing: .03em; padding: 4px 10px; border-radius: 999px; align-self: flex-start; margin-bottom: 12px; text-transform: uppercase; }
.plat.google { background: rgba(66,133,244,.1); color: #1a56db; }
.plat.trustpilot { background: rgba(0,182,122,.12); color: #00875a; }
.review-card .r-text { font-size: .96rem; color: var(--gray-text); flex: 1; margin-bottom: 16px; }
.review-card .r-author { display: flex; align-items: center; gap: 11px; }
.r-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; flex: none; }
.r-author .ra-name { font-weight: 700; font-size: .92rem; }
.r-author .ra-role { font-size: .78rem; color: var(--text-muted); }

.press-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(20px,5vw,46px); }
.press-logo { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--gray-light); filter: grayscale(1); opacity: .7; }

/* Trust certifications row */
.cert-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cert-badge { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 12px 18px; box-shadow: var(--shadow-xs); }
.cert-badge .cb-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--bg-warm); display: grid; place-items: center; color: var(--green); }
/* Tuiles logos partenaires (images réelles) */
.logo-tile { background:#fff; border:1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-xs); height: 90px; width: 170px; display: grid; place-items: center; padding: 12px 18px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.logo-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.logo-tile img { max-height: 58px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.cert-row { align-items: center; }
@media (max-width: 480px){ .logo-tile { width: 140px; height: 78px; } .logo-tile img { max-height: 48px; } }
.cert-badge .cb-ico svg { width: 19px; height: 19px; }
.cert-badge strong { font-family: var(--font-head); font-size: .92rem; display: block; }
.cert-badge span { font-size: .76rem; color: var(--text-muted); }

/* ==========================================================================
   MAP / ZONE
   ========================================================================== */
.zone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
@media (max-width: 820px){ .zone-grid { grid-template-columns: 1fr; } }
.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 480px){ .dept-grid { grid-template-columns: repeat(2,1fr); } }
.dept { background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; transition: .15s; }
.dept:hover { border-color: var(--green-light); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.dept .d-code { font-family: var(--font-head); font-weight: 800; color: var(--green); font-size: 1.05rem; }
.dept .d-name { font-size: .82rem; color: var(--text-muted); }
.idf-map { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.idf-map svg { width: 100%; height: auto; }
.idf-map .dpt { fill: rgba(76,175,80,.12); stroke: var(--green); stroke-width: 1.4; transition: fill .2s; cursor: pointer; }
.idf-map .dpt:hover { fill: rgba(245,124,0,.35); }
.idf-map .dpt.paris { fill: var(--green); }
.idf-map text { font-family: var(--font-head); font-weight: 700; font-size: 13px; fill: var(--green-dark); pointer-events: none; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 800px; margin-inline: auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 18px 20px; font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-q .fq-ico { flex: none; transition: transform .25s; color: var(--green); }
.faq-item.open .fq-ico { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 20px 18px; color: var(--text-muted); font-size: .94rem; }

/* ==========================================================================
   BLOG
   ========================================================================== */
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-xs); transition: .18s; height: 100%; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card .bc-img { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--green), var(--green-light)); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; text-align: center; padding: 16px; }
.blog-card .bc-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.blog-card .bc-tag { font-size: .74rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.blog-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.blog-card p { font-size: .9rem; color: var(--text-muted); flex: 1; }

/* ==========================================================================
   CONTENT (legal / diag pages)
   ========================================================================== */
.page-hero { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; padding: clamp(40px,6vw,64px) 0; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero .ph-sub { opacity: .92; max-width: 60ch; }
.breadcrumb { font-size: .82rem; margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb span { color: rgba(255,255,255,.6); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul li { color: var(--gray-text); }
.legal-doc { max-width: 860px; }
.legal-doc h2 { font-size: 1.4rem; border-bottom: 2px solid var(--bg-warm); padding-bottom: 8px; }
.legal-doc h3 { font-size: 1.1rem; }
.legal-doc p, .legal-doc li { font-size: .94rem; color: var(--gray-text); }
.info-card { background: var(--bg-warm); border: 1px solid var(--border); border-left: 4px solid var(--green); border-radius: var(--r); padding: 18px 20px; margin: 18px 0; }
.info-card h4 { font-family: var(--font-head); margin: 0 0 6px; color: var(--green-dark); }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 820px){ .split { grid-template-columns: 1fr; } }
.aside-cta { background: var(--bg-warm); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; position: sticky; top: calc(var(--header-h) + 16px); }
.aside-cta h3 { font-size: 1.15rem; }
.aside-cta .btn { width: 100%; margin-bottom: 10px; }

.diag-meta { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin: 18px 0; }
.diag-meta .dm { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; }
.diag-meta .dm .dm-l { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 700; }
.diag-meta .dm .dm-v { font-weight: 600; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--gray-dark); color: #cbd5dc; padding: 56px 0 0; font-size: .92rem; }
.site-footer a { color: #cbd5dc; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; }
@media (max-width: 880px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.foot-brand .fb-logo { height: 64px; width: auto; margin-bottom: 14px; background: #fff; border-radius: 12px; padding: 6px; box-shadow: var(--shadow-sm); }
.foot-contact li { display: flex; gap: 9px; align-items: flex-start; }
.foot-contact svg { width: 16px; height: 16px; margin-top: 3px; color: var(--green-light); flex: none; }
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: .15s; }
.social-row a:hover { background: var(--green); }
.social-row svg { width: 18px; height: 18px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding: 20px 0; font-size: .82rem; color: var(--gray-light); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-bottom a { color: var(--gray-light); }
.footer-credit { border-top: 1px solid rgba(255,255,255,.08); padding: 14px 0 22px; text-align: center; font-size: .78rem; color: var(--gray-light); letter-spacing: .01em; }
.footer-credit a { color: #fff; font-weight: 600; }
.footer-credit a:hover { color: var(--green-light); }

/* ==========================================================================
   FLOATING WIDGETS
   ========================================================================== */
.floats { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.float-btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-lg); cursor: pointer; border: 0; color: #fff; transition: transform .15s; position: relative; }
.float-btn:hover { transform: scale(1.08); }
.float-btn svg { width: 26px; height: 26px; }
.float-wa { background: var(--whatsapp); }
.float-rappel { background: var(--orange); }
.float-chat { background: var(--green); }
.float-btn .fb-tip { position: absolute; right: 66px; top: 50%; transform: translateY(-50%); background: var(--gray-dark); color: #fff; font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.float-btn:hover .fb-tip { opacity: 1; }

/* Mobile sticky CTA bar */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: #fff;
    border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  }
  .mobile-cta a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 9px 6px; font-size: .72rem; font-weight: 700; font-family: var(--font-head); color: var(--gray-dark); }
  .mobile-cta a svg { width: 20px; height: 20px; }
  .mobile-cta a.mc-devis { background: var(--orange); color: #fff; }
  .mobile-cta a.mc-wa { color: var(--whatsapp); }
  .mobile-cta a.mc-call { color: var(--green); }
  .floats { bottom: 74px; }
  body { padding-bottom: 60px; }
}

/* ==========================================================================
   CHATBOT
   ========================================================================== */
.chatbox { position: fixed; right: 18px; bottom: 86px; width: min(370px, calc(100vw - 36px)); z-index: 96; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); display: none; flex-direction: column; overflow: hidden; max-height: min(560px, 80vh); }
.chatbox.open { display: flex; animation: fadeUp .25s ease; }
@media (max-width: 760px){ .chatbox { bottom: 140px; } }
.chat-head { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.chat-head .ch-logo { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); }
.chat-head .ch-title { font-family: var(--font-head); font-weight: 700; font-size: .98rem; }
.chat-head .ch-status { font-size: .74rem; opacity: .9; display: flex; align-items: center; gap: 5px; }
.chat-head .ch-status .d { width: 7px; height: 7px; border-radius: 50%; background: #5efc82; }
.chat-head .ch-close { margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer; opacity: .85; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); }
.msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: .9rem; line-height: 1.45; }
.msg.bot { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--green); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg a { color: var(--orange); font-weight: 700; }
.msg.user a { color: #fff; text-decoration: underline; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--border); background: #fff; }
.chat-quick button { font-size: .78rem; font-weight: 600; border: 1px solid var(--border); background: var(--bg-warm); color: var(--green-dark); padding: 6px 11px; border-radius: 999px; cursor: pointer; transition: .15s; }
.chat-quick button:hover { background: var(--green); color: #fff; border-color: var(--green); }
.chat-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.chat-input input { flex: 1; border: 1.5px solid var(--border); border-radius: 999px; padding: 9px 14px; font: inherit; font-size: .9rem; }
.chat-input input:focus { outline: none; border-color: var(--green-light); }
.chat-input button { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; flex: none; }
.chat-input button svg { width: 18px; height: 18px; }

/* ==========================================================================
   MODAL (vidéo / rappel)
   ========================================================================== */
.modal-overlay { position: fixed; inset: 0; background: rgba(16,24,40,.6); backdrop-filter: blur(3px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; animation: fadeUp .2s ease; }
.modal { background: #fff; border-radius: var(--r-lg); max-width: 480px; width: 100%; padding: 26px; position: relative; box-shadow: var(--shadow-lg); }
.modal.modal-video { max-width: 820px; padding: 0; overflow: hidden; }
.modal .modal-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg-warm); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.modal-video .video-frame { aspect-ratio: 16/9; background: #000; display: grid; place-items: center; color: #fff; }
.modal h3 { margin-bottom: 6px; }

/* ==========================================================================
   ANIMATIONS au scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .urgency .dot { animation: none; }
}

/* «À PERSONNALISER» marker (visible en mode dev, discret) */
.todo-marker { display:inline-block; background:#FEF3C7; color:#92400E; font-size:.66rem; font-weight:800; padding:1px 6px; border-radius:4px; letter-spacing:.03em; vertical-align: middle; }

/* ==========================================================================
   COUCHE 3D — « Glass & Profondeur »
   Mesh de dégradés animé + verre dépoli + ombres multi-couches + tilt 3D.
   100% CSS, désactivée si prefers-reduced-motion.
   ========================================================================== */
:root {
  --shadow-3d: 0 1px 2px rgba(16,24,40,.04), 0 4px 8px rgba(16,24,40,.05),
               0 12px 24px rgba(16,24,40,.07), 0 28px 56px rgba(16,24,40,.07);
  --shadow-3d-hover: 0 2px 4px rgba(16,24,40,.05), 0 10px 20px rgba(16,24,40,.07),
                     0 24px 48px rgba(76,175,80,.16), 0 44px 88px rgba(16,24,40,.12);
  --glass-edge: inset 0 1px 0 rgba(255,255,255,.65), inset 0 0 0 1px rgba(255,255,255,.25);
}

/* --- Mesh de dégradés verts flottant en fond (fixe, derrière le contenu) --- */
body::before {
  content: ""; position: fixed; inset: -12%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(closest-side at 12% 16%, rgba(76,175,80,.20), transparent),
    radial-gradient(closest-side at 88% 10%, rgba(76,175,80,.16), transparent),
    radial-gradient(closest-side at 80% 80%, rgba(245,124,0,.09), transparent),
    radial-gradient(closest-side at 8% 88%, rgba(76,175,80,.14), transparent);
  background-size: 62% 62%, 56% 56%, 60% 60%, 54% 54%;
  background-repeat: no-repeat;
  filter: blur(36px);
  will-change: transform;
  animation: meshFloat 28s ease-in-out infinite alternate;
}
@keyframes meshFloat {
  0%   { transform: translate3d(0,0,0) scale(1) rotate(0deg); }
  50%  { transform: translate3d(2.5%, -2%, 0) scale(1.1) rotate(2deg); }
  100% { transform: translate3d(-2%, 2.5%, 0) scale(1.05) rotate(-2deg); }
}

/* Laisse le mesh transparaître dans le hero et les sections claires */
.hero { background: transparent; }
.section--soft { background: rgba(250,251,252,.55); backdrop-filter: blur(2px); }
.section--warm { background: rgba(245,247,240,.62); backdrop-filter: blur(2px); }

/* --- Verre dépoli + profondeur sur les cartes-clés --- */
.hero-card, .tunnel, .aside-cta, .rating-badge {
  background: rgba(255,255,255,.62);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--shadow-3d), var(--glass-edge);
}
.aside-cta { background: rgba(255,255,255,.7); }

/* Cartes en grille : translucides + ombre multi-couches + liseré lumineux (sans blur = perf) */
.card, .pack, .review-card, .blog-card, .logo-tile, .cert-badge, .dept {
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-3d), var(--glass-edge);
}
.card:hover, .pack:hover, .review-card:hover, .blog-card:hover {
  box-shadow: var(--shadow-3d-hover), var(--glass-edge);
}

/* --- Tilt 3D : contexte de perspective + lissage --- */
.diag-card, .feature, .pack, .review-card, .blog-card, .hero-card {
  transform-style: preserve-3d;
  transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, border-color .18s;
  will-change: transform;
}
.tilt-shine {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx,50%) var(--my,0%), rgba(255,255,255,.35), transparent 60%);
  opacity: 0; transition: opacity .2s ease; z-index: 3;
}
.is-tilting .tilt-shine { opacity: 1; }

/* --- Badges de confiance qui lévitent (parallaxe douce) --- */
.hero-trust .rating-badge { animation: floaty 6s ease-in-out infinite; }
.hero-trust .rating-badge:nth-child(2) { animation-delay: -3s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Pastille d'urgence + chips : léger relief */
.urgency, .chip { box-shadow: var(--shadow-sm); }

/* Profondeur renforcée sur le panneau prix du tunnel */
.price-panel { box-shadow: 0 10px 30px rgba(27,94,32,.35), inset 0 1px 0 rgba(255,255,255,.25); }

/* Coupe les effets coûteux / animations si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .hero-trust .rating-badge { animation: none; }
  .diag-card, .feature, .pack, .review-card, .blog-card, .hero-card { transform: none !important; }
}
/* Sur petits écrans : pas de tilt ni blur lourds (perf mobile) */
@media (max-width: 760px) {
  .section--soft, .section--warm { backdrop-filter: none; }
}

/* Carte agenda (RDV) — lien vers l'agenda Joole */
.agenda-card { transition: transform .15s ease, box-shadow .2s ease, border-color .15s; }
.agenda-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--green-light) !important; }
