/* ===== festival âmes sœurs — charte issue de la brochure ===== */
/* « & » de la Seriguela remplacé par celui d'Antonio (Google Fonts, licence OFL, assets/fonts/Antonio-OFL.txt) : condensé, même graisse,
   ramené à la hauteur des capitales de la Seriguela. Seul ce signe est dans le fichier (unicode-range). */
@font-face { font-family: 'AS Amp'; src: url('/assets/fonts/Antonio-amp.woff2') format('woff2'); unicode-range: U+0026; size-adjust: 82.4%; font-weight: 100 900; font-display: swap; }
@property --fade { syntax: '<number>'; inherits: false; initial-value: 0; }   /* fondu net des photos (voir .day-color) */
:root {
  /* Grille de 12 colonnes sur la largeur utile */
  --gutter: clamp(12px, calc(1.4 * var(--vw)), 20px);
  --dimg: calc(1.15 * (2 * var(--col) + var(--gutter)));   /* vignette du programme : 2 colonnes de la grille + 15 % */
  --col: calc((100vw - 2 * var(--pad) - 11 * var(--gutter)) / 12);
  /* Unité des corps de texte : 1 px jusqu'à 1728 px de large (MacBook 16 pouces), puis proportionnelle à la largeur, plafonnée à 1,5 px.
     Sur grand écran, ou quand on dézoome la page, la typographie garde ainsi sa taille à l'œil au lieu de rapetisser. */
  --u: clamp(1px, .05787vw, 1.5px);
  --vw: 1vw;   /* unité des tailles proportionnelles à l'écran ; figée sur ordinateur sous 1440 px (voir plus bas) */
  --bleu: #30549E;
  --creme: #F6EEE1;
  --rose: #FF41A9;
  --encre: #1d2d55;
  --ligne: rgba(48, 84, 158, .25);
  --f-title: 'AS Amp', 'AS Title', 'Arial Narrow', sans-serif;   /* « & » pris dans Antonio (AS Amp), le reste en Seriguela */
  --f-body: 'AS Body', 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(14px, calc(3.2 * var(--vw)), 46px);
  --ease: cubic-bezier(.7, 0, .2, 1);          /* accélération puis ralentissement */
  --header-h: calc(84 * var(--u));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--creme); color: var(--bleu);
  min-height: 100vh; display: flex; flex-direction: column;   /* pages courtes : le pied de page descend en bas de l'écran, pas de fond crème dessous */
  font: 300 calc(17 * var(--u))/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body > main { flex: 1 0 auto; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { font-family: var(--f-title); font-weight: 600; line-height: .95; margin: 0; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
::selection { background: var(--bleu); color: var(--creme); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--bleu); color: var(--creme); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* Bichromie (filtre SVG défini dans le <body>) */
.bichro-event .gallery img,
.bichro-event .gallery video { filter: url(#bichro); }

.link-arrow { display: inline-flex; gap: .5em; align-items: center; color: var(--rose); font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: '→'; transition: transform .4s var(--ease); }
.link-arrow:hover::after { transform: translateX(6px); }

.btn {
  display: inline-flex; align-items: center; gap: .6em; padding: 1.2em 1.6em .5em;   /* texte recalé au centre : la police a un grand jambage haut */
  background: var(--bleu); color: var(--creme); border-radius: 999px;
  font-weight: 500; letter-spacing: .02em; transition: background .3s, transform .3s var(--ease);
}
.btn:hover { background: var(--rose); transform: translateY(-2px); }

/* ===== En-tête ===== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad);
  transition: background .4s, color .4s, transform .5s var(--ease);
}
/* Au défilement, pas de fond délimité mais un flou progressif façon Apple, de plus en plus fort vers le haut
   (six couches de 0,6 à 17 px, masquées de plus en plus haut, effet atténué), avec un voile crème qui s'épaissit vers le haut : le contenu s'efface en se floutant */
.site-header.scrolled { background: none; }
.hdr-blur { position: absolute; inset: 0 0 -76px; z-index: -1; pointer-events: none; }
.hdr-blur i, .hdr-blur::after { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
/* le voile crème s'épaissit vers le haut jusqu'à 56 % d'opacité au bord : il s'efface en même temps qu'il se floute */
.hdr-blur::after { content: ''; background: linear-gradient(rgba(246, 238, 225, .56), rgba(246, 238, 225, .53) 16%, rgba(246, 238, 225, .45) 30%,
  rgba(246, 238, 225, .32) 45%, rgba(246, 238, 225, .18) 60%, rgba(246, 238, 225, .08) 75%, rgba(246, 238, 225, .02) 88%, rgba(246, 238, 225, 0)); }
.hdr-blur i:nth-child(1) { -webkit-backdrop-filter: blur(.6px); backdrop-filter: blur(.6px); -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.hdr-blur i:nth-child(2) { -webkit-backdrop-filter: blur(1.2px); backdrop-filter: blur(1.2px); -webkit-mask-image: linear-gradient(#000 45%, transparent 92%); mask-image: linear-gradient(#000 45%, transparent 92%); }
.hdr-blur i:nth-child(3) { -webkit-backdrop-filter: blur(2.4px); backdrop-filter: blur(2.4px); -webkit-mask-image: linear-gradient(#000 35%, transparent 80%); mask-image: linear-gradient(#000 35%, transparent 80%); }
.hdr-blur i:nth-child(4) { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); -webkit-mask-image: linear-gradient(#000 25%, transparent 66%); mask-image: linear-gradient(#000 25%, transparent 66%); }
.hdr-blur i:nth-child(5) { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(#000 12%, transparent 52%); mask-image: linear-gradient(#000 12%, transparent 52%); }
.hdr-blur i:nth-child(6) { -webkit-backdrop-filter: blur(17px); backdrop-filter: blur(17px); -webkit-mask-image: linear-gradient(#000 0%, transparent 38%); mask-image: linear-gradient(#000 0%, transparent 38%); }
.site-header.scrolled .hdr-blur i, .site-header.scrolled .hdr-blur::after { opacity: 1; }
.menu-open .site-header .hdr-blur { display: none; }
/* Page événement sur ordinateur : en-tête transparent côté photos, comme avant */
@media (min-width: 961px) { .page-event .hdr-blur { display: none; } }
/* Ordinateur : sous 1440 px de large, les éléments ne rétrécissent plus (titres, textes en Seriguela, boutons, marges) ; ils gardent leur taille à 1440 px */
@media (min-width: 761px) and (max-width: 1439.98px) { :root { --vw: 14.4px; } }
.site-header.hide { transform: translateY(-100%); }
.logo svg { height: calc(62 * var(--u)); width: auto; display: block; transform-origin: left center; transition: transform .6s var(--ease); }
/* Logotype : à l'arrivée, les lettres montent de derrière le pied de chaque ligne */
.logo-type .lg-line > * { transform-box: fill-box; }
.home .site-header .logo-type:not(.lg-done) .lg-line > * { animation: lgRise 1s var(--ease) both; animation-delay: calc(.15s + var(--k) * 45ms); }
@keyframes lgRise { from { transform: translateY(var(--dy)); } to { transform: none; } }
/* Survol (entrée et sortie) : le « a » et son accent poussent le « e » vers le haut comme une flèche ;
   le « e » et l'accent sortent par le haut puis reviennent par le bas */
.logo-type.lg-pop .lg-line .lg-a { animation: lgA 1.15s both; }
.logo-type.lg-pop .lg-line .lg-acc { animation: lgAcc 1.15s both; }
.logo-type.lg-pop .lg-line .lg-e { animation: lgE 1.15s both; }
@keyframes lgA {
  0% { transform: none; animation-timing-function: cubic-bezier(.4, 0, .9, .5); }
  10% { transform: translateY(12px); animation-timing-function: cubic-bezier(.25, .8, .3, 1); }
  30% { transform: translateY(-48px); animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  62% { transform: translateY(5px); animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
  100% { transform: none; }
}
@keyframes lgAcc {
  0% { transform: none; animation-timing-function: cubic-bezier(.4, 0, .9, .5); }
  10% { transform: translateY(12px); animation-timing-function: cubic-bezier(.55, 0, .9, .45); }
  38% { transform: translateY(-340px); }
  38.01% { transform: translateY(var(--dy)); animation-timing-function: cubic-bezier(.15, .75, .25, 1); }
  48% { transform: translateY(var(--dy)); animation-timing-function: cubic-bezier(.15, .75, .25, 1); }
  86%, 100% { transform: none; }
}
@keyframes lgE {
  0%, 11% { transform: none; animation-timing-function: cubic-bezier(.5, 0, .9, .45); }
  40% { transform: translateY(-360px); }
  40.01% { transform: translateY(var(--dy)); animation-timing-function: cubic-bezier(.15, .75, .25, 1); }
  57% { transform: translateY(var(--dy)); animation-timing-function: cubic-bezier(.15, .75, .25, 1); }
  100% { transform: none; }
}
.site-header .logo { position: relative; }
/* Pied de « festival » (ligne 1 du logo) sur le pied des liens du menu : 0,381 = ligne de base du menu sous le centre, en corps du menu ; 2,2 px = ligne de base du logo sous son centre */
@media (min-width: 961px) { .site-header .logo { top: calc(clamp(calc(21 * var(--u)), calc(1.75 * var(--vw)), calc(29 * var(--u))) * .381 - 2.2 * var(--u)); } }
/* Copie rose du logo, superposée : elle se dévoile par le bas au survol, puis le bleu remonte de même à la sortie */
.logo-fill { position: absolute; inset: 0; color: var(--rose); pointer-events: none; clip-path: inset(100% 0 0 0); }
.logo.lg-pink .logo-fill { clip-path: inset(0 0 0 0); transition: clip-path .65s var(--ease); }
.logo.lg-unpink .logo-fill { clip-path: inset(0 0 100% 0); transition: clip-path .65s var(--ease); }
/* Logo réduit de 10 % dès qu'on défile */
.site-header.scrolled .logo svg { transform: scale(.9); }
.logo { color: var(--bleu); }
.nav { display: flex; gap: clamp(18px, calc(2.6 * var(--vw)), 44px); align-items: center; font: 600 clamp(calc(21 * var(--u)), calc(1.75 * var(--vw)), calc(29 * var(--u)))/1 var(--f-title); }
.nav a { position: relative; padding: 4px 0; }
.nav a::after {   /* trait au survol, « Billetterie » comprise (en rose) */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.btn-ticket { color: var(--rose); }
.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 60; }
.burger span { position: absolute; left: 8px; right: 8px; height: 2px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

.menu-overlay {
  position: fixed; inset: 0; z-index: 55; background: var(--bleu); color: var(--creme);
  display: flex; flex-direction: column; justify-content: center; padding: var(--pad);
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);   /* le fond bleu descend du haut */
}
.menu-overlay[hidden] { display: flex; visibility: hidden; }
.menu-open .menu-overlay { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-overlay nav { display: flex; flex-direction: column; gap: .32em; }   /* écart +20 % */
.menu-overlay nav a {
  font: 600 clamp(calc(52 * var(--u)), calc(14 * var(--vw)), calc(120 * var(--u)))/1 var(--f-title); transform: translateY(30px);
  transition: transform .6s var(--ease), color .3s;
}
.menu-overlay nav a:hover, .menu-overlay nav a:active, .menu-overlay nav a.is-on { color: var(--rose); }   /* rose au clic */
.menu-open .menu-overlay nav a { transform: none; }
.menu-open .menu-overlay nav a:nth-child(2) { transition-delay: .06s; }
.menu-open .menu-overlay nav a:nth-child(3) { transition-delay: .12s; }
.menu-open .menu-overlay nav a:nth-child(4) { transition-delay: .18s; }
.menu-open .menu-overlay nav a:nth-child(5) { transition-delay: .24s; }
.menu-open .menu-overlay nav a:nth-child(6) { transition-delay: .30s; }
.round-socials { display: flex; gap: 14px; margin: 0; }
.menu-socials { margin-top: 48px; }
.round-socials a {
  width: 52px; height: 52px; border: 1px solid currentColor; border-radius: 50%;
  display: grid; place-items: center; transition: color .3s, background-color .3s, border-color .3s;
}
.round-socials svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.round-socials .dot { fill: currentColor; stroke: none; }
.round-socials a[aria-label="Facebook"] svg { fill: currentColor; stroke: none; }
.round-socials a:hover, .round-socials a:active { color: var(--rose); border-color: var(--rose); }   /* le contour suit la couleur du survol */
.menu-open .site-header { color: var(--creme); background: transparent; backdrop-filter: none; z-index: 60; }   /* au-dessus du menu ouvert : la croix reste visible */
.menu-open .site-header .logo { color: var(--creme); }

/* ===== Accueil : héro plein écran ===== */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--pad); padding-bottom: clamp(32px, 7vh, 80px);
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(29, 45, 85, .55)); }
.hero.has-media { color: var(--creme); }
.hero-text { position: relative; z-index: 2; }
.hero-title {
  font-size: clamp(calc(64 * var(--u)), calc(20.6 * var(--vw)), calc(400 * var(--u))); line-height: .86; white-space: nowrap; margin-left: -.03em;
}
.hero-title .l { display: inline-block; clip-path: inset(50% 0 50% 0); animation: draw 1.1s var(--ease) forwards; animation-delay: calc(var(--d) + .3s); }
.hero-title .sp { display: inline-block; width: .22em; }
.hero-title .w { display: inline-block; white-space: nowrap; }
@keyframes draw {
  0% { clip-path: inset(50% 0 50% 0); transform: scaleY(.6); }
  100% { clip-path: inset(-10% 0 -10% 0); transform: none; }
}
.hero-sub {
  display: flex; justify-content: space-between; gap: 24px; margin-top: .6em;
  font: 600 clamp(calc(22 * var(--u)), calc(3.1 * var(--vw)), calc(58 * var(--u)))/1 var(--f-title); color: var(--rose);
  animation: fadeUp 1s var(--ease) 1.6s both;
}
.hero.has-media .hero-sub { color: var(--creme); }
/* Le texte monte de derrière la ligne de son pied (aucune transparence) */
@keyframes fadeUp {
  from { transform: translateY(100%); clip-path: inset(-0.5em -0.3em 100% -0.3em); }
  to { transform: none; clip-path: inset(-0.5em -0.3em -0.5em -0.3em); }
}
.hero-scroll {
  position: absolute; z-index: 2; right: var(--pad); top: calc(var(--header-h) + 40px); writing-mode: vertical-rl;
  font-size: calc(13 * var(--u)); letter-spacing: .2em; text-transform: uppercase; animation: fadeUp 1s 2.2s both;
}
.hero-scroll::after { content: ''; display: inline-block; width: 1px; height: 60px; background: currentColor; margin-top: 12px; animation: scrollLine 2s infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ----- Héro « illustration » : titre rose qui s'ouvre autour du personnage ----- */
.hero-illu { height: var(--hero-h, 100svh); min-height: 0; padding: 0; display: block; }
.hero-illu-img {
  position: absolute; left: var(--ix, 30%); top: var(--iy, 10%); z-index: 1;
  width: var(--iw, 30vw); aspect-ratio: 1100 / 1389;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  user-select: none; pointer-events: none;
}
.illu-base { width: 100%; height: auto; }
.book-page { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.book-page path { fill: #fbf8f2; stroke: var(--bleu); stroke-width: 2.5; stroke-linejoin: round; }
/* L'oiseau cligne de l'œil de temps en temps : la paupière (couleur du fond, le blanc de l'oiseau étant transparent) descend puis remonte */
.bird-blink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bird-lid { transform: translateY(-17px); }
.bird-lid rect { fill: var(--creme); }
.bird-lid path { fill: none; stroke: var(--bleu); stroke-width: 3; stroke-linecap: round; }
.bird-blink.blink .bird-lid { animation: birdBlink .3s cubic-bezier(.45, 0, .3, 1); }
@keyframes birdBlink { 45%, 60% { transform: none; } }
.eye { position: absolute; overflow: hidden; }
/* Paupière (mobile) : couleur de la peau, bord bleu, descend puis remonte le temps d'un clignement */
.eye::after { content: ''; position: absolute; inset: -10% -6% 0; background: var(--creme); border-bottom: 1.5px solid var(--bleu); border-radius: 0 0 50% 50% / 0 0 70% 70%; transform: translateY(-105%); }
.eye.blink::after { animation: eyeBlink .28s cubic-bezier(.45, 0, .3, 1); }
@keyframes eyeBlink { 45%, 60% { transform: translateY(6%); } }
.iris { position: absolute; max-width: none; height: auto; transform: translate(-50%, -50%) translate(var(--ex, 0px), var(--ey, 0px)); }
/* Pas de z-index ici : « festival » passe derrière le dessin, « âmes sœurs » devant */
.hero-illu .hero-text { position: absolute; inset: 0; pointer-events: none; z-index: auto; }   /* pas de calque propre : chaque mot se range par rapport au dessin */
.hero-illu .g1 { position: relative; z-index: 2; }
.hero-illu.is-layered .g1 { z-index: 0; }   /* derrière le dessin, une fois les mots écartés */
.hero-illu .g2 { position: relative; z-index: 2; }
.hero-illu .hero-title {
  position: absolute; left: 0; right: 0; top: var(--ty, 40%);
  color: var(--rose); font-size: var(--fs, clamp(calc(56 * var(--u)), 13vw, calc(300 * var(--u)))); margin: 0; white-space: nowrap;
  display: flex; justify-content: center;
}
.hero-illu .title-groups { display: flex; align-items: baseline; }
.hero-illu .g { display: inline-block; transition: transform 1s var(--ease);
  /* ligne imaginaire au pied des lettres : elles montent de derrière elle */
  clip-path: inset(-0.6em -0.15em var(--clipb, 0px) -0.15em); }
.hero-illu.is-open .g1 { transform: translateX(calc(-1 * var(--dx, 16vw))); }
.hero-illu.is-open .g2 { transform: translateX(var(--dx, 16vw)); }
/* Le titre s'écrit : chaque lettre se dévoile de gauche à droite, l'une après l'autre, comme tracée à la plume,
   et monte en même temps de derrière la ligne du pied des lettres */
.hero-illu .hero-title .l { clip-path: inset(-0.4em 100% -0.4em -0.1em); transform: translateY(70%);
  animation: write .2s cubic-bezier(.4, 0, .6, 1) forwards, rise .6s var(--ease) forwards;
  animation-delay: calc(.15s + var(--i, 0) * 55ms); }
@keyframes write { to { clip-path: inset(-0.4em -0.1em -0.4em -0.1em); } }
@keyframes rise { to { transform: none; } }
.hero-dates, .hero-tag {
  position: absolute; margin: 0; color: var(--bleu); font-family: var(--f-title); font-weight: 600; line-height: 1;
  animation: fadeUp .8s var(--ease) 1.1s both;
}
.hero-dates { right: var(--pad); bottom: calc(100% - var(--datesy, 40%)); font-size: calc(var(--fs, 13vw) * .174); font-weight: 400; white-space: nowrap;
  -webkit-text-stroke: .018em currentColor; }   /* Regular légèrement épaissi : pas de graisse entre Regular et Medium */
.hero-tag { left: var(--tagx, var(--pad)); top: var(--tb, 70%); font-size: calc(var(--fs, 13vw) * .174); color: var(--rose); }   /* même corps que les dates */
.hero-tag-ed { left: auto; right: var(--edr, 50%); }   /* « 1re édition » calée à droite, sous le « s » de « âmes » */
.hero-tag2 { right: var(--pad); left: auto; display: flex; flex-direction: column; align-items: flex-end; }   /* sous « sœurs », calé à droite : le lieu, puis « Réserver » */
.hero-tag2 p { margin: 0; }
.hero-book { pointer-events: auto; margin-top: clamp(16px, calc(1.6 * var(--vw)), 28px); color: var(--bleu); }
.hero-illu .hero-sub { display: none; }

/* ===== Accueil : programme (colonne fixe + carrousel) ===== */
.programme { padding: calc(clamp(60px, 10vh, 120px) * 2 / 3) 0 clamp(80px, 14vh, 160px); }   /* sous l'exergue : un tiers de moins */
.programme-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 0 var(--pad); margin-bottom: 20px; }
.programme-head h2 { font-size: clamp(calc(44 * var(--u)), calc(5.6 * var(--vw)), calc(96 * var(--u))); line-height: .8; text-transform: lowercase; }
/* Accueil : rubrique « le festival », avant la programmation ; en face, une phrase de l'édito en corps 20 */
.home-festival { padding: calc(clamp(60px, 10vh, 120px) * 2 / 3) var(--pad) 0 calc(var(--pad) + 2 * var(--dimg) + 2 * var(--gutter)); }   /* commence au droit de la 1re vignette du programme */
.home-festival-quote { font: 600 calc(clamp(calc(27 * var(--u)), calc(3.06 * var(--vw)), calc(56 * var(--u))) - calc(2.67 * var(--u)))/1 var(--f-title); }   /* Seriguela, en grand (2 pt de moins) */
.home-festival-quote p { margin: 0 0 18px; }
.home-festival-quote p::before { content: '«\00a0'; }   /* exergue entre guillemets */
.home-festival-quote p::after { content: '\00a0»'; }
.see-all {
  /* bouton à contour, angles arrondis (comme « pill ») ; au survol, il se remplit de bleu */
  display: inline-flex; align-items: center; gap: 16px; font: 600 clamp(calc(20 * var(--u)), calc(1.7 * var(--vw)), calc(28 * var(--u)))/1 var(--f-title); white-space: nowrap;
  padding: 11px 24px 14px; border: 1px solid var(--bleu); border-radius: 999px;
  transition: color .35s, background-color .35s;
}
.see-all:hover, .see-all:focus-visible { background: var(--bleu); color: var(--creme); border-color: var(--bleu); }
@keyframes underlineIn { from { background-size: 0 1px; } to { background-size: 100% 1px; } }
.circle-arrow {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid currentColor; border-radius: 50%;
  font-family: var(--f-body); font-size: calc(20 * var(--u)); transition: background .3s, color .3s, transform .5s var(--ease);
}

.carousel-nav { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: auto; }
.carousel-nav button {
  width: 48px; height: 48px; border: 1px solid var(--bleu); border-radius: 50%; font-size: calc(20 * var(--u));
  display: grid; place-items: center;
  transition: background .3s, color .3s, border-color .3s, opacity .3s;
}
.carousel-nav button:hover:not(:disabled) { background: var(--bleu); color: var(--creme); border-color: var(--bleu); }
.carousel-nav button:disabled { opacity: .3; cursor: default; }

@keyframes panelIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(-10% -10% -10% -10%); } }
.prog-credits { margin: 0 0 var(--gap, clamp(24px, 5vh, 56px)); font-size: calc(14 * var(--u)); line-height: 1.25; }
.prog-credits div { margin-bottom: 14px; }
.prog-credits dt, .prog-credits dd { line-height: 1.25; }
.prog-credits dt { display: flex; align-items: baseline; gap: 10px; font-weight: 600; }   /* le trait se pose sur la ligne de base */
.prog-credits dt::after { content: ''; flex: 1; height: 1px; background: var(--bleu); transform-origin: left; }

@keyframes lineIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.prog-credits dd { margin: 1px 0 0; font-weight: 300; }

/* Programme : pour chaque événement, le texte (largeur de 2 photos) et à côté la rangée des photos des intervenants en bichromie,
   qui file jusqu'au bord droit ; si elle déborde, flèches et glisser-déposer */

.day-event { display: grid; grid-template-columns: calc(var(--pad) + 2 * var(--dimg) + 2 * var(--gutter)) minmax(0, 1fr); margin-top: clamp(58px, 9.6vh, 120px); }
.days > .day-event:first-child { margin-top: calc(clamp(58px, 9.6vh, 120px) / 2); }   /* premier spectacle deux fois plus près du titre */
.day-text { position: relative; padding-left: var(--pad); padding-right: var(--gutter); display: flex; flex-direction: column; }   /* la distribution descend au pied des photos */
.day-date { display: flex; flex-wrap: wrap; column-gap: .4em; margin: 0; font: 600 clamp(calc(23 * var(--u)), calc(2.54 * var(--vw)), calc(44 * var(--u)))/1 var(--f-title); color: var(--rose); }
.day-title { font: 600 clamp(calc(36 * var(--u)), calc(4.37 * var(--vw)), calc(76 * var(--u)))/.92 var(--f-title); color: var(--rose); margin: -.02em 0 clamp(20px, 3vh, 32px); }
.day-credits { margin: auto 0 -.4em; }   /* pied des lettres de la dernière ligne sur le pied des photos */
.day-credits div:last-child { margin-bottom: 0; }
.day-nav { position: absolute; top: 0; right: var(--gutter); }   /* en haut, juste à gauche de la première photo */
.day-nav[hidden] { display: none; }
.day-text:has(.day-nav:not([hidden])) .day-date { padding-right: 116px; }   /* la date ne passe pas sous les flèches */
.day-photos { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; align-self: end;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; user-select: none; }
.day-photos::-webkit-scrollbar { display: none; }
.day-photos.dragging { scroll-snap-type: none; }
.day-photos li { flex: 0 0 var(--dimg); aspect-ratio: 3 / 4; background: var(--bleu); position: relative; overflow: hidden; }
.day-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform 1.2s var(--ease); pointer-events: none; }
/* .day-bw : bichromie précalculée (bichro_src), sans filtre SVG, pour rester nette pendant l'agrandissement */
/* La version couleur, posée sur la bichromie, apparaît en fondu long et progressif ; toutes les photos du spectacle ensemble */
/* Fondu porté par la variable --fade (déclarée plus haut) : animée par le navigateur et non par la carte graphique,
   elle garde l'image nette pendant tout le fondu (un fondu d'« opacity » classique la floute dans Chrome) */
.day-photos .day-color { opacity: var(--fade); transition: transform 1.6s var(--ease), --fade 1.8s cubic-bezier(.25, .1, .25, 1); }
.day-event:hover .day-color { --fade: 1; }
/* Tout le bloc (texte et photos) est un seul lien vers le spectacle */
.day-event { cursor: pointer; }
.day-title a { transition: color .35s var(--ease); }
.day-event:hover .day-title a { color: var(--bleu); }
@media (min-width: 761px) {
  .day-photos .reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path .75s var(--ease) calc(var(--i, 0) * 90ms); }
  .day-photos .reveal-img.in { clip-path: inset(0 0 0 0); }
  .no-anim .day-photos .reveal-img { clip-path: none; }
}
/* Proposition « affiche » pour le premier jour : grand numéro du jour, titre en très grand, distribution sur deux colonnes,
   photos en rythme décalé comme des notes sur une portée (une grande, puis quatre petites à des hauteurs différentes) */

/* Même effet que le programme : au survol du bloc, toutes les photos s'agrandissent et passent en couleur ensemble */

/* Ordinateur : au survol du spectacle, toutes ses photos passent en couleur ; dès que la couleur commence à apparaître (après 0,2 s),
   toutes ses vignettes grandissent ensemble (+ 6 %). On agrandit le cadre de l'image et non l'image elle-même (pas de « transform ») :
   elle est redessinée nette à chaque instant. À la sortie : les vignettes reprennent leur taille, puis repassent en bichromie. */
@media (min-width: 761px) {
  .day-photos img { inset: auto; top: 0; left: 0; width: 100%; height: 100%; max-width: none;
    transition: top 1s var(--ease), left 1s var(--ease), width 1s var(--ease), height 1s var(--ease), transform 1.6s var(--ease); }
  .day-photos .day-color {
    transition: top 1s var(--ease), left 1s var(--ease), width 1s var(--ease), height 1s var(--ease), transform 1.6s var(--ease), --fade 1.8s cubic-bezier(.25, .1, .25, 1) .6s; }
  .day-event:hover .day-photos img { top: -3%; left: -3%; width: 106%; height: 106%;
    transition: top 1s var(--ease) .2s, left 1s var(--ease) .2s, width 1s var(--ease) .2s, height 1s var(--ease) .2s, transform 1.6s var(--ease); }
  .day-event:hover .day-photos .day-color {
    transition: top 1s var(--ease) .2s, left 1s var(--ease) .2s, width 1s var(--ease) .2s, height 1s var(--ease) .2s, transform 1.6s var(--ease), --fade 1.2s cubic-bezier(.25, .1, .25, 1); }
}

/* Proposition 2 « sommaire » : une ligne par spectacle (numéro du jour, date, titre, intervenants) ;
   au survol, la ligne se décale et ses photos, en éventail, suivent la souris */
.liste { margin: clamp(100px, 16vh, 200px) var(--pad) 0; }
.liste-head { padding: 0; margin-bottom: clamp(24px, 4vh, 44px); }
/* Une grille commune à toutes les lignes (subgrid) : la colonne des dates prend la largeur de la plus longue, les infos restent serrées */
.liste-rows { list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: max-content minmax(0, 1fr) calc(3 * var(--col) + 2 * var(--gutter)); column-gap: calc(2 * var(--gutter)); }
.liste-rows li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; border-top: 1px solid var(--ligne); }
.liste-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: last baseline;   /* tout se cale sur le pied du numéro */
  padding: clamp(14px, 2.2vh, 26px) 0; color: var(--bleu); text-decoration: none; }
.liste-date { justify-self: end; display: flex; align-items: last baseline;   /* calée à droite : numéros et mois alignés d'une ligne à l'autre */
  gap: .3em; color: var(--rose); font: 600 clamp(calc(18 * var(--u)), calc(1.61 * var(--vw)), calc(30 * var(--u)))/1.05 var(--f-title); }
.liste-num { font-size: clamp(calc(43 * var(--u)), calc(5.04 * var(--vw)), calc(94 * var(--u))); line-height: .8; }
.liste-when { display: flex; flex-direction: column; }   /* l'heure, en dessous, sur le pied du numéro */
.liste-title { font: 600 clamp(calc(32 * var(--u)), calc(4.14 * var(--vw)), calc(77 * var(--u)))/.9 var(--f-title); color: var(--rose); transition: transform .8s var(--ease), color .5s; }
.liste-people { font-size: calc(14 * var(--u)); line-height: 1.35; text-align: right; }
.nw { white-space: nowrap; }   /* jamais de prénom séparé du nom en bout de ligne */
.liste-row:hover .liste-title { color: var(--bleu); }
/* Au survol, la ligne s'ouvre en douceur sur la rangée des photos du spectacle, collées, alignées sous le titre,
   dévoilées de haut en bas l'une après l'autre */
.liste-pics { grid-column: 2 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease) .08s; }
.liste-pics > span { min-height: 0; overflow: hidden; display: flex; }
.liste-pics img { flex: 0 0 auto; width: clamp(96px, calc(8.4 * var(--vw)), 160px); aspect-ratio: 3 / 4; object-fit: cover; object-position: center 25%;
  margin-top: clamp(14px, 2vh, 22px); clip-path: inset(0 0 100% 0); transition: clip-path .35s var(--ease); }
.liste-row:hover .liste-pics { grid-template-rows: 1fr; }
.liste-row:hover .liste-pics img { clip-path: inset(0); transition: clip-path .6s var(--ease) calc(.25s + var(--k, 0) * 70ms); }
@media (max-width: 760px) {
  .liste-rows { grid-template-columns: 1fr; }
  .liste-row { row-gap: 6px; align-items: start; }
  .liste-people { text-align: left; }
  .liste-pics { display: none; }
}

@media (max-width: 760px) {
  .days { --dimg: calc(62 * var(--vw)); }
  .home-festival { padding-left: var(--pad); }
  .day-event { grid-template-columns: 1fr; }
  .day-text { padding-right: var(--pad); }
  .day-photos { padding-left: var(--pad); margin-top: 24px; }   /* pas de marge à droite : la dernière photo touche le bord */
  .day-nav { position: static; margin-top: 8px; }
}

/* Au survol, la photo passe en couleur (la version bichrome s'efface au-dessus de la version couleur) */

/* Curseur du site : petit disque rose, qui devient l'anneau « voir » au survol des vignettes */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor :is(input, textarea, select) { cursor: auto !important; }
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; opacity: 0; transition: opacity .3s; will-change: transform; }
.cursor.on { opacity: 1; }
.cursor-ring {
  position: absolute; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--rose); background: var(--rose); color: transparent;
  font: 600 calc(12 * var(--u))/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
  transform: scale(.1); transition: transform .5s var(--ease), background-color .35s, color .25s;
}
.cursor.voir .cursor-ring { transform: scale(1.15); background: transparent; color: var(--rose); }   /* anneau un peu plus grand sur les photos */
.cursor.voir.down .cursor-ring { transform: scale(1); }
@media (hover: none) { .cursor { display: none; } }

/* ===== Damier (page programmation) et vignettes à survol ===== */
.programmation { padding: calc(var(--header-h) + clamp(40px, 8vh, 100px)) 0 clamp(60px, 10vh, 120px); }
.programmation-head { padding: 0 var(--pad) clamp(32px, 6vh, 64px); }
.programmation-head h1 { font-size: clamp(calc(50 * var(--u)), calc(7.2 * var(--vw)), calc(135 * var(--u))); line-height: .8; }   /* interligne serré, sans que les lettres hautes (f, l) se touchent */
.programmation-meta { color: var(--rose); font: 600 clamp(calc(24 * var(--u)), calc(2.16 * var(--vw)), calc(36 * var(--u)))/1 var(--f-title); margin-top: clamp(24px, calc(2.4 * var(--vw)), 40px); }
/* Programmation : un spectacle par page. Titre et texte à gauche, tableau d'informations à droite calé sur le texte,
   photos en couleur d'un bord à l'autre, puis la frise de tous les spectacles */
.prog-ev { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding: 0 var(--pad); }
.prog-ev-head, .prog-ev-text { grid-column: 1 / 8; }
.prog-ev-date { margin: 0; font: 600 clamp(calc(24 * var(--u)), calc(2 * var(--vw)), calc(36 * var(--u)))/1 var(--f-title); color: var(--rose); }
.prog-ev-date span { margin-left: 0; }   /* « date – heure » : espaces simples autour du tiret */
.day-date .dash { margin: 0 -.2em; }   /* tiret plus près de la date et de l'heure */
.prog-ev-title { font: 600 clamp(calc(42.5 * var(--u)), calc(5.1 * var(--vw)), calc(95 * var(--u)))/.88 var(--f-title); color: var(--rose); margin: -.03em 0 clamp(24px, 4vh, 44px); }   /* tout près de la date */
.prog-ev-tagline { margin: 0 0 .7em; font: 600 clamp(calc(28 * var(--u)), calc(2.4 * var(--vw)), calc(44 * var(--u)))/1 var(--f-title); color: var(--bleu); }
.prog-ev-body { max-width: 640px; }
.prog-ev-body p { margin: 0 0 .9em; font-size: calc(15 * var(--u)); line-height: 1.38; }
.prog-ev-pass { margin-left: 14px; }
.pass-cta { margin: clamp(40px, 7vh, 72px) 0 0; }   /* pass festival sous le calendrier */
.prog-ev-ticket { margin-top: 23px; font-size: calc(clamp(calc(20 * var(--u)), calc(1.7 * var(--vw)), calc(28 * var(--u))) + calc(2.67 * var(--u))); }   /* lien « Voir toute la programmation » + 2 pt */
/* Tableau d'informations à droite, calé sur le début de la 4e photo de Cœur noir (60 % de la largeur de l'écran) */
.prog-ev-table { grid-column: 8 / -1; --shift: calc(60vw - var(--pad) - 7 * (var(--col) + var(--gutter))); margin-left: var(--shift); width: calc(100% - var(--shift)); grid-row: 2; border-collapse: collapse; font-size: calc(15 * var(--u)); line-height: 1.3; }
.prog-ev-table th, .prog-ev-table td { padding: 12.5px 0; border-top: 1px solid var(--ligne); vertical-align: top; text-align: left; }
.prog-ev-table tr:first-child th, .prog-ev-table tr:first-child td { border-top: 0; padding-top: 0; }   /* première ligne calée sur la première ligne du texte */
.prog-ev-table tr:last-child th, .prog-ev-table tr:last-child td { border-bottom: 1px solid var(--ligne); }
.prog-ev-table th { width: 38%; padding-right: var(--gutter); font-weight: 600; }
.prog-ev-table a { border-bottom: 1px solid currentColor; transition: color .3s; }
.prog-ev-table a:hover { color: var(--rose); }
/* Photos en couleur, en une rangée d'un bord à l'autre de l'écran ; au survol, la photo s'agrandit doucement et le nom
   de la personne monte du bas avec son rôle, sur un bandeau crème */
.prog-ev-photos { list-style: none; margin: clamp(56px, 9vh, 100px) 0 0; padding: 0; display: flex; flex-wrap: wrap; }   /* --k photos par ligne (5 au plus) */
.prog-ev-photos li { flex: 1 0 calc(100% / var(--k)); min-width: 0; height: calc(100vw / 5 * 4 / 3);   /* même hauteur pour tous les spectacles (celle d'une rangée de 5) */ position: relative; overflow: hidden; background: var(--bleu); }
.prog-ev-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform 1.2s var(--ease); }
/* bottom −1 px : aucun liseré de photo ne reste visible sous le bandeau */
.prog-ev-who { position: absolute; left: 0; right: 0; bottom: -1px; margin: 0; padding: 14px 16px 17px; background: var(--creme);
  display: flex; flex-direction: column; gap: 4px; transform: translateY(101%); transition: transform .6s var(--ease); }
.prog-ev-who b { font: 600 calc(clamp(calc(20 * var(--u)), calc(1.5 * var(--vw)), calc(28 * var(--u))) + calc(5.33 * var(--u)))/1.15 var(--f-title); color: var(--bleu); transform: translateY(14px); transition: transform .7s var(--ease) .05s; }
.prog-ev-who span { font-size: calc(14 * var(--u)); font-weight: 600; line-height: 1.38; color: var(--rose); transform: translateY(14px); transition: transform .7s var(--ease) .1s; }
.prog-ev-photos li:hover .prog-ev-who, .prog-ev-photos li:hover .prog-ev-who > * { transform: none; }
@media (min-width: 761px) {
  .prog-ev-photos .reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path .75s var(--ease) calc(var(--i, 0) * 80ms); }
  .prog-ev-photos .reveal-img.in { clip-path: inset(0 0 0 0); }
  .no-anim .prog-ev-photos .reveal-img { clip-path: none; }
}
/* Frise chronologique, sobre : un trait bleu fin relie les spectacles, un trait vertical marque chaque jour, un petit point
   chaque spectacle (plein et rose pour celui de la page) ; au survol, seul le titre passe en rose */
.tl-head { display: none; }   /* titre de la frise : sur mobile seulement */
.timeline { position: relative; height: 210px; margin: clamp(72px, 11vh, 130px) var(--pad) 0; }
.tl-line { position: absolute; left: 0; right: 0; top: 64px; height: 1px; background: var(--bleu); }
.tl-day { position: absolute; left: var(--x); top: 0; height: 76px; padding-left: 10px; font: 600 clamp(calc(18 * var(--u)), calc(1.4 * var(--vw)), calc(24 * var(--u)))/1 var(--f-title); }
.tl-day::before { content: ''; position: absolute; left: 0; top: .34em; bottom: 0; width: 1px; background: var(--bleu); }   /* part de l'œil des lettres du jour */
.tl-item { position: absolute; left: var(--x); top: 64px; width: calc(100% / var(--slots, 7) - var(--gutter)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 5.5px; padding-top: 24px; text-align: center; }
.tl-dot { position: absolute; z-index: 1; top: 0; left: 50%; width: 9px; height: 9px; margin: -4px 0 0 -4.5px; border-radius: 50%; background: var(--bleu); transition: transform .5s var(--ease); }
/* Au survol : le point grossit en douceur */
.tl-item:hover .tl-dot { transform: scale(1.8); }
.tl-loupe .tl-dot, .tl-loupe .tl-item:hover .tl-dot { transform: scale(var(--s, 1)); transition: transform .35s cubic-bezier(.2, .7, .3, 1); }   /* loupe (main.js) : suit la souris */
.tl-time { font: 600 clamp(calc(22 * var(--u)), calc(1.75 * var(--vw)), calc(30 * var(--u)))/1 var(--f-title); color: var(--rose); }
.tl-title { font: 600 calc(clamp(calc(26 * var(--u)), calc(2.2 * var(--vw)), calc(38 * var(--u))) - calc(2.67 * var(--u)))/.95 var(--f-title); transition: color .35s var(--ease); }
.tl-item[aria-current] .tl-dot { background: var(--rose); }
.tl-item[aria-current] .tl-title, .tl-item:hover .tl-title { color: var(--rose); }
@media (max-width: 760px) {
  /* Frise : la même que sur ordinateur, plus large que l'écran, qui défile au doigt horizontalement */
  .tl-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tl-scroll::-webkit-scrollbar { display: none; }
  .timeline { width: 1180px; height: 250px; }
  .tl-head { display: block; margin: clamp(72px, 11vh, 130px) var(--pad) 0; }   /* comme le titre « la programmation » de la page */
  .tl-scroll .timeline { margin-top: 28px; }
  .tl-day { font-size: calc(28 * var(--u)); height: 90px; }
  .tl-line { top: 72px; }
  .tl-item { top: 72px; width: calc(100% / var(--slots, 7) - 20px); gap: 7px; }
  .tl-dot { width: 11px; height: 11px; margin: -5px 0 0 -5.5px; }
  .tl-time { font-size: calc(27 * var(--u)); }
  .tl-title { font-size: calc(30 * var(--u)); }
  .prog-ev-photos li { flex: 0 0 50%; height: auto; aspect-ratio: 3 / 4; }
  .prog-ev-photos li:last-child:nth-child(odd) { flex-basis: 100%; aspect-ratio: 4 / 3; }   /* nombre impair : la dernière sur toute la largeur */
}
@media (max-width: 1000px) {
  .prog-ev-head, .prog-ev-text, .prog-ev-table { grid-column: 1 / -1; }
  .prog-ev-table { grid-row: auto; margin: 40px 0 0; width: 100%; }
}

/* ===== Animations d'apparition ===== */
[data-reveal] { transform: translateY(40px); clip-path: inset(100% -20% -20% -20%); transition: clip-path .9s var(--ease), transform 1s var(--ease); }
[data-reveal].in { transform: none; clip-path: inset(-20% -20% -20% -20%); }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
.reveal-img { overflow: hidden; }
.reveal-img img, .reveal-img video { transform: scale(1.12); transition: transform 1.6s var(--ease); }
.reveal-img.in img, .reveal-img.in video { transform: none; }
/* Photos de la page événement : dévoilées de haut en bas, l'une après l'autre (comme le carrousel de l'accueil) */
.gallery .reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.gallery .reveal-img.in { clip-path: inset(0 0 0 0); }
.no-anim .gallery .reveal-img { clip-path: none; }

/* ===== Page événement (inspirée des projets silium) ===== */
/* Écran coupé en deux : photos bord à bord à gauche (jusque sous l'en-tête), texte à droite */
.event { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
.gallery { display: flex; flex-direction: column; gap: 0; }
.gallery figure { margin: 0; overflow: hidden; background: var(--bleu); }
.gallery img, .gallery video { display: block; width: 100%; height: auto; }
.event-text {
  position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; scrollbar-width: thin;
  padding: calc(var(--header-h) + 24px) var(--pad) 48px clamp(24px, calc(4 * var(--vw)), 72px);
}
/* En-tête de la page événement : logo rose sur les photos, pas de fond crème côté photos */
.page-event .logo { color: var(--rose); }
.page-event .site-header.scrolled { background: linear-gradient(90deg, transparent 50%, rgba(246, 238, 225, .94) 50%); backdrop-filter: none; }
.event-back { font-size: calc(15 * var(--u)); display: inline-block; margin-bottom: 28px; opacity: .8; }
.event-back:hover { color: var(--rose); opacity: 1; }
.event-text h1 { font-size: clamp(calc(52 * var(--u)), calc(6.4 * var(--vw)), calc(112 * var(--u))); }
.event-when {
  display: flex; justify-content: space-between; color: var(--rose); font: 600 clamp(calc(22 * var(--u)), calc(2 * var(--vw)), calc(32 * var(--u)))/1 var(--f-title);
  margin: 18px 0 26px; padding-bottom: 14px; position: relative;
}
/* Trait sous la date : se dessine de gauche à droite */
.event-when::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bleu);
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) .35s;
}
.event-when.in::after, .no-anim .event-when::after { transform: none; }
.credits { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0 0 28px; font-size: calc(15 * var(--u)); }
.credits dt { font-weight: 600; font-family: var(--f-body); }
.credits dd { margin: 0; text-align: right; }
.tagline { font-weight: 600; font-size: calc(19 * var(--u)); line-height: 1.35; margin-bottom: 14px; }
.event-body { font-size: calc(17 * var(--u)); }
.event-cta { margin: 32px 0 40px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.event-pager { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--ligne); padding-top: 20px; font-size: calc(15 * var(--u)); }
.event-pager a:hover { color: var(--rose); }
.event-pager b { display: block; font: 600 calc(26 * var(--u))/1 var(--f-title); margin-top: 4px; }

/* ===== Pages festival et contact : même famille que la programmation =====
   Titre sur deux lignes au premier mot calé sur un filet bleu, sous-titre rose, grille de 12 colonnes,
   tableaux à filets fins, boutons à contour bleu et angles arrondis */
.page-sheet { padding: calc(var(--header-h) + clamp(40px, 8vh, 100px)) 0 clamp(40px, 8vh, 100px); }
.sheet-head { padding: 0 var(--pad) clamp(48px, 9vh, 110px); }
.sheet-head h1 { font-size: clamp(calc(50 * var(--u)), calc(7.2 * var(--vw)), calc(135 * var(--u))); line-height: .63; }
.sheet-head h1 span { display: inline-flex; align-items: center; gap: .3em; width: 100%; }
.sheet-head h1 span::after { content: ''; flex: 1; height: 1px; background: var(--bleu); transform: translateY(.1em); }   /* filet qui prolonge « le » jusqu'au bord */
.sheet-meta { color: var(--rose); font: 600 clamp(calc(24 * var(--u)), calc(2.16 * var(--vw)), calc(36 * var(--u)))/1 var(--f-title); margin: clamp(24px, calc(2.4 * var(--vw)), 40px) 0 0; }
.sheet-meta a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.sheet-meta a:hover { background-size: 100% 1px; }
.sheet-meta a.pill { background: none; color: var(--bleu); }   /* bouton « Contacter » : bleu comme les autres, sans soulignement */
.sheet-meta a.pill:hover, .sheet-meta a.pill:focus-visible { background: var(--bleu); color: var(--creme); }
.sheet-label { margin: 0 0 clamp(20px, 3vh, 32px); font: 600 clamp(calc(24 * var(--u)), calc(2.16 * var(--vw)), calc(36 * var(--u)))/1 var(--f-title); color: var(--rose); }
.sheet-pad { padding: 0 var(--pad); }
.sheet-table { border-collapse: collapse; width: 100%; font-size: calc(15 * var(--u)); line-height: 1.35; }
.sheet-table th, .sheet-table td { padding: 12.5px 0; border-top: 1px solid var(--ligne); vertical-align: top; text-align: left; }
.sheet-table th { width: 38%; padding-right: 16px; font-weight: 600; }
.sheet-table tr:first-child th, .sheet-table tr:first-child td { border-top: 0; padding-top: 0; }
.sheet-table tr:last-child th, .sheet-table tr:last-child td { border-bottom: 1px solid var(--ligne); }
.sheet-table a:hover { color: var(--rose); }
.pill {
  display: inline-block; padding: 11px 24px 14px; border: 1px solid var(--bleu); border-radius: 999px;
  font: 600 clamp(calc(22 * var(--u)), calc(1.7 * var(--vw)), calc(28 * var(--u)))/1 var(--f-title); transition: color .35s, background-color .35s, border-color .35s;
}
.pill:hover, .pill:focus-visible { background: var(--bleu); color: var(--creme); border-color: var(--bleu); }
.sheet-next { display: flex; flex-wrap: wrap; gap: 14px; padding: clamp(60px, 11vh, 130px) var(--pad) 0; }

/* Festival : la phrase de l'édito en grand, puis l'édito (chapeau en Seriguela) et les repères du festival */
.fest-quote { margin: 0 0 clamp(64px, 12vh, 140px); padding: 0 var(--pad); }
.fest-quote p { margin: 0; max-width: 19em; font: 600 clamp(calc(34 * var(--u)), calc(4.1 * var(--vw)), calc(76 * var(--u)))/.98 var(--f-title); color: var(--rose); }
.fest-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: 0 var(--pad); align-items: start; }
.fest-edito { grid-column: 1 / 8; }
.fest-lead { margin: 0 0 1.1em; max-width: 21em; font: 600 clamp(calc(24 * var(--u)), calc(2 * var(--vw)), calc(36 * var(--u)))/1.08 var(--f-title); }
.fest-text { max-width: 640px; }
.fest-text p { margin: 0 0 .9em; font-size: calc(17 * var(--u)); line-height: 1.5; }
.signature { margin: 1.6em 0 0; font: 600 clamp(calc(24 * var(--u)), calc(1.9 * var(--vw)), calc(32 * var(--u)))/1 var(--f-title); }
.page-festival .signature { margin-top: calc(1.6em * 2 / 3); }   /* sous l'édito, un tiers plus près du texte */
.page-festival .fest-quote p::before { content: '«\00a0'; }   /* exergue entre guillemets */
/* Arrivée sur la page : les deux morceaux de l'édito sont collés, puis ils s'écartent et l'exergue se dévoile en montant (main.js : is-open) */
.page-festival .fest-quote { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 1.2s var(--ease), margin 1.2s var(--ease); }
.page-festival .fest-quote p { min-height: 0; overflow: hidden; }
.page-festival .fest-quote:not(.is-open) { grid-template-rows: 0fr; margin-top: 0; margin-bottom: 0; }
.page-festival .fest-quote p { transition: transform 1.2s var(--ease) .15s; }
.page-festival .fest-quote:not(.is-open) p { transform: translateY(40px); }
.page-festival .fest-quote p::after { content: '\00a0»'; }
.signature span { display: block; margin-top: 6px; font: 600 calc(15 * var(--u))/1.3 var(--f-body); color: var(--rose); }   /* « Directrice artistique » en Guillon Demi */
.fest-facts { grid-column: 9 / -1; margin-top: calc(clamp(24px, calc(2.16 * var(--vw)), 36px) + clamp(20px, 3vh, 32px)); }   /* calé sur le début du chapeau */

/* Contact : l'équipe en fiches sur trois colonnes, puis le lieu */

.team-role { margin: 0 0 12px !important; font: 600 calc(15 * var(--u))/1.3 var(--f-body); color: var(--rose); }   /* sous le nom */
.team-name { margin: 10px 0 14px !important; font: 600 clamp(calc(32 * var(--u)), calc(2.8 * var(--vw)), calc(50 * var(--u)))/.92 var(--f-title); }
.team-people { margin: 6px 0 12px !important; font-size: calc(16 * var(--u)); line-height: 1.3; font-weight: 600; }   /* les personnes, sous la structure */
.team-links { display: flex; flex-direction: column; gap: 2px; font-size: calc(15 * var(--u)); }
.team-links a { align-self: flex-start; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.team-links a:hover { color: var(--rose); background-size: 100% 1px; }
.team-links .team-mail { margin: 4px 0 6px; background: none; }   /* bouton « Contacter » (page contact) : pilule, sans soulignement */
.team-links .team-mail:hover, .team-links .team-mail:focus-visible { background: var(--bleu); color: var(--creme); }

.place-address { grid-column: 1 / 8; margin: 0; font: 600 clamp(calc(44 * var(--u)), calc(5.2 * var(--vw)), calc(96 * var(--u)))/.9 var(--f-title); }
.place-lines { display: block; margin-top: .25em; font-size: .5em; line-height: 1.1; }

/* ===== Pied de page (inspiré d'epok) ===== */
.site-footer { background: var(--bleu); color: var(--creme); padding: clamp(28px, 4.5vh, 48px) var(--pad) 24px; margin-top: clamp(60px, 10vh, 120px); flex-shrink: 0; }
/* Pied de page : le logotype du festival, quatre colonnes de petits textes sur la grille, et un bouton rond pour remonter */
.footer-main { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.footer-logo { grid-column: 1 / 4; color: var(--creme); transition: color .4s; }
.footer-logo:hover { color: var(--rose); }
.footer-logo svg { display: block; width: min(100%, 154px); height: auto; }
/* Le logotype du pied monte comme celui du haut quand le pied entre dans l'écran, et a la même animation au survol */
.footer-logo .logo-type.ft-wait .lg-line > * { transform: translateY(var(--dy)); }
.footer-logo .logo-type.ft-in:not(.lg-done) .lg-line > * { animation: lgRise 1s var(--ease) both; animation-delay: calc(var(--k) * 45ms); }
.footer-info { grid-column: 4 / 12; display: grid; grid-template-columns: .8fr 1.35fr .9fr 1.3fr; column-gap: calc(3 * var(--vw)); font-size: calc(15 * var(--u)); font-weight: 600; line-height: 1.45; }
.footer-info h2 { margin: 0 0 14px; font: 600 calc(30 * var(--u))/1 var(--f-title); }
.footer-info p { margin: 0; }
.footer-info a { border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.footer-info a:hover { border-color: currentColor; color: var(--rose); }
.footer-info a[data-m] { white-space: nowrap; }
.footer-top { grid-column: 12; justify-self: end; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(246, 238, 225, .6); color: var(--creme); transition: background .4s var(--ease), border-color .4s, color .4s; }
.footer-top svg { width: 22px; height: 22px; transition: transform .5s var(--ease); }
.footer-top:hover { background: var(--rose); border-color: var(--rose); }
.footer-top:hover svg { transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: clamp(48px, 8vh, 88px); padding-top: 18px;
  border-top: 1px solid rgba(246, 238, 225, .25); font-size: calc(13 * var(--u)); font-weight: 600; }
.footer-socials { gap: 12px; }
.footer-socials a { width: 44px; height: 44px; border-color: rgba(246, 238, 225, .6); }   /* même contour que la flèche « haut de page » */
.footer-socials a:hover { border-color: var(--rose); }
.footer-socials svg { width: 20px; height: 20px; }
.footer-bottom span a { transition: color .3s; }
.footer-bottom a:hover { color: var(--rose); }

/* Page introuvable : un « 404 » géant en rose, une phrase drôle en grand, puis de quoi repartir */
.page-404-main { padding: calc(var(--header-h) + clamp(40px, 8vh, 100px)) var(--pad) clamp(40px, 8vh, 100px); }
.e404-num { margin: 0; font: 600 clamp(calc(150 * var(--u)), calc(24 * var(--vw)), calc(400 * var(--u)))/.78 var(--f-title); letter-spacing: -.01em; color: var(--rose); }
.e404-phrase { max-width: 14em; margin: clamp(24px, calc(2.4 * var(--vw)), 40px) 0 0; font: 600 clamp(calc(40 * var(--u)), calc(5 * var(--vw)), calc(86 * var(--u)))/.95 var(--f-title); color: var(--bleu); text-wrap: balance; }
.e404-text { margin: clamp(20px, 3vh, 32px) 0 0; font-size: calc(18 * var(--u)); }
.e404-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: clamp(28px, 4vh, 44px) 0 0; }
@media (max-width: 760px) {
  .e404-num { font-size: calc(150 * var(--u)); }
  .e404-phrase { font-size: calc(40 * var(--u)); }
  .e404-actions .pill { flex: 1 1 100%; text-align: center; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav { display: none; }
  .burger { display: block; }
  .event { grid-template-columns: 1fr; }
  .event-text { position: static; max-height: none; overflow: visible; padding: 32px var(--pad) 48px; }
  .gallery { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gallery figure { flex: 0 0 88%; scroll-snap-align: start; }
  .page-event .site-header.scrolled { background: none; }
  .page-event .site-header.scrolled .logo { color: var(--bleu); }
  .gallery img, .gallery video { height: 62vh; object-fit: cover; }
  .footer-logo { grid-column: 1 / 10; }
  .footer-info { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; margin-top: 40px; }
  /* Festival et contact : une seule colonne ; l'équipe sur deux */
  .fest-edito, .fest-facts { grid-column: 1 / -1; }
  .fest-facts { margin-top: clamp(48px, 8vh, 80px); }
  
  .place-address { grid-column: 1 / -1; justify-self: start; }
  
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  body { font-size: calc(16 * var(--u)); }
  .logo svg { height: 58px; }
  .hero-title { white-space: normal; font-size: clamp(calc(64 * var(--u)), calc(44 * var(--vw)), calc(250 * var(--u))); line-height: .8; }
  .hero-title .w { display: block; }
  .hero-title .sp { display: none; }
  .hero-sub { font-size: calc(22 * var(--u)); }
  .hero-scroll { display: none; }
  .hero-illu { height: var(--hero-h, 100svh); }
  .hero-illu-img { left: var(--ix, 0); top: var(--iy, 30%); }
  .hero-illu .hero-title { top: var(--ty, 70px); font-size: var(--fs, calc(23 * var(--vw))); }
  .hero-illu .title-groups { flex-direction: column; align-items: center; }
  .hero-illu .title-groups > .sp { display: none; }
  .hero-illu .hero-title .w { display: inline-block; }
  .hero-illu .g2 .sp { display: inline-block; }
  .hero-illu.is-layered .g1 { z-index: 2; }
  .hero-illu .g2 { transform: translateY(var(--c2, 0px)); }
  .hero-illu.is-open .g1, .hero-illu.is-open .g2 { transform: translateY(var(--dx, 0px)); }
  /* Le dessin apparaît au milieu pendant que les lignes s'écartent */
  .hero-illu .hero-illu-img { animation: none; opacity: 0; scale: .9; transition: opacity 1s var(--ease), scale 1.2s var(--ease); }
  .hero-illu.is-open .hero-illu-img { opacity: 1; scale: 1; }
  .hero-dates, .hero-tag { display: none; }
  .hero-illu .hero-sub { display: none; }
  /* Sous « âmes sœurs », calé sur sa largeur : dates en bleu | thème en rose, puis lieu en bleu | « 1re édition » en rose */
  .hero-illu .hero-info { display: block; position: absolute; left: var(--gx, var(--pad)); width: var(--gw, auto); top: var(--sy, 85%);
    color: var(--bleu); font: 600 var(--hif, calc(30 * var(--u)))/1.12 var(--f-title); }
  .hero-info p { display: flex; justify-content: space-between; gap: 1em; margin: 0; white-space: nowrap;
    animation: fadeUp .8s var(--ease) both; animation-delay: 1.9s; }
  .hero-info p + p { animation-delay: 1.98s; }
  .hero-info .hero-book { display: block; margin-top: 18px; text-align: center; font-size: calc(calc(24 * var(--u)) + calc(1.33 * var(--u)));
    animation: fadeUp .8s var(--ease) 2.06s both; }
  .hero-info span { flex: none; }
  .hero-info span + span { color: var(--rose); }
  /* Programme : défilement vertical plein écran (comme silium mobile) */
  
  
  .programme-head { flex-direction: column; align-items: flex-start; }
  
  
  
  
  
  
  
  
  
  .footer-info { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
  .footer-logo svg { width: 112px; }
  .event-when { flex-direction: column; gap: 6px; }
}

/* Mobile : programme, calendrier et pied de page */
.day-more, .liste-go, .hero-info { display: none; }
@media (max-width: 760px) {
  /* « la programmation » et « le calendrier » calés à gauche ; un peu d'air avant le premier jour */
  .programme > .programme-head, .liste-head { flex-direction: column; align-items: flex-start; gap: 22px; }
  .programme > .programme-head h2, .liste-head h2 { text-align: left; align-self: stretch; }
  .programme > .programme-head { margin-bottom: 28px; }
  .liste-head { margin-bottom: 16px; }   /* titres un peu plus près de leur partie */
  .see-all-prog { display: none; }   /* pas de lien « Voir toute la programmation » sur mobile */
  .liste-rows li:first-child { border-top: 0; }   /* pas de filet juste sous « le calendrier » */
  .pt-1 { display: flex; align-items: center; gap: 16px; }
  .pt-1::before { content: ''; flex: 1; height: 1px; background: var(--bleu); transform: translateY(.06em); }
  
  .day-date { font-size: calc(31 * var(--u)); }
  .day-title { font-size: calc(50 * var(--u)); }
  /* Photos directement en couleur */
  .day-photos .day-bw { display: none; }
  .day-photos .day-color { opacity: 1; }
  .day-photos li { aspect-ratio: 3 / 3.6; }   /* vignettes 10 % moins hautes */
  /* Sous les photos : bouton pleine largeur, contour bleu, angles arrondis */
  /* « Lire l'édito » : bouton comme « Voir l'événement » */
  .home-festival-quote { font-size: calc(calc(32 * var(--u)) - calc(2.67 * var(--u))); }   /* phrase de l'édito (2 pt de moins) */
  /* Festival et contact sur mobile */
  .sheet-head h1 { font-size: calc(64 * var(--u)); }
  .fest-quote p { font-size: calc(34 * var(--u)); line-height: 1; }
  .fest-lead { font-size: calc(26 * var(--u)); }
  
  .team-name { font-size: calc(40 * var(--u)); }
  .place-address { font-size: calc(46 * var(--u)); }
  .pill { font-size: calc(24 * var(--u)); }
  .home-festival-quote .see-all { display: block; margin-top: 26px; padding: 13px 20px 16px; border: 1px solid var(--bleu); border-radius: 999px; background: none;
    text-align: center; font-size: calc(27 * var(--u)); }
  .day-more { display: block; margin: 27px var(--pad) 0; padding: 13px 20px 16px; border: 1px solid var(--bleu); border-radius: 999px;
    text-align: center; font: 600 calc(27 * var(--u))/1 var(--f-title); color: var(--bleu); }
  .day-nav, .day-nav:not([hidden]) { display: none; }   /* pas de flèches au-dessus des photos : on les fait défiler au doigt */
  .day-text:has(.day-nav:not([hidden])) .day-date { padding-right: 0; }
  /* Calendrier : la date à gauche (grand numéro, puis mois et heure sur la 2e ligne des noms), le titre et les noms au milieu, un bouton rond à droite */
  .liste-row { grid-template-columns: 86px minmax(0, 1fr) 44px; column-gap: 14px; row-gap: 6px; align-items: start; }
  /* Mois et heure collés sous le numéro ; le titre en haut, les noms dessous, dont la 2e ligne tombe sur le mois */
  .liste-date { grid-column: 1; grid-row: 1 / span 2; justify-self: start; flex-direction: column; align-items: flex-start; gap: 2px; font-size: calc(24 * var(--u)); }   /* le mois tombe sur la 2e ligne des noms */
  .liste-num { font-size: calc(59 * var(--u)); }
  .liste-when { flex-direction: column; white-space: nowrap; }   /* mois, puis l'heure sur une 3e ligne */
  .liste-title { grid-column: 2; grid-row: 1; font-size: calc(36 * var(--u)); line-height: .74; padding: .09em 0 .05em; }   /* titres sur 2 lignes resserrés */
  .liste-people { grid-column: 2; grid-row: 2; }
  .liste-rows li { border-top-color: rgba(48, 84, 158, .5); }
  .liste-go { grid-column: 3; grid-row: 1 / span 2; align-self: center; display: grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--bleu); border-radius: 50%; color: var(--bleu); }
  .liste-go svg { width: 18px; height: 18px; }
  .programme { padding-bottom: calc(clamp(80px, 14vh, 160px) / 2); }
  .site-footer { margin-top: calc(clamp(80px, 14vh, 160px) / 2); }
  /* Pied de page : une ligne blanche sous chaque titre */
  .footer-info h2 { padding-bottom: 10px; border-bottom: 1px solid var(--creme); }
  /* En-tête au défilement : pas de fond délimité mais un flou progressif façon Apple, de plus en plus fort vers le haut
     (six couches : 1 à 32 px, chacune masquée un peu plus haut), teinté d'un voile crème en dégradé ; il déborde sous l'en-tête.
     L'en-tête reste visible en descendant, un peu plus fin. */
  /* Le logo reste exactement au même endroit partout : en haut de page, au défilement, menu ouvert ou fermé, sur toutes les pages */
  .site-header.scrolled, .page-event .site-header.scrolled { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; height: var(--header-h); }
  .site-header.scrolled .logo svg { transform: none; }
  /* Aucun effet de survol sur mobile */
  .day-event:hover .day-photos img, .prog-ev-photos li:hover img { transform: none; }
  .day-event:hover .day-title a, .liste-row:hover .liste-title { color: var(--rose); }
  .see-all:hover, .see-all:focus-visible { color: inherit; background: none; }
  .prog-ev-photos li:hover .prog-ev-who { transform: translateY(101%); }
  .prog-ev-photos li:hover .prog-ev-who > * { transform: translateY(14px); }
  .footer-logo:hover, .footer-bottom span a:hover, .footer-info a:hover { color: var(--creme); border-color: transparent; }
  .footer-socials a:hover { color: var(--creme); border-color: rgba(246, 238, 225, .6); }   /* boutons ronds : le contour reste visible */
  .footer-top:hover { background: none; border-color: currentColor; }
  .footer-top:hover svg { transform: none; }
  .logo.lg-pink .logo-fill { clip-path: inset(100% 0 0 0); }
  .tl-item:not([aria-current]):hover .tl-title { color: var(--bleu); }
  .tl-item:hover .tl-dot { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { transform: none; clip-path: none; }
}

/* Mode capture (?noanim) : état final des animations, utile pour les tests */
.no-anim *, .no-anim *::before, .no-anim *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition: none !important; }
.no-anim [data-reveal], .no-anim .reveal-img img { transform: none; clip-path: none; }
.no-anim .footer-logo .logo-type.ft-wait .lg-line > * { transform: none; }
.no-anim .hero:not(.hero-illu) { height: 900px; }
.no-anim .hero-illu .g { transition: none !important; }
@media (max-width: 760px) { .no-anim .hero:not(.hero-illu) { height: 760px; }  }

/* Arrivée sur le site (accueil) : logo puis menu */
.home .site-header .nav > * { animation: navIn .8s var(--ease) both; }
.home .site-header .nav > :nth-child(1) { animation-delay: .35s; }
.home .site-header .nav > :nth-child(2) { animation-delay: .43s; }
.home .site-header .nav > :nth-child(3) { animation-delay: .51s; }
.home .site-header .nav > :nth-child(4) { animation-delay: .59s; }
.home .site-header .burger { animation: navIn .8s var(--ease) .35s both; }
@keyframes logoIn { from { clip-path: inset(-20% 100% -20% -20%); transform: translateX(-18px); } to { clip-path: inset(-20% -20% -20% -20%); transform: none; } }
@keyframes navIn { from { clip-path: inset(-0.5em -0.3em 100% -0.3em); transform: translateY(100%); } to { clip-path: inset(-0.5em -0.3em -0.5em -0.3em); transform: none; } }

/* Page de mot de passe (préversion privée) */
.gate-main { max-width: 460px; margin: 0 auto; padding: 14vh var(--pad) 60px; }
.gate-logo svg { height: 90px; width: auto; color: var(--bleu); margin-bottom: 32px; }
.gate h1 { font-size: clamp(calc(48 * var(--u)), calc(9 * var(--vw)), calc(84 * var(--u))); color: var(--rose); margin-bottom: 16px; }
.gate label { display: block; font-weight: 600; font-size: calc(14 * var(--u)); margin: 24px 0 18px; }
.gate input { display: block; width: 100%; margin-top: 8px; padding: 12px 14px; font: 300 calc(17 * var(--u)) var(--f-body); color: var(--bleu); background: #fff8ee; border: 1px solid var(--ligne); }
.gate input:focus { outline: none; border-color: var(--bleu); }
.gate-error { color: var(--rose); font-weight: 600; margin-top: 16px; }

/* Chargement : la page reste masquée et les animations en pause tant que polices et illustration ne sont pas prêtes */
body.is-loading { opacity: 0; animation: forceShow 0s 3.5s forwards; }   /* filet de sécurité si le script ne répond pas */
body.is-loading *, body.is-loading *::before, body.is-loading *::after { animation-play-state: paused !important; }
@keyframes forceShow { to { opacity: 1; } }

/* Apparition de l'illustration : léger agrandissement et fondu */
.hero-illu-img { animation: illuIn 1.6s cubic-bezier(.45, 0, .2, 1) both; }
@keyframes illuIn { from { opacity: 0; scale: .93; } to { opacity: 1; scale: 1; } }

/* Programme : chaque photo se dévoile de haut en bas, l'une après l'autre */

.carousel-nav svg { width: 18px; height: 18px; display: block; }

/* Ordinaux en exposant (19e, 20e) sans modifier l'interligne */
sup { font-size: .62em; line-height: 0; vertical-align: .5em; }

/* ===== Mobile : réglages d'ensemble ===== */
@media (max-width: 760px) {
  /* Textes courants : + 1 pt */
  body { font-size: calc(calc(16 * var(--u)) + calc(1.33 * var(--u))); }
  .prog-credits, .liste-people, .prog-ev-who span { font-size: calc(calc(14 * var(--u)) + calc(1.33 * var(--u))); }
  .footer-info, .prog-ev-body p, .prog-ev-table, .sheet-table, .credits, .event-back, .event-pager,
  .team-role, .team-links, .signature span { font-size: calc(calc(15 * var(--u)) + calc(1.33 * var(--u))); }
  .footer-bottom { font-size: calc(calc(13 * var(--u)) + calc(1.33 * var(--u))); }
  .event-body, .fest-text p, .contact-intro, .soutiens-intro { font-size: calc(calc(17 * var(--u)) + calc(1.33 * var(--u))); line-height: 1.35; }
  .tagline { font-size: calc(calc(19 * var(--u)) + calc(1.33 * var(--u))); }
  /* Boutons : + 1 pt */
  .home-festival-quote .see-all, .day-more { font-size: calc(calc(27 * var(--u)) + calc(1.33 * var(--u))); }
  .pill { font-size: calc(calc(24 * var(--u)) + calc(1.33 * var(--u))); }
  .btn { font-size: calc(calc(16 * var(--u)) + calc(1.33 * var(--u))); }
  .programmation-meta, .sheet-meta { margin-top: 7px; font-size: calc(30 * var(--u)); line-height: 1.05; }   /* sous-titres roses en Seriguela, plus grands */   /* sous-titre tout près du titre, comme la page festival */
  /* « Réserver » : bouton à contour sur toute la largeur, comme ceux de la page festival */
  .prog-ev-ticket { display: block; margin-top: 32px; padding: 11px 24px 14px; border: 1px solid var(--bleu); border-radius: 999px; background: none;
    text-align: center; font-size: calc(calc(24 * var(--u)) + calc(1.33 * var(--u))); letter-spacing: .01em; }

  /* Titres de section (« la programmation », « le calendrier ») et titres des pages : sur une ligne, sans filet,
     en Guillon Demi, capitales, corps 16, approche 70 */
  .programme > .programme-head h2, .liste-head h2, .programmation-head h1, .sheet-head h1, .sheet-label, .tl-head {
    font: 600 calc(16 * var(--u))/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .07em; color: var(--bleu);
  }
  .pt-1 { display: inline; }   /* sur deux lignes : « la » / « programmation » */
  .pt-1::before { content: none; }
  .sheet-head h1 span { display: inline; }
  .sheet-head h1 span::after { content: none; }

  /* Page festival : « édito », puis le premier paragraphe, la phrase de l'édito en bleu décalée à droite, le reste du texte,
     la signature ; pas de tableau ; « la programmation » sur toute la largeur */
  .page-festival .page-sheet { display: flex; flex-direction: column; }
  .page-festival .fest-grid, .page-festival .fest-edito { display: contents; }
  .page-festival .sheet-head { order: 0; }
  .page-festival .sheet-label { order: 1; padding: 0 var(--pad); font: 600 calc(24 * var(--u))/1 var(--f-title); text-transform: none; letter-spacing: .01em; color: var(--rose); }   /* « édito » en Seriguela */
  .page-festival .fest-lead { order: 2; padding: 0 var(--pad); margin: 0 0 .8em; font: 300 calc(calc(17 * var(--u)) + calc(1.33 * var(--u)))/1.35 var(--f-body); max-width: none; }
  .page-festival .fest-quote { order: 3; margin: 1.1em 0 2em; padding: 0 var(--pad) 0 calc(var(--pad) + calc(14 * var(--vw))); }
  .page-festival .fest-quote p { font-size: calc(calc(34 * var(--u)) - calc(2.67 * var(--u))); color: var(--bleu); }
  .page-festival .fest-text { order: 4; padding: 0 var(--pad); }
  .page-festival .fest-text p { line-height: 1.35; }
  .page-festival .signature { order: 5; padding: 0 var(--pad); font-size: calc(calc(24 * var(--u)) + calc(5.33 * var(--u))); }
  .page-festival .fest-facts { display: none; }
  .page-festival .sheet-next { order: 6; }
  .page-festival .sheet-next .pill { flex: 1 1 100%; text-align: center; }
  .page-festival .sheet-meta { margin-top: 7px; }   /* dates 70 % plus près du titre */
  /* Toutes les Seriguela de la page : approche + 10 */
  .page-festival .sheet-meta, .page-festival .fest-quote p, .page-festival .signature, .page-festival .pill { letter-spacing: .01em; }
  .page-festival .signature span { letter-spacing: normal; }
}

/* ===== Mobile : programmation, festival, contact (suite) ===== */
@media (max-width: 760px) {
  .meta-venue { display: block; }   /* « Théâtre des Bouffes du Nord » à la ligne */
  .meta-sep { display: none; }
  .prog-ev-date { font-size: calc(31 * var(--u)); }   /* date et titre du spectacle : mêmes corps que sur l'accueil */
  .prog-ev-title { font-size: calc(42.5 * var(--u)); }
  .page-festival .sheet-label { font-size: calc(50 * var(--u)); line-height: .92; letter-spacing: .01em; }   /* « édito » comme « Cœur noir » sur l'accueil */
  /* Contact : rubriques avec le même air au-dessus et au-dessous de chaque filet ; courriels tout près des noms */
  
  
  
  .team-name { margin: 8px 0 4px !important; }
  .place-lines { margin-top: 12px; font: 300 calc(calc(16 * var(--u)) + calc(1.33 * var(--u)))/1.3 var(--f-body); }   /* adresse en texte courant, interligne resserré */
  
  
  
  .pass-cta .pill { display: block; text-align: center; }   /* pass festival : sur toute la largeur */
  .prog-ev-pass { margin-left: 0; margin-top: 12px; }
}

/* ===== Ordinateur : festival et contact reprennent l'esthétique de la version mobile =====
   Titre de page en Guillon Demi capitales sur deux lignes, sous-titre rose collé dessous ; festival en une colonne de lecture
   (« édito » en grand, premier paragraphe, exergue en bleu décalée à droite, texte, signature, boutons sur toute la largeur de la colonne) ;
   contact : rubriques aérées de même au-dessus et au-dessous des filets, adresse en texte courant, boutons sans flèche */
@media (min-width: 761px) {
  .sheet-head h1, .page-contact .sheet-label { font: 600 calc(16 * var(--u))/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .07em; color: var(--bleu); }
  .sheet-head h1 span { display: inline; }
  .sheet-head h1 span::after { content: none; }
  .sheet-meta { margin-top: 7px; font-size: clamp(calc(30 * var(--u)), calc(2.6 * var(--vw)), calc(44 * var(--u))); line-height: 1.05; }

  /* Festival : une colonne de lecture de 7 colonnes de la grille */
  .page-festival .page-sheet { display: flex; flex-direction: column; }
  .page-festival .fest-grid, .page-festival .fest-edito { display: contents; }
  .page-festival .fest-facts { display: none; }
  .page-festival .sheet-label, .page-festival .fest-lead, .page-festival .fest-quote, .page-festival .fest-text,
  .page-festival .signature, .page-festival .sheet-next { box-sizing: content-box; max-width: calc(7 * var(--col) + 6 * var(--gutter)); padding-left: var(--pad); padding-right: var(--pad); }
  .page-festival .sheet-head { order: 0; }
  .page-festival .sheet-label { order: 1; margin: 0 0 clamp(20px, 3vh, 32px); font: 600 clamp(calc(36 * var(--u)), calc(4.37 * var(--vw)), calc(76 * var(--u)))/.92 var(--f-title); letter-spacing: .01em; color: var(--rose); }   /* comme « Cœur noir » */
  .page-festival .fest-lead { order: 2; margin: 0 0 .8em; font: 300 calc(18 * var(--u))/1.4 var(--f-body); }
  .page-festival .fest-quote { order: 3; margin: 1.2em 0 2em; padding-left: calc(var(--pad) + 4 / 3 * (var(--col) + var(--gutter))); max-width: calc(5 * var(--col) + 4 * var(--gutter)); }   /* retrait réduit d'un tiers */
  .page-festival .fest-quote p { font-size: clamp(calc(30 * var(--u)), calc(2.8 * var(--vw)), calc(52 * var(--u))); line-height: 1; letter-spacing: .01em; color: var(--bleu); }
  .page-festival .fest-text { order: 4; }
  .page-festival .fest-text p { font-size: calc(18 * var(--u)); line-height: 1.4; }
  .page-festival .signature { order: 5; font-size: clamp(calc(30 * var(--u)), calc(2.4 * var(--vw)), calc(40 * var(--u))); letter-spacing: .01em; }
  .page-festival .signature span { letter-spacing: normal; }
  /* boutons à droite, les uns sous les autres */
  .page-festival .sheet-next { order: 6; align-self: flex-end; flex-direction: column; box-sizing: border-box; width: calc(2 * var(--col) + var(--gutter) + var(--pad)); max-width: none; padding-left: 0; }   /* deux fois moins larges qu'avant */
  .page-festival .sheet-next .pill { text-align: center; letter-spacing: .01em; }

  /* Contact */
  
  
  
  .team-name { margin: 8px 0 4px !important; }
  .place-lines { margin-top: 14px; font: 300 calc(18 * var(--u))/1.35 var(--f-body); }
  
  
  
}

/* Festival, ordinateur : les trois boutons à droite, les uns sous les autres, le haut calé sur le début du texte courant */
@media (min-width: 761px) {
  .page-festival .page-sheet { display: grid; grid-template-columns: minmax(0, calc(7 * var(--col) + 6 * var(--gutter) + 2 * var(--pad))) minmax(0, 1fr); align-items: start; }
  .page-festival .sheet-head { grid-column: 1 / -1; grid-row: 1; }
  .page-festival .sheet-label { grid-column: 1; grid-row: 2; }
  .page-festival .fest-lead { grid-column: 1; grid-row: 3; }
  .page-festival .fest-quote { grid-column: 1; grid-row: 4; }
  .page-festival .fest-text { grid-column: 1; grid-row: 5; }
  .page-festival .signature { grid-column: 1; grid-row: 6; }
  .page-festival .sheet-next { grid-column: 2; grid-row: 3 / span 4; justify-self: end; align-self: start; padding-top: .3em; }
}

/* Ordinateur : un seul texte courant pour tout le site — Guillon Light, bleu, corps 16, interligne 1,4 */
@media (min-width: 761px) {
  body { font-size: calc(16 * var(--u)); line-height: 1.4; }
  .fest-text p, .page-festival .fest-text p, .page-festival .fest-lead, .prog-ev-body p, .event-body, .event-body p, .place-lines, .contact-intro, .soutiens-intro {
    font: 300 calc(16 * var(--u))/1.4 var(--f-body); color: var(--bleu);
  }
}
/* Mobile : le même texte courant partout, au corps mobile (16 + 1 pt), interligne 1,4 */
@media (max-width: 760px) {
  body { line-height: 1.4; }
  .fest-text p, .page-festival .fest-text p, .page-festival .fest-lead, .prog-ev-body p, .event-body, .event-body p, .place-lines, .contact-intro, .soutiens-intro {
    font: 300 calc(calc(16 * var(--u)) + calc(1.33 * var(--u)))/1.4 var(--f-body); color: var(--bleu);
  }
}

/* Ordinateur : « le / festival » et « nous / contacter » traités comme « la / programmation » (Seriguela en grand, deux lignes,
   interligne serré, sans filet) ; sous-titre rose identique */
@media (min-width: 761px) {
  .sheet-head h1 { font: 600 clamp(calc(50 * var(--u)), calc(7.2 * var(--vw)), calc(135 * var(--u)))/.8 var(--f-title); text-transform: none; letter-spacing: -.005em; color: var(--bleu); }
  .sheet-head h1 span { display: inline; }
  .sheet-head h1 span::after { content: none; }
  .sheet-meta, .page-festival .sheet-meta { font: 600 clamp(calc(24 * var(--u)), calc(2.16 * var(--vw)), calc(36 * var(--u)))/1 var(--f-title); margin-top: clamp(24px, calc(2.4 * var(--vw)), 40px); letter-spacing: normal; }
}

/* ===== Variante du titre de l'accueil : écrit à la main (classe titre-main ; titre-plume = version précédente) =====
   Le contour de chaque lettre se trace comme à la plume (SVG posé par main.js, retiré à la fin), puis la lettre se remplit
   de gauche à droite ; les lettres s'écrivent l'une après l'autre, sans montée. */
.titre-main .hero-illu .hero-title .l { transform: none; animation: write .45s cubic-bezier(.4, 0, .6, 1) forwards; animation-delay: calc(.75s + var(--i, 0) * 150ms); }
.hero-title .w { position: relative; }
.hand-svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.hand-svg text { fill: none; stroke: var(--rose); stroke-linejoin: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
  animation: trace .95s cubic-bezier(.45, .05, .35, 1) forwards; animation-delay: calc(.15s + var(--i, 0) * 150ms); }
@keyframes trace { to { stroke-dashoffset: 0; } }

/* ===== Variante du curseur : une plume rose (classe curseur-plume ; curseur-point = version précédente) =====
   La pointe de la plume est au bout de la souris ; sur les photos, la plume s'efface devant l'anneau « voir ». */
.cursor-nib { display: none; }
.curseur-plume .cursor-ring { transform: scale(0); }
.curseur-plume .cursor.voir .cursor-ring { transform: scale(1.15); }
.curseur-plume .cursor-nib { display: block; position: absolute; left: -3.25px; top: -22.75px; width: 26px; height: 26px; overflow: visible;
  fill: var(--rose); transform-origin: 3.25px 22.75px; transition: transform .4s var(--ease); }
.curseur-plume .cursor-nib .nib-slit { fill: none; stroke: var(--creme); stroke-width: 1.1; stroke-linecap: round; }
.curseur-plume .cursor-nib circle { fill: var(--creme); }
.curseur-plume .cursor.voir .cursor-nib { transform: scale(0); }
.curseur-plume .cursor.down .cursor-nib { transform: scale(.85) rotate(-6deg); }

/* Ordinateur : réglages contact et programme de l'accueil */
@media (min-width: 761px) {
  
  .page-contact .sheet-meta, .page-legal .sheet-meta, .page-festival .sheet-meta, .programmation-meta { margin-top: clamp(12px, calc(1.2 * var(--vw)), 20px); }   /* courriel (contact), « et crédits » (mentions) un peu plus près du titre */
  /* Accueil : date et titre du spectacle plus près de la distribution, l'ensemble toujours calé sur le pied des photos */
  .day-text { justify-content: flex-end; }
  .day-text .day-title { margin-bottom: 0; }
  .day-credits { margin-top: clamp(28px, 3.6vh, 44px); }   /* environ 40 px entre le titre et la distribution (81 px auparavant) */
  /* Vignettes : hauteur du plus haut des textes du programme (--dimg-h, calculée par main.js), la même partout, au format 3/4 ;
     sur les écrans étroits, elles grandissent avec le texte et la rangée défile davantage */
  .day-photos li { flex-basis: calc(var(--dimg-h, var(--dimg) * 4 / 3) * .75); aspect-ratio: auto; height: var(--dimg-h, calc(var(--dimg) * 4 / 3)); }
}

/* ===== Mentions légales et crédits : un intitulé à gauche, le texte à droite, séparés par des filets fins ===== */
.legal { padding: 0 var(--pad); }
.legal section { padding: 22px 0; border-top: 1px solid var(--ligne); }
.legal section:last-child { border-bottom: 1px solid var(--ligne); }
.legal p { margin: 0 0 .7em; max-width: 640px; }
.legal p:last-child { margin-bottom: 0; }
.legal a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }   /* soulignement fin et un peu éloigné */
.legal a:hover { color: var(--rose); }
.legal strong { font-weight: 600; }
.footer-bottom span a:hover { color: var(--rose); }
@media (min-width: 761px) {
  .legal section { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .legal .sheet-label { grid-column: 1 / 5; margin: 0; font: 600 calc(14 * var(--u))/1.6 var(--f-body); text-transform: uppercase; letter-spacing: .07em; color: var(--bleu); }
  .legal section > p { grid-column: 5 / 12; }
}
@media (max-width: 760px) { .legal .sheet-label { margin-bottom: 10px; font-size: calc(14 * var(--u)); } }   /* intitulés des mentions 2 px sous les autres intitulés */

/* ===== Page « équipe » : une fiche par personne, portrait en bichromie (en couleur sur mobile) ===== */
.members { list-style: none; margin: 0; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(40px, 7vh, 72px); }
.members p { margin: 0; }
.member-photo { position: relative; margin: 0 0 18px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--creme); }
.member-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 25%; }
.member-photo .mp-color { opacity: var(--fade); }   /* bichromie sur ordinateur, sans passage en couleur au survol */
.member-photo.is-empty { display: grid; place-items: center; border: 1px solid var(--bleu); font: 600 calc(14 * var(--u))/1 var(--f-body); letter-spacing: .07em; text-transform: uppercase; color: var(--bleu); }
.members .team-name { margin: 8px 0 10px !important; }
@media (max-width: 1100px) { .members { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .members { grid-template-columns: 1fr; row-gap: 40px; }
  .members .team-name { font-size: calc(40 * var(--u)); }
  .member-photo .mp-color { --fade: 1; }
}

/* ===== Festival : chiffres clés, sous l'édito, sur toute la largeur ; les chiffres défilent puis se posent, l'un après l'autre ===== */
.page-festival .chiffres { order: 5; grid-column: 1 / -1; grid-row: 7; }
.page-festival .chiffres .sheet-label { order: 0; grid-column: auto; grid-row: auto; padding: 0; max-width: none; }   /* titre « chiffres clés » comme « l'édito » */
.chiffres { margin-top: clamp(90px, 15vh, 170px); padding: 0 var(--pad); }   /* bien écartés de l'édito */
.chiffres ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); }
.chiffres [data-reveal] { transition-delay: calc(var(--i) * .15s); }
.chiffres li { display: flex; align-items: flex-end; column-gap: calc(14 * var(--u)); }
.chiffres .ch-num { display: block; flex: none; font: 600 calc(86 * var(--u))/1.1 var(--f-title); color: var(--rose); }
.chiffres .ch-label { position: relative; display: block; flex: 1; min-width: 0; margin-bottom: calc(11 * var(--u));   /* dernière ligne sur le pied des chiffres */ font: 600 calc(30 * var(--u))/1.05 var(--f-title); color: var(--bleu); }
/* Ligne rose qui relie les chiffres, au-dessus des libellés ; elle se trace de gauche à droite, la dernière va jusqu'à la marge */
.chiffres .ch-label::before { content: ''; position: absolute; left: 0; right: calc(14 * var(--u) - var(--gutter)); bottom: calc(100% + calc(8 * var(--u))); height: 1.5px; background: var(--rose); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) calc(var(--i) * .15s + .5s); }
.chiffres li:last-child .ch-label::before { right: 0; }
.chiffres .in .ch-label::before, .no-anim .chiffres .ch-label::before { transform: none; }
.roll { position: relative; display: inline-block; height: 1.1em; vertical-align: top; clip-path: inset(0 -.5em); overflow-x: visible; overflow-y: clip; }   /* la colonne de chiffres qui défile ne doit pas allonger la page */
.roll-size { visibility: hidden; }
.roll-track { position: absolute; top: 0; left: 50%; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); transition: transform 2.2s var(--ease) calc(var(--i) * .15s + .1s); }
.roll-track span { display: block; height: 1.1em; }
.in .roll-track, .no-anim .roll-track { transform: translate(-50%, calc(-100% + 1.1em)); }

@media (max-width: 760px) {
  .chiffres ul { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .chiffres .ch-num { font-size: calc(79.5 * var(--u)); }
  .chiffres li { column-gap: calc(8 * var(--u)); }
  .chiffres .ch-label { font-size: calc(24 * var(--u)); margin-bottom: calc(14.3 * var(--u)); }
  .chiffres .ch-label::before { right: calc(8 * var(--u) - var(--gutter)); bottom: calc(54 * var(--u)); }
  .chiffres li:nth-child(2n) .ch-label::before { right: 0; }
}

/* Titre sur une ligne (mentions légales) */
.sheet-head h1.h1-line { white-space: nowrap; }

/* Contact : une ou deux lignes d'introduction sous le titre, avant le bouton « Contacter » */
.contact-intro { max-width: 34em; margin: clamp(16px, calc(1.6 * var(--vw)), 26px) 0 0; }   /* taille du texte de l'édito (règles communes du texte courant) */
.contact-intro + .sheet-meta { margin-top: clamp(20px, calc(2 * var(--vw)), 30px); }

/* ===== Contact : l'équipe en liste sur deux colonnes, filets entre les rangées ; le lieu dessous, boutons en ligne ===== */
.contacts { list-style: none; margin: 0; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(2 * var(--gutter)); }
.contacts li { grid-column: var(--c); grid-row: var(--r); }   /* première moitié à gauche, seconde à droite (contact.php) */
.contacts li { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--gutter); padding: 24px 0; border-bottom: 1px solid var(--bleu); }   /* boutons à la même distance du filet du bas, sur toutes les rangées */   /* filets sous chaque contact, aucun au-dessus des premiers */
.contact-name { margin: 0; font: 600 clamp(calc(32 * var(--u)), calc(2.8 * var(--vw)), calc(50 * var(--u)))/.95 var(--f-title); }
.contact-org { margin: 6px 0 0; font-size: calc(16 * var(--u)); font-weight: 600; }
.contact-role { margin: 8px 0 0; font: 600 calc(15 * var(--u))/1.3 var(--f-body); color: var(--rose); }
.contact-phone { display: inline-block; margin-top: 8px; font-size: calc(15 * var(--u)); }
.contacts .pill { flex: none; }
.contact-btns { display: flex; flex-direction: column; gap: 10px; }   /* « Contacter » puis « Dossier de presse », l'un sous l'autre */
.place-list { padding: clamp(80px, 14vh, 160px) var(--pad) 0; }
.place-list .sheet-label, .team-list .sheet-label { margin-bottom: 14px; }
/* Ordinateur : « l'équipe » descendu au ras des noms ; dans chaque rangée, les noms calés en haut (Anne de Fornel au même niveau que la colonne de droite), les boutons en bas */
@media (min-width: 761px) {
  .team-list { padding-top: clamp(30px, 5vh, 60px); }
  .team-list .sheet-label { margin-bottom: 0; }
  .contacts li > div { align-self: flex-start; }
}
.team-list .sheet-label { padding: 0 var(--pad); }   /* « l'équipe » au-dessus des personnes, comme « le lieu » */
.place-list .place-address { margin: 0; }
.place-access { margin: 18px 0 0; }   /* métro, RER, bus, Vélib’ : taille du texte courant, moyen en gras */
.place-access strong { font-weight: 600; }
.place-list-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
@media (max-width: 760px) {
  .contacts { grid-template-columns: 1fr; }
  .contacts li { grid-column: auto; grid-row: auto; }
  .contacts li { flex-direction: column; align-items: stretch; }
  .place-list-actions .pill { flex: 1 1 100%; }
}

/* Ordinateur : tous les boutons du site ont la même largeur, celle du plus long libellé (--btn-w, calculée par main.js) */
@media (min-width: 761px) {
  .pill, .see-all, .btn { min-width: var(--btn-w, 0); justify-content: center; text-align: center; }
  .page-festival .sheet-next { width: auto; padding-left: var(--gutter); }   /* tout juste séparés du texte : plus de place pour les boutons côte à côte */
  .page-festival .sheet-next.is-row { flex-direction: row; }   /* côte à côte quand la place le permet (main.js) */
}

/* ===== Téléphone : retours de novembre 2026 ===== */
.footer-socials-mobile { display: none; }   /* Instagram sous le contact : seulement sur téléphone */
@media (max-width: 760px) {
  :root { --pad: 22px; }   /* marges gauche et droite un peu plus larges pour les textes et les filets */
  /* Titres des pages et des grandes parties : Seriguela en grand, plus gros que les titres des spectacles */
  .programme > .programme-head h2, .liste-head h2, .programmation-head h1, .sheet-head h1 {
    font: 600 calc(64 * var(--u))/.8 var(--f-title); text-transform: none; letter-spacing: -.005em; color: var(--bleu);
  }
  .home-festival-quote { font-size: calc(32 * var(--u)); }   /* phrase de l'accueil : 2 pt de plus */
  .programme { padding-top: 96px; }   /* « la programmation » plus bas */
  /* Calendrier : le même petit écart sous chaque titre (la rangée s'agrandit au besoin) */
  .liste-row { grid-template-rows: auto 1fr; row-gap: 8px; }
  /* Pied de page : Instagram un peu plus grand, sous le contact */
  .footer-info .footer-socials-mobile { display: flex; margin-top: 12px; }
  /* (marge haute du pied de page : déjà réduite de moitié pour tous les écrans) */
  .footer-socials-mobile a { width: 52px; height: 52px; border-color: rgba(246, 238, 225, .6); }
  .footer-socials-mobile svg { width: 24px; height: 24px; }
  .footer-bottom .footer-socials { display: none; }
  /* Festival : exergue 2 pt plus grande ; chiffres clés plus bas, un par ligne, calés à gauche, libellés plus grands */
  .page-festival .fest-quote p { font-size: calc(34 * var(--u)); }
  .chiffres { margin-top: 140px; }
  .chiffres ul { grid-template-columns: 1fr; row-gap: 34px; }
  .chiffres li { flex-direction: column; align-items: flex-start; text-align: left; }
  /* Boutons : libellé toujours centré */
  .pill, .see-all, .day-more, .prog-ev-ticket { text-align: center; }
  /* Contact : fiches plus espacées, sans filets */
  .contacts li { border-bottom: 0; padding: 0; }
  .contacts { row-gap: 44px; }
  .page-contact .sheet-meta .pill { display: block; }   /* bouton « Contacter » principal sur toute la largeur, comme les autres */   /* le chiffre au-dessus de son libellé */
  .chiffres .ch-label { flex: none; font-size: calc(30 * var(--u)); margin: calc(-7 * var(--u)) 0 0; }   /* un peu plus près du chiffre */
  .chiffres .ch-label::before { display: none; }   /* pas de ligne de liaison quand les chiffres sont l'un sous l'autre */
  /* Programmation : chapô 2 pt plus grand */
  .prog-ev-tagline { font-size: calc(calc(28 * var(--u)) + calc(2.67 * var(--u))); }
  /* Texte courant de tout le site : interlignage réduit d'1 pt */
  body, .fest-text p, .page-festival .fest-text p, .page-festival .fest-lead, .prog-ev-body p, .event-body, .event-body p, .place-lines, .contact-intro, .soutiens-intro, .liste-people {
    line-height: calc(1.4em - calc(1.33 * var(--u)));
  }
  /* Boutons : typo 2 pt plus grande, lettres un peu plus espacées */
  .pill, .prog-ev-ticket { font-size: calc(calc(24 * var(--u)) + calc(4 * var(--u))); }
  .home-festival-quote .see-all, .day-more { font-size: calc(calc(27 * var(--u)) + calc(4 * var(--u))); }
}

/* ===== Variante du curseur : le chapeau du « â » du logo (classe curseur-chapeau ; ?curseur=chapeau ou réglage « Apparence ») ===== */
.cursor-hat { display: none; }
.curseur-chapeau .cursor-ring { transform: scale(0); }
.curseur-chapeau .cursor.voir .cursor-ring { transform: scale(1.15); }
.curseur-chapeau .cursor-hat { display: block; position: absolute; left: -12px; top: -9px; width: 24px; height: auto; fill: var(--rose); overflow: visible;
  transition: transform .35s var(--ease); }
.curseur-chapeau .cursor.voir .cursor-hat { transform: scale(0); }
.curseur-chapeau .cursor.down .cursor-hat { transform: translateY(2px) scale(.9); }

/* Boutons (téléphone et ordinateur) : typo légèrement espacée */
.pill, .see-all, .btn, .prog-ev-ticket, .day-more, .home-festival-quote .see-all, .page-festival .pill, .page-festival .sheet-next .pill, .place-list-actions .pill { letter-spacing: .015em; }

/* Téléphone : noms de la page contact 2 points plus grands */
@media (max-width: 760px) {
  .contact-name { font-size: calc(34 * var(--u)); }
}



/* ===== Festival : soutiens, sous les chiffres clés ; phrase en texte courant puis les logos en bleu, alignés à gauche ===== */
.page-festival .soutiens { order: 5; grid-column: 1 / -1; grid-row: 8; }
.page-festival .soutiens .sheet-label { order: 0; grid-column: auto; grid-row: auto; padding: 0; max-width: none; }
.soutiens { margin-top: clamp(100px, 17vh, 200px); padding: 0 var(--pad); }   /* bien écartée des chiffres clés */
.soutiens-intro { max-width: 46em; margin: 0; }
.soutiens-logos { list-style: none; margin: clamp(28px, 4vh, 44px) 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: calc(28 * var(--u)) calc(56 * var(--u)); }
.soutiens-logos [data-reveal] { transition-delay: calc(var(--i) * .15s); }
.soutiens-logos { --logo-h: calc(70 * var(--u)); }
.soutiens-logos img { display: block; height: var(--logo-h); width: auto; max-width: 100%; }
.soutiens-logos .logo-prix-mr { height: calc(var(--logo-h) * 1.6); }   /* Prix MR : tracé fin et format carré, plus grand pour équilibrer avec La Forlane */
@media (max-width: 760px) {
  .soutiens { margin-top: 130px; }
  .soutiens-logos { gap: 24px 40px; }
  .soutiens-logos { --logo-h: calc(59 * var(--u)); }
}
