/* ==========================================================================
   LE MUST · LES SOIRÉES BRISE-GLACE — V3 (version simple)
   Inspirée du support de présentation : courte, sombre, chaleureuse.
   Fond brun encré dominant, quelques touches d'ivoire pour éclairer.
   Versions précédentes : voir docs/VERSIONS.md.
   ========================================================================== */

/* ----- 1. Jetons ----- */
:root {
  /* Charte fournie */
  --vermillon: #B63731;
  --ink: #26211E;
  --ivory: #F4ECDD;
  /* Touches secondaires fournies (illustrations) */
  --lemon: #E8B327;
  --gold: #C2954A;
  --brown: #805438;

  /* Proposées : tons intermédiaires pour faire tomber la nuit */
  --vermillon-deep: #962B26;
  --sand: #EDDDC4;
  --apricot: #E7C7A6;
  --terracotta: #A9553F;
  --wine: #3A2622;
  --ink-deep: #1B1715;

  --ink-soft: rgba(38, 33, 30, .76);
  --ink-line: rgba(38, 33, 30, .22);
  --ivory-soft: rgba(244, 236, 221, .8);
  --ivory-line: rgba(244, 236, 221, .22);

  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-hand: 'Shantell Sans', 'Comic Sans MS', cursive;

  --gutter: clamp(20px, 5vw, 72px);
  --header-h: 72px;
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Unité du logo Brise-glace : 1 unité = 1 point du viewBox du SVG */
  --u: min(.7px, .09vw, .062vh);
}

/* ----- 2. Base ----- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }

::selection { background: var(--vermillon); color: var(--ivory); }

:focus-visible { outline: 2px solid var(--vermillon); outline-offset: 3px; border-radius: 4px; }
[data-tone="dark"] :focus-visible { outline-color: var(--lemon); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--ivory); text-decoration: none;
  transform: translateY(-200%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* Grain papier : rappelle la trame imprimée des illustrations */
.grain {
  position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .15 0 0 0 0 .13 0 0 0 0 .12 0 0 0 1.6 -.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----- 3. Typographie ----- */
.title {
  font-family: var(--f-display);
  font-weight: 380;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -.015em;
  font-variation-settings: 'SOFT' 60, 'opsz' 144;
  text-wrap: balance;
}
.title em {
  font-style: italic; font-weight: 340; color: var(--vermillon);
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
}
[data-tone="dark"] .title em { color: var(--gold); }
.title--center { text-align: center; }

.body { font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-soft); max-width: 48ch; }
[data-tone="dark"] .body { color: var(--ivory-soft); }
.body strong { color: var(--ink); }
.body--lead {
  font-family: var(--f-display);
  font-size: clamp(21px, 1.9vw, 26px);
  line-height: 1.4;
  font-weight: 340;
  color: var(--ink);
}

/* ----- 4. Boutons & liens ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 30px;
  border: 1.5px solid var(--vermillon); border-radius: 999px;
  background: var(--vermillon); color: var(--ivory);
  font: 600 16px/1.2 var(--f-body); letter-spacing: .01em; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
  box-shadow: 0 10px 24px rgba(182, 55, 49, .22);
}
.btn:hover { background: var(--vermillon-deep); border-color: var(--vermillon-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--light { background: var(--ivory); color: var(--ink); border-color: var(--ivory); box-shadow: 0 14px 40px rgba(0, 0, 0, .3); }
.btn--light:hover { background: #fff8ec; border-color: #fff8ec; }
.btn--small { padding: 10px 18px; font-size: 14px; box-shadow: none; }

/* ----- 5. En-tête ----- */
.site-header {
  --hdr-fg: var(--ink);
  --hdr-bg: rgba(244, 236, 221, .86);
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 32px;
  padding: 0 var(--gutter);
  color: var(--hdr-fg);
  transition: background-color .4s, color .4s, box-shadow .4s;
}
.site-header.is-scrolled {
  background: var(--hdr-bg);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 1px 0 var(--ink-line);
}
[data-ui-top="dark"] .site-header { --hdr-fg: var(--ivory); --hdr-bg: rgba(38, 33, 30, .82); }
[data-ui-top="dark"] .site-header.is-scrolled { box-shadow: 0 1px 0 var(--ivory-line); }

.site-header__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.site-header__logo svg { width: 50px; height: auto; }
.site-header__wordmark { font-family: var(--f-display); font-size: 20px; font-weight: 450; }

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  position: relative; font-size: 15px; font-weight: 500; text-decoration: none; opacity: .82; transition: opacity .2s;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav a:hover, .site-nav a.is-active { opacity: 1; }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }

