/* ==========================================================================
   Frame — chronique d'une cabane en bord d'étang
   Recréation de la maquette Figma « A-Frame ». Trois mises en page, mêmes seuils
   que Figma Sites : desktop ≥ 1440, tablette 800–1439, mobile < 800.
   Les valeurs reprennent l'auto-layout Figma (flex, wrap, min/max) pour que la
   page se recompose entre deux seuils exactement comme l'original.
   ========================================================================== */

/* ---------- Polices ---------- */
@font-face { font-family: "Chillon"; src: url("../assets/fonts/chillon-regular.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Mortega"; src: url("../assets/fonts/mortega-regular.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "GT Kotoheim Mono"; src: url("../assets/fonts/gt-kotoheim-mono-medium-vf.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Poppins"; font-weight: 400; src: url("../assets/fonts/poppins-regular.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Poppins"; font-weight: 300; font-display: block; src: url("../assets/fonts/poppins-light-english.woff2") format("woff2"); unicode-range: U+0000-00A0, U+00A2-00A9, U+00AC-00AE, U+00B0-00B7, U+00B9-00BA, U+00BC-00BE, U+00D7, U+00F7, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-21BB, U+2212, U+2215, U+F8FF, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 300; font-display: block; src: url("../assets/fonts/poppins-light-rest-latin.woff2") format("woff2"); unicode-range: U+00A1, U+00AA-00AB, U+00AF, U+00B8, U+00BB, U+00BF-00D6, U+00D8-00F6, U+00F8-00FF, U+0131, U+0152-0153, U+02B0-02FF; }
@font-face { font-family: "Poppins"; font-weight: 300; font-display: block; src: url("../assets/fonts/poppins-light-latin-extended-a.woff2") format("woff2"); unicode-range: U+0100-0130, U+0132-0151, U+0154-017F; }
@font-face { font-family: "Poppins"; font-weight: 300; font-display: block; src: url("../assets/fonts/poppins-light-latin-extended-b.woff2") format("woff2"); unicode-range: U+0180-024F; }
@font-face { font-family: "Poppins"; font-weight: 300; font-display: block; src: url("../assets/fonts/poppins-light-latin-extended-additional.woff2") format("woff2"); unicode-range: U+1E00-1EFF; }
@font-face { font-family: "Poppins"; font-weight: 300; font-display: block; src: url("../assets/fonts/poppins-light-rest.woff2") format("woff2"); unicode-range: U+0250-02AF, U+0300-1DFF, U+1F00-1FFF, U+2070-2073, U+2075-20AB, U+20AD-2121, U+2123-218F, U+21BC-2211, U+2213-2214, U+2216-F8FE, U+F900-FEFE, U+FF00-FFFC, U+FFFE-FFFF; }

/* ---------- Variables (variables Figma) ---------- */
:root {
  --t: 1; /* facteur des tailles de texte, calculé dans le <head> : 1 jusqu'à 1440 × 900, 1,25 au plus */
  --green: #141d1f;
  --green-list: #162122;
  --green-deep: #101819;
  --light: #fbfffe;
  --light-70: rgba(251, 255, 254, 0.7);
  --light-40: rgba(251, 255, 254, 0.4);
  --light-20: rgba(251, 255, 254, 0.2);
  --light-10: rgba(251, 255, 254, 0.1);
  --light-1: rgba(251, 255, 254, 0.01);
  --dark: #16110e;
  --dark-70: rgba(22, 17, 14, 0.7);
  --dark-20: rgba(22, 17, 14, 0.2);
  --brown: #c7c3b7;
  --brown-deep: #a9a599;
  --brown-tag: #bdb9ad;

  --side: calc(100px * var(--t, 1));
  --ease: cubic-bezier(0, 0, 0.58, 1);

  --display: "Chillon", sans-serif;
  --hand: "Mortega", sans-serif;
  --mono: "GT Kotoheim Mono", sans-serif;
  --sans: "Poppins", sans-serif;

  font-synthesis: none;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { width: 100%; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; }
body { margin: 0; width: 100%; overflow-x: hidden; background: var(--green); font-family: ui-sans-serif, system-ui, sans-serif; }
h1, h2, p, blockquote, figure, dl, dd { margin: 0; font-size: inherit; font-weight: inherit; }
/* Comme Figma Sites : un mot trop long pour sa boîte peut être coupé */
h1, h2, p, dt, dd { word-break: break-word; }
img, video { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 100%;
  overflow: clip;
  background: var(--green);
}

/* Pictogrammes calés comme dans Figma : boîte positionnée + enveloppe en pourcentages */
.inset { position: absolute; display: block; }
.inset > img, .inset > svg, .inset > picture, .inset > picture > img { display: block; width: 100%; height: 100%; }
.glyph { position: absolute; display: block; left: 3px; right: 4px; top: 50%; transform: translateY(-50%); aspect-ratio: 33.2490234375 / 23; }

/* Libellés mono : l'espacement des lettres ne déborde pas après le dernier caractère */
.tracked::after { content: ""; margin-left: -0.04em; }

.mono { font-family: var(--mono); font-variation-settings: "wdth" 100; text-transform: uppercase; white-space: nowrap; }

.lead { width: 100%; font-family: var(--display); font-size: calc(24px * var(--t, 1)); line-height: 1.4; color: var(--light); }
.body { width: 100%; font-family: var(--sans); font-weight: 300; font-size: calc(16px * var(--t, 1)); line-height: 1.6; color: var(--light-70); }
.body--lg { font-size: calc(16px * var(--t, 1)); } /* paragraphes : même taille partout (16 px / 1,6) */

/* Remplissage d'un conteneur par une image ou une vidéo */
.fig__media, .prologue__photo { position: relative; width: 100%; flex-shrink: 0; }
.fig__media > img, .fig__media > video,
.prologue__photo > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
}

/* ==========================================================================
   En-tête
   ========================================================================== */
/* En-tête en diptyque (variante B du fichier Figma « Tests ») : le récit à gauche sur le vert du
   site, la photo à droite avec la navigation et le lieu posés dessus. Empilé sous 1100 px. */
.hero {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: minmax(0, calc(780px * var(--t, 1))) minmax(0, 1fr); /* sur grand écran, la photo prend la place gagnée */
  min-height: max(100svh, 640px);
}
/* espacements proportionnels à la hauteur de l'écran (bornés) : le récit tient dans l'écran dès ~850 px de haut */
.hero__panel { position: relative; display: flex; flex-direction: column; gap: clamp(24px, 5svh, calc(64px * var(--t, 1))); padding: 36px calc(120px * var(--t, 1)) 56px var(--side); }
/* barre du haut : logo, puis l'heure locale du terrain, séparés par un filet */
.hero__bar { align-self: flex-start; display: flex; align-items: center; gap: 18px; }
.hero__bar .clock { position: relative; width: auto; height: auto; padding: 0 0 0 19px; color: var(--light-70); }
.hero__bar .clock::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 14px; translate: 0 -50%; background: var(--light-20); }
/* espacements variés pour faire respirer le récit : surtitre collé au titre, puis de plus en plus d'air */
.hero__story { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: 100%; max-width: calc(560px * var(--t, 1)); }
.hero__eyebrow { margin-bottom: clamp(18px, 3.2svh, calc(32px * var(--t, 1))); }
.hero__title { margin-bottom: clamp(22px, 4.4svh, calc(44px * var(--t, 1))); }
.hero__intro { margin-bottom: clamp(28px, 6svh, calc(60px * var(--t, 1))); max-width: calc(500px * var(--t, 1)); }
.hero__eyebrow { white-space: nowrap; font-family: var(--mono); font-variation-settings: "wdth" 100; font-size: calc(14px * var(--t, 1)); line-height: 1; letter-spacing: calc(0.56px * var(--t, 1)); text-transform: uppercase; color: var(--light-70); }
.hero__title { position: relative; font-family: var(--display); font-size: calc(86px * var(--t, 1)); line-height: 1.04; color: var(--light); }
.hero__intro p { font-family: var(--sans); font-weight: 300; font-size: calc(16px * var(--t, 1)); line-height: 1.6; color: var(--light-70); }

.hero__media { position: relative; overflow: clip; box-shadow: inset 1px 0 0 var(--light-10); }
.hero__bg { position: absolute; inset: 0; overflow: clip; pointer-events: none; }
/* photo en portrait (3024 × 4032) : la cabane au milieu, le rétroviseur en bas ; sur les écrans très
   larges seule une bande horizontale est visible, calée pour garder la cabane et le haut du rétroviseur */
.hero__photo { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform-origin: 50% 55%; }
/* Parallax (ajout, absent de la maquette Figma) : la photo défile à 50 % de la vitesse de la
   page tant que l'en-tête est visible. Animation pilotée par le défilement, calculée par le
   compositeur (pas de script sur l'événement scroll, donc pas d'à-coups). Sans prise en charge
   (Firefox) ou avec « réduire les animations », la photo reste fixe comme sur l'original. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero { view-timeline: --hero block; }
    .hero__photo {
      animation: hero-parallax linear both;
      animation-timeline: --hero;
      animation-range: exit-crossing 0% exit-crossing 100%;
    }
  }
}
/* la photo descend moins vite que la page et s'approche en même temps (zoom), pendant que
   l'en-tête sort de l'écran */
@keyframes hero-parallax {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(32%) scale(1.22); }
}
.hero__fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 29, 31, 0.45) 0%, rgba(20, 29, 31, 0) 20%, rgba(20, 29, 31, 0) 60%, rgba(20, 29, 31, 0.8) 100%); }

