/* L'attribut hidden doit l'emporter sur les classes de composants,
   dont beaucoup définissent display:flex ou grid. */
[hidden] { display: none !important; }

/* ==========================================================================
   vger.css — Système de design V'GER · Bulma Solution · v1.0 (nov. 2026)
   Une seule feuille pour toutes les pages de server/static/.
   À lier dans chaque page :  <link rel="stylesheet" href="/static/vger.css">
   Icônes : Phosphor (https://phosphoricons.com) —
           <script src="https://unpkg.com/@phosphor-icons/web@2.1.1"></script>
   Police : Poppins 400/500/600/700/800/900 (Google Fonts).
   Points de rupture : mobile < 720px · tablette 720–1023px · bureau ≥ 1024px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Jetons
   -------------------------------------------------------------------------- */
:root {
  /* Marque */
  --v-primary: #008DAE;        /* actions, liens, éléments actifs */
  --v-primary-dark: #05586f;   /* survol, texte sur fond teinté */
  --v-primary-tint: #e6f3f6;   /* fond d'élément actif (nav, ligne sélectionnée) */
  --v-primary-soft: #b8dde7;   /* barres de graphique secondaires */
  --v-accent: #FAB833;         /* langue signée, mises en avant, focus sur fond sombre */
  --v-accent-tint: #fff7e6;
  --v-accent-ink: #5c3f05;

  /* États */
  --v-success: #7FB942;  --v-success-tint: #eef6e6;  --v-success-ink: #3f6b14;  --v-success-ink-2: #2f5410;
  --v-warning: #e0a030;  --v-warning-tint: #fdf1dc;  --v-warning-ink: #7a5410;  --v-warning-ink-2: #5c3f05;
  --v-danger:  #c0392b;  --v-danger-hover: #a02f23;  --v-danger-tint: #fbeeec;  --v-danger-line: #f0c9c4;

  /* Neutres (fond clair) */
  --v-ink: #1c1c1e;      /* texte principal */
  --v-ink-2: #2f3a3c;    /* texte courant long */
  --v-muted: #5a6a6c;    /* libellés secondaires — contraste 5,6:1 sur --v-bg */
  --v-faint: #a8b6b7;    /* icônes inactives uniquement, jamais de texte */
  --v-bg: #f4f8f8;       /* fond de page */
  --v-surface: #ffffff;  /* cartes, en-têtes, barre latérale */
  --v-subtle: #f0f5f5;   /* survol neutre */
  --v-track: #eef2f2;    /* rails de progression, séparateurs de lignes */
  --v-line: #e2e8e8;     /* bordures de champs et boutons secondaires */
  --v-seg: #e9eff0;      /* fond de contrôle segmenté */

  /* Fond sombre (connexion, Live, sélecteur de langue signée) */
  --v-night: #0e2b33;
  --v-night-gradient: linear-gradient(155deg, #0e2b33 0%, #14414d 55%, #0b2229 100%);
  --v-night-text: #b9d6dd;
  --v-night-muted: #9fc4cd;
  --v-night-surface: rgba(255,255,255,.06);
  --v-cam: #273238;      /* fond du retour caméra */
  --v-cam-example: #1a2930; /* fond de la vidéo d'exemple */

  /* Typographie */
  --v-font: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  --v-fs-xs: 11.5px;   /* sur-titres en capitales */
  --v-fs-sm: 12.5px;   /* libellés, méta */
  --v-fs-md: 13.5px;   /* texte d'interface, boutons */
  --v-fs-base: 15px;   /* texte courant */
  --v-fs-lg: 17px;     /* titres de bloc */
  --v-fs-xl: 22px;     /* titres de page mobile, titres de dialogue */
  --v-fs-2xl: 30px;    /* titres de page bureau */
  --v-fs-word: 44px;   /* mot à signer (34px mobile) */
  --v-fs-live: 60px;   /* mot reconnu sur le Live (44px mobile) */

  /* Espacement — échelle de 4 */
  --v-s-1: 4px; --v-s-2: 8px; --v-s-3: 12px; --v-s-4: 16px; --v-s-5: 20px; --v-s-6: 24px; --v-s-7: 28px; --v-s-8: 32px;

  /* Rayons */
  --v-r-sm: 8px; --v-r-md: 10px; --v-r-lg: 14px; --v-r-xl: 18px; --v-r-pill: 999px;

  /* Ombres */
  --v-shadow-card: 0 12px 30px -18px rgba(0,0,0,.18);
  --v-shadow-pop: 0 20px 60px -20px rgba(0,0,0,.4);
  --v-shadow-dialog: 0 30px 70px -28px rgba(0,0,0,.5);

  --v-ease: .18s ease;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 400 var(--v-fs-base)/1.6 var(--v-font); color: var(--v-ink); background: var(--v-bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: var(--v-primary); text-decoration: none; }
a:hover { color: var(--v-primary-dark); }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--v-primary); outline-offset: 2px; }
.v-night :focus-visible { outline-color: var(--v-accent); }
::selection { background: var(--v-primary-tint); }
.v-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes v-spin { to { transform: rotate(360deg); } }
@keyframes v-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* --------------------------------------------------------------------------
   3. Typographie utilitaire
   -------------------------------------------------------------------------- */
