/* ============================================================
   [GÉNÉRÉ koaee_theme_gen] tokens THÉMATIQUES dérivés de /etc/koaee/branding.php (immobilier).
   Régénérer après tout changement de teinte : php /usr/local/bin/koaee/koaee_theme_gen.php immobilier <ce fichier>.
   THÈME VIOLET — shared/themes/violet.css (MÉGA P9 ÉDUCATION, 2026-06-12 — décliné de cyan.css, palette P0 validée Erwan)
   ------------------------------------------------------------
   Thème secteur ÉDUCATION du catalogue KOAEE — « Campus Koaee ».
   Palette P0 (STATE-MEGA, GO Erwan) : primaire #5B21B6 (violet profond) ·
   accent clair #C4B5FD · surfaces douces #EDE9FE/#DDD6FE.
   AA mesurés (script ratio, 2026-06-12) : #fff/#5B21B6 = 8.98 ·
   #C4B5FD/#0f0f0f = 10.38 · #1a1a1a/#EDE9FE = 14.66 · #1a1a1a/#DDD6FE = 12.53.
*/

:root {
  /* Backgrounds / surfaces — LIGHT (NEUTRES, identiques emerald) */
  --bg:               #ffffff;
  --surface-1:        #fafafa;
  --surface-2:        #f5f5f5;
  --surface-3:        #e5e7eb;
  --surface-4:        #d1d5db;
  --surface-deep:     #ffffff;
  --surface-hover:    #f5f5f5;

  /* Texts — LIGHT (NEUTRES sauf --text-faint corrigé AA) */
  --text:             #1a1a1a;
  --text-muted:       #6b7280;
  --text-faint:       #5a6470;   /* corrigé AA : 6.01 sur #ffffff (hérité orange B1-2) */
  --text-faintest:    #aaa;
  --text-on-accent:   #ffffff;

  /* Accents palette VIOLET — LIGHT (THÉMATIQUES) */
  /* fix7 : violet = graphique. --accent (texte) -> NEUTRE var(--text). */
  --accent:           var(--text);   /* texte neutre — pas de texte courant coloré */
  --accent-strong:    #6444ad;       /* focus outlines / hover profond (8.98 AA) */
  --accent-soft:      #efecfd;       /* badge-bg violet pâle (surface) */
  --accent-soft-text: var(--text);   /* texte badge neutre */
  --accent-surface:   #7d60ca;       /* violet — SEUL porteur du violet (graphique) */
  --text-on-surface:  #ffffff;       /* texte SUR --accent-surface : 8.98 AA */
  --accent-dark:      #6444ad;       /* hover profond violet (NOUVEAU, additif — blanc dessus AA) */
  --accent-surface-rgb: 91, 33, 182; /* triplet #5B21B6 pour rgba(var(--…-rgb)) du widget (additif) */

  /* Border + nav — LIGHT (NEUTRES) */
  --border:           #e5e7eb;
  --nav-bg:           #ffffff;
  --nav-link:         #1f2937;

  /* UI spécifiques — LIGHT (NEUTRES) */
  --ui-day-disabled:  #d0d0d0;
  --ui-day-booked:    #9ca3af;

  /* Errors — LIGHT (NEUTRES) */
  --error:            #c0392b;
  --error-bg:         rgba(192,57,43,.08);
  --error-border:     rgba(192,57,43,.18);

  /* Typographie (NEUTRES, héritées light → dark) */
  --font-serif:       'Noto Serif', Georgia, serif;
  --font-body:        'Manrope', sans-serif;

  /* Alias hérités du pilote hôtel (emerald-noir définit --text-primary ; le moteur
     widget cloné l'utilise 15× — LOT 3bis A5 : croix invisible car var absente). */
  --text-primary:     #1a1a1a;
}

[data-theme="dark"] {
  /* Backgrounds / surfaces — DARK (NEUTRES, identiques emerald) */
  --bg:               #0f0f0f;
  --surface-1:        #1a1a1a;
  --surface-2:        #252525;
  --surface-3:        #2a2a2a;
  --surface-4:        #353534;
  --surface-deep:     #0e0e0e;
  --surface-hover:    #3f3f3d;

  /* Texts — DARK (NEUTRES sauf --text-faint corrigé AA) */
  --text:             #f5f5f5;
  --text-muted:       #a0a0a0;
  --text-faint:       #909090;   /* corrigé AA : 6.00 sur #0f0f0f */
  --text-faintest:    #444;
  --text-on-accent:   #0f0f0f;

  /* Accents palette VIOLET — DARK (THÉMATIQUES) */
  --accent:           var(--text);   /* texte neutre DARK */
  --accent-strong:    #a78bfa;       /* focus outlines visibles en dark (10.38 AA) */
  --accent-soft:      #dfd8fe;       /* badge-bg violet pâle conservé en dark */
  --accent-soft-text: #1a1a1a;       /* texte SOMBRE sur badge pâle (12.53 AA, pattern FIX A orange) */
  --accent-surface:   #7d60ca;       /* marque CONSTANTE dans les 2 thèmes (L3, validé LOT 2) */
  --text-on-surface:  #ffffff;       /* 8.98 AA sur #5B21B6 */
  --accent-dark:      #a78bfa;       /* hover dark (NOUVEAU, additif) */
  --accent-on-dark-rgb: 179, 152, 221; /* triplet #B398DD (additif) */

  /* Border + nav — DARK (NEUTRES) */
  --border:           #333333;
  --nav-bg:           rgba(15,15,15,0.7);
  --nav-link:         #e5e7eb;

  /* UI spécifiques — DARK (NEUTRES) */
  --ui-day-disabled:  #3a3a3a;
  --ui-day-booked:    #666;

  /* Errors — DARK (NEUTRES) */
  --error:            #ff8080;
  --error-bg:         rgba(255,100,100,.1);
  --error-border:     rgba(255,100,100,.2);

  /* Alias hérités du pilote hôtel (cf. light) */
  --text-primary:     #f5f5f5;
}

/* LOT RECETTE-FIX A (2026-06-13) — accent foreground lisible en dark, cible 7:1 sur #1a1a1a (teinte conservée, validé Erwan) */
[data-theme="dark"]{ --accent-on-dark: #b097fe; }