/* Navigation, posée en haut à droite de la photo */
.nav { position: absolute; top: 32px; right: var(--side); z-index: 2; display: flex; gap: calc(16px * var(--t, 1)); }
.nav__logo { position: relative; display: flex; align-items: center; gap: 6px; }
.nav__mark { position: relative; width: 27px; height: 19px; flex-shrink: 0; }
.nav__mark > .inset { top: 0; left: 0.29%; right: 0.26%; bottom: 0.19%; }
.nav__name { font-family: var(--display); font-size: calc(18px * var(--t, 1)); line-height: 1.2; text-transform: uppercase; text-align: center; white-space: nowrap; color: var(--light); }

/* Survol : même rendu que le Smart Animate de Figma — ease-out 300 ms, couleurs
   interpolées en lumière linéaire (une transition CSS classique interpolerait en sRGB). */
@property --hover { syntax: "<number>"; inherits: true; initial-value: 0; }

/* marges corrigées optiquement : les capitales sont hautes dans leur ligne, on met plus en haut qu'en bas */
.btn { --hover: 0; position: relative; display: flex; text-decoration: none; justify-content: center; align-items: center; padding: calc(8.5px * var(--t, 1)) calc(14px * var(--t, 1)) calc(7.5px * var(--t, 1)) calc(13.5px * var(--t, 1)); cursor: pointer; flex-shrink: 0; transition: --hover 0.3s var(--ease) 10ms; }
.btn:hover { --hover: 1; }
/* la ligne de texte est rognée à la hauteur des capitales : marges haut et bas vraiment égales,
   quelle que soit la taille du texte (navigateurs qui ne le gèrent pas : marges asymétriques ci-dessus) */
@supports (text-box: trim-both cap alphabetic) {
  .btn { padding: calc(10px * var(--t, 1)) calc(14px * var(--t, 1)) calc(10px * var(--t, 1)) calc(13.5px * var(--t, 1)); }
  .btn__label { text-box: trim-both cap alphabetic; }
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: color-mix(in srgb-linear, var(--light) calc(var(--hover) * 100%), var(--light-10));
  -webkit-backdrop-filter: blur(calc(2px - 2px * var(--hover)));
  backdrop-filter: blur(calc(2px - 2px * var(--hover)));
  pointer-events: none;
}
.btn__label {
  position: relative;
  font-family: var(--mono);
  font-variation-settings: "wdth" 100;
  font-size: calc(13px * var(--t, 1));
  line-height: 1;
  letter-spacing: calc(0.52px * var(--t, 1));
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: color-mix(in srgb-linear, var(--dark) calc(var(--hover) * 100%), var(--light));
}

/* Lieu, en bas à gauche de la photo : carte de l'Oise réduite, horloge, région */
/* colonne centrée en bas à droite, alignée sur la navigation : horloge, carte, région */
/* en haut à gauche de la photo, sur le ciel, en face de la navigation */
/* Lieu (chapitre 01) : horloge, carte de l'Oise, région, en colonne */
.place { position: relative; align-self: flex-start; width: auto; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.place__where { display: contents; }
.place__map { zoom: 1.15; } /* carte légèrement agrandie */

.clock { width: calc(175px * var(--t, 1)); height: calc(28px * var(--t, 1)); flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 8px; }
.clock__time { font-family: var(--mono); font-variation-settings: "wdth" 100; font-size: calc(14px * var(--t, 1)); letter-spacing: calc(0.56px * var(--t, 1)); font-variant-numeric: tabular-nums; }

.map { position: relative; width: 278px; height: 218px; flex-shrink: 0; }
.map > span, .map__pin > span { position: absolute; display: block; }
.map__shadow { left: 17.62%; right: 11.09%; top: 56.19%; bottom: 0; }
.map__shadow > .inset { top: 0; left: -0.21%; right: -0.25%; bottom: -0.52%; }
.map__label { left: 27.16%; right: 25%; top: 0; bottom: 88.52%; }
.map__label > .inset { top: -2%; left: -0.22%; right: -0.24%; bottom: -1.54%; }
.map__outline { left: 0; right: 0; top: 0.13%; bottom: 7.21%; }
.map__outline > .inset { inset: 0; }
.map__pin { height: 24px; left: 48.92%; right: 42.45%; bottom: 83px; overflow: clip; }
.map__pin-dot { width: 10px; left: 7px; top: 7px; bottom: 6px; }
.map__pin-dot > .inset { top: 0; left: 6.7%; right: 6.7%; bottom: 25%; }
.map__pin > .map__pin-ring { inset: 0; }

.hero__region { position: relative; flex-shrink: 0; display: flex; justify-content: center; align-items: center; padding: 6px 16px; }
.hero__region p {
  position: relative;
  font-family: var(--mono);
  font-variation-settings: "wdth" 100;
  font-size: calc(14px * var(--t, 1));
  letter-spacing: calc(0.56px * var(--t, 1));
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: var(--light);
}

.hero__region { padding: 0; }

/* Chiffres en cases, comme les tableaux des chapitres */
.facts { position: relative; width: 100%; display: flex; }
/* filets portés par les cases : pas de bloc gris visible avant l'apparition des chiffres */
.fact + .fact { border-left: 1px solid var(--light-10); }
.fact { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 20px; background: var(--green-deep); }
.fact__value { width: 100%; font-family: var(--display); font-size: calc(30px * var(--t, 1)); line-height: 1; text-transform: uppercase; white-space: nowrap; color: var(--light); }
.fact__label { width: 100%; font-family: var(--mono); font-variation-settings: "wdth" 100; font-size: calc(14px * var(--t, 1)); line-height: 1; letter-spacing: calc(0.56px * var(--t, 1)); text-transform: uppercase; color: var(--light-40); }

/* « Commencer le récit » : bouton plein, qui s'inverse au survol */
/* « Commencer le récit » : lien discret en bas du panneau, aligné sur le bas du bloc lieu */
.hero__start {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-variation-settings: "wdth" 100;
  font-size: calc(12px * var(--t, 1));
  line-height: 1;
  letter-spacing: calc(0.48px * var(--t, 1));
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--light-70);
  transition: color 0.3s var(--ease);
}
.hero__start > span:first-child { padding-bottom: 4px; background: linear-gradient(var(--light), var(--light)) left bottom / 0% 1px no-repeat; transition: background-size 0.5s var(--expo); }
.hero__start:hover, .hero__start:focus-visible { color: var(--light); }
.hero__start:hover > span:first-child, .hero__start:focus-visible > span:first-child { background-size: 100% 1px; }

.hero__start-arrow { display: block; width: 10px; height: 12px; overflow: hidden; }
.hero__start-arrow svg { display: block; width: 10px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.motion .hero__start-arrow svg { animation: start-arrow 2s var(--expo) infinite; }

/* ==========================================================================
   Prologue
   ========================================================================== */
.prologue {
  position: relative;
  width: 100%;
  max-width: calc(1440px * var(--t, 1));
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  row-gap: 100px;
  align-content: flex-start;
  padding: 140px var(--side);
}
.prologue__main { position: relative; flex: 1 0 0; min-width: 540px; max-width: 860px; display: flex; align-items: flex-start; gap: 100px; }
.prologue__label { position: relative; width: 86px; height: 382px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.prologue__label span { flex: 0 0 auto; display: block; transform: rotate(-90deg); font-family: var(--display); font-size: calc(86px * var(--t, 1)); line-height: 1; white-space: nowrap; color: var(--light-10); }
.prologue__text { position: relative; flex: 1 0 0; min-width: 1px; }
.prologue__text-in { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-right: 40px; }
.prologue__aside { position: relative; flex: 1 0 0; min-width: 160px; max-width: 240px; display: flex; flex-direction: column; align-items: center; }
.prologue__photo { height: 540px; }

/* ==========================================================================
   Sommaire des chapitres
   ========================================================================== */
.chapters { position: relative; width: 100%; max-width: calc(1440px * var(--t, 1)); flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 60px 160px; }
.chapters__list { width: 100%; display: flex; flex-direction: column; align-items: flex-start; background: var(--green-list); }

.row {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  row-gap: 24px;
  align-content: baseline;
  padding: 32px 64px 48px;
  cursor: pointer;
  background-color: transparent;
  transition: background-color 0.3s var(--ease);
}
.row::after { content: ""; position: absolute; inset: 0; border-bottom: 1px solid var(--light-10); pointer-events: none; }
.row:last-child::after { border-bottom-color: transparent; }
.row:hover { background-color: var(--light-1); }

.row__main { position: relative; display: flex; align-items: baseline; flex-wrap: wrap; gap: 40px; align-content: baseline; }
.row__title { position: relative; display: flex; align-items: flex-end; gap: 40px; }
.row__num { width: 38px; flex-shrink: 0; font-family: var(--display); font-size: calc(18px * var(--t, 1)); line-height: 1.2; color: var(--light); }
.row__name { flex-shrink: 0; font-family: var(--display); font-size: calc(36px * var(--t, 1)); line-height: 1.2; white-space: nowrap; color: var(--light); }

.thumbs { position: relative; display: flex; align-items: center; }
.thumb { position: relative; width: 52px; height: 56px; flex-shrink: 0; }
.thumb:not(:last-child) { margin-right: -30px; }
.thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.thumb--r8, .thumb--l4 { display: flex; align-items: center; justify-content: center; }
.thumb--r8 { width: 59.288px; height: 62.692px; }
.thumb--l4 { width: 55.78px; height: 59.491px; }
.thumb--r8 > img, .thumb--l4 > img { position: relative; inset: auto; flex: 0 0 auto; width: 52px; height: 56px; }
.thumb--r8 > img { transform: rotate(8deg); }
.thumb--l4 > img { transform: rotate(-4deg); }
.thumb--crop { overflow: hidden; }
.thumb--crop > .crop-structure { top: -11%; left: 0; width: 100%; height: 143.95%; object-fit: fill; }
.thumb--crop > .crop-aerienne { top: -23.51%; left: -0.01%; width: 100.02%; height: 123.4%; object-fit: fill; }

.row__date { position: relative; display: flex; align-items: center; gap: 10px; }
.row__icon { position: relative; width: 24px; height: 24px; flex-shrink: 0; overflow: clip; }
.row__icon svg { position: absolute; left: 4px; top: 3px; width: 16px; height: 17px; }
.row__date p {
  font-family: var(--mono);
  font-variation-settings: "wdth" 100;
  font-size: calc(14px * var(--t, 1));
  line-height: 1;
  letter-spacing: calc(0.56px * var(--t, 1));
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
  color: var(--light-40);
}

/* ==========================================================================
   Chapitres — éléments communs
   ========================================================================== */
.chapter { position: relative; width: 100%; max-width: calc(1440px * var(--t, 1)); flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 80px var(--side) 100px; }
.chapter--01 { padding-top: 100px; padding-bottom: 80px; }
.chapter--06 { padding-bottom: 160px; }

.ctop { position: relative; width: 100%; flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; row-gap: 24px; align-content: center; padding: 16px 0; }
.ctop::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: -0.5px; border-bottom: 1px solid var(--light-10); pointer-events: none; }
.ctop__label { position: relative; display: flex; align-items: center; gap: 4px; }
.ctop__icon { position: relative; width: 24px; height: 24px; flex-shrink: 0; overflow: clip; }
.ctop__icon .inset { top: 0; left: 0.45%; right: 0.42%; bottom: 0.31%; }
.ctop__label p { font-family: var(--display); font-size: calc(16px * var(--t, 1)); line-height: 1; text-transform: uppercase; white-space: nowrap; color: var(--light); }
.ctop__date { position: relative; display: flex; align-items: center; gap: 12px; }
.ctop__date p, .journal__today p {
  font-family: var(--mono);
  font-variation-settings: "wdth" 100;
  font-size: calc(14px * var(--t, 1));
  line-height: 1;
  letter-spacing: calc(0.56px * var(--t, 1));
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--light-40);
}

