/* Police Exo hébergée sur le site (aucun appel à Google) */
@font-face { font-family: 'Exo'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/exo-400-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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; }
@font-face { font-family: 'Exo'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/exo-400-italic-latin.woff2') format('woff2'); 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: 'Exo'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/exo-300-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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; }
@font-face { font-family: 'Exo'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/exo-300-latin.woff2') format('woff2'); 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: 'Exo'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/exo-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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; }
@font-face { font-family: 'Exo'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/exo-400-latin.woff2') format('woff2'); 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: 'Exo'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/exo-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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; }
@font-face { font-family: 'Exo'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/exo-600-latin.woff2') format('woff2'); 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: 'Exo'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/exo-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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; }
@font-face { font-family: 'Exo'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/exo-700-latin.woff2') format('woff2'); 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: 'Cosplay'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/cosplay-regular.ttf') format('truetype'); }
/* La Montagne magique — feuille de style unique, mobile first (gabarit HLN / QSC, palette claire) */
:root {
  /* palette du dossier de diffusion 2027 : kaki, rouille, prune, sable, sauge grisée, moutarde */
  --sauge: #bcb183; --creme: #f3e2c4; --sapin: #392a35; --jaune: #ffb52e; --olive: #b9b289;
  --soleil: #e85c3c; --rouille: #c4553b; --rouille-fonce: #a63b2d; --rouille-sombre: #8c3026;
  --bg: #e1c8a8; --panel-a: #e1c8a8; --panel-b: #305453; --panel-c: #e7c4aa;
  --text: #392a35; --muted: #69545b; --accent: #a63b2d; --accent-2: #8c3026; --blue: #392a35;
  --font-titre: 'Cosplay', Exo, system-ui, sans-serif;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font: 400 clamp(1rem, 0.95rem + 0.25vw, 1.0625rem)/1.65 Exo, system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-titre); font-weight: 400; line-height: 1.1; margin: 0; }
strong { font-weight: 700; }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; padding-block: clamp(40px, 7vw, 80px); }
section.wrap { padding-block: clamp(32px, 6vw, 64px); }
.panel { background: var(--panel-a); }
.panel-b { background: var(--panel-b); }
.panel-c { background: var(--panel-c); }
h2 { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.4rem); color: var(--rouille-fonce); letter-spacing: .01em; margin-bottom: clamp(20px, 3vw, 32px); }
h2 small { display: block; margin-top: 6px; font-size: .55em; font-family: Exo, sans-serif; font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 .95rem/1 Exo, sans-serif; text-decoration: none; cursor: pointer;
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent; min-height: 44px;
  transition: transform .2s ease, background-color .2s ease;
}
.btn-shop { background: var(--rouille-fonce); color: #fff; }
.btn-shop:hover, .btn-shop:focus-visible { background: var(--rouille-sombre); transform: translateY(-2px); }
.btn-play { background: var(--creme); color: var(--sapin); border-color: var(--sapin); }
.btn-play:hover, .btn-play:focus-visible { background: #fff; transform: translateY(-2px); }
:focus-visible { outline: 3px solid var(--sapin); outline-offset: 3px; }
.hero :focus-visible, .panel-b :focus-visible { outline-color: var(--sapin); }

/* ---------- Hero affiche (comme HLN / QSC) : fond kaki du dossier 2027, grande illustration ---------- */
.hero { background: var(--sauge); color: var(--sapin); text-align: center; padding: 0 var(--gutter); }
.poster-frame { position: relative; width: min(1120px, 100%); margin: 0 auto; container-type: inline-size; }
.poster-head { padding: clamp(28px, 5vw, 56px) 0 0; position: relative; z-index: 1; }
.poster-head .kick { display: inline-block; background: #ffb52e; color: #382a33; padding: .35em 1em .4em; border-radius: 6px; font: 400 clamp(1.15rem, 2.5cqw, 1.75rem)/1.15 var(--font-titre); text-align: center; margin: 0 0 18px; box-shadow: 0 4px 14px #382a3322; }
@media (min-width: 761px) {
  .poster-head { padding-top: clamp(96px, 11cqw, 132px); }
  .poster-head .kick { position: absolute; right: 0; top: 18px; margin: 0; }
}
/* titre composé comme la couverture du dossier 2027 */
.ptitle { position: relative; width: fit-content; margin: 0 auto; text-align: left; }
.hero h1 { font-size: clamp(2.6rem, 10.5cqw, 7.4rem); line-height: .98; color: #8b4e3d; }
.hero h1 span { display: block; }
.hero h1 .t2 { text-align: right; }
.hero h1 .t3 { text-align: right; font-size: .4em; color: #585656; margin-top: .1em; }
.hero .by { position: absolute; left: 4%; top: 46%; margin: 0; text-align: left; font-size: clamp(.7rem, 1.35cqw, .95rem); line-height: 1.35; color: #585656; }
.hero .by em { display: block; font: 400 1.2em/1.3 var(--font-titre); color: #585656; }
.hero .by span { display: block; }
@media (max-width: 600px) { .hero .by { position: static; margin: 12px auto 0; text-align: center; } .hero .by span { display: inline; } }
.poster-img { display: block; width: 100%; height: auto; margin-top: clamp(8px, 2cqw, 20px); }
.poster-frame .quote { position: absolute; right: 0; bottom: 34%; margin: 0; text-align: left; background: #edc779; color: #382a33; padding: .45em 1em .55em; border-radius: 12px 0 0 12px; font-size: clamp(1rem, 2.3cqw, 1.6rem); line-height: 1.3; box-shadow: 0 6px 18px #382a3333; }
.poster-frame .quote strong { display: block; font: 400 1.45em/1.15 var(--font-titre); }
.facts { position: absolute; left: 0; right: 0; bottom: 4%; margin: 0; color: #ffb52e; font: 400 clamp(1.05rem, 3.4cqw, 2.2rem)/1.2 var(--font-titre); text-align: center; }
.facts span { margin: 0 .35em; }
@media (max-width: 600px) {
  .poster-frame { display: flex; flex-direction: column; }
  .poster-head { order: 0; } .poster-frame .quote { order: 1; position: static; max-width: none; border-radius: 10px; margin-top: 14px; } .poster-img { order: 2; }
}
.hero .cta { justify-content: center; margin-top: 24px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.invite-link { font: 600 .9rem/1.3 Exo, sans-serif; color: var(--sapin); background: var(--creme); border: 2px solid var(--sapin); border-radius: 999px; padding: 12px 18px; min-height: 44px; cursor: pointer; transition: background-color .2s; }
.invite-link b { color: var(--rouille-sombre); }
.invite-link:hover, .invite-link:focus-visible { background: #fff; }

/* ---------- Texte ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.chips span { background: #edc779; color: var(--sapin); font-weight: 700; border-radius: 999px; padding: 4px 14px; font-size: .9rem; }
.cols { column-gap: 40px; column-rule: 1px dotted #392a3555; }
@media (min-width: 900px) { .cols { column-count: 2; } }
.lead { margin: 0 0 1em; }
.two { display: grid; gap: 32px; align-items: start; }
@media (min-width: 761px) { .two { grid-template-columns: 1.2fr 1fr; } }
.credits { margin-top: 32px; }
.credits summary { cursor: pointer; font-weight: 700; color: var(--rouille-fonce); list-style: none; padding: 6px 0; }
.credits summary::before { content: "＋ "; }
.credits[open] summary::before { content: "－ "; }
.credits .cols { font-size: .875rem; line-height: 1.6; margin-top: 12px; }
.cg { display: block; break-inside: avoid; margin-bottom: 1.1em; }

/* plateau */

/* écoles */
#ecoles .lead { background: var(--creme); padding: 14px 18px; border-radius: var(--radius); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0; }
.card { background: #efdcc2; border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 6px 18px #392a3514; }
.card h3 { font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); line-height: 1.1; color: var(--rouille-fonce); margin-bottom: .45em; }

/* ---------- Vidéo (façade) ---------- */
.video-card { position: relative; display: block; width: min(100%, 1120px); aspect-ratio: 16 / 9; margin: 0 auto; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--sapin); box-shadow: 0 16px 40px #392a3544; }
.video-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.video-card:hover img, .video-card:focus-visible img { transform: scale(1.05); }
.play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; display: grid; place-items: center; padding-left: 6px; font-size: 30px; color: #fff; background: var(--rouille-fonce); border-radius: 50%; transition: transform .25s; }
.video-card:hover .play { transform: scale(1.1); }

/* ---------- Galerie ---------- */
/* mosaïque des illustrations (comme HLN et QSC) : 3 colonnes, grandes vignettes en 2 x 2, parallaxe douce */
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; gap: 8px; }
@media (min-width: 700px) { .mosaic { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.mosaic a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--c, var(--sauge)); cursor: zoom-in; }
.mosaic a.big { grid-column: span 2; }
@media (min-width: 700px) { .mosaic a.big { grid-row: span 2; aspect-ratio: auto; } }
.mosaic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; scale: 1.3; translate: 0 calc(var(--p, 0) * -12%); transition: transform .5s ease, filter .3s; }
.mosaic a:hover img, .mosaic a:focus-visible img { transform: scale(1.05); filter: brightness(1.08); }
@media (prefers-reduced-motion: reduce) { .mosaic img { scale: 1; translate: none; } }

/* ---------- Équipe ---------- */
.bio { margin-bottom: clamp(32px, 5vw, 56px); padding-bottom: clamp(32px, 5vw, 56px); border-bottom: 1px solid #f3e2c44d; }
.bio:last-child { margin-bottom: 0; padding-bottom: 0; border: 0; }
.bio h3 { color: var(--rouille-sombre); font-size: clamp(1.25rem, 1rem + 1.2vw, 1.9rem); margin-bottom: 14px; }
.bio h3 small { display: block; margin-top: 4px; font-family: Exo, sans-serif; font-size: .6em; letter-spacing: .04em; color: var(--sapin); font-weight: 600; }
.bio-text { font-size: .98rem; }
.bio-text p { margin: 0 0 .8em; }
@media (min-width: 900px) { .bio-text { column-count: 2; column-gap: 32px; } }
.bio small.src { display: block; margin-top: 10px; color: var(--muted); }

/* ---------- Remerciements & logos ---------- */
.thanks { font-size: .875rem; line-height: 1.6; }
.thanks p { margin: 0 0 1em; break-inside: avoid; }

/* ---------- Nos autres créations ---------- */
.also-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .also-grid { grid-template-columns: 1fr 1fr; } }

footer { background: #dccfa4; color: var(--sapin); text-align: center; padding: 32px var(--gutter) 48px; font-size: .9rem; }
footer a { color: var(--rouille-fonce); }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100%; height: 100%; background: transparent; color: #fff; }
dialog[open] { display: flex; align-items: center; justify-content: center; animation: fade .25s ease; }
dialog::backdrop { background: rgb(26 38 24 / .72); }
@keyframes fade { from { opacity: 0; } }
#lightbox figure { margin: 0; max-width: 100%; text-align: center; }
#lightbox img { max-width: min(86vw, 1200px); max-height: 72svh; width: auto; height: auto; margin-inline: auto; border-radius: 6px; transition: opacity .2s; touch-action: pan-y; }
#lightbox img.loading { opacity: 0; }
#lightbox figcaption { margin-top: 10px; font-size: .85rem; color: var(--creme); }
.lb-close, .lb-nav { position: fixed; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #ffffff33; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; transition: background-color .2s; }
.lb-close:hover, .lb-nav:hover { background: #ffffff59; }
.lb-close { top: max(12px, env(safe-area-inset-top)); right: 12px; font-size: 32px; }
.lb-nav { top: 50%; translate: 0 -50%; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
@media (max-width: 600px) { .lb-nav { top: auto; bottom: 14px; translate: 0; } .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); } }
#lightbox.single .lb-nav { display: none; }
#player .frame { width: min(92vw, 1100px, calc(85svh * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 30px 80px #000a; }
#player iframe { width: 100%; height: 100%; border: 0; }

/* invitation */
#invite .sheet { width: min(520px, 100% - 24px); max-height: calc(100svh - 32px); overflow-y: auto; background: var(--creme); color: var(--sapin); border-radius: var(--radius); box-shadow: 0 30px 80px #0008; padding: clamp(18px, 4vw, 32px); position: relative; }
#invite .lb-close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; font-size: 28px; background: #392a3526; color: var(--sapin); }
#invite .lb-close:hover { background: #392a3540; }
#invite h3 { margin: 0 0 12px; padding-right: 44px; font-size: 1.3rem; color: var(--rouille-sombre); }
#invite form { display: grid; gap: 12px; }
#invite .row2 { display: grid; gap: 12px; }
@media (min-width: 480px) { #invite .row2 { grid-template-columns: 1fr 1fr; } }
#invite label { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
#invite input:not([type="checkbox"]), #invite textarea, #invite select { font: inherit; font-size: 1rem; color: var(--sapin); background: #fff; border: 1px solid #392a3588; border-radius: 8px; padding: 10px 12px; width: 100%; }
#invite input:focus, #invite textarea:focus, #invite select:focus { outline: 2px solid var(--sapin); outline-offset: 1px; }
#invite .check { display: flex; gap: 10px; align-items: flex-start; }
#invite .check input { margin-top: 3px; flex: none; }
#invite .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#invite .err { margin: 0; color: var(--rouille-sombre); font-size: .9rem; font-weight: 600; }
#invite .err a { color: inherit; }
#invite .ok { margin: 8px 0 0; font-size: 1.05rem; }
#invite button[disabled] { opacity: .6; cursor: progress; }

/* ---------- Dates + carte (SVG maison, sans service externe) ---------- */
.dates-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .dates-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } .map-box { position: sticky; top: 24px; } }
.map-box { padding: 0; }
#map { position: relative; width: 100%; aspect-ratio: 1000 / 819; }
#map img { -webkit-mask-image: radial-gradient(ellipse 70% 80% at 47% 46%, #000 52%, transparent 68%); mask-image: radial-gradient(ellipse 70% 80% at 47% 46%, #000 52%, transparent 68%); }
#map img, #map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { cursor: pointer; }
.pin .core { fill: var(--creme); stroke: var(--sapin); stroke-width: 3; transition: transform .2s; transform-box: fill-box; transform-origin: center; }
.pin .halo { fill: var(--creme); opacity: .18; }
.pin .hit { fill: transparent; }
.pin.past .core { opacity: .3; } .pin.past .halo { opacity: 0; }
.pin.next .core { fill: var(--jaune); stroke: var(--sapin); }
.pin.next .halo { fill: var(--jaune); opacity: .5; animation: ping 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.pin.hot .core { transform: scale(1.25); opacity: 1; }
/* pulsation au survol, comme la carte Avoka */
.pin .ring { fill: none; stroke: var(--creme); stroke-width: 3; opacity: 0; pointer-events: none; transform-box: fill-box; transform-origin: center; }
.pin.next .ring { stroke: var(--jaune); }
.pin.hot .ring { animation: ring 1.4s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pin.hot .ring, .pin.next .halo { animation: none; } }
@keyframes ping { from { transform: scale(1); opacity: .5; } to { transform: scale(3); opacity: 0; } }
.tip { position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 14px)); pointer-events: none; background: var(--sapin); color: var(--creme); border-radius: 8px; padding: 6px 10px; font-size: .85rem; line-height: 1.35; max-width: 220px; width: max-content; box-shadow: 0 6px 20px #0006; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; font-size: .8rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--creme); outline: 1.5px solid var(--sapin); }
.dot.next { background: var(--jaune); } .dot.past { opacity: .45; }
.legend .tg { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 99px; border: 1px solid #392a3566; background: #ffffff1f; color: var(--sapin); font: inherit; cursor: pointer; transition: background-color .2s, opacity .2s; }
.legend .tg:hover { background: #ffffff3a; }
.legend .tg[aria-pressed="false"] { opacity: .6; background: transparent; text-decoration: line-through; }
#map.hide-next .pin.next, #map.hide-up .pin.up, #map.hide-past .pin.past { display: none; }
.pro { margin: 12px 0 0; }

/* saisons repliables, fond crème (texte sapin) */
.seasons { display: grid; gap: 10px; }
details.season { border: 1px solid #392a3555; border-radius: 12px; padding: 4px 6px 8px; }
details.season > summary { cursor: pointer; list-style: none; padding: 8px 12px; font-weight: 700; color: var(--sapin); display: flex; align-items: baseline; gap: 10px; }
details.season > summary::-webkit-details-marker { display: none; }
details.season > summary::before { content: "＋"; font-weight: 400; }
details.season[open] > summary::before { content: "－"; }
details.season .dates { margin-top: 2px; }
.dates { list-style: none; margin: 0; padding: 0; }
.dates li { display: grid; grid-template-columns: 1fr; gap: 0 16px; padding: 5px 12px; border-radius: 8px; font-size: .85rem; line-height: 1.4; transition: background-color .2s; }
@media (min-width: 720px) and (max-width: 959px), (min-width: 1280px) { .dates li { grid-template-columns: 12.5em 1fr auto; align-items: baseline; white-space: nowrap; } }
.dates li:nth-child(odd) { background: #392a3514; }
.dates li:hover { background: #ffffff26; }
.dates time, .dates .when { font-weight: 600; font-size: .8rem; }
.dates .city { color: var(--muted); }
.dates .city::before { content: "— "; }
.dates em { color: var(--sapin); font-size: .78rem; }
.dates li.past { opacity: .6; }
.dates li.up time, .dates li.up .when { font-weight: 700; }
.dates li.next { background: #ffb52e40; outline: 1px solid var(--jaune); opacity: 1; }
.dates li.next time { font-weight: 700; }
.dates li.hot { background: #ffffff33; }
.empty { background: var(--creme); border-radius: var(--radius); padding: 18px; margin: 0 0 12px; }
.empty .btn { margin-left: 8px; }

/* ---------- Apparition au scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .rv { opacity: 0; transform: translateY(34px); transition: opacity .8s ease var(--d, 0ms), transform .9s cubic-bezier(.22,.8,.24,1) var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .rv { opacity: 1; transform: none; transition: none; }
}

/* vignettes des autres créations */
.also-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--sapin); box-shadow: 0 8px 24px #392a3533; transition: transform .25s; }
.also-card:hover, .also-card:focus-visible { transform: translateY(-3px); }
.also-card img { display: block; width: 100%; height: auto; transition: transform .5s ease; }
.also-card:hover img { transform: scale(1.04); }
.also-card span { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: var(--sapin); color: var(--creme); font: 700 .9rem/1 Exo, sans-serif; }

/* bios : portrait à gauche (comme HLN et QSC), texte seul si pas de photo */
.bio img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.bio { display: grid; gap: 20px; }
@media (min-width: 900px) { .bio { grid-template-columns: 280px 1fr; gap: 40px; align-items: start; } .bio.nophoto { grid-template-columns: 1fr; } }

/* bande sombre : remerciements, logos et autres créations */
.panel-dark { background: #21383a; color: var(--creme); }
.panel-dark h2 { color: var(--jaune); }
.panel-b h2 { color: var(--creme); }
.panel-dark a { color: var(--jaune); }
.panel-dark .thanks { color: var(--creme); }
.panel-dark .cols { column-rule-color: #f3e2c455; }
.panel-dark .also { padding-top: 0; }
.also.panel-dark > .wrap { padding-top: 0; }
.logos { --g: clamp(10px, 2vw, 24px); display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(0px, 1vw, 8px) var(--g); margin-top: clamp(32px, 5vw, 56px); }
@media (min-width: 900px) { .thanks .col-break { break-before: column; } }
.logos img { flex: 0 0 auto; width: clamp(136px, 17.6vw, 210px); height: auto; aspect-ratio: 1 / 1; object-fit: contain; transition: transform .25s; }
.logos img:hover { transform: scale(1.08); }

/* photos de la forme originale en duo */
.duo { display: grid; gap: 16px; margin-top: clamp(24px, 4vw, 40px); }
@media (min-width: 700px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo figure { margin: 0; }
.duo a { display: block; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.duo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.duo a:hover img { transform: scale(1.04); }
.duo figcaption { margin-top: 8px; font-size: .8rem; color: var(--muted); }

/* conditions d'accueil (comme le bandeau sauge du dossier 2027) */
.accueil { max-width: 760px; margin: 0 0 clamp(20px, 3vw, 32px); }
.accueil h3 { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); color: var(--jaune); margin-bottom: .4em; }
.accueil p, .accueil ul { margin: 0 0 .5em; }
.accueil ul { padding-left: 1.1em; }
.accueil li { margin: .15em 0; }

.intro { font-style: italic; margin: 0 0 clamp(20px, 3vw, 32px); font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.5; }
@media (min-width: 700px) { .duo .wide { grid-column: 1 / -1; } .duo .wide img { aspect-ratio: auto; } }

/* onomatopées des machines, comme dans le dossier 2027 */
.onos { display: flex; flex-wrap: wrap; align-items: center; gap: .1em .5em; break-inside: avoid; margin: .6em 0 .9em; font-family: var(--font-titre); line-height: 1; cursor: default; user-select: none; -webkit-user-select: none; }
.onos span { display: inline-block; }
.onos .o1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); color: var(--rouille-fonce); rotate: -5deg; }
.onos .o2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); color: var(--sapin); rotate: 3deg; }
.onos .o3 { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.1rem); color: #e8791d; rotate: -3deg; }
.onos .o4 { font-size: clamp(1.1rem, .9rem + .6vw, 1.4rem); color: var(--sapin); rotate: 6deg; translate: 0 -.3em; }
.onos .o5 { font-size: clamp(1.3rem, 1rem + .9vw, 1.7rem); color: #c4553b; rotate: -8deg; translate: 0 .25em; }
.onos .o6 { font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2rem); color: #8b4e3d; rotate: 5deg; }
@media (prefers-reduced-motion: no-preference) {
  .in .onos span { animation: ono .6s cubic-bezier(.3, 1.6, .5, 1) backwards; }
  .in .onos .o1 { animation-delay: .15s; } .in .onos .o5 { animation-delay: .3s; } .in .onos .o2 { animation-delay: .45s; }
  .in .onos .o6 { animation-delay: .6s; } .in .onos .o3 { animation-delay: .75s; }
  .onos span { transition: scale .25s cubic-bezier(.3, 1.6, .5, 1); }
  .onos span:hover { scale: 1.15; }
}
@keyframes ono { from { opacity: 0; scale: .4; } to { opacity: 1; scale: 1; } }
.plan-big { display: block; cursor: zoom-in; margin-bottom: clamp(20px, 3vw, 32px); }
.plan-big img { width: 100%; --fx: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); --fy: linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: var(--fx), var(--fy); -webkit-mask-composite: source-in; mask-image: var(--fx), var(--fy); mask-composite: intersect; }
.plan-text p { margin: 0 0 1em; break-inside: avoid-column; }

/* téléphone : pas de carte, seulement l'agenda (comme HLN et QSC) */
@media (max-width: 640px) { #map, .legend { display: none; } }

/* section des dates sur fond sombre, comme HLN et QSC */
.panel-dates { background: #21383a; color: var(--creme); }
.panel-dates :focus-visible { outline-color: var(--creme); }
.panel-dates details.season { border-color: #f3e2c426; }
.panel-dates details.season > summary { color: var(--jaune); }
.panel-dates .dates li:nth-child(odd) { background: #ffffff0a; }
.panel-dates .dates li:hover, .panel-dates .dates li.hot { background: #ffffff1f; }
.panel-dates .dates .city { color: #f3e2c4b3; }
.panel-dates .dates em { color: var(--jaune); }
.panel-dates .dates li.past { opacity: .5; }
.panel-dates .dates li.next { background: #ffb52e26; }
.panel-dates .legend .tg { border-color: #f3e2c440; background: #ffffff0f; color: var(--creme); }
.panel-dates .legend .tg:hover { background: #ffffff1c; }
.panel-dates .pin .core { stroke: #21383a; }
.panel-dates .dot { outline-color: #21383a; }
.panel-dates .empty { color: var(--creme); }

/* bulle : apparaît en fondu avec un petit rebond (comme la carte Avoka) */
.tip { opacity: 0; visibility: hidden; transform-origin: 50% 100%; transform: translate(-50%, calc(-100% - 8px)) scale(.8); transition: opacity .25s ease, transform .25s ease, visibility 0s .25s; }
.tip.on { opacity: 1; visibility: visible; transform: translate(-50%, calc(-100% - 20px)) scale(1); transition: opacity .2s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1), visibility 0s; }

/* titre des dates en Exo jaune, et bulle de la carte en jaune, comme HLN et QSC */
.panel-dates h2 { font-family: Exo, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--jaune); }
.panel-dates .tip { background: var(--jaune); color: #2b2029; border: 0; box-shadow: 0 6px 20px #0006; }

/* partenaires de la nouvelle forme */
.soutien { margin: clamp(24px, 4vw, 40px) 0 0; text-align: center; }
.soutien p { margin: 0 0 6px; font-weight: 600; color: var(--muted); }
.soutien-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(6px, 1.4vw, 18px); }
.soutien-logos img { width: clamp(90px, 11vw, 130px); height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
details.season > summary small { margin-left: auto; font-weight: 400; font-size: .8rem; color: var(--creme); opacity: .8; }

/* plan interactif : pastilles numérotées sur le plan, bulle au survol, liste des postes dessous */
.plan-int { position: relative; margin: 0 0 clamp(16px, 2.5vw, 24px); }
.plan-int .plan-big { margin: 0; }
.hs { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; z-index: 1; display: grid; place-items: center; width: clamp(18px, 2vw, 24px); aspect-ratio: 1; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--rouille-fonce); color: #fff; font: 400 clamp(.95rem, 1.5vw, 1.25rem)/1 var(--font-titre); cursor: pointer; box-shadow: 0 4px 12px #392a3540; transition: scale .25s cubic-bezier(.34, 1.56, .64, 1), background-color .2s, color .2s; }
.hs::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--rouille-fonce); opacity: 0; pointer-events: none; }
.hs:hover, .hs:focus-visible, .hs.on { scale: 1.18; background: var(--jaune); color: var(--sapin); }
@media (prefers-reduced-motion: no-preference) {
  .hs::before { animation: hs-ping 2.6s ease-out infinite; }
  .hs:nth-of-type(2n)::before { animation-delay: 1.3s; }
}
@keyframes hs-ping { from { transform: scale(1); opacity: .7; } to { transform: scale(2); opacity: 0; } }
.hs-tip { position: absolute; z-index: 2; width: max-content; max-width: min(320px, 80%); padding: 10px 14px; border-radius: 10px; background: var(--jaune); color: #2b2029; font-size: .88rem; line-height: 1.4; box-shadow: 0 8px 24px #392a3540; pointer-events: none;
  opacity: 0; visibility: hidden; transform-origin: 50% 100%; transform: translate(-50%, calc(-100% - 10px)) scale(.85); transition: opacity .2s ease, transform .2s ease, visibility 0s .2s; }
.hs-tip.on { opacity: 1; visibility: visible; transform: translate(-50%, calc(-100% - 26px)) scale(1); transition: opacity .2s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1), visibility 0s; }
.hs-tip.below { transform-origin: 50% 0; transform: translate(-50%, 10px) scale(.85); }
.hs-tip.below.on { transform: translate(-50%, 26px) scale(1); }
.hs-tip strong { display: block; font: 400 1.15rem/1.2 var(--font-titre); color: var(--rouille-fonce); margin-bottom: 3px; }
.postes { list-style: none; margin: 0 0 clamp(20px, 3vw, 32px); padding: 0; display: grid; gap: 6px 32px; }
@media (min-width: 760px) { .postes { grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(3, auto); } }
.postes li { padding: 10px 12px; border-radius: 10px; transition: background-color .2s; cursor: default; }
.postes li.on { background: #ffffff8c; }
.postes h3 { display: flex; align-items: center; gap: 10px; font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); color: var(--rouille-fonce); margin-bottom: 4px; }
.postes h3 span { display: grid; place-items: center; width: 1.5em; height: 1.5em; flex: none; border-radius: 50%; background: var(--rouille-fonce); color: #fff; font-size: .75em; }
.postes p { margin: 0; font-size: .92rem; }
.postes[hidden] { display: none; }
#ecoles h2, #equipe h2 { color: #ffb52e; }
#ecoles .accueil { color: var(--creme); }
.onos span { color: var(--text) !important; }
#genese { background: #21383a; color: var(--creme); }
#genese h2 { color: #ffb52e; }
#genese .cols { column-rule-color: #f3e2c455; }

.galerie-credit { margin: 14px 0 0; font-size: .85rem; color: var(--muted); text-align: right; }
/* sauge plus foncé : textes de l'équipe en crème pour rester lisibles */
#equipe { color: var(--creme); }
#equipe .bio h3 { color: #ffb52e; }
#equipe .bio h3 small { color: var(--creme); opacity: .85; }
#equipe .bio-text { column-rule-color: #f3e2c440; }
#equipe .src a { color: #ffb52e; }
.bio h3 { font-family: Exo, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.bio h3 small { text-transform: none; }

/* Nouveau format : pourquoi, cinq enjeux, calendrier de création */
.pourquoi { margin: clamp(28px, 4vw, 44px) 0 0; }
.pourquoi h3, .calendrier h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); color: var(--rouille-fonce); margin-bottom: .5em; }
.pourquoi p { margin: 0 0 .8em; }
.enjeux { list-style: none; margin: clamp(24px, 4vw, 40px) 0 0; padding: 0; display: grid; gap: 18px 24px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.enjeux li { border-top: 3px solid var(--rouille-fonce); padding-top: 12px; font-size: .95rem; line-height: 1.45; }
.enjeux b { display: block; margin-bottom: 6px; font: 700 clamp(1.05rem, .9rem + .5vw, 1.3rem)/1.2 Exo, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--rouille-fonce); }
.calendrier { margin: clamp(32px, 5vw, 52px) 0 0; }
.calendrier ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.calendrier li { position: relative; padding-left: 28px; font-size: .9rem; line-height: 1.45; }
.calendrier li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 14px; border-radius: 50%; background: var(--rouille-fonce); }
.calendrier li::after { content: ""; position: absolute; left: 6px; top: 1.4em; bottom: -18px; width: 2px; background: #a63b2d55; }
.calendrier li:last-child::after { background: repeating-linear-gradient(to bottom, #a63b2d 0 6px, transparent 6px 12px); bottom: -10px; }
@media (prefers-reduced-motion: no-preference) { .calendrier li:last-child::after { animation: pointilles-v .9s linear infinite; } }
@keyframes pointilles-v { to { background-position: 0 12px; } }
@keyframes pointilles-h { to { background-position: 12px 0; } }
.calendrier time { display: block; font: 400 1.25rem/1.1 var(--font-titre); color: var(--rouille-fonce); }
.calendrier b { display: block; margin: 2px 0; }
.calendrier em { color: var(--muted); }
@media (min-width: 860px) {
  .calendrier ol { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .calendrier li { padding: 26px 0 0; }
  .calendrier li::before { top: 0; }
  .calendrier li::after { left: 14px; right: -20px; top: 6px; bottom: auto; width: auto; height: 2px; }
  .calendrier li:last-child::after { right: 0; bottom: auto; background: repeating-linear-gradient(to right, #a63b2d 0 6px, transparent 6px 12px); animation-name: pointilles-h; }
}
.panel-dates .dates li { white-space: normal; }
.card .note { margin: .6em 0 0; font-size: .8rem; font-style: italic; color: var(--muted); }
/* cinq enjeux : une couleur par bloc, fond teinté et surlignage au survol */
.enjeux li { --c: var(--rouille-fonce); border-top-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); padding: 14px 16px 16px; border-radius: 0 0 12px 12px; transition: background-color .25s, translate .25s; }
.enjeux li:nth-child(2) { --c: #d9671c; }
.enjeux li:nth-child(3) { --c: #7d8a1f; }
.enjeux li:nth-child(4) { --c: #4f6e60; }
.enjeux li:nth-child(5) { --c: #6b3f5c; }
.enjeux li b { color: var(--c); }
.enjeux li:hover { background: color-mix(in srgb, var(--c) 22%, transparent); translate: 0 -3px; }
