/* Atelier Olivine — étude d'ensoleillement */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"), url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f1ea;
  --paper-2: #ece6da;
  --beige: #e6dcc8;
  --sand: #d6c8ad;
  --forest: #1f3a2b;
  --forest-deep: #13261b;
  --forest-ink: #0d1b13;
  --leaf: #5f7f4e;
  --lime: #c5f04a;
  --lime-deep: #a9d62c;
  --ink: #0f1410;
  --ink-2: #3c463d;
  --ink-3: #5d665c;
  --line: rgba(15, 20, 16, 0.16);
  --line-strong: rgba(15, 20, 16, 0.32);

  --gutter: clamp(16px, 3.4vw, 48px);
  --maxw: 1440px;
  --radius: 3px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --step--1: clamp(0.82rem, 0.79rem + 0.12vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --step-1: clamp(1.18rem, 1.08rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 2.2rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.6vw, 4rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.9vw, 5.4rem);

  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  font-stretch: 100%;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--forest);
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 2px; box-shadow: 0 0 0 5px rgba(197, 240, 74, 0.55); }
html { scrollbar-color: var(--forest) var(--paper-2); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--forest); border: 3px solid var(--paper-2); border-radius: 10px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 14px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ------------------------------------------------------------ type */

.display {
  font-stretch: 125%;
  font-weight: 340;
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.section-title { font-size: var(--step-3); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 36ch; font-stretch: 100%; }

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.4em;
  border-radius: var(--radius);
  font-weight: 600;
  font-stretch: 108%;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  line-height: 1.1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.btn .icon { transition: transform 0.35s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-lime { background: var(--lime); color: var(--ink); box-shadow: 0 1px 0 rgba(15, 20, 16, 0.18), 0 8px 22px -10px rgba(120, 160, 20, 0.55); }
.btn-lime:hover { background: #d2f86a; box-shadow: 0 1px 0 rgba(15, 20, 16, 0.18), 0 12px 28px -10px rgba(140, 190, 20, 0.7); }
.btn-line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { padding: 0.7em 1.05em; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

.lien { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 600; font-stretch: 108%; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.lien:hover .icon { transform: translateX(3px); }
.lien .icon { transition: transform 0.35s var(--ease-out); width: 1em; height: 1em; }

/* ------------------------------------------------------------ header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  padding: 0 var(--gutter);
  color: var(--ink);
  transition: color 0.5s var(--ease-out), background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.site-header.is-solid { background: rgba(244, 241, 234, 0.97); box-shadow: 0 1px 0 var(--line); }
.site-header.on-dusk { color: var(--paper); }
.site-header.on-dusk .btn-line { color: var(--paper); }
body:not(.home) .site-header { background: var(--paper); box-shadow: 0 1px 0 var(--line); }

.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark .mark { width: 38px; height: auto; }
.wordmark .mark circle { fill: var(--lime-deep); }
.wordmark-name { font-stretch: 125%; font-weight: 500; font-size: 1.02rem; letter-spacing: -0.01em; white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 0.94rem; position: relative; padding: 6px 0; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: transparent; border-radius: var(--radius); cursor: pointer; color: inherit; }
  .on-dusk .nav-toggle { border-color: rgba(244, 241, 234, 0.4); }
  .nav-toggle-close { display: none; }
  .is-open .nav-toggle-open { display: none; }
  .is-open .nav-toggle-close { display: block; }
  .site-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 16px var(--gutter) 28px; background: var(--paper); color: var(--ink);
    box-shadow: 0 1px 0 var(--line), 0 24px 40px -24px rgba(15, 20, 16, 0.35);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s 0.3s;
  }
  .site-nav a:not(.btn) { font-size: 1.3rem; font-stretch: 118%; padding: 10px 0; }
  .site-nav .btn { margin-top: 12px; }
  .is-open .site-nav { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .site-header.is-open { background: var(--paper); color: var(--ink); }
}

/* ============================================================ LA JOURNÉE */

.journee { position: relative; --sky: #efe6d8; --sky-low: #f6efe4; --dusk: 0; }
.js .journee { height: calc(var(--n, 6) * 100svh); }
.journee-stage {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-low) 78%);
  color: var(--ink);
  transition: color 0.6s var(--ease-out);
}
.js .journee-stage { position: sticky; top: 0; height: 100svh; }
.journee.is-dusk .journee-stage { color: var(--paper); }

/* reading veil on the text side; tone follows the sky */
.journee-sky {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, var(--sky) 0%, color-mix(in srgb, var(--sky) 70%, transparent) 26%, transparent 52%);
}
.js .journee-stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 210px; z-index: 2; pointer-events: none;
  background: linear-gradient(0deg, var(--sky-low) 0%, color-mix(in srgb, var(--sky-low) 72%, transparent) 45%, transparent 100%);
}
.journee-canvas, .journee-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.journee-canvas { z-index: 0; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.journee.is-3d .journee-canvas { opacity: 1; }
.journee-poster { object-fit: cover; object-position: 70% 50%; z-index: 0; transition: opacity 1.2s var(--ease-out); }
.journee.is-3d .journee-poster { opacity: 0; }

.chapitres { position: relative; z-index: 2; padding: 120px var(--gutter) 0; display: grid; gap: 64px; }
.js .chapitres { position: absolute; inset: 72px 0 clamp(120px, 17vh, 150px) 0; padding: 0; display: block; pointer-events: none; }
.chapitre { max-width: 38rem; }
.js .chapitre {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  translate: 0 -50%;
  width: min(36rem, 38vw);
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out), filter 0.7s var(--ease-out);
}
.js .chapitre.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; transition-delay: 0.08s; }
.chapitre-titre { font-size: min(var(--step-4), 8.4svh); max-width: 13ch; }
h2.chapitre-titre { font-size: min(var(--step-3), 7svh); max-width: 14ch; }
.chapitre-texte { margin-top: 1.4rem; font-size: var(--step-1); line-height: 1.5; max-width: 34ch; color: color-mix(in srgb, currentColor 80%, transparent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.1rem; }
.journee.is-dusk .btn-line { color: var(--paper); border-color: rgba(244, 241, 234, 0.45); }

/* the instrument: clock + sun path + chapter hours */
.instrument {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: clamp(18px, 4vh, 40px);
  display: grid; grid-template-columns: auto 1fr; align-items: end; gap: clamp(18px, 3vw, 48px);
}
html:not(.js) .instrument, html:not(.js) .scroll-cue { display: none; }
.horloge {
  font-stretch: 112%; font-weight: 300; font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.6rem); line-height: 0.9;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em; min-width: 4.2ch;
}
.arc { position: relative; padding-bottom: 2px; }
.arc-svg { width: 100%; height: 46px; overflow: visible; }
.arc-path { stroke: currentColor; stroke-opacity: 0.35; stroke-width: 1; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.arc-dot {
  position: absolute; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 4px rgba(197, 240, 74, 0.28), 0 0 14px rgba(197, 240, 74, 0.9);
  pointer-events: none; will-change: transform;
}
.arc-ticks { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); margin-top: 10px; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.arc-tick {
  display: grid; gap: 2px; justify-items: start; width: 100%; padding: 10px 8px 2px 0; background: none; border: 0; cursor: pointer; text-align: left;
  color: color-mix(in srgb, currentColor 55%, transparent); position: relative; transition: color 0.4s var(--ease-out);
}
.arc-tick::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.4; transition: background-color 0.4s, opacity 0.4s, box-shadow 0.4s; }
.arc-tick:hover { color: currentColor; }
.arc-tick.is-active { color: inherit; }
.journee-stage .arc-tick.is-active { color: currentColor; }
.arc-tick.is-active::before { background: var(--lime); opacity: 1; box-shadow: 0 0 10px rgba(197, 240, 74, 0.9); }
.tick-h { font-size: 0.82rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.tick-l { font-size: 0.8rem; font-stretch: 100%; line-height: 1.25; }
.journee-stage .arc-tick { color: color-mix(in srgb, var(--ink) 52%, transparent); }
.journee-stage .arc-tick.is-active, .journee-stage .arc-tick:hover { color: var(--ink); }
.journee.is-dusk .journee-stage .arc-tick { color: rgba(244, 241, 234, 0.55); }
.journee.is-dusk .journee-stage .arc-tick.is-active, .journee.is-dusk .journee-stage .arc-tick:hover { color: var(--paper); }

.scroll-cue { position: absolute; z-index: 3; right: var(--gutter); top: 50%; writing-mode: vertical-rl; font-size: 0.78rem; letter-spacing: 0.08em; font-weight: 500; opacity: 0.7; transition: opacity 0.6s; }
.scroll-cue span { display: inline-block; padding-bottom: 54px; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 42px; background: currentColor; transform-origin: top; animation: cue 2.4s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.journee.is-started .scroll-cue { opacity: 0; }

/* Phones: the model holds the upper half, the chapter reads in the lower half. */
@media (max-width: 860px) {
  .js .journee { height: calc(var(--n, 6) * 85svh); }
  .journee-sky { background: linear-gradient(0deg, var(--sky-low) 0%, var(--sky-low) 30%, color-mix(in srgb, var(--sky-low) 80%, transparent) 44%, transparent 58%); }
  .js .journee-stage::after { display: none; }
  .js .chapitres { inset: auto 0 calc(env(safe-area-inset-bottom) + 76px) 0; height: 46svh; }
  .js .chapitre { top: auto; bottom: 0; translate: none; width: auto; right: var(--gutter); }
  .chapitre-titre, h2.chapitre-titre { font-size: clamp(1.75rem, 8.2vw, 2.4rem); max-width: 16ch; }
  .chapitre-texte { font-size: 0.98rem; line-height: 1.5; margin-top: 0.75rem; max-width: 40ch; }
  .actions { margin-top: 1.1rem; gap: 10px; }
  .actions .btn { padding: 0.85em 1.1em; font-size: 0.92rem; }
  .instrument { bottom: calc(env(safe-area-inset-bottom) + 14px); grid-template-columns: auto 1fr; gap: 14px; align-items: end; }
  .horloge { font-size: 1.5rem; min-width: 0; padding-bottom: 6px; }
  .arc-svg { height: 18px; }
  .arc-ticks { margin-top: 6px; }
  .arc-tick { padding-top: 8px; }
  .tick-h { font-size: 0.72rem; }
  .tick-l { display: none; }
  .scroll-cue { display: none; }
}

/* ============================================================ SAVOIR-FAIRE */

.savoir {
  position: relative;
  padding: clamp(96px, 14vh, 180px) var(--gutter) clamp(80px, 12vh, 160px);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.savoir-head, .projets-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; max-width: var(--maxw); margin: 0 auto clamp(48px, 8vh, 96px); }
.savoir-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); max-width: var(--maxw); margin: 0 auto; }
.page-head + .savoir, .page-head + .projets { padding-top: 0; }
.service { scroll-margin-top: 140px; }

.vitrine { position: sticky; top: 96px; align-self: start; }
.vitrine-stage {
  position: relative; aspect-ratio: 1 / 1; width: 100%; max-height: calc(100svh - 170px);
  border-radius: var(--radius);
  background:
    radial-gradient(60% 34% at 50% 82%, rgba(31, 58, 43, 0.16), transparent 70%),
    radial-gradient(120% 90% at 50% 20%, #fbf9f4 0%, var(--paper-2) 70%);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.8s var(--ease-out);
}
.vitrine-stage::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 90% at 50% 25%, #1b3326 0%, var(--forest-ink) 75%);
  transition: opacity 0.9s var(--ease-out);
}
.vitrine.is-night .vitrine-stage::after { opacity: 1; }
.vitrine-legende { margin-top: 14px; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.02em; display: flex; align-items: center; gap: 10px; }
.vitrine-legende::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime-deep); box-shadow: 0 0 0 3px rgba(197, 240, 74, 0.35); }
html.no-webgl .vitrine, html:not(.js) .vitrine { display: none; }
html.no-webgl .savoir-grid, html:not(.js) .savoir-grid { grid-template-columns: 1fr; }