/* Petites rayures obliques */
.stripes { position: relative; display: block; width: 64px; height: 8px; flex-shrink: 0; overflow: clip; }
.stripes__track { position: absolute; left: -4.49px; right: -4.49px; top: -29.7px; bottom: -30.7px; display: flex; align-items: center; justify-content: center; }
.stripes__bars { flex: 0 0 auto; width: 57.984375px; height: 45.46875px; display: flex; align-items: center; gap: 2px; transform: rotate(30deg); }
.stripes__bars i { display: block; width: 2px; height: 100%; flex-shrink: 0; background: var(--light-10); }
.stripes--dark .stripes__bars i { background: var(--dark-20); }

/* Titre + compteur */
.ctitle { position: relative; width: 100%; flex-shrink: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 32px 60px; align-content: baseline; padding-top: 48px; }
.ctitle h2 { position: relative; flex-shrink: 0; font-family: var(--display); font-size: calc(86px * var(--t, 1)); line-height: 1; white-space: nowrap; color: var(--light); }
.ctitle--center { flex-direction: column; flex-wrap: nowrap; justify-content: center; align-items: center; align-content: normal; gap: 24px; }
.ctitle--center h2 { text-align: center; }

.counter { position: relative; width: calc(82px * var(--t, 1)); height: calc(26px * var(--t, 1)); flex-shrink: 0; }
.counter__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.counter__num {
  position: absolute;
  left: calc(50% - 1px);
  top: calc(50% - 9px * var(--t, 1));
  transform: translateX(-50%);
  font-family: var(--mono);
  font-variation-settings: "wdth" 100;
  font-size: calc(18px * var(--t, 1));
  line-height: 1;
  letter-spacing: calc(0.72px * var(--t, 1));
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: var(--light-70);
}
.counter__corner { position: absolute; width: 10px; height: 10px; }
.counter__corner > .inset { top: -5%; left: 0; right: -5%; bottom: 0; }
.counter__corner--tr { right: 0; top: 0; }
.counter__corner--bl { left: 0; bottom: 0; transform: rotate(180deg); }

/* Figures et légendes */
.fig { position: relative; width: 100%; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.cap { position: relative; width: 100%; flex-shrink: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 32px; align-content: baseline; }
.cap--stack { flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; }
.cap__label {
  flex-shrink: 0;
  font-family: var(--mono);
  font-variation-settings: "wdth" 100;
  font-size: calc(14px * var(--t, 1));
  line-height: 1;
  letter-spacing: calc(0.56px * var(--t, 1));
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--light-40);
}
.cap__text { flex: 1 0 0; min-width: 200px; font-family: var(--sans); font-weight: 300; font-size: calc(16px * var(--t, 1)); line-height: 1.4; color: var(--light); }
.cap--stack .cap__text { flex: none; width: 100%; min-width: 100%; }
.cap__text--spans { line-height: 0; }
.cap__text--spans span { line-height: 1.4; }

/* Tableaux de cotes */
.table { position: relative; width: 100%; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; }
.table__row { position: relative; width: 100%; flex-shrink: 0; display: flex; justify-content: space-between; align-items: baseline; padding: 20px 16px; background: var(--green-deep); }
.table__row:not(:last-child)::after { content: ""; position: absolute; inset: 0; border-bottom: 1px solid var(--light-10); pointer-events: none; }
.table dt, .stat__label { font-family: var(--mono); font-variation-settings: "wdth" 100; font-size: calc(14px * var(--t, 1)); text-transform: uppercase; white-space: nowrap; color: var(--light-40); }
.table dd, .stat__value { font-family: var(--display); font-size: calc(18px * var(--t, 1)); white-space: nowrap; color: var(--light); }

/* ==========================================================================
   Chapitre 01 — Le terrain
   ========================================================================== */
.terrain { position: relative; width: 100%; flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; row-gap: 80px; align-content: center; padding-top: 80px; }
.terrain__left { position: relative; flex: 1 0 0; min-width: 360px; max-width: 600px; }
.terrain__left-in { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 64px; padding: 40px 40px 0 0; }
.terrain__right { position: relative; flex: 1 0 0; min-width: 360px; max-width: 480px; display: flex; flex-direction: column; align-items: center; gap: 64px; }

.badge { position: relative; flex-shrink: 0; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 6px 16px; background: var(--green-deep); }
.badge__icon { position: relative; width: 24px; height: 24px; flex-shrink: 0; overflow: clip; }
.badge__icon svg { position: absolute; }
.badge__ring-20 { inset: 2px; width: 20px; height: 20px; }
.badge__ring-14 { left: 5px; top: 5px; width: 14px; height: 14px; }
.badge__ring-8 { inset: 8px; width: 8px; height: 8px; }
.badge__text { font-family: var(--mono); font-variation-settings: "wdth" 100; font-size: calc(14px * var(--t, 1)); line-height: 1; letter-spacing: calc(0.56px * var(--t, 1)); text-transform: uppercase; white-space: nowrap; color: var(--light); }

.quote--terrain { position: relative; width: 100%; flex-shrink: 0; display: flex; align-items: flex-start; padding-top: 120px; }
.quote--terrain p { flex: 1 0 0; min-width: 1px; max-width: 900px; font-family: var(--display); font-size: calc(30px * var(--t, 1)); line-height: 1.4; color: var(--light); }

/* ==========================================================================
   Chapitre 02 — Les fondations
   ========================================================================== */
.fondations, .plancher { position: relative; width: 100%; flex-shrink: 0; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; row-gap: 120px; align-content: flex-start; padding-top: 100px; }
.fondations__left { position: relative; flex: 1 0 0; min-width: 360px; max-width: 600px; }
.fondations__left-in { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 64px; padding: 40px 40px 0 0; }
.fondations__right { position: relative; flex: 1 0 0; min-width: 360px; max-width: 440px; display: flex; flex-direction: column; align-items: center; }
.plancher__left { position: relative; flex: 1 0 0; min-width: 360px; max-width: 500px; }
.plancher__left-in { width: 100%; display: flex; flex-direction: column; align-items: flex-start; padding: 40px 40px 0 0; }
.plancher__right { position: relative; flex: 1 0 0; min-width: 360px; max-width: 620px; display: flex; flex-direction: column; align-items: center; }

/* ==========================================================================
   Chapitre 03 — La structure
   ========================================================================== */
