/* Hallmark · pre-emit critique: P5 H4 E4 S5 R4 V5
 * macrostructure: bespoke « planche de scénographe » · tone: editorial, austere, tactile · anchor hue: ocre rouge
 * theme: custom (vibe: "terre et papier, trait d'architecte, rideau de théâtre")
 * paper #F5F1EA · accent #9A4A36 · Cormorant Garamond + Jost — palette imposée (cahier des charges, proposition 4)
 * nav: N3 side-rail · footer: Ft5 statement (« Rideau ») · enrichment: B hand-built SVG (perspective, oiseaux)
 * contrast: pass (40–41) · honest: pass (46) · chrome: pass (47) · tokens: pass (48) · mobile: pass (34, 49, 50–57)
 */

@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* Palette « Terre et papier » */
  --color-paper: #F5F1EA;
  --color-paper-2: #EEE8DE;
  --color-ink: #2E2622;
  --color-taupe: #6B6158;
  --color-accent: #9A4A36;
  --color-accent-ink: #FFFFFF;
  --color-blue: #3F5159;
  --color-sage: #5E6E5A;
  --color-rule: #DCD3C6;
  --color-veil: color-mix(in srgb, #2E2622 55%, transparent);
  --color-focus: #9A4A36;
  --color-light: #FFECCD;  /* lumière chaude de poursuite */
  --color-mist: #E1E6EC;   /* brume des peintures */

  --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-body: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem);
  --text-2xl: clamp(2.2rem, 1.6rem + 2.2vw, 3.4rem);
  --text-display: clamp(3rem, 1.8rem + 5vw, 6.6rem);

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6.5rem;
  --space-4xl: 10rem;

  --rail: 17.5rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 3.5rem);
  --measure: 34em;

  --rule: 1px solid var(--color-rule);
  --radius-0: 0;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-mid: 480ms;
  --dur-slow: 1100ms;
  --dur-draw: 1100ms;

  --octagon: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; font-style: normal; line-height: 1.05; margin: 0; letter-spacing: -0.005em; overflow-wrap: anywhere; min-width: 0; }
p { margin: 0 0 var(--space-md); }
strong, b { font-weight: 500; }
button { font: inherit; color: inherit; }
::selection { background: var(--color-accent); color: var(--color-accent-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--space-md); top: -4rem; z-index: 100; background: var(--color-ink); color: var(--color-paper); padding: var(--space-xs) var(--space-md); }
.skip:focus { top: var(--space-md); }

/* Grain de papier : une seule couche, fixe, imperceptible au premier regard */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .18 0 0 0 0 .15 0 0 0 0 .13 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Small type roles ---------- */
.kicker {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-taupe);
}
.kicker--sage { color: var(--color-sage); }
.meta { font-size: var(--text-sm); color: var(--color-taupe); }
.lead { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.45; font-weight: 400; max-width: var(--measure); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  min-height: 2.75rem;
  padding: 0 var(--space-lg);
  border: 1px solid var(--color-ink);
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:hover { background: var(--color-ink); color: var(--color-paper); }
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--solid:hover { background: var(--color-ink); border-color: var(--color-ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn[data-state="loading"] { cursor: progress; opacity: 0.8; }

.more {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  color: var(--color-accent);
  text-decoration: none;
  white-space: nowrap;
}
.more::after {
  content: "";
  width: 1.6em; height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out);
}
a:hover .more::after, .more:hover::after { transform: scaleX(1.8); }

.link { color: var(--color-accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--color-accent) 40%, transparent); transition: text-decoration-color var(--dur-fast) var(--ease-out); }
.link:hover { text-decoration-color: currentColor; }

/* ---------- Frame : rail latéral fixe ---------- */
.rail {
  position: fixed; inset: 0 auto 0 0;
  width: var(--rail);
  padding: var(--space-xl) var(--space-lg) var(--space-lg) var(--gutter);
  display: flex; flex-direction: column;
  z-index: 50;
}
.rail__name { text-decoration: none; display: block; }
.rail__name strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.05rem;
  line-height: 0.95;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.rail__name span { display: block; margin-top: var(--space-xs); }
.rail__nav { margin-top: var(--space-2xl); }
.rail__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.rail__nav a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-size: var(--text-sm);
  line-height: 1.35;
  padding: 0.15em 0;
  color: var(--color-ink);
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-mid) var(--ease-out);
}
.rail__nav a::before {
  content: "";
  position: absolute; left: -1.1em; top: 50%;
  width: 0.7em; height: 1px;
  background: var(--color-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out);
}
.rail__nav a:hover { transform: translateX(0.25em); }
.rail__nav a[aria-current="page"] { color: var(--color-accent); }
.rail__nav a[aria-current="page"]::before, .rail__nav a:hover::before { transform: scaleX(1); }
.rail__foot { margin-top: auto; display: grid; gap: var(--space-xs); font-size: var(--text-sm); }
.rail__foot a { text-decoration: none; color: var(--color-taupe); transition: color var(--dur-fast) var(--ease-out); }
.rail__foot a:hover { color: var(--color-accent); }

/* Règle graduée : la progression de lecture, comme une échelle de plan */
.scale {
  position: absolute; top: var(--space-xl); bottom: var(--space-xl); right: 0;
  width: 9px;
  background:
    repeating-linear-gradient(to bottom, var(--color-rule) 0 1px, transparent 1px 10px) right / 5px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--color-taupe) 0 1px, transparent 1px 50px) right / 9px 100% no-repeat;
  opacity: 0.8;
}
.scale::after {
  content: "";
  position: absolute; right: 0; top: 0;
  width: 15px; height: 1px;
  background: var(--color-accent);
  transform: translateY(calc(var(--progress, 0) * (100cqh - 1px)));
}
.scale { container-type: size; }

.main {
  margin-left: var(--rail);
  padding: 0 var(--gutter);
  min-width: 0;
}
.page { padding-top: var(--space-xl); padding-bottom: var(--space-3xl); }

