/* OXTURN — Concept Kamelya Studio. Palette en aplats, trois familles OFL. */
@font-face { font-family: "Shoulders"; src: url(../fonts/bigshoulders-stencil-display.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(../fonts/fraunces.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(../fonts/fraunces-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(../fonts/plexmono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(../fonts/plexmono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --chaume: #F2C230; --terre: #1E120C; --outremer: #1F2BE0; --vermillon: #FF4A1C; --craie: #F3EDE0;
  --kraft: #d9b98a;
  --rail: 64px; --barre: 0px;
  --pochoir: "Shoulders", "Arial Narrow", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --mono: "Plex Mono", ui-monospace, monospace;
  --g: clamp(16px, 2.2vw, 32px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--terre); color: var(--terre); font: 400 19px/28px var(--serif); font-variation-settings: "SOFT" 50, "WONK" 0; overflow-x: hidden; }
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.mono { font-family: var(--mono); font-size: 12px; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--outremer); outline-offset: 3px; }

/* grain d'encre (papier épais) */
.aplat-chaume, .aplat-outremer, #pied .pied-bas, .ouverture, #porte .porte-grain { position: relative; }
.aplat-chaume::after, .aplat-outremer::after, .pied-bas::after, .ouverture::after, .porte-grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .12  0 0 0 0 .07  0 0 0 0 .05  0 0 0 -1.6 1.05'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.aplat-outremer::after, .pied-bas::after, .ouverture::after, .porte-grain::after { mix-blend-mode: screen; opacity: .12; filter: invert(1); }

/* ---------- Porte ---------- */
#porte { position: fixed; inset: 0; z-index: 100; background: var(--terre); color: var(--craie); display: grid; place-items: center; transition: clip-path 1.1s cubic-bezier(.7,0,.2,1), opacity .4s 1s; clip-path: circle(150% at 50% 50%); }
#porte.ouverte { clip-path: circle(0% at 50% 56%); pointer-events: none; }
.porte-grain { position: absolute; inset: 0; }
.porte-epingle { position: absolute; top: 50%; left: 50%; width: min(240px, 52vw); transform: translate(-50%, -150%); overflow: visible; }
.porte-epingle path { fill: none; stroke: var(--chaume); }
.porte-choix { position: relative; display: grid; justify-items: center; gap: 22px; margin-top: 140px; opacity: 0; transform: translateY(12px); transition: opacity .8s, transform .8s; }
#porte.prete .porte-choix { opacity: 1; transform: none; }
.porte-rond { position: relative; width: 200px; height: 200px; border-radius: 50%; display: grid; place-items: center; color: var(--craie); transition: color .3s, transform .5s cubic-bezier(.2,.8,.2,1); }
.porte-rond svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: tourne 26s linear infinite; }
.porte-rond text { font: 500 10.5px var(--mono); letter-spacing: .22em; fill: currentColor; }
.porte-rond span { font: 400 26px/1.05 var(--serif); text-align: center; }
.porte-rond span em { font-size: 30px; }
.porte-rond:hover { color: var(--chaume); transform: scale(1.04); }
.porte-calme { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; opacity: .85; }
.porte-calme:hover { color: var(--chaume); }
.porte-note { opacity: .55; margin: 0; text-align: center; max-width: 30ch; }
.porte-cartel { position: absolute; left: 20px; right: 20px; bottom: 18px; margin: 0; opacity: .6; text-align: center; font-size: 10px; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* ---------- Scène ---------- */
#champ { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; touch-action: pan-y; background: var(--chaume); }
#repli { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
#curseur { position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; font: italic 400 30px/1 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--terre); transform: translate(-200px, -200px); opacity: 0; transition: opacity .3s; white-space: nowrap; }
#curseur span { display: inline-block; transform: translate(18px, -34px); }
#curseur.on { opacity: 1; }
body.nuit #curseur { color: var(--craie); }
body.trait-champ, body.trait-champ #champ { cursor: grab; }
body.tire, body.tire #champ { cursor: grabbing; }

/* ---------- Rail (C2) ---------- */
#rail { position: fixed; top: 0; right: 0; bottom: 0; width: var(--rail); z-index: 40; background: var(--craie); display: flex; flex-direction: column; align-items: stretch; border-left: 1px solid rgba(30,18,12,.18); }
.rail-menu { height: var(--rail); background: var(--terre); display: grid; align-content: center; justify-items: center; gap: 6px; flex: none; }
.rail-menu span { width: 28px; height: 2px; background: var(--craie); display: block; transition: transform .3s; }
.rail-menu:hover span:nth-child(2) { transform: translateX(5px); }
.rail-marque { display: block; padding: 16px 12px 0; }
.rail-marque img { width: 40px; }
.rail-liens { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.rail-liens a { writing-mode: vertical-rl; text-decoration: none; font: 500 16px/1 var(--serif); letter-spacing: .01em; padding: 2px 0; transition: color .2s; }
.rail-liens a:hover, .rail-liens a[aria-current] { color: var(--outremer); }
.rail-langue { margin: 28px 0 18px; align-self: center; font-size: 12px; }
.rail-billets { flex: none; height: 168px; background: var(--vermillon); color: var(--terre); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 18px 0 14px; transition: height .4s cubic-bezier(.2,.8,.2,1); }
.rail-billets span { writing-mode: vertical-rl; font: 800 24px/1 var(--pochoir); letter-spacing: .04em; text-transform: uppercase; }
.rail-billets svg { width: 20px; height: 20px; }
.rail-billets:hover { height: 200px; }
#barre { display: none; }

/* ---------- Menu ---------- */
#menu { position: fixed; inset: 0; z-index: 90; background: var(--terre); color: var(--chaume); padding: 60px var(--g) 40px; display: flex; flex-direction: column; justify-content: center; }
#menu[hidden] { display: none; }
#menu ol { list-style: none; margin: 0; padding: 0; }
#menu li a { display: flex; align-items: baseline; gap: 20px; text-decoration: none; border-top: 1px solid rgba(242,194,48,.25); padding: 6px 0; }
#menu li b { font: 800 clamp(48px, 9vw, 132px)/.86 var(--pochoir); text-transform: uppercase; }
#menu li a:hover b { color: var(--craie); }
.menu-fermer { position: absolute; top: 22px; right: calc(var(--rail) + 24px); color: var(--craie); }
.menu-langue { margin-top: 28px; align-self: flex-start; color: var(--craie); }

/* ---------- Cartel « Concept » ---------- */
#cartel { position: fixed; left: 14px; top: 12px; z-index: 35; margin: 0; max-width: calc(100vw - var(--rail) - 28px); padding: 5px 9px 4px; background: var(--craie); color: var(--terre); font-size: 10px; letter-spacing: .05em; line-height: 1.35; }

/* ---------- La scène tenue ---------- */
main { position: relative; z-index: 2; }
#jours { height: 1080vh; position: relative; pointer-events: none; }
.pied-champ { pointer-events: none; }
.chap, .ouverture { pointer-events: none !important; }
.tenue { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; pointer-events: none; }
.tenue > * { pointer-events: auto; }

.ouverture { position: absolute; left: 0; bottom: 0; width: min(46vw, calc((52vh) * 1.454 + 6vw)); background: var(--terre); padding: 4vw 3vw 2.6vw; color: var(--chaume); will-change: transform; pointer-events: none; }
.ouv-logo { margin: 0; }
.ouv-logo img { width: 100%; height: auto; }
.ouv-texte { position: absolute; left: 3vw; bottom: calc(100% + 2.2vw); width: max-content; max-width: 34vw; color: var(--terre); }
.ouv-promesse { margin: 0 0 14px; font: 400 clamp(34px, 4.4vw, 72px)/.98 var(--serif); }
.ouv-dates { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ouv-dates span:first-child { font-size: 14px; }
.ouv-demo { opacity: .7; }
.ouv-aide { margin: 14px 0 0; opacity: .75; max-width: 30ch; }

.chap { position: absolute; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.chap.on { opacity: 1; visibility: visible; transition: opacity .5s; }
.chap-jour-nom { position: absolute; left: 0; top: 0; margin: 0; padding: 1.6vw 2.4vw .4vw; background: var(--terre); color: var(--chaume); font: 800 14vw/.82 var(--pochoir); text-transform: uppercase; letter-spacing: -.005em; clip-path: inset(100% 0 0 0); transition: clip-path .8s cubic-bezier(.7,0,.2,1); }
.chap.on .chap-jour-nom { clip-path: inset(0 0 0 0); }
.chap-jour { inset: 0; }
.chap-cartouche { position: absolute; right: calc(var(--rail) + 2.4vw); bottom: 92px; max-width: 30vw; background: var(--craie); padding: 18px 22px 16px; clip-path: inset(0 0 0 100%); transition: clip-path .8s .15s cubic-bezier(.7,0,.2,1); }
.chap.on .chap-cartouche { clip-path: inset(0 0 0 0); }
.chap-cartouche .chap-phrase { font-size: clamp(28px, 3vw, 46px); }
.chap-cartouche .mono { margin: 10px 0 0; }
.chap-phrase { margin: 0; font: 400 clamp(32px, 4.6vw, 80px)/1 var(--serif); }
.chap-matin { left: 3vw; top: 22vh; color: var(--terre); max-width: 40vw; }
.chap-nuit { left: 3vw; top: 20vh; color: var(--craie); }
.chap-nuit .mono { margin-top: 16px; }
.chap-disque { left: 0; right: var(--rail); bottom: 110px; text-align: center; color: var(--craie); }
.chap-disque .chap-phrase { font-size: clamp(36px, 6vw, 104px); text-shadow: 0 0 40px rgba(31,43,224,.5); }

.frise { position: absolute; left: 24px; right: calc(var(--rail) + 24px); bottom: 16px; height: 54px; color: var(--terre); opacity: 0; transition: opacity .6s, color .8s; pointer-events: auto; }
.frise.on { opacity: 1; }
body.nuit .frise { color: var(--craie); }
.frise-regle { position: absolute; left: 0; right: 0; bottom: 22px; height: 12px; border-bottom: 1px solid currentColor; display: flex; }
.frise-regle .jour { flex: 1; position: relative; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 6px; }
.frise-regle .jour + .jour { border-left: 1px solid currentColor; }
.frise-regle i { width: 1px; height: 5px; background: currentColor; opacity: .7; }
.frise-regle i.h6 { height: 10px; opacity: 1; }
.frise-jours { position: absolute; left: 0; right: 0; bottom: 0; display: flex; }
.frise-jours button { flex: 1; text-align: left; padding-left: 6px; font: inherit; letter-spacing: .3em; opacity: .7; }
.frise-jours button.on { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.frise-soleil { position: absolute; bottom: 17px; left: 0; transform: translateX(-50%); display: grid; justify-items: center; }
.frise-soleil i { width: 12px; height: 12px; border-radius: 50%; background: currentColor; display: block; box-shadow: 0 0 0 3px rgba(242,194,48,.0); }
.frise-soleil span { position: absolute; bottom: 18px; font-size: 10px; }

/* ---------- Titres ---------- */
.titre-pochoir { margin: 0; font: 800 clamp(72px, 13vw, 220px)/.82 var(--pochoir); text-transform: uppercase; letter-spacing: -.005em; }
.prog-chapo, .nl-chapo { margin: 18px 0 0; font: 400 clamp(24px, 2.8vw, 44px)/1.08 var(--serif); max-width: 22ch; }

/* ---------- Programmation ---------- */
.aplat-chaume { background: var(--chaume); color: var(--terre); }
.aplat-outremer { background: var(--outremer); color: var(--craie); }
section#programme, section#billets, section#almanach, section#almanach-lettre { padding: 120px calc(var(--rail) + var(--g)) 120px var(--g); }
section#programme { padding-top: 140px; box-shadow: 0 -40px 80px rgba(30,18,12,.35); }
.prog-tete { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px 40px; }
.prog-tete .titre-pochoir { grid-column: 1 / -1; }
.prog-filtre { display: flex; gap: 0; border: 1.5px solid var(--terre); align-self: end; }
.prog-filtre button { padding: 12px 18px 11px; font: inherit; }
.prog-filtre button + button { border-left: 1.5px solid var(--terre); }
.prog-filtre button[aria-selected="true"] { background: var(--terre); color: var(--chaume); }
.prog-grille { margin-top: 56px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 34px 26px; }
.prog-note { margin: 40px 0 0; opacity: .7; }
.sachet { perspective: 1200px; aspect-ratio: 2 / 3.05; position: relative; }
.sachet.tete { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.sachet-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.3,.7,.2,1); }
.sachet:hover .sachet-in, .sachet.retourne .sachet-in { transform: rotateY(180deg); }
.sachet-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #e4bf95; box-shadow: 0 1px 0 rgba(30,18,12,.25), 0 18px 30px -18px rgba(30,18,12,.55); display: flex; flex-direction: column; padding: 12% 9% 8%; clip-path: polygon(0 4%, 6% 0, 12% 4%, 18% 0, 24% 4%, 30% 0, 36% 4%, 42% 0, 48% 4%, 54% 0, 60% 4%, 66% 0, 72% 4%, 78% 0, 84% 4%, 90% 0, 96% 4%, 100% 1%, 100% 100%, 0 100%); }
.sachet-face::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9%; background: rgba(30,18,12,.12); border-bottom: 1px dashed rgba(30,18,12,.35); }
.sachet-recto { padding: 0; justify-content: flex-end; }
.sachet-recto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sachet-etiquette { position: relative; margin: 0 7% 7%; background: #efd9b8; padding: 10px 12px 8px; box-shadow: 0 1px 0 rgba(30,18,12,.25), 0 6px 14px -8px rgba(30,18,12,.5); transform: rotate(-.6deg); }
.sachet-recto h3 { margin: 0; font: 800 clamp(22px, 2.2vw, 36px)/.86 var(--pochoir); text-transform: uppercase; }
.sachet.tete .sachet-recto h3 { font-size: clamp(40px, 4.8vw, 84px); }
.sachet-recto .mono { margin: 8px 0 0; font-size: 11px; display: flex; justify-content: space-between; }
.sachet-verso { transform: rotateY(180deg); justify-content: space-between; background: #d9b58a url(../img/kraft.webp) center/cover; background-blend-mode: multiply; }
.sachet-verso dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.sachet-verso dt { opacity: .6; }
.sachet-verso dd { margin: 0; }
.sachet-verso .verso-nom { font: 800 clamp(22px, 2vw, 32px)/.9 var(--pochoir); text-transform: uppercase; margin: 0; }
.sachet-verso .verso-pied { font: italic 400 16px/1.25 var(--serif); margin: 0; }
.prog-texte { grid-column: span 3; align-self: end; border-top: 1.5px solid var(--terre); padding-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.prog-texte p { margin: 0; }
.prog-texte .grand { font: italic 400 clamp(26px, 2.6vw, 40px)/1.05 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; }

/* ---------- Carnet de champ (photos) ---------- */
#carnet { background: var(--terre); color: var(--craie); padding-right: var(--rail); }
#carnet figure { margin: 0; position: relative; overflow: hidden; }
#carnet img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.car-diptyque { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 100vh; height: 100svh; }
.car-diptyque figure:first-child img { object-position: 45% 58%; }
.car-diptyque figure:nth-child(2) img { object-position: 50% 40%; }
.car-cartouche { position: absolute; left: 0; bottom: 0; background: var(--terre); padding: 2.4vw 2.8vw 2vw; max-width: 40vw; }
.car-cartouche .titre-pochoir { color: var(--chaume); font-size: clamp(60px, 8vw, 140px); }
.car-cartouche p { margin: 12px 0 0; font-size: clamp(20px, 2vw, 32px); line-height: 1.1; }
.car-gen { opacity: .7; }
#carnet figure > figcaption.mono { position: absolute; left: 16px; bottom: 14px; background: var(--terre); color: var(--craie); padding: 5px 9px 4px; }
.car-duo { display: grid; grid-template-columns: 62fr 38fr; }
.car-duo figure { aspect-ratio: 1672 / 941; }
.car-texte { background: var(--chaume); color: var(--terre); display: flex; align-items: flex-end; padding: 3vw; }
.car-texte p { margin: 0; font: 400 clamp(26px, 2.6vw, 44px)/1.08 var(--serif); }
.car-plein { height: 100vh; height: 100svh; }
.car-plein figcaption { position: absolute; left: 3vw; bottom: 4vw; font: 400 clamp(30px, 4vw, 70px)/1 var(--serif); color: var(--terre); background: var(--craie); padding: 12px 20px 16px; max-width: 16ch; }
.car-large { height: 100vh; height: 100svh; }
.car-large figcaption { position: absolute; right: 3vw; top: 8vh; font: 400 clamp(34px, 5vw, 88px)/1 var(--serif); color: var(--terre); background: var(--chaume); padding: 12px 22px 16px; max-width: 12ch; }
.car-duo-inverse { grid-template-columns: 38fr 62fr; }
.bil-tete { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 40px; }

/* ---------- Billetterie ---------- */
section#billets { padding-top: 40px; }
.bil-rang { margin-top: 70px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3vw; align-items: start; }
.passe { position: relative; transform: rotate(var(--r, 0deg)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.passe-trois { --r: -2.2deg; }
.passe-jour { --r: 1.2deg; margin-top: 40px; }
.passe-famille { --r: 2.6deg; margin-top: 10px; }
.passe:hover { transform: rotate(0deg) translateY(-6px); }
.passe-corps { position: relative; background: var(--kraft) url(../img/kraft.webp) center/cover; padding: 34px 28px 30px; box-shadow: 0 24px 40px -26px rgba(30,18,12,.7); clip-path: polygon(0 18px, 5% 0, 10% 18px, 15% 0, 20% 18px, 25% 0, 30% 18px, 35% 0, 40% 18px, 45% 0, 50% 18px, 55% 0, 60% 18px, 65% 0, 70% 18px, 75% 0, 80% 18px, 85% 0, 90% 18px, 95% 0, 100% 18px, 100% 100%, 0 100%); }
.passe-ref { margin: 14px 0 0; opacity: .7; }
.passe-nom { margin: 14px 0 0; font: 800 clamp(40px, 4.2vw, 68px)/.84 var(--pochoir); text-transform: uppercase; }
.passe-prix { margin: 22px 0 0; font: 800 64px/.8 var(--pochoir); }
.passe-demo { margin: 8px 0 0; }
.passe-liste { list-style: none; margin: 22px 0 0; padding: 0; font-size: 17px; line-height: 1.35; }
.passe-liste li { border-top: 1px solid rgba(30,18,12,.3); padding: 9px 0; }
.passe-talon { position: relative; background: var(--kraft) url(../img/kraft.webp) center/cover; padding: 18px 20px 20px; box-shadow: 0 24px 40px -26px rgba(30,18,12,.7); transform-origin: 8% 0; transition: transform .3s cubic-bezier(.6,0,.4,1); }
.passe-talon::before { content: ""; position: absolute; left: 14px; right: 14px; top: -1px; border-top: 2px dashed rgba(30,18,12,.55); }
.passe-talon::after { content: ""; position: absolute; left: -10px; right: -10px; top: -10px; height: 20px; background: radial-gradient(circle at 10px 10px, var(--chaume) 9px, transparent 10px) left/100% 20px no-repeat, radial-gradient(circle at calc(100% - 10px) 10px, var(--chaume) 9px, transparent 10px) right/100% 20px no-repeat; }
.passe.dechire .passe-talon { transform: translateY(26px) rotate(-7deg); }
.passe-bouton { width: 100%; background: var(--vermillon); color: var(--terre); padding: 18px 20px 16px; font: 800 26px/1 var(--pochoir); text-transform: uppercase; letter-spacing: .03em; display: flex; justify-content: space-between; align-items: center; }
.passe-bouton::after { content: ""; width: 18px; height: 18px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5 15 15 5M7 5h8v8' fill='none' stroke='%231E120C' stroke-width='2'/></svg>") center/contain no-repeat; }
.passe-bouton:hover { filter: brightness(1.06); }

/* ---------- Almanach ---------- */
section#almanach { padding-top: 60px; border-top: 1.5px solid var(--terre); margin: 0; }
.alm-grille { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 6vw; }
.alm-grille article { display: grid; grid-template-columns: 80px 1fr; gap: 0 22px; border-top: 1.5px solid var(--terre); padding: 22px 0 30px; }
.alm-grille img { width: 80px; height: 80px; object-fit: contain; mix-blend-mode: multiply; grid-row: span 2; }
.alm-grille h3 { margin: 0; font: 800 34px/.9 var(--pochoir); text-transform: uppercase; }
.alm-grille p { margin: 10px 0 0; max-width: 46ch; }

/* ---------- Accès ---------- */
#acces { height: 240vh; background: #efe4cc; position: relative; }
.acces-tenue { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: 1fr minmax(300px, 30vw); padding-right: var(--rail); }
.acces-cadre { position: relative; overflow: hidden; background: #efe4cc; }
.acces-gravure { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; will-change: transform, opacity; }
.acces-plan { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.acces-reperes { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.acces-reperes li { position: absolute; transform: translate(-50%, -50%); background: var(--terre); color: var(--craie); padding: 4px 7px 3px; font-size: 10.5px; white-space: nowrap; opacity: 0; transition: opacity .4s; }
.acces-reperes.on li { opacity: 1; }
.acces-texte { background: var(--chaume); padding: 90px var(--g) 40px; overflow: auto; display: flex; flex-direction: column; justify-content: center; position: relative; }
.acces-texte .titre-pochoir { font-size: clamp(56px, 5.6vw, 96px); }
.acces-texte dl { margin: 32px 0 0; }
.acces-texte dt { margin-top: 18px; border-top: 1.5px solid var(--terre); padding-top: 10px; }
.acces-texte dd { margin: 6px 0 0; font-size: 18px; line-height: 1.4; }

/* ---------- Newsletter ---------- */
.nl-form { margin-top: 48px; max-width: 760px; }
.nl-ligne { display: flex; gap: 0; margin-top: 10px; border-bottom: 2px solid var(--craie); }
.nl-ligne input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--craie); font: 400 26px/1.2 var(--serif); padding: 14px 0; }
.nl-ligne input::placeholder { color: rgba(243,237,224,.55); font-style: italic; }
.nl-ligne input:focus { outline: none; }
.nl-ligne button { background: var(--craie); color: var(--terre); padding: 0 22px; font: 800 22px/1 var(--pochoir); text-transform: uppercase; margin-bottom: 8px; }
.nl-retour { min-height: 1.5em; margin: 12px 0 0; }

/* ---------- Pied ---------- */
#pied { position: relative; }
.pied-champ { height: 100vh; height: 100svh; display: flex; align-items: flex-end; padding: 0 calc(var(--rail) + var(--g)) 80px var(--g); }
.pied-phrase { margin: 0; font: 400 clamp(40px, 6.4vw, 112px)/.96 var(--serif); color: var(--terre); max-width: 14ch; background: var(--chaume); padding: 14px 22px 18px; }
.pied-bas { background: var(--terre); color: var(--craie); padding: 60px calc(var(--rail) + var(--g)) 40px var(--g); display: grid; grid-template-columns: minmax(200px, 340px) 1fr auto; gap: 40px; align-items: end; }
.pied-logo { width: 100%; }
.pied-col p { margin: 0; max-width: 60ch; opacity: .85; }
.pied-liens { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.pied-liens a { text-decoration: none; border-bottom: 1px solid rgba(243,237,224,.4); }
.pied-credit { margin: 0; opacity: .6; }

/* ---------- Tunnel ---------- */
dialog#tunnel { border: 0; padding: 0; background: var(--craie); color: var(--terre); width: min(520px, calc(100vw - 32px)); box-shadow: 0 40px 80px rgba(0,0,0,.4); }
dialog#tunnel::backdrop { background: rgba(30,18,12,.7); }
.tunnel-corps { padding: 30px 30px 26px; }
.tunnel-titre { margin: 10px 0 22px; font: 800 52px/.86 var(--pochoir); text-transform: uppercase; }
.tunnel-n { display: flex; align-items: center; gap: 18px; margin: 8px 0 18px; }
.tunnel-n button { width: 44px; height: 44px; border: 1.5px solid var(--terre); font: 500 22px var(--mono); }
.tunnel-n output { font: 800 40px var(--pochoir); min-width: 30px; text-align: center; }
.tunnel-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px solid var(--terre); padding-top: 12px; }
.tunnel-total b { font: 800 44px var(--pochoir); }
.tunnel-note { font-size: 16px; line-height: 1.4; }
.tunnel-ok { background: var(--vermillon); color: var(--terre); width: 100%; padding: 16px; font: 800 24px var(--pochoir); text-transform: uppercase; }

/* ---------- Mobile (390) : conçu à part ---------- */
@media (max-width: 760px) {
  :root { --rail: 0px; --barre: 58px; --g: 16px; }
  body { font-size: 17px; line-height: 25px; }
  #rail { display: none; }
  #barre { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--barre) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); z-index: 40; }
  .barre-menu { flex: 1; background: var(--terre); color: var(--craie); font: 500 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
  .barre-billets { flex: 1; background: var(--vermillon); color: var(--terre); text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 10px; font: 800 26px/1 var(--pochoir); text-transform: uppercase; letter-spacing: .03em; }
  .barre-billets svg { width: 18px; height: 18px; }
  .menu-fermer { right: 16px; }
  #cartel { left: 8px; top: 8px; font-size: 9px; max-width: calc(100vw - 16px); }
  .ouverture { width: 100%; height: 38svh; bottom: var(--barre); padding: 6vw 5vw 5vw; display: flex; flex-direction: column; justify-content: space-between; }
  .ouv-logo img { height: calc(38svh - 30vw); width: auto; max-width: 74vw; }
  .ouv-texte { position: static; max-width: none; color: var(--chaume); display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; width: auto; }
  .ouv-promesse { font-size: 26px; margin: 0; color: var(--craie); }
  .ouv-dates { text-align: right; font-size: 10px; }
  .ouv-dates span:first-child { font-size: 11px; }
  .ouv-aide { display: none; }
  .chap-jour-nom { font-size: 21vw; padding: 3vw 4vw 1vw; top: 50px; }
  .chap-cartouche { left: 16px; right: 16px; bottom: calc(var(--barre) + 76px); max-width: none; padding: 14px 16px 12px; }
  .chap-cartouche .chap-phrase { font-size: 26px; }
  .chap-matin, .chap-nuit { left: 16px; right: 16px; top: 64px; max-width: none; }
  .chap-phrase { font-size: 34px; }
  .chap-disque { right: 0; bottom: calc(var(--barre) + 90px); padding: 0 16px; }
  .chap-disque .chap-phrase { font-size: 40px; }
  .frise { left: 16px; right: 16px; bottom: calc(var(--barre) + 10px); }
  .frise-regle i:not(.h6) { display: none; }
  section#programme, section#billets, section#almanach, section#almanach-lettre { padding: 80px 16px 90px; }
  .titre-pochoir { font-size: 26vw; }
  .prog-tete { grid-template-columns: 1fr; }
  .prog-filtre { width: 100%; }
  .prog-filtre button { flex: 1; padding: 12px 6px 11px; }
  .prog-grille { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 36px -16px 0; padding: 0 16px 20px; scrollbar-width: none; }
  .prog-grille::-webkit-scrollbar { display: none; }
  .sachet, .sachet.tete { flex: 0 0 76vw; aspect-ratio: 2 / 3.05; scroll-snap-align: center; }
  .sachet.tete .sachet-recto h3 { font-size: 15vw; }
  .sachet-recto h3 { font-size: 11vw; }
  .sachet:hover .sachet-in { transform: none; }
  .sachet.retourne .sachet-in { transform: rotateY(180deg); }
  .prog-texte { flex: 0 0 76vw; scroll-snap-align: center; grid-template-columns: 1fr; align-self: stretch; align-content: end; }
  .car-diptyque { grid-template-columns: 1fr; height: auto; }
  .car-diptyque figure { height: 72svh; }
  .car-cartouche { position: static; max-width: none; padding: 22px 16px 26px; grid-row: 2; }
  .car-duo { grid-template-columns: 1fr; }
  .car-texte { padding: 24px 16px; }
  .car-plein { height: 70svh; }
  #carnet .car-plein img { object-position: 38% 50%; }
  .car-plein figcaption { left: 16px; right: 16px; bottom: 16px; font-size: 28px; }
  .car-large { height: 78svh; }
  #carnet .car-large img { object-position: 50% 60%; }
  .car-large figcaption { right: 16px; top: 6svh; font-size: 30px; }
  .car-duo-inverse figure { aspect-ratio: 4 / 3; }
  .bil-tete { grid-template-columns: 1fr; }
  .bil-rang { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; margin: 40px -16px 0; padding: 30px 16px 40px; scrollbar-width: none; }
  .bil-rang::-webkit-scrollbar { display: none; }
  .passe { flex: 0 0 82vw; scroll-snap-align: center; margin-top: 0 !important; }
  .passe-prix { font-size: 56px; }
  .alm-grille { grid-template-columns: 1fr; margin-top: 36px; }
  .alm-grille article { grid-template-columns: 56px 1fr; gap: 0 14px; }
  .alm-grille img { width: 56px; height: 56px; }
  .alm-grille h3 { font-size: 28px; }
  #acces { height: 220vh; }
  .acces-tenue { grid-template-columns: 1fr; grid-template-rows: 44svh 1fr; padding: 0; }
  .acces-texte { padding: 18px 16px calc(var(--barre) + 12px); justify-content: flex-start; }
  .acces-texte .titre-pochoir { font-size: 11vw; }
  .acces-texte dl { margin-top: 6px; }
  .acces-texte dt { margin-top: 8px; padding-top: 5px; font-size: 10.5px; }
  .acces-texte dd { font-size: 14px; line-height: 1.3; margin-top: 2px; }
  .nl-ligne { flex-direction: column; border: 0; }
  .nl-ligne input { border-bottom: 2px solid var(--craie); font-size: 22px; }
  .nl-ligne button { padding: 16px; margin: 16px 0 0; }
  .pied-champ { padding: 0 16px calc(var(--barre) + 60px); }
  .pied-phrase { font-size: 40px; }
  .pied-bas { grid-template-columns: 1fr; padding: 40px 16px calc(var(--barre) + 30px); gap: 24px; }
  .pied-logo { width: 60%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (min-width: 761px) and (max-height: 760px) {
  .rail-marque { display: none; }
  .rail-liens { gap: 16px; }
  .rail-liens a { font-size: 14px; }
  .rail-billets { height: 132px; }
}
body.sans-gl #jours { height: 260vh; }
.car-cartouche p.mono { font-size: 11px; line-height: 1.4; margin-top: 14px; }

/* ---------- Bande-son : « Press play on the field » ---------- */
.porte-rond { width: 220px; height: 220px; }
.porte-rond::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--chaume); opacity: .0; animation: invite 2.4s cubic-bezier(.2,.7,.3,1) infinite; }
@keyframes invite { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.22); opacity: 0; } }
.porte-sillons { opacity: .55; }
.porte-label { fill: var(--chaume); transition: fill .3s; }
.porte-rond:hover .porte-label { fill: var(--craie); }
.porte-rond:hover { color: var(--craie); }
.porte-rond span { color: var(--terre); position: relative; }
.porte-lecture { position: absolute; top: 31%; left: 50%; width: 0; height: 0; transform: translateX(-38%); border-left: 15px solid var(--terre); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.porte-rond span { margin-top: 22px; font-size: 21px; }
.porte-rond span em { font-size: 24px; }
.son-bouton { display: grid; justify-items: center; align-content: center; gap: 6px; background: var(--chaume); color: var(--terre); transition: background .3s, color .3s; }
.son-bouton.on { background: var(--terre); color: var(--craie); }
.son-barres { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.son-barres i { width: 3px; height: 18px; background: currentColor; transform-origin: 50% 100%; transform: scaleY(.3); transition: transform .08s linear; }
.son-bouton:not(.on) .son-barres i:nth-child(1) { transform: scaleY(.35); } .son-bouton:not(.on) .son-barres i:nth-child(2) { transform: scaleY(.7); }
.son-bouton:not(.on) .son-barres i:nth-child(3) { transform: scaleY(.5); } .son-bouton:not(.on) .son-barres i:nth-child(4) { transform: scaleY(.25); }
.son-bouton.on .son-barres i { background: var(--chaume); }
.son-mot { font-size: 10px; letter-spacing: .14em; }
.rail-son { flex: none; height: var(--rail); width: 100%; margin-top: 24px; }
.rail-son:not(.on) { animation: appel 2.4s ease-in-out infinite; }
@keyframes appel { 50% { background: #f7d45e; } }
.rail-son:hover .son-barres i { transform: scaleY(.9); }
.barre-son { display: none; }
body.tableau .son-bouton { display: none; } /* tableaux 3:2 : le rail reste celui d’avant */
@media (max-width: 760px) {
  .barre-menu { flex: 1 1 auto; }
  .barre-billets { flex: 0 0 50%; }
  .barre-son { display: grid; flex: 0 0 64px; gap: 4px; }
  .porte-rond { width: 200px; height: 200px; }
  .porte-choix { margin-top: 96px; gap: 18px; }
  .porte-rond span { font-size: 18px; margin-top: 20px; } .porte-rond span em { font-size: 20px; }
  html[lang="fr"] .prog-tete .titre-pochoir { font-size: 19.5vw; } html[lang="fr"] #billets .titre-pochoir { font-size: 21vw; } /* « PROGRAMME » débordait de 77 px et élargissait la page en FR */
}
.car-duo-inverse .car-texte { background: var(--craie); }
@media (max-width: 760px) { .car-duo-inverse .car-texte { background: var(--chaume); } }
