/* ==========================================================================
   THÈME CLAIR — posé par js/site-header.js (html[data-theme="light"]).

   Le site est dessiné pour la nuit : ce fichier renverse d'abord les jetons
   du UI kit (fonds, texte, bordures, verre), puis corrige les quelques
   couleurs écrites en dur dans les feuilles des pages publiques. L'espace de
   jeu n'est jamais éclairci (le téléphone et la tablette restent sombres).
   ========================================================================== */

:root[data-theme="light"] {
    --nw-bg: #f6f3fb;
    --nw-bg-alt: #efe9f8;
    --nw-bg-elev: #ffffff;
    --nw-bg-elev-2: #f4effb;

    --nw-glass: rgba(91, 33, 182, .035);
    --nw-glass-hover: rgba(91, 33, 182, .075);
    --nw-glass-strong: rgba(255, 255, 255, .86);

    --nw-border: rgba(126, 34, 206, .2);
    --nw-border-strong: rgba(126, 34, 206, .42);
    --nw-border-soft: rgba(36, 14, 70, .1);
    --nw-hairline: rgba(36, 14, 70, .12);

    --nw-text: #1c1130;
    --nw-text-dim: #54476b;
    --nw-text-faint: #85799a;

    --nw-primary: #9333ea;
    --nw-primary-light: #7e22ce;
    --nw-primary-dark: #6b21a8;
    --nw-gradient-text: linear-gradient(100deg, #7e22ce 0%, #9333ea 45%, #c026d3 100%);
    --nw-gradient-edge: linear-gradient(140deg, rgba(126, 34, 206, .35), rgba(126, 34, 206, 0) 38%, rgba(126, 34, 206, 0) 62%, rgba(192, 38, 211, .3));

    --nw-glow: 0 0 18px rgba(147, 51, 234, .22);
    --nw-glow-strong: 0 0 32px rgba(147, 51, 234, .3);
    --nw-shadow-sm: 0 1px 3px rgba(36, 14, 70, .08);
    --nw-shadow: 0 2px 8px rgba(36, 14, 70, .07), 0 10px 28px rgba(36, 14, 70, .08);
    --nw-shadow-lg: 0 6px 16px rgba(36, 14, 70, .1), 0 24px 56px rgba(36, 14, 70, .14);
    --nw-inset: inset 0 1px 0 rgba(255, 255, 255, .7);
}

/* Le passage d'un thème à l'autre se fond, sans animer toute la page au chargement */
html.is-theming, html.is-theming *, html.is-theming *::before, html.is-theming *::after {
    transition: background-color .3s ease, color .3s ease, border-color .3s ease !important;
}

/* ---------- Ambiance ---------- */
[data-theme="light"] body::after { opacity: .018; mix-blend-mode: multiply; }
[data-theme="light"] .nw-aurora { opacity: .32; }
[data-theme="light"] .nw-starfield { opacity: .18; filter: invert(1); }
[data-theme="light"] .nw-grid-bg { opacity: .4; }

/* ---------- En-tête, menus, tiroir ---------- */
[data-theme="light"] .hd { background: rgba(255, 255, 255, .72); }
[data-theme="light"] .hd.is-scrolled, [data-theme="light"] .hd.is-compact { background: rgba(255, 255, 255, .94); }
[data-theme="light"] .hd-link:hover, [data-theme="light"] .hd-menu.is-open > .hd-link { background: rgba(36, 14, 70, .06); }
[data-theme="light"] .hd-panel { background: rgba(255, 255, 255, .98); }
[data-theme="light"] .hd-live b { color: var(--nw-text); }
[data-theme="light"] .hd-live { color: #15803d; }
[data-theme="light"] .hd-live-max { color: rgba(21, 128, 61, .6); }
[data-theme="light"] .hd-drawer { background: rgba(250, 248, 253, .98); }
[data-theme="light"] .nw-brand-banner { filter: drop-shadow(0 1px 2px rgba(36, 14, 70, .25)); }
@media (hover: hover) and (min-width: 1081px) {
    [data-theme="light"] .hd-menu:hover > .hd-link { background: rgba(36, 14, 70, .06); }
}

/* ---------- Composants du UI kit ---------- */
[data-theme="light"] .nw-card, [data-theme="light"] .nw-acc-card { background: #fff; box-shadow: var(--nw-shadow-sm); }
[data-theme="light"] .nw-input, [data-theme="light"] .nw-select, [data-theme="light"] .nw-textarea { background: #fff; color: var(--nw-text); }
[data-theme="light"] .nw-btn--ghost { color: var(--nw-text); }
[data-theme="light"] .nw-btn--outline { color: var(--nw-primary-dark); }
[data-theme="light"] .nw-footer { background: #efe9f8; }
[data-theme="light"] .nw-skeleton { background: linear-gradient(90deg, rgba(36, 14, 70, .05), rgba(36, 14, 70, .1), rgba(36, 14, 70, .05)); background-size: 200% 100%; }

/* ---------- Pages publiques ---------- */
[data-theme="light"] .sp-bar-nav a[aria-current] { color: var(--nw-primary-dark); background: rgba(147, 51, 234, .12); }
[data-theme="light"] .pm-price b { color: var(--nw-text); }
[data-theme="light"] .pm-offer-media { background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--pm-tint) 35%, transparent), transparent 70%), #f1eafa; }
[data-theme="light"] .pm-slots { color: var(--nw-text); }

/* ---------- Espace membre ---------- */
[data-theme="light"] .nw-acc-cover { opacity: .55; }
[data-theme="light"] .nw-acc-tabs { background: rgba(255, 255, 255, .85); }
[data-theme="light"] .nw-acc-progress, [data-theme="light"] .nw-acc-vital-bar { background: rgba(36, 14, 70, .08); }
[data-theme="light"] .nw-acc-money > div, [data-theme="light"] .nw-acc-phone, [data-theme="light"] .nw-acc-goals > div,
[data-theme="light"] .nw-acc-bio { background: rgba(36, 14, 70, .035); }
