/* ============================================================
   FIGURES — Site public
   Univers : studio noir, onde entre parenthèses, grain papier.
   Aucune image externe — tout est dessiné en code.
   ============================================================ */

:root {
  --noir:   #0B0B0C;
  --noir-2: #0E0E10;
  --bord:   #232325;
  --bord-2: #2E2E31;
  --blanc:  #F4F3EF;
  --gris:   #8A8A8E;
  --gris-2: #C9C8C4;
  --signal: #FF3B2F;

  --font-exp: 'Archivo Expanded', 'Archivo', Helvetica, Arial, sans-serif;
  --font-std: 'Archivo', Helvetica, Arial, sans-serif;

  --pad-x: clamp(20px, 5vw, 72px);
  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--noir);
  color: var(--blanc);
  font-family: var(--font-std);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grain papier — bruit SVG en data URI, aucun asset externe */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* barre de progression de lecture */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--blanc);
  z-index: 60;
}

/* rails verticaux — gabarit de mise en page, façon magazine */
.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--bord);
  opacity: 0.55;
  z-index: 2;
  pointer-events: none;
}
.rail--left  { left: var(--pad-x); }
.rail--right { right: var(--pad-x); }
@media (max-width: 900px) { .rail { display: none; } }

/* lueur qui suit le pointeur (desktop uniquement, pilotée par site.js) */
.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 38%),
              rgba(244, 243, 239, 0.06), transparent 62%);
}

::selection { background: var(--signal); color: var(--noir); }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--blanc);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--blanc);
  color: var(--noir);
  padding: 12px 20px;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

.paren {
  font-weight: 400;
  display: inline-block;
  transform: translateY(-0.045em);
}

/* ---------- barre fixe ---------- */

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--pad-x);
  mix-blend-mode: difference;
  color: var(--blanc);
  pointer-events: none;
}
.bar a, .bar p { pointer-events: auto; }
.bar-brand {
  margin: 0;
  font-family: var(--font-exp);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.bar-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.bar-link:hover { color: var(--gris-2); }

/* ---------- hero : l'onde entre parenthèses ---------- */

.hero {
  position: relative;
  z-index: 1;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4.5vh, 48px);
  padding: 96px var(--pad-x) 56px;
  text-align: center;
  background: radial-gradient(ellipse 90% 60% at 50% 42%, var(--noir-2), var(--noir) 75%);
}

.stage {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.5vw, 32px);
  user-select: none;
}
.stage-paren {
  font-family: var(--font-std);
  font-weight: 300;
  font-size: clamp(120px, 24vw, 300px);
  line-height: 0;
  color: var(--blanc);
  transform: translateY(-0.04em);
}

.wave {
  display: flex;
  align-items: center;
  gap: clamp(3px, 0.6vw, 7px);
  height: clamp(90px, 16vw, 180px);
}
.wb {
  width: clamp(2px, 0.3vw, 4px);
  height: 52%;
  background: var(--blanc);
  transform-origin: center;
}
.wb:nth-child(2n)  { height: 30%; }
.wb:nth-child(3n)  { height: 68%; }
.wb:nth-child(4n)  { height: 22%; }
.wb:nth-child(5n)  { height: 48%; }
.wb:nth-child(7n)  { height: 84%; }
.wb:nth-child(9n)  { height: 38%; }
.wb:nth-child(11n) { height: 16%; }
.wb:nth-child(13n) { height: 96%; }
.wb:nth-child(23)  { background: var(--signal); }

@media (prefers-reduced-motion: no-preference) {
  .wb {
    animation: pulse-bar 2s ease-in-out infinite alternate;
  }
  .wb:nth-child(2n)  { animation-duration: 1.6s; animation-delay: 0.12s; }
  .wb:nth-child(3n)  { animation-duration: 2.3s; animation-delay: 0.30s; }
  .wb:nth-child(4n)  { animation-duration: 1.4s; animation-delay: 0.05s; }
  .wb:nth-child(5n)  { animation-duration: 2.6s; animation-delay: 0.48s; }
  .wb:nth-child(7n)  { animation-duration: 1.9s; animation-delay: 0.21s; }
  .wb:nth-child(11n) { animation-duration: 2.8s; animation-delay: 0.64s; }
  @keyframes pulse-bar {
    from { transform: scaleY(0.3); }
    to   { transform: scaleY(1); }
  }
}

