/* AllenVoice E2 « Comptoir clair/sombre » : thème sombre et bascule de thème.
   Source lisible. Le bloc SOMBRE ci-dessous est écrit une seule fois avec le préfixe @D ;
   theme_css.py le génère deux fois dans assets/css/theme.css :
   1) html[data-theme="dark"] : choix posé par le script de tête (Sombre, ou Système en sombre) ;
   2) @media (prefers-color-scheme: dark) + html:not([data-theme]) : repli sans JavaScript.
   style.css (thème clair de E) n'est pas modifié. */

/* ============================== COMMUN ============================== */
/* E3 : seul le point du bandeau pilote et son halo passent au vert. */
.notice .dot { background: #16834A; box-shadow: 0 0 0 4px rgba(22, 131, 74, .14); }

/* Rendus jumeaux : le rendu de jour par défaut, le rendu de nuit en sombre. */
.th-d { display: none !important; }

/* Bascule : visible seulement si le script de tête a tourné (sinon le site suit le système). */
.theme { position: relative; display: none; }
html[data-theme] .theme { display: block; }
.theme-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.7); color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.theme-btn:hover { background: #fff; }
.theme-btn svg { width: 20px; height: 20px; grid-area: 1 / 1; }
.theme-btn .i-sombre, .theme-btn .i-systeme { display: none; }
html[data-theme-pref="sombre"] .theme-btn .i-clair, html[data-theme-pref="systeme"] .theme-btn .i-clair { display: none; }
html[data-theme-pref="sombre"] .theme-btn .i-sombre { display: block; }
html[data-theme-pref="systeme"] .theme-btn .i-systeme { display: block; }
.theme-btn[aria-expanded="true"] { background: var(--frost-2); border-color: rgba(36,70,217,.3); }
.theme-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: 236px; padding: 8px; border-radius: 20px; background: rgba(251, 250, 246, .98); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--glass-edge); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 24px 60px -20px rgba(13, 23, 44, .4), 0 0 0 1px var(--line-2); }
.theme-pop fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 2px; }
.theme-pop legend { padding: 8px 12px 8px; font: 650 .76rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.theme-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 12px; font: 600 .95rem/1.25 var(--sans); color: var(--ink); cursor: pointer; transition: background-color .2s; flex-wrap: wrap; }
.theme-opt:hover { background: rgba(13, 23, 44, .05); }
.theme-opt:has(input:checked) { background: var(--frost-2); }
.theme-opt svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-2); }
.theme-opt small { flex-basis: 100%; padding-left: 56px; margin-top: -4px; font-weight: 500; font-size: .8rem; color: var(--ink-3); }
.theme-pop input[type="radio"] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; flex-shrink: 0; border: 1.6px solid var(--ink-3); border-radius: 50%; box-shadow: none; background: transparent; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.theme-pop input[type="radio"]:checked { border-color: var(--blue); background: radial-gradient(circle, var(--blue) 0 4.4px, transparent 5px); }
.theme-pop input[type="radio"]:focus { box-shadow: none; }
.theme-pop input[type="radio"]:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 50%; }
@media (max-width: 600px) { .header-cta { gap: 8px; } }
/* La bascule ajoute 54 px à l'en-tête : entre 961 et 1100 px, on resserre la navigation pour
   garder une seule ligne (E repliait déjà le bouton d'appel sur deux lignes à 961 px). */
@media (min-width: 961px) and (max-width: 1100px) {
  .header .wrap { gap: 12px; }
  .nav { gap: 0; }
  .nav a { padding: 9px 9px; white-space: nowrap; }
  .header-cta { gap: 8px; }
  .header-cta .btn { white-space: nowrap; padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 360px) { .theme-pop { width: min(236px, calc(100vw - 24px)); } }

/* États désactivés (absents de E ; prévus pour les deux thèmes, voir la notice). */
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
input:disabled, textarea:disabled, select:disabled { background: var(--stone-3); color: var(--ink-3); border-style: dashed; cursor: not-allowed; }

/* Changement de thème : fondu court, seulement à la bascule (jamais au chargement), et
   jamais si l'utilisateur demande moins de mouvement (theme.js n'ajoute pas la classe). */
html.theme-fade, html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease, fill .35s ease, stroke .35s ease !important;
}
@media (prefers-reduced-motion: reduce) {
  html.theme-fade, html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after { transition: none !important; }
}

