/* ============================================================
   KEVIN POLLETT — PORTFOLIO « RÉGIE »
   Design system — Direction artistique production / régie
   Display: Fraunces · Corps: Archivo · Méta: Space Mono
   Polices hébergées en local (aucune requête vers Google).
   ============================================================ */

/* ── POLICES (latin) ────────────────────────────────────── */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/fraunces.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/archivo.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/spacemono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/spacemono-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --ink:        #0A0A0B;
  --ink-2:      #121214;
  --ink-3:      #19191C;
  --paper:      #ECE6DA;
  --paper-ink:  #16130D;

  /* Thème courant (redéfini dans .paper) */
  --surface:    var(--ink);
  --fg:         #F5F2EB;
  --fg-dim:     rgba(245,242,235,0.74);   /* ≥ 7:1 sur --ink */
  --fg-mute:    rgba(245,242,235,0.60);   /* ≥ 5:1 sur --ink (AA) */
  --line:       rgba(245,242,235,0.14);
  --line-2:     rgba(245,242,235,0.26);

  /* Accent : --gold = texte/traits (adapté au thème) · --accent-fill = aplats */
  --gold:       #D4AF37;
  --gold-soft:  #E7C65A;
  --accent-fill:#D4AF37;
  --on-accent:  #0A0A0B;

  /* Typo */
  --f-display: "Fraunces", Georgia, serif;
  --f-sans:    "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono:    "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Rythme */
  --wrap:   1280px;
  --gutter: clamp(20px, 5vw, 80px);
  --sp-1: 8px;  --sp-2: 16px;  --sp-3: 24px;  --sp-4: 32px;
  --sp-5: 48px; --sp-6: 64px;  --sp-8: 96px;  --sp-10: 128px;
  --sp-12: 160px; --sp-16: 220px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-cut: cubic-bezier(0.76, 0, 0.24, 1);
  --nav-h: 76px;
  --radius: 4px;
}

/* Sections « papier » : on redéfinit les variables, tout le contenu suit
   (plus jamais de texte clair sur fond crème). */
.paper {
  --surface:  var(--paper);
  --fg:       var(--paper-ink);
  --fg-dim:   rgba(22,19,13,0.76);        /* ≥ 7:1 sur --paper */
  --fg-mute:  rgba(22,19,13,0.64);        /* ≥ 4.8:1 sur --paper */
  --line:     rgba(22,19,13,0.16);
  --line-2:   rgba(22,19,13,0.30);
  --gold:     #7A5C00;                    /* or foncé : 5:1 sur --paper */
  --gold-soft:#8A6800;
  background: var(--paper);
  color: var(--fg);
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--f-sans);
  background: var(--ink);
  color: var(--fg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--accent-fill); color: var(--on-accent); }

/* ── GRAIN FILMIQUE (léger, sans mode de fusion, désactivé sur mobile) ── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (max-width: 820px) { body::after { display: none; } }

/* ── UTILITAIRES LAYOUT ─────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sp-10); position: relative; }
.section--tight { padding-block: var(--sp-8); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (max-width: 700px) {
  .section { padding-block: var(--sp-8); }
  .section--tight { padding-block: var(--sp-6); }
}

/* ── TYPOGRAPHIE ────────────────────────────────────────── */
.display {
  font-family: var(--f-display);
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 8vw, 7.5rem);
}
.display--xl { font-size: clamp(3.4rem, 17vw, 9.5rem); line-height: 0.9; }
.h2 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.015em;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
}
.h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.body-lg { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.7; color: var(--fg-dim); }
.italic { font-style: italic; }
.display, .h2, .h3, .seq__title, .exp-row__t { text-wrap: balance; }
p, li, .review__text { text-wrap: pretty; }
.gold { color: var(--gold); }