/* Mobile : barre supérieure + menu plein écran */
.topbar { display: none; }
@media (max-width: 960px) {
  :root { --rail: 0px; }
  .rail {
    position: fixed; inset: 0;
    width: auto;
    padding: 6rem var(--gutter) var(--space-xl);
    background: var(--color-paper);
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path var(--dur-mid) var(--ease-in-out), visibility 0s linear var(--dur-mid);
  }
  .rail .rail__name { display: none; }
  .rail__nav { margin-top: 0; }
  .rail__nav a { font-family: var(--font-display); font-size: clamp(1.1rem, 5.6vw, 2.2rem); white-space: nowrap; }
  .rail__nav a::before { display: none; }
  .scale { display: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open .rail { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path var(--dur-mid) var(--ease-in-out), visibility 0s; }
  .topbar {
    position: sticky; top: 0; z-index: 60;
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
    padding: var(--space-sm) var(--gutter);
    background: color-mix(in srgb, var(--color-paper) 92%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: var(--rule);
  }
  .topbar .rail__name strong { font-size: 1.5rem; }
  .topbar .rail__name span { display: none; }
  .burger {
    width: 2.75rem; height: 2.75rem;
    display: grid; place-content: center; gap: 6px;
    background: none; border: 0; padding: 0; cursor: pointer;
  }
  .burger span { display: block; width: 24px; height: 1px; background: var(--color-ink); transition: transform var(--dur-mid) var(--ease-out); }
  body.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
  body.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .main { margin-left: 0; }
}

/* ---------- Page heads ---------- */
.head { padding: var(--space-2xl) 0 var(--space-2xl); display: grid; gap: var(--space-lg); max-width: 62rem; }
.head h1 { font-size: var(--text-display); font-weight: 300; }
.head__text { columns: 2 18rem; column-gap: var(--space-xl); max-width: 58rem; }
.head__text p { break-inside: avoid; }
.head .rule-draw { margin-top: var(--space-md); }

.rule-draw {
  height: 1px; background: var(--color-ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.is-in .rule-draw, .rule-draw.is-in { transform: scaleX(1); }

/* ---------- Reveal : lever de rideau ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--delay, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
/* Haut de page : animé en CSS dès le premier affichage, sans attendre le JavaScript */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
:is(.head, .sheet__title, .sheet__cols, .bio__text, .contact__body, .cv__title) > [data-reveal],
.sheet__cols > div[data-reveal] { opacity: 1; transform: none; transition: none; animation: rise 0.9s var(--ease-out) both; animation-delay: var(--delay, 0ms); }
[data-curtain] { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-in-out); transition-delay: var(--delay, 0ms); }
[data-curtain] img { transform: scale(1.12); transition: transform 1.8s var(--ease-out); transition-delay: var(--delay, 0ms); }
[data-curtain].is-in { clip-path: inset(0 0 0 0); }
[data-curtain].is-in img { transform: scale(1); }
.no-js [data-reveal], .no-js [data-curtain] { opacity: 1; transform: none; clip-path: none; }

/* ---------- Accueil ---------- */
.home .main { padding: 0; }
.hero {
  position: relative;
  height: 100svh; min-height: 34rem;
  overflow: hidden;
  color: var(--color-ink);
}
.hero__img { position: absolute; inset: 0; }
.hero__img picture { position: absolute; inset: 0; display: grid; place-items: center; }
.hero__img img {
  position: relative; width: auto; height: auto; max-width: 100%; max-height: 100%;
  transform: translateY(calc(var(--hp, 0) * 4%)); will-change: transform;
  /* bords fondus dans la brume : l'œuvre reste entière, sans arête visible */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
  mask-composite: intersect;
}
@property --iris { syntax: "<percentage>"; inherits: false; initial-value: 150%; }
.hero__develop { position: absolute; inset: 0; --iris: 150%; -webkit-mask-image: radial-gradient(circle at var(--vx, 52%) var(--vy, 47%), #000 calc(var(--iris) - 18%), transparent var(--iris)); mask-image: radial-gradient(circle at var(--vx, 52%) var(--vy, 47%), #000 calc(var(--iris) - 18%), transparent var(--iris)); }
.js .hero__develop { --iris: 0%; transition: --iris 1.8s var(--ease-in-out) 0.45s; }
.js .hero.is-on .hero__develop { --iris: 150%; }
.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__lines line, .hero__lines path, .hero__lines circle { fill: none; stroke: var(--color-ink); stroke-width: 0.9; vector-effect: non-scaling-stroke; }
.js .hero__lines .l { stroke-dasharray: 2600; stroke-dashoffset: 2600; transition: stroke-dashoffset var(--dur-draw) var(--ease-in-out), opacity 1.2s var(--ease-out) 1.8s; transition-delay: var(--d, 0ms), 1.8s; }
.js .hero.is-on .hero__lines .l { stroke-dashoffset: 0; opacity: 0.0; }
.hero__lines .vp { fill: var(--color-accent); stroke: none; }
.js .hero__lines .vp { opacity: 0; transition: opacity 600ms var(--ease-out) 0.9s; }
.js .hero.is-on .hero__lines .vp { opacity: 1; animation: vp-out 1s var(--ease-out) 2s forwards; }
@keyframes vp-out { to { opacity: 0; } }

.hero__title {
  position: absolute;
  left: var(--gutter); top: clamp(1.5rem, 5vh, 3.5rem);
  z-index: 2;
}
.hero__title h1 {
  font-size: clamp(3.2rem, 1.4rem + 7.4vw, 9.5rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.02em;
}
.hero__title h1 span { display: block; }
.hero__title h1 span:last-child { padding-left: 0.62em; }
.hero__title .kicker { display: block; margin-top: var(--space-lg); color: var(--color-ink); padding-left: 0.4em; }
.hero__title h1 span, .hero__title .kicker { animation: rise 1s var(--ease-out) both; }
.hero__title h1 span:nth-child(2) { animation-delay: 0.12s; }
.hero__title .kicker { animation-delay: 0.5s; }

.hero__nav { position: absolute; z-index: 3; top: clamp(1.5rem, 5vh, 3.5rem); right: var(--gutter); }
.hero__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); text-align: right; }
.hero__nav a { text-decoration: none; font-size: var(--text-sm); }
.hero__nav a:hover { color: var(--color-accent); }

.hero__contact {
  position: absolute; z-index: 2;
  left: var(--gutter); bottom: var(--space-xl);
  display: grid; gap: var(--space-2xs);
  font-size: var(--text-sm);
}
.hero__contact a { text-decoration: none; }
.hero__contact a:hover { color: var(--color-accent); }
.hero__caption { position: absolute; z-index: 2; right: var(--gutter); bottom: var(--space-xl); font-size: var(--text-xs); color: var(--color-ink); text-align: right; }
.hero__caption em { font-family: var(--font-display); font-size: var(--text-base); }

.descend {
  position: absolute; z-index: 2;
  left: 50%; bottom: clamp(1.75rem, 4vh, 2.75rem);
  translate: -50% 0;
  display: grid; justify-items: center; gap: var(--space-xs);
  text-decoration: none;
  font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase;
}
.descend svg { width: 22px; height: 46px; overflow: visible; }
.descend svg path { fill: none; stroke: var(--color-ink); stroke-width: 1; }
.descend svg { animation: descend 2.6s var(--ease-in-out) infinite; }
@keyframes descend { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(8px); } }

/* Accueil sans rail visible au-dessus de l'image */
.home .rail { opacity: 0; pointer-events: none; transform: translateX(-12px); transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out); }
.home.past-hero .rail { opacity: 1; pointer-events: auto; transform: none; }
.home .after-hero { margin-left: var(--rail); padding: 0 var(--gutter); }
@media (max-width: 960px) {
  .home .rail { opacity: 1; transform: none; pointer-events: auto; }
  .home .topbar { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; transition: background-color var(--dur-mid) var(--ease-out), border-color var(--dur-mid); }
  .home.past-hero .topbar { background: color-mix(in srgb, var(--color-paper) 92%, transparent); border-color: var(--color-rule); }
  .home .topbar .rail__name { opacity: 0; transition: opacity var(--dur-mid); }
  .home.past-hero .topbar .rail__name { opacity: 1; }
  .hero__nav { display: none; }
  .hero { height: 100svh; min-height: 30rem; }
  .descend { bottom: 7.5rem; }
  .hero .fog-fill { filter: blur(70px) saturate(0.7); opacity: 0.5; transform: scale(1.4); }
  .hero__img img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent), linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent), linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); }
  .hero__title { top: 5.5rem; }
  .hero__caption { display: none; }
  .home .after-hero { margin-left: 0; }
}

