/* ALPHA CMB — version 3 : « le plateau », avec la lumière de la version 1.
   Base : la version 2 ; les changements de la version 3 sont réunis à la fin de ce fichier.
   (Version 2 : « le plateau »)
   Le tapis de danse réversible d'une école de spectacle : face noire, face grise.
   Les repères sont des marques de ruban adhésif, jaune et blanc, comme sur une vraie scène. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Music"; src: url("../fonts/notomusic.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --noir: #0f0d0c;            /* face noire du tapis */
  --noir-2: #181513;
  --noir-3: #24201d;
  --gris: #cfcdc8;            /* face grise du tapis */
  --gris-2: #dcdad5;
  --encre: #141210;
  --texte: #efebe4;
  --texte-2: #a8a196;
  --ruban: #f6c059;           /* l'or des lettres ALPHA du logo */
  --ruban-vif: #fce370;       /* leur reflet le plus clair */
  --ruban-blanc: #e9e6df;     /* ruban de marquage blanc */
  --rouge: #c41e2a;
  --ligne: rgba(239, 235, 228, 0.14);
  --ligne-forte: rgba(239, 235, 228, 0.42);
  --anneau: var(--ruban);

  --affiche: "Archivo", "Arial Narrow", sans-serif;
  --courant: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sortie: cubic-bezier(0.16, 1, 0.3, 1);
  --gouttiere: clamp(20px, 5vw, 80px);
  --bord: max(var(--gouttiere), calc((100% - 1360px) / 2));      /* marge latérale : la page ne dépasse pas 1360 px de contenu */
  --bloc: clamp(84px, 12vh, 150px);
  --tete-h: 76px;
}
.face-grise {
  background: var(--gris); color: var(--encre);
  --texte-2: #4d4842; --ligne: rgba(20, 18, 16, 0.16); --ligne-forte: rgba(20, 18, 16, 0.4); --anneau: var(--encre);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--tete-h) + 8px); scrollbar-color: #4a443e var(--noir); scrollbar-width: thin; }
body { margin: 0; background: var(--noir); color: var(--texte); font-family: var(--courant); font-size: 1.0625rem; line-height: 1.6; font-weight: 400; font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: clip; caret-color: var(--ruban); }
::selection { background: var(--ruban); color: var(--encre); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--noir); }
::-webkit-scrollbar-thumb { background: #4a443e; border: 2px solid var(--noir); border-radius: 6px; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--anneau); outline-offset: 3px; }
.lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icones { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.evitement { position: fixed; left: 16px; top: -80px; z-index: 200; padding: 12px 18px; background: var(--ruban); color: var(--encre); font-weight: 650; text-decoration: none; transition: top 0.2s; }
.evitement:focus { top: 16px; }

/* La voix de l'affiche : Archivo étroit et gras, en capitales. */
h1, h2, .affiche-texte { font-family: var(--affiche); font-weight: 800; font-stretch: 68%; text-transform: uppercase; line-height: 0.92; letter-spacing: 0; text-wrap: balance; }
h3 { font-family: var(--affiche); font-weight: 750; font-stretch: 72%; text-transform: uppercase; line-height: 0.95; text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 4.8vw, 4.6rem); }

/* ——— Le ruban de marquage ———
   Un morceau de ruban coupé à la main : les deux bouts ne sont jamais tout à fait droits. */
.ruban-coupe { clip-path: polygon(0 16%, 3px 0, calc(100% - 4px) 10%, 100% 0, 100% 84%, calc(100% - 3px) 100%, 4px 90%, 0 100%); }

/* ——— Boutons ——— */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 48px; padding: 0 22px; border: 0; border-radius: 2px; font-weight: 650; font-size: 0.9375rem; line-height: 1.15; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.bouton svg { transition: transform 0.35s var(--sortie); }
.bouton:hover svg { transform: translateX(3px); }
.bouton[href^="http"]:hover svg { transform: translate(2px, -2px); }
.bouton:active { transform: translateY(1px); }
.bouton--grand { min-height: 56px; padding: 0 28px; font-size: 1rem; }
.bouton--ruban { background: var(--ruban); color: var(--encre); }
.bouton--ruban:hover { background: var(--ruban-vif); }
.bouton--clair { background: rgba(15, 13, 12, 0.4); color: var(--texte); box-shadow: inset 0 0 0 1.5px rgba(239, 235, 228, 0.6); }
.bouton--clair:hover { background: var(--texte); color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--texte); }
.bouton--ligne { background: none; color: inherit; box-shadow: inset 0 0 0 1.5px var(--ligne-forte); }
.bouton--ligne:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
.bouton--encre { background: var(--encre); color: var(--gris-2); }
.bouton--encre:hover { background: #2c2724; color: #fff; }
.bouton:disabled { opacity: 0.5; cursor: default; }
.bouton-icone { display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 2px; background: none; color: inherit; transition: background-color 0.2s, color 0.2s; }
.bouton-icone:hover { background: rgba(239, 235, 228, 0.1); }

/* ——— En-tête ——— */
.tete { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--tete-h); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 28px; padding: 0 var(--gouttiere); transition: background-color 0.35s, box-shadow 0.35s; }
.tete::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; background: linear-gradient(to bottom, rgba(15, 13, 12, 0.72), rgba(15, 13, 12, 0)); pointer-events: none; transition: opacity 0.35s; }
.tete.est-pose { background: rgba(15, 13, 12, 0.97); box-shadow: 0 1px 0 var(--ligne); }
.tete.est-pose::before { opacity: 0; }
.tete__logo { justify-self: start; display: block; height: 52px; aspect-ratio: 580 / 312; transition: filter 0.3s; }
.tete__logo img { width: 100%; height: 100%; }
.tete__logo:hover { filter: brightness(1.12); }
.tete__nav { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.tete__nav a { position: relative; padding: 12px 1px; font-weight: 600; font-size: 0.9375rem; text-decoration: none; color: var(--texte); }
.tete__nav a::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: 5px; height: 4px; background: var(--ruban); clip-path: polygon(0 16%, 3px 0, calc(100% - 4px) 10%, 100% 0, 100% 84%, calc(100% - 3px) 100%, 4px 90%, 0 100%); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--sortie); }
.tete__nav a:hover::after, .tete__nav a[aria-current="true"]::after { transform: scaleX(1); }
.tete__actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.tete__actions .bouton { min-height: 44px; padding: 0 20px; }
.tete__menu { display: none; width: 48px; height: 48px; padding: 0; border: 0; background: none; color: var(--texte); place-items: center; }

/* Le menu, sur téléphone */
.menu { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0 var(--gouttiere) max(24px, env(safe-area-inset-bottom)); border: 0; background: var(--noir); color: var(--texte); }
@supports (height: 1dvh) { .menu { height: 100dvh; } }
.menu[open] { display: grid; grid-template-rows: auto 1fr auto; }
.menu::backdrop { background: var(--noir); }
.menu__tete { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.menu__tete img { height: 44px; width: auto; }
.menu__liens { display: grid; align-content: start; margin-top: 24px; border-top: 1px solid var(--ligne); }
.menu__liens a { padding: 16px 0; border-bottom: 1px solid var(--ligne); font-family: var(--affiche); font-weight: 800; font-stretch: 68%; font-size: 2.4rem; line-height: 1; text-transform: uppercase; text-decoration: none; }
.menu__action { width: 100%; }

/* ——— Ouverture ——— */
.ouverture { position: relative; isolation: isolate; min-height: max(620px, 100vh); display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--noir); }
@supports (height: 1svh) { .ouverture { min-height: max(620px, 100svh); } }
.film { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--noir); }
.film__secours, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--foyer, 50%) 50%; }
.film video { opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 0s 1.2s; }
.film video.est-visible { opacity: 1; transform: scale(1); transition: opacity 1.2s ease, transform var(--plan, 7s) linear; }
.ouverture__voile { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to top, rgba(15, 13, 12, 0.95) 0%, rgba(15, 13, 12, 0.74) 24%, rgba(15, 13, 12, 0.22) 58%, rgba(15, 13, 12, 0.4) 100%), linear-gradient(to right, rgba(15, 13, 12, 0.6) 0%, rgba(15, 13, 12, 0) 62%); }
.ouverture__contenu { align-self: end; padding: calc(var(--tete-h) + 48px) var(--gouttiere) clamp(32px, 5vh, 56px); max-width: 1180px; }
.ouverture h1 { font-size: clamp(2.7rem, 6.6vw, 6rem); color: #fff; }
.insecable { white-space: nowrap; }
.ouverture__phrase { margin-top: clamp(16px, 2.4vh, 24px); max-width: 38ch; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.45; color: var(--texte); }
.ouverture__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4vh, 36px); }
.ouverture__pied { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 8px 20px; padding: 0 var(--gouttiere) clamp(16px, 3vh, 28px); }
.plans { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 150px); gap: 18px; }
.plans button { display: grid; gap: 10px; width: 100%; min-height: 44px; padding: 8px 0 6px; border: 0; background: none; text-align: left; font-weight: 600; font-size: 0.8125rem; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(239, 235, 228, 0.62); transition: color 0.3s; }
.plans button:hover, .plans button[aria-current="true"] { color: var(--texte); }
.plans__barre { display: block; height: 3px; background: rgba(239, 235, 228, 0.24); overflow: hidden; }
.plans__barre i { display: block; height: 100%; background: var(--ruban); transform: scaleX(var(--p, 0)); transform-origin: left; }
.film__pause { color: var(--texte); }
.film__pause[hidden] { display: none; }
.film__mention { align-self: center; font-size: 0.8125rem; color: rgba(239, 235, 228, 0.66); }
.film__mention[hidden] { display: none; }

