/* =========================================================
   STUDIO CASTING — système de design « cinéma éditorial »
   Dark warm cinématographique · accent or foil · motif viseur
   Display Fraunces · corps Archivo · technique Fragment Mono
   ========================================================= */

:root {
  /* Encres & surfaces */
  --ink: #0a0907;
  --ink-2: #0e0c09;
  --ink-3: #080705;
  --surface: #161208;
  --surface-2: #1f1810;
  --surface-3: #251d12;
  --line: #352c1f;
  --line-soft: #271f15;
  --hair: rgba(201, 168, 107, 0.16);

  /* Texte */
  --text: #f7f2e8;
  --text-2: #ded6c6;
  --muted: #ab9f8d;
  --faint: #6f6655;

  /* Or — accent maître */
  --gold: #c9a86b;          /* laiton patiné, mat — l'or devient un trait */
  --gold-2: #e0c184;        /* accent plus clair, réservé logo / filets */
  --gold-3: #efdcae;
  --gold-deep: #9c7c3f;
  --gold-ink: #18130a;
  --gold-soft: #c2ac82;
  --gold-glow: rgba(201, 168, 107, 0.22);
  --gold-faint: rgba(201, 168, 107, 0.08);

  /* Lueurs secondaires (variété sous projecteur) */
  --blush: #e7a07e;
  --steel: #8fb6c4;

  --danger: #e7765f;
  --ok: #86c995;

  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --maxw: 1100px;

  --shadow-card: 0 28px 60px -34px rgba(0, 0, 0, 0.85);
  --shadow-pop: 0 40px 100px -30px rgba(0, 0, 0, 0.9);

  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

/* `hidden` doit toujours l'emporter, même sur les display explicites. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 420;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(1100px 720px at 80% -12%, rgba(201, 168, 107, 0.07), transparent 62%),
    linear-gradient(180deg, var(--ink), var(--ink-2) 55%, var(--ink-3));
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

/* Vignette douce sur les bords — profondeur de salle obscure */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(135% 120% at 50% 38%, transparent 58%, rgba(0, 0, 0, 0.55) 100%);
}

/* Grain argentique très léger par-dessus tout */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: overlay;
  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.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header, main, .site-footer, .modal { position: relative; z-index: 1; }

em { font-style: italic; }
::selection { background: var(--gold-glow); color: #fff; }
a { color: inherit; }

/* Révélation au scroll (activée par le petit script inline) */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- En-tête + logo ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px clamp(18px, 5vw, 56px);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(10, 9, 7, 0.86), rgba(10, 9, 7, 0.62));
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-glow) 22%, var(--gold-glow) 78%, transparent);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  text-decoration: none;
}
.logo-mark {
  width: 30px;
  height: 30px;
  flex: none;
  filter: drop-shadow(0 1px 8px var(--gold-glow));
  transition: transform .4s var(--ease);
}
.brand:hover .logo-mark { transform: scale(1.08) rotate(-3deg); }
.logo-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
}
.logo-text em { font-style: normal; color: var(--gold); }

.header-right { display: inline-flex; align-items: center; gap: clamp(12px, 3vw, 22px); }
.header-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.apply-quit { color: var(--muted); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.04em; }
.apply-quit:hover { color: var(--text); }
.admin-tag {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Boutons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 27px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: transform .16s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .3s, opacity .25s, filter .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--gold);
  color: var(--gold-ink);
  border-color: var(--gold-2);
}
.btn-primary:hover { background: var(--gold-2); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.018);
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-faint); }
.btn-danger {
  background: linear-gradient(160deg, #e7866e, #c0463a);
  color: #fff;
  box-shadow: 0 10px 26px -14px rgba(192, 70, 58, 0.6);
}
.btn-danger:hover { transform: translateY(-2px); filter: brightness(1.06); }

/* Petite étiquette « mono » réutilisable */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 7px 15px;
}
.tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

/* =========================================================
   LANDING
   ========================================================= */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 5vw, 56px); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- HERO éditorial deux colonnes ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(72px, 13vw, 180px) 0 clamp(48px, 7vw, 96px);
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: -8%; right: 4%;
  width: 62%; height: 130%;
  background: radial-gradient(closest-side, rgba(201, 168, 107, 0.08), transparent 72%);
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
}