.versions { position: relative; width: 100%; flex-shrink: 0; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; row-gap: 60px; align-content: flex-start; padding: 80px 0; }
.versions__list { position: relative; flex: 1 0 0; min-width: 120px; max-width: 260px; }
.versions__list-in { width: 100%; display: flex; flex-direction: column; align-items: flex-start; padding-right: 40px; }
.versions__items { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.versions__list p { font-family: var(--mono); font-variation-settings: "wdth" 100; font-size: calc(14px * var(--t, 1)); text-transform: uppercase; white-space: nowrap; color: var(--light); opacity: 0.5; }
.versions__quote { position: relative; flex: 1 0 0; min-width: 360px; max-width: 860px; display: flex; flex-direction: column; align-items: center; }
.versions__quote p { width: 100%; font-family: var(--display); font-size: calc(30px * var(--t, 1)); line-height: 1.4; color: var(--light); }

.board { position: relative; width: 100%; flex-shrink: 0; }
.board__paper { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.04; pointer-events: none; }
.board__inner { position: relative; width: 100%; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; row-gap: 40px; align-content: flex-start; padding: 40px; }

.sketch { position: relative; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.sketch--face { justify-content: flex-end; align-items: flex-end; }
.sketch__art { position: relative; flex-shrink: 0; mix-blend-mode: screen; }
.sketch__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.sketch--structure .sketch__art { width: 300px; height: 300px; }
.sketch--face .sketch__art { width: 390px; height: 390px; }
.sketch--terrasse .sketch__art { width: 330px; height: 330px; }

.sketch__note { position: absolute; display: flex; align-items: center; gap: 10px; }
.sketch__note p, .sketch__auvent p { flex-shrink: 0; font-family: var(--hand); font-size: calc(16px * var(--t, 1)); line-height: 1; white-space: nowrap; color: var(--light); }
.sketch__note--structure { left: 50%; top: 0; transform: translateX(-50%); }
.sketch__note--face { right: 70px; bottom: 20px; justify-content: flex-end; align-items: flex-end; }
.sketch__note--terrasse { left: 70px; bottom: 0; }
.sketch__cross { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.sketch__cross img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sketch__circle { position: absolute; left: calc(50% + 1px); top: 50%; width: 106px; height: 30px; transform: translate(-50%, -50%); }
.sketch__circle > .inset { top: -1.67%; left: -0.47%; right: -0.47%; bottom: -1.67%; }
.sketch__circle .sketch__circle-sm { display: none; }
.sketch__auvent { position: absolute; right: 40px; top: 49.92px; width: 74px; height: 77px; }
.sketch__auvent p { position: absolute; left: 0; top: 0; }
.sketch__auvent svg { position: absolute; left: 42.75px; top: 16px; width: 25.5px; height: 61.136px; }

.fold { position: absolute; right: 0; bottom: 0.08px; width: 134px; height: 134px; }
.fold__corner { position: absolute; left: 14px; top: 14px; width: 120px; height: 120px; }
.fold__title, .fold__version { position: absolute; display: flex; align-items: center; justify-content: center; }
.fold__title { left: 44px; right: 5.15px; top: 42px; bottom: 7.15px; }
.fold__version { right: 11.21px; top: 7px; width: 48.3px; height: 48.3px; }
.fold__title > div, .fold__version > div { flex: 0 0 auto; display: block; transform: rotate(-45deg); }
.fold__title > div { width: 104px; height: 16px; }
.fold__title p { font-family: var(--hand); font-size: calc(16px * var(--t, 1)); line-height: 1; text-align: center; white-space: nowrap; color: var(--dark); }
.fold__version p { font-family: var(--hand); font-size: calc(10px * var(--t, 1)); line-height: 1; text-align: right; white-space: nowrap; color: var(--light); }

.montage { position: relative; width: 100%; flex-shrink: 0; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; row-gap: 60px; align-content: flex-start; padding-top: 80px; }
.montage__left { position: relative; flex: 1 0 0; min-width: 360px; max-width: 600px; }
.montage__left-in { width: 100%; display: flex; flex-direction: column; align-items: flex-start; padding-right: 40px; }
.montage__right { position: relative; flex: 1 0 0; min-width: 360px; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 64px; }
.plus { position: absolute; left: -12px; top: -11.78px; width: 24px; height: 24px; overflow: clip; }
.plus svg { position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; }

.ossature { position: relative; width: 100%; flex-shrink: 0; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; row-gap: 100px; align-content: flex-start; padding-top: 100px; }
.ossature__left { position: relative; flex: 1 0 0; min-width: 360px; max-width: 730px; }
.ossature__left-in { width: 100%; display: flex; flex-direction: column; align-items: flex-start; padding-right: 40px; }
.ossature__right { position: relative; flex: 1 0 0; min-width: 360px; max-width: 440px; display: flex; flex-direction: column; align-items: center; }

/* ==========================================================================
   Chapitre 04 — L'isolation
   ========================================================================== */
.isolation { position: relative; width: 100%; flex-shrink: 0; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; row-gap: 24px; align-content: flex-start; padding-top: 80px; }
.isolation__logo { position: relative; flex-shrink: 0; display: flex; align-items: center; padding: 40px 80px 0 0; }
.isolation__badge { position: relative; width: 138px; height: 153px; flex-shrink: 0; overflow: clip; border-radius: 0 0 100px 100px; filter: drop-shadow(8px 8px 0 #101819); }
.isolation__badge img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.isolation__col { position: relative; flex: 1 0 0; min-width: 360px; max-width: 600px; }
.isolation__col-in { width: 100%; display: flex; flex-direction: column; align-items: flex-start; padding-right: 40px; }

.toiture { position: relative; width: 100%; flex-shrink: 0; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 54px 48px; align-content: flex-end; padding-top: 100px; }
.toiture__fig { position: relative; flex: 1 0 0; min-width: 280px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.toiture__fig--main { min-width: 320px; }

/* ==========================================================================
   Chapitre 05 — L'aménagement
   ========================================================================== */
.amenagement { position: relative; width: 100%; flex-shrink: 0; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; row-gap: 120px; align-content: flex-start; padding-top: 100px; }
.amenagement__left { position: relative; flex: 1 0 0; min-width: 360px; max-width: 620px; }
.amenagement__left-in { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 64px; padding-right: 60px; }
.amenagement__text { position: relative; width: 100%; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; }
.amenagement__figs { position: relative; width: 100%; flex-shrink: 0; min-width: 280px; display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap; gap: 40px; align-content: flex-start; }
.amenagement__fig { position: relative; flex: 1 0 0; min-width: 200px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.amenagement__sketch { position: relative; flex: 1 0 0; min-width: 400px; max-width: 520px; height: 680px; display: flex; flex-direction: column; align-items: center; }
.amenagement__sketch > div { position: relative; flex: 1 0 0; min-height: 1px; width: 100%; opacity: 0.5; }
.amenagement__sketch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

/* ==========================================================================
   Chapitre 06 — Le résultat
   ========================================================================== */
.resultat-quote { position: relative; width: 100%; flex-shrink: 0; display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap; row-gap: 120px; align-content: flex-start; padding-top: 80px; }
.resultat-quote blockquote { position: relative; flex: 1 0 0; min-width: 1px; max-width: 720px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.resultat-quote p { width: 100%; font-family: var(--display); font-size: calc(30px * var(--t, 1)); line-height: 1.4; text-align: center; color: var(--light); }

.resultat { position: relative; width: 100%; flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; align-content: center; padding-top: 80px; }
.resultat__stats { position: relative; flex: 1 0 0; min-width: 220px; max-width: 280px; }
.resultat__stats-in { width: 100%; display: flex; flex-direction: column; align-items: flex-start; }
.resultat__stats--left .resultat__stats-in { padding: 0 40px 60px 0; }
.resultat__stats--right .resultat__stats-in { padding: 60px 0 0 40px; }
.stat { position: relative; width: 100%; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; background: var(--green-deep); }
.stat:not(:last-child)::after { content: ""; position: absolute; inset: 0; border-bottom: 1px solid var(--light-10); pointer-events: none; }

.resultat__video { position: relative; flex: 1 0 0; min-width: 480px; max-width: 560px; height: 800px; display: flex; flex-direction: column; align-items: center; gap: 64px; }
.resultat__player { position: relative; flex: 1 0 0; min-height: 1px; width: 100%; }
.resultat__player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vcorner { position: absolute; }
.vcorner--outer-bl { left: -2px; bottom: -1.92px; width: 46px; height: 46px; transform: rotate(180deg); }
.vcorner--outer-bl > .inset { top: -13.04%; left: -14.32%; right: -13.04%; bottom: -14.32%; }
.vcorner--outer-tr { right: -2px; top: -2px; width: 46px; height: 46px; }
.vcorner--outer-tr > .inset { top: -17.39%; left: -9.97%; right: -17.39%; bottom: -9.97%; }
.vcorner--inner-tr { right: -2px; top: -2.08px; width: 42px; height: 42px; }
.vcorner--inner-tr > .inset { top: -7.14%; left: -12.27%; right: -4.76%; bottom: -9.89%; }
.vcorner--inner-bl { left: -2px; bottom: -1.92px; width: 42px; height: 42px; transform: rotate(180deg); }
.vcorner--inner-bl > .inset { top: -11.9%; left: -2.74%; right: -14.29%; bottom: -5.13%; }

.epilogue { position: relative; width: 100%; flex-shrink: 0; display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap; row-gap: 120px; align-content: flex-start; padding-top: 60px; }
.epilogue__text { position: relative; flex: 1 0 0; min-width: 1px; max-width: 720px; font-family: var(--sans); font-weight: 300; font-size: calc(16px * var(--t, 1)); line-height: 1.6; color: var(--light-70); }

/* ==========================================================================
   Journal de bord
   ========================================================================== */
.journal { position: relative; width: 100%; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; background: var(--brown); border-radius: 20px 20px 0 0; }
.journal__mark { position: relative; width: 100%; display: flex; justify-content: flex-end; align-items: flex-start; padding: 0 var(--side); }
.journal__bookmark { position: relative; display: block; width: 80px; height: 95px; flex-shrink: 0; }
.journal__bookmark > .inset { top: 0; left: 0; right: -7.5%; bottom: -4.21%; }

.journal__head { position: relative; width: 100%; max-width: calc(1440px * var(--t, 1)); flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 40px var(--side) 80px; }
.journal__titlebar { position: relative; width: 100%; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; row-gap: 40px; align-content: baseline; }
.journal__title { position: relative; flex: 1 0 0; min-width: 500px; font-family: var(--display); font-size: calc(110px * var(--t, 1)); line-height: 1; color: var(--dark); }
.journal__today { position: relative; display: flex; align-items: center; gap: 12px; }
.journal__today p { color: var(--dark-70); }
.journal__intro { position: relative; width: 100%; display: flex; flex-direction: column; align-items: flex-start; padding: 48px 0 64px; }
.journal__intro::after { content: ""; position: absolute; inset: 0; border-bottom: 1px solid var(--dark-20); pointer-events: none; }
.journal__intro > div { position: relative; width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: flex-start; }
.journal__intro p { width: 100%; font-family: var(--sans); font-weight: 300; font-size: calc(16px * var(--t, 1)); line-height: 1.6; color: var(--dark); }

.journal__grid {
  position: relative;
  width: 100%;
  max-width: calc(1440px * var(--t, 1));
  flex-shrink: 0;
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, fit-content(100%));
  gap: 72px 32px; /* rangées plus aérées que les colonnes */
  padding: 0 var(--side) 100px;
}

.jcard { position: relative; min-width: 260px; justify-self: stretch; align-self: flex-start; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.jcard--next { height: 540px; align-self: auto; gap: 0; }
.jnext { position: relative; flex: 1 0 0; min-height: 1px; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--brown-deep); }
.jnext__spark { position: absolute; width: 15.657px; height: 13.57px; }
.jnext__spark--a { left: -8px; top: -5.78px; }
.jnext__spark--b { right: -7.66px; bottom: -6.79px; }
.jnext__words { position: relative; width: 127.026px; height: 119.725px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.jnext__words > div { flex: 0 0 auto; display: block; transform: rotate(-10deg); font-family: var(--hand); font-size: calc(34px * var(--t, 1)); line-height: 1; text-align: center; white-space: nowrap; color: var(--dark); }
.jnext__swoosh { position: relative; width: 93.4px; height: 28.4px; flex-shrink: 0; }

.jcard__media { position: relative; width: 100%; height: 440px; flex-shrink: 0; }
.jcard__media--tonte { background: #d9d9d9; }
.jcard__tape { position: absolute; left: 8px; right: 8px; top: -7px; height: 99px; }
.jcard__tape > .inset { top: -2.02%; left: -0.53%; right: -0.53%; bottom: -2.02%; }
.jcard__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.jcard__bar { position: absolute; left: 0; right: 0; height: 60px; background: var(--light); }
.jcard__bar--bottom { bottom: 0; }
.jcard__bar--top { top: 0; }
.jcard__frame { position: absolute; inset: 0; border: 10px solid var(--light); }

.jcard__meta { position: relative; width: 100%; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; }
.jtag { position: relative; width: 100%; display: flex; justify-content: space-between; align-items: flex-start; padding: 4px 6px; background: var(--brown-tag); }
.jtag p { font-family: var(--mono); font-variation-settings: "wdth" 100; font-size: calc(14px * var(--t, 1)); text-transform: uppercase; white-space: nowrap; color: var(--dark-70); }
.jtag__season { position: relative; display: flex; align-items: center; gap: 6px; }
.jtag__icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; overflow: clip; }
.jtag__icon svg { position: absolute; }
.jtag__icon--ete svg { left: 1px; top: 1px; width: 14px; height: 14px; }
.jtag__icon--hiver svg { left: 1px; top: 1.23px; width: 13.772px; height: 13.772px; }
.jtag__icon--printemps svg { left: 1px; top: 2px; width: 14px; height: 10.98px; }
.jcard__text {
  display: -webkit-box;
  width: 100%;
  height: calc(44px * var(--t, 1));
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-family: var(--sans);
  font-weight: 300;
  font-size: calc(16px * var(--t, 1));
  line-height: 1.4;
  color: var(--dark);
}

/* ==========================================================================
   Pied de page
   ========================================================================== */
.footer { position: relative; width: 100%; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; background: var(--brown); }
.footer__inner { position: relative; width: 100%; max-width: calc(1440px * var(--t, 1)); display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; row-gap: 48px; align-content: flex-end; padding: 60px var(--side); }
.footer__inner::before { content: ""; position: absolute; inset: 0; border-top: 1px solid var(--dark-20); pointer-events: none; }
.footer__about { position: relative; flex: 1 0 0; min-width: 360px; max-width: 480px; }
.footer__about-in { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-right: 40px; }
.footer__brand { position: relative; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer__logo { position: relative; display: flex; align-items: center; gap: 12px; }
.footer__mark { position: relative; width: 40px; height: 40px; flex-shrink: 0; overflow: clip; }
.footer__mark .inset { top: 0; left: 0.24%; right: 0.22%; bottom: 0.16%; }
.footer__title { width: 100%; min-width: 100%; font-family: var(--display); font-size: calc(36px * var(--t, 1)); line-height: 1.2; color: var(--dark); }
.footer__text { width: 100%; font-family: var(--sans); font-weight: 300; font-size: calc(16px * var(--t, 1)); line-height: 1.6; color: var(--dark-70); }
.footer__credit { position: relative; display: flex; justify-content: center; align-items: center; }
.footer__credit p { font-family: var(--sans); font-weight: 300; font-size: calc(16px * var(--t, 1)); line-height: 1.4; white-space: nowrap; color: var(--dark-70); }

/* ==========================================================================
   Tablette — 800 à 1439 px
   ========================================================================== */
@media (width < 1440px) {
  :root { --side: 60px; }


  .prologue { padding: 80px 60px; }
  .prologue__main { flex-direction: column; gap: 40px; }
  .prologue__label { width: auto; height: auto; display: block; }
  .prologue__label span { transform: none; font-size: calc(72px * var(--t, 1)); }
  .prologue__aside { max-width: none; }
  .prologue__photo { height: 440px; }

  .chapters { padding: 80px 60px; }
  .row { padding: 32px 32px 48px; }

  .chapter, .chapter--01 { padding: 80px 60px; }
  .chapter--06 { padding-bottom: 120px; }
  .ctitle h2 { font-size: calc(72px * var(--t, 1)); }

  .terrain { padding-top: 24px; }
  .quote--terrain { flex-direction: column; padding-top: 100px; }
  .quote--terrain p { flex: none; width: 100%; }

  .fondations { padding-top: 24px; row-gap: 100px; }
  .plancher { padding-top: 60px; row-gap: 80px; }

  .versions { padding: 80px 0 60px; }
  .board__inner { justify-content: center; gap: 40px 128px; }
  .sketch__circle { width: 68px; height: 19.245px; top: calc(50% - 5.38px); }
  .sketch__circle .sketch__circle-lg { display: none; }
  .sketch__circle .sketch__circle-sm { display: block; }

  .ossature { padding-top: 80px; row-gap: 80px; }

  .isolation { padding-top: 48px; }
  .toiture { padding-top: 80px; }

  .amenagement { padding-top: 48px; row-gap: 80px; }

  .resultat { justify-content: center; column-gap: 136px; padding-top: 60px; }
  .resultat__stats--right .resultat__stats-in { padding: 60px 0 0; }

  .journal__title { font-size: calc(86px * var(--t, 1)); }
  .journal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, fit-content(100%)); padding: 0 60px 80px; }
}

/* ==========================================================================
   Mobile — moins de 800 px
   ========================================================================== */
@media (width < 800px) {
  :root { --side: 12px; }



  .prologue { padding: 60px 12px; }
  .prologue__main { min-width: 255px; max-width: none; }
  .prologue__label span { font-size: calc(42px * var(--t, 1)); color: var(--light); }
  .prologue__text-in { padding-right: 0; }

  .chapters { display: none; }

  .chapter, .chapter--01 { padding: 60px 12px; }
  .chapter--06 { padding-bottom: 100px; }
  .ctitle h2 { font-size: calc(42px * var(--t, 1)); }

  .terrain__left { min-width: 255px; max-width: none; }
  .terrain__left-in { padding: 40px 0 0; }
  .terrain__right { min-width: 255px; max-width: none; }
  .badge { width: 100%; }
  .badge__text { flex: 1 0 0; min-width: 1px; white-space: normal; }
  .quote--terrain { padding-top: 80px; }

  .fondations { row-gap: 80px; }
  .fondations__left { min-width: 255px; max-width: none; }
  .fondations__left-in { padding: 40px 0 0; }
  .fondations__right { min-width: 255px; max-width: none; }
  .plancher { padding-top: 40px; }
  .plancher__left { min-width: 255px; max-width: none; }
  .plancher__left-in { padding: 40px 0 0; }
  .plancher__right { min-width: 255px; max-width: none; }

  .versions__quote { min-width: 255px; max-width: none; }
  .board__inner { padding: 40px 30px; }
  .sketch { max-width: 195px; }
  .sketch--structure .sketch__art, .sketch--face .sketch__art, .sketch--terrasse .sketch__art { width: 195px; height: 195px; }
  .sketch__note--structure { left: calc(50% + 0.5px); }
  .sketch__note--face { right: 30px; bottom: 0; }
  .sketch__auvent { top: 9.92px; }

  .montage__left { min-width: 255px; max-width: none; }
  .montage__left-in { padding-right: 0; }
  .montage__right { min-width: 255px; max-width: none; }
  .plus { left: -12px; }

  .ossature__left { min-width: 255px; max-width: none; }
  .ossature__left-in { padding-right: 0; }
  .ossature__right { min-width: 255px; max-width: none; }

  .isolation__logo { padding: 40px 60px 0 0; }
  .isolation__col { min-width: 255px; max-width: none; }
  .toiture__fig, .toiture__fig--main { min-width: 255px; }

  .amenagement__left { min-width: 255px; max-width: none; }
  .amenagement__left-in { padding-right: 0; }
  .amenagement__figs { min-width: 195px; }
  .amenagement__fig { min-width: 195px; }
  .amenagement__sketch { min-width: 255px; max-width: none; height: 433px; }

  .resultat-quote { padding-top: 60px; }
  .resultat__stats { max-width: none; }
  .resultat__stats--left .resultat__stats-in { padding: 0 0 40px; }
  .resultat__stats--right .resultat__stats-in { padding: 40px 0 0; }
  .resultat__video { min-width: 255px; max-width: none; height: 425px; }
  .vcorner { display: none; }

  .journal__titlebar { flex-direction: column; align-items: flex-start; gap: 40px; }
  .journal__title { flex: none; min-width: 100%; font-size: calc(56px * var(--t, 1)); }
  .journal__grid { grid-template-columns: repeat(1, minmax(0, 1fr)); grid-template-rows: repeat(7, fit-content(100%)); row-gap: 56px; padding: 0 12px 80px; }

  .footer__about { min-width: 255px; max-width: none; }
  .footer__about-in { padding-right: 0; }
  .footer__credit { flex-direction: column; }
}

/* ==========================================================================
   Animations (ajouts, absents de la maquette Figma)
   Tout est conditionné par la classe « motion », posée dans le <head> sauf si le
   système demande de réduire les animations. L'état final de chaque apparition est
   exactement celui de la maquette : seules les étapes intermédiaires changent.
   ========================================================================== */
:root { --expo: cubic-bezier(0.16, 1, 0.3, 1); }

/* Apparitions au défilement — js/motion.js ajoute .is-in puis .is-done */
.motion [data-reveal]:not(.is-done) {
  transition: opacity 0.9s var(--expo) var(--reveal-delay, 0ms), translate 1.2s var(--expo) var(--reveal-delay, 0ms);
}
.motion [data-reveal]:not(.is-in) { opacity: 0; translate: 0 28px; }

.motion [data-reveal="fade"]:not(.is-in) { translate: none; }
.motion [data-reveal="drop"]:not(.is-in) { translate: 0 -40px; }

/* Titres et citations : le texte monte en se dévoilant par le haut */
.motion [data-reveal="title"]:not(.is-done) {
  transition: clip-path 1.3s var(--expo) var(--reveal-delay, 0ms), translate 1.3s var(--expo) var(--reveal-delay, 0ms);
}
.motion [data-reveal="title"].is-in:not(.is-done) { clip-path: inset(-25% -10% -35% -10%); }
.motion [data-reveal="title"]:not(.is-in) { opacity: 1; translate: 0 0.45em; clip-path: inset(-25% -10% 100% -10%); }

/* Photos et vidéos : découpe de bas en haut, l'image se dézoome dans son cadre */
.motion [data-reveal="media"]:not(.is-done) { transition: clip-path 1.4s var(--expo) var(--reveal-delay, 0ms); }
.motion [data-reveal="media"].is-in:not(.is-done) { clip-path: inset(0); }
.motion [data-reveal="media"]:not(.is-in) { opacity: 1; translate: none; clip-path: inset(100% 0 0 0); }
.motion [data-reveal="media"]:not(.is-done) > img,
.motion [data-reveal="media"]:not(.is-done) > video { transition: scale 1.8s var(--expo) var(--reveal-delay, 0ms); }
.motion [data-reveal="media"]:not(.is-in) > img,
.motion [data-reveal="media"]:not(.is-in) > video { scale: 1.25; }

/* Filets : ils se tracent de gauche à droite */
.motion [data-reveal="line"]:not(.is-in) { opacity: 1; translate: none; }
.motion [data-reveal="line"]::before,
.motion [data-reveal="line"]::after { transform-origin: left center; }
.motion [data-reveal="line"]:not(.is-done)::before,
.motion [data-reveal="line"]:not(.is-done)::after { transition: scale 1.6s var(--expo) var(--reveal-delay, 0ms); }
.motion [data-reveal="line"]:not(.is-in)::before,
.motion [data-reveal="line"]:not(.is-in)::after { scale: 0 1; }

/* Rayures : elles glissent dans leur fenêtre */
.motion [data-reveal="stripes"]:not(.is-in) { opacity: 1; translate: none; }
.motion [data-reveal="stripes"]:not(.is-done) .stripes__track { transition: translate 1.6s var(--expo) var(--reveal-delay, 0ms); }
.motion [data-reveal="stripes"]:not(.is-in) .stripes__track { translate: -72px 0; }

/* Profondeur : chaque photo glisse légèrement dans son cadre pendant le défilement */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .motion .fig__media,
    .motion .prologue__photo { overflow: clip; }
    .motion .fig__media > img,
    .motion .fig__media > video,
    .motion .prologue__photo > img {
      scale: 1.08;
      animation: media-drift linear both;
      animation-timeline: view();
      animation-range: cover;
    }
  }
}
@keyframes media-drift {
  from { translate: 0 -3.5%; }
  to { translate: 0 3.5%; }
}

/* Repère de la carte : onde qui se propage */
.map > .map__pulse {
  left: calc(48.92% + 12px);
  top: 123px;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 1px solid var(--light);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.motion .map__pulse { animation: map-pulse 2.8s var(--expo) 1.2s infinite; }
@keyframes map-pulse {
  0% { opacity: 0.6; scale: 1; }
  100% { opacity: 0; scale: 2.6; }
}

/* Chiffres du héros : compteur mécanique (js/motion.js) */
.odo { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.odo__strip { display: block; }
.odo__strip > span { display: block; height: 1em; line-height: 1; }

/* Horloge : les deux-points battent la seconde */
.motion .clock__colon { animation: clock-tick 1s steps(1, end) infinite; }
@keyframes clock-tick { 50% { opacity: 0.25; } }

/* Sommaire : le titre glisse, les vignettes s'écartent, une photo suit le curseur */
.row__name, .thumbs > .thumb > img { transition: translate 0.7s var(--expo), rotate 0.7s var(--expo); }
@media (hover: hover) and (pointer: fine) {
  .motion .row:hover .row__name { translate: 14px 0; }
  .motion .row:hover .thumb:first-child > img { translate: -10px 0; rotate: -6deg; }
  .motion .row:hover .thumb:last-child > img { translate: 12px -4px; rotate: 6deg; }
}
.preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  width: 300px;
  height: 380px;
  pointer-events: none;
  opacity: 0;
  scale: 0.85;
  transition: opacity 0.4s var(--expo), scale 0.6s var(--expo);
  will-change: transform;
}
.preview.is-visible { opacity: 1; scale: 1; }
.preview__frame { position: absolute; inset: 0; overflow: clip; background: var(--green-deep); }
.preview__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(100% 0 0 0);
  scale: 1.2;
  transition: clip-path 0.7s var(--expo), scale 1s var(--expo);
}
.preview__frame img.is-active { clip-path: inset(0); scale: 1; z-index: 1; }


/* Lien vers erwanguillou.me : nom souligné, contraste renforcé au survol */
.footer__link {
  color: var(--dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--dark-20);
  transition: text-decoration-color 0.4s var(--expo), text-underline-offset 0.4s var(--expo);
}
.footer__link:hover, .footer__link:focus-visible { text-decoration-color: var(--dark); text-underline-offset: 2px; }

/* Défilement lissé (Lenis, js/vendor/lenis.min.js) — règles fournies par la bibliothèque */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical], .lenis [data-lenis-prevent-horizontal] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-autoToggle { transition-property: overflow; transition-duration: 1ms; transition-behavior: allow-discrete; }

/* ==========================================================================
   Récit (js/story.js) : repère de progression, citations lues, carte → terrain,
   photos en plein écran, ambiance sonore, invitation à commencer
   ========================================================================== */

/* Commencer le récit */
@keyframes start-arrow {
  0% { translate: 0 -110%; }
  40%, 62% { translate: 0 0; }
  100% { translate: 0 110%; }
}

/* Repère de progression */
.story {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 30;
  display: flex;
  align-items: stretch;
  translate: -50% 16px;
  opacity: 0;
  pointer-events: none;
  color: var(--light);
  background: rgba(16, 24, 25, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: opacity 0.5s var(--expo), translate 0.8s var(--expo);
}
.story.is-visible { opacity: 1; translate: -50% 0; pointer-events: auto; }
.story button { font: inherit; color: inherit; background: none; border: 0; margin: 0; cursor: pointer; }
.story button:focus-visible { outline: 1px solid var(--light); outline-offset: -4px; }
.story__bar { position: absolute; left: 0; right: 0; top: 0; height: 1px; overflow: hidden; pointer-events: none; }
.story__fill { display: block; height: 100%; background: var(--light); transform-origin: left center; transform: scaleX(0); }
.story__toggle { display: flex; align-items: baseline; gap: 14px; padding: 13px 16px 12px; }
.story__num, .story__date, .story__menu-num, .story__menu-date {
  font-family: var(--mono);
  font-variation-settings: "wdth" 100;
  font-size: calc(12px * var(--t, 1));
  line-height: 1;
  letter-spacing: calc(0.48px * var(--t, 1));
  text-transform: uppercase;
  white-space: nowrap;
}
.story__num { display: inline-block; min-width: 42px; }
.story__total, .story__date, .story__menu-num, .story__menu-date { color: var(--light-40); }
.story__title { display: inline-block; font-family: var(--display); font-size: calc(18px * var(--t, 1)); line-height: 1; white-space: nowrap; }
.story__current { display: inline-block; }
/* largeur fixe : tous les titres et dates sont empilés, invisibles, dans la même case ; la case prend
   la largeur du plus long, le repère ne change plus de taille d'un chapitre à l'autre */
.story__slot { display: inline-grid; justify-items: start; }
.story__slot > * { grid-area: 1 / 1; }
.story__ghost { visibility: hidden; white-space: nowrap; }
.story__slot--title .story__ghost { font-family: var(--display); font-size: calc(18px * var(--t, 1)); line-height: 1; }
.story__slot--date .story__ghost { font-family: var(--mono); font-variation-settings: "wdth" 100; font-size: calc(12px * var(--t, 1)); line-height: 1; letter-spacing: calc(0.48px * var(--t, 1)); text-transform: uppercase; }
.story__chevron { align-self: center; width: 7px; height: 7px; margin-left: 2px; border-left: 1px solid var(--light-70); border-top: 1px solid var(--light-70); rotate: 45deg; translate: 0 2px; transition: rotate 0.4s var(--expo), translate 0.4s var(--expo); }
.story.is-open .story__chevron { rotate: 225deg; translate: 0 -2px; }
.story.is-changing .story__title,
.story.is-changing .story__current { animation: story-swap 0.7s var(--expo); }
@keyframes story-swap { from { opacity: 0; translate: 0 8px; } }
.story__step { display: flex; align-items: center; justify-content: center; width: 40px; color: var(--light-70); transition: color 0.3s var(--expo), opacity 0.3s var(--expo); }
.story__step svg { display: block; transition: translate 0.4s var(--expo); }
.story__step:hover:not(:disabled) { color: var(--light); }
.story__step--prev:hover:not(:disabled) svg { translate: -2px 0; }
.story__step--next:hover:not(:disabled) svg { translate: 2px 0; }
.story__step:disabled { opacity: 0.25; cursor: default; }
.story__step--prev + .story__toggle { padding-left: 4px; }
.story__sound { display: flex; align-items: center; justify-content: center; width: 46px; color: var(--light-70); transition: color 0.3s var(--expo); }
.story__sound:hover, .story.has-sound .story__sound { color: var(--light); }
.story__sound svg { display: block; overflow: visible; }
.story__sound-wave, .story__sound-mute { transition: opacity 0.35s var(--expo); }
.story__sound-wave { opacity: 0; }
.story__sound-mute { opacity: 0.55; }
.story.has-sound .story__sound-mute { opacity: 0; }
.story.has-sound .story__sound-wave { opacity: 1; animation: story-wave 1.8s ease-in-out infinite; }
.story.has-sound .story__sound-wave--2 { animation-delay: 0.25s; }
@keyframes story-wave { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.story__menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: rgb(16, 24, 25);
  border: 1px solid var(--light-10);
}
.story__menu[hidden] { display: none; }
.story__menu button { display: grid; grid-template-columns: 30px 1fr auto; gap: 14px; align-items: baseline; width: 100%; padding: 11px 16px; text-align: left; transition: background-color 0.3s var(--expo); }
.story__menu button:hover, .story__menu button[aria-current] { background: var(--light-10); }
.story__menu-title { font-family: var(--display); font-size: calc(17px * var(--t, 1)); line-height: 1.1; white-space: nowrap; }

/* Citations lues au fil du défilement */
.scrub-word { opacity: 0.16; }

/* Du département au terrain */
.zoom-map { position: absolute; inset: 0; z-index: 1; overflow: hidden; background-color: rgb(16, 24, 25); pointer-events: none; }
.zoom-map__map { position: absolute; left: 50%; top: 50%; margin: 0; transform-origin: 53.2% 56.4%; }
/* pas de will-change : le tracé de l'Oise est redessiné net à chaque échelle au lieu d'être agrandi */
.zoom-map__label {
  position: absolute;
  left: 50%;
  bottom: 28px;
  translate: -50% 0;
  font-family: var(--mono);
  font-variation-settings: "wdth" 100;
  font-size: calc(14px * var(--t, 1));
  line-height: 1;
  letter-spacing: calc(0.56px * var(--t, 1));
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--light);
}

/* Photos en plein écran */
.fig__media[role="button"], .prologue__photo[role="button"], .jcard__media[role="button"] { cursor: pointer; }
/* Survol des photos agrandissables : les coins du compteur (« 01/06 ») se resserrent sur la
   photo, qui s'approche doucement ; l'étiquette « Agrandir » suit la souris (js/story.js). */
.fig__media[role="button"]::after, .prologue__photo[role="button"]::after, .jcard__media[role="button"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  --corner: rgba(251, 255, 254, 0.9);
  background:
    linear-gradient(var(--corner), var(--corner)) top right / 18px 1px no-repeat,
    linear-gradient(var(--corner), var(--corner)) top right / 1px 18px no-repeat,
    linear-gradient(var(--corner), var(--corner)) bottom left / 18px 1px no-repeat,
    linear-gradient(var(--corner), var(--corner)) bottom left / 1px 18px no-repeat;
  opacity: 0;
  transition: inset 0.7s var(--expo), opacity 0.4s var(--expo);
  pointer-events: none;
}
@media (hover: hover) {
  .fig__media[role="button"]:hover::after, .prologue__photo[role="button"]:hover::after, .jcard__media[role="button"]:hover::after { inset: 16px; opacity: 1; }
}
.fig__media[role="button"]:focus-visible::after, .prologue__photo[role="button"]:focus-visible::after, .jcard__media[role="button"]:focus-visible::after { inset: 16px; opacity: 1; }
.is-zoomable { transition: transform 1.4s var(--expo); }
.is-pointed { cursor: none !important; }
.is-pointed:not(.jcard__media) > .is-zoomable { transform: scale(1.035); } /* pas de zoom sur les photos du journal (cadres, bandes blanches) */
.photo-tag { position: fixed; left: 0; top: 0; z-index: 40; width: 0; height: 0; pointer-events: none; will-change: transform; }
.photo-tag__label {
  position: absolute;
  left: 0;
  top: 0;
  translate: -50% -50%;
  padding: 7px 10px;
  font-family: var(--mono);
  font-variation-settings: "wdth" 100;
  font-size: calc(12px * var(--t, 1));
  line-height: 1;
  letter-spacing: calc(0.48px * var(--t, 1));
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--light);
  background: rgba(16, 24, 25, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.45s var(--expo);
}
.photo-tag.is-visible .photo-tag__label { clip-path: inset(0 0 0 0); transition-duration: 0.6s; }
.fig__media[role="button"]:focus-visible, .prologue__photo[role="button"]:focus-visible, .jcard__media[role="button"]:focus-visible { outline: 1px solid var(--light); outline-offset: 4px; }
.jcard__media[role="button"]:focus-visible { outline-color: var(--dark); }
html.has-lightbox { overflow: hidden; }
html.has-lightbox .story { opacity: 0; pointer-events: none; }
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--light);
  background: rgba(12, 18, 19, 0.95);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 0; max-width: 92vw; }
.lightbox__img { display: block; width: auto; height: auto; max-width: 88vw; max-height: 80vh; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox__caption { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 8px 24px; max-width: 720px; text-align: center; }
.lightbox__label { font-family: var(--mono); font-variation-settings: "wdth" 100; font-size: calc(14px * var(--t, 1)); line-height: 1; letter-spacing: calc(0.56px * var(--t, 1)); text-transform: uppercase; color: var(--light-40); }
.lightbox__text { font-family: var(--sans); font-weight: 300; font-size: calc(16px * var(--t, 1)); line-height: 1.4; }
.lightbox__count { position: absolute; left: 24px; top: 24px; margin: 0; font-family: var(--mono); font-variation-settings: "wdth" 100; font-size: calc(12px * var(--t, 1)); letter-spacing: calc(0.48px * var(--t, 1)); color: var(--light-40); }
.lightbox button { font: inherit; color: var(--light); background: var(--light-10); border: 0; cursor: pointer; transition: background-color 0.3s var(--expo); }
.lightbox button:hover { background: var(--light-20); }
.lightbox button:focus-visible { outline: 1px solid var(--light); outline-offset: 2px; }
.lightbox__close { position: absolute; right: 16px; top: 14px; padding: 8px 12px; font-family: var(--mono) !important; font-variation-settings: "wdth" 100; font-size: calc(12px * var(--t, 1)) !important; line-height: 1; letter-spacing: calc(0.48px * var(--t, 1)); text-transform: uppercase; }
.lightbox__nav { position: absolute; top: 50%; width: 52px; height: 52px; translate: 0 -50%; font-family: var(--sans) !important; font-size: calc(20px * var(--t, 1)) !important; line-height: 1; }
.lightbox__nav[hidden] { display: none; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

@media (width < 800px) {
  .story { left: 12px; right: 12px; translate: 0 16px; }
  .story.is-visible { translate: 0 0; }
  .story__toggle { flex: 1; min-width: 0; gap: 12px; }
  .story__title { overflow: hidden; text-overflow: ellipsis; font-size: calc(16px * var(--t, 1)); }
  .story__date { display: none; }
  .story__ghost { display: none; }
  .story__slot--date { display: none; }
  .story__slot--title { min-width: 0; }
  .story__chevron { margin-left: auto; }
  .story__menu-date { display: none; }
  .lightbox__img { max-width: 100vw; max-height: 70vh; }
  .lightbox__nav { top: auto; bottom: 16px; translate: none; width: 48px; height: 48px; }
  .lightbox__caption { padding: 0 16px 72px; }
}

/* Croquis de l'aménagement : affiché terminé, redessiné depuis zéro au survol (js/sketch.js) */
.amenagement__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.amenagement__sketch > .is-sketch img { opacity: 0; transition: opacity 0.12s linear; }
.amenagement__sketch > .is-sketch.is-drawn img { opacity: 1; transition: none; }

/* Badge en relief (js/motion.js) */
.badge3d { position: relative; width: 138px; height: 153px; flex-shrink: 0; transform-style: preserve-3d; will-change: transform; }
.badge3d > .isolation__badge { backface-visibility: hidden; }
.badge3d__edge { position: absolute !important; left: 0; top: 0; filter: brightness(0.38) !important; }
.badge3d__glare {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 40%), rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 55%),
    linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.07) 45%, rgba(255, 255, 255, 0) 60%);
  mix-blend-mode: soft-light;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* Cercles du badge « 1,45 ha » : une onde qui se propage depuis le centre. Quatre anneaux
   parcourent 2 → 26 px à vitesse constante, décalés d'un quart de cycle : à chaque quart,
   ils occupent exactement les positions des trois cercles de la maquette (8, 14, 20 px). */
.badge__ripple { display: none; }
.motion .badge__icon svg { visibility: hidden; }
.motion .badge__ripple { display: block; position: absolute; inset: 0; }
.badge__ripple i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 2px;
  translate: -50% -50%;
  box-sizing: border-box;
  border: 1.4px solid var(--light);
  border-radius: 50%;
  opacity: 0;
  animation: badge-ripple 3.2s linear infinite paused;
}
.badge__ripple i:nth-child(2) { animation-delay: -0.8s; }
.badge__ripple i:nth-child(3) { animation-delay: -1.6s; }
.badge__ripple i:nth-child(4) { animation-delay: -2.4s; }
.badge__icon.is-live .badge__ripple i { animation-play-state: running; }
@keyframes badge-ripple {
  0% { width: 2px; height: 2px; opacity: 0; }
  14% { opacity: 0; }
  25% { width: 8px; height: 8px; opacity: 0.4; }
  50% { width: 14px; height: 14px; opacity: 0.7; }
  75% { width: 20px; height: 20px; opacity: 1; }
  100% { width: 26px; height: 26px; opacity: 0; }
}