/* Menu téléphone : trois lignes, puis un menu qui se déroule */
.burger { display: none; }
.menu-mobile { display: none; }
@media (max-width: 900px) {
  .burger {
    display: grid; align-content: center; justify-items: center; gap: 5px;
    width: 44px; height: 44px; margin-right: -10px; padding: 0;
    border: 0; background: none; color: inherit; cursor: pointer;
  }
  html:not(.js) .burger { display: none; }
  .burger span { display: block; width: 22px; height: 1.6px; border-radius: 2px; background: currentColor;
    transition: transform .35s var(--ease), opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

  .menu-mobile {
    display: grid;
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 49;
    padding: 6px var(--gutter) 22px;
    background: rgba(27, 23, 21, .97);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .35);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  }
  .menu-mobile.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .35s var(--ease); }
  .menu-mobile a {
    padding: 15px 2px;
    border-bottom: 1px solid var(--ivory-line);
    font-family: var(--f-display); font-size: 24px; line-height: 1.2;
    color: var(--ivory); text-decoration: none;
  }
  .menu-mobile a:last-child { border-bottom: 0; }
  .menu-mobile a:active, .menu-mobile a:hover { color: var(--gold); }
  /* menu ouvert : l'en-tête prend la même teinte que le menu */
  .site-header.menu-open { --hdr-fg: var(--ivory); background: rgba(27, 23, 21, .97); box-shadow: none; }
}

