/* Thèmes de saison — ne changent QUE des couleurs (et le logo, cf. index.html /
   season.js). Le script de démarrage d'index.html pose data-season="<id>" sur
   <html> selon la date ; chaque bloc ci-dessous redéfinit les tokens de marque
   de variables.css.

   Règles :
   - La couleur principale reste le token --teal (et sa famille) : un thème
     remplace sa VALEUR, pas son nom. --gold = boutons d'action / « moi ».
   - Le coral et les couleurs des jeux ne bougent pas : ils portent du sens
     (éliminé, identité d'un jeu).
   - Les triplets --*-rgb doivent rester la version RGB des couleurs claires.
   - Fonds et textes (--surface, --card, --cream, --text, --muted…) restent
     ceux du thème de base : un thème de saison ne touche que les ACCENTS.
   - `html[data-season]` a la même spécificité que `html.theme-dark` et vient
     après : chaque bloc sombre (`html.theme-dark[data-season]`) redéfinit donc
     les tokens d'accent que le thème sombre de base change (--teal-bg,
     --teal-dark).

   Ajouter une période : un bloc clair + un bloc sombre ici, ses logos
   (season-logos.mjs), son créneau dans le calendrier d'index.html et ses
   libellés i18n (season.<id>). */

/* ---------- Octobre rose ---------- */
html[data-season="octobre-rose"] {
  --teal: #e0569b;
  --teal-light: #f07ab5;
  --teal-dark: #b8337a;
  --teal-bg: #fce8f2;
  --teal-ink: #8f1f5b;
  --teal-ink-deep: #6b1243;
  --teal-hover-dark: #ff9fcd;
  --teal-rgb: 224, 86, 155;
  --teal-light-rgb: 240, 122, 181;
  --teal-dark-rgb: 184, 51, 122;
}
html.theme-dark[data-season="octobre-rose"] {
  --teal-bg: #3a1a2b;
  --teal-dark: #ff8cc4;
}

/* ---------- Halloween ---------- */
html[data-season="halloween"] {
  --teal: #8a4fbf;
  --teal-light: #a874d6;
  --teal-dark: #6a2f91;
  --teal-bg: #f1e8f8;
  --teal-ink: #4f1f70;
  --teal-ink-deep: #3a1454;
  --teal-hover-dark: #c49ae8;
  --teal-rgb: 138, 79, 191;
  --teal-light-rgb: 168, 116, 214;
  --teal-dark-rgb: 106, 47, 145;
  /* citrouille à la place de l'or */
  --gold: #ff9a2e;
  --gold-light: #ffb966;
  --gold-dark: #e67a0a;
  --gold-rgb: 255, 154, 46;
  --gold-dark-rgb: 230, 122, 10;
}
html.theme-dark[data-season="halloween"] {
  --teal-bg: #2b1d3d;
  --teal-dark: #c79bf0;
}

/* ---------- Movember ---------- */
html[data-season="movember"] {
  --teal: #3a6ea5;
  --teal-light: #5a8fc7;
  --teal-dark: #2a5384;
  --teal-bg: #e8f0f9;
  --teal-ink: #1d3f66;
  --teal-ink-deep: #142d4a;
  --teal-hover-dark: #9cc2ea;
  --teal-rgb: 58, 110, 165;
  --teal-light-rgb: 90, 143, 199;
  --teal-dark-rgb: 42, 83, 132;
}
html.theme-dark[data-season="movember"] {
  --teal-bg: #18283a;
  --teal-dark: #8cbcf0;
}

/* ---------- Noël ---------- */
html[data-season="noel"] {
  --teal: #1f8a4c;
  --teal-light: #2fae66;
  --teal-dark: #17693a;
  --teal-bg: #e6f4ec;
  --teal-ink: #0f5530;
  --teal-ink-deep: #0a3f23;
  --teal-hover-dark: #6fd69a;
  --teal-rgb: 31, 138, 76;
  --teal-light-rgb: 47, 174, 102;
  --teal-dark-rgb: 23, 105, 58;
}
html.theme-dark[data-season="noel"] {
  --teal-bg: #153020;
  --teal-dark: #5fd18f;
}

/* ---------- Pâques ---------- */
html[data-season="paques"] {
  --teal: #8e7cc3;
  --teal-light: #a99ad6;
  --teal-dark: #6f5ca8;
  --teal-bg: #f1edfa;
  --teal-ink: #4f3f85;
  --teal-ink-deep: #3a2d66;
  --teal-hover-dark: #c9bdf0;
  --teal-rgb: 142, 124, 195;
  --teal-light-rgb: 169, 154, 214;
  --teal-dark-rgb: 111, 92, 168;
}
html.theme-dark[data-season="paques"] {
  --teal-bg: #2a2444;
  --teal-dark: #b9aaf0;
}

