/*
 * Myriaclip : feuille du site. Aucune ressource extérieure.
 * Polices servies par le site (Apache 2.0, fonts/LICENCE-Apache-2.0.txt) : Roboto Slab (variable, 100 à 900) pour tout
 * le texte, Syncopate (700) pour la marque et les étiquettes. Repli sur les familles génériques seulement.
 * Animations : CSS, plus /js/site.js (apparitions au défilement, compteurs, en-tête qui se cache). Tout mouvement est
 * coupé avec prefers-reduced-motion. Couleurs des chaînes : /css/reseau.css (généré).
 */
@font-face {
  font-family: "Roboto Slab";
  src: url("/fonts/roboto-slab-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Syncopate";
  src: url("/fonts/syncopate-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --nuit: #0b0a0f;
  --nuit-2: #14121b;
  --nuit-3: #1d1a26;
  --creme: #f4efe6;
  --creme-2: #e9e1d2;
  --gris: #9a95a6;
  --gris-clair: #5d5868;
  --ligne: rgba(244, 239, 230, 0.14);
  --ligne-claire: rgba(11, 10, 15, 0.12);
  --orange: #ff5a36;
  --violet: #5b3ff0;
  --violet-clair: #b3a6ff;
  --vert: #3ddc97;
  --todo-fond: #ffe38a;
  --todo-encre: #3d2900;
  --texte: "Roboto Slab", serif;
  --marque: "Syncopate", sans-serif;
  --large: 1320px;
  --gouttiere: clamp(16px, 4vw, 48px);
  --sortie: cubic-bezier(0.16, 1, 0.3, 1);
  --rayon: 22px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--nuit);
  color: var(--creme);
  font-family: var(--texte);
  font-weight: 360;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 0.06em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--orange); color: var(--nuit); }

h1, h2, h3 { font-weight: 780; line-height: 1.02; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: normal; font-weight: 230; letter-spacing: -0.035em; }
p { margin: 0 0 1em; }
.conteneur { width: 100%; max-width: var(--large); margin: 0 auto; padding-inline: var(--gouttiere); }

.label {
  font-family: var(--marque);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.5;
}

.passer { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--creme); color: var(--nuit); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.passer:focus { top: 12px; }

/* ─── En-tête ─────────────────────────────────────────────────────────────────────────────────────────────────── */
.entete {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: transform 0.45s var(--sortie), background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.entete.plein { background: rgba(11, 10, 15, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--ligne); }
.entete.cache { transform: translateY(-100%); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.marque { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--creme); }
.marque svg { width: 34px; height: 34px; color: var(--nuit-3); border-radius: 8px; box-shadow: 0 0 0 1px rgba(244, 239, 230, 0.22); }
.marque span { font-family: var(--marque); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.16em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 0.95rem; font-weight: 450; color: rgba(244, 239, 230, 0.78); transition: color 0.2s, background-color 0.2s; }
.nav a:hover { color: var(--creme); background: rgba(244, 239, 230, 0.08); }
.nav a.appel { background: var(--creme); color: var(--nuit); font-weight: 650; margin-left: 8px; }
.nav a.appel:hover { background: var(--orange); color: var(--nuit); }
.nav a.langue { font-family: var(--marque); font-size: 0.7rem; letter-spacing: 0.14em; border: 1px solid var(--ligne); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-family: var(--marque); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 10px 16px; border: 1px solid var(--ligne); border-radius: 999px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--creme); color: var(--nuit); }
.menu-liste { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: var(--nuit-2); border: 1px solid var(--ligne); border-radius: 18px; padding: 10px; display: grid; gap: 2px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.menu-liste a { text-decoration: none; padding: 12px 14px; border-radius: 12px; font-weight: 500; }
.menu-liste a:hover { background: rgba(244, 239, 230, 0.08); }
@media (max-width: 880px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* ─── Boutons ─────────────────────────────────────────────────────────────────────────────────────────────────── */
.bouton {
  --b-fond: var(--creme);
  --b-encre: var(--nuit);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  background: var(--b-fond);
  color: var(--b-encre);
  font-weight: 650;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--sortie);
}
.bouton::before { content: ""; position: absolute; inset: 0; background: var(--orange); transform: translateY(101%); transition: transform 0.45s var(--sortie); z-index: -1; border-radius: inherit; }
.bouton:hover::before, .bouton:focus-visible::before { transform: translateY(0); }
.bouton .fleche { display: inline-block; transition: transform 0.35s var(--sortie); }
.bouton:hover .fleche { transform: translateX(4px); }
.bouton.vide { --b-fond: transparent; --b-encre: var(--creme); box-shadow: inset 0 0 0 1px rgba(244, 239, 230, 0.4); }
.bouton.vide:hover { color: var(--nuit); }
.bouton.sombre { --b-fond: var(--nuit); --b-encre: var(--creme); }
.bouton.sombre:hover { color: var(--nuit); }

/* ─── Ouverture : le mur de Shorts ─────────────────────────────────────────────────────────────────────────────── */
.ouverture { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; padding: 120px 0 56px; isolation: isolate; }
.mur {
  position: absolute;
  z-index: -2;
  top: -18%;
  right: -12%;
  width: 78%;
  height: 140%;
  display: flex;
  gap: 18px;
  transform: rotate(-9deg);
  animation: mur-arrive 1.8s var(--sortie) both;
}
.colonne { flex: 1 1 0; min-width: 0; overflow: visible; }
.piste { display: flex; flex-direction: column; gap: 18px; animation: monte 56s linear infinite; will-change: transform; }
.colonne:nth-child(2n) .piste { animation-direction: reverse; animation-duration: 64s; }
.colonne:nth-child(3n) .piste { animation-duration: 48s; }
.colonne:nth-child(5) .piste { animation-duration: 70s; }
.ecran {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  background: var(--ch-fond);
  color: var(--ch-encre);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10%;
  padding: 14% 10% 18%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.ecran::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--ch-accent) 28%, transparent), transparent 60%); }