.hero-copy > * { opacity: 0; animation: rise .8s var(--ease) forwards; }
.hero-copy .hero-tag { animation-delay: .05s; }
.hero-copy .hero-title { animation-delay: .16s; }
.hero-copy .hero-lead { animation-delay: .30s; }
.hero-copy .hero-actions { animation-delay: .42s; }
.hero-copy .hero-tags { animation-delay: .52s; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}
.hero-tag::before {
  content: "";
  width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 360;
  font-size: clamp(2.9rem, 8.4vw, 5.9rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 30px;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  font-weight: 340;
  color: var(--gold);
}
.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-2);
  max-width: 42ch;
  margin: 0 0 34px;
}
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-note { color: var(--muted); font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.04em; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 15px;
  background: rgba(255, 255, 255, 0.014);
  transition: border-color .25s, color .25s, background .25s, transform .25s;
}
.chip:hover { border-color: var(--gold); color: var(--text); background: var(--gold-faint); transform: translateY(-2px); }

/* ---------- Visuel signature : planche de fiches casting ---------- */
.cast-stack {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.6vw, 18px);
  padding: 8px;
  opacity: 0;
  animation: rise 1s var(--ease) .35s forwards;
}
.cast-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #060504;
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.cast-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9);
  z-index: 3;
}

.cast-shot {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0c0c0e;
}
.cast-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.4) contrast(1.03) brightness(0.96);
  transition: filter .5s var(--ease), transform .6s var(--ease);
}
.cast-card:hover .cast-photo { filter: grayscale(0) contrast(1.03); transform: scale(1.05); }
/* Voile de lisibilité (numéro en haut, ancrage bas) + légère teinte chaude */
.cast-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 32%, transparent 68%, rgba(0, 0, 0, 0.34)),
    linear-gradient(0deg, rgba(201, 168, 107, 0.06), transparent 42%);
}

.cast-card .corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid var(--gold-2);
  opacity: 0.9;
  z-index: 4;
  transition: opacity .3s;
}
.cast-card .corner.tl { top: 9px; left: 9px; border-right: 0; border-bottom: 0; }
.cast-card .corner.br { bottom: 38px; right: 9px; border-left: 0; border-top: 0; }

.cast-num {
  position: absolute;
  top: 9px; right: 11px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--gold-3);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.cast-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(180deg, var(--surface-2), var(--ink-2));
  border-top: 1px solid var(--line);
}
.cast-cap b {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  color: var(--text);
}
.cast-cap span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

/* ---------- Bandeau défilant (texte via pseudo-élément) ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  margin: clamp(8px, 3vw, 26px) 0 clamp(34px, 6vw, 64px);
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-inner {
  position: relative;
  width: 100%;
  height: 1.9rem;
}
.marquee-inner::before {
  content: "Comédien·ne·s  ✦  Mannequins  ✦  Figurant·e·s  ✦  Voix & présence  ✦  Nouveaux visages  ✦  Comédien·ne·s  ✦  Mannequins  ✦  Figurant·e·s  ✦  Voix & présence  ✦  Nouveaux visages  ✦  ";
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  line-height: 1.9rem;
  font-family: var(--font-mono);
  font-weight: 400;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  -webkit-text-stroke: 0;
  animation: scroll-x 64s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-inner::before { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Détails en grille (cartes « viseur ») ---------- */
