/* Iluma Visual. Le site est la nuit ; seule la lumière a de la couleur. */
/* 04/12/2026 (audit n° 5): the upright Cormorant Garamond is served from here, with lowercase accents of the right size
   (outils/cormorant-accents.py: Google's v4.001 draws the lowercase acute, grave and circumflex 260 units tall, "Chˆateau").
   The italic, whose accents are right, still comes from Google Fonts (index.html). */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/cormorant-garamond-iluma-300.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/cormorant-garamond-iluma-400.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/cormorant-garamond-iluma-500.woff2") format("woff2"); }
:root {
  --nuit: #0b0a0f;
  --fumee: #15131b;
  --ligne: #2a2632;
  --cendre: #8a8494;
  --craie: #e9e3d7;
  /* le spectre n'apparaît que dans la frange de la lampe */
  --rouge: #ff5a4e;
  --vert: #6dffb0;
  --bleu: #6a7dff;

  --display: "Cormorant Garamond", Georgia, serif;
  --texte: "Cormorant Garamond", Georgia, serif;
  --mono: "Jost", Helvetica, sans-serif;

  --gouttiere: clamp(16px, 4vw, 56px);
  --lampe: clamp(140px, 22vw, 320px);
  --x: 50%;
  --y: 50%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--craie);
  font: 400 clamp(17px, 1.15vw, 20px)/1.5 var(--texte);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
:focus-visible { outline: 1px solid var(--craie); outline-offset: 4px; }
img { display: block; max-width: 100%; }

.label {
  font: 500 10.5px/1.2 var(--mono);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cendre);
  margin: 0 0 2.5rem;
}

/* ---------- barre ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gouttiere);
  mix-blend-mode: difference;
}
.mark { font: 500 11px/1 var(--mono); letter-spacing: .5em; text-decoration: none; }
.bar nav { display: flex; gap: clamp(14px, 2.4vw, 32px); align-items: center; }
.bar nav a, .lang {
  font: 500 10.5px/1 var(--mono); letter-spacing: .28em; text-transform: uppercase;
  text-decoration: none; color: var(--craie);
}
.lang { background: none; border: 1px solid currentColor; padding: 5px 7px; cursor: pointer; }

/* ---------- ouverture ---------- */
.hero {
  position: relative; height: 100svh; min-height: 520px; overflow: hidden;
  cursor: crosshair; touch-action: pan-y;
}
.film {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: var(--nuit);
}
/* la nuit couvre le film ; la lampe y perce un trou */
.nuit {
  position: absolute; inset: 0; background: var(--nuit); opacity: .94;
  -webkit-mask-image: radial-gradient(circle var(--lampe) at var(--x) var(--y), transparent 0 50%, #000 98%);
          mask-image: radial-gradient(circle var(--lampe) at var(--x) var(--y), transparent 0 50%, #000 98%);
}
.hero-text {
  position: absolute; left: var(--gouttiere); bottom: clamp(56px, 10vh, 120px);
  max-width: 34rem; pointer-events: none;
}
h1 {
  margin: 0 0 1.4rem;
  font: 300 clamp(80px, 11.5vw, 200px)/.84 var(--display);
  letter-spacing: -.01em;
}
.hero-text p { margin: 0; font-style: italic; font-weight: 300; font-size: clamp(18px, 1.6vw, 24px); color: var(--craie); max-width: 26ch; }
.hint, .caption {
  position: absolute; margin: 0; font: 500 10.5px/1.3 var(--mono);
  letter-spacing: .28em; text-transform: uppercase; color: var(--cendre);
}
.hint { right: var(--gouttiere); top: 50%; writing-mode: vertical-rl; transition: opacity .6s; }
.caption { right: var(--gouttiere); bottom: 18px; }
.hero.touched .hint { opacity: 0; }

/* ---------- projets ---------- */
.work {
  position: relative;
  padding: clamp(80px, 14vh, 160px) var(--gouttiere);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 4vw;
}
.work .label { grid-column: 1 / -1; }
.list { list-style: none; margin: 0; padding: 0; grid-column: 1; }
.row { border-top: 1px solid var(--ligne); color: var(--cendre); transition: color .25s; }
.ouvrir {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer;
  display: grid; grid-template-columns: 10rem 1fr; gap: 0 1rem; align-items: baseline;
  padding: 14px 0 16px;
}
.ouvrir:focus-visible { outline: 1px solid var(--craie); outline-offset: 2px; }
.row:last-child { border-bottom: 1px solid var(--ligne); }
.row .y { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; }
.row .n {
  font: 300 clamp(30px, 3.6vw, 54px)/1 var(--display); letter-spacing: -.01em;
  letter-spacing: .02em; color: var(--craie); opacity: .55; transition: opacity .25s;
}
.row .m { grid-column: 2; margin-top: 6px; font-size: .9em; font-style: italic; }
.row img { display: none; }
.row:hover, .row.on, .row:focus-within { color: var(--craie); }
.row:hover .n, .row.on .n, .row:focus-within .n { opacity: 1; }
.row .m i { font-style: normal; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }

.preview {
  grid-column: 2; grid-row: 2; margin: 0;
  position: sticky; top: 15vh; align-self: start;
}
.preview [hidden] { display: none; }
.preview img, .preview video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .35s; background: var(--fumee); }
.preview figcaption { margin-top: 10px; font: 500 10.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cendre); }