.v-h1 { font: 800 var(--v-fs-2xl)/1.15 var(--v-font); letter-spacing: -.01em; }
.v-h2 { font: 700 var(--v-fs-xl)/1.3 var(--v-font); }
.v-h3 { font: 700 var(--v-fs-base)/1.4 var(--v-font); }      /* titre de carte */
.v-kicker { font: 600 var(--v-fs-sm)/1.4 var(--v-font); color: var(--v-muted); }
.v-overline { font: 600 var(--v-fs-xs)/1.4 var(--v-font); color: var(--v-muted); text-transform: uppercase; letter-spacing: .06em; }
.v-meta { font: 500 var(--v-fs-sm)/1.5 var(--v-font); color: var(--v-muted); }
.v-word { font: 800 var(--v-fs-word)/1.05 var(--v-font); letter-spacing: -.01em; }
.v-nowrap { white-space: nowrap; }
@media (max-width: 719px) { .v-h1 { font-size: 24px; } .v-word { font-size: 34px; } }

/* --------------------------------------------------------------------------
   4. Boutons — repos / survol / actif / désactivé / chargement
   -------------------------------------------------------------------------- */
.v-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--v-s-2);
  min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--v-r-md);
  font: 600 14px/1 var(--v-font); white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background var(--v-ease), border-color var(--v-ease), color var(--v-ease);
}
.v-btn i { font-size: 18px; }
.v-btn:disabled, .v-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.v-btn-primary { background: var(--v-primary); color: #fff; }
.v-btn-primary:hover:not(:disabled) { background: var(--v-primary-dark); color: #fff; }
.v-btn-secondary { background: var(--v-surface); color: var(--v-primary-dark); border: 1.5px solid var(--v-line); }
.v-btn-secondary:hover:not(:disabled) { border-color: var(--v-primary); }
.v-btn-danger { background: var(--v-danger); color: #fff; }
.v-btn-danger:hover:not(:disabled) { background: var(--v-danger-hover); }
.v-btn-danger-ghost { background: var(--v-surface); color: var(--v-danger); border: 1.5px solid var(--v-danger-line); }
.v-btn-danger-ghost:hover:not(:disabled) { background: var(--v-danger-tint); }
.v-btn-accent { background: var(--v-accent); color: var(--v-night); font-weight: 700; }
.v-btn-ghost-night { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.2); }
.v-btn-ghost-night:hover:not(:disabled) { border-color: #fff; }
.v-btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: var(--v-r-sm); }
.v-btn-lg { min-height: 52px; padding: 0 26px; font-size: 15px; font-weight: 700; border-radius: 12px; }
.v-btn-icon { width: 48px; min-height: 48px; padding: 0; border-radius: 12px; }
.v-btn-block { width: 100%; }
.v-btn.is-loading { pointer-events: none; }
.v-btn.is-loading::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: v-spin .8s linear infinite; }

/* Bouton d'enregistrement : repos rouge à point rond → en cours noir à carré rouge */
.v-btn-record { background: var(--v-danger); color: #fff; }
.v-btn-record::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.v-btn-record.is-recording { background: var(--v-ink); }
.v-btn-record.is-recording::before { border-radius: 2px; background: var(--v-danger); }

/* --------------------------------------------------------------------------
   5. Pastilles, badges, contrôle segmenté, interrupteur
   -------------------------------------------------------------------------- */
.v-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--v-r-pill); font: 600 var(--v-fs-sm)/1.2 var(--v-font); white-space: nowrap; }
.v-pill-primary { background: var(--v-primary-tint); color: var(--v-primary-dark); }
.v-pill-success { background: var(--v-success-tint); color: var(--v-success-ink-2); }
.v-pill-warning { background: var(--v-warning-tint); color: var(--v-warning-ink); }
.v-pill-danger  { background: var(--v-danger-tint); color: var(--v-danger-hover); }
.v-pill-neutral { background: var(--v-subtle); color: var(--v-muted); }
.v-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