.grid-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 20px;
  padding: 8px 0 12px;
}
.grid-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px 32px;
  overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.grid-card::before, .grid-card::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid var(--gold);
  opacity: 0.5;
  transition: opacity .3s;
}
.grid-card::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.grid-card::after { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.grid-card:hover {
  border-color: var(--hair);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.grid-card:hover::before, .grid-card:hover::after { opacity: 1; }
.grid-num {
  display: inline-block;
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair);
}
.grid-card h3 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.55rem;
  margin: 16px 0 12px;
  letter-spacing: -0.01em;
}
.grid-card p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---------- Étapes ---------- */
.steps-section { padding: clamp(80px, 11vw, 160px) 0 56px; }
.section-title {
  font-family: var(--font-display);
  font-weight: 320;
  font-size: clamp(2.1rem, 5.4vw, 3.2rem);
  text-align: center;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.section-title em { font-style: italic; color: var(--gold); }
/* Signature « estampille » : filet or de part et d'autre du n° de série mono */
.section-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
}
.section-kicker::before, .section-kicker::after {
  content: "";
  width: 30px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-kicker::after { background: linear-gradient(90deg, var(--gold), transparent); }
.steps-list {
  list-style: none;
  counter-reset: s;
  padding: 0;
  margin: 40px auto 52px;
  max-width: 700px;
  display: grid;
  gap: 14px;
}
.steps-list li {
  counter-increment: s;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 22px;
  align-items: baseline;
  padding: 26px 28px;
  background: linear-gradient(180deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.steps-list li::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s var(--ease);
}
.steps-list li:hover { border-color: var(--hair); transform: translateX(4px); }
.steps-list li:hover::after { transform: scaleY(1); }
.steps-list li::before {
  content: counter(s, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  padding-top: 2px;
}
.steps-list strong { font-size: 1.08rem; font-weight: 600; }
.steps-list span { color: var(--muted); font-size: 0.95rem; }

.cta-band {
  position: relative;
  text-align: center;
  background:
    radial-gradient(680px 240px at 50% 0%, rgba(231, 178, 76, 0.14), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 56px 28px;
  overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid var(--gold);
  opacity: 0.55;
}
.cta-band::before { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.cta-band::after { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }
.cta-band p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.cta-band p em { font-style: italic; color: var(--gold); }

.site-footer {
  max-width: var(--maxw);
  margin: 76px auto 0;
  padding: 32px clamp(18px, 5vw, 56px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}

/* =========================================================
   APPLY / WIZARD
   ========================================================= */
.apply-main { max-width: 760px; padding-bottom: 72px; }

.stepper {
  display: flex;
  gap: 8px;
  margin: 32px 0 40px;
  flex-wrap: wrap;
}
.stepper-item {
  flex: 1 1 0;
  min-width: 74px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--faint);
  padding: 13px 0;
  border-top: 2px solid var(--line);
  transition: color .3s, border-color .3s;
}
.stepper-item span {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  flex: none;
  transition: all .3s var(--ease);
}
.stepper-item.active { color: var(--text); border-top-color: var(--gold); }
.stepper-item.active span { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.stepper-item.done { color: var(--muted); border-top-color: var(--gold); }
.stepper-item.done span { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-size: 0; }
.stepper-item.done span::after { content: "✓"; font-size: 0.82rem; }

.step { display: none; animation: rise .4s var(--ease); }
.step.active { display: block; }

.step-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.95rem, 5vw, 2.6rem);
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.step-sub { color: var(--muted); margin: 0 0 32px; }

.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.fields label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color .2s;
}
.fields label:focus-within { color: var(--gold-soft); }
.fields label.full { grid-column: 1 / -1; }
.fields .opt { color: var(--faint); font-weight: 400; }

input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 420;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 15px;
  width: 100%;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--ink-2);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
/* État d'erreur seulement après interaction de l'utilisateur. */
input:user-invalid, select:user-invalid, textarea:user-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(231, 118, 95, 0.18);
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
textarea { resize: vertical; font-family: var(--font-body); }

/* Téléphone : indicatif (dropdown) + numéro côte à côte */
.tel-row { display: flex; gap: 8px; align-items: stretch; }
.tel-row .tel-code { width: auto; flex: 0 0 auto; min-width: 96px; padding-right: 30px; }
.tel-row input { flex: 1 1 auto; width: auto; min-width: 0; }

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 38px;
}
.wizard-nav .btn { flex: 0 0 auto; }
#nextBtn, #submitBtn { margin-left: auto; }

/* ---------- Déroulé des gestes (étape vérification) ---------- */
.capture-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex-wrap: wrap;
}
.capture-legend li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}
.capture-legend li:not(:last-child)::after {
  content: "";
  width: 22px; height: 1px;
  background: var(--line);
  margin-left: 2px;
}
.cl-ico {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--hair);
  background: var(--gold-faint);
  color: var(--gold);
  font-size: 0.95rem;
  line-height: 1;
}

/* =========================================================
   CAPTURE VIDÉO — le « viseur »
   ========================================================= */
.capture { display: flex; flex-direction: column; align-items: center; }

