/* ════════════════════════════════════════════════════════════════
   MÉCAREMAP — theme.css — THÈME CLAIR « Studio »
   Actif quand <html data-theme="light"> (choix mémorisé : clé mr_theme).
   Le thème sombre reste celui des feuilles d'origine : ce fichier ne
   contient QUE des règles préfixées par html[data-theme="light"].
   · Barre, menu, pied de page, blocs contact : css/header.css
   · Espace client : css/ec.css (même palette)
   Ordre : variables · base · composants communs · pages (fx, pages, home)
           · récit 3D (story) · pages applicatives · éléments flottants
   ════════════════════════════════════════════════════════════════ */

/* ── VARIABLES : les feuilles d'origine les utilisent partout ── */
/* Les couleurs du thème clair sont définies une seule fois, dans css/global.css (jetons) :
   ce bloc ne garde que les alias propres à ce fichier. */
html[data-theme="light"] {
  --lt-card: var(--surface);
  --lt-card-2: var(--surface-2);
  --lt-ink: var(--text);
  --lt-dim: var(--text-2);
  --lt-line: var(--line);
  --lt-shadow: 0 22px 50px -30px rgba(20, 24, 40, 0.38);
}
html[data-theme="light"] body { background: var(--black); color: var(--white); }

/* ── BASE ── */
html[data-theme="light"] ::selection { background: #E30613; color: #fff; }
@media (hover: hover) and (pointer: fine) {
  html[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(18, 20, 26, 0.2); background-clip: padding-box; }
  html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(18, 20, 26, 0.34); background-clip: padding-box; }
  html[data-theme="light"] { scrollbar-color: rgba(18, 20, 26, 0.24) transparent; }
}
html[data-theme="light"] .noise { opacity: 0.018; mix-blend-mode: multiply; }
html[data-theme="light"] #page-transition { background: radial-gradient(130% 130% at 50% 0%, #ffffff 0%, #e9ebef 62%); }
html[data-theme="light"] .text-green, html[data-theme="light"] .trust-chip-green svg { color: #0f8a4b; }

/* ── BOUTONS, CARTES, BADGES (global.css) ── */
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .skip-to-content { color: #fff; }
html[data-theme="light"] .btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }
html[data-theme="light"] .btn-outline { background: #fff; border-color: var(--line-strong); box-shadow: 0 8px 22px -16px rgba(20, 24, 40, 0.45); }
html[data-theme="light"] .btn-outline::before { background: rgba(18, 20, 26, 0.12); }
html[data-theme="light"] .btn.is-loading::after { color: #fff; }
html[data-theme="light"] .btn-outline.is-loading::after { color: #12141a; }
html[data-theme="light"] .card { box-shadow: var(--lt-shadow); }
html[data-theme="light"] .card:hover { border-color: var(--line-strong); }
html[data-theme="light"] .card:hover .icon-wrap svg { color: #fff; }
html[data-theme="light"] .badge-red { background: var(--tint); }
html[data-theme="light"] .trust-chip { background: rgba(255, 255, 255, 0.85); }
html[data-theme="light"] .faq-item { background: #fff; box-shadow: 0 10px 26px -20px rgba(20, 24, 40, 0.4); }
html[data-theme="light"] .faq-item[open] > .faq-question::after,
html[data-theme="light"] .faq-item.open > .faq-question::after { color: #fff; }
html[data-theme="light"] .counter-number { color: #12141a; }
html[data-theme="light"] .settings-msg-success, html[data-theme="light"] .form-success { color: #0f8a4b; }
html[data-theme="light"] .settings-msg-error { color: var(--accent-text); }
html[data-theme="light"] .form-error { color: var(--accent-text); }
html[data-theme="light"] .footer-klarna-badge { color: #b4466a; }
html[data-theme="light"] .footer-klarna-badge strong { color: #12141a; }

/* ── FORMULAIRES (pages.css) ── */
html[data-theme="light"] .form-input { background: #fff; border-color: var(--line-strong); color: #12141a; }
html[data-theme="light"] .form-input:focus { box-shadow: none; }
html[data-theme="light"] .form-input::placeholder { color: #9a9ea9; }
html[data-theme="light"] select.form-input option { background: #fff; color: #12141a; }
html[data-theme="light"] .form-card { background: #fff; box-shadow: var(--lt-shadow); }
html[data-theme="light"] .info-box { background: var(--tint); }

/* ── PAGES À FOND PHOTO FIXE (fx.css) : voile clair, sections en cartes blanches ── */
html[data-theme="light"] .page-bg-fixed {
  background:
    linear-gradient(180deg, rgba(236, 238, 242, 0.7) 0%, rgba(236, 238, 242, 0.86) 50%, rgba(236, 238, 242, 0.96) 100%),
    var(--page-bg-img, url('../images/supra.webp')) center 28% / cover no-repeat;
}
html[data-theme="light"] body.home-fx .section,
html[data-theme="light"] body.home-fx .fx-horizon {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.84) !important;
  box-shadow: 0 30px 80px -40px rgba(20, 24, 40, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
html[data-theme="light"] body.home-fx .section .section { background: transparent !important; box-shadow: none; }
html[data-theme="light"] body.home-fx .cta-section { background: rgba(255, 255, 255, 0.9) !important; }
html[data-theme="light"] .page-content-wrap .section,
html[data-theme="light"] .page-content-wrap .cta-section { background: rgba(255, 255, 255, 0.9) !important; }
html[data-theme="light"] .fx-panel { background: #fff; box-shadow: 0 16px 40px -28px rgba(20, 24, 40, 0.4); }
html[data-theme="light"] .fx-panel:hover { background: #fff; }
html[data-theme="light"] .fx-panel-num { color: var(--text-2); }

/* ── HÉROS DES PAGES INTÉRIEURES (pages.css) ── */
/* (le héros utilise les mêmes jetons dans les deux thèmes : voir css/ui.css, section 5) */
html[data-theme="light"] .google-rating-badge { background: #fff; border-color: var(--line); }
html[data-theme="light"] .google-rating-text { color: #575b67; }
html[data-theme="light"] .contact-info-value,
html[data-theme="light"] .contact-info-value a { color: #12141a; }

/* ── PAGES SEO : couleurs écrites dans les balises (style="…") ──
   Fiches véhicules, pages ville × prestation : textes blancs, tableaux,
   pastilles de liens. On les ramène sur l'encre claire (sauf dans les
   bandeaux rouges, qui gardent leur texte blanc). */
html[data-theme="light"] :is(h1, h2, h3, h4, h5, td, th, p, li, strong, span, label, div)[style*="color:#fff"]:not([style*="background:#E30613"] *):not([style*="background:#0d0d12"]) { color: var(--white) !important; }
html[data-theme="light"] [style*="color:rgba(245,245,240,.5)"],
html[data-theme="light"] [style*="color:rgba(245,245,240,.35)"] { color: var(--titanium) !important; }
html[data-theme="light"] [style*="color:rgba(245,245,240,.75)"] { color: rgba(18, 20, 26, 0.75) !important; }
html[data-theme="light"] [style*="color:#4ade80"],
html[data-theme="light"] .gain-after { color: #0f8a4b !important; }
html[data-theme="light"] tr[style*="rgba(255,255,255,.08)"] { border-bottom-color: var(--line) !important; }
html[data-theme="light"] .card[style*="background:rgba(255,255,255,.03)"],
html[data-theme="light"] .card[style*="background:var(--glass)"] { background: #fff !important; border-color: var(--line) !important; }
html[data-theme="light"] a[style*="background:rgba(255,255,255,.04)"] { background: #fff !important; border-color: var(--line-strong) !important; box-shadow: 0 6px 16px -12px rgba(20, 24, 40, 0.4); }
html[data-theme="light"] [style*="color:rgba(227,6,19,.25)"] { color: var(--text); }
html[data-theme="light"] :is(.why-card, .kpi > div, .dy-card, .save-box) { box-shadow: 0 14px 34px -26px rgba(20, 24, 40, 0.45); }

/* ════════════════════════════════════════════════════════════════
   RÉCIT 3D (story.css, story-pages.css) — studio blanc (js/car3d.js)
   Voiles de lisibilité clairs côté texte, cartes blanches, encre foncée.
   ════════════════════════════════════════════════════════════════ */
html[data-theme="light"] :is(.st, .sx, .st-mq, .car-dock, #c3d-pins, .sh, .st-drawer, .sp) {
  --s-red-hot: var(--accent-text);
  --s-gold-hi: #94731c;
  --s-green: #0f8a4b;
  --s-cyan: #1a7fd1;
  --s-ink: var(--text);
  --s-dim: var(--text-2);
  --s-mute: var(--text-3);
  --s-line: var(--line);
  --s-line-2: var(--line-strong);
  --s-card: var(--surface);
}
html[data-theme="light"] body.home-3d { background: #e4e6eb; }
html[data-theme="light"] #c3d-dim { background: #eceef2; }
html[data-theme="light"] body.home-3d :where(.btn-outline, .btn-ghost-hero, .trust-chip, .google-rating-badge, .form-card, .testi-card, .case-card, .service-card) { background-color: rgba(255, 255, 255, 0.92); }

/* Voiles : clairs côté texte, transparents côté voiture */
html[data-theme="light"] .sh::before {
  background:
    linear-gradient(90deg, rgba(236, 238, 242, 0.94) 0%, rgba(236, 238, 242, 0.7) 32%, rgba(236, 238, 242, 0) 58%),
    linear-gradient(0deg, rgba(236, 238, 242, 0.95), rgba(236, 238, 242, 0) 24%);
}
html[data-theme="light"] .st.st-on .st-scrim { background: linear-gradient(90deg, rgba(236, 238, 242, 0.93) 0%, rgba(236, 238, 242, 0.7) 30%, rgba(236, 238, 242, 0) 54%); }
html[data-theme="light"] .sx-cta::before { background: linear-gradient(180deg, rgba(236, 238, 242, 0.85), rgba(236, 238, 242, 0.4) 45%, rgba(236, 238, 242, 0) 62%); }
html[data-theme="light"] body.home-car .rp-hero::before {
  background:
    linear-gradient(90deg, rgba(236, 238, 242, 0.94) 0%, rgba(236, 238, 242, 0.68) 32%, rgba(236, 238, 242, 0) 58%),
    linear-gradient(0deg, rgba(236, 238, 242, 0.95), rgba(236, 238, 242, 0) 24%);
}
@media (max-width: 899px) {
  html[data-theme="light"] .sh::before { background: linear-gradient(180deg, rgba(236, 238, 242, 0.94) 0%, rgba(236, 238, 242, 0.78) 46%, rgba(236, 238, 242, 0.06) 76%, rgba(236, 238, 242, 0.94) 100%); }
  /* accueil : vitrine de la voiture entre le texte et la recherche (voir css/story.css) */
  html[data-theme="light"] body.home-car .rp-hero::before { background: linear-gradient(180deg, rgba(236, 238, 242, 0.94) 0%, rgba(236, 238, 242, 0.78) 34%, rgba(236, 238, 242, 0.06) 48%, rgba(236, 238, 242, 0.06) 72%, rgba(236, 238, 242, 0.9) 100%); }
  html[data-theme="light"] .st.st-on .st-scrim { background: linear-gradient(0deg, rgba(236, 238, 242, 0.97) 0%, rgba(236, 238, 242, 0.88) 34%, rgba(236, 238, 242, 0.4) 50%, rgba(236, 238, 242, 0) 62%), linear-gradient(180deg, rgba(236, 238, 242, 0.75), rgba(236, 238, 242, 0) 18%); }
}

/* Textes blancs écrits en dur → encre */
html[data-theme="light"] :is(.st-txt, .sx-p, .st-item, .st-save p, .sh-lead, .sp-guide, .st-drawer) strong,
html[data-theme="light"] .sx-p a,
html[data-theme="light"] .st-link:hover,
html[data-theme="light"] .st-rev-by b,
html[data-theme="light"] .st-idx li.is-on,
html[data-theme="light"] .st-df,
html[data-theme="light"] .st-case-count b,
html[data-theme="light"] .st-gain .t,
html[data-theme="light"] .st-sl-h b,
html[data-theme="light"] .st-barrow b,
html[data-theme="light"] .st-hud li.is-on a,
html[data-theme="light"] .st-meter-n b,
html[data-theme="light"] .car-load b,
html[data-theme="light"] .sh-crumb a:hover,
html[data-theme="light"] .sh-proof b,
html[data-theme="light"] .st-li .st-li-p,
html[data-theme="light"] .st-li .st-li-n,
html[data-theme="light"] .sp-total,
html[data-theme="light"] .sp-stat,
html[data-theme="light"] .sp-opts label:has(input:checked),
html[data-theme="light"] .sp-info li > span:last-child,
html[data-theme="light"] .sp-info a { color: var(--s-ink); }
html[data-theme="light"] .st-df { text-shadow: none; }
html[data-theme="light"] .st-idx li b { color: rgba(18, 20, 26, 0.3); }

/* Boutons, liens */
html[data-theme="light"] .st-btn--ghost { color: #12141a; background: #fff; box-shadow: 0 10px 26px -18px rgba(20, 24, 40, 0.5); }
html[data-theme="light"] .st-btn--ghost:hover { background: #fff; }
html[data-theme="light"] .st-ico { color: var(--text); background: transparent; box-shadow: none; }
html[data-theme="light"] .st-card--white .st-ico { color: #12141a; }
html[data-theme="light"] .st-card--white { --k: 120, 124, 135; }
html[data-theme="light"] .st-tag { color: var(--text-2); }
html[data-theme="light"] .st-mq-item { -webkit-text-stroke-color: rgba(18, 20, 26, 0.22); }
html[data-theme="light"] .st-mq-row--b .st-mq-item { color: rgba(18, 20, 26, 0.5); }
html[data-theme="light"] .st-mq-star { text-shadow: none; }
html[data-theme="light"] .st-credit a { text-decoration-color: rgba(18, 20, 26, 0.25); }

/* Cartes (dégradés sombres écrits en dur) → cartes blanches */
html[data-theme="light"] .st-item { background: linear-gradient(160deg, #fff6f6, #ffffff 60%); box-shadow: none; }
html[data-theme="light"] .st-rev,
html[data-theme="light"] .sx-q,
html[data-theme="light"] .st-li,
html[data-theme="light"] .st-vs > div,
html[data-theme="light"] .st-veh li,
html[data-theme="light"] .sx-panel { background: linear-gradient(180deg, #ffffff, #f7f8fa); box-shadow: 0 26px 60px -40px rgba(20, 24, 40, 0.45); }
html[data-theme="light"] .st-li:hover,
html[data-theme="light"] .st-li:focus-visible { background: #fff; }
html[data-theme="light"] .st-card { background: linear-gradient(180deg, #ffffff, #f7f8fa); box-shadow: 0 40px 90px -46px rgba(20, 24, 40, 0.5); }
html[data-theme="light"] .st-case { background: linear-gradient(180deg, #ffffff, #f7f8fa); box-shadow: 0 40px 90px -46px rgba(20, 24, 40, 0.5); }
html[data-theme="light"] .st-res { background: radial-gradient(100% 80% at 100% 0%, rgba(201, 168, 76, 0.14), transparent 60%), linear-gradient(180deg, #fffdf8, #ffffff); box-shadow: 0 40px 90px -46px rgba(20, 24, 40, 0.5); }
html[data-theme="light"] .st-vs > div:last-child { background: radial-gradient(100% 90% at 100% 0%, rgba(201, 168, 76, 0.16), transparent 60%), #fffdf6; }
html[data-theme="light"] .st-vs > div:last-child b,
html[data-theme="light"] .st-save b { text-shadow: none; }
html[data-theme="light"] .sp-calc-res { background: #fff; }
html[data-theme="light"] .st-chart { box-shadow: 0 30px 70px -44px rgba(20, 24, 40, 0.5); }
html[data-theme="light"] .st-gain { background: rgba(18, 20, 26, 0.03); }
html[data-theme="light"] .st-gain .d { background: rgba(15, 138, 75, 0.08); border-color: rgba(15, 138, 75, 0.25); }
html[data-theme="light"] .st-bar { background: rgba(18, 20, 26, 0.07); }
html[data-theme="light"] .st-bar--sp i { background: linear-gradient(90deg, #9a9ea8, #c4c7cf); }


html[data-theme="light"] .st-stp-ic { background: #fff; box-shadow: 0 0 0 6px #eef0f3; }
html[data-theme="light"] .st.st-on .st-how.is-active .st-stp .st-stp-ic { box-shadow: 0 0 0 6px #eef0f3; }
@media (max-width: 760px) { html[data-theme="light"] .st-stp-ic { box-shadow: 0 0 0 5px #eef0f3; } }
html[data-theme="light"] .sp-select { background: #fff; color: #12141a; }
html[data-theme="light"] body.page-3d .filter-btn { background: rgba(255, 255, 255, 0.95); }

/* Courbe du banc de puissance */
html[data-theme="light"] .k-o { background: repeating-linear-gradient(90deg, rgba(18, 20, 26, 0.5) 0 5px, transparent 5px 9px); }

/* Rail des chapitres, compteur, « passer », chargement du studio */
html[data-theme="light"] .st-hud a span,
html[data-theme="light"] .st-hud a:hover span { color: #12141a; background: rgba(255, 255, 255, 0.96); box-shadow: 0 10px 24px -16px rgba(20, 24, 40, 0.5); }
html[data-theme="light"] .st-hud li.is-on a span { background: transparent; box-shadow: none; }
html[data-theme="light"] .st.st-on .st-skip,
html[data-theme="light"] .car-load { background: rgba(255, 255, 255, 0.9); box-shadow: 0 10px 24px -16px rgba(20, 24, 40, 0.5); }
html[data-theme="light"] .st.st-on .st-skip:hover,
html[data-theme="light"] .st.st-on .st-skip:focus-visible { color: #12141a; }

/* Étiquettes accrochées à la voiture : pastilles sombres, trait foncé */
html[data-theme="light"] .c3d-pin::before { background: linear-gradient(90deg, rgba(18, 20, 26, 0.8), rgba(18, 20, 26, 0.25)); }
html[data-theme="light"] .c3d-pin > b { background: rgba(18, 20, 26, 0.9); border-color: transparent; box-shadow: 0 12px 26px -12px rgba(20, 24, 40, 0.6); }
html[data-theme="light"] .c3d-pin > i { box-shadow: 0 0 0 5px rgba(18, 20, 26, 0.12); }

/* Tiroir de détail */
html[data-theme="light"] .st-drawer-bd { background: linear-gradient(90deg, rgba(20, 24, 36, 0) 0%, rgba(20, 24, 36, 0.12) 40%, rgba(20, 24, 36, 0.35) 100%); }
html[data-theme="light"] .st-drawer { background: linear-gradient(180deg, #ffffff, #f6f7f9); box-shadow: -40px 0 90px -30px rgba(20, 24, 40, 0.45); }
html[data-theme="light"] .st-drawer-x { color: #12141a; background: #f1f2f5; }
html[data-theme="light"] .st-drawer-x:hover, html[data-theme="light"] .st-drawer-x:focus-visible { color: #fff; }
@media (max-width: 760px) { html[data-theme="light"] .st-drawer-bd { background: linear-gradient(180deg, rgba(20, 24, 36, 0) 0%, rgba(20, 24, 36, 0.25) 30%, rgba(20, 24, 36, 0.45) 100%); } }

/* ════════════════════════════════════════════════════════════════
   ACCUEIL — configurateur « Performance Lab » (reprog.css, .rp-*)
   ════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .rp {
  --rp-red-hot: var(--accent-text);
  --rp-gold: #9a7a22;
  --rp-gold-hi: #94731c;
  --rp-ink: var(--text);
  --rp-dim: var(--text-2);
  --rp-mute: var(--text-3);
  --rp-line: var(--line);
  --rp-line-2: var(--line-strong);
  --rp-card: var(--surface);
  --rp-card-2: var(--surface-2);
}
html[data-theme="light"] .rp-hero::after { background-image: linear-gradient(rgba(18, 20, 26, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 20, 26, 0.04) 1px, transparent 1px); }
html[data-theme="light"] .rp-kicker { color: var(--text-2); background: transparent; }
html[data-theme="light"] .rp-title-xl em { filter: none; }
html[data-theme="light"] .rp-search { background: linear-gradient(180deg, #ffffff, #f7f8fa); box-shadow: 0 24px 60px -30px rgba(20, 24, 40, 0.5), inset 0 1px 0 #fff; }
html[data-theme="light"] .rp-search::before { background: conic-gradient(from var(--rp-ang), rgba(18, 20, 26, 0.1) 0deg, rgba(18, 20, 26, 0.1) 230deg, transparent 290deg, #ff9a8a 320deg, rgba(18, 20, 26, 0.1) 360deg); }
html[data-theme="light"] .rp-search:focus-within { box-shadow: none; }
html[data-theme="light"] .rp-search input { color: #12141a; }
html[data-theme="light"] .rp-typer-pre { color: rgba(18, 20, 26, 0.35); }
html[data-theme="light"] .rp-kbd { background: #f3f4f7; }
html[data-theme="light"] .rp-sres { background: rgba(255, 255, 255, 0.98); box-shadow: 0 40px 90px -30px rgba(20, 24, 40, 0.45); }
html[data-theme="light"] .rp-opt.is-act, html[data-theme="light"] .rp-opt:hover { background: var(--tint); }
html[data-theme="light"] .rp-opt-ic, html[data-theme="light"] .rp-rh-logo { background: #fff; }
html[data-theme="light"] .rp-opt mark, html[data-theme="light"] .rp-s-empty a, html[data-theme="light"] .rp-s-empty button,
html[data-theme="light"] .rp-noscript a, html[data-theme="light"] .rp-empty button, html[data-theme="light"] .rp-hud-h b { color: var(--text); }
html[data-theme="light"] :is(.rp-s-empty b, .rp-steps-link:hover, .rp-proof b, .rp-hud dd b, .rp-node.is-cur .rp-nl b, .rp-node.is-done .rp-nl b, .rp-reset:hover, .rp-back:hover,
  .rp-filter input, .rp-gmax b, .rp-fuel:hover, .rp-fuel.is-on, .rp-eng-spec b, .rp-eng-gain b, .rp-chip:hover, .rp-segb:hover, .rp-eco b, .rp-amt, .rp-rdv a:hover, .rp-dy-tip b, .rp-dy-tip em) { color: #12141a; }
html[data-theme="light"] .rp-hud { background: rgba(255, 255, 255, 0.92); box-shadow: 0 16px 40px -26px rgba(20, 24, 40, 0.5); }
html[data-theme="light"] .rp-console,
html[data-theme="light"] body.home-car .rp-console { background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 250, 0.98)); box-shadow: 0 50px 120px -50px rgba(20, 24, 40, 0.55), 0 0 0 1px rgba(18, 20, 26, 0.07), inset 0 1px 0 #fff; }
html[data-theme="light"] .rp-node.is-done > button:hover { background: rgba(18, 20, 26, 0.04); }
html[data-theme="light"] .rp-nd { background: #fff; }
html[data-theme="light"] .rp-node.is-done .rp-nd { color: var(--text); }
html[data-theme="light"] .rp-filter input { background: #fff; }
html[data-theme="light"] .rp-filter input::placeholder { color: rgba(18, 20, 26, 0.38); }
html[data-theme="light"] .rp-type { background: linear-gradient(180deg, #ffffff, #f6f7f9); box-shadow: 0 16px 34px -26px rgba(20, 24, 40, 0.5); }
html[data-theme="light"] .rp-type::after { background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.7) 48%, transparent 60%); }
html[data-theme="light"] .rp-type-floor { background: radial-gradient(closest-side, rgba(20, 24, 40, 0.3), transparent); }
html[data-theme="light"] .rp-gmax { color: var(--text); }
html[data-theme="light"] .rp-gmax.is-off, html[data-theme="light"] .rp-delta.is-zero { background: rgba(18, 20, 26, 0.04); }
html[data-theme="light"] .rp-gbar, html[data-theme="light"] .rp-bar { background: rgba(18, 20, 26, 0.07); }
html[data-theme="light"] .rp-fuel.is-on { background: var(--accent-soft); }
html[data-theme="light"] .rp-eng-gain em { background: var(--tint); color: var(--text); }
html[data-theme="light"] .rp-seg { background: rgba(18, 20, 26, 0.04); }
html[data-theme="light"] .rp-segb.is-on, html[data-theme="light"] .rp-segb.is-on em { color: #fff; }
html[data-theme="light"] .rp-seg.is-eco .rp-segb.is-on, html[data-theme="light"] .rp-seg.is-eco .rp-segb.is-on em { color: #1a1305; }
html[data-theme="light"] .rp-segb.is-eco { color: #8a6a12; }
html[data-theme="light"] .rp-card { background: linear-gradient(180deg, #ffffff, #f7f8fa); box-shadow: 0 16px 40px -30px rgba(20, 24, 40, 0.5); }
html[data-theme="light"] .rp-amt.is-ref, html[data-theme="light"] .rp-amt.is-devis { color: var(--text); }
html[data-theme="light"] .rp-btn--ghost { color: #12141a; background: #fff; }
html[data-theme="light"] .l-o { background: repeating-linear-gradient(90deg, rgba(18, 20, 26, 0.5) 0 4px, transparent 4px 7px); }
html[data-theme="light"] .rp-note { background: rgba(18, 20, 26, 0.025); }
html[data-theme="light"] .rp-assure li,
html[data-theme="light"] body.home-car .rp-assure li { background: rgba(255, 255, 255, 0.92); }
html[data-theme="light"] .rp-mbar { color: #12141a; background: rgba(255, 255, 255, 0.97); border-color: var(--line); box-shadow: 0 18px 50px -20px rgba(20, 24, 40, 0.5); }
html[data-theme="light"] .rp-mb-p small { color: rgba(18, 20, 26, 0.5); }
html[data-theme="light"] .rp-mb-p b { color: #12141a; }
html[data-theme="light"] .rp-mb-c { color: #12141a; background: #f3f4f7; border-color: var(--line-strong); }
html[data-theme="light"] .rp-toast { color: #12141a; background: rgba(255, 255, 255, 0.98); border-color: var(--line); box-shadow: 0 18px 40px -18px rgba(20, 24, 40, 0.45); }

/* ── Accueil et pages SEO (home.css) : héros classique, bandeaux, barre mobile ── */
html[data-theme="light"] .hero { background: #eceef2; }
html[data-theme="light"] .page-content-wrap .ticker-wrap,
html[data-theme="light"] .page-content-wrap .stats-section { background: rgba(255, 255, 255, 0.88) !important; }
html[data-theme="light"] :is(.hero-badge-top, .hero-desc, .btn-ghost-hero, .hero-spec-label, .hero-car-name, .parallax-showcase-sub, .parallax-band-label, .img-strip-label) { color: rgba(18, 20, 26, 0.62); }
html[data-theme="light"] :is(.hero-car-sub, .hero-scroll-hint) { color: rgba(18, 20, 26, 0.4); }
html[data-theme="light"] .hero-specs { background: rgba(255, 255, 255, 0.9); }
html[data-theme="light"] #sticky-mobile-cta { background: rgba(255, 255, 255, 0.97); }
html[data-theme="light"] .sticky-call { color: #12141a; }
html[data-theme="light"] .e85-highlight { color: #94731c !important; }

/* ════════════════════════════════════════════════════════════════
   COMPTE (auth.css) — « route de jour » : ciel clair, asphalte gris,
   cadran du compte-tours conservé (objet sombre), carte blanche
   ════════════════════════════════════════════════════════════════ */
html[data-theme="light"] body.auth-page {
  --ax-red-hot: var(--accent-text);
  --ax-ink: var(--text); --ax-dim: var(--text-2); --ax-mute: var(--text-3);
  --ax-line: var(--line); --ax-line-2: var(--line-strong);
  background: #eceef2;
}
html[data-theme="light"] .ax-bg { background: linear-gradient(180deg, #f6f7f9 0%, #eceef2 46%, #f1e9ea 58%, #e4e6ea 100%); }
html[data-theme="light"] .ax-horizon { background: transparent; }
html[data-theme="light"] .ax-hills path:first-child { fill: #d8dade; }
html[data-theme="light"] .ax-road-svg > rect:first-of-type { fill: #dcdee3; }
html[data-theme="light"] #axAsph stop:first-child { stop-color: #c9ccd3; }
html[data-theme="light"] #axAsph stop:last-child { stop-color: #b9bdc5; }
html[data-theme="light"] #axEdge stop { stop-color: #ffffff; }
html[data-theme="light"] #axRefl stop:first-child { stop-opacity: 0.16; }
html[data-theme="light"] .ax-dash { background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), #ffffff); box-shadow: 0 0 0 1px rgba(18, 20, 26, 0.06); }
html[data-theme="light"] .ax-trail--w { background: linear-gradient(180deg, rgba(120, 130, 150, 0), #8d96a8); box-shadow: none; }
html[data-theme="light"] .ax-vignette { background: radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(236, 238, 242, 0.9) 100%); }
html[data-theme="light"] .ax-intro .ax-h { color: #12141a; }
html[data-theme="light"] .ax-title em, html[data-theme="light"] .ax-intro .ax-h em { text-shadow: none; }
html[data-theme="light"] .ax-intro li svg { stroke: currentColor; background: var(--tint); }
/* carte */
html[data-theme="light"] .ax-shell { background: linear-gradient(135deg, transparent, rgba(18, 20, 26, 0.1) 22%, rgba(18, 20, 26, 0.06) 55%, transparent); filter: drop-shadow(0 30px 60px rgba(20, 24, 40, 0.18)); }
html[data-theme="light"] .ax-shell::before { background: linear-gradient(180deg, #ffffff, #f7f8fa); }
html[data-theme="light"] .ax-shell::after { background: linear-gradient(115deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 26%); }
html[data-theme="light"] .ax-carbon { opacity: 0.35; background: linear-gradient(45deg, rgba(18, 20, 26, 0.05) 25%, transparent 25% 75%, rgba(18, 20, 26, 0.05) 75%) 0 0 / 8px 8px, linear-gradient(-45deg, rgba(18, 20, 26, 0.07) 25%, transparent 25% 75%, rgba(18, 20, 26, 0.07) 75%) 0 0 / 8px 8px; }
html[data-theme="light"] .ax-key::after { background: linear-gradient(135deg, #ffffff, #e9ebef 55%, #f6d7da); }
html[data-theme="light"] .ax-logo { color: #12141a; }
html[data-theme="light"] .ax-sub strong { color: #12141a; }
html[data-theme="light"] .auth-tabs.ax-tabs { background: linear-gradient(180deg, #f1f2f5, #e9ebef); }
html[data-theme="light"] .ax-tabs .auth-tab:focus-visible { outline-color: var(--focus); }
html[data-theme="light"] body.auth-page .form-input { background: #ffffff; color: #12141a; }
html[data-theme="light"] body.auth-page .form-input::placeholder { color: rgba(18, 20, 26, 0.36); }
html[data-theme="light"] body.auth-page .form-input:hover { border-color: var(--line-strong); }
html[data-theme="light"] body.auth-page .form-input:focus { background-color: #fff; box-shadow: none; }
html[data-theme="light"] .ax-eye:hover, html[data-theme="light"] .ax-eye:focus-visible { color: #12141a; background-color: rgba(18, 20, 26, 0.05); }
html[data-theme="light"] .zone-preview.zone-ok, html[data-theme="light"] .auth-success { color: #0f8a4b; }
html[data-theme="light"] .zone-preview.zone-pay, html[data-theme="light"] .auth-error { color: var(--accent-text); }
html[data-theme="light"] .zone-preview.zone-far { color: #a16207; }
html[data-theme="light"] .zone-preview.zone-load { background: rgba(18, 20, 26, 0.03); border-color: var(--line); }
html[data-theme="light"] .btn-google { background: #ffffff; box-shadow: 0 8px 20px -14px rgba(20, 24, 40, 0.4); }
html[data-theme="light"] .btn-google:hover { border-color: var(--line-strong); }
html[data-theme="light"] .ax-switch button:hover, html[data-theme="light"] .back-btn:hover, html[data-theme="light"] .back-btn:focus-visible { color: #12141a; }
html[data-theme="light"] .back-btn { background: #fff; }
html[data-theme="light"] .auth-submit:focus-visible { outline-color: #12141a; }
html[data-theme="light"] .auth-secure svg { stroke: #0f8a4b; }

/* ════════════════════════════════════════════════════════════════
   PAIEMENT (pay.css) — atelier clair, ticket blanc
   ════════════════════════════════════════════════════════════════ */
html[data-theme="light"] body.pay-page {
  --py-red-hot: var(--accent-text);
  --py-ink: var(--text); --py-dim: var(--text-2); --py-mute: var(--text-3);
  --py-line: var(--line); --py-line-2: var(--line-strong);
  --py-gold: #94731c; --py-ok: #0f8a4b;
  background: #eceef2;
}
html[data-theme="light"] .py-bg { background: linear-gradient(180deg, #f4f5f8, #e8eaee); }
html[data-theme="light"] .py-floor { background-image: linear-gradient(rgba(18, 20, 26, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 20, 26, 0.05) 1px, transparent 1px); }
html[data-theme="light"] .py-sweep { background: linear-gradient(100deg, transparent, transparent 45%, rgba(255, 255, 255, 0.6) 50%, transparent 55%, transparent); }
html[data-theme="light"] :is(.py-h1, .py-steps li.is-on, .py-cat:hover, .py-cat.is-on, .py-svc-name, .py-price, .py-boot b, .py-empty strong, .py-loc b, .py-tk-k, .py-acompte span b, .py-total b, .py-card h2, .py-bar b) { color: #12141a; }
html[data-theme="light"] .py-h1 em, html[data-theme="light"] .py-total b { text-shadow: none; }
html[data-theme="light"] .py-steps li.is-on b { color: #12141a; background: #fff; }
html[data-theme="light"] .py-steps li.is-done b { color: #fff; }
html[data-theme="light"] .py-block { background: linear-gradient(180deg, #ffffff, #f7f8fa); box-shadow: 0 30px 70px -44px rgba(20, 24, 40, 0.45); }
html[data-theme="light"] .py-tier { background: #f1f2f5; }
html[data-theme="light"] .py-tier button[aria-checked="true"] { color: #fff; }
html[data-theme="light"] :is(.py-tier button, .py-cat, .py-svc, .py-loc, .py-sw + *, .py-pay, .py-confirm):focus-visible { outline-color: var(--focus); }
html[data-theme="light"] .py-search input,
html[data-theme="light"] .py-dist-row input { background: #fff; color: #12141a; }
html[data-theme="light"] .py-search input::placeholder { color: rgba(18, 20, 26, 0.38); }
html[data-theme="light"] .py-search input:focus { background-color: #fff; box-shadow: none; }
html[data-theme="light"] .py-cat:hover { background: rgba(18, 20, 26, 0.04); }
html[data-theme="light"] .py-svc,
html[data-theme="light"] .py-loc { background: #ffffff; box-shadow: 0 10px 24px -20px rgba(20, 24, 40, 0.45); }
html[data-theme="light"] .py-svc:hover, html[data-theme="light"] .py-loc:hover { border-color: var(--line-strong); }
html[data-theme="light"] .py-svc.is-sel,
html[data-theme="light"] .py-loc.is-on { background: linear-gradient(180deg, transparent, transparent) #ffffff; }
html[data-theme="light"] .py-ic { background: var(--tint); }
html[data-theme="light"] .py-ic svg { stroke: currentColor; }
html[data-theme="light"] .py-svc.is-sel .py-ic svg, html[data-theme="light"] .py-loc.is-on .py-ic svg { stroke: #fff; }
html[data-theme="light"] .py-boot { border-top-color: var(--line-strong); }
html[data-theme="light"] .py-sw { background: #e2e4e9; }
html[data-theme="light"] .py-sw::after { background: #ffffff; }
html[data-theme="light"] .py-dist { background: #f6f7f9; }
html[data-theme="light"] .py-route .rt { stroke: rgba(18, 20, 26, 0.22); }
html[data-theme="light"] .py-route .pt { fill: #ffffff; }
html[data-theme="light"] .py-dist-msg.far { color: var(--text); }
html[data-theme="light"] .py-dist-msg.warn { color: var(--text); }
html[data-theme="light"] .py-tk-shell { background: linear-gradient(135deg, transparent, rgba(18, 20, 26, 0.1) 24%, rgba(18, 20, 26, 0.06) 60%, transparent); filter: drop-shadow(0 30px 60px rgba(20, 24, 40, 0.16)); }
html[data-theme="light"] .py-tk-shell::before { background: linear-gradient(180deg, #ffffff, #f7f8fa); }
html[data-theme="light"] .py-tk-shell::after { background: linear-gradient(45deg, rgba(18, 20, 26, 0.04) 25%, transparent 25% 75%, rgba(18, 20, 26, 0.04) 75%) 0 0 / 8px 8px, linear-gradient(-45deg, rgba(18, 20, 26, 0.06) 25%, transparent 25% 75%, rgba(18, 20, 26, 0.06) 75%) 0 0 / 8px 8px; }
html[data-theme="light"] .py-line button:hover, html[data-theme="light"] .py-line button:focus-visible { color: var(--text); background: var(--tint); }
html[data-theme="light"] .py-perf::before { border-top-color: var(--line-strong); }
html[data-theme="light"] .py-pay:focus-visible { outline-color: #12141a; }
html[data-theme="light"] .py-err { color: var(--text); }
html[data-theme="light"] .py-err a, html[data-theme="light"] .py-help a { color: #12141a; }
html[data-theme="light"] .py-bar { background: rgba(255, 255, 255, 0.98); box-shadow: 0 -12px 30px rgba(20, 24, 40, 0.12); }
html[data-theme="light"] .py-card { background: linear-gradient(180deg, #ffffff, #f7f8fa); box-shadow: 0 50px 100px -40px rgba(20, 24, 40, 0.4); }
html[data-theme="light"] .py-wall-bar { background: rgba(18, 20, 26, 0.08); }
html[data-theme="light"] .py-steps li b { background: #ffffff; }
html[data-theme="light"] .py-bh { color: #12141a; }
html[data-theme="light"] .py-perf::after, html[data-theme="light"] .py-perf i { background: #eceef2; }

/* ── Pages « appli » (app-skin.css : rendez-vous) : studio clair ── */
html[data-theme="light"] body.app-skin { background-color: #eceef2; }
html[data-theme="light"] body.app-skin::before { background: linear-gradient(180deg, #f4f5f8 0%, #e9ebef 60%); }
html[data-theme="light"] body.app-skin::after { background-image: linear-gradient(rgba(18, 20, 26, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 20, 26, 0.06) 1px, transparent 1px); }
html[data-theme="light"] body.app-skin :is(.card, .form-card, .auth-card, .pay-panel) {
  background: linear-gradient(180deg, #ffffff, #f7f8fa) !important;
  border-color: var(--line) !important;
  box-shadow: 0 40px 90px -46px rgba(20, 24, 40, 0.45), inset 0 1px 0 #fff !important;
}
html[data-theme="light"] body.app-skin .form-card { border-color: var(--line-strong) !important; }
html[data-theme="light"] body.app-skin :is(.form-input, input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea) { background-color: #ffffff; color: #12141a; }
html[data-theme="light"] body.app-skin :is(.form-input:focus, input:focus-visible, select:focus-visible, textarea:focus-visible) { box-shadow: none; }

/* ════════════════════════════════════════════════════════════════
   ÉLÉMENTS FLOTTANTS : assistant « Expert », bannière cookies,
   barre d'actions mobile, bouton WhatsApp
   ════════════════════════════════════════════════════════════════ */
/* assistant Expert : thème clair géré directement dans css/ai-expert.css (variables --ax-*) */

html[data-theme="light"] #cookie-banner { background: rgba(255, 255, 255, 0.98) !important; border-top-color: var(--line) !important; box-shadow: 0 -16px 40px -20px rgba(20, 24, 40, 0.35); }
html[data-theme="light"] #cookie-banner-text strong { color: #12141a !important; }
html[data-theme="light"] #cookie-banner-text p { color: rgba(18, 20, 26, 0.68) !important; }
html[data-theme="light"] #cookie-decline { background: #f1f2f5 !important; color: rgba(18, 20, 26, 0.75) !important; border-color: var(--line-strong) !important; }
html[data-theme="light"] #cookie-decline:hover { color: #12141a !important; }
html[data-theme="light"] #cookie-accept { color: #fff !important; }

@media (max-width: 768px) {
  html[data-theme="light"] #m-cta-bar { background: rgba(255, 255, 255, 0.97); border-top-color: var(--line); box-shadow: 0 -8px 26px rgba(20, 24, 40, 0.12); }
  html[data-theme="light"] #m-cta-bar a { color: #12141a; background: #f3f4f7; border-color: var(--line); }
  html[data-theme="light"] #m-cta-bar a.wa { color: #10803f; background: rgba(37, 211, 102, 0.12); border-color: rgba(18, 140, 74, 0.3); }
  html[data-theme="light"] #m-cta-bar a.primary { color: #fff; background: var(--accent); border-color: transparent; }
}
html[data-theme="light"] #wa-float { box-shadow: 0 8px 24px -6px rgba(18, 140, 74, 0.55); }