/* ---------- showreel ---------- */
.reel { padding: clamp(64px, 12vh, 140px) var(--gouttiere); border-top: 1px solid var(--ligne); }
.films { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.78fr); gap: 3vw; align-items: end; }
.films figure { margin: 0; }
.films video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--fumee); }
.films .carre video { aspect-ratio: 1; }
.films figcaption, .credit { margin-top: 10px; font: 500 10.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cendre); }

/* ---------- fiche d'un projet ---------- */
dialog {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0;
  border: 0; background: var(--nuit); color: var(--craie); overflow-y: auto;
}
dialog::backdrop { background: var(--nuit); }
dialog[open] { animation: monte .35s ease-out; }
@keyframes monte { from { opacity: 0; transform: translateY(16px); } }
.fermer {
  position: sticky; top: 0; float: right; z-index: 2; margin: 18px var(--gouttiere) 0 0;
  background: var(--nuit); color: var(--craie); border: 1px solid currentColor; padding: 7px 10px; cursor: pointer;
  font: 500 10.5px/1 var(--mono); letter-spacing: .28em; text-transform: uppercase;
}
#projet-corps { padding: clamp(64px, 12vh, 120px) var(--gouttiere) 48px; }
.fiche-tete h2 { margin: 0; font: 300 clamp(56px, 11vw, 180px)/.85 var(--display); letter-spacing: -.01em; }
.fiche-tete p { margin: 1rem 0 0; font-style: italic; color: var(--cendre); }
.edition { margin-top: clamp(48px, 9vh, 96px); padding-top: 20px; border-top: 1px solid var(--ligne); }
.edition h3 { margin: 0 0 1rem; font: 300 clamp(24px, 2.4vw, 36px)/1.1 var(--display); letter-spacing: -.01em; }
.edition h3 .y { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; color: var(--cendre); margin-right: .8rem; vertical-align: middle; }
.texte { max-width: 52ch; margin: 0 0 2rem; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.4; font-weight: 300; }
.film-fiche { display: block; width: 100%; max-height: 80vh; background: #000; margin-bottom: 12px; }
.photos { columns: 2; column-gap: 12px; }
.photos.seule { columns: 1; }
.photos img { width: 100%; margin-bottom: 12px; background: var(--fumee); break-inside: avoid; }
.suite { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--ligne); }
.suite button, .suite a {
  all: unset; cursor: pointer; font: 300 clamp(24px, 3vw, 44px)/1 var(--display); letter-spacing: -.01em;
}
.suite button:hover, .suite button:focus-visible, .suite a:hover, .suite a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }

/* ---------- savoir-faire ---------- */
.crafts, .studio, .contact { padding: clamp(64px, 12vh, 140px) var(--gouttiere); border-top: 1px solid var(--ligne); }
.crafts dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 3vw; }
.crafts dt { font: 300 clamp(26px, 2.4vw, 36px)/1 var(--display); letter-spacing: -.01em; margin-bottom: .8rem; }
.crafts dd { margin: 0; color: var(--cendre); }

.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 4vw; }
.studio .label { grid-column: 1 / -1; }
.studio .lede { margin: 0; font-size: clamp(22px, 2.2vw, 34px); line-height: 1.3; font-weight: 300; }
.studio p:not(.lede) { margin: 0; color: var(--cendre); align-self: end; max-width: 36ch; }

.contact .mail {
  display: inline-block;
  font: 300 clamp(38px, 8vw, 128px)/1 var(--display); letter-spacing: -.01em;
  text-decoration: none; letter-spacing: .01em; word-break: break-all;
  background: linear-gradient(90deg, var(--rouge), var(--vert), var(--bleu)) left bottom / 0 1px no-repeat;
  transition: background-size .6s;
  padding-bottom: 6px;
}
.contact .mail:hover, .contact .mail:focus-visible { background-size: 100% 1px; }
.contact p { margin: 2rem 0 0; font: 500 10.5px/1 var(--mono); letter-spacing: .28em; text-transform: uppercase; color: var(--cendre); }