/* Actualités en arches */
.news { padding: var(--space-3xl) 0 var(--space-2xl); }
.news__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-xl); }
.news__head h2 { font-size: var(--text-2xl); font-weight: 300; }
.arches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 3.5rem); }
@media (max-width: 860px) { .arches { grid-template-columns: minmax(0, 1fr); max-width: 26rem; } }
.arch { text-decoration: none; display: grid; gap: var(--space-md); align-content: start; }
.arch__frame { position: relative; aspect-ratio: 3 / 4.1; }
.arch__img { position: absolute; inset: 0; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--color-paper-2); }
.arch__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.arch__line { position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); overflow: visible; pointer-events: none; }
.arch__line path { fill: none; stroke: var(--color-accent); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1600; stroke-dashoffset: 1600; transition: stroke-dashoffset 1.6s var(--ease-out); }
.arch:hover .arch__img img, .arch:focus-visible .arch__img img { transform: scale(1.045); }
.arch:hover .arch__line path, .arch:focus-visible .arch__line path { stroke-dashoffset: 0; }
.arch__text { display: grid; gap: var(--space-2xs); }
.arch__text h3 { font-size: var(--text-xl); }
.arch__text .who { font-size: var(--text-sm); }

/* ---------- Galerie polygonale ---------- */
.grid-shows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3.2vw, 4rem);
  row-gap: var(--space-3xl);
}
@media (max-width: 1180px) { .grid-shows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-shows { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2xl); } }
.show { text-decoration: none; display: grid; gap: var(--space-lg); align-content: start; }
.show__poly { position: relative; aspect-ratio: 1; }
.show__clip { position: absolute; inset: 0; clip-path: var(--octagon); background: var(--color-paper-2); overflow: hidden; }
.show__clip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out), filter var(--dur-mid) var(--ease-out); }
.show__outline { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); overflow: visible; pointer-events: none; }
.show__outline polygon { fill: none; stroke: var(--color-ink); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1800; stroke-dashoffset: 1800; transition: stroke-dashoffset 1.8s var(--ease-out); }
.show__outline .tick { stroke: var(--color-accent); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity var(--dur-mid) var(--ease-out) 0.5s; }
.show:hover .show__clip img, .show:focus-visible .show__clip img { transform: scale(1.06) rotate(0.6deg); }
.show:hover .show__outline polygon, .show:focus-visible .show__outline polygon { stroke-dashoffset: 0; }
.show:hover .show__outline .tick, .show:focus-visible .show__outline .tick { opacity: 1; }
.show__text { display: grid; gap: var(--space-xs); }
.show__text h2 { font-size: var(--text-xl); font-weight: 500; }
.show__text .author { font-family: var(--font-display); font-size: var(--text-md); color: var(--color-ink); margin-top: -0.2em; }
.credits { list-style: none; margin: 0; padding: 0; font-size: var(--text-sm); line-height: 1.55; color: var(--color-taupe); }
.credits b { color: var(--color-ink); font-weight: 500; }
.credits .is-laure { color: var(--color-accent); }
.credits .is-laure b { color: var(--color-accent); }
.credits .creation { margin-top: var(--space-xs); }
.show .more { margin-top: var(--space-xs); }