/* ——— Les trois repères ——— */
.reperes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 var(--bord); border-bottom: 1px solid var(--ligne); }
.repere { display: grid; align-content: start; gap: 6px; padding: 30px clamp(16px, 2.4vw, 36px) 32px; text-decoration: none; transition: background-color 0.25s; }
.repere:first-child { padding-left: 0; }
.repere + .repere { border-left: 1px solid var(--ligne); }
.repere strong { display: flex; align-items: center; gap: 12px; font-family: var(--affiche); font-weight: 750; font-stretch: 72%; font-size: 1.375rem; line-height: 1.05; text-transform: uppercase; }
.repere strong::before { content: ""; width: 16px; height: 5px; flex: none; background: var(--ruban); clip-path: polygon(0 16%, 2px 0, calc(100% - 2px) 10%, 100% 0, 100% 84%, calc(100% - 2px) 100%, 2px 90%, 0 100%); }
.repere span { padding-left: 28px; color: var(--texte-2); font-size: 0.9375rem; }
.repere:hover strong { color: var(--ruban); }

/* ——— L'école ——— */
.ecole { padding: var(--bloc) var(--bord); }
.ecole__tete, .agenda__tete { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 28px clamp(32px, 6vw, 100px); }
.ecole__tete p, .agenda__tete p { max-width: 50ch; color: var(--texte-2); font-size: 1.125rem; }
.ecole__tete p { color: var(--encre); }
.disciplines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(48px, 7vw, 88px); }
.discipline__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 2px; overflow: hidden; background: #1e1b19; }
.discipline__media img, .discipline__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--foyer, 50%) 50%; transition: transform 0.9s var(--sortie); }
.discipline__media video { opacity: 0; transition: opacity 0.6s, transform 0.9s var(--sortie); }
.discipline__media video.est-pret { opacity: 1; }
.discipline__media:hover img, .discipline__media:hover video { transform: scale(1.035); }
.discipline__media::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(to top, rgba(15, 13, 12, 0.7), rgba(15, 13, 12, 0)); pointer-events: none; }
.discipline__compte { position: absolute; left: 14px; bottom: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 12px; background: rgba(15, 13, 12, 0.82); color: var(--texte); font-weight: 600; font-size: 0.875rem; transition: background-color 0.25s, color 0.25s; }
.discipline__compte:empty { display: none; }
.discipline__compte svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.discipline__media:hover .discipline__compte { background: var(--ruban); color: var(--encre); }
.discipline h3 { margin-top: 22px; font-size: clamp(2rem, 3vw, 2.75rem); }
.discipline p { margin-top: 8px; max-width: 34ch; color: var(--texte-2); }

/* ——— Les vignettes : galerie et spectacle ——— */
.vignette { position: relative; display: block; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 2px; overflow: hidden; background: var(--noir-2); color: var(--texte); text-align: left; }
.vignette img, .vignette video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--foyer, 50%) 50%; transition: transform 0.9s var(--sortie), opacity 0.4s; }
.vignette video { opacity: 0; }
.vignette.est-en-lecture video { opacity: 1; }
.vignette:hover img, .vignette:hover video { transform: scale(1.035); }
.vignette::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(15, 13, 12, 0.82), rgba(15, 13, 12, 0)); pointer-events: none; }
.vignette__legende { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 2px; padding: 16px 18px 15px; }
.vignette__titre { font-weight: 650; font-size: 1rem; line-height: 1.25; }
.vignette__meta { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: rgba(239, 235, 228, 0.74); }
.vignette__meta svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }

/* Un emplacement réservé : quatre coins de ruban blanc, comme la place d'un décor marquée sur le plateau. */
.place { position: relative; display: grid; place-content: center; justify-items: center; gap: 4px; width: 100%; height: 100%; padding: 20px; background: var(--noir-2); color: var(--texte-2); text-align: center; }
.place::before { content: ""; position: absolute; inset: 14px; pointer-events: none;
  --c: var(--ruban-blanc); --l: 26px; --e: 4px;
  background:
    linear-gradient(var(--c) 0 0) 0 0 / var(--l) var(--e), linear-gradient(var(--c) 0 0) 0 0 / var(--e) var(--l),
    linear-gradient(var(--c) 0 0) 100% 0 / var(--l) var(--e), linear-gradient(var(--c) 0 0) 100% 0 / var(--e) var(--l),
    linear-gradient(var(--c) 0 0) 0 100% / var(--l) var(--e), linear-gradient(var(--c) 0 0) 0 100% / var(--e) var(--l),
    linear-gradient(var(--c) 0 0) 100% 100% / var(--l) var(--e), linear-gradient(var(--c) 0 0) 100% 100% / var(--e) var(--l);
  background-repeat: no-repeat; opacity: 0.8; }
.place strong { font-family: var(--affiche); font-weight: 750; font-stretch: 72%; font-size: 1.5rem; line-height: 1; text-transform: uppercase; color: var(--texte); }
.place span { font-size: 0.9375rem; }
.place--grande strong { font-size: clamp(1.75rem, 2.6vw, 2.5rem); }
.place--grande::before { --l: 40px; --e: 5px; inset: 20px; }

/* ——— Le spectacle de l'école ——— */
.spectacle { padding: var(--bloc) var(--bord) 0; }
.spectacle__tete { display: grid; grid-template-columns: minmax(0, 1fr) clamp(170px, 18vw, 250px); align-items: end; gap: 32px clamp(32px, 6vw, 96px); }
.spectacle h2 { font-size: clamp(2.6rem, 6vw, 5.75rem); }
.spectacle__quand { margin-top: 18px; font-weight: 600; font-size: 1.0625rem; color: var(--texte); }
.spectacle__quand span:first-child { color: var(--ruban); }
.spectacle__quand span + span::before, .date__heure span + span::before { content: "· "; }
.spectacle__resume { margin-top: 14px; max-width: 58ch; color: var(--texte-2); }
.spectacle__texte .bouton { margin-top: 28px; }
.spectacle__texte .bouton[hidden] { display: none; }
.spectacle__affiche { display: block; width: 100%; padding: 0; border: 0; background: none; }
.spectacle__affiche img { width: 100%; height: auto; border-radius: 2px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9), 0 8px 18px -8px rgba(0, 0, 0, 0.7); transition: transform 0.6s var(--sortie); }
.spectacle__affiche:hover img { transform: translateY(-4px); }
.planche { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); margin-top: clamp(44px, 6vw, 72px); }
.planche > li, .planche > div { aspect-ratio: 3 / 2; min-width: 0; }
.planche > :first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
/* Les cas particuliers, réglés par equilibrer() dans js/main.js : la dernière rangée reste pleine. */
.planche > .seul, .mosaique > li.seul { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
/* Deux images : la première sur deux colonnes donne la hauteur, la seconde la suit. */
.planche.deux > :first-child, .mosaique.deux > li:first-child { grid-row: auto; aspect-ratio: 16 / 10; }
.planche.deux > :nth-child(2), .mosaique.deux > li:nth-child(2) { aspect-ratio: auto; }
.planche > .large2, .mosaique > li.large2 { grid-column: span 2; aspect-ratio: auto; }
.planche > .large3, .mosaique > li.large3 { grid-column: 1 / -1; aspect-ratio: 3 / 1; }
.planche__note { margin-top: 16px; font-size: 0.9375rem; color: var(--texte-2); }
.planche__note[hidden] { display: none; }

/* ——— À l'affiche ——— */
.agenda { padding: var(--bloc) var(--bord); }
.agenda__tete { padding-top: var(--bloc); border-top: 1px solid var(--ligne); }
.dates { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ligne-forte); }
.date { display: grid; grid-template-columns: 7.5rem 5.5rem minmax(0, 1fr) auto; align-items: center; gap: 20px clamp(18px, 2.6vw, 40px); padding: 26px 0; border-bottom: 1px solid var(--ligne); }
.date__quand { display: grid; gap: 4px; font-variant-numeric: lining-nums tabular-nums; }
.date__jour { font-family: var(--affiche); font-weight: 800; font-stretch: 68%; font-size: 3.5rem; line-height: 0.85; }
.date__jour small { margin-left: 6px; font-size: 1.375rem; font-weight: 700; text-transform: uppercase; }
.date__heure { font-weight: 600; font-size: 0.9375rem; color: var(--texte-2); }
.date__affiche { display: block; width: 100%; padding: 0; border: 0; background: none; }
.date__affiche img { width: 100%; height: auto; aspect-ratio: 924 / 1300; object-fit: cover; border-radius: 1px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.9); transition: transform 0.4s var(--sortie); }
.date__affiche:hover img { transform: translateY(-3px); }
.date__info { display: grid; gap: 6px; min-width: 0; }
.date__info h3 { font-size: clamp(1.6rem, 2.4vw, 2.25rem); }
.date__genre { font-weight: 600; color: var(--texte); }
.date__details { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; margin-top: 6px; font-size: 0.9375rem; color: var(--texte-2); }
.date__details dt { font-weight: 600; color: var(--texte); }
.date__details dd { margin: 0; }
.date__actions { display: grid; justify-items: end; gap: 10px; }
.date__actions a:not(.bouton) { font-size: 0.9375rem; color: var(--texte-2); }
.date__actions a:not(.bouton):hover { color: var(--texte); }
/* Une étiquette sur ruban : « Demain », « Déjà joué » — comme les noms écrits au feutre sur le ruban de scène. */
.etiquette { display: inline-block; justify-self: start; padding: 5px 10px 4px; font-weight: 700; font-size: 0.8125rem; line-height: 1.2; letter-spacing: 0.06em; text-transform: uppercase; background: var(--ruban); color: var(--encre); transform: rotate(-1.5deg); clip-path: polygon(0 10%, 3px 0, calc(100% - 4px) 6%, 100% 0, 100% 90%, calc(100% - 3px) 100%, 4px 94%, 0 100%); }
.etiquette--blanche { background: var(--ruban-blanc); }
.date.est-passe .date__info, .date.est-passe .date__quand, .date.est-passe .date__affiche { opacity: 0.6; }
.dates__secours { margin-top: 24px; }

