/* Polices — hébergées par un tiers pour l'instant.
   À terme : déposer les .woff2 dans /fonts et remplacer les URLs.
   MADE Outer Sans = licence perso uniquement → acheter une licence commerciale. */
@font-face { font-family: "MADE Outer Sans"; font-weight: 300; font-display: swap; src: url("https://db.onlinewebfonts.com/t/1d81eac237227119f80768d030d2326a.woff2") format("woff2"), url("https://db.onlinewebfonts.com/t/1d81eac237227119f80768d030d2326a.woff") format("woff"); }
@font-face { font-family: "MADE Outer Sans"; font-weight: 700; font-display: swap; src: url("https://db.onlinewebfonts.com/t/0a99850add2d00c04ce239db52982b61.woff2") format("woff2"), url("https://db.onlinewebfonts.com/t/0a99850add2d00c04ce239db52982b61.woff") format("woff"); }
@font-face { font-family: "Nohemi"; font-weight: 400; font-display: swap; src: url("https://db.onlinewebfonts.com/t/29ddb4605533a38e086b48fa105e0d12.woff2") format("woff2"), url("https://db.onlinewebfonts.com/t/29ddb4605533a38e086b48fa105e0d12.woff") format("woff"); }
@font-face { font-family: "Nohemi"; font-weight: 500; font-display: swap; src: url("https://db.onlinewebfonts.com/t/340730b16e1fc32fe6c5e2ce1d020a54.woff2") format("woff2"), url("https://db.onlinewebfonts.com/t/340730b16e1fc32fe6c5e2ce1d020a54.woff") format("woff"); }

:root {
  --ink: #0B0A09;
  --paper: #F4F2EE;
  --red: #FF2A1F;
  --pad: clamp(16px, 2.4vw, 32px);
  --display: "MADE Outer Sans", Nohemi, sans-serif;
  --text: Nohemi, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--ink); overflow: hidden; }
body { font-family: var(--text); text-transform: uppercase; color: var(--paper); }
a { color: var(--paper); text-decoration: none; }
a:hover { color: var(--red); }
button { font: inherit; }

/* Scène plein écran */
.stage {
  position: relative; height: 100svh; min-height: 520px; overflow: hidden;
  touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none;
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Calque UI au-dessus du canvas */
.ui {
  position: absolute; inset: 0; pointer-events: none;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: var(--pad); font-size: 13px; letter-spacing: .01em;
}
.logo { height: 30px; width: auto; display: block; }

.center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.title {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(10px, .75vw, 14px); line-height: 1.2; letter-spacing: .06em; white-space: nowrap;
}
.hint { margin: 0; font-size: 9px; letter-spacing: .12em; opacity: .6; }
.hint[hidden] { display: none; }
.actions { display: flex; gap: 10px; pointer-events: auto; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px;
  border: 1px solid rgba(244, 242, 238, .6); border-radius: 0;
  background: transparent; color: var(--paper); cursor: pointer;
  font-family: inherit; font-size: 10px; letter-spacing: .05em; text-transform: uppercase;
}
.btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--solid:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.caption { font-size: 11px; opacity: .6; min-height: 1.4em; display: block; }
.teaser { display: flex; align-items: baseline; gap: 8.4px; flex-wrap: wrap; margin-top: 4px; }
.teaser__title { font-family: var(--display); font-weight: 700; font-size: clamp(9.6px, .96vw, 13.2px); letter-spacing: .04em; }
.teaser__sub { font-size: 7.2px; opacity: .75; }
.social { display: flex; gap: 20px; pointer-events: auto; align-items: baseline; }
.social a { opacity: .7; }
.social a:hover { opacity: 1; color: var(--paper); }

/* Showreel plein écran — ouverture en saccades depuis le centre */
.reel {
  position: fixed; inset: 0; z-index: 10; background: var(--ink);
  display: grid; grid-template-rows: auto 1fr auto; gap: 16px; padding: var(--pad);
  clip-path: inset(50% 0 50% 0); pointer-events: none;
  transition: clip-path 420ms steps(7, end);
}
.reel.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.reel__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.reel__body { min-height: 0; display: flex; align-items: center; justify-content: center; }
.reel__body video { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--ink); cursor: pointer; }

/* Contrôles : texte seul, sans cadre */
.reel__controls { display: flex; align-items: center; gap: 20px; font-size: 10px; letter-spacing: .05em; }
.reel__ctl {
  height: 26px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--paper); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; opacity: .7;
}
.reel__ctl:hover { opacity: 1; }
.reel__time { opacity: .6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reel__progress { flex: 1; height: 26px; position: relative; cursor: pointer; touch-action: none; }
.reel__progress::before, .reel__fill { content: ""; position: absolute; left: 0; top: 50%; height: 1px; }
.reel__progress::before { right: 0; background: rgba(244, 242, 238, .25); }
.reel__fill { width: 0; background: var(--paper); }
.reel__progress:hover::before, .reel__progress:hover .reel__fill { height: 2px; }

/* Masquage pendant la lecture */
.reel__bar, .reel__controls { transition: opacity 300ms; }
.reel.is-idle { cursor: none; }
.reel.is-idle .reel__bar, .reel.is-idle .reel__controls { opacity: 0; }

/* Plein écran : vidéo bord à bord, contrôles par-dessus */
.reel:fullscreen { padding: 0; display: block; }
.reel:fullscreen .reel__body { position: absolute; inset: 0; }
.reel:fullscreen .reel__bar, .reel:fullscreen .reel__controls { position: absolute; left: var(--pad); right: var(--pad); z-index: 1; }
.reel:fullscreen .reel__bar { top: var(--pad); }
.reel:fullscreen .reel__controls { bottom: var(--pad); }

/* Mobile */
@media (max-width: 640px) {
  .title { white-space: normal; text-wrap: balance; max-width: 280px; font-size: 12px; line-height: 1.5; }
  .btn { height: 40px; padding: 0 16px; font-size: 11px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 14px; }
  .social { gap: 24px; }
  .reel__controls { gap: 14px; }
  .reel__ctl, .reel__progress { height: 40px; }
}