/* ---------- Fiche spectacle : feuille de programme ---------- */
.sheet { max-width: 74rem; padding-top: var(--space-2xl); }
.sheet__top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.sheet__title .kicker { display: inline-block; margin-bottom: var(--space-lg); }
.sheet__title .author { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-ink); display: block; margin-bottom: var(--space-2xs); }
.sheet__title h1 { font-size: var(--text-display); color: var(--color-accent); font-weight: 400; }
.sheet__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-2xl); margin-top: var(--space-2xl); border-top: var(--rule); padding-top: var(--space-xl); }
.sheet__credits .credits { font-size: var(--text-base); color: var(--color-taupe); }
.sheet__credits .credits li + li { margin-top: 0.15em; }
.sheet__cast { margin-top: var(--space-lg); display: grid; gap: var(--space-xs); }
.sheet__cast .credits { font-size: var(--text-sm); }
.sheet__prod { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-taupe); display: grid; gap: 0.2em; }
.venues { list-style: none; padding: 0; margin: var(--space-xl) 0 0; display: grid; gap: var(--space-md); }
.venues li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-sm); color: var(--color-blue); font-size: var(--text-sm); line-height: 1.45; }
.venues svg { width: 14px; height: 18px; margin-top: 0.15em; }
.venues svg path { fill: none; stroke: var(--color-blue); stroke-width: 1.1; }
.sheet__summary h2 { font-size: var(--text-lg); font-weight: 500; margin-bottom: var(--space-sm); }
.sheet__summary p { max-width: var(--measure); }
.sheet__summary .quote { font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); line-height: 1.4; }
@media (max-width: 860px) {
  .sheet__top, .sheet__cols { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
}

.gallery { margin-top: var(--space-2xl); }
.gallery__stage { position: relative; background: none; height: min(78svh, 52vw); overflow: hidden; cursor: zoom-in; border: 0; padding: 0; width: 100%; display: grid; place-items: center start; }
.gallery__stage img { width: auto; height: auto; max-width: 100%; max-height: 100%; transition: opacity var(--dur-mid) var(--ease-out); }
@media (max-width: 620px) { .gallery__stage { height: auto; } .gallery__stage img { height: auto; } }
.gallery__stage img.is-swap { opacity: 0; }
.gallery__cap { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-taupe); min-height: 1.6em; }
.gallery__thumbs { display: flex; gap: var(--space-sm); margin-top: var(--space-md); overflow-x: auto; padding-bottom: var(--space-xs); scrollbar-width: thin; }
.gallery__thumbs button { flex: 0 0 auto; width: clamp(7rem, 12vw, 11rem); aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--color-paper-2); cursor: pointer; opacity: 0.55; transition: opacity var(--dur-fast) var(--ease-out); position: relative; }
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button:hover, .gallery__thumbs button[aria-current="true"] { opacity: 1; }
.gallery__thumbs button[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--color-accent); }

.pager { margin-top: var(--space-3xl); border-top: var(--rule); padding-top: var(--space-lg); display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-md); align-items: start; font-size: var(--text-sm); }
.pager a { text-decoration: none; display: grid; gap: var(--space-2xs); }
.pager a span:last-child { font-family: var(--font-display); font-size: var(--text-lg); }
.pager a:hover span:last-child { color: var(--color-accent); }
.pager .next { text-align: right; justify-self: end; }
.pager .back { align-self: center; }
@media (max-width: 620px) { .pager a span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pager a { min-width: 0; } .pager { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pager .back { grid-column: 1 / -1; grid-row: 2; justify-self: start; } }

/* ---------- Peintures et dessins : rythme d'exposition ---------- */
.series { margin-top: var(--space-3xl); }
.series__head { display: grid; gap: var(--space-xs); margin-bottom: var(--space-2xl); max-width: 40rem; }
.series__head h2 { font-size: var(--text-2xl); font-weight: 300; }
.series__head p { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.4; margin: 0; }
.wall { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.4vw, 3rem); row-gap: var(--space-3xl); align-items: end; }
.work { margin: 0; min-width: 0; }
.work--solo { grid-column: 2 / span 9; }
.work--solo.is-right { grid-column: 4 / span 9; }
.work--pair { grid-column: span 6; }
.work--trio { grid-column: span 4; }
.work--detail { grid-column: span 4; }
.work--detail.is-wide { grid-column: span 8; }
@media (max-width: 1100px) {
  .work--solo, .work--solo.is-right { grid-column: 1 / -1; }
  .work--trio, .work--detail { grid-column: span 6; }
  .work--detail.is-wide { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .wall { row-gap: var(--space-2xl); }
  .work--pair, .work--trio, .work--detail { grid-column: 1 / -1; }
}
.work__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.work--solo .work__btn { width: fit-content; max-width: 100%; }
.work--solo.is-right { justify-self: end; }
.work--solo.is-right figcaption { text-align: right; }
.work--solo .work__img img { width: auto; max-width: 100%; max-height: 86svh; }
.work__img { position: relative; overflow: hidden; }
.work__img img { width: 100%; height: auto; transition: transform 1.6s var(--ease-out); }
.work--detail .work__img { aspect-ratio: 1; }
.work--detail .work__img img { width: 100%; height: 100%; object-fit: cover; }
.work__btn:hover .work__img img { transform: scale(1.025); }
/* Repères de coupe : quatre angles qui apparaissent au survol */
.marks { position: absolute; inset: -10px; pointer-events: none; }
.marks i { position: absolute; width: 14px; height: 14px; border-color: var(--color-ink); border-style: solid; border-width: 0; opacity: 0; transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out); }
.marks i:nth-child(1) { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; transform: translate(6px, 6px); }
.marks i:nth-child(2) { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; transform: translate(-6px, 6px); }
.marks i:nth-child(3) { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; transform: translate(6px, -6px); }
.marks i:nth-child(4) { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; transform: translate(-6px, -6px); }
.work__btn:hover .marks i, .work__btn:focus-visible .marks i { opacity: 1; transform: none; }
/* Cotation : lignes de cote quand les dimensions sont connues */
.cote { position: absolute; font-size: var(--text-xs); color: var(--color-taupe); letter-spacing: 0.06em; pointer-events: none; opacity: 0; transition: opacity var(--dur-mid) var(--ease-out) 0.15s; white-space: nowrap; }
.cote--w { left: 0; right: 0; top: -1.6rem; text-align: center; }
.cote--w::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--color-taupe); transform: scaleX(0); transition: transform 0.9s var(--ease-in-out); z-index: -1; }
.cote--w span { background: var(--color-paper); padding: 0 0.6em; position: relative; }
.cote--h { top: 0; bottom: 0; right: -1.7rem; writing-mode: vertical-rl; display: grid; place-items: center; }
.work__btn:hover .cote, .work__btn:focus-visible .cote { opacity: 1; }
.work__btn:hover .cote--w::before { transform: scaleX(1); }
.work figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-taupe); line-height: 1.5; }
.work figcaption cite { font-style: normal; font-family: var(--font-display); font-size: var(--text-md); color: var(--color-ink); }
.work figcaption .avail { color: var(--color-sage); }