.services { list-style: none; border-top: 1px solid var(--line); }
.service {
  padding: clamp(22px, 3.2vh, 34px) 0;
  border-bottom: 1px solid var(--line);
  min-height: 22vh;
  display: grid; align-content: center; gap: 10px;
  cursor: default; outline-offset: 6px;
}
.service-nom {
  font-stretch: 125%; font-weight: 340; font-size: var(--step-2); letter-spacing: -0.02em; line-height: 1.05;
  color: color-mix(in srgb, var(--ink) 38%, transparent);
  transition: color 0.5s var(--ease-out);
  display: flex; align-items: center; gap: 14px;
}
.service-nom::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--line-strong);
  transition: background-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease-out);
}
.service-texte {
  max-width: 44ch; color: var(--ink-2); padding-left: 24px;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.service.is-active .service-nom { color: var(--ink); }
.service.is-active .service-nom::before { background: var(--lime); box-shadow: 0 0 0 4px rgba(197, 240, 74, 0.32), 0 0 14px rgba(160, 210, 40, 0.6); transform: scale(1.15); }
.service.is-active .service-texte { opacity: 1; }
html:not(.js) .service-texte, html.no-webgl .service-texte { opacity: 1; }
html:not(.js) .service-nom, html.no-webgl .service-nom { color: var(--ink); }

@media (max-width: 860px) {
  .savoir-head, .projets-head { grid-template-columns: 1fr; }
  .savoir-grid { grid-template-columns: 1fr; gap: 0; }
  .vitrine { top: 72px; z-index: 2; margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter) 12px; background: var(--paper-2); box-shadow: 0 1px 0 var(--line), 0 18px 24px -18px rgba(15, 20, 16, 0.25); }
  .vitrine-stage { aspect-ratio: 16 / 11; max-height: 34svh; margin: 0 auto; }
  .vitrine-legende { margin-top: 8px; }
  .service { min-height: 0; padding: 26px 0; scroll-margin-top: calc(72px + 34svh + 72px); }
  .service-texte { opacity: 1; padding-left: 24px; }
  .service-nom { color: var(--ink); font-size: 1.45rem; }
}