.v-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--v-seg); flex-wrap: wrap; }
.v-seg > button { border: 0; background: transparent; color: var(--v-muted); padding: 7px 12px; border-radius: 9px; font: 600 var(--v-fs-sm)/1.2 var(--v-font); cursor: pointer; white-space: nowrap; }
.v-seg > button[aria-selected="true"], .v-seg > button[aria-checked="true"] { background: var(--v-surface); color: var(--v-primary-dark); box-shadow: 0 2px 8px -4px rgba(0,0,0,.3); }

.v-switch { position: relative; width: 38px; height: 22px; border: 0; border-radius: var(--v-r-pill); background: #cfdada; cursor: pointer; flex: none; }
.v-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.v-switch[aria-pressed="true"], .v-switch[aria-checked="true"] { background: var(--v-primary); }
.v-switch[aria-pressed="true"]::after, .v-switch[aria-checked="true"]::after { left: 19px; }

/* --------------------------------------------------------------------------
   6. Sélecteurs de langue — trois réglages qui ne doivent jamais se confondre
   -------------------------------------------------------------------------- */
/* 6a. Langue SIGNÉE (ASL / LSF) : capsule sombre, icône main, choix en jaune */
.v-signlang { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: var(--v-r-pill); background: var(--v-night); color: #fff; }
.v-signlang > i { font-size: 17px; color: var(--v-accent); }
.v-signlang-label { font: 500 var(--v-fs-sm)/1 var(--v-font); color: var(--v-night-text); white-space: nowrap; }
.v-signlang-opts { display: flex; gap: 2px; padding: 2px; border-radius: var(--v-r-pill); background: rgba(255,255,255,.08); }
.v-signlang-opts > button { border: 0; background: transparent; color: var(--v-night-text); padding: 5px 12px; border-radius: var(--v-r-pill); font: 700 var(--v-fs-sm)/1 var(--v-font); cursor: pointer; }
.v-signlang-opts > button[aria-checked="true"] { background: var(--v-accent); color: var(--v-night); }
@media (max-width: 719px) { .v-signlang-label { display: none; } }

/* 6b. Langue de l'INTERFACE (FR / EN) : discrète, texte gris + globe */
.v-uilang { display: inline-flex; align-items: center; gap: 6px; font: 600 var(--v-fs-sm)/1 var(--v-font); color: var(--v-muted); white-space: nowrap; }
.v-uilang i { font-size: 16px; }
.v-uilang a { color: var(--v-muted); } .v-uilang a[aria-current="true"] { color: var(--v-ink); }

/* 6c. Langue de TRADUCTION / VOIX (Live) : contrôle segmenté sombre — voir .v-seg-night */
.v-seg-night { display: inline-flex; gap: 2px; padding: 2px; border-radius: var(--v-r-pill); background: rgba(0,0,0,.25); }
.v-seg-night > button { border: 0; background: transparent; color: var(--v-night-text); padding: 5px 12px; border-radius: var(--v-r-pill); font: 600 var(--v-fs-sm)/1 var(--v-font); cursor: pointer; white-space: nowrap; }
.v-seg-night > button[aria-checked="true"], .v-seg-night > button[aria-selected="true"] { background: var(--v-accent); color: var(--v-night); }

/* --------------------------------------------------------------------------
   7. Champs
   -------------------------------------------------------------------------- */
.v-field { display: flex; flex-direction: column; gap: 6px; font: 600 var(--v-fs-sm)/1.3 var(--v-font); color: var(--v-muted); }
.v-input, .v-select { width: 100%; padding: 11px 13px; border: 1px solid var(--v-line); border-radius: var(--v-r-md); background: var(--v-surface); color: var(--v-ink); font: 500 14px/1.3 var(--v-font); transition: border-color var(--v-ease), box-shadow var(--v-ease); }
.v-input:focus, .v-select:focus { outline: none; border-color: var(--v-primary); box-shadow: 0 0 0 3px rgba(0,141,174,.14); }
.v-input[aria-invalid="true"] { border-color: var(--v-danger); }
.v-hint { font: 500 11.5px/1.5 var(--v-font); color: var(--v-muted); }
.v-error { font: 500 13px/1.5 var(--v-font); color: var(--v-danger); }
.v-search { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--v-line); border-radius: var(--v-r-md); color: var(--v-muted); background: var(--v-surface); }
.v-search input { border: 0; outline: none; background: transparent; flex: 1; min-width: 0; font: 500 13px var(--v-font); color: var(--v-ink); }
.v-check { width: 18px; height: 18px; accent-color: var(--v-primary); flex: none; }

/* --------------------------------------------------------------------------
   8. Cartes et grilles
   -------------------------------------------------------------------------- */
.v-card { background: var(--v-surface); border-radius: var(--v-r-lg); padding: var(--v-s-5); box-shadow: var(--v-shadow-card); display: flex; flex-direction: column; gap: var(--v-s-3); }
.v-card-head { display: flex; align-items: center; gap: var(--v-s-3); flex-wrap: wrap; }
.v-card-head > .v-actions { margin-left: auto; }
.v-metric { gap: 4px; padding: 18px 20px; }
.v-metric-label { display: flex; align-items: center; gap: 8px; font: 600 var(--v-fs-sm) var(--v-font); color: var(--v-muted); }
.v-metric-label i { font-size: 17px; color: var(--v-primary); }
.v-metric-value { font: 800 30px/1.1 var(--v-font); }
.v-grid-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.v-grid-2 { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: var(--v-s-5); }
@media (max-width: 1099px) { .v-grid-2 { grid-template-columns: minmax(0,1fr); } }
.v-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* --------------------------------------------------------------------------
   9. Tableaux (div en grille : lisibles et réorganisables sur mobile)
   -------------------------------------------------------------------------- */
.v-table-wrap { overflow-x: auto; }
.v-table { min-width: 560px; display: flex; flex-direction: column; }
.v-tr { display: grid; gap: 12px; padding: 11px 12px; border-top: 1px solid var(--v-track); font: 500 var(--v-fs-md)/1.4 var(--v-font); align-items: center; }
.v-tr.v-th { border-top: 0; padding: 8px 12px; font: 600 var(--v-fs-xs) var(--v-font); color: var(--v-muted); text-transform: uppercase; letter-spacing: .05em; }
.v-tr[role="button"] { cursor: pointer; border-radius: var(--v-r-sm); }
.v-tr[role="button"]:hover { background: var(--v-bg); }
.v-tr.is-warning { background: #fffbf3; }
/* gabarit de colonnes : style="grid-template-columns: 1.2fr 1fr 1.6fr .8fr" sur .v-th ET chaque .v-tr */

/* Barre de progression */
.v-progress { height: 8px; border-radius: var(--v-r-pill); background: var(--v-track); overflow: hidden; }
.v-progress > span { display: block; height: 100%; background: var(--v-success); border-radius: inherit; transition: width .3s; }
.v-progress.is-primary > span { background: var(--v-primary); }
.v-progress-sm { height: 5px; }
/* Segments de prises (5 par mot) */
.v-takes { display: flex; gap: 5px; }
.v-takes > i { width: 22px; height: 8px; border-radius: 4px; background: var(--v-line); }
.v-takes > i.is-done { background: var(--v-success); }
@media (max-width: 719px) { .v-takes > i { width: 16px; } }

/* --------------------------------------------------------------------------
   10. Notes et verdicts (retour d'une prise, alertes, à traiter)
   -------------------------------------------------------------------------- */
.v-note { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: 12px; font: 500 13px/1.5 var(--v-font); }
.v-note > i { font-size: 24px; flex: none; }
.v-note-title { display: block; font: 700 14px/1.4 var(--v-font); }
.v-note-success { background: var(--v-success-tint); color: var(--v-success-ink); } .v-note-success > i { color: var(--v-success); } .v-note-success .v-note-title { color: var(--v-success-ink-2); }
.v-note-warning { background: var(--v-warning-tint); color: var(--v-warning-ink); } .v-note-warning > i { color: var(--v-warning); } .v-note-warning .v-note-title { color: var(--v-warning-ink-2); }
.v-note-info { background: var(--v-primary-tint); color: #2f4a50; } .v-note-info > i { color: var(--v-primary); } .v-note-info .v-note-title { color: var(--v-primary-dark); }
.v-note-danger { background: var(--v-danger-tint); color: var(--v-danger-hover); } .v-note-danger > i { color: var(--v-danger); }

/* --------------------------------------------------------------------------
   11. En-tête, navigation, barre latérale, tiroir, barre basse mobile
   -------------------------------------------------------------------------- */
.v-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px; height: 64px; padding: 0 28px; background: var(--v-surface); border-bottom: 1px solid var(--v-line); }
.v-header-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
@media (max-width: 719px) { .v-header { height: auto; padding: 12px 16px; gap: 10px; } .v-header-right { gap: 10px; } }

.v-brand { display: flex; align-items: center; gap: 10px; color: var(--v-ink); text-decoration: none; }
.v-brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--v-primary); color: #fff; display: flex; align-items: center; justify-content: center; font: 800 17px var(--v-font); flex: none; }
.v-brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.v-brand-name b { font: 700 16px var(--v-font); }
.v-brand-name span { font: 500 11px var(--v-font); color: var(--v-muted); white-space: nowrap; }
@media (max-width: 719px) { .v-brand-name { display: none; } }

.v-nav { display: flex; gap: 4px; }
.v-nav a { padding: 8px 14px; border-radius: 9px; font: 600 var(--v-fs-md) var(--v-font); color: var(--v-muted); }
.v-nav a:hover { background: var(--v-subtle); color: var(--v-ink); }
.v-nav a[aria-current="page"] { background: var(--v-primary-tint); color: var(--v-primary-dark); }
@media (max-width: 719px) { .v-nav { display: none; } }

/* Barre latérale (panel 256px, collecte 288px) */
.v-side { width: 256px; flex: none; background: var(--v-surface); border-right: 1px solid var(--v-line); display: flex; flex-direction: column; min-height: 0; }
.v-side.is-words { width: 288px; }
.v-side-nav { flex: 1; min-height: 0; overflow: hidden auto; padding: 0 12px; display: flex; flex-direction: column; gap: 2px; }
.v-side-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--v-r-md); background: transparent; font: 500 14px var(--v-font); color: var(--v-ink); cursor: pointer; text-align: left; }
.v-side-item i { font-size: 19px; color: var(--v-muted); }
.v-side-item:hover { background: var(--v-subtle); }
.v-side-item[aria-current="page"], .v-side-item.is-active { background: var(--v-primary-tint); color: var(--v-primary-dark); font-weight: 600; box-shadow: inset 3px 0 0 var(--v-primary); }
.v-side-item[aria-current="page"] i, .v-side-item.is-active i { color: var(--v-primary); }
/* Sous 1024px (collecte) / 960px (panel) : la barre devient un tiroir */
@media (max-width: 1023px) {
  .v-side { position: fixed; top: 0; bottom: 0; left: 0; z-index: 60; width: min(320px, 86vw); border-right: 0; box-shadow: var(--v-shadow-pop); transform: translateX(-105%); transition: transform .25s ease; }
  .v-side.is-words { width: min(320px, 86vw); }
  .v-side.is-open { transform: none; }
}
.v-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(14,43,51,.45); }

