/* ================================================================================================ */
/* FICHIER style.css — L'APPARENCE DU SITE (couleurs, tailles, espacements, disposition, animations) */
/* Rôle dans le projet : app.js dessine les blocs de la page ; ce fichier dit à quoi ils RESSEMBLENT. */
/* Comment le lire : « .nom { ... } » = « tout élément qui porte l'étiquette nom reçoit ces réglages ». */
/* « @media (min-width: 720px) » = « seulement si l'écran fait au moins 720 pixels de large » (ordinateur) : */
/* c'est ce qui rend le site agréable sur téléphone ET sur ordinateur. */
/* Choix de style : fond noir, gris neutres et un seul accent bleu (sobre, lisible, inspiré de VidRush). */
/* ================================================================================================ */
/* =============================================================================
   WarDoc — feuille de style
   Typographie Manrope (Google Fonts, licence OFL), gris neutres, accent bleu.
   ========================================================================== */

/* Les couleurs et réglages communs du site, définis UNE fois ici. Pourquoi : changer une couleur ici la change partout. */
:root {
  /* Fond principal : noir kaki (même ambiance que le nouvel espace client). */
  --bg: #11140e;
  /* Fond secondaire (bandes, champs) : un peu plus sombre que le fond. */
  --bg-2: #0c0e0a;
  /* Fond des cartes et panneaux. */
  --surface: #171b13;
  /* Fond des cartes un peu plus clair (survol, éléments actifs). */
  --surface-2: #20261a;
  /* Couleur des bordures. */
  --border: #262c1f;
  /* Bordures plus visibles (boutons, champs). */
  --border-strong: #353c2a;
  /* Texte principal : presque blanc. */
  --text: #ece8dc;
  /* Texte secondaire : gris clair. */
  --text-2: #d3cebd;
  /* Texte discret (aides, dates) : gris. */
  --muted: #a6a391;
  /* Couleur d'accent : le sable WarDoc (boutons, liens, éléments actifs). Avant : bleu #5b8af0. */
  --accent: #d9bf86;
  /* Sable plus clair (survol des boutons). */
  --accent-2: #ecd49b;
  /* Texte posé sur le sable : brun très foncé (lisible). */
  --accent-ink: #1a1508;
  /* Sable doré des boutons principaux (et son survol). Avant : bleu #2563eb. */
  --primary: #c9a85f;
  --primary-2: #d9bf86;
  /* Kaki foncé. */
  --olive: #5c6a33;
  /* Rouge : erreurs et suppressions. */
  --danger: #ef5b5b;
  /* Vert : réussites. */
  --success: #4cc38a;
  /* Sable : informations. */
  --info: #d9bf86;
  /* Arrondi des coins des cartes. */
  --radius: 14px;
  /* Arrondi des petits éléments. */
  --radius-sm: 10px;
  /* Ombre portée des fenêtres et du lecteur. */
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  /* Police des titres. */
  --font-head: 'Manrope', 'Inter', system-ui, sans-serif;
  /* Police du texte (avec des polices de secours si Google Fonts ne répond pas). */
  --font-body: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Police « machine à écrire » (clés, chiffres). */
  --font-mono: 'Fragment Mono', var(--font-mono);
  /* Largeur maximale du contenu (au-delà, des marges sur les côtés). */
  --max: 1180px;
  /* Indique au navigateur que le site est sombre (barres de défilement, menus déroulants sombres). */
  color-scheme: dark;
}

/* Les tailles incluent les bordures et marges intérieures (plus simple à calculer). */
* { box-sizing: border-box; }
/* Défilement doux quand on clique sur un lien interne. */
html { scroll-behavior: smooth; }
/* Filet de sécurité (2026-11-15, vu sur iPhone) : rien ne peut faire glisser la page sur le côté. « clip » et pas
   « hidden » : hidden casserait les parties collées de l'accueil (position: sticky), clip non. */
html, body { overflow-x: clip; }
/* Réglages de base de la page : pas de marge, fond noir, texte clair, police et taille de lecture confortables. */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Images et vidéos ne débordent jamais de leur bloc. */
img, svg, video { max-width: 100%; display: block; }
/* Liens sans soulignement, de la couleur du texte. */
a { color: inherit; text-decoration: none; }
/* Boutons et champs utilisent la même police que le reste du site. */
button, input, select, textarea { font: inherit; color: inherit; }
/* Titres : police des titres, gras, lettres un peu resserrées, peu d'interligne. */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.12;
  margin: 0 0 .5em;
}
/* Taille des grands titres : s'adapte à la largeur de l'écran (entre un minimum et un maximum). */
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
/* Taille des titres de section, adaptative aussi. */
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
/* Taille des petits titres. */
h3 { font-size: 1.25rem; }
/* Paragraphes : couleur secondaire et espace en dessous. */
p { margin: 0 0 1em; color: var(--text-2); }
/* Contour bleu bien visible sur l'élément sélectionné au clavier (accessibilité). */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* « container » : centre le contenu avec une largeur maximale et des marges sur les côtés. */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
/* Sur un écran plus large, marges plus grandes. */
@media (min-width: 720px) { .container { padding: 0 28px; } }

/* « eyebrow » : petit texte au-dessus d'un titre (ex. « Comment ça marche »), en dégradé bleu → blanc. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 600; letter-spacing: -.02em;
  color: var(--accent);
  background: radial-gradient(88% 100% at 0% 50%, #c9a85f 0%, #f3e6c4 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
/* Texte discret. */
.muted { color: var(--muted); }
/* Texte centré. */
.center { text-align: center; }
/* Élément caché (utilisé par app.js pour cacher/montrer un bloc). */
.hidden { display: none !important; }