.ecran img { position: relative; width: 58%; height: auto; border-radius: 18%; }
.ecran .nom { position: relative; font-family: var(--marque); font-weight: 700; font-size: clamp(0.45rem, 0.7vw, 0.62rem); letter-spacing: 0.16em; text-transform: uppercase; text-align: center; line-height: 1.5; }
.ecran .sous { position: absolute; left: 14%; right: 14%; bottom: 13%; height: 7%; border-radius: 6px; background: var(--ch-surface); display: flex; gap: 6%; align-items: center; padding: 0 8%; }
.ecran .sous i { display: block; height: 32%; flex: 1; border-radius: 4px; background: color-mix(in srgb, var(--ch-encre) 55%, transparent); }
.ecran .sous i:nth-child(2) { background: var(--ch-accent); flex: 1.4; }
.ecran .barre { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.12); }
.ecran .barre::after { content: ""; position: absolute; inset: 0; background: var(--ch-accent); transform-origin: left; animation: lecture 7s linear infinite; }
.piste .ecran:nth-child(3n) .barre::after { animation-duration: 9s; animation-delay: -3s; }
.piste .ecran:nth-child(3n + 1) .barre::after { animation-duration: 6s; animation-delay: -1.5s; }
.voile { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--nuit) 0%, rgba(11, 10, 15, 0.95) 40%, rgba(11, 10, 15, 0.55) 62%, rgba(11, 10, 15, 0.12) 100%), linear-gradient(0deg, var(--nuit) 0%, rgba(11, 10, 15, 0) 40%); }
.ouverture-contenu { position: relative; max-width: 840px; }
.ouverture .label { color: var(--gris); display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.ouverture .label::before { content: ""; width: 34px; height: 1px; background: var(--orange); }
.ouverture h1 { font-size: clamp(2.7rem, 6.3vw, 6.2rem); line-height: 0.95; letter-spacing: -0.045em; }
.ouverture h1 .ligne { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.ouverture h1 .ligne > span { display: inline-block; animation: titre-monte 1.1s var(--sortie) both; }
.ouverture h1 .ligne:nth-child(2) > span { animation-delay: 0.12s; }
.ouverture h1 .ligne:nth-child(3) > span { animation-delay: 0.24s; }
.ouverture h1 em { position: relative; color: var(--creme); }
.ouverture h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.1em; height: 0.09em; background: var(--orange); transform-origin: left; animation: souligne 0.9s 1.1s var(--sortie) both; }
.chapo { font-size: clamp(1.08rem, 1.6vw, 1.32rem); line-height: 1.55; color: rgba(244, 239, 230, 0.8); max-width: 620px; margin: 30px 0 34px; animation: fondu-monte 1s 0.45s var(--sortie) both; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; animation: fondu-monte 1s 0.6s var(--sortie) both; }
.compteurs { list-style: none; padding: 24px 0 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--ligne); max-width: 760px; animation: fondu-monte 1s 0.8s var(--sortie) both; }
.compteurs strong { display: block; font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 720; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.compteurs li > span { display: block; color: var(--gris); font-size: 0.88rem; line-height: 1.4; margin-top: 6px; }
.compteurs-note { color: var(--gris); font-size: 0.82rem; margin: 14px 0 0; max-width: 760px; animation: fondu-monte 1s 0.9s var(--sortie) both; }
.compteurs-note a { color: var(--creme); }
@media (max-width: 880px) {
  .ouverture { align-items: flex-end; padding-top: 96px; }
  .mur { width: 150%; right: -50%; top: -10%; height: 90%; opacity: 0.4; }
  .colonne:nth-child(n + 5) { display: none; }
  .voile { background: linear-gradient(0deg, var(--nuit) 0%, rgba(11, 10, 15, 0.92) 55%, rgba(11, 10, 15, 0.7) 80%, rgba(11, 10, 15, 0.6) 100%); }
  .compteurs { grid-template-columns: 1fr 1fr; }
  .compteurs li:last-child { grid-column: 1 / -1; }
}

/* ─── Bandeau défilant ────────────────────────────────────────────────────────────────────────────────────────── */
.defilant { border-block: 1px solid var(--ligne); overflow: hidden; padding: 22px 0; background: var(--nuit); }
.defilant-piste { display: flex; width: max-content; animation: defile 38s linear infinite; }
.defilant ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.defilant li { font-family: var(--marque); font-weight: 700; font-size: clamp(1.1rem, 2.6vw, 2rem); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; padding-right: 0.9em; }
.defilant li:nth-child(2n) { color: transparent; -webkit-text-stroke: 1px rgba(244, 239, 230, 0.55); }
.defilant li::after { content: "✦"; display: inline-block; margin-left: 0.9em; color: var(--orange); -webkit-text-stroke: 0; font-size: 0.6em; vertical-align: 0.25em; }

/* ─── Sections ────────────────────────────────────────────────────────────────────────────────────────────────── */
.section { padding: clamp(88px, 12vw, 160px) 0; position: relative; }
.entete-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-bottom: clamp(48px, 7vw, 88px); }
@media (min-width: 980px) { .entete-section { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 56px; } }
.entete-section .label { color: var(--orange); margin-bottom: 18px; display: block; }
.entete-section h2 { font-size: clamp(2.3rem, 5.6vw, 4.8rem); line-height: 0.98; letter-spacing: -0.04em; }
.entete-section > p { color: rgba(244, 239, 230, 0.72); font-size: 1.12rem; max-width: 520px; margin: 0; }
.note { color: var(--gris); font-size: 0.9rem; line-height: 1.55; }
.note a { color: inherit; }