/* ---------- Visionneuse ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  opacity: 0; transition: opacity var(--dur-mid) var(--ease-out), display var(--dur-mid) allow-discrete, overlay var(--dur-mid) allow-discrete;
}
.lightbox:not([open]) { display: none; }
.lightbox[open] { opacity: 1; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox::backdrop { background: var(--color-paper); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: var(--space-md) var(--gutter); font-size: var(--text-sm); color: var(--color-taupe); }
.lightbox__stage { position: relative; overflow: hidden; display: grid; place-items: center; padding: 0 clamp(3.5rem, 7vw, 7rem); cursor: zoom-in; touch-action: pan-y; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform var(--dur-mid) var(--ease-out), opacity var(--dur-fast) var(--ease-out); transform-origin: var(--ox, 50%) var(--oy, 50%); }
.lightbox__stage.is-zoom { cursor: zoom-out; }
.lightbox__stage.is-zoom img { transform: scale(2.4); transition: transform var(--dur-mid) var(--ease-out); }
.lightbox__cap { padding: var(--space-md) var(--gutter) var(--space-lg); text-align: center; font-size: var(--text-sm); color: var(--color-taupe); min-height: 3.5rem; }
.lightbox__cap cite { font-style: normal; font-family: var(--font-display); font-size: var(--text-md); color: var(--color-ink); }
.lightbox__btn { background: none; border: 0; cursor: pointer; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; color: var(--color-ink); }
.lightbox__btn:hover { color: var(--color-accent); }
.lightbox__btn svg { width: 26px; height: 26px; }
.lightbox__btn svg path { fill: none; stroke: currentColor; stroke-width: 1; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; }
.lightbox__prev { left: var(--space-md); }
.lightbox__next { right: var(--space-md); }
@media (max-width: 620px) { .lightbox__stage { padding: 0 var(--space-xs); } .lightbox__prev, .lightbox__next { top: auto; bottom: -3.3rem; } }

/* ---------- Bio & CV ---------- */
.bio { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: start; padding-top: var(--space-2xl); }
.bio__photo { position: sticky; top: var(--space-xl); }
.bio__photo figcaption { margin-top: var(--space-xs); }
.bio__text h1 { font-size: var(--text-display); font-weight: 300; margin-bottom: var(--space-lg); }
.bio__text .body { max-width: 36em; }
.bio__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.readmore { display: none; }
@media (max-width: 860px) {
  .bio { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .bio__photo { position: static; max-width: 22rem; }
  .bio__text .body.is-clamped { max-height: 15.5em; overflow: hidden; mask-image: linear-gradient(to bottom, #000 60%, transparent); }
  .readmore { display: inline-flex; background: none; border: 0; padding: 0; cursor: pointer; margin-top: var(--space-xs); }
}

.cv { margin-top: var(--space-4xl); }
.cv__title { display: flex; align-items: end; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; border-bottom: 1px solid var(--color-ink); padding-bottom: var(--space-md); }
.cv__title h2 { font-size: clamp(4rem, 2rem + 8vw, 9rem); font-weight: 300; line-height: 0.8; }
.cv__toc {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--color-paper) 94%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: var(--rule);
  margin: 0 calc(var(--gutter) * -1);
  padding: var(--space-sm) var(--gutter);
}
.cv__toc ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-xs) var(--space-lg); overflow-x: auto; scrollbar-width: none; }
.cv__toc a { white-space: nowrap; font-size: var(--text-sm); text-decoration: none; color: var(--color-taupe); display: inline-block; padding: 0.35em 0; border-bottom: 1px solid transparent; transition: color var(--dur-fast), border-color var(--dur-fast); }
.cv__toc a:hover, .cv__toc a.is-active { color: var(--color-accent); border-color: currentColor; }
@media (max-width: 960px) { .cv__toc { top: 3.85rem; } .cv__toc a { border: 1px solid var(--color-rule); padding: 0.3em 0.9em; border-radius: 999px; } .cv__toc a.is-active { border-color: var(--color-accent); } }

.cv__section { padding-top: var(--space-2xl); scroll-margin-top: 5rem; }
.cv__section > h3, .cv__section > details > summary h3 { font-size: var(--text-2xl); font-weight: 400; }
.cv__section > h3 { margin-bottom: var(--space-lg); }
.cv-list { list-style: none; margin: 0; padding: 0; }
.cv-row { display: grid; grid-template-columns: 4.5rem minmax(0, 2.2fr) minmax(0, 1.3fr) 9.5rem minmax(0, 1.4fr); gap: var(--space-md); padding: var(--space-sm) 0; border-top: var(--rule); font-size: var(--text-sm); align-items: baseline; }
.cv-row--head { color: var(--color-taupe); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; border-top: 0; padding-bottom: var(--space-xs); }
.cv-row .yr { font-variant-numeric: tabular-nums; color: var(--color-taupe); }
.cv-row .ttl cite { font-style: normal; font-family: var(--font-display); font-size: var(--text-md); color: var(--color-ink); }
.cv-row .place { color: var(--color-taupe); }
.cv-list--simple .cv-row { grid-template-columns: 4.5rem minmax(0, 1fr); }
.tag { display: inline-block; font-size: 0.7rem; letter-spacing: 0.06em; padding: 0.15em 0.7em; border: 1px solid var(--color-ink); white-space: nowrap; line-height: 1.6; }
.tag--solid { background: var(--color-ink); color: var(--color-paper); }
.cv-more { margin-top: var(--space-md); }
.cv-hidden { display: none; }
.cv-list.is-open .cv-hidden { display: grid; }
details.cv-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); padding-bottom: var(--space-md); }
details.cv-fold > summary::-webkit-details-marker { display: none; }
details.cv-fold > summary .plus { position: relative; width: 18px; height: 18px; flex: none; }
details.cv-fold > summary .plus::before, details.cv-fold > summary .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--color-ink); transition: transform var(--dur-mid) var(--ease-out); }
details.cv-fold > summary .plus::after { transform: rotate(90deg); }
details.cv-fold[open] > summary .plus::after { transform: rotate(0deg); }
details.cv-fold > summary:hover h3 { color: var(--color-accent); }
details.cv-fold::details-content { block-size: 0; overflow: clip; transition: block-size var(--dur-mid) var(--ease-out), content-visibility var(--dur-mid) allow-discrete; }
details.cv-fold[open]::details-content { block-size: auto; }
:root { interpolate-size: allow-keywords; }