.kicker {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.meta {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.rule { height: 1px; width: 100%; background: var(--line); }

/* ── REPÈRES DE CADRE ───────────────────────────────────── */
.framed { position: relative; }
.framed::before, .framed::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; z-index: 3;
  border-color: var(--line-2); border-style: solid;
}
.framed::before { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.framed::after  { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }

/* ── NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.nav.scrolled {
  background: rgba(10,10,11,0.95);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: rgba(245,242,235,0.14);
}
.nav-inner { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.brand { display: flex; align-items: baseline; gap: 12px; color: #F5F2EB; }
.brand-name { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-tag { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245,242,235,0.6); }
.nav-links { display: flex; align-items: center; gap: var(--sp-4); list-style: none; }
.nav-link {
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(245,242,235,0.74); position: relative; padding: 6px 0; transition: color .3s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: #D4AF37;
  transition: width .35s var(--ease);
}
.nav-link:hover, .nav-link.active { color: #F5F2EB; }
.nav-link.active::after, .nav-link:hover::after { width: 100%; }

.nav-clock { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.12em; color: #D4AF37; display: flex; align-items: center; gap: 8px; }
.tally { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-fill); box-shadow: 0 0 10px var(--accent-fill); animation: tally 1.6s steps(1) infinite; }
@keyframes tally { 0%,50%{opacity:1} 51%,100%{opacity:.25} }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav-toggle span { width: 24px; height: 1.5px; background: #F5F2EB; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Tiroir mobile : invisible ET non focalisable tant qu'il est fermé */
.drawer {
  position: fixed; inset: 0; z-index: 99; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: var(--sp-2);
  padding: var(--gutter);
  visibility: hidden; transform: translateY(-100%);
  transition: transform .5s var(--ease-cut), visibility 0s linear .5s;
}
.drawer.open { visibility: visible; transform: translateY(0); transition: transform .5s var(--ease-cut), visibility 0s; }
.drawer a { font-family: var(--f-display); font-size: clamp(2rem, 9vw, 3.5rem); font-weight: 500; color: #F5F2EB; }
.drawer a .num { font-family: var(--f-mono); font-size: 0.8rem; color: #D4AF37; margin-right: 16px; vertical-align: super; }

/* ── BOUTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 16px 26px; border: 1px solid var(--line-2); color: var(--fg);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: var(--fg); color: var(--surface); border-color: var(--fg); transform: translateY(-2px); }
.btn--gold { background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent-fill); }
.btn--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--on-accent); }
.paper .btn--gold:hover { background: var(--paper-ink); border-color: var(--paper-ink); color: var(--paper); }
.btn svg { width: 15px; height: 15px; }

/* ── INTRO « MISE EN ROUTE » ────────────────────────────── */
.intro {
  position: fixed; inset: 0; z-index: 10000; background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  /* filet de sécurité sans JS : l'intro se retire seule */
  animation: introFail .5s linear 4s forwards;
}
.no-intro .intro { display: none; }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }
.intro__bars { display: flex; width: min(60vw, 520px); height: 46px; overflow: hidden; }
.intro__bars span { flex: 1; transform: scaleY(0); transform-origin: bottom; animation: bar .5s var(--ease) forwards; }
.intro__bars span:nth-child(1){ background:#c0c0c0; animation-delay:.00s }
.intro__bars span:nth-child(2){ background:#D4AF37; animation-delay:.05s }
.intro__bars span:nth-child(3){ background:#8f8f8f; animation-delay:.10s }
.intro__bars span:nth-child(4){ background:#E7C65A; animation-delay:.15s }
.intro__bars span:nth-child(5){ background:#5a5a5a; animation-delay:.20s }
.intro__bars span:nth-child(6){ background:#D4AF37; animation-delay:.25s }
.intro__bars span:nth-child(7){ background:#2a2a2a; animation-delay:.30s }
@keyframes bar { to { transform: scaleY(1); } }
.intro__tc { font-family: var(--f-mono); font-size: 0.9rem; letter-spacing: 0.3em; color: #D4AF37; }
.intro__title { font-family: var(--f-display); font-size: clamp(1.4rem,5vw,2.4rem); font-weight: 600; letter-spacing: -0.01em; color: #F5F2EB; opacity: 0; transform: translateY(14px); }
.intro.is-reveal .intro__title { animation: fadeUp .7s var(--ease) forwards; }
.intro__skip {
  position: absolute; bottom: 28px; right: 28px; font-family: var(--f-mono);
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(245,242,235,0.66);
  border: 1px solid rgba(245,242,235,0.22); padding: 10px 16px; transition: color .3s, border-color .3s;
}
.intro__skip:hover { color: #F5F2EB; border-color: rgba(245,242,235,0.5); }
.intro.is-out { animation: introOut .7s var(--ease-cut) forwards; }
@keyframes introOut  { to { opacity: 0; visibility: hidden; transform: translateY(-2%); } }
@keyframes introFail { to { opacity: 0; visibility: hidden; } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ── HERO ───────────────────────────────────────────────── */
.hero { min-height: 100vh; min-height: 100svh; padding-top: var(--nav-h); display: flex; align-items: flex-end; position: relative; overflow: hidden; }
.hero__grid { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
  padding-bottom: var(--sp-5); display: grid; grid-template-columns: 1fr; gap: var(--sp-5); position: relative; z-index: 2; }
.hero__slate { display: flex; align-items: center; gap: 16px; }
.hero__title { margin-block: var(--sp-2) var(--sp-3); }
.hero__title .l1 { display: block; }
.hero__title .l2 { display: block; color: var(--gold); font-style: italic; font-weight: 400; }
.hero__role { font-family: var(--f-mono); font-size: clamp(.8rem,1.5vw,1rem); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-dim); }
.hero__foot { display: grid; grid-template-columns: 1fr; align-items: end; gap: var(--sp-4); border-top: 1px solid var(--line); padding-top: var(--sp-4); }
.hero__intro { max-width: 44ch; }
.hero__cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-4); }
.hero__stat .n { font-family: var(--f-display); font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 600; line-height: 1; }
.hero__stat .k { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-mute); margin-top: 6px; }

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 40%; opacity: .4; filter: grayscale(.2) contrast(1.05); }
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,.6) 0%, rgba(10,10,11,.3) 40%, rgba(10,10,11,.95) 100%); }

@media (min-width: 900px) {
  .hero__foot { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--sp-8); }
  .hero__intro { max-width: 48ch; }
  .hero__stats { gap: var(--sp-3) var(--sp-5); }
}

/* ── BANDEAU DÉFILANT ───────────────────────────────────── */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--ink-2); }
.ticker__track { display: inline-flex; gap: var(--sp-5); white-space: nowrap; padding-block: 16px; animation: ticker 36s linear infinite; }
.ticker__item { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); display: inline-flex; align-items: center; gap: 14px; }
.ticker__item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-fill); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── MANIFESTE ──────────────────────────────────────────── */
.manifesto p { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 5.2vw, 4.6rem); line-height: 1.12; letter-spacing: -0.015em; max-width: 21ch; text-wrap: balance; }
.manifesto .dim { color: var(--fg-mute); }