/* ============================================================ PROJETS */

.projets {
  position: relative;
  background: var(--forest-deep);
  color: var(--paper);
  padding: clamp(96px, 14vh, 180px) var(--gutter);
}
.projets .lead { color: rgba(244, 241, 234, 0.74); }
.projets-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(20px, 2.6vw, 40px);
  max-width: var(--maxw); margin: 0 auto;
}
.projet { grid-column: span 5; display: grid; gap: 20px; align-content: start; outline-offset: 8px; }
.projet:nth-child(4n + 1), .projet:nth-child(4n + 4) { grid-column: span 7; }
.projet:nth-child(4n + 2), .projet:nth-child(4n + 3) { margin-top: clamp(0px, 8vw, 120px); }
.projet:nth-child(4n + 3) { margin-top: 0; }
.projet:nth-child(4n + 4) { margin-top: clamp(-120px, -6vw, 0px); }

.projet-titre a { text-decoration: none; }
.projet-titre a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.projet-frame {
  display: block; position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(70% 40% at 50% 84%, rgba(0, 0, 0, 0.35), transparent 70%),
    radial-gradient(110% 90% at 50% 18%, #2a4535 0%, #1a2f22 55%, var(--forest-ink) 100%);
  box-shadow: inset 0 0 0 1px rgba(244, 241, 234, 0.08), 0 30px 60px -40px rgba(0, 0, 0, 0.8);
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
  will-change: transform;
}
.projet:hover .projet-frame, .projet:focus-within .projet-frame { box-shadow: inset 0 0 0 1px rgba(197, 240, 74, 0.35), 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.projet-stage, .projet-media { position: absolute; inset: 0; }
.projet-media img, .projet-poster { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), opacity 0.8s; }
.projet:hover .projet-media img { transform: scale(1.04); }
.studio-3d .projet-poster { opacity: 0; }
.projet-statut {
  position: absolute; left: 14px; top: 14px; z-index: 1;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 2px; background: rgba(13, 27, 19, 0.72); color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(244, 241, 234, 0.16);
}
.projet-info { display: grid; gap: 12px; max-width: 46ch; }
.projet-titre { font-stretch: 125%; font-weight: 360; font-size: var(--step-2); letter-spacing: -0.02em; line-height: 1.05; }
.projet-lieu { display: block; margin-top: 6px; font-stretch: 100%; font-size: 0.9rem; font-weight: 500; letter-spacing: 0; color: rgba(244, 241, 234, 0.64); }
.projet-texte { color: rgba(244, 241, 234, 0.78); }
.projet-programme { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.projet-programme li { font-size: 0.82rem; padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(244, 241, 234, 0.22); color: rgba(244, 241, 234, 0.86); }
.projet .lien { color: var(--lime); justify-self: start; }

@media (hover: hover) and (pointer: fine) {
  .js .projet-texte, .js .projet-programme, .js .projet .lien {
    opacity: 0.0; transform: translateY(8px);
    transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
  }
  .js .projet-programme { transition-delay: 0.05s; }
  .js .projet .lien { transition-delay: 0.1s; }
  .js .projet:hover .projet-texte, .js .projet:hover .projet-programme, .js .projet:hover .lien,
  .js .projet:focus-within .projet-texte, .js .projet:focus-within .projet-programme, .js .projet:focus-within .lien { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .projet, .projet:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
}

/* ============================================================ INNER PAGES */

.page-head {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: end;
  padding: clamp(132px, 20vh, 200px) max(var(--gutter), calc((100vw - var(--maxw)) / 2)) clamp(56px, 9vh, 104px);
  background: var(--paper);
}
.page-head.has-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; }
.page-head.tone-beige { background: linear-gradient(180deg, var(--paper) 0%, var(--beige) 100%); }
.page-head.tone-dark { background: var(--forest-deep); color: var(--paper); }
.page-head.tone-dark .lead { color: rgba(244, 241, 234, 0.74); }
.page-title { font-size: min(var(--step-4), 11vw); max-width: 14ch; }
.page-lead { margin-top: 1.5rem; max-width: 44ch; }
.page-head-stage {
  position: relative; aspect-ratio: 5 / 4; width: 100%; border-radius: var(--radius);
  background: radial-gradient(60% 34% at 50% 82%, rgba(31, 58, 43, 0.14), transparent 70%), radial-gradient(120% 90% at 50% 20%, #fbf9f4 0%, var(--paper-2) 72%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.page-dark { background: var(--forest-deep); color: var(--paper); }

/* closing band */
.cta-band { background: var(--forest-ink); color: var(--paper); padding: clamp(80px, 13vh, 150px) var(--gutter); }
.cta-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; }
.cta-title { font-size: var(--step-3); max-width: 12ch; grid-row: span 2; }
.cta-text { color: rgba(244, 241, 234, 0.74); font-size: var(--step-1); line-height: 1.5; max-width: 34ch; }
.cta-inner .btn { justify-self: start; }

/* home: savoir-faire overview */
.apercu-savoir {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 112px); align-items: start;
  padding: clamp(96px, 14vh, 170px) max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.apercu-savoir .lead { margin: 1.4rem 0 2rem; }
.apercu-liste { list-style: none; border-top: 1px solid var(--line); }
.apercu-liste a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0;
  border-bottom: 1px solid var(--line); text-decoration: none;
  font-stretch: 122%; font-weight: 360; font-size: var(--step-1); letter-spacing: -0.01em;
  transition: padding-left 0.45s var(--ease-out), color 0.3s;
}
.apercu-liste a span { display: inline-flex; align-items: center; gap: 14px; }
.apercu-liste a span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); transition: background-color 0.3s, box-shadow 0.3s; }
.apercu-liste a .icon { opacity: 0.35; transition: opacity 0.3s, transform 0.45s var(--ease-out); }
.apercu-liste a:hover { padding-left: 8px; }
.apercu-liste a:hover span::before { background: var(--lime); box-shadow: 0 0 0 4px rgba(197, 240, 74, 0.3); }
.apercu-liste a:hover .icon { opacity: 1; transform: translateX(4px); }
.projets-more { max-width: var(--maxw); margin: clamp(40px, 7vh, 72px) auto 0; }
.btn-on-dark { color: var(--paper); border-color: rgba(244, 241, 234, 0.35); }
.btn-on-dark:hover { border-color: var(--paper); }