@media (max-width: 860px) {
  .cv-row--head { display: none; }
  .cv-row, .cv-list--simple .cv-row { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; padding: var(--space-md) 0; }
  .cv-row .role { order: -1; }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100svh; margin: 0 calc(var(--gutter) * -1); }
.contact__art { position: relative; margin: 0; }
.contact__art .sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.contact__img { position: absolute; inset: 0; }
.contact__img picture { position: absolute; inset: clamp(1.5rem, 4vw, 3.5rem); }
.contact__img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 30px color-mix(in srgb, var(--color-ink) 18%, transparent)); }
.contact__art figcaption { position: absolute; left: var(--space-md); bottom: var(--space-md); font-size: var(--text-xs); background: var(--color-paper); padding: 0.2em 0.6em; }
.contact__body { padding: var(--space-2xl) var(--gutter) var(--space-2xl); display: grid; align-content: start; gap: var(--space-xl); }
.contact__body h1 { font-size: var(--text-display); font-weight: 300; }
.mail { font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.6vw, 2.3rem); color: var(--color-accent); text-decoration: none; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat; transition: background-size var(--dur-mid) var(--ease-out); }
.mail:hover { background-size: 100% 1px; }
.contact__links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); font-size: var(--text-sm); }
@media (max-width: 960px) {
  .contact { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .contact__art .sticky { position: relative; height: 55svh; }
  .contact__art figcaption { position: static; display: block; margin: var(--space-xs) var(--gutter) 0; background: none; padding: 0; }
  .contact__art .sticky:has(figcaption) { height: auto; }
  .contact__img { position: relative; height: 55svh; }
  .contact__body { padding-top: var(--space-xl); }
}

.form { display: grid; gap: var(--space-lg); max-width: 34rem; }
.field { display: grid; gap: var(--space-2xs); }
.field label { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-taupe); }
.field label small { text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  font: inherit; font-weight: 300;
  color: var(--color-ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--color-taupe);
  padding: 0.5em 0;
  border-radius: 0;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--color-ink); }
.field input, .field textarea { outline: 2px solid transparent; outline-offset: 3px; }
.field input:focus-visible, .field textarea:focus-visible { outline-color: var(--color-focus); border-bottom-color: var(--color-accent); }
.field input:disabled, .field textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--color-accent); }
.field .err { font-size: var(--text-xs); color: var(--color-accent); min-height: 1em; }
.form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-lg); }
@media (max-width: 520px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
.form .rgpd { font-size: var(--text-xs); color: var(--color-taupe); max-width: 30rem; margin: 0; }
.form .hp { position: absolute; left: -9999px; }
.form__status { font-size: var(--text-sm); min-height: 1.5em; }
.form__status[data-state="success"] { color: var(--color-sage); }
.form__status[data-state="error"] { color: var(--color-accent); }

/* ---------- Pied de page ---------- */
.foot { margin-top: var(--space-3xl); border-top: var(--rule); padding: var(--space-xl) 0 var(--space-xl); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md) var(--space-xl); font-size: var(--text-xs); color: var(--color-taupe); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.foot a { text-decoration: none; white-space: nowrap; }
.foot a:hover { color: var(--color-accent); }

/* ---------- Mentions ---------- */
.legal { max-width: 42rem; padding-top: var(--space-2xl); }
.legal h1 { font-size: var(--text-2xl); margin-bottom: var(--space-xl); }
.legal h2 { font-size: var(--text-lg); margin: var(--space-xl) 0 var(--space-sm); font-weight: 500; }

/* ---------- Transitions de page (navigateurs compatibles) ---------- */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 700ms; animation-timing-function: var(--ease-in-out); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
.rail, .topbar { view-transition-name: rail; }
::view-transition-group(rail) { animation: none; }


/* Ne jamais couper une œuvre : elle est montrée entière, la même image floutée remplit l'espace autour */
.fog-fill { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(34px) saturate(0.85); opacity: 0.95; transform: scale(1.08); }
.contact__img { overflow: hidden; background: var(--color-paper-2); }

/* ---------- Accueil : donner envie de l'engager ---------- */
.engage { padding: var(--space-3xl) 0 0; display: grid; gap: var(--space-3xl); }
.engage__quote { max-width: 60rem; display: grid; gap: var(--space-lg); }
.engage__quote blockquote { margin: 0; }
.engage__quote blockquote p { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.7rem, 1.1rem + 2.2vw, 3.1rem); line-height: 1.18; letter-spacing: -0.005em; text-wrap: balance; margin: 0; }
.engage__quote blockquote footer { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-taupe); letter-spacing: 0.06em; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--color-ink); }
.facts li { padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; display: grid; gap: var(--space-xs); align-content: start; }
.facts li + li { padding-left: var(--space-lg); border-left: var(--rule); }
.facts strong { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); line-height: 1.15; }
.facts span { font-size: var(--text-sm); color: var(--color-taupe); }
@media (max-width: 960px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts li:nth-child(3) { padding-left: 0; border-left: 0; } .facts li:nth-child(n+3) { border-top: var(--rule); } }
@media (max-width: 520px) { .facts { grid-template-columns: minmax(0, 1fr); } .facts li + li { padding-left: 0; border-left: 0; border-top: var(--rule); } }

/* Générique : les lieux défilent comme au salut */
.engage__roll { display: grid; gap: var(--space-md); }
.roll { display: flex; overflow: hidden; border-block: var(--rule); padding: var(--space-md) 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.roll__track { list-style: none; margin: 0; padding: 0; display: flex; flex: none; gap: var(--space-2xl); padding-right: var(--space-2xl); animation: roll 70s linear infinite; }
.roll__track li { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); white-space: nowrap; color: var(--color-ink); display: flex; align-items: center; gap: var(--space-2xl); }
.roll__track li::after { content: ""; width: 9px; height: 9px; flex: none; clip-path: var(--octagon); background: var(--color-accent); opacity: 0.7; }
.roll:hover .roll__track { animation-play-state: paused; }
@keyframes roll { to { transform: translateX(-100%); } }

