/* ===========================================================
   AGENCE MOMAËL — Mode jour
   Chargé seulement sur les pages qui l'activent (<html data-themeable>) et quand
   le réglage admin « theme_modes » l'autorise. N'a aucun effet en mode nuit.

   Partie 1 : les variables du mode jour (c'est ici qu'on règle les couleurs).
   Partie 2 : surcharges générées à partir de style.css, buyback.css et des styles
              intégrés des pages pilotes — uniquement les couleurs pensées pour un fond sombre.
   =========================================================== */

html[data-themeable][data-theme="light"] {
  color-scheme: light;

  /* Fonds et textes */
  --night: #F7F8FB;
  --night-2: #EFF1F7;
  --panel: #FFFFFF;
  --text: #14122B;
  --text-muted: #46425F;

  /* Couleurs d'accent utilisées comme TEXTE : plus foncées pour rester lisibles sur fond clair
     (contraste d'au moins 6 mesuré sur le gris de la page). L'or et le violet d'origine
     gardent leur éclat pour les boutons et les fonds. */
  --gold-ink: #765A1A;
  --purple-ink: #5A3EC0;
  --danger-ink: #B01E1E;
  --success-ink: #0A6A50;
  --warn-ink: #864600;

  /* Voiles transparents écrits en dur dans les pages (rgba(var(--ov, 255,255,255), …)) :
     blancs sur fond sombre, encre foncée sur fond clair. */
  --ov: 20,18,43;

  /* Fonds sombres écrits en dur dans les pages (bleu nuit) : deviennent le gris clair de la page. */
  --panel-deep: #F7F8FB;
  --panel-deep-rgb: 247,248,251;

  /* Vendre mes points (variables --mx-*) */
  --mx-bg: #F7F8FB;
  --mx-bg-2: #FFFFFF;
  --mx-surface: rgba(255,255,255,.86);
  --mx-surface-strong: #FFFFFF;
  --mx-text: #14122B;
  --mx-muted: #46425F;
  --mx-line: rgba(20,18,43,.12);
  --mx-shadow: 0 24px 60px rgba(20,18,43,.12);
}

/* ===== Partie 2 : surcharges générées ===== */