/* project page */
.projet-hero {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(28px, 4vw, 72px); align-items: center;
  padding: clamp(120px, 17vh, 168px) max(var(--gutter), calc((100vw - var(--maxw)) / 2)) clamp(40px, 6vh, 72px);
}
.retour { display: inline-flex; align-items: center; gap: 10px; color: rgba(244, 241, 234, 0.7); text-decoration: none; font-size: 0.92rem; font-weight: 500; margin-bottom: 1.6rem; }
.retour .icon { transform: rotate(180deg); width: 1em; transition: transform 0.4s var(--ease-out); }
.retour:hover { color: var(--paper); }
.retour:hover .icon { transform: rotate(180deg) translateX(4px); }
.projet-hero .page-title { font-size: min(var(--step-3), 10vw); }
.projet-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 1.2rem 0 1.4rem; color: rgba(244, 241, 234, 0.7); font-size: 0.92rem; }
.projet-badge { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 10px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(197, 240, 74, 0.5); color: var(--lime); }
.projet-hero .lead { color: rgba(244, 241, 234, 0.78); }
.projet-hero-frame { position: relative; }
.projet-hero-frame .projet-stage, .projet-hero-frame .projet-media {
  position: relative; display: block; aspect-ratio: 16 / 11; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(70% 40% at 50% 84%, rgba(0, 0, 0, 0.35), transparent 70%), radial-gradient(110% 90% at 50% 18%, #2a4535 0%, #1a2f22 55%, var(--forest-ink) 100%);
  box-shadow: inset 0 0 0 1px rgba(244, 241, 234, 0.08);
}
.projet-hero-frame .projet-media img { width: 100%; height: 100%; object-fit: cover; }
.projet-stage[data-interactive] { cursor: grab; touch-action: pan-y; user-select: none; }
.projet-stage[data-interactive].is-dragging { cursor: grabbing; }
.stage-hint { z-index: 3; position: absolute; left: 50%; bottom: 14px; translate: -50% 0; font-size: 0.8rem; color: rgba(244, 241, 234, 0.7); background: rgba(13, 27, 19, 0.6); padding: 6px 12px; border-radius: 999px; pointer-events: none; }
.projet-detail {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 96px); align-items: start;
  padding: clamp(32px, 5vh, 64px) max(var(--gutter), calc((100vw - var(--maxw)) / 2)) clamp(64px, 10vh, 120px);
}
.prose-dark { color: rgba(244, 241, 234, 0.82); font-size: var(--step-1); line-height: 1.6; max-width: 60ch; }
.prose-dark p { margin: 0 0 1em; }
.projet-aside { display: grid; gap: 22px; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(244, 241, 234, 0.14); }
.aside-title { font-stretch: 112%; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; }
.programme-liste { list-style: none; display: grid; gap: 10px; }
.programme-liste li { display: flex; gap: 10px; align-items: baseline; color: rgba(244, 241, 234, 0.86); }
.programme-liste .icon { color: var(--lime); width: 1em; height: 1em; translate: 0 2px; }
.projet-aside .btn { justify-self: start; }
.projet-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(244, 241, 234, 0.12); }
.projet-nav-lien { display: grid; gap: 6px; padding: clamp(28px, 4vw, 48px) var(--gutter); text-decoration: none; transition: background-color 0.3s; }
.projet-nav-lien.next { text-align: right; grid-column: 2; border-left: 1px solid rgba(244, 241, 234, 0.12); }
.projet-nav-lien:hover { background: rgba(244, 241, 234, 0.04); }
.nav-sens { font-size: 0.85rem; color: rgba(244, 241, 234, 0.6); }
.nav-titre { font-stretch: 122%; font-weight: 360; font-size: var(--step-2); letter-spacing: -0.02em; line-height: 1.1; }