/* Apparitions au défilement (seulement avec le script et sans réduction des mouvements) */
.js [data-revele] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--sortie), transform 0.9s var(--sortie); transition-delay: var(--retard, 0s); }
.js [data-revele].vu { opacity: 1; transform: none; }
.js [data-revele="masque"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--sortie); transition-delay: var(--retard, 0s); }
.js [data-revele="masque"].vu { clip-path: inset(0 0 0 0); }
.js .grille-chaines > li:nth-child(4n + 2) { --retard: 0.08s; }
.js .grille-chaines > li:nth-child(4n + 3) { --retard: 0.16s; }
.js .grille-chaines > li:nth-child(4n + 4) { --retard: 0.24s; }
.js .etapes > li:nth-child(2) { --retard: 0.05s; }

/* ─── Le réseau : Tactikofoot en vedette ──────────────────────────────────────────────────────────────────────── */
.reseau { background: var(--nuit); }
.vedette {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(24px, 4vw, 56px);
  border-radius: calc(var(--rayon) + 10px);
  background: radial-gradient(90% 120% at 0% 0%, rgba(242, 226, 28, 0.1), transparent 55%), var(--nuit-2);
  border: 1px solid var(--ligne);
}
@media (min-width: 960px) { .vedette { grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); } }
.telephone {
  position: relative;
  width: min(100%, 360px);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 34px;
  background: var(--ch-fond);
  color: var(--ch-encre);
  overflow: hidden;
  box-shadow: 0 0 0 8px #1b1a20, 0 0 0 9px rgba(255, 255, 255, 0.1), 0 50px 90px -40px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  padding: 26px 18px 22px;
}
.telephone .haut { display: flex; align-items: center; gap: 10px; }
.telephone .haut img { width: 38px; height: 38px; border-radius: 10px; }
.telephone .haut .label { font-size: 0.56rem; color: var(--ch-encre); }
.telephone .rubrique { margin: 18px 0 0; display: inline-block; align-self: flex-start; background: var(--ch-accent); color: var(--ch-fond); font-family: var(--marque); font-weight: 700; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 10px; transform: rotate(-2deg); }
.telephone .tableau { margin: auto 0; width: 100%; }
.t-pelouse { fill: #18361f; }
.t-ligne { fill: none; stroke: rgba(244, 235, 217, 0.55); stroke-width: 2; }
.t-a { fill: var(--ch-encre); }
.t-b { fill: #ff5a36; }
.t-6 { fill: var(--ch-accent); }
.t-zone { fill: rgba(242, 226, 28, 0.16); stroke: var(--ch-accent); stroke-width: 2; stroke-dasharray: 6 6; transform-box: fill-box; transform-origin: center; animation: zone 8s var(--sortie) infinite; }
.t-fleche { fill: none; stroke: var(--ch-accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; animation: trace 8s var(--sortie) infinite; }
.t-fleche.deux { animation-delay: 0.6s; }
.t-joueur { animation: decale 8s var(--sortie) infinite; }
.telephone .sous-titre { position: relative; text-align: center; font-weight: 820; font-size: 1.32rem; line-height: 1.15; letter-spacing: -0.01em; text-transform: uppercase; margin: 0 0 14px; }
.telephone .sous-titre span { display: inline-block; animation: mot 8s infinite; }
.telephone .sous-titre span:nth-child(2) { animation-delay: 0.45s; }
.telephone .sous-titre span:nth-child(3) { animation-delay: 0.9s; }
.telephone .sous-titre span:nth-child(4) { animation-delay: 1.35s; }
.telephone .sous-titre span:nth-child(5) { animation-delay: 1.8s; }
.telephone .sous-titre span:nth-child(6) { animation-delay: 2.25s; }
.telephone .progression { height: 3px; border-radius: 3px; background: rgba(244, 235, 217, 0.18); overflow: hidden; }
.telephone .progression::after { content: ""; display: block; height: 100%; background: var(--ch-accent); transform-origin: left; animation: lecture 8s linear infinite; }

.vedette-texte .statut { display: inline-flex; align-items: center; gap: 10px; color: var(--vert); margin-bottom: 18px; }
.vedette-texte .statut::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6); animation: pouls 2.2s infinite; }
.vedette-texte h3 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); letter-spacing: -0.04em; margin-bottom: 18px; }
.vedette-texte > p:not(.label) { color: rgba(244, 239, 230, 0.78); font-size: 1.08rem; max-width: 640px; }
.etiquettes { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0; }
.etiquettes li { border: 1px solid var(--ligne); border-radius: 999px; padding: 6px 14px; font-size: 0.86rem; color: rgba(244, 239, 230, 0.85); }
.chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 28px 0 18px; background: var(--ligne); border: 1px solid var(--ligne); border-radius: 18px; overflow: hidden; }
@media (min-width: 640px) { .chiffres { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chiffres > div { background: var(--nuit-2); padding: 20px 18px; }
.chiffres dt { color: var(--gris); font-size: 0.82rem; line-height: 1.35; order: 2; }
.chiffres dd { margin: 0 0 6px; font-size: clamp(1.45rem, 2.6vw, 2.1rem); font-weight: 740; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.chiffres > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.comptes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.comptes a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(244, 239, 230, 0.07); font-weight: 550; font-size: 0.92rem; transition: background-color 0.2s; }
.comptes a:hover { background: rgba(244, 239, 230, 0.16); }
.comptes a::after { content: "↗"; color: var(--orange); }

/* ─── Le réseau : chaînes à venir ─────────────────────────────────────────────────────────────────────────────── */
.a-venir { margin-top: clamp(56px, 8vw, 96px); }
.a-venir-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: 28px; }
.a-venir-tete h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.a-venir-tete p { color: var(--gris); margin: 0; max-width: 560px; }
.grille-chaines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.chaine-carte {
  position: relative;
  height: 100%;
  border-radius: var(--rayon);
  background: var(--ch-fond);
  color: var(--ch-encre);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.5s var(--sortie), box-shadow 0.5s var(--sortie);
}
.chaine-carte::before { content: ""; position: absolute; inset: auto -30% -60% -30%; height: 90%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ch-accent) 35%, transparent), transparent); opacity: 0.55; transition: opacity 0.5s, transform 0.6s var(--sortie); }
.chaine-carte:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--ch-accent), 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.chaine-carte:hover::before { opacity: 0.9; transform: translateY(-12%); }
.chaine-carte img { position: relative; width: 64px; height: 64px; border-radius: 16px; transition: transform 0.6s var(--sortie); }
.chaine-carte:hover img { transform: rotate(-6deg) scale(1.06); }
.chaine-carte h4 { position: relative; margin: 6px 0 0; font-size: 1.32rem; font-weight: 760; letter-spacing: -0.02em; line-height: 1.12; }
.chaine-carte p { position: relative; margin: 0; font-size: 0.95rem; line-height: 1.5; opacity: 0.86; }
.chaine-carte .bas { position: relative; margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.78rem; border-top: 1px solid color-mix(in srgb, var(--ch-encre) 18%, transparent); }
.chaine-carte .bas span:first-child { color: var(--ch-accent); font-weight: 650; }
.chaine-carte .bas span + span::before { content: "· "; opacity: 0.6; }
@media (max-width: 640px) {
  .grille-chaines { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: calc(var(--gouttiere) * -1); padding-inline: var(--gouttiere); scroll-padding-inline: var(--gouttiere); }
  .grille-chaines > li { scroll-snap-align: start; }
}
.a-venir .note { margin-top: 22px; }