.video-frame {
  position: relative;
  /* Le cadre s'ADAPTE à l'écran : il prend la hauteur disponible (en réservant
     la place de l'en-tête + consignes + boutons), borné en largeur, plafonné à
     344px. → tient sans scroll sur mobile comme sur PC, quelle que soit la taille. */
  --cap-reserve: 455px;   /* hauteur réservée (en-tête + consignes + boutons) ; réduite sur mobile */
  /* Format de base 720 x 1080 (portrait 2:3). Le cadre garde toujours ce format
     et se dimensionne selon la hauteur d'écran → tient sans scroll, mobile comme PC. */
  width: min(340px, 90vw);                                                /* repli sans svh */
  width: min(90vw, clamp(158px, calc((100svh - var(--cap-reserve)) * 0.5625), 344px));
  aspect-ratio: 720 / 1280;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 36px 80px -22px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.video-frame::before, .video-frame::after {
  content: "";
  position: absolute;
  width: 28px; height: 28px;
  border: 2px solid var(--gold);
  z-index: 5;
  pointer-events: none;
  transition: border-color .2s;
}
.video-frame::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.video-frame::after { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.video-frame.live-ok::before, .video-frame.live-ok::after { border-color: var(--ok); }
.video-frame.live-bad::before, .video-frame.live-bad::after { border-color: var(--danger); }

.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Image COMPLÈTE, jamais rognée : on conserve tout le champ caméra dans le
     cadre portrait 720x1080 (bandes si la caméra filme en paysage). Identique
     à ce qui est enregistré. */
  object-fit: contain;
}
#preview { transform: scaleX(-1); }

.seq-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.14);
  z-index: 6;
}
.seq-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold-2)); }

.overlay { position: absolute; inset: 0; pointer-events: none; }
.oval {
  position: absolute;
  top: 50%; left: 50%;
  width: 58%; height: 46%;
  transform: translate(-50%, -54%);
  border: 2px dashed rgba(244, 241, 234, 0.5);
  border-radius: 50% / 42%;
  transition: border-color .15s ease;
}
.video-frame.live-ok .oval { border-color: var(--ok); border-style: solid; }
.video-frame.live-bad .oval { border-color: rgba(231, 118, 95, 0.85); }

.rec-badge {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 7px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  padding: 5px 12px;
  border-radius: 999px;
  z-index: 6;
}
.rec-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: blink 1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.guide {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 54px 18px 22px;
  text-align: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.84), transparent);
}
.guide-text { font-family: var(--font-display); font-weight: 500; font-size: 1.32rem; line-height: 1.18; color: #fff; }
.guide-sub { color: rgba(255, 255, 255, 0.74); font-size: 0.84rem; margin-top: 5px; }

.countdown {
  position: absolute;
  top: 16px; right: 16px;
  min-width: 44px; height: 44px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--gold-ink);
  background: var(--gold);
  border-radius: 50%;
  padding: 0 6px;
  z-index: 6;
  box-shadow: 0 4px 16px -4px var(--gold-glow);
}
.countdown:empty { display: none; }

.arrow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: var(--gold);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  opacity: 0;
}
.arrow.show-right { opacity: 1; animation: nudge-r 1s ease-in-out infinite; }
.arrow.show-left { opacity: 1; animation: nudge-l 1s ease-in-out infinite; }
.arrow.show-right::before { content: "→"; }
.arrow.show-left::before { content: "←"; }
@keyframes nudge-r { 50% { transform: translate(-30%, -50%); } }
@keyframes nudge-l { 50% { transform: translate(-70%, -50%); } }

.cam-message {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  color: var(--text);
  background: var(--surface-2);
  font-size: 0.95rem;
  z-index: 7;
}

.capture-controls { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 26px 0 4px; }
.capture-status {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.2em;
  margin: 10px 0 0;
}
.capture-status.ok { color: var(--ok); }
.capture-status.err { color: var(--danger); }

.capture-hints {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}
.capture-hints li { position: relative; padding-left: 14px; }
.capture-hints li::before { content: "•"; position: absolute; left: 2px; color: var(--gold); }

/* =========================================================
   RÉCAP + CONFIRMATION
   ========================================================= */