/* contact page */
.page-contact { background: var(--beige); }
.contact-body {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: clamp(28px, 4vw, 72px); align-items: start;
  padding: 0 max(var(--gutter), calc((100vw - var(--maxw)) / 2)) clamp(80px, 12vh, 140px);
  scroll-margin-top: 80px;
}
.form-title { font-stretch: 118%; font-weight: 400; font-size: var(--step-2); letter-spacing: -0.02em; }
.contact-aside { position: sticky; top: 100px; display: grid; gap: 36px; }
.etapes { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.etapes li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
.etape-n {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--forest); color: var(--paper); font-stretch: 112%; font-weight: 500; font-variant-numeric: tabular-nums;
}
.etapes li:first-child .etape-n { background: var(--lime); color: var(--ink); }
.etape-corps h3 { font-size: 1.05rem; font-weight: 600; margin-top: 0.35rem; }
.etape-corps p { color: var(--ink-2); margin-top: 0.3rem; max-width: 34ch; }
.coordonnees { list-style: none; display: grid; gap: 12px; margin-top: 14px; }
.coordonnees li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.coordonnees a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.coordonnees a:hover { border-color: var(--ink); }

.demande-form { display: grid; gap: 26px; align-content: start; background: var(--paper); padding: clamp(24px, 3.4vw, 48px); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(15, 20, 16, 0.06), 0 40px 70px -50px rgba(31, 58, 43, 0.6); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: grid; gap: 6px; margin: 0; }
.field label, .field legend { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-2); }
.opt { font-weight: 400; color: var(--ink-3); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; padding: 10px 0; border-radius: 0;
  font-size: 1.06rem; transition: border-color 0.3s;
}
.field textarea { resize: vertical; min-height: 120px; border: 1px solid var(--line-strong); padding: 12px; border-radius: var(--radius); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; cursor: pointer; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--forest); box-shadow: 0 2px 0 0 var(--lime-deep); }
.field textarea:focus-visible { box-shadow: 0 0 0 2px var(--forest), 0 0 0 5px rgba(197, 240, 74, 0.5); }
.field ::placeholder { color: var(--ink-3); opacity: 1; }
[aria-invalid="true"] { border-color: #a33a1f !important; }
.consent label { display: grid; grid-template-columns: auto 1fr; gap: 12px; font-weight: 400; font-size: 0.9rem; color: var(--ink-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--forest); }

.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 10px; padding: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 0.92rem; font-weight: 500; transition: background-color 0.25s, color 0.25s, box-shadow 0.25s; }
.chip .icon { width: 0; opacity: 0; transition: width 0.25s var(--ease-out), opacity 0.25s; color: var(--lime); }
.chip:hover span { box-shadow: inset 0 0 0 1px var(--ink-2); }
.chip input:checked + span { background: var(--forest); color: var(--paper); box-shadow: none; }
.chip input:checked + span .icon { width: 1em; opacity: 1; }
.chip input:focus-visible + span { outline: 2px solid var(--forest); outline-offset: 2px; box-shadow: 0 0 0 5px rgba(197, 240, 74, 0.55); }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.form-status { font-size: 0.95rem; font-weight: 500; flex: 1 1 16rem; }
.form-status[data-state="ok"] { color: var(--forest); }
.form-status[data-state="ok"]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime-deep); margin-right: 8px; vertical-align: middle; }
.form-status[data-state="error"] { color: #a33a1f; }
.form-status[data-state="loading"] { color: var(--ink-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 860px) {
  .field-row { grid-template-columns: 1fr; gap: 22px; }
  .page-head, .page-head.has-stage { grid-template-columns: 1fr; padding-top: 112px; padding-bottom: 48px; }
  .page-head-stage { aspect-ratio: 16 / 10; max-height: 30svh; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-title { grid-row: auto; }
  .apercu-savoir { grid-template-columns: 1fr; }
  .projet-hero { grid-template-columns: 1fr; padding-top: 104px; }
  .projet-detail { grid-template-columns: 1fr; }
  .projet-nav { grid-template-columns: 1fr; }
  .projet-nav-lien.next { grid-column: auto; border-left: 0; border-top: 1px solid rgba(244, 241, 234, 0.12); }
  .contact-body { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
  .demande-form { padding: 22px 18px; }
}

/* ============================================================ FOOTER */

.site-footer { background: var(--forest-ink); color: rgba(244, 241, 234, 0.82); padding: clamp(56px, 8vh, 96px) var(--gutter) 32px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.footer-brand .mark { width: 46px; color: var(--paper); }
.footer-brand .mark circle { fill: var(--lime); }
.footer-name { margin-top: 18px; font-stretch: 125%; font-weight: 400; font-size: var(--step-2); color: var(--paper); letter-spacing: -0.02em; }
.footer-tag { margin-top: 6px; color: rgba(244, 241, 234, 0.6); }
.footer-links { list-style: none; display: grid; gap: 10px; align-content: start; justify-items: start; }
.footer-links a { text-decoration: none; border-bottom: 1px solid rgba(244, 241, 234, 0.2); }
.footer-links a:hover { color: var(--lime); border-color: var(--lime); }
.footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 28px; margin-top: 12px; border-top: 1px solid rgba(244, 241, 234, 0.12); font-size: 0.84rem; color: rgba(244, 241, 234, 0.55); }
.footer-legal a { color: inherit; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }

/* ============================================================ 3D overlay & reveal */

.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.8s var(--ease-out); }
.is-live > .stage-canvas { opacity: 1; }
.projet-statut { z-index: 2; }

.will-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out); }
.will-reveal.is-in { opacity: 1; transform: none; }

/* ============================================================ pages */

.page-simple { padding: 140px var(--gutter) 96px; }
.prose { max-width: 70ch; margin: 0 auto; }
.prose h1 { font-stretch: 125%; font-weight: 340; font-size: var(--step-3); letter-spacing: -0.03em; line-height: 1; margin-bottom: 2rem; }
.prose h2 { font-stretch: 118%; font-weight: 400; font-size: var(--step-2); margin: 2.4em 0 0.6em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose-figure { margin: 0 0 2rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