/* Les BOUTONS. */
/* ---------------------------------------------------------------- Boutons */
/* Bouton de base : forme de pilule, texte gras, petite animation de couleur au survol. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600; font-size: .95rem;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  white-space: nowrap;
}
/* Le bouton s'enfonce légèrement quand on clique. */
.btn:active { transform: translateY(1px); }
/* Bouton principal : fond bleu. */
.btn-primary { background: var(--primary); color: var(--accent-ink); }
.btn-primary:hover { background: var(--primary-2); }
/* Bouton secondaire plein (gris), comme « Watch demo » chez VidRush. */
.btn-secondary { background: #4e4e4e; color: var(--text); }
.btn-secondary:hover { background: #5c5c5c; }
/* Bouton secondaire : transparent avec bordure. */
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
/* Bouton « danger » (supprimer) : texte rouge. */
.btn-danger { background: transparent; border-color: #4a2323; color: var(--danger); }
.btn-danger:hover { background: #2a1414; }
/* Bouton kaki (choix secondaire de couleur militaire, ex. « Copier le prompt » de la miniature Combat). */
.btn-khaki { background: #5c6a33; color: #f1efe4; }
.btn-khaki:hover { background: #6d7c3d; }
/* Petit bouton. */
.btn-sm { padding: 7px 13px; font-size: .85rem; }
/* Grand bouton. */
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
/* Bouton sur toute la largeur. */
.btn-block { width: 100%; }
/* Bouton désactivé : à moitié transparent, curseur « interdit ». */
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* L'EN-TÊTE (barre du haut avec le logo et le menu). */
/* ---------------------------------------------------------------- En-tête */
/* Elle reste collée en haut quand on fait défiler la page, avec un fond légèrement flou. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(24, 24, 24, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
/* La barre de navigation : éléments alignés horizontalement, 66 pixels de haut. */
.nav { display: flex; align-items: center; gap: 24px; height: 66px; }
/* Le logo « WarDoc ». */
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; }
/* Le carré bleu avec le « W ». */
.logo-mark {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  font-size: 1rem; font-weight: 700;
}
/* La partie en couleur dans le nom du logo. */
.logo span b { color: var(--accent); font-weight: 700; }
/* Les liens du menu : cachés sur téléphone (remplacés par le menu « burger »). */
.nav-links { display: none; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--text-2); font-size: .93rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
/* Partie droite de l'en-tête (langue, connexion). */
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
/* Bouton « Connexion » caché sur téléphone (il est dans le menu). */
.nav-right .btn-ghost.login { display: none; }
/* Le sélecteur de langue FR / EN. */
.lang-switch {
  display: inline-flex; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden;
}
.lang-switch button {
  background: none; border: 0; padding: 5px 10px; font-size: .78rem; font-weight: 700; cursor: pointer; color: var(--muted);
}
/* Langue choisie : en bleu. */
.lang-switch button.on { background: var(--surface-2); color: var(--accent); }
/* Le bouton « burger » (trois traits) du menu sur téléphone. */
.burger { background: none; border: 1px solid var(--border-strong); border-radius: 8px; width: 40px; height: 38px; cursor: pointer; display: grid; place-items: center; }
/* Les trois traits dessinés en CSS. */
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--text); position: relative; content: ''; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
/* Le menu déroulant du téléphone (caché tant qu'on n'a pas touché le burger). */
.mobile-menu { display: none; border-top: 1px solid var(--border); padding: 10px 16px 18px; }
.mobile-menu.open { display: grid; gap: 4px; }
.mobile-menu a { padding: 10px 4px; color: var(--text-2); border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 10px; }
/* Petit téléphone (2026-11-15) : logo + FR/EN + « Commencer » + menu dépassaient de 25 px (le menu était coupé par
   le bord) ; on resserre les espaces et le bouton, rien n'est caché. */
@media (max-width: 420px) {
  /* Espace entre le logo et le groupe de droite. */
  .nav { gap: 12px; }
  /* Espace entre FR/EN, « Commencer » et le menu. */
  .nav-right { gap: 6px; }
  /* Bouton « Commencer » un peu moins large. */
  .nav-right .btn-sm { padding: 7px 10px; }
}
/* Sur grand écran : on montre les liens et le bouton Connexion, on cache le burger. */
@media (min-width: 920px) {
  /* Liens du menu centrés dans la barre. */
  .nav-links { display: flex; flex: 1; justify-content: center; margin-left: 0; }
  .nav-right .btn-ghost.login { display: inline-flex; }
  .burger, .mobile-menu, .mobile-menu.open { display: none; }
}

/* LES SECTIONS de la page d'accueil (espacement vertical, en-têtes centrés, bandes de fond). */
/* ---------------------------------------------------------------- Sections */
section { padding: 84px 0; }
.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head p { font-size: 1.08rem; }
.band { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Le haut de la page d'accueil (« hero »). */
/* Hero */
.hero { position: relative; padding: 70px 0 80px; overflow: hidden; }
/* Fond décoratif : halos bleus et fine grille (comme un écran de contrôle). */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(217, 191, 134, .14), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(0, 153, 255, .22), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 44px);
}
/* Texte et lecteur côte à côte sur grand écran, l'un sous l'autre sur téléphone. */
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
/* Le mot mis en valeur dans le grand titre : en bleu. */
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.15rem; max-width: 560px; }
/* Les boutons d'appel à l'action. */
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
/* La liste des avantages, avec une coche bleue. */
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; color: var(--text-2); font-size: .92rem; }
.hero-points li::before { content: '✓'; color: var(--accent); font-weight: 700; margin-right: 7px; }

/* ----- HAUT DE L'ACCUEIL façon VidRush (préfixe « vr- ») ----------------------------------------- */
/* Sur l'accueil, l'en-tête est presque transparent : le dégradé du haut de page passe dessous. */
.site-header.on-hero { background: transparent; border-bottom-color: transparent; }
.site-header.on-hero .nav-links a { color: #fff; font-weight: 600; }
.site-header.on-hero .logo span b { color: #fff; }
/* Le bloc remonte sous l'en-tête (66 px) pour que le dégradé commence tout en haut de l'écran. */
.vr-hero { position: relative; isolation: isolate; margin-top: -66px; padding: 128px 0 0; text-align: center; overflow: hidden; }
/* Le dégradé : kaki en haut (avant : bleu #4766dc), lueur orange à gauche, plus chaude à droite, qui s'éteint vers le fond. */
.vr-hero::before, .vr-hero::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 900px; z-index: -2; pointer-events: none; }
.vr-hero::before {
  background:
    linear-gradient(180deg, transparent 58%, var(--bg) 92%),
    radial-gradient(44% 40% at 10% 54%, rgba(240, 128, 38, .95) 0%, rgba(227, 113, 52, .5) 45%, transparent 78%),
    radial-gradient(36% 34% at 94% 52%, rgba(205, 120, 70, .6) 0%, transparent 76%),
    radial-gradient(60% 34% at 50% 34%, rgba(236, 212, 155, .38) 0%, transparent 72%),
    linear-gradient(180deg, #5c6a33 0%, #7d8b4a 24%, #6b6545 46%, var(--bg) 82%);
}
/* Le grain (bruit fin) par-dessus le dégradé, dessiné en SVG ici même (aucun fichier à charger). */
.vr-hero::after {
  z-index: -1; opacity: .3; 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 92%); mask-image: linear-gradient(180deg, #000 60%, transparent 92%);
}
/* Apparition en fondu qui glisse de 32 px vers le haut (mêmes réglages que VidRush : 1,5 s, courbe douce).
   --d = délai propre à chaque bloc, pour qu'ils arrivent l'un après l'autre. */
.vr-in { animation: vr-up 1.5s cubic-bezier(.44, 0, .29, .99) var(--d, 0s) both; }
@keyframes vr-up { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
/* La pastille du haut : un message (avec ses propres icônes) qui change toutes les 3 secondes. */
.vr-pill { display: inline-flex; align-items: center; padding: 5px 18px 5px 5px; margin-bottom: 26px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 26px; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.vr-dots { display: flex; }
.vr-dots i { width: 32px; height: 32px; margin-left: -13px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: #2a2a2a; display: grid; place-items: center; font-style: normal; font-size: 1rem; }
.vr-dots i:first-child { margin-left: 0; }
.vr-rot { height: 32px; overflow: hidden; text-align: left; }
.vr-rot ul { list-style: none; margin: 0; padding: 0; animation: vr-rot 9s cubic-bezier(.7, 0, .3, 1) infinite; }
.vr-rot li { display: flex; align-items: center; gap: 12px; height: 32px; font-size: 1rem; font-weight: 600; letter-spacing: -.02em; color: #eee; white-space: nowrap; }
/* Le 4e message est une copie du 1er : le retour au début ne se voit pas. */
@keyframes vr-rot { 0%, 28% { transform: translateY(0); } 33%, 61% { transform: translateY(-32px); } 66%, 94% { transform: translateY(-64px); } 100% { transform: translateY(-96px); } }
/* Le grand titre et le texte d'accroche, centrés. */
.vr-hero h1 { max-width: 1000px; margin: 0 auto 22px; color: #fff; font-size: clamp(2.3rem, 6.2vw, 4.6rem); line-height: 1.08; letter-spacing: -.045em; }
.vr-hero .lead { max-width: 620px; margin: 0 auto 28px; color: #eee; font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.6; }
/* Les 2 boutons (plus compacts que les « grands » boutons du reste du site). */
.vr-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 46px; }
.vr-ctas .btn { padding: 11px 20px; font-size: .95rem; letter-spacing: -.02em; }
.vr-ctas .btn span { font-size: 1.3rem; line-height: .6; }
/* La zone de saisie : cadre gris, champ plus sombre, barre d'outils en dessous. */
.vr-composer { width: min(580px, 100%); margin: 0 auto; padding: 2px; text-align: left; background: #313131; border-radius: 24px; box-shadow: 0 3px 7px rgba(0, 0, 0, .32); }
.vr-composer-in { background: var(--surface); border-radius: 23px; }
.vr-composer input { width: 100%; padding: 22px 20px 38px; background: none; border: 0; outline: none; color: #eee; font-size: .95rem; }
.vr-composer input::placeholder { color: #999; }
.vr-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
/* Le bouton « + » et son petit menu. */
.vr-plus { position: relative; }
.vr-plus summary { list-style: none; width: 34px; height: 34px; border: 1px solid #5a5a5a; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #eee; font-size: 1.3rem; line-height: 1; }
.vr-plus summary::-webkit-details-marker { display: none; }
.vr-plus[open] summary { background: #3a3a3a; }
.vr-menu { position: absolute; left: 0; top: 42px; z-index: 5; display: grid; min-width: 200px; padding: 6px; background: rgba(39, 39, 39, .96); backdrop-filter: blur(8px); border-radius: 10px; box-shadow: 0 6px 14px rgba(0, 0, 0, .4); }
.vr-menu button { padding: 8px 10px; background: none; border: 0; border-radius: 6px; text-align: left; color: #eee; font-size: .88rem; cursor: pointer; }
.vr-menu button:hover { background: #363636; }
/* Le sélecteur (durée), discret, avec une petite flèche. */
.vr-model { margin-left: auto; padding: 6px 24px 6px 8px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 8px; color: #eee; font-size: .8rem; font-weight: 500; cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23eeeeee' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 6px center; }
.vr-model:hover { background-color: #3a3a3a; }
.vr-model option { background: var(--surface); }
/* Le bouton rond bleu « lancer ». */
.vr-send { width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--accent-ink); font-size: 1rem; font-weight: 700; cursor: pointer; box-shadow: 0 2px 6px rgba(201, 168, 95, .5); }
.vr-send:hover { background: var(--primary-2); }
/* La frise de vignettes : règle en pointillés, tête de lecture rouge au centre, 2 rangées qui défilent en sens inverse. */
.vr-strip { position: relative; margin-top: 56px; padding: 44px 0 50px; overflow: hidden; }
.vr-ruler { position: absolute; top: 14px; left: 0; right: 0; height: 2px; background-image: radial-gradient(circle, rgba(255, 255, 255, .4) 1px, transparent 1.6px); background-size: 37px 2px; }
.vr-head { position: absolute; top: 4px; bottom: 30px; left: 50%; z-index: 3; width: 2px; margin-left: -1px; background: #ff4b4b; pointer-events: none; }
.vr-head::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); border: 8px solid transparent; border-top: 12px solid #ff4b4b; border-bottom: 0; }
.vr-row { display: flex; width: max-content; margin-bottom: 12px; animation: vr-scroll 70s linear infinite; }
.vr-row.rev { animation-direction: reverse; }
.vr-strip:hover .vr-row { animation-play-state: paused; }
@keyframes vr-scroll { to { transform: translateX(-50%); } }
/* Une vignette (marge à droite plutôt qu'un « gap » : la boucle tombe juste). */
.vt { position: relative; flex: none; width: 295px; height: 160px; margin-right: 12px; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: #222; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.vt-img { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px; transition: filter .2s; }
.vt-img b { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; text-transform: uppercase; text-shadow: 0 3px 12px rgba(0, 0, 0, .55); }
.vt-dur { position: absolute; right: 10px; bottom: 10px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, .7); font-style: normal; font-size: .72rem; font-weight: 700; }
/* « Voir le sujet » : pastille blanche qui apparaît au survol. */
.vt-view { position: absolute; top: 50%; left: 50%; padding: 5px 14px; border-radius: 999px; background: #fff; color: #000; font-size: .85rem; opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .2s, transform .2s; }
.vt:hover .vt-img { filter: brightness(.65); }
.vt:hover .vt-view { opacity: 1; transform: translate(-50%, -50%) scale(1); }
/* Les couleurs des vignettes (ambiance de chaque sujet). */
.vt-c1 { background: linear-gradient(160deg, #8a7a5c, #3b3a33 60%, #1d1f22); }
.vt-c2 { background: radial-gradient(circle at 74% 32%, #e2e2e2 0 11%, rgba(226, 226, 226, .25) 12%, transparent 22%), linear-gradient(160deg, #0b1430, #020409); }
.vt-c3 { background: linear-gradient(180deg, #4f86cf, #b9cde6 70%, #e6d9c2); }
.vt-c4 { background: linear-gradient(160deg, #c9ccd1, #6b6f76 55%, #4a1c1c); }
.vt-c5 { background: linear-gradient(150deg, #6b6b3a, #2f3320); }
.vt-c6 { background: radial-gradient(circle at 30% 20%, #1e7f8f, #04161d 70%); }
.vt-c7 { background: linear-gradient(170deg, #3f6c9a, #16324f 60%, #0a1624); }
.vt-c8 { background: linear-gradient(150deg, #c46a3a, #5a2516); }
/* Vitrine (2026-11-15) : une carte de la frise joue un VRAI extrait de nos vidéos ; la vidéo remplit la carte, le type
   de vidéo (« BODYCAM », « COMBAT ») est écrit en grand par-dessus, en bas à gauche (style .vt-img b). */
.vt-reel { cursor: default; }
/* (Le nom et la durée sont incrustés dans la vidéo elle-même : rien n'est posé par-dessus en HTML.) */
.vt-reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
/* Téléphone : vignettes plus petites, texte un peu réduit. */
@media (max-width: 600px) {
  .vr-hero { padding-top: 110px; }
  .vr-rot li { font-size: .9rem; }
  .vt { width: 220px; height: 124px; }
  .vt-img b { font-size: 1.45rem; }
}
/* Personnes qui ont demandé moins d'animations : rien ne bouge, la frise se fait défiler à la main. */
@media (prefers-reduced-motion: reduce) {
  .vr-rot ul, .vr-row, .vr-in { animation: none; }
  .vr-strip { overflow-x: auto; }
}

/* ----- ACCUEIL, PARTIES 3 À 5 (Comment ça marche, Cas d'usage, Fonctions) ------------------------- */
/* Espacement des parties et en-tête aligné à gauche (titre) / à droite (texte + lien). */
.vr-sec { padding: 100px 0 80px; }
.vr-head2 { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.vr-head2 h2 { max-width: 640px; margin: 0; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.3; }
.vr-head2-side { max-width: 400px; text-align: right; }
.vr-head2-side p { font-size: .95rem; margin-bottom: 10px; }
.vr-link { color: var(--accent); font-weight: 600; font-size: .9rem; }
.vr-link:hover { color: var(--accent-2); }
/* Apparition au défilement : le bloc est caché et décalé, il glisse en place quand il entre à l'écran (classe « in »). */
.appear { opacity: 0; transform: translateY(32px); transition: opacity 1.5s cubic-bezier(.44, 0, .29, .99) var(--d, 0s), transform 1.5s cubic-bezier(.44, 0, .29, .99) var(--d, 0s); }
.appear.in { opacity: 1; transform: none; }

/* Partie « collée » : textes à gauche qui défilent, scène à droite qui reste à l'écran. */
.vr-scrolly { display: grid; gap: 32px; }
@media (min-width: 900px) { .vr-scrolly { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 56px; } }
.vr-step { min-height: 70vh; padding-top: 20px; opacity: .3; transition: opacity .5s; }
.vr-step:last-child { min-height: 50vh; }
.vr-step.on { opacity: 1; }
.vr-tag { display: inline-block; margin-bottom: 16px; padding: 3px 8px; border-radius: 6px; background: #313131; color: #ccc; font-size: .75rem; font-weight: 600; }
.vr-step h3 { font-size: 2.2rem; margin-bottom: 12px; }
.vr-stage { position: sticky; top: 110px; align-self: start; height: min(520px, 70vh); }
/* Les écrans de la scène sont superposés : seul l'écran actif (« on ») est visible. */
.vr-screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .6s, transform .6s; pointer-events: none; }
.vr-screen.on { opacity: 1; transform: none; }

/* Étape 1 : la demande, entourée d'une lueur orange qui tourne. */
.vr-glow { position: relative; width: min(460px, 100%); padding: 1.5px; overflow: hidden; border-radius: 22px; box-shadow: 0 10px 50px rgba(227, 113, 52, .18); }
.vr-glow::before { content: ''; position: absolute; inset: -60%; background: conic-gradient(from 0deg, transparent 0 60%, #e37134 75%, #ffb27a 80%, transparent 90%); animation: vr-turn 4s linear infinite; }
@keyframes vr-turn { to { transform: rotate(360deg); } }
.vr-mini-comp { position: relative; overflow: hidden; background: #313131; border-radius: 21px; }
.vr-brief { margin: 0; padding: 18px; background: var(--surface); border-radius: 20px; color: #ccc; font-size: .85rem; line-height: 1.8; }
/* Le curseur de saisie qui clignote à la fin du texte. */
.vr-brief::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: #eee; animation: vr-blink 1s steps(1) infinite; }
@keyframes vr-blink { 50% { opacity: 0; } }
/* Les mots surlignés en couleur. */
.chip { padding: 1px 6px; border-radius: 5px; color: #fff; font-weight: 600; }
.chip.o { background: #e8590c; } .chip.g { background: #2f9e44; } .chip.b { background: #3b6fe0; }
.vr-dot-btn { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #5a5a5a; border-radius: 50%; color: #eee; }
.vr-model-txt { margin-left: auto; color: #eee; font-size: .75rem; }
.vr-menu-static { position: static; width: min(460px, 100%); padding: 0; background: none; box-shadow: none; backdrop-filter: none; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.vr-menu-static span { padding: 6px 12px; border-radius: 8px; background: rgba(39, 39, 39, .95); color: #ccc; font-size: .78rem; }

/* Étape 2 : la fabrication (liste de tâches qui défile, pastille au centre, vignettes qui montent). */
.vr-make { position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: 1fr 120px; gap: 24px; }
.vr-tasks, .vr-col { height: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); }
.vr-tasks ul { list-style: none; margin: 0; padding: 0; animation: vr-upscroll 16s linear infinite; }
.vr-tasks li { display: flex; align-items: center; gap: 10px; height: 54px; color: var(--muted); font-size: .82rem; }
.vr-tasks li i { font-style: normal; color: #777; }
@keyframes vr-upscroll { to { transform: translateY(-50%); } }
.vr-make-pill { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: min(340px, calc(100% - 150px)); display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; background: var(--surface); border: 1px solid #3a3a3a; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); color: #eee; font-size: .82rem; }
.vr-make-pill span:first-of-type { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vr-make-pill .vr-send, .vr-cycle .vr-send { width: 28px; height: 28px; font-size: .85rem; }
.vr-spin { width: 14px; height: 14px; flex: none; border: 2px solid #888; border-top-color: transparent; border-radius: 50%; animation: st-spin .8s linear infinite; }
.vr-col > div { display: grid; gap: 10px; animation: vr-upscroll 14s linear infinite; }
.vr-mini { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 8px; font-style: normal; }
.vr-mini span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: .6rem; }

/* Étape 3 : le faux logiciel de montage. */
.vr-editor { width: 100%; overflow: hidden; background: #202020; border: 1px solid #2e2e2e; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 60px rgba(201, 168, 95, .08); }
.vr-ed-top { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid #2e2e2e; font-size: .75rem; }
.vr-ed-top b { margin: 0 auto; color: #ccc; font-weight: 600; }
.vr-dots3 { display: flex; gap: 5px; }
.vr-dots3 i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.vr-dots3 i:nth-child(2) { background: #febc2e; } .vr-dots3 i:nth-child(3) { background: #28c840; }
.vr-ed-btn { padding: 4px 10px; border-radius: 6px; background: var(--primary); color: var(--accent-ink); font-size: .7rem; font-weight: 600; }
.vr-ed-body { display: grid; grid-template-columns: 1fr 150px; gap: 10px; padding: 10px; }
.vr-ed-prev { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; }
.vr-ed-sub { position: absolute; left: 50%; bottom: 10%; transform: translateX(-50%); padding: 3px 8px; border-radius: 4px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.vr-ed-side { padding: 10px; background: #272727; border-radius: 8px; font-size: .72rem; }
.vr-ed-side b { display: block; margin-bottom: 8px; color: #eee; }
.vr-ed-side ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.vr-ed-side li.ok { color: var(--success); }
.vr-ed-side li.run { color: var(--accent); animation: st-pulse 1.4s ease-in-out infinite; }
.vr-ed-side small { display: block; color: #888; font-size: .66rem; line-height: 1.4; }
/* Les pistes de la timeline (vidéo, voix, sous-titres) et la tête de lecture rouge qui avance. */
.vr-ed-tl { position: relative; display: grid; gap: 5px; padding: 8px 10px 12px; border-top: 1px solid #2e2e2e; }
.vr-trk { display: flex; gap: 3px; height: 22px; }
.vr-trk.v i { flex: 1; border-radius: 4px; }
.vr-trk.a { overflow: hidden; background: #1b2a4a; border-radius: 4px; }
.vr-trk.s i { flex: 1; align-self: center; height: 14px; background: #333; border-left: 2px solid var(--accent); border-radius: 3px; }
.vr-wave { display: flex; align-items: center; gap: 2px; width: 100%; height: 100%; padding: 0 4px; }
.vr-wave i { flex: 1; min-width: 1px; border-radius: 1px; background: var(--accent-2); opacity: .8; }
.vr-ph { position: absolute; top: 0; bottom: 0; left: 10px; width: 2px; background: #ff4b4b; box-shadow: 0 0 6px #ff4b4b; animation: vr-play 8s linear infinite; pointer-events: none; }
.vr-ph::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top: 7px solid #ff4b4b; border-bottom: 0; }
@keyframes vr-play { from { left: 10px; } to { left: calc(100% - 12px); } }

/* Cas d'usage : colonne de cartes (la carte active a une barre bleue), fausse vidéo + timeline à droite. */
.vr-uc-list { display: grid; }
.vr-uc-card { min-height: 300px; padding: 28px 22px; background: var(--surface); border-left: 3px solid transparent; opacity: .55; transition: opacity .5s, background .5s, border-color .5s; }
.vr-uc-card:first-child { border-top-right-radius: 24px; border-top-left-radius: 8px; }
.vr-uc-card:last-child { border-bottom-right-radius: 24px; border-bottom-left-radius: 8px; }
.vr-uc-card.on { opacity: 1; border-left-color: var(--primary); background: linear-gradient(90deg, #232a3a, var(--surface)); }
.vr-uc-card h3 { font-size: 1.3rem; }
.vr-uc-card p { font-size: .88rem; }
.vr-uc .vr-stage { height: auto; display: grid; gap: 12px; }
.vr-player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #111; }
.vr-pv { overflow: hidden; }
/* Effet « Ken Burns » : l'image zoome lentement pendant qu'elle est à l'écran. */
.vr-pv.on { animation: vr-kb 9s ease-in-out infinite alternate; }
@keyframes vr-kb { from { transform: scale(1); } to { transform: scale(1.1); } }
.vr-pv::after { content: ''; position: absolute; inset: 0; background: radial-gradient(transparent 50%, rgba(0, 0, 0, .45)); }
.vr-pv-in { position: relative; z-index: 1; text-align: center; color: #fff; }
.vr-pv-in b { display: block; font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.vr-pv-in small { font-size: 1rem; font-weight: 600; opacity: .9; }
.vr-uc-tl { position: relative; display: grid; gap: 6px; }
.vr-trk.lab i { flex: 1; padding: 3px 8px; border-radius: 6px; background: var(--surface); color: #777; font-size: .65rem; font-style: normal; }
.vr-trk.clips { height: 40px; }
.vr-trk.clips i { flex: 1; border-radius: 8px; background-color: #272727; opacity: .25; transition: opacity .4s, box-shadow .4s; }
.vr-trk.clips i.on { opacity: 1; box-shadow: 0 0 0 2px var(--primary); }
/* La tête de lecture se place sur le clip de la carte active (--a = numéro de la carte). */
.vr-uc-tl .vr-ph { animation: none; left: calc((var(--a, 0) + .5) * 20%); transition: left .8s ease; }

/* Fonctions : 3 cartes puis 2 cartes larges, chacune avec sa petite animation en bas. */
.vr-feats { display: grid; gap: 20px; }
@media (min-width: 900px) { .vr-feats { grid-template-columns: repeat(6, 1fr); } .vr-f { grid-column: span 2; } .vr-f.wide { grid-column: span 3; } }
.vr-f { display: flex; flex-direction: column; min-height: 440px; padding: 24px; overflow: hidden; background: var(--surface); border-radius: 28px; }
.vr-f h3 { font-size: 1.1rem; margin-bottom: 6px; }
.vr-f p { font-size: .85rem; color: var(--muted); }
.vr-fm { position: relative; margin-top: auto; min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 10px; }
/* 1) Sous-titres : le style du sous-titre change en même temps que le choix de la pastille. */
.vr-frames { display: flex; width: 100%; height: 58px; overflow: hidden; border: 2px solid #eee; border-radius: 8px; }
.vr-frames i { flex: 1; display: grid; place-items: end center; font-style: normal; }
.vr-frames em { margin-bottom: 6px; padding: 1px 5px; border-radius: 3px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .65rem; font-weight: 700; font-style: normal; animation: vr-substyle 6s steps(1) infinite; }
@keyframes vr-substyle { 50% { background: #ffd43b; color: #111; } }
.vr-wave.sand { height: 40px; padding: 4px 6px; background: #efdcb0; border-radius: 6px; }
.vr-wave.sand i { background: #b8935a; }
.vr-cycle { position: relative; width: 100%; display: flex; align-items: center; gap: 8px; height: 44px; padding: 6px 6px 6px 14px; background: #2a2a2a; border-radius: 999px; }
.vr-cyc-win { flex: 1; height: 20px; overflow: hidden; }
.vr-cycle ul { margin: 0; padding: 0; list-style: none; animation: vr-cyc 6s cubic-bezier(.7, 0, .3, 1) infinite; }
.vr-cycle li { height: 20px; line-height: 20px; color: #eee; font-size: .82rem; }
@keyframes vr-cyc { 0%, 45% { transform: translateY(0); } 50%, 95% { transform: translateY(-20px); } 100% { transform: translateY(-40px); } }
/* L'étiquette orange « Vous » (le faux curseur de la personne). */
.vr-you { position: absolute; right: 2px; bottom: -2px; padding: 2px 8px; border-radius: 999px; background: #e8590c; color: #fff; font-size: .65rem; font-weight: 700; font-style: normal; animation: vr-click 3s ease-in-out infinite; }
@keyframes vr-click { 0%, 100% { transform: translate(0, 0); } 45% { transform: translate(-6px, -6px); } 50% { transform: translate(-6px, -6px) scale(.9); } }
/* 2) Votre script, votre voix : les fichiers se cochent l'un après l'autre. */
.vr-files { width: 100%; display: grid; gap: 10px; }
.vr-files > div { display: grid; grid-template-columns: auto 1fr auto; column-gap: 10px; align-items: center; padding: 10px 12px; background: #272727; border-radius: 12px; }
.vr-files span { grid-row: span 2; font-size: 1.2rem; }
.vr-files b { font-family: var(--font-mono); font-size: .8rem; font-weight: 400; }
.vr-files em { grid-column: 2; color: var(--muted); font-size: .72rem; font-style: normal; }
.vr-files i { grid-row: 1 / span 2; grid-column: 3; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(76, 195, 138, .18); color: var(--success); font-size: .75rem; font-style: normal; animation: vr-pop 4s ease-out infinite; }
.vr-files > div:nth-child(2) i { animation-delay: 1s; }
@keyframes vr-pop { 0%, 15% { transform: scale(0); opacity: 0; } 25%, 90% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
/* 3) Plan validé : panneau en perspective, la ligne en cours s'éclaire tour à tour. */
.vr-3d { width: 100%; perspective: 700px; }
.vr-3d-in { display: grid; gap: 6px; padding: 12px; background: #272727; border: 1px solid #333; border-radius: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); transform: rotateX(22deg) rotateY(-16deg) rotateZ(4deg); animation: vr-tilt 6s ease-in-out infinite alternate; }
@keyframes vr-tilt { to { transform: rotateX(12deg) rotateY(-6deg) rotateZ(2deg); } }
.vr-3d-in > div { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 6px; background: #2f2f2f; color: #ccc; font-size: .8rem; animation: vr-hl 6s infinite; }
.vr-3d-in > div:nth-child(2) { animation-delay: 2s; } .vr-3d-in > div:nth-child(3) { animation-delay: 4s; }
.vr-3d-in > div i { color: var(--success); font-style: normal; }
.vr-3d-in > div.cost { background: none; color: #aaa; animation: none; }
.vr-3d-in > div.cost b { color: var(--accent); }
.vr-3d-in .vr-ed-btn { justify-self: end; }
@keyframes vr-hl { 0%, 30% { background: #4a4230; color: #fff; } 34%, 100% { background: #2f2f2f; } }
/* 4) Aucun plan répété : le curseur « Vous » glisse un nouveau plan dans la timeline. */
.vr-dragtl { position: relative; width: 100%; padding: 34px 0 10px; }
.vr-dragtl .vr-trk { height: 50px; }
.vr-dragtl .vr-trk i { position: relative; flex: 1; display: grid; place-items: end start; border-radius: 6px; }
.vr-dragtl em, .vr-credits em { margin: 4px; padding: 0 4px; border-radius: 3px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .62rem; font-style: normal; }
.vr-drag { position: absolute; top: 0; left: 70%; width: 16%; height: 50px; border-radius: 6px; box-shadow: 0 10px 24px rgba(0, 0, 0, .6), 0 0 0 2px var(--primary); animation: vr-dragmove 5s ease-in-out infinite; }
.vr-drag .vr-you { right: -18px; bottom: -14px; animation: none; }
@keyframes vr-dragmove { 0%, 10% { left: 70%; top: -14px; opacity: 0; } 20% { opacity: 1; } 60% { left: 34%; top: -14px; } 75%, 90% { left: 34%; top: 34px; opacity: 1; } 100% { left: 34%; top: 34px; opacity: 0; } }
.vr-badge { position: absolute; top: 0; right: 0; padding: 3px 9px; border-radius: 999px; background: rgba(76, 195, 138, .12); color: var(--success); font-size: .72rem; }
.vr-dragtl .vr-ph { top: 28px; animation-duration: 10s; }
/* 5) Contrôle des sources : interrupteurs (le dernier s'allume et s'éteint) et vignettes créditées qui défilent. */
.vr-win { width: min(320px, 100%); overflow: hidden; background: #272727; border: 1px solid #333; border-radius: 12px; }
.vr-win label { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-top: 1px solid #303030; color: #ccc; font-size: .78rem; }
.vr-win s { position: relative; width: 30px; height: 17px; border-radius: 999px; background: #555; }
.vr-win s::after { content: ''; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; }
.vr-win s.on { background: var(--primary); }
.vr-win s.on::after { left: 15px; }
.vr-win s.blink { animation: vr-tg 4s steps(1) infinite; }
.vr-win s.blink::after { animation: vr-tgk 4s steps(1) infinite; }
@keyframes vr-tg { 50% { background: var(--primary); } }
@keyframes vr-tgk { 50% { left: 15px; } }
/* contain: paint (2026-11-15) : Safari sur iPhone ne coupait pas la bande qui défile (masque de fondu + défilement) ;
   elle élargissait la page à ~457 px, le site glissait sur le côté et le menu tombait dans une zone noire. */
.vr-credits { width: 100%; overflow: hidden; contain: paint; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.vr-credits > div { display: flex; width: max-content; animation: vr-scroll 20s linear infinite; }
.vr-credits i { width: 90px; height: 52px; margin-right: 8px; display: grid; place-items: end start; border-radius: 6px; }
.vr-credit-txt { color: var(--success); font-size: .72rem; }

/* Téléphone et tablette : une seule colonne ; la scène reste collée en haut au-dessus des textes. */
@media (max-width: 899px) {
  .vr-head2-side { text-align: left; }
  .vr-stage { order: -1; top: 70px; z-index: 3; height: 300px; background: var(--bg); }
  .vr-uc .vr-stage { height: auto; padding-bottom: 8px; }
  .vr-step { min-height: 55vh; }
  .vr-uc-card { min-height: 240px; }
  .vr-ed-body { grid-template-columns: 1fr; }
  .vr-ed-side { display: none; }
  .vr-make { grid-template-columns: 1fr 80px; }
  .vr-make-pill { width: calc(100% - 100px); }
}
/* ----- ACCUEIL, PARTIES 6 À 11 (avis, sources, appel final, FAQ, bas de page) ---------------------- */
/* Avis : chiffres clés sous le texte de droite, puis grille « en briques » (colonnes) de cartes. */
.vr-stats { display: flex; justify-content: flex-end; gap: 28px; margin-top: 14px; }
.vr-stats div { display: grid; text-align: left; }
.vr-stats b { color: #fff; font-size: 1rem; }
.vr-stats span { color: var(--muted); font-size: .72rem; }
.vr-wall { columns: 3 280px; column-gap: 20px; }
.vr-card { display: block; width: 100%; margin-bottom: 20px; padding: 22px; break-inside: avoid; border: 0; border-radius: 24px; color: inherit; font: inherit; text-align: left; }
.vr-card:not(.vr-card-vid) { background: var(--surface); }
.vr-who { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: #ccc; font-size: .78rem; font-weight: 600; }
.vr-ghost { width: 28px; height: 28px; border: 1.5px dashed #555; border-radius: 50%; }
.vr-card h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.4; }
.vr-card p { font-size: .85rem; }
/* Carte « vidéo » : vignette cliquable (remplit la zone de saisie du haut avec ce sujet). */
.vr-card-vid { position: relative; aspect-ratio: 16 / 10; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; overflow: hidden; color: #fff; cursor: pointer; }
.vr-card-vid b { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; text-transform: uppercase; text-shadow: 0 3px 12px rgba(0, 0, 0, .55); }
.vr-card-vid small { margin-top: 4px; font-size: .72rem; opacity: .85; }
.vr-play { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .55); font-size: 1rem; transform: translate(-50%, -50%); transition: transform .2s; }
.vr-card-vid:hover .vr-play { transform: translate(-50%, -50%) scale(1.12); }

/* Sources : bandeau dégradé (bordure orange à gauche), lignes pointillées qui avancent. */
.vr-src { position: relative; display: grid; gap: 20px; align-items: center; min-height: 320px; padding: 24px; overflow: hidden; border-left: 4px solid #e37134; border-radius: 24px;
  background: radial-gradient(60% 90% at 100% 0%, #4766dc, transparent 70%), radial-gradient(50% 80% at 0% 100%, rgba(227, 113, 52, .55), transparent 70%), linear-gradient(120deg, #2a2f45, #1c2033); }
@media (min-width: 900px) { .vr-src { grid-template-columns: 260px 1fr 1.2fr; } }
.vr-src-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.vr-src-lines path { fill: none; stroke: rgba(255, 255, 255, .25); stroke-width: 1.2; stroke-dasharray: 6 10; animation: vr-dash 6s linear infinite; }
@keyframes vr-dash { to { stroke-dashoffset: -160; } }
.vr-src > div { position: relative; }
.vr-src-lib { padding: 14px; background: var(--surface); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.vr-src-lib b { display: block; font-size: .85rem; }
.vr-src-badges { display: flex; gap: 8px; margin: 6px 0 10px; color: #aaa; font-size: .68rem; }
.vr-src-badges i { font-style: normal; }
.vr-src-files { height: 150px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); }
.vr-src-files > div { animation: vr-upscroll 12s linear infinite; }
.vr-src-files p { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: #ccc; font-family: var(--font-mono); font-size: .7rem; }
.vr-src-files p i { flex: none; width: 34px; height: 22px; border-radius: 4px; }
.vr-src-steps { justify-self: center; display: grid; gap: 8px; padding: 12px 14px; background: rgba(31, 31, 31, .92); border-radius: 12px; font-size: .78rem; }
.vr-src-steps p { display: flex; align-items: center; gap: 8px; margin: 0; color: #888; }
.vr-src-steps .ok { color: var(--success); }
.vr-src-steps .run { color: #fff; }
.vr-src-prev { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: vr-kb 9s ease-in-out infinite alternate; }
.vr-src-foot { display: grid; gap: 24px; margin-top: 28px; }
@media (min-width: 900px) { .vr-src-foot { grid-template-columns: 1fr 260px; } }
.vr-src-foot p { max-width: 620px; }
.vr-src-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.vr-src-tags span { padding: 8px 14px; border-radius: 10px; background: var(--surface); color: #ccc; font-size: .82rem; }
.vr-src-for { display: grid; gap: 8px; padding-left: 20px; border-left: 1px solid var(--border); color: var(--text-2); font-size: .85rem; }
.vr-src-for b { color: #fff; }

/* Appel final : pyramide de vignettes qui apparaissent l'une après l'autre au-dessus du titre. */
.vr-cta { text-align: center; }
.vr-pyr { position: relative; max-width: 520px; height: 225px; margin: 0 auto 30px; }
.vr-pyr i { position: absolute; width: 17%; margin-left: -8.5%; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.vr-cta h2 { margin-bottom: 28px; font-size: clamp(2rem, 4vw, 2.75rem); }
.vr-cta .vr-composer { margin-bottom: 20px; }

/* FAQ : grande carte avec une lueur brune à gauche, questions à droite (point + chevron qui tourne). */
.vr-faq { display: grid; gap: 30px; padding: 40px; border-radius: 28px; background: radial-gradient(60% 90% at 0% 60%, rgba(140, 80, 40, .45), transparent 70%), var(--surface); }
@media (min-width: 900px) { .vr-faq { grid-template-columns: 1fr 1.3fr; align-items: start; } }
@media (max-width: 600px) { .vr-faq { padding: 26px 18px; } }
.vr-faq h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); line-height: 1.25; }
.vr-faq .faq { max-width: none; margin: 0; }
.vr-faq .faq details { background: #272727; border: 0; border-radius: 12px; }
.vr-faq .faq summary { justify-content: flex-start; align-items: center; font-size: .9rem; }
.vr-faq .faq summary::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%; background: #888; }
.vr-faq .faq summary::after { content: ''; flex: none; width: 7px; height: 7px; margin-left: auto; border-right: 2px solid #aaa; border-bottom: 2px solid #aaa; transform: rotate(45deg); transition: transform .25s; }
.vr-faq .faq details[open] summary::after { content: ''; transform: rotate(-135deg); }

/* Bas de page : timeline décorative en haut, bouton blanc, grand nom en contour coupé par le bas. */
.site-footer { overflow: hidden; }
.foot-tl { display: grid; gap: 6px; margin-bottom: 40px; }
.foot-tl div { display: flex; gap: 6px; }
.foot-tl i { flex: 1; height: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.foot-tl div + div i { height: 26px; }
/* (« .footer-grid a » met tous les liens en bloc : le logo et le bouton gardent leur propre forme.) */
.footer-grid a.logo { display: flex; }
.footer-grid a.foot-cta { display: inline-flex; margin-top: 6px; padding: 7px 13px; background: #fff; color: #111; }
.footer-grid a.foot-cta:hover { background: #ddd; color: #111; }
.foot-giant { height: .55em; margin-top: 30px; overflow: hidden; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .18); font-family: var(--font-head); font-size: clamp(5rem, 22vw, 20rem); font-weight: 800; letter-spacing: -.04em; line-height: .8; text-align: center; user-select: none; }

/* Personnes qui ont demandé moins d'animations : tout est affiché directement, rien ne bouge. */
@media (prefers-reduced-motion: reduce) {
  .vr-sec *, .vr-sec *::before, .vr-sec *::after { animation: none !important; }
  .appear { opacity: 1; transform: none; transition: none; }
}

/* Le faux lecteur vidéo de démonstration (maquette, pas une vraie vidéo). */
/* Lecteur de démo (maquette) */
.player {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.75)),
    linear-gradient(135deg, #1f1f1f 0%, #121212 45%, #1b2440 100%);
}
/* Effet de lignes d'écran ancien sur le lecteur. */
.player::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px);
  mix-blend-mode: multiply;
}
/* Étiquette en haut à gauche du lecteur (avec un point rouge « enregistrement »). */
.player-tag { position: absolute; top: 14px; left: 14px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.15); padding: 4px 9px; border-radius: 4px; text-transform: uppercase; }
.player-tag.rec::before { content: '●'; color: var(--danger); margin-right: 6px; }
/* Le gros bouton « lecture » rond et bleu, au centre. */
.player-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--accent); border: 0; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(217, 191, 134,.18);
}
/* Le triangle blanc de lecture. */
.player-play::after { content: ''; border-left: 22px solid var(--accent-ink); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
/* Le sous-titre de démonstration. */
.player-caption { position: absolute; left: 0; right: 0; bottom: 46px; text-align: center; font-weight: 700; font-size: clamp(.95rem, 2vw, 1.2rem); text-shadow: 0 2px 6px #000; padding: 0 20px; }
/* La barre de progression du lecteur. */
.player-bar { position: absolute; left: 14px; right: 14px; bottom: 16px; height: 4px; background: rgba(255,255,255,.18); border-radius: 4px; }
.player-bar i { display: block; width: 38%; height: 100%; background: var(--accent); border-radius: 4px; }

/* Les 3 ÉTAPES « Comment ça marche » (numérotées automatiquement 01, 02, 03). */
/* Étapes */
.steps { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before {
  counter-increment: step; content: '0' counter(step);
  font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--accent); opacity: .9; display: block; margin-bottom: 8px;
}
.step p { margin: 0; }
/* Étiquette « bientôt ». */
.tag-soon { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); border: 1px solid var(--accent); padding: 2px 7px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }

/* Les GRILLES DE CARTES (1 colonne sur téléphone, 2, 3 ou 4 sur ordinateur). */
/* Grilles de cartes */
.cards { display: grid; gap: 18px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .cards.c4 { grid-template-columns: repeat(4, 1fr); } .cards.c3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
/* Le carré d'icône en haut d'une carte. */
.card .icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-strong);
  display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 16px;
}
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--text-2); font-size: .93rem; }
/* Cartes d'exemples d'utilisation, avec une vignette. */
.usecase { overflow: hidden; padding: 0; }
.usecase .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--surface-2), #242424); position: relative; display: grid; place-items: center; font-size: 2.4rem; }
.usecase .thumb small { position: absolute; bottom: 10px; right: 10px; font-size: .72rem; background: rgba(0,0,0,.6); padding: 2px 7px; border-radius: 4px; font-family: var(--font-body); }
.usecase .body { padding: 20px; }

/* Le bloc « Clés perso » (qui paie quoi) : tableau et pastilles de couleur. */
/* Bloc « Clés perso » */
.byok { display: grid; gap: 30px; align-items: center; }
@media (min-width: 960px) { .byok { grid-template-columns: 1fr 1fr; } }
.who-pays { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.who-pays th, .who-pays td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.who-pays th { font-family: var(--font-body); font-weight: 600; font-size: .8rem; color: var(--muted); background: var(--surface-2); }
.who-pays tr:last-child td { border-bottom: 0; }
/* Pastilles : « vous » (bleu), « nous » (bleu vif), ok (vert), erreur (rouge), inactif (gris). */
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pill.you { background: rgba(217, 191, 134,.15); color: var(--accent); }
.pill.us { background: rgba(0,153,255,.25); color: #8fb3ff; }
.pill.ok { background: rgba(111,191,115,.15); color: var(--success); }
.pill.err { background: rgba(226,87,76,.15); color: var(--danger); }
.pill.idle { background: var(--surface-2); color: var(--muted); }

/* Bloc « Premiers témoignages » (encadré en pointillés en attendant de vrais avis). */
/* Témoignages (vides) */
.early { text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 40px 22px; max-width: 760px; margin: 0 auto; }

/* Les TARIFS : bouton mensuel/annuel, cartes des formules, prix, liste des avantages. */
/* Tarifs */
.billing-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin-bottom: 34px; }
.billing-toggle button { background: none; border: 0; padding: 8px 18px; border-radius: 999px; cursor: pointer; color: var(--text-2); font-weight: 600; font-size: .9rem; }
.billing-toggle button.on { background: var(--accent); color: var(--accent-ink); }
.plans { display: grid; gap: 20px; max-width: 900px; margin: 0 auto; }
/* Une seule formule (2026-11-15) : la carte centrée, pas étirée sur toute la largeur. */
.plans.one { grid-template-columns: minmax(0, 460px) !important; justify-content: center; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; position: relative; }
/* La formule mise en avant : bordure bleue. */
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
/* Le badge « recommandé ». */
.plan .badge { position: absolute; top: -12px; left: 30px; background: var(--accent); color: var(--accent-ink); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; }
/* Le prix en grand. */
.plan .price { font-family: var(--font-head); font-size: 3.2rem; line-height: 1; margin: 10px 0 4px; }
.plan .price small { font-family: var(--font-body); font-size: .95rem; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; color: var(--text-2); font-size: .95rem; }
.plan li::before { content: '✓'; color: var(--accent); font-weight: 700; margin-right: 9px; }
.plan li.off { color: var(--muted); }
.plan li.off::before { content: '–'; color: var(--muted); }
.plan .btn { margin-top: auto; }
.plan.disabled { opacity: .7; }
.pay-note { text-align: center; font-size: .86rem; color: var(--muted); margin-top: 22px; }

/* La FAQ (questions qui s'ouvrent au clic, avec + et –). */
/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding-bottom: 18px; margin: 0; }

/* Le bloc final « Lancez-vous ». */
/* Appel final */
.cta-final { text-align: center; padding: 70px 22px; border-radius: 18px; background: linear-gradient(135deg, #1a1f2e, #1a1e17 60%, #141b30); border: 1px solid var(--border-strong); }

/* LE PIED DE PAGE (liens, lettre d'information, mentions). */
/* ---------------------------------------------------------------- Pied de page */
.site-footer { border-top: 1px solid var(--border); padding: 54px 0 30px; background: var(--bg-2); }
.footer-grid { display: grid; gap: 30px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; } }
.footer-grid h4 { font-size: .9rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.footer-grid a { display: block; color: var(--text-2); padding: 3px 0; font-size: .93rem; }
.footer-grid a:hover { color: var(--accent); }
.newsletter { display: flex; gap: 8px; margin-top: 8px; }
.newsletter input { flex: 1; min-width: 0; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .84rem; color: var(--muted); }

/* LES FORMULAIRES (champs, listes, cases à cocher, messages). */
/* ---------------------------------------------------------------- Formulaires */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-size: .86rem; font-weight: 600; color: var(--text-2); }
/* Les champs de saisie : fond sombre, bordure, coins arrondis. */
.input, select.input, textarea.input {
  width: 100%;
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 11px 13px; outline: none; transition: border-color .15s;
}
/* Champ sélectionné : bordure bleue. */
.input:focus { border-color: var(--accent); }
/* Grandes zones de texte (script) : redimensionnables en hauteur. */
textarea.input { min-height: 140px; resize: vertical; line-height: 1.5; }
/* Petit texte d'aide sous un champ. */
.hint { font-size: .8rem; color: var(--muted); }
/* Lignes de 2 ou 3 champs côte à côte (sur écran assez large). */
.row { display: grid; gap: 14px; }
@media (min-width: 640px) { .row.r2 { grid-template-columns: 1fr 1fr; } .row.r3 { grid-template-columns: repeat(3, 1fr); } }
/* Groupes de boutons à choix (ex. 9:16 / 16:9 / 1:1). */
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button { background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 8px 14px; cursor: pointer; font-size: .9rem; color: var(--text-2); }
/* Choix sélectionné : en bleu. */
.seg button.on { border-color: var(--accent); color: var(--accent); background: rgba(217, 191, 134,.08); }
/* Case à cocher avec son texte. */
.check { display: flex; gap: 10px; align-items: center; font-size: .92rem; color: var(--text-2); cursor: pointer; }
.check input { accent-color: var(--accent); width: 17px; height: 17px; }
/* Compteur de caractères du script. */
.counter { font-size: .8rem; color: var(--muted); text-align: right; }
/* Compteur en rouge quand le script est trop long. */
.counter.over { color: var(--danger); font-weight: 700; }
/* Messages encadrés : avertissement, information, erreur, réussite. */
.alert { border-radius: var(--radius-sm); padding: 12px 14px; font-size: .9rem; border: 1px solid; margin-bottom: 16px; }
.alert.warn { background: rgba(217, 191, 134,.08); border-color: rgba(217, 191, 134,.4); color: var(--accent-2); }
.alert.info { background: rgba(106,167,216,.08); border-color: rgba(106,167,216,.35); color: #9cc9ff; }
.alert.err { background: rgba(226,87,76,.08); border-color: rgba(226,87,76,.4); color: #f0a49d; }
.alert.ok { background: rgba(111,191,115,.08); border-color: rgba(111,191,115,.4); color: #a9dcab; }

/* Pages de connexion et d'inscription (carte centrée). */
/* Authentification */
.auth-wrap { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px 26px; }
.auth-card h1 { font-size: 1.9rem; }
/* Connexion / inscription façon VidRush : page seule, lueur orange en haut à gauche avec du grain,
   contenu centré, mentions légales poussées en bas de l'écran. */
.auth-vr { position: relative; isolation: isolate; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 0 16px 28px; overflow: hidden; text-align: center; }
.auth-vr::before, .auth-vr::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.auth-vr::before { background: radial-gradient(45% 55% at 0% 10%, rgba(240, 140, 40, .8) 0%, rgba(170, 85, 20, .4) 45%, transparent 78%); }
.auth-vr::after { opacity: .3; 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(60% 70% at 0% 10%, #000, transparent); mask-image: radial-gradient(60% 70% at 0% 10%, #000, transparent); }
.auth-main { width: min(420px, 100%); margin: auto 0; padding-top: 60px; animation: vr-up 1.2s cubic-bezier(.44, 0, .29, .99) both; }
.auth-logo { justify-content: center; gap: 14px; margin-bottom: 56px; font-size: 2.6rem; }
.auth-logo .logo-mark { width: 50px; height: 50px; border-radius: 11px; font-size: 1.6rem; }
.auth-vr h1 { margin-bottom: 12px; font-size: 1.9rem; }
.auth-sub { margin-bottom: 30px; color: #eee; }
/* Le gros bouton bleu « Continuer avec Google », avec le G officiel dans un rond blanc. */
.auth-google { width: 100%; gap: 12px; padding: 14px 20px; border-radius: 14px; font-size: 1.05rem; }
.g-ic { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #fff; }
.auth-form { text-align: left; }
.auth-switch { margin: 18px 0 0; font-size: .92rem; }
.auth-switch a { color: var(--accent); font-weight: 600; }
.auth-legal { max-width: 720px; margin: 40px 0 0; color: #ddd; font-size: .88rem; line-height: 1.5; }
.auth-legal a { color: var(--accent); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .auth-main { animation: none; } }

/* Écran d'accueil « Quel est votre prénom ? » : carte centrée, lueur bleue en bas à gauche, orange en haut à droite. */
.ob-vr { min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(40% 50% at 0% 100%, rgba(59, 90, 180, .22), transparent 70%), radial-gradient(35% 45% at 100% 0%, rgba(180, 90, 30, .22), transparent 70%), var(--bg); }
.ob-card { width: min(560px, 100%); padding: 30px; background: #1b1b1b; border: 1px solid #2c2c2c; border-radius: 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); animation: vr-up 1s cubic-bezier(.44, 0, .29, .99) both; }
.ob-card h1 { margin-bottom: 44px; font-size: 1.75rem; }
.ob-card label { display: block; margin-bottom: 8px; color: #ddd; font-size: .95rem; }
.ob-card .input { padding: 16px; border-radius: 14px; background: #1b1b1b; font-size: 1rem; }
.ob-card .input:focus { border-color: #3b5bd0; box-shadow: 0 0 0 2px rgba(59, 91, 208, .45); }
.ob-card .btn { margin-top: 30px; padding: 16px; border-radius: 14px; font-size: 1.05rem; transition: opacity .2s, background .15s; }
/* Champ vide → bouton pâle et non cliquable (comme VidRush). */
.ob-card:has(.input:placeholder-shown) .btn { opacity: .5; pointer-events: none; }
/* Écran n° 2 : carte plus large, étiquettes à choix unique, « Retour » à gauche et « Continuer » à droite. */
.ob-card.wide { width: min(940px, 100%); }
.ob-card.wide h1 { margin-bottom: 14px; }
.ob-sub { max-width: 500px; margin-bottom: 40px; color: #bbb; }
.ob-chips { display: flex; flex-wrap: wrap; gap: 14px; }
.ob-chip { position: relative; }
/* Le vrai bouton radio est invisible : on ne voit que l'étiquette (accessible au clavier). */
.ob-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ob-chip span { display: inline-block; padding: 12px 16px; border: 1px solid #333; border-radius: 12px; background: #262626; color: #eee; font-size: .98rem; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.ob-chip:hover span { border-color: #4a4a4a; }
.ob-chip input:checked + span { border-color: var(--primary); background: rgba(201, 168, 95, .18); color: #fff; }
.ob-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ob-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 40px; }
.ob-back { display: inline-flex; gap: 10px; padding: 8px 12px; border-radius: 10px; font-weight: 600; }
.ob-back:hover { background: #262626; }
.ob-card .ob-next { margin-top: 0; padding: 12px 20px; font-size: 1rem; }
/* Rien de choisi → « Continuer » pâle et non cliquable (écrans à étiquettes : aucune cochée ; écran n° 3 : niche vide). */
.ob-card.chips:not(:has(input:checked)) .ob-next, .ob-card:has(input[name="niche"][value=""]) .ob-next { opacity: .5; pointer-events: none; }
/* Écran n° 4 (budget) : carte moyenne, grand « $ » fin au-dessus du titre. */
.ob-card.mid { width: min(640px, 100%); }
.ob-icon { display: block; margin-bottom: 12px; color: #eee; font-size: 2.4rem; font-weight: 300; line-height: 1; }
.ob-card.mid h1 { margin-bottom: 28px; line-height: 1.4; }
/* Dernier écran : « Dernière question ! » en grand et fin au-dessus du titre ; logo devant chaque étiquette. */
.ob-lead { display: block; margin-bottom: 14px; color: #eee; font-size: 1.9rem; font-weight: 400; letter-spacing: -.02em; }
.ob-chip span:has(svg) { display: inline-flex; align-items: center; gap: 10px; }
.ob-chip span svg { flex: none; width: 22px; height: 22px; }

/* Écran n° 3 : carte étroite, « Retour » en haut, liste déroulante dessinée à la main, lien « passer » en dessous. */
.ob-card.narrow { width: min(560px, 100%); }
.ob-back.top { margin: -6px 0 30px -12px; }
.ob-card.narrow h1 { margin-bottom: 18px; }
.ob-card.narrow .ob-sub { margin-bottom: 28px; }
.ob-dd { position: relative; margin-bottom: 24px; }
.ob-dd-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; background: #262626; border: 1px solid #333; border-radius: 14px; color: #eee; font: inherit; font-size: 1.05rem; text-align: left; cursor: pointer; }
.ob-dd-btn i { color: #777; font-style: normal; }
/* Liste ouverte, ou niche déjà choisie : cadre bleu (comme VidRush). */
.ob-dd.open .ob-dd-btn, .ob-card:has(input[name="niche"]:not([value=""])) .ob-dd-btn { border-color: #3b5bd0; box-shadow: 0 0 0 1px rgba(59, 91, 208, .5); }
.chev { flex: none; width: 8px; height: 8px; border-right: 2px solid #ccc; border-bottom: 2px solid #ccc; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.ob-dd.open .chev { transform: translateY(2px) rotate(-135deg); }
.ob-dd-list { position: absolute; top: calc(100% + 12px); left: 0; right: 0; z-index: 10; display: none; max-height: 330px; overflow: auto; padding: 6px; background: #262626; border: 1px solid #333; border-radius: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
.ob-dd.open .ob-dd-list { display: grid; }
.ob-dd-list button { padding: 9px 10px; background: none; border: 0; border-radius: 8px; color: #eee; font: inherit; font-size: .95rem; text-align: left; cursor: pointer; }
.ob-dd-list button:hover, .ob-dd-list button.on { background: #3a3a3a; }
.ob-skip { display: block; margin: 18px auto 0; background: none; border: 0; color: #ddd; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; }
.ob-skip:hover { color: #fff; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .ob-card { animation: none; } }

/* Écran « Choisissez votre formule » (façon VidRush) : logo et avatar en haut, titre + bascule Mensuel/Annuel,
   cartes des formules (la formule disponible encadrée de bleu, lueur orange dans son en-tête), « Continuer » en bas. */
.pl-vr { min-height: 100vh; padding: 22px 20px 60px;
  background: radial-gradient(40% 45% at 100% 0%, rgba(150, 70, 25, .35), transparent 70%), radial-gradient(35% 45% at 0% 100%, rgba(40, 60, 140, .25), transparent 70%), #121212; }
.pl-top { display: flex; justify-content: space-between; align-items: center; }
.pl-top .logo { font-size: 1.8rem; }
.pl-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #8b5cf6; box-shadow: 0 0 0 2px rgba(255, 255, 255, .15); color: #fff; font-size: 1.1rem; font-weight: 600; }
.pl-wrap { max-width: 1180px; margin: 34px auto 0; }
.pl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; }
.pl-head h1 { margin-bottom: 14px; font-size: 2rem; }
.pl-head p { max-width: 560px; margin: 0; color: #ddd; }
.pl-head p a { color: #fff; text-decoration: underline; }
.pl-toggle { display: inline-flex; gap: 4px; padding: 5px; background: #262626; border: 1px solid #333; border-radius: 12px; }
.pl-toggle button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; background: none; border: 0; border-radius: 9px; color: #ccc; font: inherit; font-weight: 500; cursor: pointer; }
.pl-toggle button.on { background: #3a3a3a; color: #fff; font-weight: 600; }
.pl-save { padding: 2px 6px; border-radius: 5px; background: #fff; color: #111; font-size: .72rem; font-weight: 600; }
.pl-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 365px)); }
.pl-card { display: flex; flex-direction: column; padding: 10px; background: #1c1c1c; border: 1px solid #2c2c2c; border-radius: 20px; }
.pl-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.pl-card.soon { opacity: .7; }
.pl-box { padding: 16px; border-radius: 14px; background: #252525; }
.pl-card.featured .pl-box { background: radial-gradient(70% 90% at 100% 100%, rgba(200, 100, 40, .55), transparent 70%), #252525; }
.pl-name { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 1.3rem; font-weight: 700; }
.pl-badge { padding: 3px 9px; border-radius: 6px; background: #fff; color: #111; font-size: .8rem; font-weight: 500; }
.pl-badge.dim { background: #3a3a3a; color: #ccc; }
.pl-price { font-size: 1.6rem; font-weight: 700; }
.pl-price small { color: #ddd; font-size: .85rem; font-weight: 500; }
.pl-sub { margin-top: 4px; color: #ccc; font-size: .88rem; }
.pl-card ul { flex: 1; display: grid; align-content: start; gap: 12px; margin: 0; padding: 16px 8px; list-style: none; }
.pl-card li { display: flex; gap: 12px; color: #eee; font-size: .95rem; line-height: 1.35; }
.pl-card li i { flex: none; width: 16px; color: #ddd; font-size: .85rem; font-style: normal; text-align: center; }
.pl-btn { width: 100%; padding: 10px; border-radius: 10px; background: #4e4e4e; color: #fff; }
.pl-card.featured .pl-btn { background: #fff; color: #111; }
.pl-card.featured .pl-btn:hover:not([disabled]) { background: #e6e6e6; }
.pl-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 30px; }
.pl-foot .pay-note { margin: 0; text-align: left; }
.pl-continue { padding: 10px 18px; }

/* Séparateur « ou » avec un trait de chaque côté. */
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* L'ESPACE CLIENT (menu à gauche, contenu à droite). */
/* ---------------------------------------------------------------- Espace utilisateur */
/* minmax(0, 1fr) : sur téléphone, la colonne garde la largeur de l'écran (sans ça, un contenu large — menu, onglets
   de l'administration — l'étirait à 1 240 px et coupait la page à droite ; corrigé le 2026-11-21). */
.app-shell { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - 66px); }
/* Sur ordinateur : menu de 240 pixels à gauche. */
@media (min-width: 960px) { .app-shell { grid-template-columns: 240px 1fr; } }
/* Le menu de gauche (horizontal et défilant sur téléphone, vertical sur ordinateur). */
.sidebar { border-right: 1px solid var(--border); background: var(--bg-2); padding: 18px 12px; }
.sidebar nav { display: flex; gap: 4px; overflow-x: auto; }
@media (min-width: 960px) { .sidebar nav { flex-direction: column; overflow: visible; } }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; font-size: .93rem; white-space: nowrap; }
.sidebar a:hover { background: var(--surface); color: var(--text); }
/* Page en cours : en bleu. */
.sidebar a.active { background: var(--surface-2); color: var(--accent); }
/* Petit encadré « minutes utilisées » dans le menu. */
.sidebar .quota { display: none; margin-top: 22px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .85rem; }
@media (min-width: 960px) { .sidebar .quota { display: block; } }
/* La jauge des minutes. */
.meter { height: 7px; background: var(--surface-2); border-radius: 6px; overflow: hidden; margin: 8px 0 6px; }
.meter i { display: block; height: 100%; background: var(--accent); }
/* La zone principale. */
.app-main { padding: 28px 16px 60px; min-width: 0; }
@media (min-width: 720px) { .app-main { padding: 34px 34px 70px; } }
.app-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 26px; }
.app-head h1 { font-size: 2rem; margin: 0; }
/* Les cases de statistiques (s'adaptent au nombre de colonnes possibles). */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 26px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat .k { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stat .v { font-family: var(--font-head); font-size: 2rem; margin-top: 4px; }
/* Tableaux (Mes vidéos, administration) : défilement horizontal sur petit écran. */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table.list { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 620px; }
/* Tableau « Coût réel par vidéo » : chaque montant sur une seule ligne, titre de la vidéo assez large pour se lire. */
table.list.vc td, table.list.vc th { white-space: nowrap; }
table.list.vc td:first-child { white-space: normal; min-width: 220px; }
table.list th, table.list td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); }
table.list th { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
table.list tr:last-child td { border-bottom: 0; }
/* Message « rien ici pour le moment ». */
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }

/* La page CRÉER une vidéo (formulaire à gauche, résumé à droite sur grand écran). */
/* Création de vidéo */
.create-grid { display: grid; gap: 22px; align-items: start; }
@media (min-width: 1120px) { .create-grid { grid-template-columns: 1fr 360px; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
/* Page Procès d'un client sans abonnement (2026-11-15) : titre centré au-dessus de la carte de la formule. */
.tr-pay { text-align: center; }
.tr-pay h2 { margin: 0 0 6px; }
/* « J'ai déjà payé » : sous la carte, même largeur qu'elle. */
.tr-pay-key { max-width: 460px; margin: 18px auto 0; }
.panel h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
/* La pastille numérotée de chaque étape du formulaire. */
.panel h3 .n { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .8rem; display: grid; place-items: center; font-family: var(--font-body); font-weight: 700; }
/* Le résumé (durée, coût) reste visible pendant le défilement. */
.summary { position: sticky; top: 86px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 9px 12px; margin: 0 0 16px; font-size: .9rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .total { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
/* Le coût total en grand et en bleu. */
.summary .total b { font-family: var(--font-head); font-size: 1.8rem; color: var(--accent); white-space: nowrap; }
/* La liste d'avancement d'une vidéo (○ à faire, ◐ en cours, ✓ fait). */
.progress-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: .9rem; }
.progress-list li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.progress-list li.done { color: var(--success); }
.progress-list li.run { color: var(--accent); }
.progress-list li::before { content: '○'; width: 16px; text-align: center; }
.progress-list li.done::before { content: '✓'; }
.progress-list li.run::before { content: '◐'; }

/* La page MES CLÉS (une carte par fournisseur, guide pas à pas). */
/* Mes clés */
.key-group { margin-bottom: 30px; }
.key-group > h2 { font-size: 1.3rem; margin-bottom: 4px; }
.key-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-top: 14px; }
.key-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 12px; }
.key-top h3 { margin: 0; font-size: 1.05rem; }
.key-row { display: flex; flex-wrap: wrap; gap: 8px; }
/* Le champ de clé utilise la police « machine à écrire » (plus facile à vérifier). */
.key-row .input { flex: 1 1 240px; font-family: var(--font-mono); }
.key-saved { font-family: var(--font-mono); background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 10px 13px; flex: 1 1 240px; color: var(--text-2); }
/* Le guide « Comment obtenir ma clé ? » (s'ouvre au clic). */
.guide { margin-top: 12px; font-size: .88rem; }
.guide summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.guide ol { margin: 10px 0 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 5px; }
.guide a { color: var(--accent); text-decoration: underline; }

/* Pages de texte (mentions légales, confidentialité, blog). */
/* Pages de contenu (légal, blog) */
.prose { max-width: 780px; margin: 0 auto; padding: 60px 16px 90px; }
.prose h1 { font-size: 2.4rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose ul { color: var(--text-2); }

/* Fenêtre qui s'ouvre au-dessus de la page (ex. créer un graphique), avec fond assombri. */
/* Fenêtre modale */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; padding: 26px; width: 100%; max-width: 520px; box-shadow: var(--shadow); }

/* Petite notification en bas de l'écran (« enregistré », « erreur »…). */
/* Notification */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--border-strong); padding: 12px 18px; border-radius: 10px; z-index: 120; box-shadow: var(--shadow); font-size: .92rem; max-width: calc(100% - 32px); }

/* Bandeau d'information en haut (version de démonstration). */
/* Bandeau maquette */
.mock-banner { background: var(--accent); color: var(--accent-ink); text-align: center; font-size: .8rem; font-weight: 600; padding: 6px 12px; }

/* LE STUDIO (préfixe « st- ») : suivi en direct, arrêts ①②③, storyboard. */
/* ----- Studio (suivi en direct, relecture du script) ----------------------- */
/* Indicateur « EN DIRECT » avec un point bleu qui pulse. */
.st-live { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--accent); }
.st-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: st-pulse 1.4s ease-in-out infinite; }
/* L'animation de pulsation. */
@keyframes st-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
/* La barre des étapes (Script → Images → Montage…). */
.st-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; flex-wrap: wrap; }
.st-steps li { flex: 1 1 140px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-weight: 600; }
.st-steps .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: .82rem; flex: none; }
/* Étape en cours : bordure bleue et numéro qui pulse. */
.st-steps li.active { border-color: var(--accent); color: var(--text); }
.st-steps li.active .n { background: var(--accent); color: var(--accent-ink); animation: st-pulse 1.6s ease-in-out infinite; }
/* Étape terminée : numéro vert. */
.st-steps li.done { color: var(--text-2); }
.st-steps li.done .n { background: rgba(76,195,138,.18); color: var(--success); }
/* Étape en échec : rouge. */
.st-steps li.err { border-color: rgba(226,87,76,.5); color: #f0a49d; }
.st-steps li.err .n { background: rgba(226,87,76,.18); color: var(--danger); }
/* Le bloc d'une scène du script. */
.st-scene { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; background: var(--bg-2); }
/* Les scènes apparaissent en glissant doucement (effet « en direct »). */
.st-scene.arrive { opacity: 0; animation: st-arrive .45s ease-out forwards; }
@keyframes st-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* L'en-tête d'une scène et ses outils (réécrire, supprimer…). */
.st-scene-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.st-tools { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.st-tools .btn-sm { padding: 5px 10px; }
/* La zone de texte d'une scène : s'agrandit avec son contenu. */
.st-text { min-height: 74px; field-sizing: content; resize: vertical; line-height: 1.55; }
/* La ligne « réécrire avec l'IA ». */
.st-rw { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.st-rw .input { flex: 1 1 220px; }
/* Le bouton discret « + ajouter une scène » entre deux scènes. */
.st-add { display: block; width: 100%; margin: 6px 0; padding: 4px; background: none; border: 1px dashed transparent; border-radius: 8px; color: var(--muted); font: inherit; font-size: .82rem; cursor: pointer; opacity: .55; }
.st-add:hover, .st-add:focus-visible { opacity: 1; border-color: var(--border-strong); color: var(--accent); }
/* La barre d'actions collée en bas (Valider, Retour…). */
.st-bar { position: sticky; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; box-shadow: var(--shadow); }
/* Les lignes grises animées pendant le chargement (le contenu arrive). */
.st-skeleton { display: grid; gap: 10px; margin-top: 10px; }
.st-skeleton i { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), #2a2a2a, var(--surface-2)); background-size: 200% 100%; animation: st-shimmer 1.3s linear infinite; }
.st-skeleton i:nth-child(2) { width: 92%; } .st-skeleton i:nth-child(3) { width: 78%; } .st-skeleton i:nth-child(4) { width: 60%; }
@keyframes st-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
/* La liste des tâches en cours (point qui tourne, coche verte, croix rouge). */
.st-tasks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 12px; }
.st-tasks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.st-tasks li b { display: block; font-weight: 600; }
.st-tasks li > div { flex: 1; min-width: 0; }
.st-tasks .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; font-size: .72rem; font-weight: 700; flex: none; margin-top: 1px; }
.st-tasks li.ok { color: var(--text-2); }
.st-tasks li.ok .dot { border-color: var(--success); background: rgba(76,195,138,.15); color: var(--success); }
.st-tasks li.run { color: var(--text); }
.st-tasks li.run .dot { border-color: var(--accent); border-top-color: transparent; animation: st-spin .8s linear infinite; }
.st-tasks li.err .dot { border-color: var(--danger); color: var(--danger); }
/* L'animation de rotation. */
@keyframes st-spin { to { transform: rotate(360deg); } }
/* Les mots-clés trouvés, affichés en petites étiquettes. */
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.st-chips span { font-size: .78rem; padding: 3px 9px; border-radius: 999px; background: rgba(217, 191, 134,.12); color: var(--accent-2); }
/* Le journal en direct (défilant). */
.st-log ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .86rem; max-height: 60vh; overflow: auto; }
.st-log li { display: grid; gap: 2px; color: var(--text-2); }
.st-log time { font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
/* « En ce moment » (2026-11-01) : le mouvement en cours de la fabrication, au-dessus du journal. */
.st-now { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 4px 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--accent); background: rgba(255, 255, 255, .03); font-size: .9rem; }
.st-now-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); align-self: center; animation: st-pulse 1.4s ease-in-out infinite; }
.st-now span { grid-column: 3; }
.st-now small { grid-column: 2 / 4; color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .st-now-dot { animation: none; } }
/* Texte en lecture seule. */
.st-readonly { margin: 10px 0 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 8px; font-size: .92rem; }
/* Le storyboard (arrêt ②) apparaît en glissant. */
.st-board.arrive { opacity: 0; animation: st-arrive .45s ease-out forwards; }
/* Le texte de la scène au-dessus de ses images (2 lignes au plus). */
.st-board-text { font-size: .88rem; color: var(--muted); margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Grilles de vignettes : plans choisis et propositions. */
.st-clips, .st-cands ul { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
/* Les plans choisis sont numérotés automatiquement (1, 2, 3…). */
.st-clips { counter-reset: shot; }
/* Une vignette de clip. */
.st-clip { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; position: relative; text-align: left; width: 100%; padding: 0; font: inherit; color: inherit; }
/* Plan choisi : bordure bleue et numéro. */
.st-clip.picked { border-color: rgba(217, 191, 134,.55); counter-increment: shot; }
.st-clip.picked::before { content: counter(shot); position: absolute; top: 6px; left: 6px; z-index: 1; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
/* L'image de la vignette (recadrée pour remplir le cadre). */
.st-clip-img { aspect-ratio: 16 / 10; background: #111; display: grid; place-items: center; overflow: hidden; }
.st-clip-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Icône d'un fichier du client (sans miniature). */
.st-clip-file { font-size: 1.6rem; color: var(--muted); }
/* Titre et auteur sous la vignette (coupés avec « … » s'ils sont trop longs). */
.st-clip-meta { padding: 7px 9px; display: grid; gap: 2px; min-width: 0; }
.st-clip-meta b { font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-clip-meta span { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Les petits boutons sous une vignette (monter, descendre, retirer…). */
.st-clip-tools { display: flex; gap: 4px; padding: 0 8px 8px; flex-wrap: wrap; }
.st-clip-tools .btn-sm { padding: 3px 8px; font-size: .78rem; }
/* Une proposition (Plan B) : se soulève au survol, cliquable. */
.st-clip.cand { cursor: pointer; transition: border-color .15s, transform .15s; }
.st-clip.cand:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-2px); }
.st-clip.cand:disabled { cursor: not-allowed; opacity: .45; }
/* Le « + » bleu pour ajouter une proposition. */
.st-plus { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
/* L'étiquette « déjà utilisé ». */
.st-used { position: absolute; top: 6px; right: 6px; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.75); color: var(--text-2); }
/* Le cadre en pointillés du Plan B. */
.st-planb { border: 1px dashed rgba(217, 191, 134,.55); border-radius: var(--radius-sm); padding: 12px; margin: 0 0 12px; background: rgba(217, 191, 134,.05); }
.st-planb ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.st-clip-tools .btn-sm.on { border-color: var(--accent); color: var(--accent); }
/* La grille des réglages du montage (arrêt ③). */
.st-style-grid { display: grid; gap: 4px 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-bottom: 6px; }
/* Les pastilles de couleur des sous-titres. */
.st-swatch { padding: 6px 10px; }
.st-swatch i { display: block; width: 22px; height: 16px; border-radius: 4px; border: 1px solid rgba(255,255,255,.25); }
.st-swatch.on i { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
/* L'étiquette « ◆ Graphique ». */
.st-gfx-tag { display: inline-block; font-weight: 700; color: var(--accent-2); }
/* Le badge « auto » (plan ajouté automatiquement). */
.st-auto { display: inline-block; font-size: .68rem; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: rgba(217, 191, 134,.15); color: var(--accent-2); }
/* Les crédits (sources) sous la vidéo. */
.st-attrib { margin: 8px 0 0; font-size: .82rem; color: var(--muted); }
.st-attrib a, .st-sources a { color: var(--accent-2); }
/* Les sources de l'actualité. */
.st-sources { margin: 0 0 14px; }
.st-sources ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: .9rem; }
.st-sources li .hint { display: block; }
/* La ligne de recherche d'une scène (mots + choix de la source). */
.st-search { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.st-search .input { flex: 1 1 220px; }
.st-search .st-src { flex: 0 1 220px; }
.st-upload { cursor: pointer; }
.st-cands summary { cursor: pointer; color: var(--accent); font-size: .88rem; font-weight: 600; margin-bottom: 10px; }
.st-skeleton.grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.st-skeleton.grid i { height: 84px; width: auto !important; }
/* Personnes qui ont demandé moins d'animations (réglage du système) : animations coupées (accessibilité). */
@media (prefers-reduced-motion: reduce) { .st-board.arrive { animation: none; opacity: 1; } }
/* ----- Salle de montage en direct (aperçu + ligne de temps façon logiciel de montage) ----- */
.mt-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mt-top h3 { margin: 0; }
.mt-stage { font-size: .82rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.mt-stage.run { color: var(--accent); }
.mt-stage.run::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--accent); animation: st-pulse 1.4s ease-in-out infinite; }
.mt-stage.ok { color: #7fd58a; }
.mt-stage.err { color: #ff7a7a; }
.mt-preview { position: relative; aspect-ratio: 16 / 9; max-height: 46vh; margin: 0 auto 14px; background: #000; border-radius: 10px; overflow: hidden; display: grid; place-items: center; }
.mt-preview img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s ease; }
.mt-preview img.zoomed.dynamic { transform: scale(1.12); transition-duration: 2.4s; }
.mt-preview img.zoomed.punch { transform: scale(1.22); transition: none; }
.mt-empty { color: var(--muted); font-size: .9rem; padding: 20px; text-align: center; }
.mt-tc, .mt-badge { position: absolute; font-size: .76rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .72); color: #fff; font-variant-numeric: tabular-nums; }
.mt-tc { left: 10px; bottom: 10px; }
.mt-badge { right: 10px; top: 10px; color: #ffd36b; }
.mt-timeline { position: relative; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px 10px 74px; overflow: hidden; }
.mt-ruler { position: relative; height: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.mt-ruler span { position: absolute; top: 0; transform: translateX(-50%); font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.mt-ruler span:first-child { transform: none; }
.mt-track { position: relative; height: 34px; margin: 5px 0; }
.mt-track > b { position: absolute; left: -66px; top: 9px; width: 58px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.mt-lane { position: relative; height: 100%; background: var(--surface); border-radius: 5px; overflow: hidden; }
.mt-clip { position: absolute; top: 0; bottom: 0; background-size: cover; background-position: center; border-right: 2px solid var(--bg-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.mt-zoom { position: absolute; top: 5px; bottom: 5px; min-width: 14px; display: grid; place-items: center; font-size: .7rem; color: #1b1300; border-radius: 4px; }
.mt-zoom.punch { background: #ffb547; }
.mt-zoom.dynamic { background: #ffd98a; }
.mt-wave { position: absolute; top: 0; bottom: 0; left: 0; }
.mt-wave svg { width: 100%; height: 100%; display: block; }
.mt-wave polygon { fill: var(--accent-2); opacity: .85; }
.mt-sub { position: absolute; top: 5px; bottom: 5px; padding: 0 4px; font-size: .64rem; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); background: var(--surface-2); border-left: 2px solid var(--accent); border-radius: 3px; }
.mt-music { position: absolute; inset: 5px 0; padding: 0 8px; font-size: .7rem; line-height: 24px; color: var(--text-2); background: repeating-linear-gradient(90deg, var(--surface-2) 0 10px, var(--surface) 10px 20px); border-radius: 3px; }
/* --at : position de 0 à 1 sur les pistes (qui commencent après les 74 px des noms de piste). */
.mt-head { --pad: 74px; position: absolute; top: 0; bottom: 0; width: 2px; left: calc(var(--pad) + (100% - var(--pad) - 10px) * var(--at, 0)); background: #ff5a5a; box-shadow: 0 0 8px #ff5a5a; transition: left .8s ease; pointer-events: none; }
.mt-head.render { animation: mt-sweep 3s linear infinite; }
.mt-foot { margin: 10px 0 0; }
.mt-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.mt .arrive { animation: mt-arrive .55s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes mt-arrive { from { opacity: 0; transform: translateY(-14px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes mt-sweep { from { left: var(--pad); } to { left: calc(100% - 10px); } }
@media (max-width: 600px) { .mt-timeline { padding-left: 10px; } .mt-track > b { position: static; display: block; height: auto; } .mt-track { height: auto; } .mt-lane { height: 30px; } .mt-head { --pad: 10px; } }

@media (prefers-reduced-motion: reduce) { .mt .arrive, .mt-head.render, .mt-stage.run::before { animation: none; } .mt-preview img { transition: none; } }
@media (prefers-reduced-motion: reduce) { .st-live i, .st-steps li.active .n, .st-skeleton i, .st-tasks li.run .dot { animation: none; } .st-scene.arrive { animation: none; opacity: 1; } }

/* ONGLET « PROCÈS » (administration) : lecteur vidéo collé en haut à gauche, transcription cliquable à droite. */
.tr-grid { display: grid; gap: 18px; align-items: start; }
/* Sur grand écran : vidéo et transcription côte à côte. */
@media (min-width: 1100px) { .tr-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* Le lecteur reste visible pendant qu'on fait défiler la transcription. */
.tr-player { position: sticky; top: 86px; }
.tr-player video { width: 100%; border-radius: 12px; background: #000; }
/* La transcription : défilante, une ligne par passage. */
.tr-list { list-style: none; padding: 0; margin: 0; max-height: 70vh; overflow: auto; display: grid; gap: 6px; font-size: .9rem; }
.tr-list li { color: var(--text-2); line-height: 1.5; }
/* L'horaire cliquable de chaque passage (le lecteur saute à ce moment). */
.tr-list button { background: none; border: 1px solid var(--border-strong); border-radius: 6px; color: var(--accent); font-family: var(--font-mono); font-size: .78rem; padding: 1px 6px; cursor: pointer; margin-right: 4px; }
.tr-list button:hover { border-color: var(--accent); }
/* Synthèse de procès : un paragraphe de narration, et un extrait (bouton ▶ + citation exacte) bien distinct. */
.cs-narr { margin: 0 0 12px; color: var(--text); line-height: 1.65; }
.cs-clip { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; padding: 12px; border-left: 3px solid #FFE14D; background: var(--bg-2); border-radius: var(--radius-sm); font-size: .9rem; color: var(--text-2); }

/* Onglet « Procès » (niche audience) : narrateur, 3 étapes, audiences choisies, réglette de durée, page de synthèse. */
.aud-narrator { display: flex; gap: 14px; align-items: center; padding: 14px 16px; margin-bottom: 16px; border-radius: var(--radius-sm); background: var(--bg-2); border-left: 3px solid #FFE14D; }
.aud-mic { font-size: 1.6rem; }
.aud-flow { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 26px; }
.aud-flow-sm { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 18px; }
.aud-step { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid transparent; opacity: .75; }
.aud-step.on { opacity: 1; border-color: rgba(111,191,115,.4); }
.aud-step.now { opacity: 1; border-color: #FFE14D; }
.aud-num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--bg); color: var(--text-2); }
.aud-step.on .aud-num { background: #2f9e44; color: #fff; }
.aud-step.now .aud-num { background: #FFE14D; color: #1a1a1a; }
.aud-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.aud-chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 999px; background: var(--bg-2); font-size: .88rem; max-width: 100%; }
.aud-chip > b:first-child { color: #FFE14D; }
.aud-range { width: 100%; accent-color: #FFE14D; margin: 8px 0 2px; }
.aud-scale { display: flex; justify-content: space-between; font-size: .8rem; color: var(--text-2); }
.aud-copy { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
.aud-ch > summary { cursor: pointer; list-style: none; margin: -2px 0; }
.aud-ch > summary::-webkit-details-marker { display: none; }
.aud-ch > summary::before { content: '▸ '; color: #FFE14D; }
.aud-ch[open] > summary { margin-bottom: 14px; }
.aud-ch[open] > summary::before { content: '▾ '; }
.aud-import { border: 1px dashed rgba(255,225,77,.45); }
.aud-del:hover { color: #f0a49d; border-color: rgba(226,87,76,.5); }
.aud-choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.aud-choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid transparent; cursor: pointer; }
.aud-choice.on { border-color: #FFE14D; }
.aud-choice input { margin-top: 4px; accent-color: #FFE14D; }
.aud-choice .hint { display: block; margin-top: 3px; }
.aud-flag { font-size: 1.4rem; line-height: 1; }
/* Nom d'audience très long (ex. nom de fichier sans espace) : coupé n'importe où, 2 lignes au plus, nom complet au survol. */
.tr-cell { max-width: 380px; }
.tr-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; word-break: break-word; }
.tr-cell .check { display: flex; gap: 8px; align-items: flex-start; }
.aud-chip { overflow-wrap: anywhere; word-break: break-word; }

/* ------------------------------------------------------------------------------------------------
   FENÊTRE D'INSCRIPTION AU CLIC SUR « GÉNÉRER » (2026-11-09, stratégie Higgsfield) et liste d'attente.
   Elle s'affiche PAR-DESSUS la page de création (rien n'est perdu derrière).
   ------------------------------------------------------------------------------------------------ */
.wd-auth-bg { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
  background: rgba(6, 8, 5, .72); backdrop-filter: blur(4px); overflow-y: auto; }
.wd-auth { position: relative; width: 100%; max-width: 420px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 18px; padding: 30px 26px 22px; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.wd-auth .auth-logo { margin-bottom: 18px; font-size: 1.6rem; gap: 10px; display: flex; align-items: center; }
.wd-auth .auth-logo .logo-mark { width: 36px; height: 36px; font-size: 1.15rem; border-radius: 9px; }
.wd-auth h2 { margin: 0 0 6px; font-size: 1.45rem; text-align: center; }
.wd-auth-s { margin: 0 0 18px; color: var(--muted); text-align: center; font-size: .95rem; line-height: 1.45; }
.wd-auth-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.wd-auth-x:hover { background: var(--surface-2); color: var(--text); }
.wd-auth .field { margin-bottom: 12px; }
.wd-auth .auth-google { font-size: 1rem; padding: 12px 18px; }
.wd-auth-inv { margin: 0 0 14px; font-size: .9rem; }
.wd-auth-err { min-height: 1.2em; margin: 4px 0 10px; color: var(--danger, #e0735f); font-size: .9rem; }
.wd-auth-err:empty { min-height: 0; margin: 0; }
.wd-auth-forgot { text-align: right; margin: -4px 0 8px; font-size: .85rem; }
.wd-auth-forgot a { color: var(--muted); }
.wd-auth-switch { margin: 16px 0 0; text-align: center; font-size: .92rem; color: var(--muted); }
.wd-auth-legal { margin: 12px 0 0; text-align: center; font-size: .75rem; color: var(--muted); }
body.wd-auth-on { overflow: hidden; }
@media (max-width: 480px) { .wd-auth { padding: 26px 18px 18px; border-radius: 14px; } }