/* ─── On fabrique pour vous ───────────────────────────────────────────────────────────────────────────────────── */
.offre { background: var(--creme); color: var(--nuit); border-radius: 44px 44px 0 0; }
.offre .entete-section > p { color: var(--gris-clair); }
.offre .entete-section .label { color: var(--violet); }
.offre .note { color: var(--gris-clair); }
.pile { display: grid; gap: 22px; }
.offre-carte {
  position: sticky;
  top: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px 48px;
  padding: clamp(26px, 4vw, 52px);
  border-radius: 32px;
  background: #fffdf8;
  box-shadow: 0 0 0 1px var(--ligne-claire), 0 -24px 60px -40px rgba(11, 10, 15, 0.45);
  min-height: 340px;
}
.offre-carte:nth-child(2) { top: 120px; background: #f1ebff; }
.offre-carte:nth-child(3) { top: 144px; background: #fff0ea; }
.offre-carte:nth-child(4) { top: 168px; background: var(--nuit); color: var(--creme); }
.offre-carte:nth-child(4) .offre-num, .offre-carte:nth-child(4) li::before { color: var(--orange); }
.offre-carte:nth-child(4) p, .offre-carte:nth-child(4) li { color: rgba(244, 239, 230, 0.8); }
@media (min-width: 900px) { .offre-carte { grid-template-columns: 120px minmax(0, 1.1fr) minmax(0, 1fr); } }
@media (max-width: 899px), (max-height: 720px) { .offre-carte, .offre-carte:nth-child(n) { position: relative; top: 0; } }
.offre-num { font-family: var(--marque); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.18em; color: var(--violet); }
.offre-carte h3 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); letter-spacing: -0.035em; margin-bottom: 14px; }
.offre-carte p { color: var(--gris-clair); margin: 0; font-size: 1.04rem; }
.offre-carte ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; align-content: start; }
.offre-carte li { position: relative; padding-left: 26px; color: #2b2833; }
.offre-carte li::before { content: "→"; position: absolute; left: 0; color: var(--violet); font-weight: 700; }
.offre-carte .recu { font-family: var(--marque); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gris-clair); margin-bottom: 4px; padding-left: 0; }
.offre-carte .recu::before { content: none; }
.offre-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--ligne-claire); }
.offre-pied p { margin: 0; color: var(--gris-clair); max-width: 620px; }