/* ==========================================================================
   Prototype « défilement horizontal » (js/horizontal.js)
   ========================================================================== */
.hs { position: relative; width: 100%; }
.hs__stage { position: sticky; top: 0; width: 100%; height: 100vh; overflow: clip; }
.hs__track { display: flex; align-items: center; width: max-content; height: 100%; will-change: transform; }
/* chaque chapitre est une page de 900 px de haut (positions du fichier Figma), mise à l'échelle
   de la hauteur de l'écran par --s */
.is-horizontal .hs__track > .chapter {
  position: relative;
  display: block;
  flex: none;
  max-width: none;
  height: 900px;
  padding: 0;
  zoom: var(--s, 1);
  box-shadow: inset 1px 0 0 var(--light-10); /* filet entre chapitres, sans décaler les blocs */
}
.is-horizontal .hs__track > .chapter:first-child { box-shadow: none; }
.hs__abs { position: absolute !important; margin: 0 !important; flex: none !important; max-width: none !important; min-width: 0 !important; }
.hs__abs.quote, .hs__abs.resultat-quote, .hs__abs.epilogue { display: block; padding: 0; }
.hs__abs.quote p, .hs__abs.resultat-quote blockquote, .hs__abs.resultat-quote p, .hs__abs.epilogue .epilogue__text { display: block; width: 100%; max-width: none; text-align: left; }
.hs__abs .resultat__stats-in { padding: 0 !important; }
.hs__abs.isolation__logo { padding: 0; }
.hs__abs.amenagement__sketch { height: auto; }
.hs__abs.resultat__video { gap: 0; }
/* versions sur une ligne */
.hs__abs.versions__list .versions__list-in { padding: 0; }
.hs__abs .versions__items { flex-direction: row; gap: 40px; }
/* croquis de la structure : cadré comme dans Figma (planche de 1058 px agrandie pour couvrir 610 × 780) */
/* croquis de la structure dans un cadre en hauteur (610 × 780) : les trois dessins en colonne, en
   quinconce (gauche, droite, gauche), réduits à 80 % pour tenir en entier avec leurs annotations */