/* traits de coupe — repères d'imprimerie aux angles du hero */
.crop {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  opacity: 0.8;
}
.crop--tl { top: 88px; left: calc(var(--pad-x) + 10px); border-top: 1px solid var(--bord-2); border-left: 1px solid var(--bord-2); }
.crop--tr { top: 88px; right: calc(var(--pad-x) + 10px); border-top: 1px solid var(--bord-2); border-right: 1px solid var(--bord-2); }
.crop--bl { bottom: 20px; left: calc(var(--pad-x) + 10px); border-bottom: 1px solid var(--bord-2); border-left: 1px solid var(--bord-2); }
.crop--br { bottom: 20px; right: calc(var(--pad-x) + 10px); border-bottom: 1px solid var(--bord-2); border-right: 1px solid var(--bord-2); }

/* témoin d'enregistrement sous l'onde */
.rec {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -6px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gris);
  font-variant-numeric: tabular-nums;
}
.rec [data-clock] { color: var(--gris-2); letter-spacing: 0.18em; }

/* carrousel de mots */
.roles {
  margin: 0;
  font-family: var(--font-exp);
  font-weight: 900;
  font-size: clamp(26px, 4.6vw, 58px);
  line-height: 1;
  letter-spacing: -0.03em;
  min-height: 1.1em;
}
.roles-word { display: none; }
.roles-word.is-on { display: inline-block; }
.roles-dot { color: var(--signal); }
@media (prefers-reduced-motion: no-preference) {
  .roles-word.is-on { animation: word-in 480ms var(--ease); }
  @keyframes word-in {
    from { opacity: 0; transform: translateY(0.35em); }
    to   { opacity: 1; transform: none; }
  }
}

.baseline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gris-2);
}
.baseline-bar {
  width: 44px;
  height: 3px;
  background: var(--blanc);
  flex: none;
}

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  color: var(--gris);
  padding: 6px 12px;
}
.hero-scroll:hover { color: var(--blanc); }
@media (prefers-reduced-motion: no-preference) {
  .hero-scroll { animation: nudge 2.2s ease-in-out infinite; }
  @keyframes nudge {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 6px); }
  }
}

/* apparition du hero au chargement */
@media (prefers-reduced-motion: no-preference) {
  .stage, .roles, .baseline {
    opacity: 0;
    transform: translateY(20px);
    animation: rise 800ms var(--ease) forwards;
  }
  .roles    { animation-delay: 140ms; }
  .baseline { animation-delay: 260ms; }
  @keyframes rise {
    to { opacity: 1; transform: none; }
  }
}

/* ---------- ticker ---------- */

.ticker {
  position: relative;
  z-index: 1;
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--bord);
  border-bottom: 1px solid var(--bord);
  background: var(--noir);
}
.ticker-track {
  flex: none;
  display: flex;
  align-items: center;
  gap: 40px;
  min-width: 100%;
  padding: 15px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gris);
  white-space: nowrap;
}
.tick-sep { color: var(--signal); }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: slide 30s linear infinite; }
  @keyframes slide {
    to { transform: translateX(calc(-100% - 40px)); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track + .ticker-track { display: none; }
}

/* ---------- index de section ---------- */

.sect-index {
  margin: 0;
  padding: clamp(40px, 6vw, 72px) var(--pad-x) 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gris);
}
.sect-index::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--bord-2);
  margin-left: 14px;
  vertical-align: middle;
}
.sect-index--right { text-align: right; }
.sect-index--right::after { display: none; }
.sect-index--right::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--bord-2);
  margin-right: 14px;
  vertical-align: middle;
}