/* ─── Méthode ─────────────────────────────────────────────────────────────────────────────────────────────────── */
.methode { background: var(--creme); color: var(--nuit); padding-top: 0; }
.methode-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 980px) {
  .methode-grille { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 80px; }
  .methode-collant { position: sticky; top: 120px; align-self: start; }
}
.methode .label { color: var(--violet); display: block; margin-bottom: 18px; }
.methode h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); letter-spacing: -0.04em; }
.methode-collant p { color: var(--gris-clair); font-size: 1.1rem; margin-top: 22px; max-width: 460px; }
.etapes { list-style: none; margin: 0; padding: 0; counter-reset: etape; position: relative; }
.etapes::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: var(--ligne-claire); }
.etapes::after { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: var(--violet); transform-origin: top; }
@supports (animation-timeline: view()) {
  .etapes::after { animation: remplit linear both; animation-timeline: view(); animation-range: entry 40% exit 60%; }
}
.etapes li { position: relative; padding: 0 0 52px 84px; counter-increment: etape; }
.etapes li:last-child { padding-bottom: 0; }
.etapes li::before { content: counter(etape, decimal-leading-zero); position: absolute; left: 0; top: -6px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fffdf8; box-shadow: 0 0 0 1px var(--ligne-claire); font-family: var(--marque); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.08em; z-index: 1; transition: background-color 0.5s, color 0.5s; }
.js .etapes li.vu::before { background: var(--violet); color: #fff; }
.etapes h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.03em; margin-bottom: 10px; }
.etapes p { color: var(--gris-clair); margin: 0; max-width: 560px; }