.foot { padding: 24px var(--gouttiere); font: 500 10.5px/1 var(--mono); letter-spacing: .28em; text-transform: uppercase; color: var(--cendre); }

/* ---------- téléphone ---------- */
@media (max-width: 560px) {
  .bar nav a[href="#reel"], .bar nav a[href="#studio"] { display: none; }
}
@media (max-width: 760px) {
  .work, .studio { grid-template-columns: 1fr; }
  .preview { display: none; }
  .row img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 16px; pointer-events: none; }
  .ouvrir { grid-template-columns: 1fr; }
  .row .m { grid-column: 1; }
  .films { grid-template-columns: 1fr; }
  .photos { columns: 1; }
  .row .n { opacity: 1; }
  .crafts dl { grid-template-columns: 1fr 1fr; }
  .studio p:not(.lede) { margin-top: 1.5rem; }
  .hint { display: none; }
  .caption { left: var(--gouttiere); right: auto; }
}
@media (max-width: 420px) { .crafts dl { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { --lampe: 70vmax; }
  dialog[open] { animation: none; }
}

/* 02/12/2026: the light version of the cathedral (« See the work »). Same type as the cathedral's welcome: Cormorant Garamond, Jost caps. */
body { font-weight: 400; font-size: clamp(18px, 1.25vw, 22px); }
.hero h1 em, .fiche-tete h2 em { font-style: italic; padding-left: .5em; }
.row .n, .crafts dt { font-weight: 400; }
.contact .mail { font-style: italic; font-weight: 300; }
.bar nav a.cat { border: 1px solid currentColor; padding: 6px 10px; }
.studio .lede { font-size: clamp(24px, 2.2vw, 36px); line-height: 1.25; font-weight: 300; }
.foot { display: flex; justify-content: space-between; } .foot a { text-decoration: none; }
/* Cormorant runs small: everything a size up, the grey text lighter */
body { font-size: clamp(19px, 1.45vw, 24px); }
.hero-text p { font-size: clamp(20px, 1.8vw, 28px); max-width: 34ch; line-height: 1.3; }
.row .m { font-size: .95em; color: rgba(233, 227, 215, .72); }
.crafts dd, .studio p:not(.lede) { color: rgba(233, 227, 215, .72); line-height: 1.4; }
.studio p:not(.lede) { font-size: 1.1em; }
/* a phone: the cathedral's link only in the footer, the bar keeps its air */
@media (max-width: 760px) { .bar nav a.cat { display: none; } .mark { margin-right: 1.2em; } }

/* 04/12/2026 (contenu et usage): the offer and what to write, as in the cathedral's door of light; a call at the foot of every sheet */
.contact .offre { margin: 0 0 1rem; font: 500 10.5px/1.7 var(--mono); letter-spacing: .28em; text-transform: uppercase; color: var(--cendre); }
.contact .quoi { margin: 0 0 2.2rem; max-width: 40ch; font: 300 clamp(22px, 2vw, 30px)/1.3 var(--display); letter-spacing: 0; text-transform: none; color: inherit; }
.ecrire { margin: 0 0 2.5rem; } .ecrire a { font: 300 clamp(22px, 2.2vw, 32px)/1.2 var(--display); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.ecrire a:hover, .ecrire a:focus-visible { opacity: .8; }
.foot span a { color: inherit; }

/* 04/12/2026 (audit n° 12): once the page scrolls, the bar gets a plain night background and stops blending, so no text runs under it */
.bar { transition: background-color .3s; }
.bar.defile { background: rgba(11, 10, 15, .94); mix-blend-mode: normal; }
/* 04/12/2026 (audit n° 10): 44 px touch targets in the bar, same drawing (padding taken back by a negative margin; the button grows by an invisible ::after) */
.mark, .bar nav a:not(.cat) { padding-block: 17px; margin-block: -17px; }
.lang { position: relative; }
.lang::after { content: ""; position: absolute; inset: -12px -8px; }
/* 04/12/2026 (pages projet, outils/work-pages.py): /work/<slug>/ carries its sheet in the HTML; without JavaScript it shows as an open page */
.sans-js { margin: 2.5rem 0 0; font: 500 10.5px/1.7 var(--mono); letter-spacing: .28em; text-transform: uppercase; color: var(--cendre); }
.sans-js a { color: inherit; }