.repetition { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 32px clamp(32px, 5vw, 80px); margin-top: var(--bloc); }
.repetition__image { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: var(--noir-2); }
.repetition__image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.repetition h3 { font-size: clamp(2rem, 3.4vw, 3.25rem); }
.repetition__texte > p { margin-top: 18px; max-width: 46ch; color: var(--texte-2); }
.repetition blockquote { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--ligne); }
.repetition blockquote p { font-weight: 500; font-size: clamp(1.1875rem, 1.6vw, 1.4375rem); line-height: 1.4; color: var(--texte); }
.repetition blockquote footer { margin-top: 12px; font-size: 0.875rem; color: var(--texte-2); }
.repetition .legende { margin-top: 22px; font-size: 0.8125rem; }

/* ——— L'équipe ——— */
.equipe { padding: var(--bloc) var(--bord); }
.equipe h2 { max-width: 20ch; }
.fondateurs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px clamp(16px, 2vw, 32px); margin-top: clamp(44px, 6vw, 72px); align-items: start; }
.fondateur { grid-column: 8 / span 5; margin-top: clamp(80px, 12vw, 180px); }
.fondateur--large { grid-column: 1 / span 6; margin-top: 0; }
.fondateur__image { overflow: hidden; border-radius: 2px; background: var(--gris-2); }
.fondateur--large .fondateur__image { aspect-ratio: 4 / 3; }
.fondateur:not(.fondateur--large) .fondateur__image { aspect-ratio: 1008 / 1193; }
.fondateur__image img { width: 100%; height: 100%; object-fit: cover; }
.fondateur figcaption { margin-top: 22px; }
.fondateur h3 { font-size: clamp(1.9rem, 2.8vw, 2.6rem); }
.fondateur__role { margin-top: 8px; font-weight: 650; font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--texte-2); }
.fondateur figcaption > p:last-child { margin-top: 14px; max-width: 52ch; }
.presse { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 28px clamp(32px, 6vw, 96px); margin-top: var(--bloc); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ligne-forte); }
.presse h3 { font-size: clamp(2.6rem, 6.4vw, 6rem); font-weight: 800; font-stretch: 66%; line-height: 0.92; }
.presse__texte { display: grid; justify-items: start; gap: 24px; }
.presse__texte p { max-width: 48ch; }

/* ——— La galerie ——— */
.galerie { padding: var(--bloc) var(--bord); }
.galerie__tete { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; }
.filtres { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.filtres button { position: relative; display: inline-flex; align-items: baseline; gap: 6px; min-height: 44px; padding: 10px 12px; border: 0; background: none; font-weight: 600; font-size: 1rem; color: var(--texte-2); transition: color 0.2s; }
.filtres button small { font-size: 0.8125rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.filtres button::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 4px; background: var(--ruban); clip-path: polygon(0 16%, 3px 0, calc(100% - 4px) 10%, 100% 0, 100% 84%, calc(100% - 3px) 100%, 4px 90%, 0 100%); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--sortie); }
.filtres button:hover { color: var(--texte); }
.filtres button[aria-selected="true"] { color: var(--texte); }
.filtres button[aria-selected="true"]::after { transform: scaleX(1); }
.mosaique { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); margin-top: clamp(28px, 4vw, 44px); }
.mosaique li { aspect-ratio: 16 / 10; min-width: 0; }
.mosaique li:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.mosaique li.arrive { animation: arrive 0.6s var(--sortie) both; animation-delay: calc(var(--rang, 0) * 40ms); }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } }
.galerie__note { margin-top: 18px; font-size: 0.875rem; color: var(--texte-2); }
.galerie__note[hidden] { display: none; }