/* ----- 6. Fil conducteur : l'horloge de la soirée ----- */
.evening {
  position: fixed;
  right: calc(clamp(12px, 2vw, 28px) + env(safe-area-inset-right, 0px));
  bottom: calc(clamp(12px, 2vw, 28px) + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(244, 236, 221, .84);
  box-shadow: 0 0 0 1px var(--ink-line), 0 10px 30px rgba(38, 33, 30, .12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  pointer-events: none;
  opacity: 0; transform: translateY(12px);
  transition: opacity .6s, transform .6s var(--ease), background-color .5s, color .5s, box-shadow .5s;
}
.evening.is-ready { opacity: 1; transform: none; }
html:not(.js) .evening { display: none; }
[data-ui-bottom="dark"] .evening {
  color: var(--ivory); background: rgba(27, 23, 21, .72);
  box-shadow: 0 0 0 1px var(--ivory-line), 0 10px 30px rgba(0, 0, 0, .3);
}
.evening__clock { width: 46px; height: 46px; flex: none; }
.clock-rim { fill: none; stroke: currentColor; stroke-width: 3; }
.clock-face { fill: var(--ivory); }
.clock-ticks line { stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.clock-ticks line.is-major { stroke-width: 3.4; }
.clock-hour, .clock-minute { stroke: var(--ink); stroke-linecap: round; }
.clock-hour { stroke-width: 4.6; }
.clock-minute { stroke-width: 2.6; }
.clock-pin { fill: var(--vermillon); }
.evening__time {
  font-family: var(--f-display); font-style: italic; font-size: 20px;
  font-variant-numeric: tabular-nums; font-variation-settings: 'SOFT' 100;
  min-width: 3.2em;
}
.evening__glass { width: 20px; height: 32px; flex: none; }
.glass-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.glass-wine { fill: var(--vermillon); }

/* ----- 7. Scènes ----- */
.scene {
  position: relative;
  padding: clamp(56px, 9vh, 110px) var(--gutter);
  overflow-x: hidden;
  overflow-x: clip;
}
[data-tone="light"] { color: var(--ink); }
[data-tone="dark"] { color: var(--ivory); }


/* Le billet de la prochaine soirée (même présentation que le flyer) */
.billet {
  padding: 18px 40px 20px;
  background: #FFFBF3;
  color: var(--ink);
  text-align: center;
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1.5px var(--ink-line),
    inset 0 0 0 8px #FFFBF3,
    inset 0 0 0 9.5px var(--ink-line),
    0 18px 40px rgba(128, 84, 56, .22);
  transform: rotate(-1.4deg);
}
.billet__label { font: 600 13px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--vermillon); }
.billet__date {
  margin-top: 8px;
  font: 500 clamp(28px, 2.8vw, 38px)/1.05 var(--f-display);
  font-variation-settings: 'SOFT' 50, 'opsz' 144;
}
.billet__date sup { font-size: .5em; vertical-align: .75em; margin-right: .06em; }
.billet__places { margin-top: 6px; font: italic 400 clamp(19px, 1.6vw, 22px)/1.2 var(--f-display); color: var(--vermillon); }

/* --- Ouverture --- */
.scene--hero {
  min-height: min(100svh, 860px);
  display: grid; place-items: center;
  padding-top: calc(var(--header-h) + 20px);
  padding-bottom: clamp(40px, 6vh, 70px);
  background:
    radial-gradient(ellipse 60% 45% at 50% 36%, rgba(232, 179, 39, .13), transparent 70%),
    var(--ivory);
  text-align: center;
}
.hero { display: grid; justify-items: center; }
.hero__logo { display: grid; justify-items: center; }

.logo-crop {
  --cx: 0; --cy: 0; --cw: 1120; --ch: 635;
  position: relative; display: block; overflow: hidden;
  width: calc(var(--cw) * var(--u));
  height: calc(var(--ch) * var(--u));
}
.logo-crop img {
  position: absolute;
  left: calc(var(--cx) * var(--u) * -1);
  top: calc(var(--cy) * var(--u) * -1);
  width: calc(1119.75 * var(--u)); height: auto; max-width: none;
}
.logo-crop--lettering { --cx: 122; --cy: 66; --cw: 860; --ch: 312; }
.logo-crop--glass-left { --cx: 376; --cy: 384; --cw: 163; --ch: 242; transform-origin: 45% 96%; }
.logo-crop--glass-right { --cx: 539; --cy: 384; --cw: 163; --ch: 242; transform-origin: 55% 96%; }

.toast { position: relative; display: flex; justify-content: center; margin-top: calc(4 * var(--u)); }
.toast__spark { position: absolute; left: 50%; top: calc(18 * var(--u)); width: 0; height: 0; opacity: 0; }
.toast__spark i {
  position: absolute; left: -1px; bottom: 6px;
  width: 2.5px; height: calc(26 * var(--u) + 6px);
  border-radius: 2px; background: var(--gold);
  transform-origin: 50% calc(100% + 6px);
}
.toast__spark i:nth-child(1) { transform: rotate(-64deg); }
.toast__spark i:nth-child(2) { transform: rotate(-32deg); }
.toast__spark i:nth-child(3) { transform: rotate(0deg); }
.toast__spark i:nth-child(4) { transform: rotate(32deg); }
.toast__spark i:nth-child(5) { transform: rotate(64deg); }

.hero__title {
  margin-top: clamp(22px, 4vh, 40px);
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 70px);
  line-height: 1.04;
  letter-spacing: -.02em;
  font-variation-settings: 'SOFT' 60, 'opsz' 144;
  text-wrap: balance;
}
.hero__sub {
  margin-top: 14px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(20px, 1.9vw, 26px);
  color: var(--vermillon);
  text-wrap: balance;
}
.hero__sub strong { font-weight: 420; }
.hero__billet { margin-top: clamp(22px, 3.6vh, 36px); }
.hero__actions { margin-top: clamp(18px, 3vh, 28px); }

.is-pending [data-hero-item],
.is-pending [data-hero-lettering],
.is-pending .scene--hero .toast { opacity: 0; }

/* --- La nuit tombe --- */
.dusk {
  position: relative;
  height: clamp(170px, 28vh, 300px);
  margin-top: -1px;
  background: linear-gradient(180deg,
    var(--ivory) 0%, #F0DFC8 10%, var(--apricot) 22%, #D59A7A 34%, #C3735A 45%,
    var(--terracotta) 55%, #8C4636 66%, #6E3A2F 76%, #4F2E28 87%, var(--wine) 100%);
  overflow: hidden;
}
.dusk::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(38, 33, 30, .28) 1.1px, transparent 1.4px);
  background-size: 9px 9px;
  -webkit-mask-image: linear-gradient(180deg, transparent 10%, #000 50%, transparent 85%);
  mask-image: linear-gradient(180deg, transparent 10%, #000 50%, transparent 85%);
  opacity: .5;
}
.dusk__light {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: #FFE7A6;
  box-shadow: 0 0 12px 4px rgba(232, 179, 39, .7), 0 0 40px 14px rgba(232, 179, 39, .25);
}
.dusk__light:nth-child(1) { left: 9%;  top: 62%; }
.dusk__light:nth-child(2) { left: 22%; top: 76%; }
.dusk__light:nth-child(3) { left: 37%; top: 66%; }
.dusk__light:nth-child(4) { left: 52%; top: 80%; }
.dusk__light:nth-child(5) { left: 66%; top: 64%; }
.dusk__light:nth-child(6) { left: 80%; top: 78%; }
.dusk__light:nth-child(7) { left: 92%; top: 61%; }

/* --- Le concept --- */
.scene--concept {
  /* commence exactement sur la teinte où le dégradé s'arrête : aucun raccord visible */
  background: linear-gradient(180deg, var(--wine) 0%, #302320 22%, var(--ink) 50%);
  padding-top: clamp(40px, 7vh, 80px);
}
.concept { max-width: 1040px; margin: 0 auto; }
.concept .title { max-width: 18ch; margin-inline: auto; }

/* 1. Le constat et la question : une colonne étroite, centrée */
.concept__intro {
  display: grid; justify-items: center; gap: 18px;
  max-width: 640px; margin: clamp(30px, 5vh, 48px) auto 0;
  text-align: center;
}
.concept__intro p { color: var(--ivory-soft); font-size: clamp(17px, 1.35vw, 20px); max-width: 46ch; }
.concept__intro p strong { color: var(--ivory); font-weight: 600; }
.concept__intro .concept__lead { font-family: var(--f-display); font-weight: 340; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; }
.concept__intro .subtitle { max-width: 20ch; text-wrap: balance; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
  margin: clamp(40px, 7vh, 70px) auto clamp(44px, 7vh, 76px);
  border-block: 1px solid var(--ivory-line);
}
.facts li { display: grid; gap: 4px; justify-items: center; padding: 26px 16px; text-align: center; }
.facts li + li { border-left: 1px solid var(--ivory-line); }
.facts strong {
  font-family: var(--f-display); font-weight: 380;
  font-size: clamp(24px, 2.5vw, 34px); line-height: 1.1;
  color: var(--gold);
  font-variation-settings: 'SOFT' 60, 'opsz' 144;
}
.facts span { font-size: 15px; color: var(--ivory-soft); }

.subtitle {
  font-family: var(--f-display); font-weight: 380;
  font-size: clamp(28px, 3vw, 40px); line-height: 1.1;
  letter-spacing: -.01em;
  font-variation-settings: 'SOFT' 60, 'opsz' 144;
}

/* 3. La rencontre : l'illustration et trois phrases */
.concept__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 90px);
}
.concept__text { display: grid; gap: 18px; }
.concept__text > p { color: var(--ivory-soft); font-size: clamp(17px, 1.35vw, 20px); max-width: 40ch; }
.concept__text > p.concept__who {
  font-family: var(--f-display); font-weight: 380;
  font-size: clamp(22px, 2vw, 28px); line-height: 1.3;
  color: var(--ivory);
}
.concept__text > p.concept__maybe {
  padding-left: 18px; border-left: 2px solid var(--gold);
  font-family: var(--f-display); font-style: italic; font-weight: 340;
  font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45;
  color: var(--ivory);
}
.subtitle em { font-style: italic; font-weight: 340; color: var(--gold); }

/* 4. L'urgence et l'action : centré, pour conclure */
.concept__close {
  display: grid; justify-items: center; gap: 6px;
  margin-top: clamp(48px, 8vh, 80px);
  text-align: center;
}
.concept__close p { font-family: var(--f-display); font-size: clamp(18px, 1.5vw, 21px); color: var(--ivory-soft); }
.concept__close .concept__places {
  font-style: italic; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; color: var(--gold);
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
}
.concept__close .btn { margin-top: 22px; }

/* Le jeu : l'illustration fournie, posée dans une lueur chaude */
.jeu { position: relative; margin: 0; display: grid; justify-items: center; gap: 6px; text-align: center; }
.jeu::before {
  content: ''; position: absolute; inset: -8% -10% 10%;
  background: radial-gradient(closest-side, rgba(232, 179, 39, .16), transparent);
  pointer-events: none;
}
.jeu img { position: relative; width: min(100%, 470px); height: auto; }
.jeu__text {
  position: relative;
  font-family: var(--f-hand);
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.3;
  color: var(--gold);
  max-width: 22ch;
  text-wrap: balance;
  transform: rotate(-2deg);
}

/* --- La soirée en 2 heures : ligne de temps détourée, sur le fond --- */
.scene--programme { background: var(--ink); padding-top: clamp(24px, 5vh, 56px); }
.programme { max-width: 820px; margin: 0 auto; }
.programme__title {
  text-align: center;
  font: 600 clamp(20px, 2.2vw, 28px)/1.25 var(--f-body);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

.timeline {
  --v: var(--gold);
  position: relative;
  display: grid;
  gap: clamp(22px, 4vh, 40px);
  margin-top: clamp(30px, 5vh, 50px);
  padding: 30px 0;
}
/* le fil, avec un point à chaque bout ; --draw (0 → 1) le dessine de haut en bas */
.timeline::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 10px; margin-left: -5px;
  background:
    radial-gradient(circle, var(--v) 3.6px, transparent 4.2px) top center / 10px 10px no-repeat,
    radial-gradient(circle, var(--v) 3.6px, transparent 4.2px) bottom center / 10px 10px no-repeat,
    linear-gradient(var(--v), var(--v)) center / 2px calc(100% - 8px) no-repeat;
  clip-path: inset(0 0 calc((1 - var(--draw, 1)) * 100%) 0);
}
.timeline li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.tl__label { display: grid; width: min(100%, 300px); }
.tl__label strong {
  position: relative;
  font: 600 clamp(16px, 1.5vw, 19px)/1.25 var(--f-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ivory);
  padding-bottom: 10px;
}
/* le trait de chaque étape part du fil ; --line (0 → 1) le dessine */
.tl__label strong::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold);
  transform: scaleX(var(--line, 1));
}
.tl__label em { margin-top: 10px; font-family: var(--f-display); font-style: italic; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.35; color: var(--ivory-soft); }
.tl__icon {
  width: clamp(64px, 7vw, 86px); height: auto; padding: 8px;
  fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  border-radius: 50%;
  transition: background-color .4s;
}
/* étapes impaires : texte à gauche du fil, dessin à droite */
.timeline li:nth-child(odd) .tl__label { justify-self: end; text-align: right; }
.timeline li:nth-child(odd) .tl__label strong::after { transform-origin: right; }
.timeline li:nth-child(odd) .tl__icon { margin-left: clamp(18px, 3vw, 30px); }
/* étapes paires : dessin à gauche, texte à droite */
.timeline li:nth-child(even) .tl__label { grid-column: 2; justify-self: start; }
.timeline li:nth-child(even) .tl__label strong::after { transform-origin: left; }
.timeline li:nth-child(even) .tl__icon { grid-column: 1; grid-row: 1; justify-self: end; margin-right: clamp(18px, 3vw, 30px); }
/* le trait rejoint le fil, le texte garde sa distance */
.timeline li:nth-child(odd) .tl__label > * { padding-right: clamp(16px, 2vw, 22px); }
.timeline li:nth-child(even) .tl__label > * { padding-left: clamp(16px, 2vw, 22px); }
/* le moment indiqué par l'horloge */
.timeline li.is-now .tl__icon { background: rgba(232, 179, 39, .14); }