/* ── SELECTED WORK — SÉQUENCES (accueil) ────────────────── */
.seq {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-3);
  padding-block: var(--sp-5); border-top: 1px solid var(--line);
  position: relative;
}
.seq:last-child { border-bottom: 1px solid var(--line); }
.seq__index { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.18em; color: var(--gold); }
.seq__media { position: relative; overflow: hidden; aspect-ratio: 16/9; background: var(--ink-2); cursor: pointer; }
.seq__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .6s; filter: grayscale(.15); }
.seq:hover .seq__media img { transform: scale(1.04); filter: grayscale(0); }
.seq__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.seq__play span { width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); background: rgba(10,10,11,.4); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; transition: background .35s var(--ease), transform .35s var(--ease); }
.seq:hover .seq__play span { background: var(--accent-fill); border-color: var(--accent-fill); transform: scale(1.08); }
.seq__play svg { width: 22px; height: 22px; fill: #fff; transition: fill .35s; }
.seq:hover .seq__play svg { fill: var(--on-accent); }
.is-playing .seq__play { display: none; }
.seq__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.02em; }
.seq__meta { display: grid; grid-template-columns: 96px 1fr; gap: 10px 22px; align-items: baseline; margin-top: var(--sp-3); }
.seq__meta > div { display: contents; }
.seq__meta .k { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-mute); }
.seq__meta .v { font-size: 0.95rem; color: var(--fg-dim); }

@media (min-width: 900px) {
  .seq { grid-template-columns: 0.4fr 1.1fr 1.4fr; gap: var(--sp-5); align-items: start; }
  .seq--reverse .seq__media { order: 2; }
  .seq__head { position: sticky; top: calc(var(--nav-h) + 24px); }
}

/* ── EXPERTISE (éditorial) ──────────────────────────────── */
.exp-row { display: grid; grid-template-columns: 1fr; gap: var(--sp-2); padding-block: var(--sp-4); border-top: 1px solid var(--line); }
.exp-row:last-child { border-bottom: 1px solid var(--line); }
.exp-row__n { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.16em; color: var(--fg-mute); }
.exp-row__t { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.05; }
.exp-row__d { color: var(--fg-dim); max-width: 60ch; }
.exp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.exp-tags span { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--line-2); color: var(--fg); }
@media (min-width: 820px) {
  .exp-row { grid-template-columns: 0.3fr 1fr 1.2fr; gap: var(--sp-5); align-items: baseline; }
}

/* ── AVIS ───────────────────────────────────────────────── */
.reviews { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
.review { border-top: 1px solid var(--line); padding-top: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); }
.review__stars { color: var(--gold); letter-spacing: 3px; font-size: 0.85rem; }
.review__text { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.45; color: var(--fg); }
.review__who { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute); display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
.review__who .n { color: var(--fg); }
.review__who a { color: var(--gold); width: fit-content; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 820px) { .reviews { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); } }

/* ── PROFIL (accueil) ───────────────────────────────────── */
.profile { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); align-items: center; }
.profile__fig { overflow: hidden; max-width: 420px; justify-self: start; }
.profile__fig img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 22%; filter: grayscale(.15) contrast(1.03); }
@media (min-width: 900px) {
  .profile { grid-template-columns: 1.25fr 0.75fr; gap: var(--sp-8); }
  .profile__fig { justify-self: end; width: 100%; }
}

/* ── CTA ────────────────────────────────────────────────── */
.endcta { text-align: center; }
.endcta .display { margin-bottom: var(--sp-4); }
.endcta__row { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; }