/* ---------- Saint-Valentin ---------- */
html[data-season="saint-valentin"] {
  --teal: #d6304a;
  --teal-light: #e85a70;
  --teal-dark: #a81c34;
  --teal-bg: #fde8ec;
  --teal-ink: #7f1426;
  --teal-ink-deep: #5e0d1b;
  --teal-hover-dark: #ff9aab;
  --teal-rgb: 214, 48, 74;
  --teal-light-rgb: 232, 90, 112;
  --teal-dark-rgb: 168, 28, 52;
  /* rose bonbon à la place de l'or */
  --gold: #ff8fab;
  --gold-light: #ffb3c6;
  --gold-dark: #e8668a;
  --gold-rgb: 255, 143, 171;
  --gold-dark-rgb: 232, 102, 138;
}
html.theme-dark[data-season="saint-valentin"] {
  --teal-bg: #3a1a22;
  --teal-dark: #ff8a9c;
}

/* ---------- Saint-Patrick ---------- */
html[data-season="saint-patrick"] {
  --teal: #169b62;
  --teal-light: #2fbf7e;
  --teal-dark: #0f7a4c;
  --teal-bg: #e5f6ee;
  --teal-ink: #0b5e3a;
  --teal-ink-deep: #07452a;
  --teal-hover-dark: #6fe0ab;
  --teal-rgb: 22, 155, 98;
  --teal-light-rgb: 47, 191, 126;
  --teal-dark-rgb: 15, 122, 76;
  /* orange du drapeau irlandais à la place de l'or */
  --gold: #ff883e;
  --gold-light: #ffa86e;
  --gold-dark: #e86c1c;
  --gold-rgb: 255, 136, 62;
  --gold-dark-rgb: 232, 108, 28;
}
html.theme-dark[data-season="saint-patrick"] {
  --teal-bg: #12301f;
  --teal-dark: #4fdc9a;
}

/* ---------- Poisson d'avril ---------- */
html[data-season="poisson-avril"] {
  --teal: #1c8ad6;
  --teal-light: #45a8ef;
  --teal-dark: #136aa8;
  --teal-bg: #e6f3fc;
  --teal-ink: #0d4f80;
  --teal-ink-deep: #093a5e;
  --teal-hover-dark: #8ccaf7;
  --teal-rgb: 28, 138, 214;
  --teal-light-rgb: 69, 168, 239;
  --teal-dark-rgb: 19, 106, 168;
}
html.theme-dark[data-season="poisson-avril"] {
  --teal-bg: #142b3d;
  --teal-dark: #6fc0f5;
}

/* ---------- 14 juillet ---------- */
html[data-season="14-juillet"] {
  --teal: #1f4fa3;
  --teal-light: #3b6cc4;
  --teal-dark: #163b7d;
  --teal-bg: #e8eef9;
  --teal-ink: #102c5e;
  --teal-ink-deep: #0b1f44;
  --teal-hover-dark: #9db8ec;
  --teal-rgb: 31, 79, 163;
  --teal-light-rgb: 59, 108, 196;
  --teal-dark-rgb: 22, 59, 125;
}
html.theme-dark[data-season="14-juillet"] {
  --teal-bg: #18233f;
  --teal-dark: #8fb0f5;
}

/* ---------- Épiphanie ---------- */
html[data-season="epiphanie"] {
  --teal: #b8862b;
  --teal-light: #d1a246;
  --teal-dark: #926716;
  --teal-bg: #f8f0de;
  --teal-ink: #6b4a0e;
  --teal-ink-deep: #4f3608;
  --teal-hover-dark: #e6c27a;
  --teal-rgb: 184, 134, 43;
  --teal-light-rgb: 209, 162, 70;
  --teal-dark-rgb: 146, 103, 22;
}
html.theme-dark[data-season="epiphanie"] {
  --teal-bg: #33270f;
  --teal-dark: #e3b866;
}

/* ---------- Chandeleur ---------- */
html[data-season="chandeleur"] {
  --teal: #c46a2f;
  --teal-light: #dd8848;
  --teal-dark: #9c4f1c;
  --teal-bg: #fbeee3;
  --teal-ink: #74380f;
  --teal-ink-deep: #552809;
  --teal-hover-dark: #f0aa78;
  --teal-rgb: 196, 106, 47;
  --teal-light-rgb: 221, 136, 72;
  --teal-dark-rgb: 156, 79, 28;
}
html.theme-dark[data-season="chandeleur"] {
  --teal-bg: #3a2414;
  --teal-dark: #f0a06a;
}