/* --- Isabelle --- */
.scene--isabelle { background: var(--ink); }
.isabelle {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
  max-width: 1120px;
  margin: 0 auto;
}
.portrait { position: relative; margin: 0; width: min(420px, 100%); justify-self: center; padding: 16px; }
.portrait::before {
  content: ''; position: absolute; inset: 0;
  border: 1px solid rgba(194, 149, 74, .7);
  border-radius: 999px 999px 28px 28px;
}
.portrait__frame {
  position: relative; aspect-ratio: 3 / 4; max-width: 100%; overflow: hidden;
  border: 2px solid var(--gold);
  border-radius: 999px 999px 18px 18px;
  background: var(--ivory);
}
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; }
.isabelle__text { display: grid; gap: 20px; }
.isabelle__hello {
  font-family: var(--f-display);
  font-weight: 360;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.05;
  letter-spacing: -.015em;
  text-wrap: balance;
  font-variation-settings: 'SOFT' 80, 'opsz' 144;
}
.isabelle__hello em { font-style: italic; color: var(--gold); white-space: nowrap; }
.isabelle__role {
  font-family: var(--f-hand);
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--gold);
  margin-bottom: 6px;
}

/* --- FAQ --- */
.scene--isabelle { padding-top: clamp(24px, 4vh, 48px); }
.scene--faq { background: var(--ink); padding-top: clamp(8px, 2vh, 24px); }
.faq { max-width: 900px; margin: 0 auto; }
.faq__list { margin-top: clamp(32px, 6vh, 56px); border-top: 1px solid var(--ivory-line); }
.faq__item { border-bottom: 1px solid var(--ivory-line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.3;
  font-weight: 380;
  transition: color .25s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold); }
