/*
  VIDEOIA — système de design
  Concept : le langage visuel d'une régie vidéo. Chaque vidéo générée fait
  exactement 5 secondes (contrainte réelle du produit, pas une décoration) :
  le repère de montage (timecode) devient donc le motif structurant — pour
  numéroter les étapes, afficher les durées, et donner du rythme aux prix.
  Le point rouge qui pulse sur le bouton principal évoque la diode "tally"
  d'une caméra professionnelle : on est sur le point d'enregistrer.

  Palette :
    --stage      #0B0E13  fond général (plateau, nuit)
    --panel      #151A21  surfaces (cartes, champs)
    --panel-line #232A34  liserés
    --text       #F2F0EA  texte principal (blanc chaud)
    --text-dim   #99A2AE  texte secondaire
    --tally      #E8483C  accent signature (diode d'enregistrement)
    --monitor    #4FD1C5  accent secondaire (état, traitement, succès)
    --gold-rim   #D9B36C  accent tertiaire discret (palier Agence)

  Typo :
    Display : 'Space Grotesk' (titres)
    Texte   : 'Manrope' (corps)
    Mono    : 'IBM Plex Mono' (timecodes, prix, compteurs)
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Manrope:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --stage: #0B0E13;
  --panel: #151A21;
  --panel-2: #1B222B;
  --panel-line: #232A34;
  --text: #F2F0EA;
  --text-dim: #99A2AE;
  --tally: #E8483C;
  --tally-dim: #6B231F;
  --monitor: #4FD1C5;
  --gold-rim: #D9B36C;
  --radius: 10px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--stage);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }

p { color: var(--text-dim); }

a { color: var(--monitor); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

.timecode {
  font-family: var(--font-mono);
  color: var(--tally);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 640px; margin: 0 auto; padding: 0 24px; }

nav.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--panel-line);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tally); box-shadow: 0 0 0 3px var(--tally-dim); }

.card {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 24px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 13px 22px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.08s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--tally); color: #fff; }
.btn-primary:hover { opacity: 0.92; }
.btn-primary .tally-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: pulse 1.6s ease-in-out infinite;
}
.btn-secondary { background: transparent; color: var(--text); border-color: var(--panel-line); }
.btn-secondary:hover { border-color: var(--monitor); color: var(--monitor); }
.btn-ghost { background: transparent; color: var(--text-dim); border: none; }
.btn-ghost:hover { color: var(--text); }
.btn-block { width: 100%; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary .tally-dot { animation: none; }
}

input[type="text"], input[type="email"], input[type="password"], input[type="url"], textarea, select {
  width: 100%; background: var(--panel-2); border: 1px solid var(--panel-line); color: var(--text);
  border-radius: 8px; padding: 12px 14px; font-family: var(--font-body); font-size: 0.95rem;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--monitor); outline-offset: 1px; border-color: var(--monitor);
}
label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 6px; }
.field { margin-bottom: 18px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono);
  font-size: 0.75rem; padding: 4px 10px; border-radius: 100px; border: 1px solid var(--panel-line); color: var(--text-dim);
}
.badge-live { color: var(--monitor); border-color: var(--monitor); }
.badge-rec { color: var(--tally); border-color: var(--tally); }

.error-msg { color: var(--tally); font-size: 0.88rem; margin-top: 8px; }
.hint { color: var(--text-dim); font-size: 0.85rem; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.step-marker {
  font-family: var(--font-mono); color: var(--tally); font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--tally-dim); border-radius: 100px; padding: 3px 10px; display: inline-block;
}

.upload-slot {
  border: 1.5px dashed var(--panel-line); border-radius: var(--radius); aspect-ratio: 3/4;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; position: relative; overflow: hidden; background: var(--panel-2);
}
.upload-slot:hover { border-color: var(--monitor); }
.upload-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--panel-line); font-size: 0.9rem; }
th { color: var(--text-dim); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }

.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.status-done { background: var(--monitor); }
.status-progress { background: var(--gold-rim); animation: pulse 1.6s ease-in-out infinite; }
.status-failed { background: var(--tally); }
.status-queued { background: var(--text-dim); }

.plan-card { border: 1px solid var(--panel-line); border-radius: var(--radius); padding: 22px; background: var(--panel); }
.plan-card.featured { border-color: var(--gold-rim); }
.plan-price { font-family: var(--font-mono); font-size: 2rem; color: var(--text); margin: 10px 0; }
.plan-price small { font-size: 0.9rem; color: var(--text-dim); font-weight: 500; }