.recap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.recap dt {
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.recap dd {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  word-break: break-word;
}
.recap .video-ok { color: var(--ok); }

.consent {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .2s;
}
.consent:hover { border-color: var(--hair); }
.consent input { width: 20px; height: 20px; flex: none; accent-color: var(--gold); margin-top: 2px; }

.confirmation { text-align: center; padding: 72px 20px; animation: rise .45s var(--ease); }
.confirm-check {
  width: 84px; height: 84px;
  margin: 0 auto 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(165deg, var(--gold-2), var(--gold-deep));
  color: var(--gold-ink);
  font-size: 2.6rem;
  box-shadow: 0 16px 44px -12px var(--gold-glow);
  animation: pop-in .5s var(--ease) both;
}
@keyframes pop-in { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirmation h2 { font-family: var(--font-display); font-weight: 500; font-size: 2.2rem; margin: 0 0 12px; }
.confirmation p { color: var(--muted); margin: 0 auto 10px; max-width: 44ch; }
.confirm-ref code {
  font-family: var(--font-mono);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 0.82rem;
  color: var(--gold);
}
.confirmation .btn { margin-top: 28px; }

/* =========================================================
   ADMIN
   ========================================================= */
.admin-main { max-width: var(--maxw); }

.admin-login { max-width: 440px; margin: 13vh auto 0; text-align: center; }
.admin-login .logo-mark { width: 48px; height: 48px; margin-bottom: 20px; color: var(--gold); }
.admin-login h1 { font-family: var(--font-display); font-weight: 500; font-size: 2.2rem; margin: 0 0 8px; }
.admin-login p { color: var(--muted); margin: 0 0 28px; }
.login-form { display: flex; gap: 10px; }
.login-form input { flex: 1; }
.login-error { color: var(--danger); margin-top: 16px; }

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 40px 0 24px;
}
.dash-head h1 { font-family: var(--font-display); font-weight: 500; font-size: 2.1rem; margin: 0; }
.dash-count {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--gold-ink);
  background: var(--gold);
  border-radius: 999px;
  padding: 2px 12px;
  margin-left: 10px;
  vertical-align: middle;
}
.dash-actions { display: flex; gap: 10px; }
.dash-empty { color: var(--muted); text-align: center; padding: 44px 0; }

.dash-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--hair); }
.filter-btn.active { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 18px;
}
.card {
  background: linear-gradient(180deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.85); }

.card-thumb-wrap { position: relative; }
.card-thumb-wrap .badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.card-thumb-wrap::before, .card-thumb-wrap::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid var(--gold);
  opacity: 0.7;
  z-index: 2;
  pointer-events: none;
}
.card-thumb-wrap::before { top: 9px; right: 9px; border-left: 0; border-bottom: 0; }
.card-thumb-wrap::after { bottom: 9px; right: 9px; border-left: 0; border-top: 0; }
.card-thumb { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: #000; }
.card-thumb--empty { display: grid; place-items: center; font-size: 2.4rem; color: var(--faint); background: var(--surface-2); }
.card-info { padding: 16px 16px 18px; }
.card-info h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; }
.card-meta { margin: 0 0 6px; color: var(--muted); font-size: 0.86rem; }
.card-date { margin: 0; color: var(--faint); font-family: var(--font-mono); font-size: 0.7rem; }

/* Badges de statut */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}
.badge-ok { background: rgba(134, 201, 149, 0.2); color: var(--ok); border-color: rgba(134, 201, 149, 0.45); }
.badge-no { background: rgba(231, 118, 95, 0.22); color: var(--danger); border-color: rgba(231, 118, 95, 0.45); }
.badge-warn { background: rgba(11, 10, 9, 0.66); color: var(--muted); border-color: var(--line); }
.badge-auto { background: rgba(231, 178, 76, 0.2); color: var(--gold); border-color: rgba(231, 178, 76, 0.45); }