.hs__abs.board { overflow: clip; }
.hs__abs.board .board__inner { position: absolute; left: 0; top: 0; width: 100%; height: 100%; zoom: 0.8; display: flex; flex-direction: column; flex-wrap: nowrap; justify-content: center; align-items: flex-start; row-gap: 0; padding: 24px 32px; }
.hs__abs.board .sketch--structure { align-self: flex-start; }
.hs__abs.board .sketch--face { align-self: flex-end; margin-top: -50px; }
.hs__abs.board .sketch--terrasse { align-self: flex-start; margin-top: -60px; margin-left: 40px; }
.is-horizontal .chapter .ctitle { padding-top: 0; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: baseline; gap: 16px 32px; }
.is-horizontal .chapter .ctitle h2 { white-space: nowrap; text-align: left; } /* taille de la version verticale (86 px) */
.is-horizontal .chapter .ctitle--inline { flex-wrap: nowrap; } /* compteur à côté du titre, comme dans Figma */
/* tailles de texte : zoom inverse sur les textes (--tz) et les titres / citations (--dz), l'emplacement
   (.hs__slot) gardant la position et la largeur de la mise en page */
.hs__slot > .hs__text, .hs__slot > .hs__display { position: relative !important; left: auto !important; top: auto !important; margin: 0 !important; max-width: none !important; min-width: 0 !important; flex: none !important; }
.hs__slot > .hs__text { zoom: var(--tz, 1); width: 100% !important; } /* les pourcentages ne sont pas zoomés : 100 % = largeur de l'emplacement */
.hs__slot > .hs__display { zoom: var(--dz, 1); width: 100% !important; }
.hs__slot > .quote, .hs__slot > .resultat-quote, .hs__slot > .epilogue { display: block; padding: 0; }
.hs__slot > .quote p, .hs__slot > .resultat-quote blockquote, .hs__slot > .resultat-quote p, .hs__slot > .epilogue .epilogue__text { display: block; width: 100%; max-width: none; text-align: left; }
.hs__slot > .resultat__stats .resultat__stats-in { padding: 0 !important; }
.hs__slot > .versions__list .versions__list-in { padding: 0; }
.hs__abs figcaption { zoom: var(--tz, 1); }