/* ---------- Fête de la musique ---------- */
html[data-season="fete-musique"] {
  --teal: #5b4fd8;
  --teal-light: #7a70ea;
  --teal-dark: #4234b0;
  --teal-bg: #eceafc;
  --teal-ink: #2f2485;
  --teal-ink-deep: #221a63;
  --teal-hover-dark: #aca5f5;
  --teal-rgb: 91, 79, 216;
  --teal-light-rgb: 122, 112, 234;
  --teal-dark-rgb: 66, 52, 176;
  /* fuchsia fluo à la place de l'or */
  --gold: #ff5fa8;
  --gold-light: #ff8cc1;
  --gold-dark: #e43d8b;
  --gold-rgb: 255, 95, 168;
  --gold-dark-rgb: 228, 61, 139;
}
html.theme-dark[data-season="fete-musique"] {
  --teal-bg: #221d48;
  --teal-dark: #a49cf7;
}

/* ==== neutres accordés — généré par tools/season-neutrals.mjs, ne pas éditer ==== */
/* octobre-rose — teinte 352° */
html[data-season="octobre-rose"] {
  --surface: #fbf3f6;
  --text: #422d36;
  --muted: #967b86;
  --scrim-rgb: 69, 46, 56;
  --overlay-floor: #aa9aa0;
}
html.theme-dark[data-season="octobre-rose"] {
  --surface: #1e1318;
  --card: #3a262e;
  --cream: #4b333d;
  --text: #faeff3;
  --muted: #c1a9b2;
  --topbar-bg: rgba(46, 30, 37, 0.72);
  --raised-dark: #4f3540;
  --well-dark: #27191f;
  --overlay-floor: #2f1f26;
}

/* halloween — teinte 306° */
html[data-season="halloween"] {
  --surface: #f7f4fb;
  --text: #383042;
  --muted: #897e95;
  --scrim-rgb: 58, 49, 69;
  --overlay-floor: #a29ca9;
}
html.theme-dark[data-season="halloween"] {
  --surface: #19151e;
  --card: #30283a;
  --cream: #40364c;
  --text: #f4f0f9;
  --muted: #b5acc0;
  --topbar-bg: rgba(39, 32, 46, 0.72);
  --raised-dark: #43394f;
  --well-dark: #211b27;
  --overlay-floor: #28212f;
}

/* movember — teinte 252° */
html[data-season="movember"] {
  --surface: #f1f6fc;
  --text: #273646;
  --muted: #748699;
  --scrim-rgb: 40, 55, 72;
  --overlay-floor: #96a0ab;
}
html.theme-dark[data-season="movember"] {
  --surface: #101820;
  --card: #202e3d;
  --cream: #2c3d4f;
  --text: #ecf3fb;
  --muted: #a2b2c4;
  --topbar-bg: rgba(26, 37, 48, 0.72);
  --raised-dark: #2f4052;
  --well-dark: #161f29;
  --overlay-floor: #1b2632;
}

/* noel — teinte 153° */
html[data-season="noel"] {
  --surface: #f1f8f3;
  --text: #27392c;
  --muted: #748a79;
  --scrim-rgb: 39, 59, 45;
  --overlay-floor: #96a399;
}
html.theme-dark[data-season="noel"] {
  --surface: #101a13;
  --card: #203125;
  --cream: #2b4131;
  --text: #ecf5ee;
  --muted: #a2b6a7;
  --topbar-bg: rgba(26, 40, 29, 0.72);
  --raised-dark: #2e4434;
  --well-dark: #152219;
  --overlay-floor: #1a291e;
}

/* paques — teinte 295° */
html[data-season="paques"] {
  --surface: #f6f5fc;
  --text: #353144;
  --muted: #858098;
  --scrim-rgb: 55, 50, 71;
  --overlay-floor: #9f9caa;
}
html.theme-dark[data-season="paques"] {
  --surface: #17151f;
  --card: #2d293c;
  --cream: #3c374e;
  --text: #f2f0fa;
  --muted: #b1adc2;
  --topbar-bg: rgba(36, 33, 47, 0.72);
  --raised-dark: #3f3a51;
  --well-dark: #1f1c29;
  --overlay-floor: #252231;
}