/* ─── Principes ───────────────────────────────────────────────────────────────────────────────────────────────── */
.principes { background: var(--nuit); }
.principes .label { color: var(--orange); display: block; margin-bottom: 30px; }
.principes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.principes li { font-size: clamp(2rem, 6.4vw, 5.6rem); font-weight: 780; letter-spacing: -0.045em; line-height: 1.02; }
.principes li em { font-weight: 220; color: var(--gris); }
.principes li .surligne { background: linear-gradient(var(--orange), var(--orange)) 0 88% / 0% 0.12em no-repeat; transition: background-size 1.2s 0.3s var(--sortie); }
.js .principes li.vu .surligne, .principes li .surligne.fixe { background-size: 100% 0.12em; }
html:not(.js) .principes li .surligne { background-size: 100% 0.12em; }
.principes .note { margin-top: 36px; max-width: 620px; }

/* ─── Jeux ────────────────────────────────────────────────────────────────────────────────────────────────────── */
.jeux { background: var(--nuit-2); border-block: 1px solid var(--ligne); padding: clamp(56px, 8vw, 96px) 0; }
.jeux-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
@media (min-width: 900px) { .jeux-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; } }
.jeux h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -0.035em; }
.jeux p { color: rgba(244, 239, 230, 0.72); margin: 14px 0 0; }
.jeux ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.jeux li a { display: inline-block; text-decoration: none; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--ligne); font-weight: 600; transition: border-color 0.2s, background-color 0.2s; }
.jeux li a:hover { border-color: var(--orange); background: rgba(255, 90, 54, 0.08); }
.jeux li a span { display: block; font-weight: 400; font-size: 0.78rem; color: var(--gris); }