/* Barre d'action basse (mobile) — le bouton d'enregistrement reste au pouce */
.v-bottombar { display: none; }
@media (max-width: 719px) {
  .v-bottombar { position: sticky; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(18px + env(safe-area-inset-bottom)); background: var(--v-surface); border-top: 1px solid var(--v-line); }
  .v-bottombar .v-btn-record { flex: 1; }
  .v-desktop-only { display: none !important; }
}
@media (min-width: 720px) { .v-mobile-only { display: none !important; } }

/* --------------------------------------------------------------------------
   12. Zones vidéo : exemple, retour caméra, surcouches
   -------------------------------------------------------------------------- */
.v-stage { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
@media (max-width: 719px) { .v-stage { grid-template-columns: minmax(0,1fr); gap: 12px; } }
.v-frame { position: relative; aspect-ratio: 4/3; border-radius: var(--v-r-lg); background: var(--v-cam); overflow: hidden; }
/* Repli pour les navigateurs sans `aspect-ratio` (Safari 14 et antérieurs) :
   sans hauteur, le cadre s'effondre et le retour caméra devient invisible —
   une page vide plutôt qu'un message, le pire des deux mondes. */
@supports not (aspect-ratio: 4 / 3) {
  .v-frame { height: 0; padding-top: 75%; }
}
.v-frame.is-example { background: var(--v-cam-example); }
.v-frame video, .v-frame canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-frame .is-mirror { transform: scaleX(-1); }
.v-frame.is-ready { box-shadow: inset 0 0 0 3px var(--v-success); }
.v-frame.is-recording { box-shadow: inset 0 0 0 3px var(--v-danger); }
.v-frame.is-warning { box-shadow: inset 0 0 0 3px var(--v-warning); }
.v-frame-label { display: flex; align-items: center; gap: 8px; font: 600 13px var(--v-font); }
.v-frame-label i { font-size: 17px; color: var(--v-primary); }
@media (max-width: 719px) { .v-frame-label { display: none; } }

.v-badge-cam { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--v-r-pill); font: 700 12px var(--v-font); white-space: nowrap; }
.v-badge-cam.is-hands { background: rgba(127,185,66,.92); color: var(--v-night); }
.v-badge-cam.is-none { background: rgba(0,0,0,.45); color: #cfe6ec; }
.v-badge-cam.is-rec { background: var(--v-danger); color: #fff; }
.v-badge-cam.is-rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: v-pulse 1s infinite; }

/* Promesse de confidentialité : TOUJOURS visible sur une caméra active */
.v-privacy { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--v-r-md); background: rgba(14,43,51,.85); color: #fff; font: 500 12px/1.4 var(--v-font); }
.v-privacy i { color: var(--v-accent); font-size: 15px; flex: none; }

/* Surcouche d'état sur la caméra : chargement, GPU absent, caméra refusée ou occupée */
.v-frame-overlay { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 32px; background: rgba(8,26,31,.94); color: #fff; }
.v-frame-overlay > i { font-size: 34px; color: var(--v-accent); }
.v-frame-overlay strong { font: 700 17px/1.3 var(--v-font); }
.v-frame-overlay p { font: 500 13.5px/1.6 var(--v-font); color: #cfe6ec; max-width: 42ch; }
.v-frame-overlay .is-spin { animation: v-spin 1s linear infinite; }
@media (max-width: 719px) { .v-frame-overlay { padding: 18px; } }

/* Absence de vidéo d'exemple (cas le plus fréquent) */
.v-noexample { aspect-ratio: 4/3; border-radius: var(--v-r-lg); background: var(--v-primary-tint); padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.v-noexample > i { font-size: 34px; color: var(--v-primary); }
.v-noexample strong { font: 700 17px/1.3 var(--v-font); color: var(--v-primary-dark); }
.v-noexample p { font: 500 13.5px/1.6 var(--v-font); color: #2f4a50; }
@media (max-width: 719px) { .v-noexample { aspect-ratio: auto; padding: 16px; } }

/* --------------------------------------------------------------------------
   13. Dialogues, toasts
   -------------------------------------------------------------------------- */
.v-dialog-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(14,43,51,.55); }
.v-dialog { width: 100%; max-width: 460px; max-height: 100%; overflow-y: auto; padding: 24px; border-radius: var(--v-r-xl); background: var(--v-surface); box-shadow: var(--v-shadow-dialog); display: flex; flex-direction: column; gap: 14px; }
.v-dialog-wide { max-width: 560px; }
.v-dialog-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--v-danger-tint); }
.v-dialog-icon i { font-size: 26px; color: var(--v-danger); }
.v-dialog-title { font: 700 19px/1.3 var(--v-font); }
.v-dialog-body { font: 500 14px/1.6 var(--v-font); color: var(--v-ink-2); }
.v-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

.v-toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 8px); display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; background: var(--v-ink); color: #fff; font: 600 13.5px var(--v-font); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.v-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.v-toast i { color: var(--v-success); }
.v-toast.is-error { background: var(--v-danger); } .v-toast.is-error i { color: #fff; }
@media (max-width: 719px) { .v-toast { bottom: 96px; } }

/* --------------------------------------------------------------------------
   14. Fond sombre (connexion colonne marque, Live)
   -------------------------------------------------------------------------- */
.v-night { background: var(--v-night-gradient); color: #fff; }
.v-night .v-meta, .v-night .v-kicker { color: var(--v-night-muted); }
.v-night-card { background: var(--v-night-surface); border-radius: var(--v-r-xl); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.v-night-nav { display: flex; gap: 22px; font: 600 var(--v-fs-md) var(--v-font); }
.v-night-nav a { color: var(--v-night-muted); padding: 6px 0; }
.v-night-nav a[aria-current="page"] { color: #fff; box-shadow: 0 2px 0 var(--v-accent); }
.v-chip-night { padding: 5px 11px; border-radius: var(--v-r-pill); background: rgba(255,255,255,.05); color: #7fa3ac; font: 600 13px var(--v-font); }
.v-chip-night.is-known { background: rgba(0,141,174,.35); color: #fff; }


/* ── Dialogue à en-tête nuit (première visite) ───────────────────────────
   Complément à .v-dialog : en-tête sur le dégradé de marque, et liste
   d'étapes numérotées. Reprend les jetons déjà définis plus haut. */
.v-dialog-head-night { background: var(--v-night-gradient); color: #fff;
  padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.v-dialog-head-night strong { font: 700 var(--v-fs-2xl)/1.3 var(--v-font); }
.v-kicker-night { font: 600 var(--v-fs-sm)/1 var(--v-font); color: var(--v-accent); }

.v-steps { list-style: none; margin: 0; padding: 0; counter-reset: v-step;
  display: flex; flex-direction: column; gap: 16px; }
.v-steps > li { counter-increment: v-step; display: flex; gap: 14px;
  align-items: flex-start; font: 500 var(--v-fs-base)/1.55 var(--v-font); color: var(--v-muted); }
.v-steps > li::before { content: counter(v-step); flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--v-primary-tint); color: var(--v-primary-dark);
  display: flex; align-items: center; justify-content: center;
  font: 700 var(--v-fs-sm)/1 var(--v-font); }
.v-steps > li > div { min-width: 0; }
.v-steps > li b { color: var(--v-ink); font-weight: 600; }