/* saint-valentin — teinte 18° */
html[data-season="saint-valentin"] {
  --surface: #fcf3f3;
  --text: #442d2e;
  --muted: #987b7b;
  --scrim-rgb: 71, 46, 47;
  --overlay-floor: #ab9a9a;
}
html.theme-dark[data-season="saint-valentin"] {
  --surface: #1f1313;
  --card: #3c2626;
  --cream: #4e3333;
  --text: #fbefef;
  --muted: #c3a9a9;
  --topbar-bg: rgba(48, 31, 31, 0.72);
  --raised-dark: #513636;
  --well-dark: #291a1a;
  --overlay-floor: #311f20;
}

/* saint-patrick — teinte 158° */
html[data-season="saint-patrick"] {
  --surface: #f1f8f3;
  --text: #253a2d;
  --muted: #728b7b;
  --scrim-rgb: 38, 60, 47;
  --overlay-floor: #95a39a;
}
html.theme-dark[data-season="saint-patrick"] {
  --surface: #0f1a13;
  --card: #1e3226;
  --cream: #294233;
  --text: #ebf5ef;
  --muted: #a1b7a9;
  --topbar-bg: rgba(25, 40, 31, 0.72);
  --raised-dark: #2c4536;
  --well-dark: #14221a;
  --overlay-floor: #192920;
}

/* poisson-avril — teinte 246° */
html[data-season="poisson-avril"] {
  --surface: #f1f7fc;
  --text: #253645;
  --muted: #728699;
  --scrim-rgb: 38, 56, 72;
  --overlay-floor: #95a0ab;
}
html.theme-dark[data-season="poisson-avril"] {
  --surface: #0f1820;
  --card: #1e2e3c;
  --cream: #2a3d4f;
  --text: #ebf3fa;
  --muted: #a1b3c3;
  --topbar-bg: rgba(25, 37, 48, 0.72);
  --raised-dark: #2c4052;
  --well-dark: #151f29;
  --overlay-floor: #192631;
}

/* 14-juillet — teinte 261° */
html[data-season="14-juillet"] {
  --surface: #f2f6fc;
  --text: #2a3546;
  --muted: #77849a;
  --scrim-rgb: 43, 54, 73;
  --overlay-floor: #989fac;
}
html.theme-dark[data-season="14-juillet"] {
  --surface: #121720;
  --card: #232d3d;
  --cream: #303c50;
  --text: #edf2fb;
  --muted: #a5b1c5;
  --topbar-bg: rgba(28, 36, 49, 0.72);
  --raised-dark: #323e53;
  --well-dark: #181e2a;
  --overlay-floor: #1d2532;
}

/* epiphanie — teinte 78° */
html[data-season="epiphanie"] {
  --surface: #f9f5ef;
  --text: #3e3220;
  --muted: #90816b;
  --scrim-rgb: 64, 52, 32;
  --overlay-floor: #a69d91;
}
html.theme-dark[data-season="epiphanie"] {
  --surface: #1c160c;
  --card: #362b19;
  --cream: #473923;
  --text: #f7f1e9;
  --muted: #bbae9b;
  --topbar-bg: rgba(43, 34, 21, 0.72);
  --raised-dark: #4a3c26;
  --well-dark: #251d11;
  --overlay-floor: #2c2315;
}

/* chandeleur — teinte 51° */
html[data-season="chandeleur"] {
  --surface: #fcf4f0;
  --text: #432f24;
  --muted: #967e70;
  --scrim-rgb: 69, 49, 37;
  --overlay-floor: #aa9b94;
}
html.theme-dark[data-season="chandeleur"] {
  --surface: #1f140f;
  --card: #3a281d;
  --cream: #4c3528;
  --text: #faf0ea;
  --muted: #c1ab9f;
  --topbar-bg: rgba(46, 32, 24, 0.72);
  --raised-dark: #4f382b;
  --well-dark: #281b14;
  --overlay-floor: #302119;
}

/* fete-musique — teinte 281° */
html[data-season="fete-musique"] {
  --surface: #f4f5fc;
  --text: #313246;
  --muted: #7f829a;
  --scrim-rgb: 50, 52, 72;
  --overlay-floor: #9c9eac;
}
html.theme-dark[data-season="fete-musique"] {
  --surface: #151620;
  --card: #292b3d;
  --cream: #37394f;
  --text: #f0f1fb;
  --muted: #acaec4;
  --topbar-bg: rgba(33, 34, 49, 0.72);
  --raised-dark: #3a3c53;
  --well-dark: #1c1d2a;
  --overlay-floor: #222332;
}
/* ==== fin des neutres générés ==== */