/* ===== style.css (composants partagés) : 95 règles ===== */
html[data-themeable][data-theme="light"] body { background:radial-gradient(ellipse at top, #FFFFFF 0%, var(--night) 55%, #F4F5F9 100%); }
html[data-themeable][data-theme="light"] .announce-bar { background:linear-gradient(180deg, rgba(244,245,249,0.82) 0%, rgba(244,245,249,0.5) 55%, transparent 100%); }
html[data-themeable][data-theme="light"] .announce-item::after { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .announce-item-expired b { color:#9C4141; }
html[data-themeable][data-theme="light"] .banner-headline { color:var(--text); }
html[data-themeable][data-theme="light"] .banner-subtext { color:var(--text); }
html[data-themeable][data-theme="light"] .banner-dot { background:rgba(20,18,43,0.22); }
html[data-themeable][data-theme="light"] .hero .eyebrow { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .live-ticker-text b { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .hero-track-pill { background:linear-gradient(160deg, rgba(20,18,43,0.05), rgba(20,18,43,0.02)); }
html[data-themeable][data-theme="light"] .hero-track-pill .htp-icon { color:var(--gold-ink); }
@media (hover: hover) {
  html[data-themeable][data-theme="light"] .hero-track-pill:hover { background:linear-gradient(160deg, rgba(232,184,75,0.09), rgba(20,18,43,0.02)); }
  html[data-themeable][data-theme="light"] .hero-track-pill:hover .htp-arrow { color:var(--gold-ink); }
}
html[data-themeable][data-theme="light"] .trust-chip .dot { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .app-hub-filter-btn { border:1px solid rgba(20,18,43,0.15); background:rgba(20,18,43,0.04); }
html[data-themeable][data-theme="light"] .product-card { background:linear-gradient(165deg, var(--panel), #F4F5F9); border:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .product-card .thumb::after { background:linear-gradient(to top, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.1) 55%); }
html[data-themeable][data-theme="light"] .corner-badge { color:var(--text); }
html[data-themeable][data-theme="light"] .recharging-watermark { color:var(--text); }
html[data-themeable][data-theme="light"] .product-card .from-price { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .btn-track-shine::after { background:linear-gradient(100deg, transparent, rgba(20,18,43,0.4), transparent); }
html[data-themeable][data-theme="light"] .pm-choice-modal { background:linear-gradient(165deg, var(--panel), #F4F5F9); }
html[data-themeable][data-theme="light"] .pm-choice-amount b { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .pm-choice-btn { border:1px solid rgba(20,18,43,0.12); background:rgba(20,18,43,0.03); }
html[data-themeable][data-theme="light"] .pm-choice-icon { background:rgba(20,18,43,0.06); }
html[data-themeable][data-theme="light"] .pm-choice-blocked { background:rgba(20,18,43,0.03); border-color:rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .coin-face { border:2px solid rgba(20,18,43,0.34); }
html[data-themeable][data-theme="light"] .coin-shine { background:linear-gradient(100deg, transparent, rgba(20,18,43,0.5), transparent); }
html[data-themeable][data-theme="light"] .coin-amount-label b { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .product-hero { border:1px solid rgba(20,18,43,0.15); }
html[data-themeable][data-theme="light"] .seller-id { background:rgba(20,18,43,0.06); }
html[data-themeable][data-theme="light"] .range-note b { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .recharging-hero-badge { color:var(--text); }
html[data-themeable][data-theme="light"] .app-tile { background:linear-gradient(165deg, var(--panel), #F4F5F9); border:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .app-tile-img { background:rgba(20,18,43,0.05); }
html[data-themeable][data-theme="light"] .home-section-head a { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .tier-card { background:linear-gradient(160deg, rgba(255,255,255,0.92), rgba(255,255,255,0.92)); border:1px solid rgba(20,18,43,0.15); }
html[data-themeable][data-theme="light"] .tier-card .tier-coins { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .tier-card.selected { background:linear-gradient(160deg, rgba(232,184,75,0.17), rgba(255,255,255,0.92)); }
html[data-themeable][data-theme="light"] .tier-error { color:var(--danger-ink); }
html[data-themeable][data-theme="light"] .order-panel { background:linear-gradient(165deg, var(--panel), #F4F5F9); border:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .field label .req { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .field input,
html[data-themeable][data-theme="light"] .field textarea { border:1px solid rgba(20,18,43,0.21); background:rgba(20,18,43,0.04); }
html[data-themeable][data-theme="light"] .field .error { color:var(--danger-ink); }
html[data-themeable][data-theme="light"] .backup-note a { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .promo-banner .promo-inner { background:linear-gradient(100deg, rgba(232,184,75,0.22), rgba(232,184,75,0.22) 45%, rgba(232,184,75,0.22)); color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .promo-banner .promo-inner b { color:var(--text); }
html[data-themeable][data-theme="light"] .trust-payment-bar { background:rgba(20,18,43,0.04); border:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .trust-nav-btn { border:1px solid rgba(20,18,43,0.24); background:rgba(255,255,255,0.85); color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .trust-logo { background:rgba(20,18,43,0.06); border:1px solid rgba(20,18,43,0.15); }
html[data-themeable][data-theme="light"] .how-step { background:linear-gradient(160deg, var(--panel), #F4F5F9); border:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .testimonial-card { background:linear-gradient(160deg, var(--panel), #F4F5F9); border:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .testimonial-card .stars { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .faq-item { border-bottom:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .faq-question .icon { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .hotes-teaser { background:linear-gradient(155deg, #FFFFFF, #FFFFFF 60%, #F4F5F9); }
html[data-themeable][data-theme="light"] .hotes-teaser .eyebrow { color:#31675C; }
html[data-themeable][data-theme="light"] .hotes-teaser h2 { color:var(--text); }
html[data-themeable][data-theme="light"] .hotes-teaser p { color:var(--text-muted); }
html[data-themeable][data-theme="light"] .perks-teaser .eyebrow { color:var(--purple-ink); }
html[data-themeable][data-theme="light"] .app-card .code { color:#31675C; }
html[data-themeable][data-theme="light"] .footer-pro h4 { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .footer-pro .f-links a { border-bottom:1px solid rgba(20,18,43,0.08); }
html[data-themeable][data-theme="light"] .footer-pro .f-contact-item svg { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .footer-pro .social-row a { background:rgba(20,18,43,0.06); border:1px solid rgba(20,18,43,0.18); }
html[data-themeable][data-theme="light"] .footer-pro .social-row a:hover { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .footer-pro .hours b { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .footer-pro .copyright { border-top:1px solid rgba(20,18,43,0.09); }
html[data-themeable][data-theme="light"] .footer-pro .copyright-mark { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .footer-pro .copyright b { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .ad-slot { border:1px dashed rgba(20,18,43,0.27); }
html[data-themeable][data-theme="light"] .ad-slot a { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .phone-row select { border:1px solid rgba(20,18,43,0.21); background:rgba(20,18,43,0.04); }
html[data-themeable][data-theme="light"] .field .phone-input-wrap svg,
html[data-themeable][data-theme="light"] .auth-field .phone-input-wrap svg { color:#136B34; }
html[data-themeable][data-theme="light"] .bonus-pct { color:#31675C; }
html[data-themeable][data-theme="light"] #ai-chat-panel { background:linear-gradient(165deg, var(--panel), #F4F5F9); border:1px solid rgba(20,18,43,0.15); }
html[data-themeable][data-theme="light"] .ai-chat-header { border-bottom:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .ai-msg.bot { background:rgba(20,18,43,0.06); }
html[data-themeable][data-theme="light"] .ai-msg.bot b { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .ai-msg.bot a { color:#31675C; }
html[data-themeable][data-theme="light"] .ai-order-head { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .ai-chat-input-row { border-top:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .ai-chat-input-row input { border:1px solid rgba(20,18,43,0.21); background:rgba(20,18,43,0.04); }
html[data-themeable][data-theme="light"] .ph-order-progress { background:rgba(20,18,43,0.1); }
html[data-themeable][data-theme="light"] #tracked-order-reminder { background:linear-gradient(155deg, rgba(232,184,75,0.22), rgba(232,184,75,0.22)); }
html[data-themeable][data-theme="light"] #tracked-order-reminder .tor-close { background:rgba(20,18,43,0.08); color:rgba(20,18,43,1); }
html[data-themeable][data-theme="light"] #tracked-order-reminder .tor-icon { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] #reward-code-reminder { background:linear-gradient(155deg, #FFFFFF, #FFFFFF); }
html[data-themeable][data-theme="light"] #reward-code-reminder .tor-close { background:rgba(20,18,43,0.08); color:rgba(20,18,43,1); }
html[data-themeable][data-theme="light"] #reward-code-reminder .tor-icon { color:#31675C; }
html[data-themeable][data-theme="light"] #reward-code-reminder .tor-text { color:var(--text); }
html[data-themeable][data-theme="light"] .boloup-check-loading { background:rgba(20,18,43,0.05); }
html[data-themeable][data-theme="light"] .boloup-check-error { color:#855050; }
html[data-themeable][data-theme="light"] .boloup-check-spinner { border:2px solid rgba(20,18,43,0.3); }
html[data-themeable][data-theme="light"] .boloup-check-text b { color:#31675C; }

/* ===== buyback.css (Vendre mes points) : 35 règles ===== */
html[data-themeable][data-theme="light"] .buyback-topbar { background:linear-gradient(180deg,rgba(255,255,255,0.92),rgba(255,255,255,0.7)); }
html[data-themeable][data-theme="light"] .buyback-back { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .buyback-step-dot { background:rgba(20,18,43,0.08); }
html[data-themeable][data-theme="light"] .buyback-card { background:linear-gradient(145deg,rgba(255,255,255,0.86),rgba(255,255,255,0.86)); }
html[data-themeable][data-theme="light"] .buyback-eyebrow { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .buyback-hero { background:radial-gradient(250px 180px at 92% 20%,rgba(124,77,255,.34),transparent 70%),
    linear-gradient(135deg,#FFFFFF 0%,#F4F5F9 58%,#F4F5F9 100%); }
html[data-themeable][data-theme="light"] .buyback-hero__eyebrow { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .buyback-eligibility.is-ok { color:var(--success-ink); }
html[data-themeable][data-theme="light"] .buyback-eligibility.is-ko { color:var(--warn-ink); }
html[data-themeable][data-theme="light"] .buyback-choice { background:linear-gradient(145deg,rgba(255,255,255,0.7),rgba(255,255,255,0.7)); }
html[data-themeable][data-theme="light"] .buyback-choice.is-selected { background:radial-gradient(220px 160px at 50% 0%,rgba(245,185,66,.11),transparent 72%),
    linear-gradient(145deg,rgba(255,255,255,0.95),rgba(255,255,255,0.95)); }
html[data-themeable][data-theme="light"] .buyback-app-card { background:rgba(20,18,43,0.03); }
html[data-themeable][data-theme="light"] .buyback-app-card img { background:rgba(20,18,43,0.08); }
html[data-themeable][data-theme="light"] .buyback-field input,
html[data-themeable][data-theme="light"] .buyback-field select { border:1px solid rgba(20,18,43,0.15); background:rgba(255,255,255,0.7); }
html[data-themeable][data-theme="light"] .buyback-help-link { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .buyback-points-error { color:var(--danger-ink); }
html[data-themeable][data-theme="light"] .buyback-number { border:1px solid rgba(20,18,43,0.15); background:rgba(255,255,255,0.7); }
html[data-themeable][data-theme="light"] .buyback-upload-zone { border:2px dashed rgba(20,18,43,0.24); }
html[data-themeable][data-theme="light"] .buyback-upload-zone:active { background:rgba(20,18,43,0.02); }
html[data-themeable][data-theme="light"] .buyback-flow { background:rgba(20,18,43,0.03); }
html[data-themeable][data-theme="light"] .buyback-flow__row { border-bottom:1px solid rgba(20,18,43,0.11); }
html[data-themeable][data-theme="light"] .buyback-flow__final strong { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .buyback-flow-skeleton { background:linear-gradient(90deg,rgba(20,18,43,0.05),rgba(20,18,43,0.1),rgba(20,18,43,0.05)); }
html[data-themeable][data-theme="light"] .buyback-provider-card { background:rgba(20,18,43,0.03); }
html[data-themeable][data-theme="light"] .buyback-id-card { background:radial-gradient(240px 160px at 50% 0%,rgba(245,185,66,.14),transparent 70%),
    linear-gradient(145deg,rgba(255,255,255,0.95),rgba(255,255,255,0.95)); }
html[data-themeable][data-theme="light"] .buyback-id-value { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .buyback-warning-banner { color:var(--warn-ink); }
html[data-themeable][data-theme="light"] .buyback-timeline-item::before { background:rgba(20,18,43,0.08); }
html[data-themeable][data-theme="light"] .buyback-timeline-dot { background:rgba(20,18,43,0.08); }
html[data-themeable][data-theme="light"] .buyback-timeline-text span { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .buyback-sticky { background:linear-gradient(180deg,transparent,rgba(244,245,249,0.94) 28%); }
html[data-themeable][data-theme="light"] .buyback-secondary { background:rgba(20,18,43,0.05); }
html[data-themeable][data-theme="light"] .buyback-secondary:active { background:rgba(20,18,43,0.1); }
html[data-themeable][data-theme="light"] .buyback-error-msg { color:var(--danger-ink); }
html[data-themeable][data-theme="light"] .buyback-final-amount { color:var(--gold-ink); }

/* ===== accueil.php (style intégré) : 23 règles ===== */
html[data-themeable][data-theme="light"] .rank-card { background:linear-gradient(160deg, var(--panel), #F4F5F9); border:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .rank-info .next b { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .rank-pts .n { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .resume-logo { background:rgba(20,18,43,0.06); }
html[data-themeable][data-theme="light"] .resume-body .lbl { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .resume-go { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .feat-card { background:linear-gradient(160deg, var(--panel), #F4F5F9); }
html[data-themeable][data-theme="light"] .offers-teaser-icon { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .offers-teaser-arrow { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .feat-img-fallback { background:linear-gradient(135deg, #FFFFFF, #FFFFFF, var(--gold)); }
html[data-themeable][data-theme="light"] .feat-img-fallback::after { background:radial-gradient(circle at 25% 25%, rgba(20,18,43,0.14), transparent 55%); }
html[data-themeable][data-theme="light"] .feat-tag-expired { background:rgba(20,18,43,0.08); }
html[data-themeable][data-theme="light"] .feat-ct-unit { background:linear-gradient(180deg, #FFFFFF, #F4F5F9); border:1px solid rgba(20,18,43,0.11); }
html[data-themeable][data-theme="light"] .feat-ct-unit span { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .feat-countdown.soon .feat-ct-unit span { color:#9C4141; }
html[data-themeable][data-theme="light"] .feat-btn { border:1px solid rgba(20,18,43,0.18); background:rgba(20,18,43,0.05); }
html[data-themeable][data-theme="light"] .feat-btn.on { color:#9C4141; }
html[data-themeable][data-theme="light"] .feat-btn.on-int { color:#31675C; }
html[data-themeable][data-theme="light"] .feat-btn.on-rem { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .app-tile { background:linear-gradient(165deg, var(--panel), #F4F5F9); border:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .app-tile-img { background:rgba(20,18,43,0.05); }
html[data-themeable][data-theme="light"] .home-section-head a { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .home-quick a { background:rgba(20,18,43,0.04); border:1px solid rgba(20,18,43,0.12); }

/* ===== mes-rachats.php (style intégré) : 14 règles ===== */
html[data-themeable][data-theme="light"] .mr-card { background:linear-gradient(160deg, var(--panel), #F4F5F9); border:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .mr-badge.tone-muted { color:var(--text-muted); }
html[data-themeable][data-theme="light"] .mr-badge.tone-info { color:var(--purple-ink); }
html[data-themeable][data-theme="light"] .mr-badge.tone-ok { color:#31675C; }
html[data-themeable][data-theme="light"] .mr-badge.tone-warn { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .mr-badge.tone-bad { color:#9C4141; }
html[data-themeable][data-theme="light"] .mr-back { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .mr-sell { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .mr-back-list { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .mr-row { border-bottom:1px solid rgba(20,18,43,0.09); }
html[data-themeable][data-theme="light"] .mr-row.total > b { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .mr-tl li::before { background:rgba(20,18,43,0.18); }
html[data-themeable][data-theme="light"] .mr-tl li::after { background:rgba(20,18,43,0.1); }
html[data-themeable][data-theme="light"] .mr-note { background:rgba(20,18,43,0.05); }

/* ===== index.php (style intégré) : 4 règles ===== */
html[data-themeable][data-theme="light"] .ob-banner-card { background:linear-gradient(180deg,#F4F5F9,#F4F5F9); }
html[data-themeable][data-theme="light"] .ob-banner-close { border:1px solid rgba(20,18,43,0.18); background:rgba(20,18,43,0.05); color:var(--text-muted); }
html[data-themeable][data-theme="light"] .ob-banner-card p { color:var(--text); }
html[data-themeable][data-theme="light"] .ob-banner-link { background:rgba(20,18,43,0.06); border:1px solid rgba(20,18,43,0.18) !important; color:var(--text-muted); }

/* ===== confirmation.php (style intégré) : 11 règles ===== */
html[data-themeable][data-theme="light"] .auth-back-fab { border:1px solid rgba(20,18,43,0.18); background:rgba(255,255,255,0.75); }
html[data-themeable][data-theme="light"] .confirm-text.good { color:#31675C; }
html[data-themeable][data-theme="light"] .confirm-estimate { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .flip-digit { background:linear-gradient(160deg, var(--panel), #F4F5F9); color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .proof-empty-state { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .proof-status-msg.success { color:#31675C; }
html[data-themeable][data-theme="light"] .proof-status-msg.error { color:#9C4141; }
html[data-themeable][data-theme="light"] .order-summary { background:rgba(20,18,43,0.04); border:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .os-row { border-bottom:1px solid rgba(20,18,43,0.09); }
html[data-themeable][data-theme="light"] .os-icon { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .os-total .os-label,
html[data-themeable][data-theme="light"] .os-total .os-value { color:var(--gold-ink); }

/* ===== find-order.php (style intégré) : 9 règles ===== */
html[data-themeable][data-theme="light"] .auth-back-fab { border:1px solid rgba(20,18,43,0.18); background:rgba(255,255,255,0.75); }
html[data-themeable][data-theme="light"] .auth-card { background:linear-gradient(160deg, var(--panel), #F4F5F9); border:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .auth-phone-row select { border:1px solid rgba(20,18,43,0.18); background:rgba(20,18,43,0.05); }
html[data-themeable][data-theme="light"] .auth-phone-row input { border:1px solid rgba(20,18,43,0.18); background:rgba(20,18,43,0.05); }
html[data-themeable][data-theme="light"] .auth-phone-row input:focus { background:rgba(20,18,43,0.07); }
html[data-themeable][data-theme="light"] .found-order { background:linear-gradient(160deg, var(--panel), #F4F5F9); border:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .perk-card { background:rgba(20,18,43,0.04); }
html[data-themeable][data-theme="light"] .perk-ic { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .auth-switch a { color:var(--gold-ink); }

/* ===== login.php (style intégré) : 9 règles ===== */
html[data-themeable][data-theme="light"] .auth-head .eyebrow { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .auth-switch-top a { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .auth-card { background:linear-gradient(160deg, var(--panel), #F4F5F9); border:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .auth-error { color:#9C4141; }
html[data-themeable][data-theme="light"] .auth-phone-row select { border:1px solid rgba(20,18,43,0.18); background:rgba(20,18,43,0.05); }
html[data-themeable][data-theme="light"] .auth-field input { border:1.5px solid rgba(20,18,43,0.18); background:rgba(20,18,43,0.05); }
html[data-themeable][data-theme="light"] .auth-field input:focus { background:rgba(20,18,43,0.07); }
html[data-themeable][data-theme="light"] .auth-eye:active { background:rgba(20,18,43,0.06); }
html[data-themeable][data-theme="light"] .auth-remember input { border:1.5px solid rgba(20,18,43,0.34); background:rgba(20,18,43,0.04); }

/* ===== register.php (style intégré) : 14 règles ===== */
html[data-themeable][data-theme="light"] .auth-head .eyebrow { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .auth-switch-top a { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .auth-steps .step.active { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .auth-steps .step-line { background:rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .auth-card { background:linear-gradient(160deg, var(--panel), #F4F5F9); border:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .auth-error { color:#9C4141; }
html[data-themeable][data-theme="light"] .auth-field label .req { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .auth-phone-row select { border:1px solid rgba(20,18,43,0.18); background:rgba(20,18,43,0.05); }
html[data-themeable][data-theme="light"] .auth-field input { border:1.5px solid rgba(20,18,43,0.18); background:rgba(20,18,43,0.05); }
html[data-themeable][data-theme="light"] .auth-field input:focus { background:rgba(20,18,43,0.07); }
html[data-themeable][data-theme="light"] .auth-field-error { color:#9C4141; }
html[data-themeable][data-theme="light"] .auth-eye:active { background:rgba(20,18,43,0.06); }
html[data-themeable][data-theme="light"] .auth-strength-track { background:rgba(20,18,43,0.08); }
html[data-themeable][data-theme="light"] .auth-referrer-card span.text b { color:#31675C; }

/* ===== mon-compte.php (style intégré) : 48 règles ===== */
html[data-themeable][data-theme="light"] .profile-settings-btn { border:1px solid rgba(20,18,43,0.3); color:var(--text); }
html[data-themeable][data-theme="light"] .avatar-frame .profile-avatar { border:3px solid rgba(20,18,43,.14); }
html[data-themeable][data-theme="light"] .frame-baron .frame-ring { background:conic-gradient(from 0deg, rgba(232,184,75,0.22), #ff7a2e, #ffb347, #ff7a2e, rgba(232,184,75,0.22)); }
html[data-themeable][data-theme="light"] .frame-duke .frame-ring { background:conic-gradient(from 0deg, #FFFFFF, #9fe7ff, #d8f6ff, #9fe7ff, #FFFFFF); }
html[data-themeable][data-theme="light"] .frame-prince .frame-ring { background:conic-gradient(from 0deg, rgba(232,184,75,0.22), #ff4500, #ffb347, #ff4500, rgba(232,184,75,0.22)); }
html[data-themeable][data-theme="light"] .frame-emperor .frame-ring { background:conic-gradient(from 0deg, #F4F5F9, #b48cff, #6fd6e8, #ff8ad8, #b48cff, #F4F5F9); }
html[data-themeable][data-theme="light"] .profile-tier-pill { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .tabs-row { background:rgba(20,18,43,0.04); }
html[data-themeable][data-theme="light"] .notif-panel { background:linear-gradient(165deg, var(--panel), #F4F5F9); border:1px solid rgba(20,18,43,0.15); }
html[data-themeable][data-theme="light"] .notif-panel-header { border-bottom:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .notif-item::before { background:rgba(20,18,43,0.1); }
html[data-themeable][data-theme="light"] .notif-icon { background:rgba(20,18,43,0.06); border:1px solid rgba(20,18,43,0.15); }
html[data-themeable][data-theme="light"] .shortcut { background:rgba(20,18,43,0.04); border:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .activity-cell { background:rgba(20,18,43,0.04); border:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .activity-cell b { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .rec-hero .eyebrow { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .rec-stat { background:linear-gradient(160deg, var(--panel), #F4F5F9); }
html[data-themeable][data-theme="light"] .rec-stat .big { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .action-btn-exchange { background:linear-gradient(155deg, rgba(232,184,75,0.22), rgba(232,184,75,0.22) 60%, rgba(232,184,75,0.22)); color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .action-btn-exchange .action-btn-sub { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .action-btn-transfer { background:linear-gradient(155deg, #FFFFFF, #FFFFFF 60%, #F4F5F9); color:#31675C; }
html[data-themeable][data-theme="light"] .action-btn-transfer .action-btn-sub { color:#31675C; }
html[data-themeable][data-theme="light"] .badge-progress-bar { background:rgba(20,18,43,0.08); }
html[data-themeable][data-theme="light"] .info-btn { border:1px solid rgba(20,18,43,0.34); background:rgba(20,18,43,0.06); }
html[data-themeable][data-theme="light"] .info-modal { background:linear-gradient(165deg, var(--panel), #F4F5F9); border:1px solid rgba(20,18,43,0.15); }
html[data-themeable][data-theme="light"] .info-tier-row { border-bottom:1px solid rgba(20,18,43,0.09); }
html[data-themeable][data-theme="light"] .info-modal-close { background:rgba(20,18,43,0.08); }
html[data-themeable][data-theme="light"] .points-history-card { background:linear-gradient(160deg, var(--panel), #F4F5F9); }
@media (hover:hover) {
  html[data-themeable][data-theme="light"] .points-row:hover { background:rgba(20,18,43,0.04); }
}
html[data-themeable][data-theme="light"] .points-row-icon { background:rgba(20,18,43,0.05); }
html[data-themeable][data-theme="light"] .points-row .amt.positive { color:#31675C; }
html[data-themeable][data-theme="light"] .points-row .amt.negative { color:#9C4141; }
html[data-themeable][data-theme="light"] .stat-card { background:linear-gradient(160deg, var(--panel), #F4F5F9); border:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .stat-card .big { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .scratch-card { background:linear-gradient(155deg, rgba(232,184,75,0.22) 0%, #FFFFFF 45%, #F4F5F9 100%); }
html[data-themeable][data-theme="light"] .scratch-ticket::before,
html[data-themeable][data-theme="light"] .scratch-ticket::after { background:#FFFFFF; }
html[data-themeable][data-theme="light"] .scratch-ticket-result { background:linear-gradient(150deg, #FFFFFF 0%, #F4F5F9 55%, rgba(232,184,75,0.22) 100%); }
html[data-themeable][data-theme="light"] .scratch-code { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .order-filters select { border:1px solid rgba(20,18,43,0.18); background:rgba(20,18,43,0.05); }
html[data-themeable][data-theme="light"] .order-search { border:1px solid rgba(20,18,43,0.18); background:rgba(20,18,43,0.05); }
html[data-themeable][data-theme="light"] .status-en_attente { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .status-paye { color:#31675C; }
html[data-themeable][data-theme="light"] .status-annule { color:#9C4141; }
html[data-themeable][data-theme="light"] .order-row { background:linear-gradient(160deg, var(--panel), #F4F5F9); border:1px solid rgba(20,18,43,0.11); border-left:3px solid rgba(20,18,43,0.18); }
@media (hover:hover) {
  html[data-themeable][data-theme="light"] .order-row:hover { border-color:rgba(20,18,43,0.21); }
}
html[data-themeable][data-theme="light"] .order-amount { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .order-act-detail { background:rgba(20,18,43,0.06); }
html[data-themeable][data-theme="light"] .order-act-again { color:var(--gold-ink); }

/* ===== reglages.php (style intégré) : 10 règles ===== */
html[data-themeable][data-theme="light"] .set-section { background:linear-gradient(160deg, var(--panel), #F4F5F9); border:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .plat-add-field { border:1px solid rgba(20,18,43,0.21); background:rgba(20,18,43,0.04); }
html[data-themeable][data-theme="light"] .set-field input,
html[data-themeable][data-theme="light"] .set-field select { border:1px solid rgba(20,18,43,0.21); background:rgba(20,18,43,0.04); }
html[data-themeable][data-theme="light"] .set-avatar-btn { background:rgba(20,18,43,0.06); border:1px solid rgba(20,18,43,0.18); }
html[data-themeable][data-theme="light"] .plat-id-row { background:rgba(20,18,43,0.04); }
html[data-themeable][data-theme="light"] .plat-id-row .value { color:var(--gold-ink); }
@media (hover:hover) {
  html[data-themeable][data-theme="light"] .plat-id-row button:hover { color:#9C4141; }
}
html[data-themeable][data-theme="light"] .switch-track { background:rgba(20,18,43,0.15); }
html[data-themeable][data-theme="light"] .quick-nav-links a { background:rgba(255,255,255,0.92); border:1px solid rgba(20,18,43,0.18); }
@media (hover:hover) {
  html[data-themeable][data-theme="light"] .quick-nav-links a:hover { color:var(--gold-ink); }
}

/* ===== securite.php (style intégré) : 7 règles ===== */
html[data-themeable][data-theme="light"] .sec-done { color:#31675C; }
html[data-themeable][data-theme="light"] .sec-card { background:linear-gradient(160deg, var(--panel), #F4F5F9); border:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .sec-ic { background:rgba(20,18,43,0.05); }
html[data-themeable][data-theme="light"] .sec-card.current .sec-ic { color:#31675C; }
html[data-themeable][data-theme="light"] .sec-tag { color:#31675C; }
html[data-themeable][data-theme="light"] .sec-revoke { color:#9C4141; }
html[data-themeable][data-theme="light"] .sec-revoke-all { color:#9C4141; }

/* ===== inc/benefits_modal.php (style intégré) : 13 règles ===== */
html[data-themeable][data-theme="light"] .bm-modal { background:linear-gradient(180deg,#F4F5F9,#F4F5F9); border:1px solid rgba(20,18,43,0.16); }
html[data-themeable][data-theme="light"] .bm-head { border-bottom:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .bm-modal h2 { color:var(--text); }
html[data-themeable][data-theme="light"] .bm-head-actions a { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .bm-head-actions a:hover { color:var(--text); }
html[data-themeable][data-theme="light"] .bm-close { border:1px solid rgba(20,18,43,0.18); background:rgba(20,18,43,0.05); color:var(--text-muted); }
html[data-themeable][data-theme="light"] .bm-close:hover { color:var(--text); background:rgba(20,18,43,0.09); }
html[data-themeable][data-theme="light"] .bm-counter { color:var(--text-muted); }
html[data-themeable][data-theme="light"] .bm-progress { background:rgba(20,18,43,0.08); }
html[data-themeable][data-theme="light"] .bm-item { border-bottom:1px solid rgba(20,18,43,0.08); }
html[data-themeable][data-theme="light"] .bm-ico { border:1px solid rgba(20,18,43,0.15); background:rgba(20,18,43,0.04); }
html[data-themeable][data-theme="light"] .bm-copy strong { color:var(--text); }
html[data-themeable][data-theme="light"] .bm-foot { border-top:1px solid rgba(20,18,43,0.12); background:rgba(20,18,43,0.02); }

/* ===== inc/video_guides.php (style intégré) : 9 règles ===== */
html[data-themeable][data-theme="light"] .vg-modal { background:#F4F5F9; border:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .vg-close { color:var(--text); }
html[data-themeable][data-theme="light"] .vg-caption strong { color:var(--text, var(--text)); }
html[data-themeable][data-theme="light"] .vg-actions button,
html[data-themeable][data-theme="light"] .vg-actions a { border:1px solid rgba(20,18,43,0.15); background:rgba(20,18,43,0.04); }
html[data-themeable][data-theme="light"] .vg-actions button.vg-liked { color:#904558; }
html[data-themeable][data-theme="light"] .vg-speed-menu { background:#F4F5F9; border:1px solid rgba(20,18,43,0.15); }
html[data-themeable][data-theme="light"] .vg-speed-menu button.current { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .vg-side-btn { background:rgba(255,255,255,0.7); color:var(--text); }
html[data-themeable][data-theme="light"] .vg-purchase-later { background:rgba(20,18,43,0.06); border:1px solid rgba(20,18,43,0.18) !important; }

/* ===== inc/editable_zones.php (style intégré) : 31 règles ===== */
html[data-themeable][data-theme="light"] .ez-carousel-caption { --text:#F5F2E8; --text-muted:#B3ADD9; --gold-ink:#F3D686; --purple-ink:#B79BFF; --danger-ink:#FF8A8A; }
html[data-themeable][data-theme="light"] .ez-carousel-dots button { background:rgba(20,18,43,0.4); }
html[data-themeable][data-theme="light"] .ez-carousel-nav { color:var(--text); }
html[data-themeable][data-theme="light"] .ez-zone::before { background:#F4F5F9; color:var(--gold-ink); }
html[data-themeable][data-theme="light"] #ez-modal { background:#F4F5F9; border:1px solid rgba(20,18,43,0.15); }
html[data-themeable][data-theme="light"] #ez-modal-head { border-bottom:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] #ez-modal-head h3 { color:var(--text); }
html[data-themeable][data-theme="light"] #ez-lang-tabs { border-bottom:1px solid rgba(20,18,43,0.12); background:#F4F5F9; }
html[data-themeable][data-theme="light"] .ez-lang-tab { background:rgba(20,18,43,0.05); border:1px solid rgba(20,18,43,0.15); }
html[data-themeable][data-theme="light"] .ez-lang-tab.active { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] #ez-translate-btn { color:var(--purple-ink); }
html[data-themeable][data-theme="light"] #ez-carousel-btn { color:#31675C; }
html[data-themeable][data-theme="light"] #ez-carousel-modal { background:#F4F5F9; border:1px solid rgba(20,18,43,0.15); }
html[data-themeable][data-theme="light"] #ez-carousel-head { border-bottom:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] #ez-carousel-head h4 { color:var(--text); }
html[data-themeable][data-theme="light"] .ez-cs-item { background:rgba(20,18,43,0.04); border:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .ez-cs-item input[type=text] { background:#F4F5F9; border:1px solid rgba(20,18,43,0.15); color:var(--text); }
html[data-themeable][data-theme="light"] .ez-cs-item button { color:#9C4141; }
html[data-themeable][data-theme="light"] .ez-cs-upload { border:1.5px dashed rgba(20,18,43,0.22); }
html[data-themeable][data-theme="light"] #ez-carousel-foot { border-top:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] #ez-cs-add { background:rgba(20,18,43,0.06); border:1px solid rgba(20,18,43,0.18); color:var(--text); }
html[data-themeable][data-theme="light"] #ez-editor-wrap { background:#F4F5F9; }
html[data-themeable][data-theme="light"] #ez-editor { color:var(--text); }
html[data-themeable][data-theme="light"] .ql-editor { color:var(--text) !important; }
html[data-themeable][data-theme="light"] .ql-editor a { color:var(--gold-ink) !important; }
html[data-themeable][data-theme="light"] .ql-toolbar.ql-snow { background:#FFFFFF !important; border-bottom:1px solid rgba(20,18,43,0.15) !important; }
html[data-themeable][data-theme="light"] .ql-snow .ql-picker-options { background:#F4F5F9 !important; border-color:rgba(20,18,43,0.22) !important; }
html[data-themeable][data-theme="light"] .ql-snow .ql-tooltip { background:#F4F5F9 !important; color:var(--text) !important; border-color:rgba(20,18,43,0.22) !important; }
html[data-themeable][data-theme="light"] .ql-snow .ql-tooltip input[type=text] { background:#F4F5F9 !important; color:var(--text) !important; border-color:rgba(20,18,43,0.22) !important; }
html[data-themeable][data-theme="light"] #ez-modal-foot { border-top:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] #ez-reset-btn { color:#9C4141; }

/* ===== suivi.php (style intégré, hors reçu doré) : 25 règles ===== */
html[data-themeable][data-theme="light"] .auth-back-fab { border:1px solid rgba(20,18,43,0.18); background:rgba(255,255,255,0.75); }
html[data-themeable][data-theme="light"] .track-card { background:linear-gradient(160deg, var(--panel), #F4F5F9); border:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .track-icon { background:rgba(20,18,43,0.05); }
html[data-themeable][data-theme="light"] .track-icon.good { color:#31675C; }
html[data-themeable][data-theme="light"] .track-icon.bad { color:#9C4141; }
html[data-themeable][data-theme="light"] .track-icon.wait { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .tl-step::before { background:rgba(20,18,43,0.08); border:2px solid rgba(20,18,43,0.22); }
html[data-themeable][data-theme="light"] .tl-step::after { background:rgba(20,18,43,0.1); }
html[data-themeable][data-theme="light"] .tl-step.done .tl-label { color:#31675C; }
html[data-themeable][data-theme="light"] .tl-step.active .tl-label { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .tl-step.final-done .tl-label { color:#23693D; }
html[data-themeable][data-theme="light"] .track-details { border-top:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .escalate-btn { color:#9C4141; }
html[data-themeable][data-theme="light"] .rating-block { border-top:1px solid rgba(20,18,43,0.12); }
html[data-themeable][data-theme="light"] .rating-stars .star { color:rgba(20,18,43,0.78); }
html[data-themeable][data-theme="light"] .rating-stars .star.filled { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .rating-stars-static { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .rating-stars-static svg:nth-child(n+6) { color:rgba(20,18,43,0.78); }
html[data-themeable][data-theme="light"] .proof-empty-state { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .proof-status-msg.success { color:#31675C; }
html[data-themeable][data-theme="light"] .proof-status-msg.error { color:#9C4141; }
html[data-themeable][data-theme="light"] .dispute-toggle-btn { color:#9C4141; }
html[data-themeable][data-theme="light"] .dispute-box textarea { border:1px solid rgba(20,18,43,0.21); background:rgba(20,18,43,0.04); }
html[data-themeable][data-theme="light"] .track-order-bar p { color:var(--gold-ink); }
html[data-themeable][data-theme="light"] .track-refresh-btn { border:1px solid rgba(20,18,43,0.15); background:rgba(20,18,43,0.04); }

/* ===== Partie 3 : réglages manuels (cas que le générateur ne peut pas deviner) ===== */
/* Bandeau promo : texte plus foncé pour rester lisible sur sa teinte or clair. */
html[data-themeable][data-theme="light"] .promo-banner .promo-inner { color: #5E4713; }
/* Bouton « échange » (compte) : texte plus foncé sur sa teinte or clair. */
html[data-themeable][data-theme="light"] .action-btn-exchange { color: #5E4713; }

/* Vignettes des applications (accueil, boutique) : en mode nuit un dégradé sombre adoucit le bas de l'image ; en mode
   jour on garde seulement un léger fondu blanc tout en bas, pour que l'image reste parfaitement lisible. */
html[data-themeable][data-theme="light"] .product-card .thumb::after { background: linear-gradient(to top, rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 34%); }

/* Étoiles vides des notes : un contour discret (le plancher d'opacité du texte les rendait presque aussi sombres que les pleines). */
html[data-themeable][data-theme="light"] .rating-stars .star { color: rgba(20,18,43,.5); }
html[data-themeable][data-theme="light"] .rating-stars-static svg:nth-child(n+6) { color: rgba(20,18,43,.5); }

/* Fond de page PLAT en mode jour. En mode nuit, le fond est un dégradé (centre plus clair, bords plus foncés) ;
   en mode jour il donnait un centre blanc et des côtés gris, qui ternissaient le texte. */
html[data-themeable][data-theme="light"] body { background: #F7F8FB; }

/* « Vendre mes points » : retire les halos de couleur sur les bords gauche (violet) et droit (or), et le halo flou du bandeau. */
html[data-themeable][data-theme="light"] .buyback-page { background: #F7F8FB; }
html[data-themeable][data-theme="light"] .buyback-hero { background: linear-gradient(145deg, #FFFFFF 0%, #F4F1FF 100%); }
html[data-themeable][data-theme="light"] .buyback-hero::before { display: none; }

/* ===== La barre de marque reste SOMBRE en mode jour ===== */
/* En-tête, menu latéral (qui est un bloc à part, après l'en-tête) et barre du bas : le logo et le texte « AGENCE MOMAËL » restent
   blancs dans tous les modes. On leur rend localement les variables du thème sombre ; la page entre
   les deux devient claire. Leurs règles d'origine (style.css) s'appliquent donc inchangées. */
html[data-themeable][data-theme="light"] .ph-header,
html[data-themeable][data-theme="light"] .ph-side-menu,
html[data-themeable][data-theme="light"] .premium-nav-wrap {
  --night: #100E26; --night-2: #1A1740; --panel: #1F1B4A;
  --text: #F5F2E8; --text-muted: #B3ADD9;
  --gold-ink: #F3D686; --purple-ink: #8B6FF0; --danger-ink: #FF6B6B; --success-ink: #6FE8CF; --warn-ink: #FFB450;
  --ov: 255,255,255;
  --sh-line: rgba(255,255,255,.10); --sh-hover: rgba(255,255,255,.07); --sh-chip: rgba(255,255,255,.06);
  color: #F5F2E8;
}
/* Les menus déroulants (apparence, compte, notifications) restent des cartes claires, comme dans la maquette. */
html[data-themeable][data-theme="light"] .ph-header .sh-popover {
  --night: #F7F8FB; --night-2: #EFF1F7; --panel: #FFFFFF;
  --text: #14122B; --text-muted: #46425F;
  --gold-ink: #765A1A; --purple-ink: #5A3EC0; --danger-ink: #B01E1E; --success-ink: #0A6A50; --warn-ink: #864600;
  --ov: 20,18,43;
  --sh-line: rgba(20,18,43,.12); --sh-hover: rgba(20,18,43,.06); --sh-chip: rgba(20,18,43,.06);
  color: #14122B;
}