.faq__item summary i {
  position: relative; flex: none; width: 34px; height: 34px;
  border: 1.5px solid var(--ivory-line); border-radius: 50%;
  transition: transform .4s var(--ease), border-color .25s, background-color .25s;
}
.faq__item summary i::before, .faq__item summary i::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%);
}
.faq__item summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity .3s; }
.faq__item[open] summary i { transform: rotate(180deg); border-color: var(--gold); background: var(--gold); color: var(--ink); }
.faq__item[open] summary i::after { opacity: 0; }
.faq__answer { padding: 0 60px 28px 4px; color: var(--ivory-soft); max-width: 70ch; }

/* --- Participer --- */
.scene--fin {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
  padding-top: clamp(24px, 4vh, 48px);
  padding-bottom: clamp(56px, 9vh, 100px);
}
.fin { max-width: 860px; margin: 0 auto; display: grid; justify-items: center; text-align: center; }
.fin__logo {
  --u: min(.56px, .08vw);
  display: grid; justify-items: center;
  margin-bottom: clamp(24px, 4vh, 44px);
}
.fin__text { display: grid; gap: 16px; margin-top: 28px; max-width: 54ch; color: var(--ivory-soft); font-size: clamp(17px, 1.4vw, 20px); }
.fin__text strong { color: var(--ivory); }
.fin__action { margin-top: 36px; }