/* Carte de l'Oise en relief (js/motion.js) */
.map3d { position: relative; width: 278px; height: 218px; flex-shrink: 0; transform-style: preserve-3d; will-change: transform; }
.map3d > .map { transform-style: preserve-3d; }
.map3d > .map > .map__shadow { transform: translateZ(-30px); }
.map3d > .map > .map__label { transform: translateZ(10px); }
.map3d > .map > .map__pin, .map3d > .map > .map__pulse { transform: translateZ(34px); }
.map3d__edge, .map3d__glare { position: absolute; left: 0; right: 0; top: 0.13%; bottom: 7.21%; pointer-events: none; }
.map3d__edge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map3d__edge path { fill: none; stroke: #fbfffe; stroke-opacity: 0.16; stroke-width: 1px; vector-effect: non-scaling-stroke; } /* épaisseur : seulement le bord, l'intérieur garde son opacité */
.map3d__glare {
  opacity: 0;
  transform: translateZ(1px);
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 40%), rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 58%);
  mix-blend-mode: soft-light;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* Écriture à la main (js/motion.js) : chaque élément .hw se dévoile de gauche à droite derrière un
   masque au bord adouci, comme la pointe d'un stylo ; délai et durée posés par le script. */
@property --w { syntax: "<percentage>"; inherits: false; initial-value: 112%; }
.hw-pending .hw { opacity: 0; }
.is-writing .hw {
  -webkit-mask-image: linear-gradient(90deg, #000 var(--w), transparent calc(var(--w) + 12%));
  mask-image: linear-gradient(90deg, #000 var(--w), transparent calc(var(--w) + 12%));
  animation: hw-write var(--hw-duration, 0.8s) cubic-bezier(0.45, 0.05, 0.55, 0.95) var(--hw-delay, 0s) both;
}
@keyframes hw-write { from { --w: -12%; } to { --w: 112%; } }

/* En-tête empilé : le récit d'abord, la photo en bandeau dessous (navigation et lieu posés dessus) */
@media (width < 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; min-height: 0; }
  .hero__panel { grid-row: 1; padding: 36px var(--side) 72px; }
  .hero__media { grid-row: 2; height: max(64svh, 480px); box-shadow: none; }
  .hero__start { margin-top: 8px; }
}
@media (width < 800px) {
  .hero__media { height: max(70svh, 420px); }
  .hero__panel { padding: 28px var(--side) 56px; gap: 80px; }
  .hero__title { margin-bottom: 24px; font-size: calc(42px * var(--t, 1)); line-height: 1.05; } /* même taille que les titres de section sur mobile */
  .hero__eyebrow { font-size: 12px; letter-spacing: 0.48px; margin-bottom: 20px; }
  .hero__start { display: none; }
  .hero__intro { margin-bottom: 40px; }
  .nav { display: none; }
  .fact { padding: 16px 12px; }
  .fact__value { font-size: calc(24px * var(--t, 1)); }
}