/* ─── Contact ─────────────────────────────────────────────────────────────────────────────────────────────────── */
.contact { background: var(--orange); color: var(--nuit); overflow: hidden; }
.contact .label { display: block; margin-bottom: 22px; }
.contact h2 { font-size: clamp(2.8rem, 9vw, 8.4rem); line-height: 0.92; letter-spacing: -0.05em; max-width: 12ch; }
.contact h2 em { font-weight: 200; }
.contact-mail { display: inline-flex; align-items: center; gap: 18px; margin: 44px 0 30px; font-size: clamp(1.3rem, 3.4vw, 2.6rem); font-weight: 650; letter-spacing: -0.03em; text-decoration: none; border-bottom: 3px solid var(--nuit); padding-bottom: 6px; overflow-wrap: anywhere; }
.contact-mail .fleche { transition: transform 0.4s var(--sortie); }
.contact-mail:hover .fleche { transform: translate(6px, -6px); }
.sujets { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 30px; }
.sujets a { display: inline-block; text-decoration: none; padding: 11px 18px; border-radius: 999px; background: rgba(11, 10, 15, 0.1); font-weight: 600; transition: background-color 0.2s, color 0.2s; }
.sujets a:hover { background: var(--nuit); color: var(--creme); }
.contact p { max-width: 640px; color: rgba(11, 10, 15, 0.78); }