/* --- La suite + la fiche papier --- */
.inscription {
  max-width: 980px;
  margin: clamp(48px, 8vh, 80px) auto 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.inscription:focus { outline: none; }

.suite { margin-bottom: clamp(44px, 7vh, 70px); }
.suite__title {
  text-align: center;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 360;
  font-size: clamp(26px, 2.8vw, 36px);
  color: var(--gold);
  margin-bottom: 30px;
}
.suite__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  counter-reset: none;
}
.suite__steps li {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--ivory-line);
  color: var(--ivory-soft);
  font-size: 16px;
  line-height: 1.5;
}
.suite__steps strong { color: var(--ivory); font-weight: 600; }
.suite__num {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  font-family: var(--f-hand);
  font-size: 18px;
  color: var(--gold);
}

/* La fiche : papier ivoire, double filet, tampon */
.fiche {
  --pen: #2A2420;
  position: relative;
  padding: clamp(34px, 5vw, 60px) clamp(22px, 5vw, 64px) clamp(34px, 5vw, 54px);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, .55), transparent 60%),
    #FAF4E8;
  color: var(--ink);
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 1px var(--ink-line),
    inset 0 0 0 10px #FAF4E8,
    inset 0 0 0 11px var(--ink-line),
    0 2px 0 rgba(0, 0, 0, .15),
    0 40px 90px rgba(0, 0, 0, .5);
}
.fiche::after {
  /* légère trame de papier */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: radial-gradient(rgba(38, 33, 30, .05) 1px, transparent 1.3px);
  background-size: 5px 5px;
}

.fiche__stamp {
  position: absolute;
  top: clamp(18px, 3vw, 34px);
  right: clamp(16px, 3vw, 40px);
  z-index: 1;
  display: grid; justify-items: center; gap: 1px;
  padding: 10px 14px 9px;
  border: 2px solid var(--vermillon);
  outline: 1px solid var(--vermillon);
  outline-offset: 3px;
  border-radius: 6px;
  color: var(--vermillon);
  font: 600 10.5px/1.35 var(--f-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: rotate(8deg);
  opacity: .82;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(rgba(0, 0, 0, .9) 55%, rgba(0, 0, 0, .55) 100%);
  mask-image: radial-gradient(rgba(0, 0, 0, .9) 55%, rgba(0, 0, 0, .55) 100%);
}
.fiche__stamp strong { font-family: var(--f-display); font-size: 17px; letter-spacing: .02em; text-transform: none; font-weight: 500; }
.fiche__stamp sup { font-size: .55em; vertical-align: .7em; }

.fiche__form { position: relative; z-index: 1; display: grid; gap: 26px; }
.fiche__title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  padding-right: 150px;
}
.fiche__hint { margin-top: -14px; font-size: 15px; color: var(--ink-soft); }

.fiche__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px 40px; align-items: start; }
.fiche__row--prenom { grid-template-columns: minmax(0, 1fr) 150px; }