/* Modale détail */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); }
.modal-panel {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  width: min(720px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 32px;
  box-shadow: var(--shadow-pop);
}
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  color: var(--muted);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s, transform .2s;
}
.modal-close:hover { color: var(--gold); transform: rotate(90deg); }
.modal-body h2 { font-family: var(--font-display); font-weight: 500; font-size: 2rem; margin: 0 0 4px; }
.modal-sub { color: var(--muted); font-size: 0.85rem; margin: 0 0 22px; }
.modal-sub code { font-family: var(--font-mono); color: var(--gold); font-size: 0.76rem; }
.modal-media { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.modal-video, .modal-headshot {
  width: 200px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius);
  background: #000;
  border: 1px solid var(--line);
}
.modal-novideo { color: var(--muted); }
.modal-data {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.modal-data dt {
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.modal-data dd {
  margin: 0;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  word-break: break-word;
}

/* Vérification automatique + décision */
.rev-auto, .rev-decision {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 18px;
  background: var(--surface);
}
.rev-auto h3, .rev-decision h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rev-meta { color: var(--muted); font-family: var(--font-mono); font-size: 0.72rem; margin: 0 0 13px; }
.rev-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.rev-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; }
.rev-steps li span:last-child { display: flex; flex-direction: column; }
.rev-steps li em { color: var(--faint); font-size: 0.78rem; font-style: normal; }
.rev-steps .rev-ic { font-weight: 700; }
.rev-steps li.ok .rev-ic { color: var(--ok); }
.rev-steps li.no .rev-ic { color: var(--danger); }
.rev-none { color: var(--muted); font-size: 0.9rem; margin: 0 0 18px; }
.rev-cur { font-family: var(--font-mono); font-size: 0.7rem; padding: 3px 10px; border-radius: 999px; }
.rev-pending { background: rgba(165, 159, 147, 0.16); color: var(--muted); }
.rev-accepted { background: rgba(134, 201, 149, 0.2); color: var(--ok); }
.rev-rejected { background: rgba(231, 118, 95, 0.22); color: var(--danger); }
.rev-note { width: 100%; min-height: 62px; margin-bottom: 12px; resize: vertical; }
.rev-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rev-msg { margin: 12px 0 0; font-size: 0.85rem; }
.rev-msg.ok { color: var(--ok); }
.rev-msg.err { color: var(--danger); }

/* Zone danger : suppression */
.rev-danger {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.rev-del-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.rev-del-q { color: var(--danger); font-size: 0.88rem; }
.rev-del-btns { display: flex; gap: 8px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero::before { width: 100%; right: 0; }
  .cast-stack { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .site-footer { flex-direction: column; }
  .hero-actions { gap: 14px; }
  .hero-actions .btn,
  .cta-band .btn { width: 100%; justify-content: center; white-space: normal; }
  .logo-text { letter-spacing: 0.26em; font-size: 0.74rem; }
  .header-meta { display: none; }
  .cast-card:nth-child(n) { transform: none; }
  .cast-card { animation: none; }
  /* Étape vérification : bandeau resserré + légende masquée → place au viseur + boutons */
  .stepper { margin: 18px 0 20px; }
  .step-title { font-size: clamp(1.5rem, 6vw, 1.9rem); margin-bottom: 4px; }
  .step-sub { margin-bottom: 12px; font-size: 0.88rem; }
  .capture-legend { display: none; }
  .capture-controls { margin-top: 14px; }
  .capture-hints { margin-top: 10px; }
  .video-frame { --cap-reserve: 330px; }   /* bandeau plus court sur mobile → viseur plus grand */
}

/* Écrans COURTS (laptops, paysage) : on compacte aussi pour tout faire tenir sans scroll */
@media (max-height: 760px) {
  .capture-legend { display: none; }
  .stepper { margin: 16px 0 18px; }
  .step-title { font-size: clamp(1.5rem, 4.5vw, 2rem); margin-bottom: 4px; }
  .step-sub { margin-bottom: 12px; }
  .capture-controls { margin-top: 12px; }
  .capture-hints { margin-top: 8px; }
  .video-frame { --cap-reserve: 320px; }
}
@media (max-width: 480px) {
  .wizard-nav { flex-direction: column-reverse; }
  .wizard-nav .btn { width: 100%; justify-content: center; white-space: normal; }
  #nextBtn, #submitBtn { margin-left: 0; }
  .login-form { flex-direction: column; }
}
@media (max-width: 360px) {
  .site-header .logo-text { display: none; }
}

/* =========================================================
   ACCESSIBILITÉ : mouvement réduit
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-copy > *, .cast-stack { opacity: 1 !important; animation: none !important; }
  .cast-card { transform: none !important; }
  .marquee-inner::before { animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .seq-progress-bar { transition: none !important; }
}