/* Appel à projet */
.cta { margin-top: var(--space-3xl); padding: var(--space-2xl) 0; border-top: 1px solid var(--color-ink); display: grid; gap: var(--space-md); max-width: 52rem; }
.cta__title { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.08; margin: 0; text-wrap: balance; }
.cta__text { margin: 0; color: var(--color-taupe); max-width: 34em; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-xl); margin-top: var(--space-sm); }
.engage .cta { margin-top: 0; }


/* Première visite seulement : l'intro ne se rejoue pas à chaque retour sur l'accueil */
.seen .hero__lines { display: none; }
.seen.js .hero__develop { --iris: 150%; transition: none; }
.seen .hero__mist { transition-delay: 0s; }

/* « Sur scène » : bande de photos de plateau qui défile à l'horizontale */
.film { padding: var(--space-2xl) 0 0; }
.film__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-lg); }
.film__head h2 { font-size: var(--text-2xl); font-weight: 300; }
.film__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(16rem, 34vw, 30rem);
  gap: var(--space-lg); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 0; padding-bottom: var(--space-md);
  scrollbar-width: thin; scrollbar-color: var(--color-rule) transparent;
  margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter);
}
.film__track:focus-visible { outline-offset: 6px; }
.film__item { scroll-snap-align: start; text-decoration: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); min-width: 0; }
.film__img picture { display: block; width: 100%; height: 100%; }
.film__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--color-paper-2); }
.film__img img { display: block; width: 100%; max-width: none; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), filter 0.7s var(--ease-out); filter: saturate(0.92); }
.film__item:hover .film__img img, .film__item:focus-visible .film__img img { transform: scale(1.04); filter: saturate(1.05); }
.film__cap { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); }
.film__title { font-family: var(--font-display); font-size: var(--text-lg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.film__cap .meta { white-space: nowrap; }
@media (max-width: 620px) { .film__track { grid-auto-columns: 78vw; } }

/* ================= La scène : détails d'atmosphère ================= */

/* Poursuite : une lumière chaude suit le regard, le reste du plateau s'assourdit */
.spot {
  position: fixed; inset: 0; z-index: 80; pointer-events: none;
  background:
    radial-gradient(circle 34vmax at var(--sx, 50%) var(--sy, 50%), color-mix(in srgb, var(--color-light) 16%, transparent), transparent 62%),
    radial-gradient(circle 70vmax at var(--sx, 50%) var(--sy, 50%), transparent 40%, color-mix(in srgb, var(--color-ink) 5%, transparent) 100%);
  mix-blend-mode: soft-light;
  opacity: 0; transition: opacity 1.2s var(--ease-out);
}
.cursor-on .spot { opacity: 1; }

/* Curseur : la croix de gaffer qui marque une place sur le plateau */
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input, .has-cursor textarea { cursor: text !important; }
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; opacity: 0; transition: opacity 0.4s var(--ease-out); }
.cursor-on .cursor { opacity: 1; }
.cursor i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; transition: transform 0.45s var(--ease-out), opacity 0.3s; }
.cursor i::before, .cursor i::after { content: ""; position: absolute; background: var(--color-accent); }
.cursor i::before { left: 8.5px; top: 0; width: 1px; height: 18px; }
.cursor i::after { top: 8.5px; left: 0; height: 1px; width: 18px; }
.cursor__label {
  position: absolute; left: 0; top: 0; translate: -50% -50%;
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--color-ink);
  background: color-mix(in srgb, var(--color-paper) 72%, transparent); backdrop-filter: blur(3px);
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-ink);
  scale: 0.2; opacity: 0; transition: scale 0.5s var(--ease-out), opacity 0.3s var(--ease-out);
}
.cursor[data-state="zoom"] .cursor__label, .cursor[data-state="look"] .cursor__label { scale: 1; opacity: 1; }
.cursor[data-state="zoom"] i, .cursor[data-state="look"] i { opacity: 0; }
.cursor[data-state="link"] i { transform: rotate(45deg) scale(1.35); }
.cursor.is-down i { transform: scale(0.6); }
.cursor.is-down .cursor__label { scale: 0.9; }
.lightbox .cursor { display: none; }

/* Maquettes : inclinaison en perspective + reflet de lumière */
.show__poly, .arch__frame { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.9s var(--ease-out); transform-style: preserve-3d; }
.show:hover .show__poly, .arch:hover .arch__frame { transition-duration: 0.25s; }
.show__clip::after, .arch__img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--lx, 50%) var(--ly, 30%), color-mix(in srgb, var(--color-light) 28%, transparent), transparent 55%);
  opacity: 0; transition: opacity 0.6s var(--ease-out);
}
.show:hover .show__clip::after, .arch:hover .arch__img::after { opacity: 1; }

/* Noir sur les autres : survoler un spectacle met le reste dans la pénombre */
@media (pointer: fine) {
  .grid-shows .show, .arches .arch { transition: opacity 0.7s var(--ease-out), filter 0.7s var(--ease-out); }
  .grid-shows:has(.show:hover) .show:not(:hover),
  .arches:has(.arch:hover) .arch:not(:hover) { opacity: 0.38; filter: grayscale(0.5); }
}

/* Lavis : une brume bleu-gris, celle de ses peintures, derrière les titres de page */
.head, .sheet__top, .bio__text, .contact__body { position: relative; }
.head::before, .sheet__top::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -8%; top: 10%; width: min(70vw, 56rem); height: 70%;
  background:
    radial-gradient(ellipse 45% 55% at 30% 60%, color-mix(in srgb, var(--color-blue) 11%, transparent), transparent 70%),
    radial-gradient(ellipse 35% 40% at 62% 40%, color-mix(in srgb, var(--color-accent) 5%, transparent), transparent 70%);
  filter: blur(18px);
  animation: wash 22s var(--ease-in-out) infinite alternate;
}
@keyframes wash { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(4%, -6%, 0) scale(1.08); } }