/* Un champ : libellé lisible, ligne bien marquée, écriture manuscrite */
.champ { display: grid; gap: 6px; }
.champ label, .choix legend {
  font: 600 16px/1.35 var(--f-body);
  color: var(--ink);
}
.champ__opt { font-weight: 400; color: var(--ink-soft); }
.req { color: var(--vermillon); }
.champ input, .champ textarea {
  width: 100%;
  padding: 6px 12px 4px;
  min-height: 50px;
  border: 0;
  border-bottom: 2px solid rgba(38, 33, 30, .55);
  border-radius: 6px 6px 0 0;
  background: rgba(38, 33, 30, .045);
  color: var(--pen);
  font-family: var(--f-hand);
  font-size: 22px;
  line-height: 1.5;
  transition: border-color .2s, background-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
/* chiffres (âge, téléphone) : écriture normale, sans ambiguïté entre 1 et l, 0 et O */
.champ--num input { font-family: var(--f-body); font-size: 21px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.champ input::placeholder { font-family: var(--f-body); color: rgba(38, 33, 30, .32); }
.champ input[type="number"] { -moz-appearance: textfield; }
.champ input::-webkit-outer-spin-button, .champ input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.champ textarea {
  resize: vertical;
  min-height: 108px;
  border-bottom: 0;
  /* lignes de cahier sous le texte */
  background-image: repeating-linear-gradient(transparent 0 32px, rgba(38, 33, 30, .35) 32px 33px);
  background-attachment: local;
  line-height: 33px;
  padding: 0 12px;
  border-radius: 6px 6px 0 0;
}
.champ input:focus, .champ textarea:focus {
  outline: none;
  border-bottom: 2px solid var(--vermillon);
  background-color: rgba(232, 179, 39, .08);
}
.champ textarea:focus { border-bottom: 0; box-shadow: inset 0 -2px 0 var(--vermillon); }


/* Choix : cases dessinées à la main */
.choix { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.choix legend { width: 100%; padding: 0; margin-bottom: 10px; }
.coche {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-hand);
  font-size: 19px;
  color: var(--pen);
  cursor: pointer;
}
.coche input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.coche__box {
  position: relative; flex: none;
  width: 24px; height: 24px;
  border: 1.8px solid var(--ink);
  border-radius: 50% 46% 52% 48%;
  transition: background-color .2s;
}
.coche__box--square { border-radius: 4px 3px 5px 3px; }
/* la marque au stylo : une croix tracée en vermillon */
.coche__box::after {
  content: '';
  position: absolute; inset: -6px -8px -4px -4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M8 21 C12 24 15 29 17 33 C22 22 28 13 36 6' fill='none' stroke='%23B63731' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: scale(.4) rotate(-12deg);
  transition: opacity .2s, transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.coche input:checked + .coche__box::after { opacity: 1; transform: none; }
.coche input:focus-visible + .coche__box { outline: 2px solid var(--vermillon); outline-offset: 3px; }
.coche--line { align-items: flex-start; font-size: 18px; line-height: 1.45; }
.coche--line .coche__box { margin-top: 3px; }

/* Erreurs : écrites en vermillon sous le champ, seulement après une tentative d'envoi */
.champ__err { display: none; margin-top: 4px; font-size: 13.5px; color: var(--vermillon); }
.is-invalid .champ__err, .champ__err.is-shown { display: block; }
.is-invalid input, .is-invalid textarea { border-bottom-color: var(--vermillon); border-bottom-style: solid; }

.fiche__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.fiche__submit .btn[disabled] { opacity: .6; cursor: wait; }
.fiche__note { font-size: 15px; color: var(--ink-soft); }
.fiche__note strong { color: var(--ink); }
.fiche__legal { margin-top: -12px; font-size: 14px; color: var(--ink-soft); }
.fiche__status { min-height: 1.4em; font-size: 15px; color: var(--ink-soft); }
.fiche__status.is-error { color: var(--vermillon); }

/* Confirmation */
.fiche__done { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; padding: 30px 0 10px; text-align: center; }
.fiche__done:focus { outline: none; }
.fiche__done-stamp {
  padding: 10px 26px;
  border: 3px solid var(--vermillon);
  outline: 1.5px solid var(--vermillon); outline-offset: 4px;
  border-radius: 8px;
  color: var(--vermillon);
  font: 700 26px/1 var(--f-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: rotate(-6deg);
  mix-blend-mode: multiply;
  animation: tampon .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes tampon {
  0% { opacity: 0; transform: rotate(-14deg) scale(1.8); }
  100% { opacity: .9; transform: rotate(-6deg) scale(1); }
}
.fiche__done-title { font-family: var(--f-display); font-style: italic; font-size: clamp(24px, 2.6vw, 32px); margin-top: 10px; }

/* ----- 8. Pied de page ----- */
.site-footer {
  display: grid; justify-items: center; gap: 16px;
  padding: 52px var(--gutter) calc(52px + env(safe-area-inset-bottom, 0px));
  background: var(--ink-deep); color: var(--ivory-soft); text-align: center;
  border-top: 1px solid rgba(244, 236, 221, .08);
}
.site-footer__logo { color: var(--gold); }
.site-footer__logo svg { width: 76px; height: auto; }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 15px; }
.site-footer__nav a { text-decoration: none; }
.site-footer__nav a:hover { color: var(--ivory); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__copy { font-size: 13px; opacity: .7; }
.site-footer__about { max-width: 46ch; font-size: 14px; }
.site-footer__legal { font-size: 13px; }
.site-footer__legal a { text-decoration: none; }
.site-footer__legal a:hover { color: var(--ivory); text-decoration: underline; text-underline-offset: 4px; }
.fiche__legal a { color: inherit; text-underline-offset: 3px; }

/* Pages légales : sobres et lisibles */
.page-legale { background: var(--ivory); }
.legal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: 820px; margin: 0 auto; padding: 22px var(--gutter);
}
.legal-header__back { font-size: 15px; font-weight: 500; color: var(--vermillon); text-decoration: none; }
.legal-header__back:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal { max-width: 820px; margin: 0 auto; padding: 20px var(--gutter) 80px; color: var(--ink); }
.legal__title {
  font-family: var(--f-display); font-weight: 380;
  font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.015em;
  font-variation-settings: 'SOFT' 60, 'opsz' 144;
}
.legal__maj { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.legal__lead { margin-top: 28px; font-family: var(--f-display); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.45; }
.legal h2 { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--ink-line);
  font-family: var(--f-display); font-weight: 450; font-size: clamp(22px, 2.2vw, 27px); line-height: 1.2; }
.legal h3 { margin-top: 22px; font-weight: 600; font-size: 17px; }
.legal p, .legal ul { margin-top: 12px; font-size: 17px; line-height: 1.65; }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal li + li { margin-top: 4px; }
.legal a { color: var(--vermillon); text-underline-offset: 3px; }
.a-completer { background: #FFE45C; color: var(--ink); padding: 1px 4px; border-radius: 3px; }

/* ----- 9. Adaptations ----- */
@media (max-width: 900px) {
  :root { --header-h: 64px; --u: min(.62px, .092vw); }
  .site-nav { display: none; }

  .concept__grid { grid-template-columns: minmax(0, 1fr); }
  .isabelle { grid-template-columns: minmax(0, 1fr); }
  .portrait { width: min(340px, 86%); }
  .faq__answer { padding-right: 4px; }
  .suite__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  :root { --u: min(.5px, .1vw); }
  .site-header__wordmark { display: none; }
  .site-header__logo svg { width: 42px; }
  .site-header { gap: 12px; }
  .site-header__cta { padding: 9px 14px; font-size: 13px; }
  .scene { padding-top: 44px; padding-bottom: 44px; }
  .scene--hero { min-height: 0; padding-top: calc(var(--header-h) + 28px); padding-bottom: 36px; }
  .scene--concept { padding-top: 28px; }
  .scene--programme { padding-top: 0; }
  .scene--isabelle, .scene--fin { padding-top: 20px; }
  .scene--faq { padding-top: 0; }
  .facts { margin: 28px 0 40px; }
  .facts li { padding: 16px 6px; }
  .facts strong { font-size: 22px; }
  .facts span { font-size: 13.5px; }
  .concept__grid { gap: 32px; }
  .programme__title { letter-spacing: .16em; }
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .timeline li:nth-child(n) .tl__label { grid-column: 1; justify-self: start; text-align: left; width: 100%; padding-left: 0; }
  .timeline li:nth-child(n) .tl__label { margin-left: 7px; }
  .timeline li:nth-child(n) .tl__label > * { padding-left: 16px; padding-right: 0; }
  .timeline li:nth-child(n) .tl__label strong::after { transform-origin: left; }
  .concept__close .btn { width: 100%; max-width: 340px; }
  .concept__text > p.concept__who { text-align: left; }
  .timeline li:nth-child(n) .tl__icon { grid-column: 2; grid-row: 1; margin: 0; width: 52px; }
  .jeu img { width: min(100%, 360px); }
  .hero__actions .btn { width: 100%; max-width: 340px; }
  .billet { padding: 16px 26px 18px; }
  .evening { gap: 7px; padding: 5px 11px 5px 5px; }
  .evening__clock { width: 38px; height: 38px; }
  .evening__time { font-size: 16px; }
  .evening__glass { width: 16px; height: 26px; }
  .suite__steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .suite__steps li { grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 14px; padding: 16px 0; }
  .fiche { transform: none; margin-inline: -6px; }
  .fiche__row { grid-template-columns: minmax(0, 1fr); }
  .fiche__row--prenom { grid-template-columns: minmax(0, 1fr) 96px; gap: 22px 16px; }
  .fiche__title { padding-right: 0; }
  /* sur téléphone, le tampon rejoint le flux : il reste à l'intérieur du double filet */
  .fiche__stamp { position: relative; top: auto; right: auto; width: max-content; margin: 2px 4px 22px auto; transform: rotate(5deg); }
  .champ input, .champ textarea { font-size: 20px; }
  .fiche__submit .btn { width: 100%; }
}

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

@media print {
  .site-header, .evening, .grain, .dusk { display: none !important; }
  [data-tone="dark"], .scene { background: #fff !important; color: #000 !important; }
}