/* ============================== SOMBRE ============================== */
/* 1) Choix explicite ou mode Système résolu par le script de tête */

html[data-theme="dark"] {
  color-scheme: dark;
  --stone: #0E1526; --stone-2: #141D33; --stone-3: #172039; --paper: #19233D;
  --ink: #EEF1F7; --ink-2: #C7CEDD; --ink-3: #A3ACC1;
  --blue: #2F52E6; --blue-2: #AEBFFF; --blue-lt: #AEBFFF; --frost: #26355E; --frost-2: #1B2847;
  --sage: #8FB39A; --sage-2: #1D3227; --sage-ink: #BFE0C8;
  --line: rgba(214, 224, 255, .16); --line-2: rgba(214, 224, 255, .09);
  --glass: rgba(21, 31, 54, .8); --glass-edge: rgba(214, 224, 255, .13);
  --card: linear-gradient(180deg, rgba(30, 42, 72, .72), rgba(22, 32, 56, .5));
  --card-flat: rgba(26, 37, 64, .62);
  --shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 24px 60px -24px rgba(0, 0, 0, .7), 0 4px 14px -6px rgba(0, 0, 0, .45);
  --shadow-sm: 0 1px 0 rgba(255,255,255,.05) inset, 0 10px 28px -14px rgba(0, 0, 0, .6);
}
html[data-theme="dark"] body { background: var(--stone); color: var(--ink); }
html[data-theme="dark"] a:hover { color: #fff; }
html[data-theme="dark"] :focus-visible { outline-color: var(--blue-lt); }
html[data-theme="dark"] .skip, html[data-theme="dark"] .skip:focus { background: var(--blue-lt); color: #0D172C; }
html[data-theme="dark"] .notice .dot { background: #42D58B; box-shadow: 0 0 0 4px rgba(66, 213, 139, .18); }

html[data-theme="dark"] .header.is-scrolled { background: rgba(14, 21, 38, .8); box-shadow: 0 1px 0 var(--line); }
html[data-theme="dark"] .nav a:hover { background: rgba(255, 255, 255, .07); color: var(--ink); }
html[data-theme="dark"] .nav a[aria-current="page"] { background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
html[data-theme="dark"] .menu-btn, html[data-theme="dark"] .theme-btn { background: rgba(255, 255, 255, .06); color: var(--ink); }
html[data-theme="dark"] .menu-btn:hover, html[data-theme="dark"] .theme-btn:hover { background: rgba(255, 255, 255, .12); }
html[data-theme="dark"] .theme-btn[aria-expanded="true"] { background: var(--frost-2); border-color: rgba(174, 191, 255, .4); }
html[data-theme="dark"] .theme-pop { background: rgba(22, 31, 54, .98); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 28px 70px -20px rgba(0, 0, 0, .8), 0 0 0 1px var(--line-2); }
html[data-theme="dark"] .theme-opt:hover { background: rgba(255, 255, 255, .07); }
html[data-theme="dark"] .theme-opt:has(input:checked) { background: rgba(174, 191, 255, .14); }
html[data-theme="dark"] .theme-pop input[type="radio"] { accent-color: var(--blue-lt); }
html[data-theme="dark"] .theme-pop input[type="radio"]:focus-visible { outline-color: var(--blue-lt); }
html[data-theme="dark"] .theme-pop input[type="radio"]:checked { border-color: var(--blue-lt); background: radial-gradient(circle, var(--blue-lt) 0 4.4px, transparent 5px); }

html[data-theme="dark"] .btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 12px 30px -10px rgba(47, 82, 230, .85); }
html[data-theme="dark"] .btn-primary:hover { background: #3F60EE; color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 16px 34px -10px rgba(63, 96, 238, .95); }
html[data-theme="dark"] .btn-ghost { background: rgba(255, 255, 255, .06); color: var(--ink); border-color: rgba(214, 224, 255, .22); }
html[data-theme="dark"] .btn-ghost:hover { background: rgba(255, 255, 255, .13); color: #fff; }

html[data-theme="dark"] .tag { background: rgba(255, 255, 255, .06); color: var(--ink-2); border-color: var(--line); }
html[data-theme="dark"] .chip-ok { border-color: rgba(143, 179, 154, .35); }

html[data-theme="dark"] .stage .frame { background: var(--stone-3); box-shadow: 0 1px 0 rgba(255,255,255,.07) inset, 0 0 0 1px rgba(214,224,255,.06), 0 40px 80px -40px rgba(0, 0, 0, .8); }
html[data-theme="dark"] .stage .glow { background: radial-gradient(closest-side, rgba(64, 98, 255, .34), rgba(64, 98, 255, 0)); }
html[data-theme="dark"] .stage .floor { background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); }
html[data-theme="dark"] .say .bubble { background: #212D4B; border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .say .bubble.ai { background: var(--blue); color: #fff; border-color: transparent; }

html[data-theme="dark"] .tile { background: var(--card); }
html[data-theme="dark"] .tile::after { background: radial-gradient(520px circle at var(--mx) var(--my), rgba(174, 191, 255, .16), rgba(174, 191, 255, 0) 45%); mix-blend-mode: screen; }
html[data-theme="dark"] .tile:hover { color: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 34px 70px -28px rgba(0, 0, 0, .8), 0 6px 18px -8px rgba(0, 0, 0, .5), 0 0 0 1px rgba(174, 191, 255, .18); }
html[data-theme="dark"] .tile-more { color: var(--blue-lt); }
html[data-theme="dark"] .tile-media img { box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 16px 30px -22px rgba(0, 0, 0, .8); }
html[data-theme="dark"] .call { background: radial-gradient(120% 90% at 80% 0%, rgba(64, 98, 255, .24), rgba(64, 98, 255, 0) 60%), linear-gradient(180deg, #1B2643, #141D33); border-color: var(--line); }
html[data-theme="dark"] .call-ico { box-shadow: 0 10px 24px -10px rgba(47, 82, 230, .95); }
html[data-theme="dark"] .voice i { background: linear-gradient(180deg, #AEBFFF, #4D6CF0); }

html[data-theme="dark"] .panel { background: var(--card); }
html[data-theme="dark"] .field { background: rgba(255, 255, 255, .035); border-color: var(--line-2); }
html[data-theme="dark"] .field .empty::before { background: repeating-linear-gradient(90deg, rgba(214, 224, 255, .26) 0 6px, transparent 6px 10px); }
html[data-theme="dark"] .is-filled .field { background: rgba(174, 191, 255, .08); border-color: rgba(174, 191, 255, .26); }
html[data-theme="dark"] .pending { background: rgba(255, 255, 255, .04); border-color: rgba(214, 224, 255, .26); }

html[data-theme="dark"] .band { background: #0A1124; color: #E8ECF7; box-shadow: inset 0 1px 0 var(--line-2), inset 0 -1px 0 var(--line-2); }
html[data-theme="dark"] .band::before { background: radial-gradient(closest-side, rgba(47, 82, 230, .5), rgba(47, 82, 230, 0)); }

html[data-theme="dark"] .cta-card { background: linear-gradient(135deg, rgba(32, 45, 78, .78), rgba(20, 30, 52, .55)); }
html[data-theme="dark"] .cta-card::before { background: radial-gradient(closest-side, rgba(64, 98, 255, .22), rgba(64, 98, 255, 0)); }

html[data-theme="dark"] .plates li, html[data-theme="dark"] .check, html[data-theme="dark"] .faq details, html[data-theme="dark"] .info-list li { background: var(--card-flat); }
html[data-theme="dark"] .plates .ico, html[data-theme="dark"] .case-btn .ico { background: var(--frost-2); color: var(--blue-lt); border-color: rgba(174, 191, 255, .2); }
html[data-theme="dark"] .check .n { color: var(--blue-lt); }
html[data-theme="dark"] .limits, html[data-theme="dark"] .tips { border-color: rgba(214, 224, 255, .26); }
html[data-theme="dark"] .portal-ui .bar i { background: rgba(214, 224, 255, .22); }
html[data-theme="dark"] .portal-ui li.on { background: rgba(174, 191, 255, .12); }

html[data-theme="dark"] .case { background: var(--card); }
html[data-theme="dark"] .case-btn .pm { background: rgba(255, 255, 255, .06); border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .case.is-open .case-btn .pm { background: var(--ink); color: #0D172C; border-color: var(--ink); }

html[data-theme="dark"] .steps::before { background: linear-gradient(90deg, var(--blue-lt), rgba(174, 191, 255, .14)); }
html[data-theme="dark"] .steps li::before { color: var(--blue-lt); background: var(--paper); border-color: rgba(174, 191, 255, .35); box-shadow: 0 0 0 6px var(--stone); }
html[data-theme="dark"] .steps li:last-child::before { background: var(--blue); color: #fff; border-color: var(--blue); }

html[data-theme="dark"] .faq summary::after { background: rgba(255, 255, 255, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%23EEF1F7' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--line); }

html[data-theme="dark"] .form-note { background: var(--frost-2); border-color: rgba(174, 191, 255, .2); }
html[data-theme="dark"] input, html[data-theme="dark"] textarea, html[data-theme="dark"] select { background: #0A1020; color: var(--ink); border-color: rgba(214, 224, 255, .42); }
html[data-theme="dark"] input:focus, html[data-theme="dark"] textarea:focus { border-color: var(--blue-lt); box-shadow: 0 0 0 4px rgba(174, 191, 255, .2); }
html[data-theme="dark"] input:disabled, html[data-theme="dark"] textarea:disabled, html[data-theme="dark"] select:disabled { background: rgba(255, 255, 255, .04); color: var(--ink-3); }

html[data-theme="dark"] .footer { background: var(--stone-2); }
html[data-theme="dark"] .footer a { color: var(--ink); }

html[data-theme="dark"] .th-l { display: none !important; }
html[data-theme="dark"] .th-d { display: block !important; }

@media (max-width: 960px) {
  html[data-theme="dark"] .menu-scrim { background: rgba(3, 6, 14, .6); }
  html[data-theme="dark"] .menu { background: rgba(20, 29, 51, .97); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .85), 0 0 0 1px var(--line-2); }
  html[data-theme="dark"] .menu-open .header { background: var(--stone); }
  html[data-theme="dark"] .menu li a[aria-current="page"] { background: rgba(174, 191, 255, .12); color: var(--blue-lt); }
}

/* 2) Repli sans JavaScript : le site suit prefers-color-scheme */
@media (prefers-color-scheme: dark) {

html:not([data-theme]) {
  color-scheme: dark;
  --stone: #0E1526; --stone-2: #141D33; --stone-3: #172039; --paper: #19233D;
  --ink: #EEF1F7; --ink-2: #C7CEDD; --ink-3: #A3ACC1;
  --blue: #2F52E6; --blue-2: #AEBFFF; --blue-lt: #AEBFFF; --frost: #26355E; --frost-2: #1B2847;
  --sage: #8FB39A; --sage-2: #1D3227; --sage-ink: #BFE0C8;
  --line: rgba(214, 224, 255, .16); --line-2: rgba(214, 224, 255, .09);
  --glass: rgba(21, 31, 54, .8); --glass-edge: rgba(214, 224, 255, .13);
  --card: linear-gradient(180deg, rgba(30, 42, 72, .72), rgba(22, 32, 56, .5));
  --card-flat: rgba(26, 37, 64, .62);
  --shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 24px 60px -24px rgba(0, 0, 0, .7), 0 4px 14px -6px rgba(0, 0, 0, .45);
  --shadow-sm: 0 1px 0 rgba(255,255,255,.05) inset, 0 10px 28px -14px rgba(0, 0, 0, .6);
}
html:not([data-theme]) body { background: var(--stone); color: var(--ink); }
html:not([data-theme]) a:hover { color: #fff; }
html:not([data-theme]) :focus-visible { outline-color: var(--blue-lt); }
html:not([data-theme]) .skip, html:not([data-theme]) .skip:focus { background: var(--blue-lt); color: #0D172C; }
html:not([data-theme]) .notice .dot { background: #42D58B; box-shadow: 0 0 0 4px rgba(66, 213, 139, .18); }

html:not([data-theme]) .header.is-scrolled { background: rgba(14, 21, 38, .8); box-shadow: 0 1px 0 var(--line); }
html:not([data-theme]) .nav a:hover { background: rgba(255, 255, 255, .07); color: var(--ink); }
html:not([data-theme]) .nav a[aria-current="page"] { background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
html:not([data-theme]) .menu-btn, html:not([data-theme]) .theme-btn { background: rgba(255, 255, 255, .06); color: var(--ink); }
html:not([data-theme]) .menu-btn:hover, html:not([data-theme]) .theme-btn:hover { background: rgba(255, 255, 255, .12); }
html:not([data-theme]) .theme-btn[aria-expanded="true"] { background: var(--frost-2); border-color: rgba(174, 191, 255, .4); }
html:not([data-theme]) .theme-pop { background: rgba(22, 31, 54, .98); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 28px 70px -20px rgba(0, 0, 0, .8), 0 0 0 1px var(--line-2); }
html:not([data-theme]) .theme-opt:hover { background: rgba(255, 255, 255, .07); }
html:not([data-theme]) .theme-opt:has(input:checked) { background: rgba(174, 191, 255, .14); }
html:not([data-theme]) .theme-pop input[type="radio"] { accent-color: var(--blue-lt); }
html:not([data-theme]) .theme-pop input[type="radio"]:focus-visible { outline-color: var(--blue-lt); }
html:not([data-theme]) .theme-pop input[type="radio"]:checked { border-color: var(--blue-lt); background: radial-gradient(circle, var(--blue-lt) 0 4.4px, transparent 5px); }

html:not([data-theme]) .btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 12px 30px -10px rgba(47, 82, 230, .85); }
html:not([data-theme]) .btn-primary:hover { background: #3F60EE; color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 16px 34px -10px rgba(63, 96, 238, .95); }
html:not([data-theme]) .btn-ghost { background: rgba(255, 255, 255, .06); color: var(--ink); border-color: rgba(214, 224, 255, .22); }
html:not([data-theme]) .btn-ghost:hover { background: rgba(255, 255, 255, .13); color: #fff; }

html:not([data-theme]) .tag { background: rgba(255, 255, 255, .06); color: var(--ink-2); border-color: var(--line); }
html:not([data-theme]) .chip-ok { border-color: rgba(143, 179, 154, .35); }

html:not([data-theme]) .stage .frame { background: var(--stone-3); box-shadow: 0 1px 0 rgba(255,255,255,.07) inset, 0 0 0 1px rgba(214,224,255,.06), 0 40px 80px -40px rgba(0, 0, 0, .8); }
html:not([data-theme]) .stage .glow { background: radial-gradient(closest-side, rgba(64, 98, 255, .34), rgba(64, 98, 255, 0)); }
html:not([data-theme]) .stage .floor { background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); }
html:not([data-theme]) .say .bubble { background: #212D4B; border-color: var(--line); color: var(--ink); }
html:not([data-theme]) .say .bubble.ai { background: var(--blue); color: #fff; border-color: transparent; }

html:not([data-theme]) .tile { background: var(--card); }
html:not([data-theme]) .tile::after { background: radial-gradient(520px circle at var(--mx) var(--my), rgba(174, 191, 255, .16), rgba(174, 191, 255, 0) 45%); mix-blend-mode: screen; }
html:not([data-theme]) .tile:hover { color: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 34px 70px -28px rgba(0, 0, 0, .8), 0 6px 18px -8px rgba(0, 0, 0, .5), 0 0 0 1px rgba(174, 191, 255, .18); }
html:not([data-theme]) .tile-more { color: var(--blue-lt); }
html:not([data-theme]) .tile-media img { box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 16px 30px -22px rgba(0, 0, 0, .8); }
html:not([data-theme]) .call { background: radial-gradient(120% 90% at 80% 0%, rgba(64, 98, 255, .24), rgba(64, 98, 255, 0) 60%), linear-gradient(180deg, #1B2643, #141D33); border-color: var(--line); }
html:not([data-theme]) .call-ico { box-shadow: 0 10px 24px -10px rgba(47, 82, 230, .95); }
html:not([data-theme]) .voice i { background: linear-gradient(180deg, #AEBFFF, #4D6CF0); }

html:not([data-theme]) .panel { background: var(--card); }
html:not([data-theme]) .field { background: rgba(255, 255, 255, .035); border-color: var(--line-2); }
html:not([data-theme]) .field .empty::before { background: repeating-linear-gradient(90deg, rgba(214, 224, 255, .26) 0 6px, transparent 6px 10px); }
html:not([data-theme]) .is-filled .field { background: rgba(174, 191, 255, .08); border-color: rgba(174, 191, 255, .26); }
html:not([data-theme]) .pending { background: rgba(255, 255, 255, .04); border-color: rgba(214, 224, 255, .26); }

html:not([data-theme]) .band { background: #0A1124; color: #E8ECF7; box-shadow: inset 0 1px 0 var(--line-2), inset 0 -1px 0 var(--line-2); }
html:not([data-theme]) .band::before { background: radial-gradient(closest-side, rgba(47, 82, 230, .5), rgba(47, 82, 230, 0)); }

html:not([data-theme]) .cta-card { background: linear-gradient(135deg, rgba(32, 45, 78, .78), rgba(20, 30, 52, .55)); }
html:not([data-theme]) .cta-card::before { background: radial-gradient(closest-side, rgba(64, 98, 255, .22), rgba(64, 98, 255, 0)); }

html:not([data-theme]) .plates li, html:not([data-theme]) .check, html:not([data-theme]) .faq details, html:not([data-theme]) .info-list li { background: var(--card-flat); }
html:not([data-theme]) .plates .ico, html:not([data-theme]) .case-btn .ico { background: var(--frost-2); color: var(--blue-lt); border-color: rgba(174, 191, 255, .2); }
html:not([data-theme]) .check .n { color: var(--blue-lt); }
html:not([data-theme]) .limits, html:not([data-theme]) .tips { border-color: rgba(214, 224, 255, .26); }
html:not([data-theme]) .portal-ui .bar i { background: rgba(214, 224, 255, .22); }
html:not([data-theme]) .portal-ui li.on { background: rgba(174, 191, 255, .12); }

html:not([data-theme]) .case { background: var(--card); }
html:not([data-theme]) .case-btn .pm { background: rgba(255, 255, 255, .06); border-color: var(--line); color: var(--ink); }
html:not([data-theme]) .case.is-open .case-btn .pm { background: var(--ink); color: #0D172C; border-color: var(--ink); }

html:not([data-theme]) .steps::before { background: linear-gradient(90deg, var(--blue-lt), rgba(174, 191, 255, .14)); }
html:not([data-theme]) .steps li::before { color: var(--blue-lt); background: var(--paper); border-color: rgba(174, 191, 255, .35); box-shadow: 0 0 0 6px var(--stone); }
html:not([data-theme]) .steps li:last-child::before { background: var(--blue); color: #fff; border-color: var(--blue); }

html:not([data-theme]) .faq summary::after { background: rgba(255, 255, 255, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%23EEF1F7' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--line); }

html:not([data-theme]) .form-note { background: var(--frost-2); border-color: rgba(174, 191, 255, .2); }
html:not([data-theme]) input, html:not([data-theme]) textarea, html:not([data-theme]) select { background: #0A1020; color: var(--ink); border-color: rgba(214, 224, 255, .42); }
html:not([data-theme]) input:focus, html:not([data-theme]) textarea:focus { border-color: var(--blue-lt); box-shadow: 0 0 0 4px rgba(174, 191, 255, .2); }
html:not([data-theme]) input:disabled, html:not([data-theme]) textarea:disabled, html:not([data-theme]) select:disabled { background: rgba(255, 255, 255, .04); color: var(--ink-3); }

html:not([data-theme]) .footer { background: var(--stone-2); }
html:not([data-theme]) .footer a { color: var(--ink); }

html:not([data-theme]) .th-l { display: none !important; }
html:not([data-theme]) .th-d { display: block !important; }

@media (max-width: 960px) {
  html:not([data-theme]) .menu-scrim { background: rgba(3, 6, 14, .6); }
  html:not([data-theme]) .menu { background: rgba(20, 29, 51, .97); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .85), 0 0 0 1px var(--line-2); }
  html:not([data-theme]) .menu-open .header { background: var(--stone); }
  html:not([data-theme]) .menu li a[aria-current="page"] { background: rgba(174, 191, 255, .12); color: var(--blue-lt); }
}
}

/* Modes à contraste forcé : on rend la main au bouton radio natif (le point dessiné en dégradé y disparaîtrait). */
@media (forced-colors: active) { .theme-pop input[type="radio"] { appearance: auto; -webkit-appearance: auto; background: none; } }