/* ─── Pied de page ────────────────────────────────────────────────────────────────────────────────────────────── */
.pied { background: var(--nuit); color: var(--creme); padding: 72px 0 28px; overflow: hidden; }
.pied-haut { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 820px) { .pied-haut { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.pied p { color: var(--gris); margin: 0 0 8px; max-width: 460px; }
.pied p strong { color: var(--creme); font-weight: 600; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.pied ul a { text-decoration: none; color: rgba(244, 239, 230, 0.8); overflow-wrap: anywhere; }
.pied ul a:hover { color: var(--orange); }
.mot-geant { font-family: var(--marque); font-weight: 700; font-size: clamp(2.6rem, 13.2vw, 13rem); line-height: 0.9; letter-spacing: -0.02em; margin: 64px 0 24px; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(244, 239, 230, 0.32); user-select: none; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--gris); font-size: 0.82rem; border-top: 1px solid var(--ligne); padding-top: 20px; }

/* ─── Pages de texte (mentions, confidentialité, jeux) ────────────────────────────────────────────────────────── */
.page-claire { background: var(--creme); color: var(--nuit); }
.page-claire .entete.plein { background: rgba(244, 239, 230, 0.86); border-bottom-color: var(--ligne-claire); }
.page-claire .entete .marque, .page-claire .nav a { color: var(--nuit); }
.page-claire .marque svg { color: var(--nuit); box-shadow: none; }
.page-claire .nav a:hover { background: rgba(11, 10, 15, 0.06); color: var(--nuit); }
.page-claire .nav a.appel { background: var(--nuit); color: var(--creme); }
.page-claire .nav a.appel:hover { background: var(--orange); color: var(--nuit); }
.page-claire .nav a.langue, .page-claire .menu summary { border-color: var(--ligne-claire); }
.page-claire .menu[open] summary { background: var(--nuit); color: var(--creme); }
.page-claire .menu-liste { background: #fffdf8; border-color: var(--ligne-claire); color: var(--nuit); box-shadow: 0 30px 60px -30px rgba(11, 10, 15, 0.4); }
.page-claire .menu-liste a:hover { background: rgba(11, 10, 15, 0.06); }
.page-claire a:focus-visible { outline-color: var(--violet); }
.texte { padding: 132px 0 96px; }
.texte .conteneur { max-width: 860px; }
.texte h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.045em; margin-bottom: 18px; }
.texte h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.025em; margin: 52px 0 14px; padding-top: 22px; border-top: 1px solid var(--ligne-claire); }
.texte h3 { font-size: 1.2rem; letter-spacing: -0.01em; margin: 28px 0 10px; }
.texte p, .texte li { color: #2b2833; }
.texte a { color: var(--violet); font-weight: 500; }
.texte ul { padding-left: 1.2em; }
.texte li + li { margin-top: 6px; }
.maj { font-family: var(--marque); font-weight: 700; font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gris-clair); }
.encadre { background: #fffdf8; border: 1px solid var(--ligne-claire); border-left: 5px solid var(--violet); border-radius: 18px; padding: 20px 22px; margin: 26px 0; }
.encadre p, .encadre ul { margin: 0; }
.fil { font-size: 0.92rem; margin: 0 0 18px; color: var(--gris-clair); }
.fil a { color: var(--gris-clair); }
dl.fiche { display: grid; grid-template-columns: 1fr; gap: 2px 24px; margin: 0; padding: 22px 24px; background: #fffdf8; border-radius: 20px; box-shadow: 0 0 0 1px var(--ligne-claire); }
@media (min-width: 680px) { dl.fiche { grid-template-columns: 220px 1fr; } }
dl.fiche dt { font-weight: 650; color: var(--nuit); }
dl.fiche dd { margin: 0 0 12px; overflow-wrap: anywhere; color: #2b2833; }
.carte { background: #fffdf8; border: 1px solid var(--ligne-claire); border-radius: 20px; padding: 22px; }
.carte h3 { margin-top: 0; }
.carte p { margin: 8px 0 0; }
.etat { font-family: var(--marque); font-weight: 700; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet); }
.liste-apps { list-style: none; padding: 0 !important; margin: 26px 0 0; display: grid; gap: 14px; }
@media (min-width: 700px) { .liste-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.liste-apps li { margin: 0 !important; }
.liste-apps .carte { height: 100%; }
mark.todo { background: var(--todo-fond); color: var(--todo-encre); padding: 0.06em 0.4em; border-radius: 5px; font-weight: 650; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.erreur { min-height: 78vh; display: grid; place-items: center; text-align: center; padding: 120px 0 64px; }
.erreur .code { font-family: var(--marque); font-weight: 700; font-size: clamp(5rem, 22vw, 14rem); line-height: 0.9; margin: 0 0 18px; color: transparent; -webkit-text-stroke: 2px var(--orange); }
.erreur h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: 14px; }
.erreur p { color: rgba(244, 239, 230, 0.72); }
.erreur .actions { justify-content: center; margin-top: 28px; animation: none; }

/* ─── Images clés ─────────────────────────────────────────────────────────────────────────────────────────────── */
/* Sans opacité à l'arrivée : la valeur de la feuille (plus faible sur téléphone) reste la fin du fondu. */
@keyframes mur-arrive { from { opacity: 0; transform: rotate(-9deg) scale(1.12); } to { transform: rotate(-9deg) scale(1); } }
@keyframes monte { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 9px)); } }
@keyframes lecture { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes titre-monte { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes souligne { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fondu-monte { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes trace { 0%, 12% { stroke-dashoffset: 220; opacity: 1; } 34%, 82% { stroke-dashoffset: 0; opacity: 1; } 94%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes zone { 0%, 8% { opacity: 0; transform: scale(0.6); } 20%, 84% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(1); } }
@keyframes decale { 0%, 30% { transform: translate(0, 0); } 48%, 84% { transform: translate(-26px, 22px); } 100% { transform: translate(0, 0); } }
@keyframes mot { 0%, 3% { color: var(--ch-encre); transform: none; } 6%, 20% { color: var(--ch-accent); transform: translateY(-2px) scale(1.06); } 26%, 100% { color: var(--ch-encre); transform: none; } }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.55); } 70% { box-shadow: 0 0 0 12px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
@keyframes remplit { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Mouvements réduits : rien ne bouge, tout est visible d'emblée. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-revele], .js [data-revele="masque"] { opacity: 1; transform: none; clip-path: none; }
  .principes li .surligne { background-size: 100% 0.12em; }
  .t-fleche { stroke-dashoffset: 0; }
  .ecran .barre::after, .telephone .progression::after { transform: scaleX(0.4); }
  .entete.cache { transform: none; }
}