/* ---------- titres fantômes ---------- */

.ghost {
  margin: 0;
  padding: 10px var(--pad-x) 20px;
  font-family: var(--font-exp);
  font-weight: 900;
  font-size: clamp(56px, 13vw, 190px);
  line-height: 0.82;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--bord-2);
  user-select: none;
  white-space: nowrap;
}
.ghost--right { text-align: right; }

/* ---------- liens plateformes ---------- */

.listen { position: relative; z-index: 1; }

.links { display: block; border-top: 1px solid var(--bord); }

.row {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2.4vw, 32px);
  padding: clamp(16px, 2.2vw, 24px) var(--pad-x);
  border-bottom: 1px solid var(--bord);
  transition: background 220ms var(--ease), color 220ms var(--ease);
}
.row-index {
  flex: none;
  width: 3ch;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gris);
  transition: color 220ms;
}
.row-name {
  font-family: var(--font-exp);
  font-weight: 900;
  font-size: clamp(22px, 3.2vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.row-arrow {
  margin-left: auto;
  font-family: var(--font-std);
  font-weight: 600;
  font-size: clamp(16px, 1.8vw, 24px);
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 220ms, transform 220ms var(--ease);
}
.row:hover, .row:focus-visible {
  background: var(--blanc);
  color: var(--noir);
}
.row:hover .row-index, .row:focus-visible .row-index { color: var(--noir); }
.row:hover .row-arrow, .row:focus-visible .row-arrow {
  opacity: 1;
  transform: none;
}

/* ---------- contact ---------- */

.contact {
  position: relative;
  z-index: 1;
  padding: 0 var(--pad-x) clamp(80px, 10vw, 140px);
}
.contact-frame {
  max-width: 800px;
  border: 1px solid var(--bord);
  background: var(--noir-2);
  padding: clamp(28px, 5vw, 56px);
}
.contact-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gris);
}
.rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
  flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .rec-dot { animation: rec 1.8s ease-in-out infinite; }
  @keyframes rec {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
  }
}
.contact-title {
  margin: 0 0 30px;
  font-family: var(--font-exp);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 68px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.notice {
  max-width: 560px;
  margin: 0 0 24px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--bord);
  border-left: 3px solid var(--blanc);
}
.notice--ok  { border-left-color: #3FBF7F; }
.notice--err { border-left-color: var(--signal); }

.contact-form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 0 26px;
}
.hp { position: absolute; left: -9999px; top: -9999px; }
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) { .field-grid { grid-template-columns: 1fr; } }
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gris);
}
.field input, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--bord-2);
  color: var(--blanc);
  font-family: var(--font-std);
  font-size: 16px;
  padding: 8px 0 10px;
  border-radius: 0;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--blanc);
}
.btn-send {
  align-self: flex-start;
  background: var(--blanc);
  color: var(--noir);
  border: 0;
  border-radius: 3px;
  padding: 13px 28px;
  font-family: var(--font-std);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 150ms;
}
.btn-send:hover { background: #FFFFFF; }
.contact-alt {
  margin: 0;
  font-size: 14px;
  color: var(--gris);
}
.contact-mail {
  font-weight: 700;
  border-bottom: 1px solid var(--gris);
  padding-bottom: 2px;
}
.contact-mail:hover { color: var(--blanc); border-color: var(--blanc); }

/* ---------- pages de contenu (/p/slug) ---------- */

.bar--static { position: static; mix-blend-mode: normal; }
.page-doc .bar--static { padding-top: 26px; }
.doc {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: clamp(40px, 7vw, 80px) var(--pad-x) clamp(60px, 9vw, 110px);
}
.doc-title {
  margin: 0 0 28px;
  font-family: var(--font-exp);
  font-weight: 900;
  font-size: clamp(28px, 4.4vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.doc-body p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gris-2);
}

/* ---------- signature de pied de page ---------- */

.foot-sign {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: clamp(56px, 9vw, 120px) var(--pad-x) clamp(28px, 4vw, 48px);
  font-family: var(--font-exp);
  font-weight: 900;
  font-size: clamp(48px, 11vw, 170px);
  line-height: 0.82;
  letter-spacing: -0.035em;
  color: transparent;
  -webkit-text-stroke: 1px var(--bord-2);
  user-select: none;
  white-space: nowrap;
  transition: color 600ms var(--ease), -webkit-text-stroke-color 600ms var(--ease);
}
.foot-sign:hover {
  color: var(--blanc);
  -webkit-text-stroke-color: var(--blanc);
}
.foot-sign .paren { font-weight: 900; }

/* ---------- footer ---------- */

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  padding: 26px var(--pad-x) 34px;
  border-top: 1px solid var(--bord);
  font-size: 13px;
  color: var(--gris);
}
.foot-brand { margin: 0; }
.foot-pages {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-pages a { font-weight: 600; }
.foot-pages a:hover { color: var(--blanc); }
.foot-link { font-weight: 600; transition: color 180ms; }
.foot-link:hover { color: var(--blanc); }

/* ---------- page d'attente (mode « soon ») ---------- */

.soon-body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.soon {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3.4vh, 34px);
  padding: 64px var(--pad-x) 48px;
  text-align: center;
  background: radial-gradient(ellipse 90% 60% at 50% 44%, var(--noir-2), var(--noir) 78%);
}
.soon .crop--tl, .soon .crop--tr { top: 24px; }
.soon .crop--bl, .soon .crop--br { bottom: 24px; }