/* Accueil : profondeur de la toile, brume qui passe, oiseaux */
.hero__img img { translate: calc(var(--px, 0) * -14px) calc(var(--py, 0) * -10px); }
.hero__mist { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; opacity: 0; transition: opacity 2.4s var(--ease-out) 1.6s; }
.hero.is-on .hero__mist, .no-js .hero__mist { opacity: 1; }
.hero__mist i {
  position: absolute; left: -30%; width: 160%; height: 42%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, color-mix(in srgb, var(--color-mist) 55%, transparent), transparent 70%);
  filter: blur(24px);
  translate: calc(var(--px, 0) * 40px) 0;
}
.hero__mist i:nth-child(1) { bottom: -8%; animation: mist 38s linear infinite; }
.hero__mist i:nth-child(2) { bottom: 14%; height: 30%; opacity: 0.6; animation: mist 54s linear infinite reverse; }
.hero__mist i:nth-child(3) { bottom: 30%; height: 22%; opacity: 0.35; animation: mist 70s linear infinite; }
@keyframes mist { from { transform: translateX(-12%); } 50% { transform: translateX(12%); } to { transform: translateX(-12%); } }
.hero__birds, .curtain__sky { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.bird { position: absolute; left: 0; top: 0; width: 34px; height: 14px; will-change: transform; }
.bird svg { width: 100%; height: 100%; overflow: visible; animation: flap var(--flap, 0.4s) ease-in-out infinite alternate; transform-origin: 50% 70%; }
.bird path { fill: none; stroke: var(--color-ink); stroke-width: 1.5; stroke-linecap: round; opacity: 0.85; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-0.35); } }

/* Titre de fiche : une ligne de cote, comme sur un plan */
.cote-title { position: relative; display: inline-block; padding-bottom: 0.18em; }
.cote-title__line { position: absolute; left: 0; right: 0; bottom: -0.05em; height: 9px; transform: scaleX(0); transform-origin: left; animation: cote 1.4s var(--ease-out) 0.7s forwards; }
.cote-title__line::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: currentColor; opacity: 0.55; }
.cote-title__line::after { content: ""; position: absolute; inset: 0; border-left: 1px solid currentColor; border-right: 1px solid currentColor; opacity: 0.55; }
@keyframes cote { to { transform: scaleX(1); } }

/* Cimaise : la tringle d'accrochage au-dessus de chaque mur d'œuvres */
.cimaise { height: 1px; background: var(--color-rule); margin: 0 0 var(--space-2xl); position: relative; transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-in-out); }
.series__head.is-in + .cimaise { transform: scaleX(1); }
.cimaise::before, .cimaise::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--color-taupe); background: var(--color-paper); }
.cimaise::before { left: 0; }
.cimaise::after { right: 0; }
.work--solo .work__btn::before, .work--pair .work__btn::before {
  content: ""; position: absolute; left: 50%; top: -2.4rem; width: 1px; height: 2.4rem;
  background: linear-gradient(var(--color-rule), var(--color-taupe));
  transform: scaleY(0); transform-origin: top; transition: transform 1s var(--ease-out) 0.3s;
}
.work.is-in .work__btn::before { transform: scaleY(1); }

/* Rideau de fin de page */
.curtain { position: relative; height: clamp(9rem, 18vw, 14rem); margin-top: var(--space-3xl); overflow: hidden; display: grid; place-items: center; }
.curtain::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--color-ink); opacity: 0.6; }
.curtain__drape {
  position: absolute; top: 1px; bottom: 0; width: 50%;
  background:
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--color-accent) 30%, transparent) 0, color-mix(in srgb, var(--color-accent) 12%, transparent) 16px, color-mix(in srgb, var(--color-accent) 34%, transparent) 30px, color-mix(in srgb, var(--color-accent) 16%, transparent) 44px),
    linear-gradient(180deg, color-mix(in srgb, var(--color-ink) 10%, transparent), transparent 40%);
  transition: transform 2.2s var(--ease-in-out);
  animation: sway 9s var(--ease-in-out) infinite alternate;
}
/* drapé à l'italienne : le bord intérieur se relève en arrondi */
.curtain__drape--l { left: 0; transform: translateX(-102%); transform-origin: left top; -webkit-mask-image: radial-gradient(130% 120% at 0% 0%, #000 72%, transparent 72.5%); mask-image: radial-gradient(130% 120% at 0% 0%, #000 72%, transparent 72.5%); }
.curtain__drape--r { right: 0; transform: translateX(102%); transform-origin: right top; -webkit-mask-image: radial-gradient(130% 120% at 100% 0%, #000 72%, transparent 72.5%); mask-image: radial-gradient(130% 120% at 100% 0%, #000 72%, transparent 72.5%); }
@keyframes sway { from { background-position: 0 0; } to { background-position: 14px 0; } }
.curtain.is-closed .curtain__drape { transform: translateX(0); }
.curtain__word { position: relative; z-index: 1; font-family: var(--font-display); font-size: var(--text-xl); letter-spacing: 0.08em; color: var(--color-accent); opacity: 0; transition: opacity 1.2s var(--ease-out) 1.4s; }
.curtain.is-closed .curtain__word { opacity: 1; }
.curtain + .foot { margin-top: 0; border-top: 0; }

/* Échelle de la règle */
.scale::before { content: "éch. 1/50"; position: absolute; top: -1.6rem; right: -0.2rem; font-size: 0.6rem; letter-spacing: 0.12em; color: var(--color-taupe); white-space: nowrap; }

/* Changement de décor entre deux pages : l'ancien remonte aux cintres, le nouveau descend */
::view-transition-old(root) { animation: flies-out 520ms var(--ease-in) both; }
::view-transition-new(root) { animation: flies-in 900ms var(--ease-out) both; }
@keyframes flies-out { to { opacity: 0; transform: translateY(-5vh); } }
@keyframes flies-in { from { opacity: 0; transform: translateY(-3vh); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 150ms !important; transition-delay: 0ms !important; }
  [data-reveal], [data-curtain], [data-curtain] img { opacity: 1; transform: none; clip-path: none; }
  .js .hero__develop { --iris: 150%; -webkit-mask-image: none; mask-image: none; }
  .js .hero__lines { display: none; }
  .hero__img img { transform: none; }
  @view-transition { navigation: none; }
  .hero__mist, .hero__birds, .spot, .cursor { display: none; }
  .head::before, .sheet__top::before { animation: none; }
  .cimaise, .cote-title__line, .work__btn::before { transform: none !important; animation: none; }
  .curtain__drape { transform: none; animation: none; }
  .roll__track { animation: none; }
  .curtain__word { opacity: 1; }
}