/* ── PAGES TEXTE (légal, 404) ───────────────────────────── */
.page-head { padding-top: calc(var(--nav-h) + var(--sp-8)); padding-bottom: var(--sp-5); }
.prose { max-width: 70ch; display: grid; gap: var(--sp-3); }
.prose h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.15; margin-top: var(--sp-4); }
.prose h3 { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-top: var(--sp-2); }
.prose p, .prose li { color: var(--fg-dim); line-height: 1.75; }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; }
.prose dt { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute); padding-top: 3px; }
.prose dd { color: var(--fg-dim); }
@media (max-width: 560px) { .prose dl { grid-template-columns: 1fr; } .prose dt { padding-top: 10px; } }

/* ── FORMULAIRES (contact, CV) ──────────────────────────── */
.field { margin-bottom: var(--sp-3); }
.field label { display: block; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 8px; }
.field label small { text-transform: none; letter-spacing: 0; color: var(--fg-mute); font-size: 0.8rem; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--ink-2); border: 1px solid var(--line); color: var(--fg);
  font-family: var(--f-sans); font-size: 1rem; padding: 14px 16px; border-radius: var(--radius);
  transition: border-color .3s var(--ease), background .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--ink-3); }
.field ::placeholder { color: var(--fg-mute); opacity: 1; }
.form-status { padding: 14px 16px; border-radius: var(--radius); font-size: 0.92rem; margin-top: var(--sp-3); border: 1px solid; }
.form-status--success { background: rgba(212,175,55,0.1); color: var(--gold-soft); border-color: rgba(212,175,55,0.4); }
.form-status--error { background: rgba(239,68,68,0.1); color: #f0a8a8; border-color: rgba(239,68,68,0.4); }
.form-note { font-family: var(--f-mono); font-size: 0.75rem; color: var(--fg-mute); margin-top: var(--sp-3); line-height: 1.6; }
.form-note a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ── PAGE CV (porte d'accès) ────────────────────────────── */
.cvgate { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); align-items: start; }
.cvgate__preview { margin: 0; }
.cvgate__preview img { width: 100%; height: auto; -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent); mask-image: linear-gradient(to bottom, #000 58%, transparent); }
.cvgate__preview figcaption { margin-top: var(--sp-2); color: var(--fg-mute); }
@media (min-width: 900px) { .cvgate { grid-template-columns: 1.15fr 0.85fr; gap: var(--sp-8); } }

/* ── FOOTER ─────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding-block: var(--sp-6) var(--sp-4); }
.foot__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
.foot__name { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; }
.foot__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot__links a, .foot__social a { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); transition: color .3s; }
.foot__links a:hover, .foot__social a:hover { color: var(--gold); }
.foot__social { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2); margin-top: var(--sp-6); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.foot__copy { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--fg-mute); text-transform: uppercase; }
@media (min-width: 820px) { .foot__grid { grid-template-columns: 2fr 1fr 1fr; } }

/* ── REVEAL (uniquement si JS actif — sans JS, tout est visible) ── */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: .08s; }
.js .reveal[data-d="2"] { transition-delay: .16s; }
.js .reveal[data-d="3"] { transition-delay: .24s; }
.js .clip-reveal img { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease-cut), transform .8s var(--ease), filter .6s; }
.js .clip-reveal.is-in img { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .clip-reveal img { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .tally, .ticker__track { animation: none; }
}

/* ── BACK TO TOP ────────────────────────────────────────── */
.totop { position: fixed; right: 24px; bottom: 24px; z-index: 80; width: 48px; height: 48px;
  border: 1px solid rgba(245,242,235,0.3); background: rgba(10,10,11,.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .4s var(--ease), background .3s, transform .3s, visibility 0s linear .4s; }
.totop.show { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity .4s var(--ease), background .3s, transform .3s; }
.totop:hover { background: var(--accent-fill); border-color: var(--accent-fill); transform: translateY(-3px); }
.totop:hover svg { stroke: var(--on-accent); }
.totop svg { width: 18px; height: 18px; stroke: #F5F2EB; }

/* ── RESPONSIVE NAV ─────────────────────────────────────── */
.brand, .nav-link, .nav-clock { white-space: nowrap; }
@media (max-width: 1180px) {
  .brand-tag { display: none; }
  .nav-links { gap: var(--sp-3); }
}
@media (max-width: 820px) {
  .nav-links, .nav-clock { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 600px) {
  .brand-tag { display: none; }
  .hero__slate .rule, .hero__slate .meta:last-child { display: none; }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .totop { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ── ACCESSIBILITÉ ──────────────────────────────────────── */
.skip { position: absolute; left: -999px; top: 8px; z-index: 10001; background: var(--accent-fill); color: var(--on-accent);
  padding: 10px 16px; font-family: var(--f-mono); font-size: 0.78rem; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