/* ——— L'inscription ——— */
.inscription { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: 40px clamp(40px, 7vw, 120px); padding: var(--bloc) var(--bord); }
.inscription h2 { font-size: clamp(2.6rem, 5.6vw, 5.4rem); }
.inscription__texte p { margin-top: 20px; max-width: 36ch; font-size: 1.1875rem; }
.fiche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.champ { display: grid; align-content: start; gap: 8px; }
.champ--plein, .fiche__envoi { grid-column: 1 / -1; }
.champ label { font-weight: 650; font-size: 0.9375rem; }
.champ label span { margin-left: 0.35em; font-weight: 400; color: var(--texte-2); }
.champ input, .champ select, .champ textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid rgba(20, 18, 16, 0.34); border-radius: 2px; background: var(--gris-2); color: var(--encre); font-size: 1.0625rem; font-weight: 500; caret-color: var(--encre); transition: border-color 0.2s, background-color 0.2s; }
.champ textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: rgba(20, 18, 16, 0.6); }
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible { outline: 2px solid var(--encre); outline-offset: 0; border-color: var(--encre); background: #e6e4df; }
.champ ::placeholder { color: #6e6861; opacity: 1; }
.choix { position: relative; }
.choix select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.choix svg { position: absolute; right: 14px; top: 50%; translate: 0 -50%; rotate: 90deg; pointer-events: none; }
.champ__erreur { font-size: 0.9375rem; font-weight: 500; color: #8d1019; }
.champ__erreur[hidden] { display: none; }
.champ.a-une-erreur input { border-color: #8d1019; box-shadow: inset 0 0 0 1px #8d1019; }
.fiche__envoi { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 6px; }
.fiche__etat { max-width: 52ch; font-weight: 500; }
.fiche__etat:empty { display: none; }

/* ——— Pied ——— */
.pied { padding: clamp(64px, 9vh, 110px) var(--bord) max(40px, env(safe-area-inset-bottom)); }
.pied__haut { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; gap: 40px clamp(32px, 5vw, 80px); }
.pied__logo { width: min(260px, 60vw); height: auto; }
.pied__nav { display: grid; justify-items: start; }
.pied__nav a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; text-decoration: none; }
.pied__nav a:hover { color: var(--ruban); }
.pied__infos { display: grid; gap: 16px; font-size: 0.9375rem; color: var(--texte-2); }

/* ——— La visionneuse ——— */
.visionneuse { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 10, 9, 0.985); color: var(--texte); overflow: hidden; }
@supports (height: 1dvh) { .visionneuse { height: 100dvh; } }
.visionneuse::backdrop { background: rgba(12, 10, 9, 0.9); }
.visionneuse__cadre { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(10px, 2vh, 22px); padding: clamp(10px, 2vh, 20px) var(--gouttiere) clamp(14px, 3vh, 28px); }
.visionneuse__tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.visionneuse__liste { font-family: var(--affiche); font-weight: 750; font-stretch: 72%; font-size: 1.5rem; line-height: 1; text-transform: uppercase; }
.visionneuse__compte { margin-left: 10px; font-family: var(--courant); font-weight: 500; font-stretch: 100%; font-size: 0.9375rem; text-transform: none; color: var(--texte-2); font-variant-numeric: tabular-nums; }
.visionneuse__plateau { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(8px, 2vw, 24px); min-height: 0; }
.visionneuse__media { min-height: 0; height: 100%; display: grid; place-items: center; }
.visionneuse__media img, .visionneuse__media video { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 2px; background: #000; }
.visionneuse__media.arrive > * { animation: visionneuse-arrive 0.55s var(--sortie); }
@keyframes visionneuse-arrive { from { opacity: 0; filter: blur(8px); transform: scale(0.98); } }
.visionneuse__fleche[hidden] { visibility: hidden; display: inline-grid; }
.visionneuse__pied { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 40px; }
.visionneuse__titre { font-weight: 650; font-size: 1.1875rem; }
.visionneuse__mention { margin-top: 4px; font-size: 0.875rem; color: var(--texte-2); }
.visionneuse__vignettes { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.visionneuse__vignettes button { display: block; width: 88px; aspect-ratio: 16 / 10; padding: 0; border: 0; border-radius: 2px; background: var(--noir-3) center / cover no-repeat; opacity: 0.45; transition: opacity 0.2s, box-shadow 0.2s; }
.visionneuse__vignettes button:hover { opacity: 0.85; }
.visionneuse__vignettes button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--ruban); }

/* ——— Écrans moyens ——— */
@media (max-width: 1080px) {
  .tete { grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; }
  .tete__nav { justify-self: center; gap: 22px; }
  .date { grid-template-columns: 6.5rem 4.75rem minmax(0, 1fr); }
  .date__actions { grid-column: 3; justify-items: start; }
}

/* ——— Téléphone ——— */
@media (max-width: 760px) {
  :root { --tete-h: 64px; --bloc: clamp(64px, 10vh, 96px); }
  body { font-size: 1rem; }
  .tete { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .tete__logo { height: 42px; }
  .tete__nav { display: none; }
  .tete__menu { display: inline-grid; }
  .tete__actions .bouton { padding: 0 16px; }

  .ouverture { min-height: max(560px, 100svh); }
  .ouverture__voile { background: linear-gradient(to top, rgba(15, 13, 12, 0.96) 0%, rgba(15, 13, 12, 0.8) 34%, rgba(15, 13, 12, 0.25) 66%, rgba(15, 13, 12, 0.45) 100%); }
  .ouverture h1 { font-size: clamp(1.85rem, 9.8vw, 3.6rem); }
  .ouverture__actions { display: grid; }
  .ouverture__actions .bouton { width: 100%; white-space: normal; text-align: center; padding: 0 16px; }
  .ouverture__pied { grid-template-columns: minmax(0, 1fr) auto; }
  .plans { grid-auto-columns: minmax(0, 1fr); gap: 10px; }
  .plans button { font-size: 0.8125rem; letter-spacing: 0; text-transform: none; white-space: nowrap; }
  .film__mention { grid-column: 1 / -1; grid-row: 2; font-size: 0.75rem; }

  .reperes { grid-template-columns: minmax(0, 1fr); }
  .repere, .repere:first-child { padding: 22px 0; }
  .repere + .repere { border-left: 0; border-top: 1px solid var(--ligne); }

  .ecole__tete, .agenda__tete { grid-template-columns: minmax(0, 1fr); }
  .disciplines { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .discipline__media { aspect-ratio: 16 / 11; }
  .discipline h3 { margin-top: 16px; }

  .spectacle__tete { grid-template-columns: minmax(0, 1fr) 112px; align-items: start; gap: 20px; }
  .spectacle__texte { display: contents; }
  .spectacle h2 { grid-column: 1; grid-row: 1; align-self: end; }
  .spectacle__affiche { grid-column: 2; grid-row: 1; }
  .spectacle__quand, .spectacle__resume, .spectacle__texte .bouton { grid-column: 1 / -1; }
  .spectacle__quand { margin-top: 0; display: grid; gap: 2px; }
  .spectacle__quand span + span::before { content: none; }
  .spectacle__resume { margin-top: -8px; }
  .planche { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planche > :first-child, .mosaique > li:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
  .planche > :not(:first-child), .mosaique > li:not(:first-child) { grid-column: auto; grid-row: auto; aspect-ratio: 3 / 2; }
  .planche > :last-child:nth-child(even), .mosaique > li:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .place strong { font-size: 1.125rem; }
  .place span { font-size: 0.8125rem; }
  .place::before { inset: 10px; --l: 18px; --e: 3px; }

  .date { grid-template-columns: 4.5rem minmax(0, 1fr); align-items: start; gap: 14px 18px; padding: 24px 0; }
  .date__jour { font-size: 2.75rem; }
  .date__jour small { display: block; margin: 4px 0 0; font-size: 1.125rem; }
  .date__heure { display: grid; }
  .date__heure span + span::before { content: none; }
  .date__affiche { display: none; }
  .date__info, .date__actions { grid-column: 2; }
  .date__actions { justify-items: start; }
  .date__details { grid-template-columns: minmax(0, 1fr); }
  .date__details dd { margin-bottom: 6px; }

  .repetition { grid-template-columns: minmax(0, 1fr); }
  .fondateurs { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .fondateur, .fondateur--large { grid-column: 1; margin-top: 0; }
  .presse { grid-template-columns: minmax(0, 1fr); }

  .filtres { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gouttiere) * -1); padding: 0 var(--gouttiere); scrollbar-width: none; }
  .filtres::-webkit-scrollbar { display: none; }
  .filtres button { flex: none; }
  .mosaique { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vignette__legende { padding: 10px 12px; }
  .vignette__titre { font-size: 0.9375rem; }
  .mosaique li:not(:first-child) .vignette__meta { display: none; }

  .inscription { grid-template-columns: minmax(0, 1fr); }
  .fiche { grid-template-columns: minmax(0, 1fr); }
  .fiche__envoi .bouton { width: 100%; }

  .pied__haut { grid-template-columns: minmax(0, 1fr); }

  .visionneuse__plateau { grid-template-columns: minmax(0, 1fr); position: relative; }
  .visionneuse__fleche { position: absolute; top: 50%; z-index: 1; margin-top: -24px; background: rgba(15, 13, 12, 0.7); }
  .visionneuse__fleche[data-visionneuse-pas="-1"] { left: 0; }
  .visionneuse__fleche[data-visionneuse-pas="1"] { right: 0; }
  .visionneuse__pied { grid-template-columns: minmax(0, 1fr); }
}
/* Fenêtre basse sur ordinateur (un portable, une fenêtre réduite) : toute l'ouverture tient dans l'écran, boutons et plans compris. */
@media (max-height: 760px) and (min-width: 761px) {
  .ouverture { min-height: max(500px, 100vh); }
  .ouverture__contenu { padding-top: calc(var(--tete-h) + 16px); padding-bottom: 20px; }
  .ouverture h1 { font-size: clamp(2.4rem, min(6.6vw, 10.5vh), 6rem); }
  .ouverture__phrase { margin-top: 12px; font-size: 1.125rem; }
  .ouverture__actions { margin-top: 20px; }
  .ouverture__actions .bouton--grand { min-height: 50px; }
}
@media (max-width: 380px) {
  /* Très petit écran : seul le nom du plan en cours s'affiche, au-dessus de sa barre. */
  .plans button > span:first-child { visibility: hidden; }
  .plans button[aria-current="true"] > span:first-child { visibility: visible; }
  .tete__actions .bouton { padding: 0 12px; font-size: 0.875rem; }
  .tete__logo { height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .film video { transform: none !important; }
}


/* ════════════════════════════════════════════════════════════════
   VERSION 3 — la lumière de scène
   ════════════════════════════════════════════════════════════════ */

:root { --or-plat: #edb957; --or-plat-fonce: #dfa946; --or-plat-appui: #d29c3b; --or: #f6c059; --or-clair: #fce370; --or-orange: #f19e3c; --or-bronze: #c98745; --rouge-logo: #851d0a; --rouge-logo-sombre: #5c1207; --or-ombre: rgba(241, 158, 60, 0.5); --musique: "Noto Music", "Apple Symbols", "Segoe UI Symbol", serif; }

/* ——— Les boutons : des rectangles nets, en ivoire et en lumière ———
   Le seul accent est celui de la partition : une fine ligne lumineuse, la tête de lecture, qui traverse le bouton. */
.bouton { position: relative; isolation: isolate; overflow: hidden; border-radius: 2px; }
.bouton::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; z-index: -1; width: 1px; margin-left: -1px; background: rgba(239, 235, 228, 0.7); box-shadow: none; opacity: 0; pointer-events: none; transition: left 0s 0.5s, opacity 0.5s; }
.bouton:hover::after { left: 100%; opacity: 1; transition: left 0.85s var(--sortie), opacity 0.2s; }
/* Le principal : un aplat de l'or du logo, sans dégradé ni lueur, texte encre. Mêmes tailles et proportions que la
   version 2 (demande du 27/11). Au survol, l'or fonce un peu, il ne brille pas. */
.bouton--lumiere { background: var(--or-plat); color: var(--encre); box-shadow: none; filter: none; transition: background-color 0.25s; }
.bouton--lumiere::after { display: none; }
.bouton--lumiere:hover { background: var(--or-plat-fonce); box-shadow: none; filter: none; }
.bouton--lumiere:active { background: var(--or-plat-appui); }
/* Le secondaire : un cadre d'un pixel, que la tête de lecture traverse. */
.bouton--contour { background: rgba(15, 13, 12, 0.45); color: var(--texte); box-shadow: inset 0 0 0 1px rgba(237, 185, 87, 0.6); }
.bouton--contour:hover { background: rgba(15, 13, 12, 0.6); color: var(--or-plat); box-shadow: inset 0 0 0 1px var(--or-plat); }
/* La tête de lecture traverse le cadre au survol : un simple filet d'or, sans halo. */
.bouton--contour::after { width: 1px; background: var(--or-plat); box-shadow: none; }
.face-grise .bouton--contour { color: var(--encre); background: transparent; box-shadow: inset 0 0 0 1px rgba(20, 18, 16, 0.45); }
.bouton--encre { background: var(--encre); color: #efebe4; box-shadow: none; }
.bouton--encre:hover { background: #24201d; color: #fff; }
.tete__actions .bouton { min-height: 44px; }
.bouton-icone { border-radius: 2px; }

/* ——— Les repères : la même ligne de lumière que la tête de lecture ——— */
.tete__nav a::after, .filtres button::after { height: 1.5px; bottom: 6px; clip-path: none; background: var(--or-plat); transform-origin: center; box-shadow: none; }
.repere strong::before { width: 2px; height: 18px; border-radius: 1px; clip-path: none; background: var(--or-plat); box-shadow: none; transition: height 0.4s var(--sortie), box-shadow 0.4s; }
.repere span { padding-left: 14px; }      /* aligné sur le titre, après la ligne de lumière */
.repere:hover strong::before { height: 24px; }
.repere:hover strong { color: var(--or-plat); }
.discipline__compte { border-radius: 2px; padding: 0 14px 0 12px; background: rgba(15, 13, 12, 0.72); box-shadow: inset 0 0 0 1px rgba(239, 235, 228, 0.18); }
.discipline__media:hover .discipline__compte { background: var(--or-plat); color: var(--encre); box-shadow: none; }
.spectacle__quand span:first-child { color: var(--or-clair); }

/* Les étiquettes : un cadre fin ; « Demain » porte la petite ligne de lumière, qui respire. */
.etiquette { display: inline-flex; align-items: center; gap: 9px; padding: 6px 11px 5px; border-radius: 2px; transform: none; clip-path: none; background: transparent; color: var(--or-plat); box-shadow: inset 0 0 0 1px rgba(237, 185, 87, 0.6); font-size: 0.8125rem; letter-spacing: 0.08em; }
.etiquette:not(.etiquette--blanche)::before { content: ""; width: 2px; height: 12px; border-radius: 1px; background: var(--or-plat); box-shadow: none; }
.anime .etiquette:not(.etiquette--blanche)::before { animation: voyant 2.4s ease-in-out infinite; }
@keyframes voyant { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.etiquette--blanche { background: transparent; color: var(--texte-2); box-shadow: inset 0 0 0 1px var(--ligne-forte); }

/* Les emplacements : des coins d'or fin, et une lumière qui passe lentement, comme un projecteur qui cherche sa place. */
.place::before { --c: rgba(246, 192, 89, 0.7); --e: 2px; }
.place { overflow: hidden; background: radial-gradient(120% 90% at 50% 120%, rgba(241, 158, 60, 0.08), transparent 60%), var(--noir-2); }
.place::after { content: ""; position: absolute; inset: -20%; pointer-events: none; background: linear-gradient(105deg, transparent 42%, rgba(246, 230, 190, 0.07) 50%, transparent 58%); transform: translateX(-60%); }
.anime .place::after { animation: balayage 7s ease-in-out infinite; animation-delay: calc(var(--d, 0) * 0.6s); }
@keyframes balayage { 0% { transform: translateX(-60%); } 55%, 100% { transform: translateX(60%); } }

/* ——— La lumière qui suit la main, sur les images ——— */
[data-poursuite] { position: relative; }
[data-poursuite]::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 240, 210, 0.2), rgba(255, 240, 210, 0) 65%); opacity: 0; transition: opacity 0.45s; mix-blend-mode: screen; }
[data-poursuite]:hover::before { opacity: 1; }

/* ——— La partition, sous la vidéo d'accueil ———
   Une portée qui se déroule : chaque plan est une mesure, les notes s'allument en passant sous la tête de lecture. */
.partition { --il: 7px; --haut: 30px; --mesure: 300px; position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; min-width: 0; }
.partition[hidden] { display: none; }
.partition__clef { position: relative; top: var(--haut); width: calc(var(--il) * 3.2); font-family: var(--musique); font-size: calc(var(--il) * 4); line-height: 1; color: var(--or-clair); transform: translateY(calc(var(--il) * 0.02)); text-shadow: 0 0 12px rgba(246, 230, 190, 0.5); pointer-events: none; user-select: none; }
.partition__fenetre { position: relative; height: calc(var(--haut) + var(--il) * 4 + 16px); overflow: hidden; cursor: pointer; touch-action: pan-y; -webkit-tap-highlight-color: transparent; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 84%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 84%, transparent 100%); }
.partition__fenetre:focus-visible { outline: none; }
.partition__fenetre:focus-visible .partition__lecture { box-shadow: 0 0 0 2px rgba(246, 230, 190, 0.5), 0 0 16px 3px rgba(246, 230, 190, 0.7); }
.partition__fenetre::before { content: ""; position: absolute; left: 0; right: 0; top: var(--haut); height: calc(var(--il) * 4 + 1px); background: repeating-linear-gradient(to bottom, rgba(239, 235, 228, 0.34) 0 1px, transparent 1px var(--il)); pointer-events: none; }
.partition__piste { position: absolute; left: 0; top: 0; height: 100%; will-change: transform; }
.mesure { position: absolute; top: 0; left: calc(var(--rang) * var(--mesure)); width: var(--mesure); height: 100%; }
.mesure::after { content: ""; position: absolute; right: 0; top: var(--haut); width: 1px; height: calc(var(--il) * 4 + 1px); background: rgba(239, 235, 228, 0.5); }
.mesure__nom { position: absolute; left: 12px; top: 4px; font-weight: 600; font-size: 0.8125rem; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; color: rgba(239, 235, 228, 0.5); transition: color 0.4s, text-shadow 0.4s; }
.mesure.est-courante .mesure__nom { color: #fff; text-shadow: 0 0 14px rgba(246, 230, 190, 0.6); }
/* La note : une tête ovale penchée de 21°, une hampe ; la position 0 est la ligne du bas. */
.note { --c: rgba(239, 235, 228, 0.42); position: absolute; left: calc((0.18 + var(--k) * 0.2) * var(--mesure)); top: calc(var(--haut) + var(--il) * (4 - var(--pas) * 0.5)); width: calc(var(--il) * 1.3); height: calc(var(--il) * 0.9); margin: calc(var(--il) * -0.45) 0 0 calc(var(--il) * -0.65); color: var(--c); transition: color 0.35s, filter 0.5s; }
.note::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; transform: rotate(-21deg); }
.note::after { content: ""; position: absolute; right: 0; bottom: 50%; width: 1.5px; height: calc(var(--il) * 3.2); background: currentColor; }
.note--bas::after { right: auto; left: 0; bottom: auto; top: 50%; }
.note.jouee { --c: var(--or-clair); filter: drop-shadow(0 0 4px rgba(246, 230, 190, 0.55)); }
.note.sonne { animation: sonne 0.9s var(--sortie); }
@keyframes sonne { 0% { transform: scale(1.9); filter: drop-shadow(0 0 10px rgba(255, 240, 200, 1)); } 100% { transform: scale(1); } }
.partition__lecture { position: absolute; left: var(--lecture, 30%); top: calc(var(--haut) - 12px); width: 2px; height: calc(var(--il) * 4 + 24px); margin-left: -1px; border-radius: 1px; background: linear-gradient(to bottom, rgba(246, 230, 190, 0), #fff6df 22%, #fff6df 78%, rgba(246, 230, 190, 0)); box-shadow: 0 0 14px 2px rgba(246, 230, 190, 0.55); pointer-events: none; }
.partition__lecture::before { content: ""; position: absolute; left: 50%; top: 4px; width: 7px; height: 7px; margin-left: -3.5px; background: #fff6df; transform: rotate(45deg); box-shadow: 0 0 10px rgba(246, 230, 190, 0.9); }
.partition.est-en-pause .partition__lecture { opacity: 0.55; }
.partition__fenetre:hover .note:not(.jouee) { --c: rgba(239, 235, 228, 0.7); }
.partition__fenetre.est-saisie { cursor: grabbing; }

/* ——— En quittant l'ouverture, la scène recule ——— */
.anime .film { transform: scale(calc(1 + var(--recul, 0) * 0.1)); filter: brightness(calc(1 - var(--recul, 0) * 0.55)); transform-origin: 50% 40%; }
.anime .ouverture__contenu { transform: translateY(calc(var(--recul, 0) * -90px)); opacity: calc(1 - var(--recul, 0) * 1.4); }

/* ——— Les apparitions ——— */
.anime [data-revele="mots"] .mot { display: inline-block; clip-path: inset(-0.35em -0.2em 100% -0.2em); transform: translateY(0.55em); transition: clip-path 1s var(--sortie), transform 1.1s var(--sortie); transition-delay: calc(var(--n) * 55ms); }
.anime [data-revele="mots"].est-visible .mot { clip-path: inset(-0.35em -0.2em -0.3em -0.2em); transform: none; }
.anime [data-revele="rideau"] { clip-path: inset(0 50% 0 50%); transition: clip-path 1.4s var(--sortie); transition-delay: calc(var(--d, 0) * 140ms); }
.anime [data-revele="rideau"].est-visible { clip-path: inset(-8px); }
.anime [data-revele="tuile"] { opacity: 0; transform: translateY(26px) scale(0.98); filter: blur(8px); transition: opacity 0.9s var(--sortie), transform 1.1s var(--sortie), filter 0.9s var(--sortie); transition-delay: calc(var(--d, 0) * 70ms); }
.anime [data-revele="tuile"].est-visible { opacity: 1; transform: none; filter: none; }
.anime [data-revele="ligne"] { opacity: 0; transform: translateX(-20px); transition: opacity 0.8s var(--sortie), transform 1s var(--sortie); transition-delay: calc(var(--d, 0) * 90ms); }
.anime [data-revele="ligne"].est-visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .partition { --il: 6px; --haut: 26px; --mesure: 170px; }
  .mesure__nom { left: 8px; letter-spacing: 0.04em; }
  .ouverture__pied { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (prefers-reduced-motion: reduce) {
  .bouton--lumiere::after, .bouton--encre::after { display: none; }
}

/* ——— Le bas de l'ouverture (version 3, retouche du 27/11) ———
   La vidéo qui recule au défilement ne déborde plus sous l'ouverture, le bas se fond dans le noir des repères,
   et la partition descend au plus près du bord. Le bouton pause est tout à droite. */
.ouverture { overflow: hidden; }
.ouverture__voile { background: linear-gradient(to top, var(--noir) 0%, rgba(15, 13, 12, 0.94) 9%, rgba(15, 13, 12, 0.72) 28%, rgba(15, 13, 12, 0.22) 58%, rgba(15, 13, 12, 0.4) 100%), linear-gradient(to right, rgba(15, 13, 12, 0.6) 0%, rgba(15, 13, 12, 0) 62%); }
.ouverture__pied { grid-template-columns: minmax(0, 1fr) auto; padding-bottom: clamp(6px, 1.4vh, 14px); }
.film__pause { align-self: center; margin-top: calc(var(--il, 7px) * 2); }
@media (max-width: 760px) {
  .ouverture__voile { background: linear-gradient(to top, var(--noir) 0%, rgba(15, 13, 12, 0.96) 9%, rgba(15, 13, 12, 0.8) 34%, rgba(15, 13, 12, 0.25) 66%, rgba(15, 13, 12, 0.45) 100%); }
}

/* ——— La galerie complète (version 3, 27/11) ———
   Les emplacements de la page restent fixes ; au-delà, on ouvre la galerie complète, en grille plein écran. */
.vignette__plus { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 6px; background: rgba(15, 13, 12, 0.72); color: var(--texte); transition: background-color 0.3s; }
.vignette__plus strong { font-family: var(--affiche); font-weight: 800; font-stretch: 68%; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 0.9; }
.vignette__plus span { font-weight: 600; font-size: 0.9375rem; color: var(--or-plat); }
.vignette:hover .vignette__plus { background: rgba(15, 13, 12, 0.6); }
.bouton small { font-size: 0.8125rem; font-weight: 500; opacity: 0.7; font-variant-numeric: tabular-nums; }
.galerie__suite { display: flex; justify-content: center; margin-top: clamp(24px, 3vw, 40px); }
.galerie__suite [hidden] { display: none; }
.complete { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--noir); color: var(--texte); overflow: hidden; }
@supports (height: 1dvh) { .complete { height: 100dvh; } }
.complete::backdrop { background: var(--noir); }
.complete[open] { display: block; }
.complete__cadre { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.complete__tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gouttiere); border-bottom: 1px solid var(--ligne); }
.complete__titre { font-size: clamp(1.75rem, 3vw, 2.6rem); }
.complete__titre small { margin-left: 12px; font-family: var(--courant); font-weight: 500; font-stretch: 100%; font-size: 0.9375rem; text-transform: none; color: var(--texte-2); }
.complete__grille { overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); align-content: start; gap: 12px; padding: 24px var(--gouttiere) 48px; }
.complete__grille li { aspect-ratio: 16 / 10; min-width: 0; }
@media (max-width: 760px) { .complete__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .complete__grille .vignette__meta { display: none; } }

/* ——— Les tarifs (version 3, 27/11) ———
   Deux ou trois formules côte à côte, chacune dans un cadre fin ; celle mise en avant a son cadre d'or. */
.tarifs { padding: var(--bloc) var(--bord); border-top: 1px solid var(--ligne); }
.tarifs[hidden] { display: none; }
.tarifs__tete { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 28px clamp(32px, 6vw, 100px); }
.tarifs__tete p { max-width: 50ch; color: var(--texte-2); font-size: 1.125rem; }
.tarifs__tete p:empty { display: none; }
.tarifs__offre { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: clamp(28px, 4vw, 44px); font-weight: 600; color: var(--texte); }
.tarifs__offre[hidden] { display: none; }
.formules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(36px, 5vw, 60px); }
.formule { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 0; padding: clamp(24px, 3vw, 40px); border-radius: 2px; background: var(--noir-2); box-shadow: inset 0 0 0 1px var(--ligne); }
.formule--avant { box-shadow: inset 0 0 0 1px rgba(237, 185, 87, 0.65); }
.formule h3 { font-size: clamp(1.9rem, 2.8vw, 2.6rem); }
.formule__public { margin-top: 8px; font-weight: 600; color: var(--texte-2); }
.formule__public:empty { display: none; }
.formule__prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: clamp(22px, 3vw, 34px); padding-bottom: clamp(20px, 2.6vw, 28px); border-bottom: 1px solid var(--ligne); }
.formule__prix strong { font-family: var(--affiche); font-weight: 800; font-stretch: 68%; font-size: clamp(3.6rem, 6vw, 5.4rem); line-height: 0.85; color: #fff; font-variant-numeric: lining-nums tabular-nums; }
.formule--avant .formule__prix strong { color: var(--or-plat); }
.formule__prix s { font-family: var(--affiche); font-weight: 700; font-stretch: 72%; font-size: 1.6rem; line-height: 1; color: var(--texte-2); text-decoration-thickness: 2px; }
.formule__prix span { font-weight: 600; color: var(--texte-2); }
.formule__points { display: grid; align-content: start; gap: 12px; margin: clamp(20px, 2.6vw, 28px) 0 clamp(26px, 3vw, 36px); padding: 0; list-style: none; }
.formule__points li { display: grid; grid-template-columns: 2px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--texte); }
.formule__points li::before { content: ""; height: 1.1em; margin-top: 0.25em; background: var(--or-plat); }
.formule .bouton { justify-self: start; }
.tarifs__note { margin-top: clamp(20px, 3vw, 32px); max-width: 70ch; font-size: 0.9375rem; color: var(--texte-2); }
.tarifs__note:empty { display: none; }
@media (max-width: 760px) {
  .tarifs__tete { grid-template-columns: minmax(0, 1fr); }
  .formule .bouton { justify-self: stretch; }
}

/* ——— L'emploi du temps ———
   Une semaine posée comme une feuille de service : les heures à gauche, un jour par colonne, chaque cours à sa place,
   marqué du ruban de son groupe. Les rubans : or pour les enfants, blanc pour les ados, rouge pour les adultes. */
.horaires { padding: var(--bloc) var(--bord); border-top: 1px solid var(--ligne); }
.horaires[hidden] { display: none; }
.horaires__tete { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 28px clamp(32px, 6vw, 100px); }
.horaires__tete p { max-width: 50ch; color: var(--texte-2); font-size: 1.125rem; }
.horaires__tete p:empty { display: none; }
[data-groupe="enfants"] { --groupe: var(--or-plat); }
[data-groupe="ados"] { --groupe: var(--ruban-blanc); }
[data-groupe="adultes"] { --groupe: #d8402f; }
[data-groupe="tous"] { --groupe: var(--texte-2); }

.groupes-choix { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(28px, 4vw, 44px); }
.groupes-choix button { position: relative; display: grid; justify-items: start; gap: 1px; min-height: 58px; padding: 9px 18px 9px 20px; border: 0; border-radius: 2px; background: none; box-shadow: inset 0 0 0 1px var(--ligne-forte); color: var(--texte); text-align: left; transition: background-color 0.25s, color 0.25s, box-shadow 0.25s; }
.groupes-choix button::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--groupe, transparent); }
.groupes-choix button strong { font-weight: 650; font-size: 1rem; }
.groupes-choix button span { font-size: 0.875rem; color: var(--texte-2); transition: color 0.25s; }
.groupes-choix button:hover { box-shadow: inset 0 0 0 1px var(--texte); }
.groupes-choix button[aria-pressed="true"] { background: var(--texte); color: var(--encre); box-shadow: none; }
.groupes-choix button[aria-pressed="true"] span { color: #4d4842; }

.semaine { --k: 1.1px; --heure: calc(60 * var(--k)); display: grid; grid-template-columns: 52px repeat(var(--jours), minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: clamp(8px, 1.1vw, 16px); margin-top: clamp(28px, 4vw, 40px); }
.semaine__heures { position: relative; grid-row: 2; height: calc(var(--heures) * var(--heure)); }
.semaine__heures span { position: absolute; right: 12px; top: calc(var(--i) * var(--heure)); translate: 0 -50%; font-size: 0.875rem; font-weight: 600; color: var(--texte-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.jour { display: grid; grid-row: 1 / 3; grid-template-rows: subgrid; min-width: 0; }
.jour__nom { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-bottom: 14px; font-family: var(--affiche); font-weight: 800; font-stretch: 68%; font-size: clamp(1.7rem, 2.5vw, 2.4rem); line-height: 1; text-transform: uppercase; }
.jour__auj { font-family: var(--courant); font-stretch: 100%; font-weight: 650; font-size: 0.875rem; text-transform: none; color: var(--or-plat); }
.jour__auj::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; vertical-align: 2px; background: var(--or-plat); }
.jour__corps { position: relative; height: calc(var(--heures) * var(--heure)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ligne-forte); background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--heure) - 1px), var(--ligne) calc(var(--heure) - 1px) var(--heure)); }
.cours { position: absolute; top: calc(var(--debut) * var(--k) + 3px); height: calc(var(--duree) * var(--k) - 6px); left: calc(var(--voie) * 100% / var(--voies)); width: calc(100% / var(--voies) - (var(--voies) - 1) * 4px / var(--voies)); display: grid; align-content: start; gap: 3px; padding: 9px 12px 8px 17px; overflow: hidden; line-height: 1.35; border-radius: 2px; background: var(--noir-2); box-shadow: inset 0 0 0 1px var(--ligne); transition: opacity 0.4s var(--sortie), box-shadow 0.25s, background-color 0.25s; }
.cours::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--groupe); }
.cours:hover { background: var(--noir-3); box-shadow: inset 0 0 0 1px var(--ligne-forte); }

.cours__heure { font-size: 0.875rem; font-weight: 650; color: var(--texte-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cours__titre { font-family: var(--affiche); font-weight: 800; font-stretch: 74%; font-size: 1.1875rem; line-height: 1.08; text-transform: uppercase; color: #fff; }
.cours__groupe { font-size: 0.875rem; font-weight: 600; color: var(--texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cours.est-hors { opacity: 0.12; }
.horaires__note { margin-top: clamp(20px, 3vw, 32px); max-width: 70ch; font-size: 0.9375rem; color: var(--texte-2); }
.horaires__note:empty { display: none; }
.anime .jour[data-revele="tuile"] { opacity: 0; translate: 0 24px; transition: opacity 0.8s var(--sortie) calc(var(--rang, 0) * 90ms), translate 0.9s var(--sortie) calc(var(--rang, 0) * 90ms); }
.anime .jour[data-revele="tuile"].est-visible { opacity: 1; translate: 0 0; }

/* Les formules liées à un groupe portent son ruban, et mènent à ses horaires. */
.formule[data-groupe] { position: relative; }
.formule[data-groupe]::before { content: ""; position: absolute; left: 0; top: 0; width: 56px; height: 3px; background: var(--groupe); }
.formule__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.formule__horaires { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--ligne-forte); text-underline-offset: 0.3em; }
.formule__horaires:hover { color: var(--or-plat); text-decoration-color: currentColor; }

/* ——— Le choix de l'âge ———
   Un ruban gradué que l'on fait glisser : le nombre sous le repère est l'âge choisi. Dessous, les trois groupes ;
   celui de l'élève s'allume, et une ligne dit ses jours de cours et son tarif. */
.champ--age[hidden] { display: none; }
.age { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 12px; }
.age__ruban { position: relative; height: 92px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; border: 1px solid rgba(20, 18, 16, 0.34); border-radius: 2px; background: var(--gris-2); cursor: grab; touch-action: pan-x; -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); }
.age__ruban::-webkit-scrollbar { display: none; }
.age__ruban.est-tire { cursor: grabbing; scroll-snap-type: none; }
.age__ruban:focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }
.age__piste { display: flex; width: max-content; height: 100%; margin: 0; list-style: none; }
.age__ruban { --pas: 56px; }
.age__piste { padding-inline: calc((100cqw - var(--pas)) / 2); }
.age__ruban { container-type: inline-size; }
.age__piste li { --d: 4; position: relative; flex: none; display: grid; place-items: center; width: var(--pas); height: 100%; padding-bottom: 14px; scroll-snap-align: center; font-family: var(--affiche); font-weight: 800; font-stretch: 72%; font-size: 2.1rem; line-height: 1; color: var(--encre); font-variant-numeric: lining-nums tabular-nums; transform: scale(calc(1 - var(--d) * 0.14)); opacity: calc(1 - var(--d) * 0.2); user-select: none; -webkit-user-select: none; }
.age__piste li::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 1px; height: 12px; background: rgba(20, 18, 16, 0.45); }
.age__piste li.est-rond::after { height: 18px; width: 2px; background: var(--encre); }
.age__cadran { position: relative; min-width: 0; }
.age__cadran::before, .age__cadran::after { content: ""; position: absolute; z-index: 1; left: calc(50% - 30px); width: 60px; height: 4px; background: var(--encre); pointer-events: none; transition: background-color 0.3s; }
.age__cadran::before { top: 0; }
.age__cadran::after { bottom: 0; }
.age__cadran:has(.est-choisi)::before, .age__cadran:has(.est-choisi)::after { background: #9a6a12; }
.age__saisie { position: relative; }
.age__saisie input { height: 92px; min-height: 92px; padding: 0 56px 0 16px; font-family: var(--affiche); font-weight: 800; font-stretch: 72%; font-size: 2.6rem; line-height: 1; font-variant-numeric: lining-nums tabular-nums; text-align: right; }
.age__saisie span { position: absolute; right: 16px; top: 50%; translate: 0 -50%; font-weight: 600; color: var(--texte-2); pointer-events: none; }
.age__groupes { position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); margin: 10px 0 0; padding: 0; list-style: none; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(20, 18, 16, 0.22); }
.age__groupes::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(100% / var(--n, 3)); background: var(--encre); border-radius: 2px; transform: translateX(calc(var(--rang, 0) * 100%)); opacity: 0; transition: transform 0.55s var(--sortie), opacity 0.3s; }
.age__groupes.est-allume::before { opacity: 1; }
.age__groupes li { position: relative; display: grid; justify-items: center; gap: 0; padding: 10px 8px; text-align: center; transition: color 0.35s; }
.age__groupes li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--groupe); opacity: 0; transition: opacity 0.35s; }
.age__groupes li.est-actif { color: var(--gris); }
.age__groupes li.est-actif::after { opacity: 1; }
.age__groupes li strong { font-weight: 700; font-size: 1rem; }
.age__groupes li span { font-size: 0.875rem; font-weight: 500; opacity: 0.8; }
.age__groupes li[data-groupe="ados"] { --groupe: #f4f2ec; }
.age__resultat { min-height: 1.6em; margin-top: 10px; font-weight: 650; color: var(--encre); }
.age__resultat span { display: inline-block; }
.anime .age__resultat span { animation: age-entree 0.5s var(--sortie); }
@keyframes age-entree { from { opacity: 0; transform: translateY(0.5em); } }

/* ——— Le bas du pied de page : les informations légales ——— */
.pied__bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; margin-top: clamp(40px, 6vh, 64px); padding-top: 22px; border-top: 1px solid var(--ligne); font-size: 0.9375rem; color: var(--texte-2); }
.pied__legal { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.pied__legal a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.pied__legal a:hover { color: var(--texte); text-decoration: underline; }

/* Avec l'emploi du temps et les tarifs, le menu du haut compte six liens : il passe au menu déroulant plus tôt. */
@media (max-width: 1180px) {
  .tete--six .tete__nav { display: none; }
  .tete--six .tete__menu { display: inline-grid; }
}

@media (max-width: 1100px) {
  .horaires__tete { grid-template-columns: minmax(0, 1fr); }
  .semaine { grid-template-columns: 44px repeat(var(--jours), minmax(0, 1fr)); }
  .cours { padding: 10px 10px 9px 14px; }
  .cours__titre { font-size: 1.0625rem; }
}
/* Sur téléphone : un jour après l'autre, chaque cours sur une ligne. */
@media (max-width: 760px) {
  .groupes-choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .semaine { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .semaine__heures { display: none; }
  .jour { display: block; grid-row: auto; }
  .jour.est-vide { display: none; }
  .jour__nom { font-size: 2rem; padding-bottom: 12px; }
  .jour__corps { position: static; height: auto; display: grid; gap: 8px; padding-top: 12px; background: none; }
  .cours { position: relative; top: auto; left: auto; width: auto; height: auto; grid-template-columns: 7.2rem minmax(0, 1fr); align-items: baseline; column-gap: 12px; padding: 14px 14px 14px 18px; }
  .cours__heure { grid-row: 1 / 3; }
  .cours.est-hors { display: none; }
  .age { grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; }
  .age__saisie input { height: 84px; min-height: 84px; padding: 0 42px 0 8px; font-size: 2.1rem; }
  .age__saisie span { right: 10px; font-size: 0.9375rem; }
  .age__ruban { height: 84px; --pas: 50px; }
  .age__piste li { font-size: 1.9rem; }
  .age__groupes li { padding: 9px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .age__groupes::before, .cours { transition: none; }
}

/* ——— Le contact ———
   La section principale du bas de page. « Nous joindre » : deux grandes cartes, l'icône sur un carré d'or.
   « Nous suivre » : trois cartes aux logos officiels ; au survol, le carré prend la couleur de la plateforme. */
.contact { padding: var(--bloc) var(--bord); border-top: 1px solid var(--ligne); }
.contact[hidden], .contact__bloc[hidden] { display: none; }
.contact__tete { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 28px clamp(32px, 6vw, 100px); }
.contact h2 { font-size: clamp(2.6rem, 5.6vw, 5.4rem); }
.contact__tete p { max-width: 46ch; color: var(--texte-2); font-size: 1.125rem; }
.contact__bloc { margin-top: clamp(32px, 4.5vw, 56px); }
.contact__bloc + .contact__bloc { margin-top: clamp(28px, 3.5vw, 44px); }
.contact__label { margin-bottom: 14px; font-family: var(--courant); font-stretch: 100%; font-weight: 650; font-size: 0.9375rem; line-height: 1.3; text-transform: none; color: var(--texte-2); }
.contact__liens { display: grid; gap: clamp(10px, 1.2vw, 16px); margin: 0; padding: 0; list-style: none; }
.contact__liens--directs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact__liens--reseaux { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact__lien { min-width: 0; }
.contact__carte { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; height: 100%; padding: clamp(18px, 2vw, 26px); border-radius: 2px; background: var(--noir-2); box-shadow: inset 0 0 0 1px var(--ligne); color: var(--texte); text-decoration: none; transition: background-color 0.3s, box-shadow 0.3s; }
.contact__logo { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 2px; background: var(--noir-3); box-shadow: inset 0 0 0 1px var(--ligne); color: var(--texte); transition: background-color 0.3s var(--sortie), color 0.3s, box-shadow 0.3s; }
.contact__logo svg { width: 26px; height: 26px; stroke-width: 1.7; }
.contact__liens--directs .contact__logo { width: 64px; height: 64px; background: var(--or-plat); box-shadow: none; color: var(--encre); }
.contact__liens--directs .contact__logo svg { width: 28px; height: 28px; stroke-width: 1.9; }
.contact__texte { display: grid; gap: 3px; min-width: 0; }
.contact__nom { font-weight: 600; font-size: 0.9375rem; color: var(--texte-2); }
.contact__valeur { min-width: 0; overflow-wrap: anywhere; font-family: var(--affiche); font-weight: 800; font-stretch: 74%; font-size: clamp(1.3rem, 1.7vw, 1.6rem); line-height: 1.1; }
.contact__liens--directs .contact__valeur { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.contact__aller { width: 22px; height: 22px; color: var(--texte-2); transition: transform 0.35s var(--sortie), color 0.3s; }
.contact__carte:hover, a.contact__carte:focus-visible { background: var(--noir-3); box-shadow: inset 0 0 0 1px var(--ligne-forte); }
.contact__carte:hover .contact__aller { color: var(--texte); transform: translateX(4px); }
.contact__liens--reseaux .contact__carte:hover .contact__aller { transform: translate(3px, -3px); }
.contact__liens--directs .contact__carte:hover .contact__logo { background: var(--texte); }
[data-lien="instagram"] { --marque: #ff0069; }
[data-lien="facebook"] { --marque: #0866ff; }
[data-lien="youtube"] { --marque: #ff0000; }
.contact__liens--reseaux .contact__carte:hover .contact__logo { background: var(--marque); box-shadow: none; color: #fff; }

.inscription__question[hidden] { display: none; }
.inscription__question { margin-top: 16px; font-weight: 600; }
.inscription__question a { text-decoration-color: rgba(20, 18, 16, 0.4); }
.inscription__question a:hover { text-decoration-color: currentColor; }

/* Les réseaux en icônes : dans le pied de page et dans le menu. */
.reseaux { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.reseaux[hidden] { display: none; }
.reseaux a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 2px; color: var(--texte-2); transition: color 0.2s, background-color 0.2s; }
.reseaux a:hover { color: var(--texte); background: var(--noir-3); }
.reseaux svg { width: 20px; height: 20px; }
.reseaux a[data-lien]:hover { color: #fff; background: var(--marque); }
.reseaux--menu { margin-top: 8px; }

@media (max-width: 1100px) {
  .contact__tete { grid-template-columns: minmax(0, 1fr); }
  .contact__liens--reseaux { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .contact__liens--directs { grid-template-columns: minmax(0, 1fr); }
  .contact__carte { gap: 16px; padding: 16px; }
  .contact__logo, .contact__liens--directs .contact__logo { width: 52px; height: 52px; }
}
/* Sept liens en haut avec le contact : le menu déroulant prend le relais plus tôt. */
@media (max-width: 1320px) {
  .tete--sept .tete__nav { display: none; }
  .tete--sept .tete__menu { display: inline-grid; }
}

/* ——— La page des informations légales ———
   Un document à lire : le sommaire à gauche, qui suit la lecture ; le texte à droite, en lignes de lecture confortables. */
.page-legale .tete { grid-template-columns: minmax(0, 1fr) auto; }
.page-legale .tete > span { display: none; }
.legal { display: grid; grid-template-columns: 230px minmax(0, 68ch); align-items: start; gap: 48px clamp(40px, 7vw, 120px); padding: calc(var(--tete-h) + clamp(48px, 9vh, 110px)) var(--bord) var(--bloc); }
.legal__tete { grid-column: 1 / -1; display: grid; gap: 18px; }
.legal__tete h1 { font-size: clamp(2.8rem, 7vw, 6.4rem); }
.legal__tete p { color: var(--texte-2); }
.legal__sommaire { position: sticky; top: calc(var(--tete-h) + 28px); display: grid; gap: 2px; }
.legal__sommaire a { position: relative; display: flex; align-items: center; min-height: 42px; padding-left: 16px; font-weight: 600; color: var(--texte-2); text-decoration: none; transition: color 0.2s; }
.legal__sommaire a::before { content: ""; position: absolute; left: 0; top: 50%; width: 2px; height: 18px; translate: 0 -50%; background: var(--ligne-forte); transition: background-color 0.2s, height 0.3s var(--sortie); }
.legal__sommaire a:hover { color: var(--texte); }
.legal__sommaire a[aria-current="true"] { color: var(--texte); }
.legal__sommaire a[aria-current="true"]::before { height: 26px; background: var(--or-plat); }
.legal__texte { min-width: 0; }
.legal__texte section { scroll-margin-top: calc(var(--tete-h) + 24px); }
.legal__texte section + section { margin-top: clamp(56px, 8vh, 88px); padding-top: clamp(44px, 6vh, 64px); border-top: 1px solid var(--ligne); }
.legal__texte h2 { font-size: clamp(2.1rem, 3.6vw, 3.2rem); }
.legal__texte h3 { margin-top: 34px; font-family: var(--courant); font-weight: 700; font-stretch: 100%; font-size: 1.1875rem; line-height: 1.3; text-transform: none; color: #fff; }
.legal__texte p { margin-top: 12px; color: var(--texte); }
.legal__texte a { text-decoration-color: var(--ligne-forte); }
.legal__texte a:hover { color: var(--or-plat); text-decoration-color: currentColor; }
mark.a-completer { padding: 0 0.3em; border-radius: 2px; background: rgba(237, 185, 87, 0.14); box-shadow: inset 0 -1px 0 var(--or-plat); color: var(--or-plat); font-weight: 600; }
.pied--legal { padding-top: 0; }
.pied--legal .pied__bas { margin-top: 0; }
[data-legal-si][hidden] { display: none; }
@media (max-width: 900px) {
  .legal { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .legal__sommaire { position: static; padding-bottom: 8px; border-bottom: 1px solid var(--ligne); }
}

/* ——— La fiche de séance ———
   Une carte nette au centre de l'écran (en bas sur téléphone) : quand, quoi, pour qui, et ce qui s'y fait.
   Le ruban du groupe borde la carte, comme les cours de la semaine. */
.seance { width: min(560px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; background: transparent; color: var(--texte); overflow: visible; }
.seance::backdrop { background: rgba(10, 9, 8, 0.72); }
.seance__carte { position: relative; display: grid; gap: 0; max-height: calc(100dvh - 32px); overflow-y: auto; padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px) clamp(20px, 2.4vw, 28px) calc(clamp(24px, 3vw, 36px) + 6px); border-radius: 2px; background: var(--noir-2); box-shadow: inset 0 0 0 1px var(--ligne-forte), 0 30px 80px -20px rgba(0, 0, 0, 0.8); }
.seance__carte::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--groupe, var(--or-plat)); }
.seance__tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: -8px; }
.seance__quand { font-weight: 650; font-size: 0.9375rem; color: var(--texte-2); font-variant-numeric: tabular-nums; }
.seance__fermer { margin-right: -10px; }
.seance__titre { margin-top: 10px; font-size: clamp(2.2rem, 4.6vw, 3.2rem); line-height: 0.95; color: #fff; }
.seance__groupe { margin-top: 12px; font-weight: 600; color: var(--texte); }
.seance__resume { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--ligne); font-size: 1.0625rem; line-height: 1.6; color: var(--texte); }
.seance__resume[hidden] { display: none; }
.seance__pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; }
.seance__nav { display: flex; align-items: center; gap: 2px; margin-right: -8px; }
.seance__compte { min-width: 3.4em; text-align: center; font-weight: 600; font-size: 0.875rem; color: var(--texte-2); font-variant-numeric: tabular-nums; }
.seance .bouton-icone:disabled { opacity: 0.3; cursor: default; }
.anime .seance[open] .seance__carte { animation: seance-entree 0.45s var(--sortie); }
.anime .seance__carte.est-neuve > :not(.seance__pied) { animation: seance-texte 0.4s var(--sortie); }
@keyframes seance-entree { from { opacity: 0; transform: translateY(14px) scale(0.985); } }
@keyframes seance-texte { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 760px) {
  .seance { width: 100vw; max-height: 88dvh; margin: auto 0 0; }
  .seance__carte { max-height: 88dvh; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)) 26px; box-shadow: inset 0 1px 0 var(--ligne-forte); }
  .seance__carte::before { left: 0; right: 0; bottom: auto; width: auto; height: 4px; }
  .anime .seance[open] .seance__carte { animation-name: seance-montee; }
  @keyframes seance-montee { from { transform: translateY(40px); opacity: 0; } }
  .seance__pied .bouton { flex: 1; }
}

/* Chaque cours est un bouton qui remplit sa case et ouvre la fiche de séance. */
.cours { display: block; padding: 0; }
.cours__bouton { display: grid; align-content: start; gap: 3px; width: 100%; height: 100%; padding: 9px 12px 8px 17px; border: 0; border-radius: 2px; background: none; color: inherit; font: inherit; line-height: 1.35; text-align: left; cursor: pointer; }
.cours__bouton > span { display: block; min-width: 0; }
.cours__bouton:focus-visible { outline: 2px solid var(--ruban); outline-offset: 2px; }
.cours:hover .cours__titre { color: var(--or-plat); }
.cours__titre { transition: color 0.25s; }
@media (max-width: 1100px) { .cours__bouton { padding: 10px 10px 9px 14px; } }
@media (max-width: 760px) {
  .cours__bouton { grid-template-columns: 7.2rem minmax(0, 1fr); align-items: baseline; column-gap: 12px; padding: 14px 14px 14px 18px; }
}