.soon-mark {
  margin: 0;
  font-family: var(--font-exp);
  font-weight: 900;
  font-size: clamp(40px, 9vw, 110px);
  line-height: 0.86;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.soon-mark .paren:first-child { margin-right: 0.04em; }
.soon-mark .paren:last-child  { margin-left: 0.04em; }

.wave--soon { height: clamp(44px, 8vw, 72px); }
.wave--soon .wb:nth-child(23) { background: var(--blanc); }
.wave--soon .wb:nth-child(12) { background: var(--signal); }

.soon-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--blanc);
}
.soon-sub {
  margin: -10px 0 0;
  font-weight: 300;
  font-size: clamp(15px, 1.8vw, 19px);
  letter-spacing: 0.01em;
  color: var(--gris-2);
}

.soon-actions {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.soon-link {
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid var(--bord-2);
  padding-bottom: 3px;
  transition: border-color 180ms, color 180ms;
}
.soon-link:hover { color: var(--blanc); border-color: var(--blanc); }
.soon-sep { color: var(--signal); }

.notice--soon { margin: 0; max-width: 420px; }

.soon-form {
  width: min(420px, 100%);
  text-align: left;
}
.soon-form summary {
  list-style: none;
  cursor: pointer;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gris);
  padding: 8px 0;
  transition: color 180ms;
}
.soon-form summary::-webkit-details-marker { display: none; }
.soon-form summary:hover { color: var(--blanc); }
.soon-form[open] summary { color: var(--blanc); }
.soon-form form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
  border: 1px solid var(--bord);
  background: rgba(14, 14, 16, 0.6);
  padding: 24px;
}
.soon-form .btn-send { align-self: center; }

.soon-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 22px;
  flex-wrap: wrap;
  padding: 20px var(--pad-x) 26px;
  border-top: 1px solid var(--bord);
  font-size: 12px;
  color: var(--gris);
}
.soon-foot a:hover { color: var(--blanc); }
.soon-admin {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 10px;
  opacity: 0.6;
}
.soon-admin:hover { opacity: 1; }

/* ---------- apparition au défilement ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .hero { min-height: 88svh; padding-top: 84px; }
  .stage-paren { font-size: clamp(90px, 30vw, 140px); }
  .wave { height: clamp(64px, 22vw, 100px); }
  .wb:nth-child(n+33) { display: none; }
  .ghost { white-space: normal; }
}
