/*
 * ═══════════════════════════════════════════════════════════════════════════
 *  Console d'administration — socle visuel commun (préfixe fvc-)
 * ═══════════════════════════════════════════════════════════════════════════
 *
 *  Un seul fichier source, organisé en : jetons → raccord Bootstrap/Sneat →
 *  composants → utilitaires → héritage. Il s'applique à TOUTES les pages
 *  bâties sur base.html.twig ; les règles réservées à la console portent
 *  `body.fvc-admin`.
 *
 *  Historique :
 *   - audit UI/UX du 14/11/2026 : en-tête compact, quatre indicateurs,
 *     statuts, tableaux (sections 2 à 13) ;
 *   - refonte UI/UX du 18/11/2026, lot 1 : jetons clair/sombre calculés
 *     (contrastes ≥ 4,5:1), raccord des variables Bootstrap aux jetons,
 *     suppression du <style> de base.html.twig (règle « attrape-tout »
 *     `html.dark-style [class*="-card"]`), replis `var(--bs-card-bg, #fff)`
 *     remplacés par les jetons dans les gabarits (tools/ui-refonte/).
 *
 *  Le préfixe `fvc-` est neuf : `fiavia.css` déclare déjà `.fv-page-header`
 *  et `.fv-kpi-*`, on ne les réemploie pas ; ses jetons `--fv-*` pointent
 *  désormais sur les jetons `--fvc-*` ci-dessous.
 */

/* ═══════════════════════════════════════════════════════════════════════════
   A. Jetons — contrastes calculés, tous ≥ 4,5:1 sur les trois fonds
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  /* Fonds et bordures */
  --fvc-bg:            #f7f7f9;
  --fvc-surface:       #ffffff;
  --fvc-surface-2:     #f3f4f8;
  --fvc-border:        #e3e5ee;

  /* Textes : 14,3:1 · 12,4:1 · 5,8:1 (5,2:1 sur surface-2) · liens 6,1:1 */
  --fvc-heading:       #1f2a44;
  --fvc-text:          #2f3349;
  --fvc-muted:         #5e6678;
  --fvc-link:          #4a50d8;

  /* Action principale : texte blanc dessus 5,2:1 */
  --fvc-primary:       #565ce6;
  --fvc-primary-hover: #4a50d8;
  --fvc-primary-rgb:   86, 92, 230;
  --fvc-focus:         0 0 0 3px rgba(86, 92, 230, .28);

  /* En-tête de page (barre latérale et barre du haut : même famille) */
  --fvc-header-bg:     #1f2a44;
  --fvc-header-text:   #ffffff;
  --fvc-header-muted:  rgba(255, 255, 255, .78);
  --fvc-accent:        #7c83ff;

  /* Géométrie et typographie : rien sous 12 px */
  --fvc-radius:        8px;
  --fvc-radius-lg:     12px;
  --fvc-control-h:     40px;
  --fvc-control-h-sm:  34px;
  --fvc-font:          14px;
  --fvc-font-sm:       13px;
  --fvc-font-xs:       12px;
  --fvc-shadow:        0 1px 2px rgba(31, 42, 68, .06);

  /* Tons d'état : texte sur fond pâle (≥ 5,4:1), et ton saturé pour les
     icônes, liserés et séries de graphiques (lisible sur les deux thèmes). */
  --fvc-green:   #166534;  --fvc-green-bg:  #e7f6ec;  --fvc-green-tone:  #22c55e;
  --fvc-orange:  #a04a0a;  --fvc-orange-bg: #fdf1e1;  --fvc-orange-tone: #f59e0b;
  --fvc-red:     #b91c1c;  --fvc-red-bg:    #fde8e8;  --fvc-red-tone:    #ef4444;
  --fvc-gray:    #4b5563;  --fvc-gray-bg:   #eef0f3;  --fvc-gray-tone:   #94a3b8;
  --fvc-blue:    #1d4ed8;  --fvc-blue-bg:   #e6eefc;  --fvc-blue-tone:   #3b82f6;
  --fvc-violet:  #6d28d9;  --fvc-violet-bg: #efe9fd;  --fvc-violet-tone: #8b5cf6;

  /* Fonds pleins sous un texte blanc (≥ 4,6:1), identiques sur les deux
     thèmes : boutons de ton, badges pleins. */
  --fvc-green-solid:  #15803d;  --fvc-orange-solid: #b45309;  --fvc-red-solid:  #b91c1c;
  --fvc-blue-solid:   #1d4ed8;  --fvc-violet-solid: #6d28d9;  --fvc-gray-solid: #4b5563;

  /* Alertes : ton à 10 % sur la surface, texte --fvc-text (≥ 10,8:1) */
  --fvc-alert-green-bg:  #e9f9ef;
  --fvc-alert-orange-bg: #fef5e7;
  --fvc-alert-red-bg:    #fdecec;
  --fvc-alert-gray-bg:   #f4f6f8;
  --fvc-alert-blue-bg:   #ebf3fe;
  --fvc-alert-violet-bg: #f3effe;
}

/* Sombre : aligné sur la palette de la barre latérale et de la barre du haut.
   Le thème pose `html.dark-style` (et `data-style="dark"`, sauf en mode
   « système » où l'attribut vaut `system`) : on cible d'abord la classe. */
html.dark-style, html[data-style="dark"] {
  --fvc-bg:            #282a42;
  --fvc-surface:       #30334e;
  --fvc-surface-2:     #3a3d5c;
  --fvc-border:        #4a4d6a;

  /* 10,9:1 · 8,6:1 · 5,5:1 (4,7:1 sur surface-2) · liens 5,6:1 (4,8:1) */
  --fvc-heading:       #f0f0fa;
  --fvc-text:          #d5d6ea;
  --fvc-muted:         #a9abc6;
  --fvc-link:          #a5a8ff;

  --fvc-header-bg:     #151d33;
  --fvc-shadow:        0 1px 2px rgba(0, 0, 0, .25);

  /* Fonds d'état : ton à 18 % sur la surface (texte ≥ 5,5:1) */
  --fvc-green:   #86efac;  --fvc-green-bg:  #2d4d51;
  --fvc-orange:  #fcd34d;  --fvc-orange-bg: #534642;
  --fvc-red:     #fca5a5;  --fvc-red-bg:    #52364c;
  --fvc-gray:    #cbd5e1;  --fvc-gray-bg:   #424761;
  --fvc-blue:    #bfdbfe;  --fvc-blue-bg:   #32416c;
  --fvc-violet:  #ddd6fe;  --fvc-violet-bg: #403a6c;

  /* Alertes : ton à 16 % (texte ≥ 6,5:1) */
  --fvc-alert-green-bg:  #2e4a51;
  --fvc-alert-orange-bg: #504443;
  --fvc-alert-red-bg:    #4f364c;
  --fvc-alert-gray-bg:   #40455f;
  --fvc-alert-blue-bg:   #324069;
  --fvc-alert-violet-bg: #3f3a69;
}

/* ═══════════════════════════════════════════════════════════════════════════
   B. Raccord Bootstrap / Sneat → jetons
   ═══════════════════════════════════════════════════════════════════════════
   Le thème définit ses couleurs par composant (`.card { --bs-card-bg: #fff }`,
   `.text-muted { color: #a8aab4 !important }`) et non sur :root : d'où le
   repli blanc de `var(--bs-card-bg, #fff)` en sombre (C1) et les gris trop
   pâles en clair (C5). Ces règles, chargées après core.css et
   theme-default.css, redirigent chaque composant vers les jetons. Les
   `!important` ci-dessous ne masquent rien : ils répondent à ceux du thème
   sur ses propres utilitaires (.text-*, .bg-label-*).
   Spécificité : chaque sélecteur est préfixé de `html` parce que le thème
   AJOUTE core-dark.css et theme-default-dark.css en fin de <head> au
   basculement en sombre, donc APRÈS ce fichier ; sans ce préfixe, le raccord
   perdrait en sombre contre les règles de même poids du thème. */
html:root, html.dark-style, html[data-style="dark"] {
  --bs-body-bg:          var(--fvc-bg);
  --bs-body-color:       var(--fvc-text);
  --bs-heading-color:    var(--fvc-heading);
  --bs-emphasis-color:   var(--fvc-heading);
  --bs-secondary-color:  var(--fvc-muted);
  --bs-secondary-bg:     var(--fvc-surface-2);
  --bs-tertiary-bg:      var(--fvc-surface-2);
  --bs-border-color:     var(--fvc-border);
  --bs-link-color:       var(--fvc-link);
  --bs-link-hover-color: var(--fvc-primary-hover);
  --bs-card-bg:          var(--fvc-surface);
  --bs-paper-bg:         var(--fvc-surface);
}
html body { background-color: var(--fvc-bg); color: var(--fvc-text); }
html h1, html h2, html h3, html h4, html h5, html h6, html .h1, html .h2, html .h3, html .h4, html .h5, html .h6 { color: var(--fvc-heading); }
html a { color: var(--fvc-link); }
html a:hover { color: var(--fvc-primary-hover); }
html .footer-link, html .content-footer .footer-link, html .footer .footer-link { color: var(--fvc-link); }
html hr { border-color: var(--fvc-border); opacity: 1; }

html .text-muted, html .text-secondary { color: var(--fvc-muted) !important; }
html .text-body, html .text-heading, html .text-dark { color: var(--fvc-text) !important; }
html .text-primary { color: var(--fvc-link) !important; }
html .text-success { color: var(--fvc-green) !important; }
html .text-warning { color: var(--fvc-orange) !important; }
html .text-danger { color: var(--fvc-red) !important; }
html .text-info { color: var(--fvc-blue) !important; }

html .card {
  --bs-card-bg: var(--fvc-surface); --bs-card-color: var(--fvc-text);
  --bs-card-border-color: var(--fvc-border); --bs-card-cap-bg: var(--fvc-surface);
  --bs-card-cap-color: var(--fvc-heading); --bs-card-title-color: var(--fvc-heading);
  color: var(--fvc-text);
}
html .modal, html .modal-content {
  --bs-modal-bg: var(--fvc-surface); --bs-modal-color: var(--fvc-text);
  --bs-modal-border-color: var(--fvc-border); --bs-modal-header-border-color: var(--fvc-border);
  --bs-modal-footer-border-color: var(--fvc-border);
}
html .modal-content { background-color: var(--fvc-surface); color: var(--fvc-text); }
html .dropdown-menu {
  --bs-dropdown-bg: var(--fvc-surface); --bs-dropdown-color: var(--fvc-text);
  --bs-dropdown-link-color: var(--fvc-text); --bs-dropdown-link-hover-color: var(--fvc-heading);
  --bs-dropdown-link-hover-bg: var(--fvc-surface-2); --bs-dropdown-border-color: var(--fvc-border);
  --bs-dropdown-header-color: var(--fvc-muted); --bs-dropdown-divider-bg: var(--fvc-border);
}
html .offcanvas { --bs-offcanvas-bg: var(--fvc-surface); --bs-offcanvas-color: var(--fvc-text); }
html .popover { --bs-popover-bg: var(--fvc-surface); --bs-popover-body-color: var(--fvc-text); --bs-popover-header-color: var(--fvc-heading); --bs-popover-border-color: var(--fvc-border); }
html .toast { --bs-toast-bg: var(--fvc-surface); --bs-toast-color: var(--fvc-text); --bs-toast-border-color: var(--fvc-border); --bs-toast-header-color: var(--fvc-muted); }
html .accordion { --bs-accordion-bg: var(--fvc-surface); --bs-accordion-color: var(--fvc-text); --bs-accordion-border-color: var(--fvc-border); --bs-accordion-btn-color: var(--fvc-heading); --bs-accordion-active-color: var(--fvc-heading); }
html .list-group { --bs-list-group-bg: transparent; --bs-list-group-color: var(--fvc-text); --bs-list-group-border-color: var(--fvc-border); --bs-list-group-action-hover-bg: var(--fvc-surface-2); }

html .table {
  --bs-table-bg: transparent; --bs-table-color: var(--fvc-text);
  --bs-table-border-color: var(--fvc-border); --bs-table-striped-bg: var(--fvc-surface-2);
  --bs-table-hover-bg: var(--fvc-surface-2); --bs-table-hover-color: var(--fvc-text);
  color: var(--fvc-text);
}
html .table > :not(caption) > * > * { color: inherit; }

html .form-control, html .form-select, html .input-group-text {
  color: var(--fvc-text); background-color: var(--fvc-surface); border-color: var(--fvc-border);
}
html .input-group-text { background-color: var(--fvc-surface-2); color: var(--fvc-muted); }
html .form-control:focus, html .form-select:focus { color: var(--fvc-heading); background-color: var(--fvc-surface); border-color: var(--fvc-primary); box-shadow: var(--fvc-focus); }
html .form-control::placeholder { color: var(--fvc-muted); opacity: 1; }
html .form-control:disabled, html .form-control[readonly], html .form-select:disabled { background-color: var(--fvc-surface-2); color: var(--fvc-muted); }
html .form-label, html .col-form-label, html .form-check-label { color: var(--fvc-heading); }
html .form-text { color: var(--fvc-muted); }

/* Bouton principal : une seule couleur (5,2:1 sous un texte blanc) */
html .btn-primary, html .btn-primary:focus { color: #fff; background-color: var(--fvc-primary); border-color: var(--fvc-primary); }
html .btn-primary:hover, html .btn-primary:active, html .btn-primary.active, html .btn-check:checked + .btn-primary, html .show > .btn-primary.dropdown-toggle {
  color: #fff; background-color: var(--fvc-primary-hover); border-color: var(--fvc-primary-hover);
}
html .btn-outline-primary { color: var(--fvc-link); border-color: var(--fvc-primary); }
html .btn-outline-primary:hover, html .btn-outline-primary:active, html .btn-outline-primary.active, html .btn-check:checked + .btn-outline-primary { color: #fff; background-color: var(--fvc-primary); border-color: var(--fvc-primary); }
/* Choix coché d'un groupe segmenté (« 1 mois / 3 mois… ») : le thème le
   teinte avec !important (#666cff sur #f3f3ff, 4,07:1) ; seul un !important
   le remplace. Rendu plein, comme une pastille active. */
html .btn-check:checked + .btn-outline-primary { color: #fff !important; background-color: var(--fvc-primary) !important; border-color: var(--fvc-primary) !important; }
html .btn-label-primary { color: var(--fvc-link); background-color: rgba(var(--fvc-primary-rgb), .14); border-color: transparent; }
html .btn-label-primary:hover { color: #fff; background-color: var(--fvc-primary); }
html .btn-outline-secondary { color: var(--fvc-text); border-color: var(--fvc-border); }
html .btn-outline-secondary:hover { color: var(--fvc-heading); background-color: var(--fvc-surface-2); border-color: var(--fvc-muted); }
html .btn:focus-visible { outline: 0; box-shadow: var(--fvc-focus); }

/* Boutons de ton : fond plein constant, texte blanc. Plus de vert fluo. */
html .btn-success, html .btn-success:focus { color: #fff; background-color: var(--fvc-green-solid); border-color: var(--fvc-green-solid); }
html .btn-success:hover, html .btn-success:active, html .btn-success.active { color: #fff; background-color: #166534; border-color: #166534; }
html .btn-danger, html .btn-danger:focus { color: #fff; background-color: var(--fvc-red-solid); border-color: var(--fvc-red-solid); }
html .btn-danger:hover, html .btn-danger:active, html .btn-danger.active { color: #fff; background-color: #991b1b; border-color: #991b1b; }
html .btn-warning, html .btn-warning:focus { color: #fff; background-color: var(--fvc-orange-solid); border-color: var(--fvc-orange-solid); }
html .btn-warning:hover, html .btn-warning:active, html .btn-warning.active { color: #fff; background-color: #92400e; border-color: #92400e; }
html .btn-info, html .btn-info:focus { color: #fff; background-color: var(--fvc-blue-solid); border-color: var(--fvc-blue-solid); }
html .btn-info:hover, html .btn-info:active, html .btn-info.active { color: #fff; background-color: #1e40af; border-color: #1e40af; }
html .btn-secondary, html .btn-secondary:focus, html .btn-dark, html .btn-dark:focus { color: #fff; background-color: var(--fvc-gray-solid); border-color: var(--fvc-gray-solid); }
html .btn-secondary:hover, html .btn-secondary:active, html .btn-dark:hover, html .btn-dark:active { color: #fff; background-color: #374151; border-color: #374151; }
html .btn-light, html .btn-light:focus { color: var(--fvc-text); background-color: var(--fvc-surface-2); border-color: var(--fvc-border); }
html .btn-light:hover, html .btn-light:active { color: var(--fvc-heading); background-color: var(--fvc-border); border-color: var(--fvc-border); }
html .btn-outline-success { color: var(--fvc-green); border-color: var(--fvc-green-solid); }
html .btn-outline-success:hover { color: #fff; background-color: var(--fvc-green-solid); border-color: var(--fvc-green-solid); }
html .btn-outline-danger { color: var(--fvc-red); border-color: var(--fvc-red-solid); }
html .btn-outline-danger:hover { color: #fff; background-color: var(--fvc-red-solid); border-color: var(--fvc-red-solid); }
html .btn-outline-warning { color: var(--fvc-orange); border-color: var(--fvc-orange-solid); }
html .btn-outline-warning:hover { color: #fff; background-color: var(--fvc-orange-solid); border-color: var(--fvc-orange-solid); }
html .btn-outline-info { color: var(--fvc-blue); border-color: var(--fvc-blue-solid); }
html .btn-outline-info:hover { color: #fff; background-color: var(--fvc-blue-solid); border-color: var(--fvc-blue-solid); }
html .btn-outline-dark { color: var(--fvc-text); border-color: var(--fvc-gray-solid); }
html .btn-outline-dark:hover { color: #fff; background-color: var(--fvc-gray-solid); border-color: var(--fvc-gray-solid); }
html .btn-label-success { color: var(--fvc-green); background-color: var(--fvc-green-bg); border-color: transparent; }
html .btn-label-danger  { color: var(--fvc-red); background-color: var(--fvc-red-bg); border-color: transparent; }
html .btn-label-warning { color: var(--fvc-orange); background-color: var(--fvc-orange-bg); border-color: transparent; }
html .btn-label-info    { color: var(--fvc-blue); background-color: var(--fvc-blue-bg); border-color: transparent; }
html .btn-label-secondary, html .btn-label-dark { color: var(--fvc-gray); background-color: var(--fvc-gray-bg); border-color: transparent; }

/* Badges pleins du thème : fond plein constant sous un texte blanc ;
   variantes « subtle » de Bootstrap : fond pâle + texte du ton. */
html .badge.bg-primary   { background-color: var(--fvc-primary) !important; color: #fff; }
html .badge.bg-success   { background-color: var(--fvc-green-solid) !important; color: #fff; }
html .badge.bg-warning   { background-color: var(--fvc-orange-solid) !important; color: #fff; }
html .badge.bg-danger    { background-color: var(--fvc-red-solid) !important; color: #fff; }
html .badge.bg-info      { background-color: var(--fvc-blue-solid) !important; color: #fff; }
html .badge.bg-secondary, html .badge.bg-dark { background-color: var(--fvc-gray-solid) !important; color: #fff; }
html .badge.bg-light     { background-color: var(--fvc-surface-2) !important; color: var(--fvc-text); }
html .bg-primary-subtle   { background-color: var(--fvc-violet-bg) !important; color: var(--fvc-violet); }
html .bg-success-subtle   { background-color: var(--fvc-green-bg) !important; color: var(--fvc-green); }
html .bg-warning-subtle   { background-color: var(--fvc-orange-bg) !important; color: var(--fvc-orange); }
html .bg-danger-subtle    { background-color: var(--fvc-red-bg) !important; color: var(--fvc-red); }
html .bg-info-subtle      { background-color: var(--fvc-blue-bg) !important; color: var(--fvc-blue); }
html .bg-secondary-subtle, html .bg-light-subtle, html .bg-dark-subtle { background-color: var(--fvc-gray-bg) !important; color: var(--fvc-gray); }

/* Code et touches : lisibles sur les deux thèmes (le rose du thème : 3,6:1) */
html code, html .code { color: var(--fvc-violet); background-color: var(--fvc-violet-bg); padding: 1px 5px; border-radius: 4px; font-size: max(12px, .92em); }
html pre { color: var(--fvc-text); background-color: var(--fvc-surface-2); border: 1px solid var(--fvc-border); border-radius: var(--fvc-radius); }
html pre code { background: transparent; color: inherit; padding: 0; }
html kbd { color: var(--fvc-heading); background-color: var(--fvc-surface-2); border: 1px solid var(--fvc-border); box-shadow: none; }

/* Pastilles du thème : fond pâle + texte du ton (les deux thèmes) */
html .bg-label-primary { background-color: var(--fvc-violet-bg) !important; color: var(--fvc-violet) !important; }
html .bg-label-success { background-color: var(--fvc-green-bg)  !important; color: var(--fvc-green)  !important; }
html .bg-label-warning { background-color: var(--fvc-orange-bg) !important; color: var(--fvc-orange) !important; }
html .bg-label-danger { background-color: var(--fvc-red-bg)    !important; color: var(--fvc-red)    !important; }
html .bg-label-info { background-color: var(--fvc-blue-bg)   !important; color: var(--fvc-blue)   !important; }
html .bg-label-secondary, html .bg-label-dark { background-color: var(--fvc-gray-bg) !important; color: var(--fvc-gray) !important; }

/* Alertes : fond = ton à 10 % (16 % en sombre), texte normal, liseré du ton */
html .alert { color: var(--fvc-text); border: 1px solid transparent; border-left-width: 4px; border-radius: var(--fvc-radius); }
html .alert-success { background-color: var(--fvc-alert-green-bg);  border-color: var(--fvc-green-tone); }
html .alert-warning { background-color: var(--fvc-alert-orange-bg); border-color: var(--fvc-orange-tone); }
html .alert-danger { background-color: var(--fvc-alert-red-bg);    border-color: var(--fvc-red-tone); }
html .alert-info, html .alert-primary { background-color: var(--fvc-alert-blue-bg); border-color: var(--fvc-blue-tone); }
html .alert-secondary, html .alert-light, html .alert-dark { background-color: var(--fvc-alert-gray-bg); border-color: var(--fvc-gray-tone); }
html .alert-success .alert-icon, html .alert-success > i { color: var(--fvc-green); }
html .alert-warning .alert-icon, html .alert-warning > i { color: var(--fvc-orange); }
html .alert-danger  .alert-icon, html .alert-danger  > i { color: var(--fvc-red); }
html .alert-info    .alert-icon, html .alert-info    > i { color: var(--fvc-blue); }
html .alert .alert-link { color: var(--fvc-link); }
html .alert-heading { color: var(--fvc-heading); }

/* Onglets et pastilles de navigation du thème (nav-tabs, nav-pills) */
html .nav-tabs { --bs-nav-tabs-border-color: var(--fvc-border); --bs-nav-tabs-link-active-bg: var(--fvc-surface); --bs-nav-tabs-link-active-color: var(--fvc-heading); --bs-nav-tabs-link-active-border-color: var(--fvc-border) var(--fvc-border) var(--fvc-surface); }
html .nav-tabs .nav-link, html .nav-pills .nav-link { color: var(--fvc-muted); text-transform: none; }
html .nav-tabs .nav-link:hover, html .nav-pills .nav-link:hover:not(.active) { color: var(--fvc-text); }
html .nav-tabs .nav-link.active, html .nav-tabs .nav-item.show .nav-link { color: var(--fvc-heading); background-color: var(--fvc-surface); border-color: var(--fvc-border) var(--fvc-border) var(--fvc-surface); box-shadow: inset 0 -2px 0 var(--fvc-primary); }
html .nav-pills .nav-link.active, html .nav-pills .show > .nav-link { color: #fff; background-color: var(--fvc-primary); }
/* Pastilles à la hauteur des champs (le thème leur donne 38 px) */
html .nav-pills .nav-link { min-height: var(--fvc-control-h); padding-top: 0; padding-bottom: 0; }
/* Le thème donne 1,25 rem de marge intérieure à tout .tab-content (prévu pour
   ses pages de démonstration) : dans une modale ou un formulaire, le premier
   champ se retrouvait en retrait des suivants (ALI-09). Le contenu d'un onglet
   s'aligne sur son conteneur ; les cartes qu'il contient ont leur propre marge. */
html .tab-content:not(.doc-example-content) { padding: 0; }

/* Fil d'Ariane du thème, pagination : plus rien sous 3:1 */
html .breadcrumb-item a { color: var(--fvc-muted); }
html .breadcrumb-item + .breadcrumb-item::before { color: var(--fvc-muted); }
html .breadcrumb-item.active { color: var(--fvc-text); }
html .page-link { color: var(--fvc-text); background-color: transparent; border-color: var(--fvc-border); }
html .page-link:hover { color: var(--fvc-heading); background-color: var(--fvc-surface-2); border-color: var(--fvc-border); }
html .page-item.active .page-link { color: #fff; background-color: var(--fvc-primary); border-color: var(--fvc-primary); }
html .page-item.disabled .page-link, html .page-item[disabled] .page-link { opacity: 1; color: var(--fvc-muted); background-color: transparent; }

/* DataTables (habillage commun ; la langue et la longueur sont dans fv-console.js) */
html .dataTables_wrapper .dataTables_length label, html .dataTables_wrapper .dataTables_filter label, html .dataTables_wrapper .dataTables_info { color: var(--fvc-muted); }
html .dataTables_wrapper .dataTables_filter input, html .dataTables_wrapper .dataTables_length select {
  color: var(--fvc-text); background-color: var(--fvc-surface); border: 1px solid var(--fvc-border);
}
html .dataTables_wrapper .dataTables_paginate .paginate_button.disabled, html .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover { color: var(--fvc-muted) !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   1. Fil d'Ariane + onglets des pages fusionnées (posés par base.html.twig)
   ═══════════════════════════════════════════════════════════════════════════ */
.fvc-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  font-size: 12.5px; color: var(--fvc-muted);
  margin: -4px 0 10px;
}
.fvc-crumbs a { color: var(--fvc-muted); text-decoration: none; }
.fvc-crumbs a:hover { color: var(--fvc-text); text-decoration: underline; }
.fvc-crumbs .fvc-crumb-sep { opacity: .55; font-size: 14px; }
.fvc-crumbs .fvc-crumb-current { color: var(--fvc-text); font-weight: 600; }

.fvc-tabs {
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--fvc-border);
  margin: 0 0 16px;
}
.fvc-tabs a {
  white-space: nowrap; padding: 8px 14px; font-size: 13.5px; font-weight: 600;
  color: var(--fvc-muted); text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.fvc-tabs::-webkit-scrollbar { display: none; }
.fvc-tabs.is-scrollable { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.fvc-tabs.is-scrollable.is-at-start { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.fvc-tabs.is-scrollable.is-at-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px); mask-image: linear-gradient(90deg, transparent, #000 28px); }
.fvc-tabs a:hover { color: var(--fvc-text); }
.fvc-tabs a.is-active { color: var(--fvc-text); border-bottom-color: var(--fvc-accent); }
.fvc-tabs .fvc-tab-count {
  display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 6px;
  border-radius: 99px; font-size: 12px; line-height: 18px; text-align: center;
  background: var(--fvc-gray-bg); color: var(--fvc-gray);
}
.fvc-tabs .fvc-tab-count.is-alert { background: var(--fvc-red-bg); color: var(--fvc-red); }

/* ═══════════════════════════════════════════════════════════════════════════
   2. En-tête de page compact (64 à 80 px)
   ═══════════════════════════════════════════════════════════════════════════ */
.fvc-page-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px;
  min-height: 64px; max-height: none;
  padding: 12px 18px;
  margin-bottom: 16px;
  background: var(--fvc-header-bg);
  color: var(--fvc-header-text);
  border-radius: 12px;
}
.fvc-page-header-text { min-width: 0; }
.fvc-page-header h1, .fvc-page-header .fvc-title {
  font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em;
  color: var(--fvc-header-text); margin: 0; line-height: 1.3;
}
.fvc-page-header .fvc-help { font-size: 13px; color: var(--fvc-header-muted); margin-top: 2px; }
.fvc-page-header .fvc-back { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--fvc-header-muted); text-decoration: none; margin-bottom: 2px; }
.fvc-page-header .fvc-back:hover { color: #fff; }
.fvc-page-header .fvc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fvc-page-header .btn-fvc {
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.26);
  font-weight: 600;
}
.fvc-page-header .btn-fvc:hover { background: rgba(255,255,255,.22); color: #fff; }
.fvc-page-header .btn-fvc-primary { background: var(--fvc-primary); color: #fff; border: 0; font-weight: 700; }
.fvc-page-header .btn-fvc-primary:hover { background: var(--fvc-primary-hover); color: #fff; }
.fvc-page-header .dropdown-menu { color: var(--fvc-text); }
/* Champs posés sur le fond sombre de l'en-tête : translucides, texte blanc
   (plus de bloc blanc en sombre) ; les options reprennent les jetons. */
.fvc-page-header .form-select,
.fvc-page-header .form-control,
.fvc-page-header .input-group-text {
  background-color: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35);
}
.fvc-page-header .form-control::placeholder { color: rgba(255,255,255,.7); }
.fvc-page-header .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
.fvc-page-header .form-select option { color: var(--fvc-text); background: var(--fvc-surface); }
.fvc-page-header .form-select:focus, .fvc-page-header .form-control:focus {
  background-color: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.7); box-shadow: none;
}
.fvc-page-header label { color: var(--fvc-header-muted); }

/* ═══════════════════════════════════════════════════════════════════════════
   3. Bandeaux hérités → en-tête compact
   ═══════════════════════════════════════════════════════════════════════════
   Chaque page avait son bandeau (`apay-hero`, `cl-hero`, `ws-hero`… 78
   variantes, 115 gabarits), avec son dégradé, sa salutation et ses cercles.
   Ces règles, limitées aux pages de la console (`body.fvc-admin`), les
   ramènent au gabarit commun. Le tableau de bord seul garde son grand
   bandeau : il porte la classe `fvc-keep-hero`.

   Spécificité (0,2,1) contre (0,1,0) pour les styles des pages : la règle
   commune l'emporte sans `!important` sur les dimensions, mais il en faut
   sur le fond, posé par les pages avec `!important` dans quelques cas. */
body.fvc-admin [class*="-hero"]:not([class*="-hero-"]):not(.fvc-keep-hero):not(.fvc-no-normalize) {
  background: var(--fvc-header-bg) !important;
  color: var(--fvc-header-text) !important;
  border: 0 !important;
  border-radius: 12px !important;
  padding: 12px 18px !important;
  min-height: 64px;
  box-shadow: none !important;
  margin-bottom: 16px !important;
}
body.fvc-admin [class*="-hero"]:not([class*="-hero-"]):not(.fvc-keep-hero):not(.fvc-no-normalize)::before,
body.fvc-admin [class*="-hero"]:not([class*="-hero-"]):not(.fvc-keep-hero):not(.fvc-no-normalize)::after {
  display: none !important;
}
body.fvc-admin :not(.fvc-keep-hero) > [class*="-hero-inner"] [class*="-hero-avatar"],
body.fvc-admin :not(.fvc-keep-hero) [class*="-hero-greeting"],
body.fvc-admin :not(.fvc-keep-hero) > [class*="-hero-avatar"] {
  display: none !important;
}
body.fvc-admin :not(.fvc-keep-hero) [class*="-hero-title"] {
  font-size: 1.2rem !important; line-height: 1.3 !important; margin: 0 0 2px !important;
  color: var(--fvc-header-text) !important;
}
/* Boutons des bandeaux hérités (`pk-hero-btn-primary`, `aorg-hero-btn-ok`…) :
   ils étaient blancs, posés avec !important dans chaque page — le dernier
   bloc clair en sombre après le lot 1. Même traitement que l'en-tête commun :
   le principal dans --fvc-primary, les autres translucides (lot 2). */
body.fvc-admin :not(.fvc-keep-hero) :is([class*="-hero-btn"], [class*="-hero-select"]):not(.fvc-no-normalize) {
  background: rgba(255,255,255,.12) !important; color: #fff !important;
  border: 1px solid rgba(255,255,255,.26) !important; box-shadow: none !important;
}
body.fvc-admin :not(.fvc-keep-hero) [class*="-hero-btn"]:not(.fvc-no-normalize):hover { background: rgba(255,255,255,.22) !important; color: #fff !important; }
body.fvc-admin :not(.fvc-keep-hero) :is([class*="-hero-btn-primary"], [class*="-hero-btn-ok"], [class*="-hero-btn-main"]):not(.fvc-no-normalize) {
  background: var(--fvc-primary) !important; color: #fff !important; border-color: transparent !important;
}
body.fvc-admin :not(.fvc-keep-hero) :is([class*="-hero-btn-primary"], [class*="-hero-btn-ok"], [class*="-hero-btn-main"]):not(.fvc-no-normalize):hover { background: var(--fvc-primary-hover) !important; }
body.fvc-admin :not(.fvc-keep-hero) [class*="-hero-select"] option { color: var(--fvc-text); background: var(--fvc-surface); }
body.fvc-admin :not(.fvc-keep-hero) [class*="-hero-sub"] {
  font-size: 13px !important; color: var(--fvc-header-muted) !important; opacity: 1 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. Indicateurs — quatre au plus, sur une ligne, sans décor
   ═══════════════════════════════════════════════════════════════════════════ */
.fvc-kpis {
  display: grid; gap: 12px; margin-bottom: 16px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
/* Pas de carte seule sur sa rangée (ALI-06) : la macro pose is-n<nombre>. */
@media (min-width: 1200px) {
  .fvc-kpis.is-n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .fvc-kpis.is-n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fvc-kpis:is(.is-n7, .is-n8) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1600px) { .fvc-kpis.is-n6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 480px) { .fvc-kpis { grid-template-columns: 1fr 1fr; gap: 8px; } }
.fvc-kpi {
  position: relative; display: block;
  background: var(--fvc-surface); border: 1px solid var(--fvc-border); border-radius: 12px;
  padding: 12px 14px; color: var(--fvc-text); text-decoration: none;
  transition: border-color .15s ease;
}
a.fvc-kpi:hover { border-color: var(--fvc-accent); color: var(--fvc-text); }
.fvc-kpi-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--fvc-muted); }
.fvc-kpi-info { cursor: help; font-size: 14px; opacity: .8; }
.fvc-kpi-value { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.fvc-kpi-value small { font-size: .7em; font-weight: 600; color: var(--fvc-muted); }
.fvc-kpi-meta { font-size: 12px; color: var(--fvc-muted); margin-top: 2px; }
.fvc-kpi-def { font-size: 12px; color: var(--fvc-muted); margin-top: 6px; line-height: 1.35; }
.fvc-delta { font-weight: 700; font-size: 12px; }
.fvc-delta.is-up   { color: var(--fvc-green); }
.fvc-delta.is-down { color: var(--fvc-red); }
.fvc-delta.is-flat { color: var(--fvc-muted); }
.fvc-kpi.is-empty .fvc-kpi-value { color: var(--fvc-muted); }

/* ═══════════════════════════════════════════════════════════════════════════
   5. Statuts — un vocabulaire et une couleur par statut, partout
   ═══════════════════════════════════════════════════════════════════════════ */
.fvc-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 99px;
  font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.fvc-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fvc-status-green  { background: var(--fvc-green-bg);  color: var(--fvc-green); }
.fvc-status-orange { background: var(--fvc-orange-bg); color: var(--fvc-orange); }
.fvc-status-red    { background: var(--fvc-red-bg);    color: var(--fvc-red); }
.fvc-status-gray   { background: var(--fvc-gray-bg);   color: var(--fvc-gray); }
.fvc-status-blue   { background: var(--fvc-blue-bg);   color: var(--fvc-blue); }
.fvc-status-violet { background: var(--fvc-violet-bg); color: var(--fvc-violet); }
.fvc-status-strike { text-decoration: line-through; }

/* Badge « Nouveau » : violet clair. Le rouge est réservé aux alertes. */
.fvc-badge-new {
  display: inline-block; padding: 1px 7px; border-radius: 99px; margin-left: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  background: var(--fvc-violet-bg); color: var(--fvc-violet);
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. Tableaux
   ═══════════════════════════════════════════════════════════════════════════ */
.fvc-table-card { background: var(--fvc-surface); border: 1px solid var(--fvc-border); border-radius: 12px; overflow: hidden; }
.fvc-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--fvc-border);
}
.fvc-toolbar .fvc-search { flex: 1 1 240px; max-width: 420px; }
.fvc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fvc-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--fvc-border); color: var(--fvc-muted); text-decoration: none; background: transparent;
}
.fvc-chip:hover { color: var(--fvc-text); border-color: var(--fvc-muted); }
.fvc-chip.is-active { background: var(--fvc-header-bg); border-color: var(--fvc-header-bg); color: #fff; }
.fvc-chip .fvc-chip-n { font-weight: 700; opacity: .85; }
.fvc-table { width: 100%; margin: 0; font-size: 13px; }
.fvc-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--fvc-surface-2); color: var(--fvc-muted);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  padding: 10px 12px; border-bottom: 1px solid var(--fvc-border); white-space: nowrap;
}
.fvc-table tbody td { padding: 12px; height: 52px; border-bottom: 1px solid var(--fvc-border); vertical-align: middle; }
/* Téléphone : marges latérales de cellule réduites, deux à trois colonnes
   tiennent dans la carte sans défilement. */
@media (max-width: 575.98px) {
  table:is(.fvc-table, .fvc-dt) :is(thead th, tbody td) { padding-left: 8px; padding-right: 8px; }
}
.fvc-table tbody tr:last-child td { border-bottom: 0; }
.fvc-table tbody tr.fvc-row-link { cursor: pointer; }
.fvc-table tbody tr.fvc-row-link:hover td { background: var(--fvc-surface-2); }
.fvc-table .fvc-num, .fvc-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fvc-table .fvc-actions-col { text-align: right !important; white-space: nowrap; width: 1%; }
.fvc-pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px; border-top: 1px solid var(--fvc-border); font-size: 12.5px; color: var(--fvc-muted);
}
.fvc-pager .pagination { margin: 0; }
.fvc-pager > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.fvc-pager select { width: auto; display: inline-block; }

/* Squelette de chargement (lignes grises animées) */
.fvc-skeleton td::after {
  content: ''; display: block; height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, var(--fvc-gray-bg) 25%, rgba(148,163,184,.28) 50%, var(--fvc-gray-bg) 75%);
  background-size: 200% 100%; animation: fvc-shimmer 1.2s infinite linear;
}
@keyframes fvc-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ═══════════════════════════════════════════════════════════════════════════
   7. Zone Danger — actions destructrices séparées, confirmation saisie
   ═══════════════════════════════════════════════════════════════════════════ */
.fvc-danger-zone {
  border: 1px solid rgba(239, 68, 68, .45); border-radius: 12px; padding: 14px 16px; margin-top: 24px;
  background: var(--fvc-surface);
}
.fvc-danger-zone h2, .fvc-danger-zone .fvc-danger-title {
  font-size: 14px; font-weight: 700; color: var(--fvc-red); margin: 0 0 4px;
}
.fvc-danger-zone .fvc-danger-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-top: 1px solid var(--fvc-border);
}
.fvc-danger-zone .fvc-danger-row:first-of-type { border-top: 0; }
.fvc-danger-zone p { margin: 0; font-size: 13px; color: var(--fvc-muted); }

/* ═══════════════════════════════════════════════════════════════════════════
   8. Bandeau « connexion en tant que »
   ═══════════════════════════════════════════════════════════════════════════ */
.fvc-impersonation {
  position: sticky; top: 0; z-index: 1100;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
  padding: 8px 16px; background: #b45309; color: #fff; font-size: 13.5px; font-weight: 600;
}
.fvc-impersonation form { margin: 0; }
.fvc-impersonation .btn { min-height: var(--fvc-control-h-sm); padding: 0 12px; font-size: var(--fvc-font-sm); }

/* ═══════════════════════════════════════════════════════════════════════════
   9. Secrets masqués
   ═══════════════════════════════════════════════════════════════════════════ */
.fvc-secret {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Menlo', 'Consolas', monospace; font-size: 12px;
  background: var(--fvc-gray-bg); color: var(--fvc-gray); padding: 2px 8px; border-radius: 6px;
}
.fvc-secret button { border: 0; background: transparent; color: var(--fvc-blue); font: inherit; font-family: var(--bs-body-font-family); font-weight: 600; padding: 0; }
.fvc-secret.is-revealed { background: var(--fvc-orange-bg); color: var(--fvc-orange); }

/* ═══════════════════════════════════════════════════════════════════════════
   10. Liste courte (tableau de bord, « À traiter »)
   ═══════════════════════════════════════════════════════════════════════════ */
.fvc-card { background: var(--fvc-surface); border: 1px solid var(--fvc-border); border-radius: 12px; }
.fvc-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--fvc-border);
}
.fvc-card-title { font-size: 14px; font-weight: 700; margin: 0; }
.fvc-card-link { font-size: 12.5px; font-weight: 600; text-decoration: none; }
.fvc-card-body { padding: 12px 16px; }
.fvc-list { list-style: none; margin: 0; padding: 0; }
.fvc-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 16px; border-bottom: 1px solid var(--fvc-border); font-size: 13px;
}
.fvc-list li:last-child { border-bottom: 0; }
.fvc-list .fvc-list-main { min-width: 0; }
.fvc-list .fvc-list-title { font-weight: 600; color: var(--fvc-text); text-decoration: none; }
.fvc-list .fvc-list-sub { font-size: 12px; color: var(--fvc-muted); }

/* Tuiles de la file « À traiter » : vide = gris, non vide = couleur. */
.fvc-queue { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.fvc-queue a {
  display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none;
  border: 1px solid var(--fvc-border); background: var(--fvc-surface); color: var(--fvc-muted);
}
.fvc-queue a .fvc-queue-n { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.fvc-queue a .fvc-queue-l { font-size: 12.5px; font-weight: 600; }
.fvc-queue a.is-red    { background: var(--fvc-red-bg);    border-color: transparent; color: var(--fvc-red); }
.fvc-queue a.is-orange { background: var(--fvc-orange-bg); border-color: transparent; color: var(--fvc-orange); }
.fvc-queue a.is-blue   { background: var(--fvc-blue-bg);   border-color: transparent; color: var(--fvc-blue); }
.fvc-queue a.is-violet { background: var(--fvc-violet-bg); border-color: transparent; color: var(--fvc-violet); }

/* ═══════════════════════════════════════════════════════════════════════════
   11. Menu latéral : sections, pastilles, largeurs intermédiaires
   ═══════════════════════════════════════════════════════════════════════════ */
.fvc-menu-section > .menu-link > div { font-weight: 700; letter-spacing: .01em; }
.fvc-menu-badge {
  margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 99px;
  font-size: 12px; font-weight: 700; line-height: 18px; text-align: center;
}
.fvc-menu-badge-red    { background: #dc2626; color: #fff; }
.fvc-menu-badge-orange { background: var(--fvc-orange-bg); color: var(--fvc-orange); }
.fvc-menu-badge-blue   { background: var(--fvc-blue-bg); color: var(--fvc-blue); }
.fvc-menu-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #dc2626;
  margin-left: auto; margin-right: 6px; flex: 0 0 auto;
}

/* Le thème cache le menu sous 1 200 px (panneau latéral du navigateur
   ouvert, petit portable). On le garde visible dès 1 024 px : mêmes règles
   que le bureau, sans le mode replié (dont les règles n'existent qu'à partir
   de 1 200 px). Le point de rupture JavaScript est abaissé en conséquence
   dans base.html.twig (Helpers.LAYOUT_BREAKPOINT). */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .layout-menu-fixed .layout-menu,
  .layout-menu-fixed .layout-menu.menu-vertical {
    transform: none !important; position: fixed !important; top: 0 !important; bottom: 0 !important;
    width: 16.25rem !important;
  }
  .layout-menu-fixed .layout-page,
  .layout-menu-fixed.layout-menu-collapsed .layout-page { padding-left: 16.25rem !important; }
  .layout-navbar .layout-menu-toggle,
  .layout-overlay, .drag-target { display: none !important; }
  .layout-menu .app-brand.fv-brand { display: flex !important; }
  .layout-menu .app-brand .fv-menu-toggle { display: none !important; }
  .layout-wrapper:not(.layout-horizontal) .menu-vertical .menu-sub .menu-icon { display: inline-block !important; }
  .layout-navbar.navbar-detached { width: calc(100% - 1.5rem * 2) !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   12. Divers
   ═══════════════════════════════════════════════════════════════════════════ */
/* Drapeaux en images (les émojis s'affichent en lettres « CI » sous Windows). */
.fvc-flag { display: inline-block; width: 1.25em; height: .94em; border-radius: 2px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

/* Le triangle ▶ du mode responsive de DataTables ne se pose plus par-dessus
   les avatars : on le remplace par un chevron discret, aligné. */
body.fvc-admin table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
body.fvc-admin table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
  content: "›" !important; color: var(--fvc-muted) !important; font-weight: 700; margin-right: .4em;
  position: static !important; box-shadow: none !important; background: none !important; border: 0 !important;
}

/* Champs date : une largeur minimale, pour ne plus lire « jj/ ». */
body.fvc-admin input[type="date"] { min-width: 150px; }
body.fvc-admin input[type="datetime-local"] { min-width: 200px; }
body.fvc-admin select.form-select { min-width: 0; text-overflow: ellipsis; }
body.fvc-admin .fvc-period select, body.fvc-admin .fvc-period input { min-width: 150px; }

/* ═══════════════════════════════════════════════════════════════════════════
   13. Abonnés & fidélité (Clients › Abonnés & fidélité)
   ═══════════════════════════════════════════════════════════════════════════ */
/* Rang : violet pour le podium. Le vert, l'orange et le rouge sont réservés
   aux statuts — un rang n'est pas un état. */
.fvc-rank {
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  min-width: 30px; padding: 2px 8px; border-radius: 99px;
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--fvc-gray-bg); color: var(--fvc-gray);
}
.fvc-rank.is-top { background: var(--fvc-violet-bg); color: var(--fvc-violet); }
.fvc-rank.is-top-1 { background: var(--fvc-violet); color: #fff; }
html[data-style="dark"] .fvc-rank.is-top-1, html.dark-style .fvc-rank.is-top-1 { color: #1f1147; }
.fvc-rank i { font-size: 13px; }
/* Neuf colonnes dans ~1 100 px : les valeurs ne se coupent pas, les
   sous-lignes grises (« il y a 19 j », « 7 cycles · 1 service ») et les
   en-têtes si. base.html.twig impose `table th, table td { white-space:
   nowrap !important }` à toute la console : on le lève ici, pour ce seul
   tableau, plutôt que de toucher une règle dont dépendent les autres pages. */
.fvc-table.fvc-subscribers thead th,
.fvc-table.fvc-subscribers tbody td { white-space: normal !important; }
.fvc-subscribers thead th { vertical-align: bottom; }
.fvc-subscribers td:nth-child(n+4) > div:first-child, .fvc-subscribers .fvc-rank, .fvc-subscribers .fvc-status { white-space: nowrap; }
.fvc-subscribers td:nth-child(2) { min-width: 160px; }
.fvc-subscribers td:nth-child(3) { min-width: 125px; }
.fvc-subscribers .fvc-sub-contact { max-width: 180px; }
.fvc-subscribers tbody td { padding-left: 10px; padding-right: 10px; }
.fvc-renewals { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.fvc-renewals-n { font-size: 15px; font-weight: 700; }
.fvc-renewals .fvc-badge-new { margin-left: 0; }
/* Barre fine : la longueur dit le nombre de renouvellements, relatif au
   premier du classement. Pas de couleur de série — une seule mesure. */
.fvc-renewals-bar { height: 4px; margin: 4px 0 3px auto; width: 96px; border-radius: 4px; background: var(--fvc-gray-bg); overflow: hidden; }
.fvc-renewals-bar > span { display: block; height: 100%; border-radius: 4px; background: var(--fvc-accent); }

/* ═══════════════════════════════════════════════════════════════════════════
   C. Composants communs — refonte UI/UX du 18/11/2026 (lot 2)
   ═══════════════════════════════════════════════════════════════════════════
   Un modèle par composant (section 4.2 du prompt de refonte) : en-tête de
   page, onglets, carte KPI, carte, barre de filtres, tableau, champ,
   boutons, pastilles, alertes, état vide, squelette, toasts, confirmation.
   Les gabarits partiels sont dans templates/components/ (page_header, card,
   toolbar) et les macros dans templates/components/_console.html.twig. */

/* Taille de base de la console : 14 px, rien sous 12 px */
body.fvc-admin { font-size: var(--fvc-font); }
body.fvc-admin small, body.fvc-admin .small, .fvc-card small, .fvc-card .small { font-size: var(--fvc-font-xs); }

/* Boutons : deux tailles (40 et 34 px), rayon 8 px, icône carrée. Limité au
   contenu et aux modales : la barre du haut garde les siens. */
:is(.content-wrapper, .modal, .offcanvas) .btn {
  --bs-btn-padding-y: 7px; --bs-btn-padding-x: 16px; --bs-btn-font-size: var(--fvc-font);
  --bs-btn-line-height: 1.5; --bs-btn-border-radius: var(--fvc-radius); --bs-btn-font-weight: 600;
  min-height: var(--fvc-control-h); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
:is(.content-wrapper, .modal, .offcanvas) :is(.btn-sm, .btn-group-sm > .btn) {
  --bs-btn-padding-y: 5px; --bs-btn-padding-x: 12px; --bs-btn-font-size: var(--fvc-font-sm);
  min-height: var(--fvc-control-h-sm);
}
:is(.content-wrapper, .modal, .offcanvas) :is(.btn-lg, .btn-group-lg > .btn) {
  --bs-btn-padding-y: 7px; --bs-btn-padding-x: 20px; --bs-btn-font-size: var(--fvc-font); min-height: var(--fvc-control-h);
}
:is(.content-wrapper, .modal, .offcanvas) .btn-icon { width: var(--fvc-control-h); height: var(--fvc-control-h); padding: 0; min-height: 0; flex: 0 0 auto; }
:is(.content-wrapper, .modal, .offcanvas) .btn-icon.btn-sm { width: var(--fvc-control-h-sm); height: var(--fvc-control-h-sm); }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after {
  content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #fff; border-right-color: transparent; animation: fvc-spin .7s linear infinite;
}
.btn-outline-secondary.is-busy::after, .btn-light.is-busy::after, .btn-outline-primary.is-busy::after { border-color: var(--fvc-text); border-right-color: transparent; }
@keyframes fvc-spin { to { transform: rotate(360deg); } }

/* Focus visible sur tous les contrôles */
html :is(.btn, .form-control, .form-select, .form-check-input, .page-link, .dropdown-item, .nav-link, .fvc-chip, .fvc-tabs a, .fvc-kpi, .fvc-list-title):focus-visible {
  outline: 2px solid var(--fvc-primary); outline-offset: 2px; box-shadow: none;
}

/* Champs : 40 px partout (34 en compact), rayon 8 px */
html .form-control, html .form-select { min-height: var(--fvc-control-h); padding: 7px 12px; font-size: var(--fvc-font); line-height: 1.5; border-radius: var(--fvc-radius); }
/* Le thème cible `html:not([dir=rtl]) .form-select` (0,2,1) ET le Template
   Customizer ré-insère core.css en fin de <head>, après ce fichier : il faut
   un poids supérieur, pas seulement un ordre. */
html:not([dir=rtl]) .form-select:not([multiple]), html[dir=rtl] .form-select:not([multiple]) { padding: 7px 36px 7px 12px; background-position: right 12px center; }
html:not([dir=rtl]) .form-select:not([multiple]):focus, html[dir=rtl] .form-select:not([multiple]):focus { padding: 6px 35px 6px 11px; }
html .form-control:not(textarea):focus { padding: 6px 11px; }
/* Le thème pose `.form-select.form-select-sm` (0,2,0) : poids (0,2,1) ici. */
html .form-control.form-control-sm, html .form-select.form-select-sm, html .input-group-sm > .form-control, html .input-group-sm > .form-select { min-height: var(--fvc-control-h-sm); height: auto; padding: 5px 10px; font-size: var(--fvc-font-sm); line-height: 1.5; }
html:not([dir=rtl]) .form-select-sm:not([multiple]), html[dir=rtl] .form-select-sm:not([multiple]) { padding: 5px 32px 5px 10px; }
html:not([dir=rtl]) .form-select-sm:not([multiple]):focus, html[dir=rtl] .form-select-sm:not([multiple]):focus { padding: 4px 31px 4px 9px; }
html .form-control-sm:not(textarea):focus { padding: 4px 9px; }
html textarea.form-control { min-height: 96px; height: auto; }
html .input-group-text { padding: 0 12px; font-size: var(--fvc-font); border-radius: var(--fvc-radius); }
/* Le thème pose `html:not([dir=rtl]) .input-group-text` : poids (0,2,2) ici. */
html body .input-group .input-group-text { padding-top: 0; padding-bottom: 0; min-height: var(--fvc-control-h); line-height: 1.5; display: inline-flex; align-items: center; }
html body .input-group-sm .input-group-text { min-height: var(--fvc-control-h-sm); }
html body .input-group > .form-control:not(textarea), html body .input-group > .form-select { height: var(--fvc-control-h); }
html body .input-group-sm > .form-control:not(textarea), html body .input-group-sm > .form-select { height: var(--fvc-control-h-sm); }
html .input-group-sm > .input-group-text { font-size: var(--fvc-font-sm); }
html .form-label, html .col-form-label { font-size: var(--fvc-font-sm); font-weight: 600; text-transform: none; letter-spacing: 0; margin-bottom: 4px; }
html .form-text { font-size: var(--fvc-font-xs); }
html .form-check-input { width: 18px; height: 18px; margin-top: 2px; border-color: var(--fvc-muted); }
html .form-check-input:checked { background-color: var(--fvc-primary); border-color: var(--fvc-primary); }
html .form-switch .form-check-input { width: 34px; }

/* Champ de formulaire commun (macro fvc.field) */
.fvc-field { margin-bottom: 16px; }
.fvc-field .fvc-label { display: block; font-size: var(--fvc-font-sm); font-weight: 600; color: var(--fvc-heading); margin-bottom: 4px; }
.fvc-field .fvc-req { color: var(--fvc-red); font-weight: 700; }
.fvc-field .fvc-help-text { font-size: var(--fvc-font-xs); color: var(--fvc-muted); margin-top: 4px; }
.fvc-field .fvc-error { font-size: var(--fvc-font-xs); color: var(--fvc-red); margin-top: 4px; font-weight: 600; }
.fvc-field.has-error .form-control, .fvc-field.has-error .form-select { border-color: var(--fvc-red-solid); }
.fvc-field.has-error .form-control:focus, .fvc-field.has-error .form-select:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, .2); }
.fvc-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--fvc-border); }
.fvc-form-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.fvc-form-grid > * { grid-column: span 12; }
@media (min-width: 768px) {
  .fvc-form-grid > .is-6 { grid-column: span 6; }
  .fvc-form-grid > .is-4 { grid-column: span 4; }
  .fvc-form-grid > .is-3 { grid-column: span 3; }
  .fvc-form-grid > .is-8 { grid-column: span 8; }
}

/* Carte : en-tête (titre, sous-titre, actions), corps, pied, liseré de ton */
.fvc-card-head-text { min-width: 0; }
.fvc-card-sub { font-size: var(--fvc-font-xs); color: var(--fvc-muted); margin-top: 2px; }
.fvc-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 0 0 auto; }
.fvc-card-body.is-flush { padding: 0; }
.fvc-card-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 16px; border-top: 1px solid var(--fvc-border); font-size: var(--fvc-font-sm); color: var(--fvc-muted);
}
.fvc-card-tone-green  { border-left: 4px solid var(--fvc-green-tone); }
.fvc-card-tone-orange { border-left: 4px solid var(--fvc-orange-tone); }
.fvc-card-tone-red    { border-left: 4px solid var(--fvc-red-tone); }
.fvc-card-tone-blue   { border-left: 4px solid var(--fvc-blue-tone); }
.fvc-card-tone-violet { border-left: 4px solid var(--fvc-violet-tone); }
.fvc-card-tone-gray   { border-left: 4px solid var(--fvc-gray-tone); }
@media (max-width: 575.98px) {
  .fvc-card-head { flex-wrap: wrap; }
  .fvc-card-head .fvc-card-actions { flex: 1 1 100%; }
}
.fvc-grid > .fvc-card { display: flex; flex-direction: column; }
.fvc-grid > .fvc-card > .fvc-card-body { flex: 1 1 auto; }

/* Barre de filtres : tout à 40 px, listes ≥ 160 px, compteur de résultats */
.fvc-toolbar .form-control, .fvc-toolbar .form-select, .fvc-toolbar .btn { min-height: var(--fvc-control-h); font-size: var(--fvc-font); }
.fvc-toolbar .form-control-sm, .fvc-toolbar .form-select-sm { padding: 7px 12px; }
.fvc-toolbar .form-select { min-width: 160px; width: auto; flex: 0 1 auto; }
.fvc-toolbar input[type="date"] { width: auto; }
.fvc-toolbar-count { margin-left: auto; font-size: var(--fvc-font-sm); color: var(--fvc-muted); white-space: nowrap; }
@media (max-width: 575.98px) {
  .fvc-toolbar .form-select, .fvc-toolbar .fvc-search { flex: 1 1 100%; max-width: none; width: 100%; }
  .fvc-toolbar-count { margin-left: 0; }
}

/* Tableau : colonne d'actions figée à droite, menu « ⋮ » */
.fvc-table .fvc-actions-col { position: sticky; right: 0; background: var(--fvc-surface); box-shadow: -8px 0 8px -8px rgba(15, 23, 42, .18); }
.fvc-table thead .fvc-actions-col { background: var(--fvc-surface-2); z-index: 2; }
.fvc-table tbody tr.fvc-row-link:hover .fvc-actions-col { background: var(--fvc-surface-2); }
.fvc-row-actions { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; }

/* DataTables dans une carte : contrôles dans le padding, sur une ligne */
:is(body.fvc-admin, .fvc-card) .dataTables_wrapper > .row:first-child { padding: 10px 14px 6px; align-items: center; }
:is(body.fvc-admin, .fvc-card) .dataTables_wrapper > .row:last-child { padding: 8px 14px 10px; align-items: center; }
:is(body.fvc-admin, .fvc-card) .dataTables_wrapper .dataTables_length label,
:is(body.fvc-admin, .fvc-card) .dataTables_wrapper .dataTables_filter label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fvc-font-sm); color: var(--fvc-muted); }
:is(body.fvc-admin, .fvc-card) .dataTables_wrapper .dataTables_length select { min-height: var(--fvc-control-h-sm); padding: 4px 28px 4px 10px; border-radius: var(--fvc-radius); font-size: var(--fvc-font-sm); }
:is(body.fvc-admin, .fvc-card) .dataTables_wrapper .dataTables_filter input { min-height: var(--fvc-control-h-sm); margin: 0; border-radius: var(--fvc-radius); font-size: var(--fvc-font-sm); min-width: 220px; }
:is(body.fvc-admin, .fvc-card) .dataTables_wrapper .dataTables_filter { text-align: right; }
:is(body.fvc-admin, .fvc-card) .dataTables_wrapper .dataTables_info { padding: 0; font-size: var(--fvc-font-sm); color: var(--fvc-muted); }
:is(body.fvc-admin, .fvc-card) .dataTables_wrapper .dataTables_paginate { padding: 0; }
:is(body.fvc-admin, .fvc-card) .dataTables_wrapper .dataTables_paginate .pagination { margin: 0; justify-content: flex-end; }
:is(body.fvc-admin, .fvc-card) .dataTables_wrapper .dataTables_paginate .page-link { min-width: 34px; height: 34px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; font-size: var(--fvc-font-sm); }
:is(body.fvc-admin, .fvc-card) table.dataTable { margin: 0 !important; }
@media (max-width: 767.98px) {
  :is(body.fvc-admin, .fvc-card) .dataTables_wrapper .dataTables_filter { text-align: left; margin-top: 6px; }
  :is(body.fvc-admin, .fvc-card) .dataTables_wrapper .dataTables_paginate .pagination { justify-content: flex-start; margin-top: 6px; }
}

/* Alertes : fond du ton à 10 % (16 % en sombre), texte normal, icône et liseré du ton */
.fvc-alert {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px;
  padding: 12px 14px; border-radius: var(--fvc-radius); border: 1px solid transparent; border-left-width: 4px;
  color: var(--fvc-text); font-size: var(--fvc-font-sm); line-height: 1.5;
}
.fvc-alert > i { font-size: 18px; line-height: 1.2; flex: 0 0 auto; }
.fvc-alert > div { min-width: 0; }
.fvc-alert-title { display: block; color: var(--fvc-heading); margin-bottom: 2px; }
.fvc-alert a { color: var(--fvc-link); font-weight: 600; }
.fvc-alert-green  { background: var(--fvc-alert-green-bg);  border-color: var(--fvc-green-tone); }  .fvc-alert-green  > i { color: var(--fvc-green); }
.fvc-alert-orange { background: var(--fvc-alert-orange-bg); border-color: var(--fvc-orange-tone); } .fvc-alert-orange > i { color: var(--fvc-orange); }
.fvc-alert-red    { background: var(--fvc-alert-red-bg);    border-color: var(--fvc-red-tone); }    .fvc-alert-red    > i { color: var(--fvc-red); }
.fvc-alert-blue   { background: var(--fvc-alert-blue-bg);   border-color: var(--fvc-blue-tone); }   .fvc-alert-blue   > i { color: var(--fvc-blue); }
.fvc-alert-gray   { background: var(--fvc-alert-gray-bg);   border-color: var(--fvc-gray-tone); }   .fvc-alert-gray   > i { color: var(--fvc-gray); }
.fvc-alert-violet { background: var(--fvc-alert-violet-bg); border-color: var(--fvc-violet-tone); } .fvc-alert-violet > i { color: var(--fvc-violet); }

/* État vide (modèle : « Erreurs d'onboarding », « Désinscriptions ») */
.fvc-empty { padding: 32px 16px; text-align: center; color: var(--fvc-muted); font-size: var(--fvc-font-sm); }
.fvc-empty-icon { display: block; font-size: 28px; line-height: 1; color: var(--fvc-muted); opacity: .7; margin-bottom: 8px; }
.fvc-empty-title { font-size: var(--fvc-font); font-weight: 600; color: var(--fvc-heading); margin-bottom: 2px; }
.fvc-empty-text { margin: 0 auto 12px; max-width: 420px; }

/* Squelette hors tableau */
.fvc-skeleton-block {
  height: 12px; border-radius: 6px; margin: 6px 0;
  background: linear-gradient(90deg, var(--fvc-gray-bg) 25%, rgba(148,163,184,.28) 50%, var(--fvc-gray-bg) 75%);
  background-size: 200% 100%; animation: fvc-shimmer 1.2s infinite linear;
}

/* Toasts : un modèle pour succès et erreur, en haut à droite */
.fvc-toasts {
  position: fixed; top: 16px; right: 16px; z-index: 1090;
  display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100vw - 32px));
}
.fvc-toast {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 10px 12px 14px; border-radius: var(--fvc-radius-lg);
  background: var(--fvc-surface); color: var(--fvc-text);
  border: 1px solid var(--fvc-border); border-left: 4px solid var(--fvc-blue-tone);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .18); font-size: var(--fvc-font-sm); line-height: 1.5;
  animation: fvc-toast-in .2s ease-out;
}
.fvc-toast > i { font-size: 18px; line-height: 1.2; flex: 0 0 auto; color: var(--fvc-blue); }
.fvc-toast-green  { border-left-color: var(--fvc-green-tone); }  .fvc-toast-green  > i { color: var(--fvc-green); }
.fvc-toast-orange { border-left-color: var(--fvc-orange-tone); } .fvc-toast-orange > i { color: var(--fvc-orange); }
.fvc-toast-red    { border-left-color: var(--fvc-red-tone); }    .fvc-toast-red    > i { color: var(--fvc-red); }
.fvc-toast-body { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.fvc-toast-close { flex: 0 0 auto; border: 0; background: transparent; color: var(--fvc-muted); font-size: 20px; line-height: 1; padding: 0 2px; cursor: pointer; }
.fvc-toast-close:hover { color: var(--fvc-heading); }
.fvc-toast.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
@keyframes fvc-toast-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 575.98px) { .fvc-toasts { top: 8px; right: 8px; left: 8px; width: auto; } }

/* Modale de confirmation (window.fvcConfirm) */
.fvc-confirm .modal-body { font-size: var(--fvc-font-sm); color: var(--fvc-text); }
.fvc-confirm .fvc-confirm-text { white-space: pre-line; }
/* Champ JSON en rubriques clé / valeur (fv-console.js §11) */
.fvc-kv-editor { display: grid; gap: 8px; }
.fvc-kv-rows { display: grid; gap: 8px; }
.fvc-kv-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto; gap: 8px; align-items: start; }
.fvc-kv-hint { font-size: var(--fvc-font-xs); color: var(--fvc-muted); padding: 2px 2px 0; min-height: 0; }
.fvc-kv-hint:empty { display: none; }
.fvc-kv-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 575.98px) { .fvc-kv-row { grid-template-columns: minmax(0, 1fr) auto; } .fvc-kv-row > :nth-child(2) { grid-column: 1; } .fvc-kv-row > :nth-child(3) { grid-row: 1; grid-column: 2; } }
/* Menu « Nouveau » du tableau de bord : le parcours complet en tête (UX-01) */
.fvc-new-menu { min-width: 300px; }
.fvc-new-menu .fvc-new-main { font-weight: 600; color: var(--fvc-heading); white-space: normal; }
.fvc-new-menu .fvc-new-sub { display: block; margin-left: 1.75rem; font-size: var(--fvc-font-xs, 12px); font-weight: 400; color: var(--fvc-muted); }
.fvc-new-menu .dropdown-header { font-size: 12px; font-weight: 700; color: var(--fvc-muted); text-transform: uppercase; letter-spacing: .03em; }

/* ═══════════════════════════════════════════════════════════════════════════
   D. Briques de migration — lot 3 (18/11/2026)
   ═══════════════════════════════════════════════════════════════════════════
   Ce que les pages redéfinissaient chacune à leur façon : tableau DataTables
   habillé comme fvc-table, avatar à initiale, tuile icône + valeur, liste
   clé/valeur, mise en page fiche (principal + colonne), pastille de compte,
   barre de filtres autonome. */

/* Tableau DataTables (.table.fvc-dt) : même habillage que .fvc-table, en
   gardant DataTables (tri, pagination à 25, responsive). */
.fvc-dt { width: 100%; margin: 0; font-size: var(--fvc-font-sm); }
.fvc-dt thead th {
  background: var(--fvc-surface-2); color: var(--fvc-muted);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  padding: 10px 12px; border-bottom: 1px solid var(--fvc-border); white-space: nowrap; vertical-align: middle;
}
.fvc-dt tbody td { padding: 12px; height: 52px; border-bottom: 1px solid var(--fvc-border); vertical-align: middle; }
.fvc-dt tbody tr:last-child td { border-bottom: 0; }
.fvc-dt tbody tr.fvc-row-link { cursor: pointer; }
.fvc-dt tbody tr.fvc-row-link:hover td { background: var(--fvc-surface-2); }
.fvc-dt .fvc-actions-col { position: sticky; right: 0; background: var(--fvc-surface); text-align: right !important; white-space: nowrap; width: 1%; box-shadow: -8px 0 8px -8px rgba(15, 23, 42, .18); }
.fvc-dt thead .fvc-actions-col { background: var(--fvc-surface-2); z-index: 2; }
.fvc-dt tbody tr:hover .fvc-actions-col { background: var(--fvc-surface-2); }
/* base.html.twig impose nowrap à toute cellule (héritage) ; dans les tableaux
   communs le texte se replie, sauf nombres, dates, statuts et actions
   (.fvc-num, .fvc-nowrap, .fvc-status, .fvc-actions-col). Le mode responsive
   de DataTables ne masque ainsi des colonnes qu'en dernier recours. */
.fvc-dt tbody td, .fvc-table tbody td { white-space: normal !important; }
.fvc-dt .fvc-nowrap, .fvc-table .fvc-nowrap, .fvc-dt .fvc-num, .fvc-table .fvc-num, .fvc-dt .fvc-status, .fvc-table .fvc-status { white-space: nowrap !important; }
/* Ligne cochée (sélection multiple : le script pose is-selected) */
.fvc-table tbody tr.is-selected > td, .fvc-dt tbody tr.is-selected > td { background: var(--fvc-blue-bg); }
/* Barre d'actions groupées, flottante en bas quand des lignes sont cochées */
.fvc-bulkbar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 1080; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: calc(100vw - 32px); padding: 10px 14px; background: var(--fvc-surface); color: var(--fvc-text); border: 1px solid var(--fvc-border); border-radius: var(--fvc-radius-lg); box-shadow: 0 8px 24px rgba(15, 23, 42, .18); font-size: var(--fvc-font-sm); }
.fvc-bulkbar[hidden] { display: none; }
.fvc-bulkbar .fvc-bulkbar-count { font-weight: 700; color: var(--fvc-heading); }
@media (min-width: 1024px) { .fvc-bulkbar { left: calc(50% + 8.125rem); } }
/* Ligne visée par une ancre (#ligne-12) ou par un script */
.fvc-table tr.is-targeted > td, .fvc-dt tr.is-targeted > td, .fvc-table tr:target > td, .fvc-dt tr:target > td { background: var(--fvc-violet-bg); }
.fvc-cell-main { font-weight: 600; color: var(--fvc-heading); }
/* Champs posés dans une cellule de tableau (édition d'une régie, rapprochement) */
.fvc-table td > :is(.form-control, .form-select), .fvc-dt td > :is(.form-control, .form-select) { min-width: 8.5rem; }
.fvc-cell-sub { font-size: var(--fvc-font-xs); color: var(--fvc-muted); margin-top: 1px; }
.fvc-cell-sub code { font-size: 12px; }

/* Avatar à initiale */
.fvc-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--fvc-violet-bg); color: var(--fvc-violet);
  font-weight: 700; font-size: 15px; text-transform: uppercase;
}
.fvc-avatar.is-sm { width: 28px; height: 28px; font-size: 12px; border-radius: 7px; }
.fvc-avatar.is-lg { width: 48px; height: 48px; font-size: 19px; border-radius: 12px; }
.fvc-avatar.is-round { border-radius: 50%; }
.fvc-avatar.is-green { background: var(--fvc-green-bg); color: var(--fvc-green); }
.fvc-avatar.is-orange { background: var(--fvc-orange-bg); color: var(--fvc-orange); }
.fvc-avatar.is-red { background: var(--fvc-red-bg); color: var(--fvc-red); }
.fvc-avatar.is-blue { background: var(--fvc-blue-bg); color: var(--fvc-blue); }
.fvc-avatar.is-gray { background: var(--fvc-gray-bg); color: var(--fvc-gray); }
.fvc-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* Tuile : icône dans un carré de ton + libellé + valeur (serveurs, déploiements…) */
.fvc-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 16px; }
.fvc-tile {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--fvc-surface); border: 1px solid var(--fvc-border); border-radius: var(--fvc-radius-lg);
  color: var(--fvc-text); text-decoration: none;
}
a.fvc-tile:hover { border-color: var(--fvc-accent); color: var(--fvc-text); }
.fvc-tile.is-active, .fvc-tile[aria-current] { border-color: var(--fvc-primary); box-shadow: 0 0 0 1px var(--fvc-primary); }
.fvc-tile-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 10px; font-size: 20px;
  background: var(--fvc-gray-bg); color: var(--fvc-gray);
}
.fvc-tile-icon.is-green { background: var(--fvc-green-bg); color: var(--fvc-green); }
.fvc-tile-icon.is-orange { background: var(--fvc-orange-bg); color: var(--fvc-orange); }
.fvc-tile-icon.is-red { background: var(--fvc-red-bg); color: var(--fvc-red); }
.fvc-tile-icon.is-blue { background: var(--fvc-blue-bg); color: var(--fvc-blue); }
.fvc-tile-icon.is-violet { background: var(--fvc-violet-bg); color: var(--fvc-violet); }
.fvc-tile-text { min-width: 0; }
.fvc-tile-label { display: block; font-size: var(--fvc-font-xs); font-weight: 600; color: var(--fvc-muted); }
.fvc-tile-value { display: block; font-size: 18px; font-weight: 800; line-height: 1.2; color: var(--fvc-heading); font-variant-numeric: tabular-nums; }
.fvc-tile-sub { display: block; font-size: var(--fvc-font-xs); color: var(--fvc-muted); }
/* Carte de choix : un label.fvc-tile qui contient une case ou un bouton radio */
label.fvc-tile { cursor: pointer; }
.fvc-tile:has(> .form-check-input:checked), .fvc-tile:has(.form-check-input:checked) { border-color: var(--fvc-primary); box-shadow: 0 0 0 1px var(--fvc-primary); }

/* Liste clé / valeur (fiches) */
.fvc-kv { display: grid; grid-template-columns: minmax(120px, 160px) minmax(0, 1fr); gap: 0; margin: 0; }
.fvc-kv > dt { font-size: var(--fvc-font-xs); font-weight: 600; color: var(--fvc-muted); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--fvc-border); }
.fvc-kv > dd { font-size: var(--fvc-font-sm); color: var(--fvc-text); padding: 8px 0; margin: 0; border-bottom: 1px solid var(--fvc-border); min-width: 0; overflow-wrap: anywhere; }
.fvc-kv > dt:last-of-type, .fvc-kv > dd:last-of-type { border-bottom: 0; }
.fvc-kv.is-compact > dt, .fvc-kv.is-compact > dd { padding-top: 5px; padding-bottom: 5px; }

/* Mise en page fiche : principal + colonne de 320 px (résumé, actions) */
.fvc-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 992px) { .fvc-layout { grid-template-columns: minmax(0, 1fr) 320px; } .fvc-layout > .fvc-aside.is-sticky { position: sticky; top: 80px; } }
.fvc-layout > * { min-width: 0; }

/* Pastille de compte (liste des organisations 115, onglet 12…) */
.fvc-count { display: inline-block; min-width: 20px; padding: 0 7px; border-radius: 99px; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; background: var(--fvc-gray-bg); color: var(--fvc-gray); vertical-align: middle; }
.fvc-count.is-violet { background: var(--fvc-violet-bg); color: var(--fvc-violet); }
.fvc-count.is-red { background: var(--fvc-red-bg); color: var(--fvc-red); }

/* Barre de filtres hors carte : sa propre surface */
.fvc-toolbar { background: var(--fvc-surface); border: 1px solid var(--fvc-border); border-radius: var(--fvc-radius-lg); margin-bottom: 16px; }
.fvc-table-card > .fvc-toolbar, .fvc-card > .fvc-toolbar, .fvc-card-body > .fvc-toolbar { border: 0; border-bottom: 1px solid var(--fvc-border); border-radius: 0; margin: 0; }

/* Titre de section hors carte (rare : une page qui empile des cartes) */
.fvc-section-title { font-size: 15px; font-weight: 700; color: var(--fvc-heading); margin: 20px 0 10px; }
.fvc-section-title:first-child { margin-top: 0; }

/* Grille de cartes (modules, serveurs, tuiles de médiathèque) */
.fvc-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.fvc-grid.is-wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* Barre d'ancres collante d'une fiche longue (fiche organisation) */
.fvc-anchors { position: sticky; top: 64px; z-index: 5; padding: 8px 0; margin-bottom: 8px; background: var(--fvc-bg); }
[id^="panel-"] { scroll-margin-top: 120px; }

/* Bloc préformaté borné (JSON, journal, erreur) */
.fvc-pre { margin: 0; padding: 10px 12px; max-height: 320px; overflow: auto; border: 1px solid var(--fvc-border); border-radius: var(--fvc-radius); background: var(--fvc-surface-2); color: var(--fvc-text); font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.fvc-pre.is-red { background: var(--fvc-alert-red-bg); border-color: var(--fvc-red-tone); }
.fvc-pre.is-tall { max-height: none; }

/* Petit bloc de progression (quota, usage) */
.fvc-progress { height: 6px; border-radius: 6px; background: var(--fvc-gray-bg); overflow: hidden; }
.fvc-progress > span { display: block; height: 100%; border-radius: 6px; background: var(--fvc-primary); }
.fvc-progress.is-green > span { background: var(--fvc-green-tone); }
.fvc-progress.is-orange > span { background: var(--fvc-orange-tone); }
.fvc-progress.is-red > span { background: var(--fvc-red-tone); }
.fvc-progress.is-gray > span { background: var(--fvc-gray-tone); }
.fvc-progress.is-violet > span { background: var(--fvc-violet-tone); }
.fvc-progress.is-blue > span { background: var(--fvc-blue-tone); }

/* ═══════════════════════════════════════════════════════════════════════════
   F. Classes posées par les scripts de page (lot 3)
   ═══════════════════════════════════════════════════════════════════════════
   Un script qui remplace `className` ne peut pas garder une classe de
   composant à côté : ces quelques classes reprennent le dessin du composant
   correspondant. */
/* Offre › Modules : état d'enregistrement du classement, poignée de glisser-déposer */
.pk-save { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.pk-save-pending { background: var(--fvc-gray-bg); color: var(--fvc-gray); }
.pk-save-ok      { background: var(--fvc-green-bg); color: var(--fvc-green); }
.pk-save-ko      { background: var(--fvc-red-bg); color: var(--fvc-red); }
.pk-grip { cursor: grab; }
.pk-grip:active { cursor: grabbing; }
.pk-row-dragging { opacity: .45; }
.pk-rows-dragging tbody tr:hover td { background: transparent; }

/* Onglets verticaux d'un formulaire (Général, Facturation) : ul.nav.nav-pills.flex-column.fvc-side-nav.
   Préfixe html : le thème recharge ses .nav-pills après ce fichier. */
html .fvc-side-nav .nav-link { color: var(--fvc-muted); font-weight: 600; margin-bottom: 4px; width: 100%; justify-content: flex-start; text-transform: none; }
html .fvc-side-nav .nav-link:hover:not(.active) { background-color: var(--fvc-surface-2); color: var(--fvc-text); }
html .fvc-side-nav .nav-link.active, html .fvc-side-nav .nav-link.active:hover, html .fvc-side-nav .nav-link.active:focus { background-color: var(--fvc-primary); color: #fff; box-shadow: none; }
@media (min-width: 992px) { .fvc-side-nav.is-sticky { position: sticky; top: 80px; } }
/* Libellé de groupe de champs, hors .fvc-field */
.fvc-label { display: block; font-size: var(--fvc-font-sm); font-weight: 600; color: var(--fvc-heading); margin-bottom: 4px; }

/* ═══════════════════════════════════════════════════════════════════════════
   G. Aperçu « écran de téléphone » (App commerciaux) — couleurs de MARQUE
   ═══════════════════════════════════════════════════════════════════════════
   Seule exception aux jetons : on prévisualise l'application mobile
   FiaViaCommerciaux dans son mode sombre (lib/utils/fiavia_color_scheme.dart),
   indépendamment du thème du panel. Une couleur de marque n'est pas un jeton ;
   elle vit ici, jamais dans un gabarit. Accent par data-accent. */
.fvc-phone {
  --fvc-phone-accent: #3DDC84;
  width: 100%; max-width: 300px; margin: 0 auto;
  border-radius: 24px; overflow: hidden;
  background: #161C1A; color: #F3F4F1;
  border: 8px solid #0C100F;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.fvc-phone[data-accent="green"] { --fvc-phone-accent: #3DDC84; }
.fvc-phone[data-accent="slate"] { --fvc-phone-accent: #94A3B8; }
.fvc-phone[data-accent="amber"] { --fvc-phone-accent: #F5A524; }
.fvc-phone[data-accent="red"]   { --fvc-phone-accent: #F87171; }
.fvc-phone-screen { padding: 20px 18px 8px; min-height: 330px; }
.fvc-phone .fvc-phone-img { width: 100%; height: 130px; object-fit: cover; border-radius: 14px; margin-bottom: 18px; display: block; }
.fvc-phone-icon {
  width: 76px; height: 76px; border-radius: 20px; margin: 6px auto 20px;
  display: flex; align-items: center; justify-content: center; font-size: 34px;
  color: var(--fvc-phone-accent); background: color-mix(in srgb, var(--fvc-phone-accent) 14%, transparent);
}
.fvc-phone .fvc-phone-title { font-size: 19px; font-weight: 700; line-height: 1.25; margin-bottom: 10px; overflow-wrap: anywhere; }
.fvc-phone .fvc-phone-desc { font-size: 13px; line-height: 1.5; color: #A8B0AC; margin-bottom: 14px; overflow-wrap: anywhere; }
.fvc-phone .fvc-phone-bullets { margin: 0; padding: 0; }
.fvc-phone .fvc-phone-bullets li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; margin-bottom: 8px; overflow-wrap: anywhere; }
.fvc-phone .fvc-phone-bullets li > i { color: var(--fvc-phone-accent); flex: 0 0 auto; }
.fvc-phone-cta {
  margin: 10px 14px 16px; border-radius: 99px; padding: 11px; text-align: center;
  font-weight: 700; font-size: 14px; color: #06130C; background: var(--fvc-phone-accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   H. Blog : pastille de couleur de donnée, zone de dépôt, calendrier,
      surlignage, diff de révisions (lot 3)
   ═══════════════════════════════════════════════════════════════════════════ */
/* [37-blog-articles, 38-blog-categories] Pastille de couleur d'une catégorie.
   La couleur est une DONNÉE choisie par la rédaction (champ `color` de la
   catégorie, « repérage interne »), pas une couleur de thème : le gabarit la
   passe par une propriété personnalisée (style="--fvc-swatch:#0B7A46"), la
   règle fait le reste. Sans couleur : gris du thème. */
.fvc-swatch {
  display: inline-block; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%;
  background: var(--fvc-swatch, var(--fvc-gray-bg)); border: 1px solid var(--fvc-border);
  vertical-align: middle;
}

/* [41-blog-mediatheque] Zone de dépôt de fichier (label.fvc-dropzone autour
   d'un input[type=file]). Le script pose `is-active` pendant le survol d'un
   fichier glissé. La forme (bordure tiretée, rayon, padding) vient des
   utilitaires Bootstrap posés dans le gabarit ; ici seulement le curseur et
   l'état actif. Réutilisable par toute zone de dépôt (fiches, imports). */
.fvc-dropzone { cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.fvc-dropzone:hover { border-color: var(--fvc-muted); }
.fvc-dropzone.is-active { border-color: var(--fvc-primary); background: var(--fvc-blue-bg); }

/* [42-blog-calendrier] FullCalendar raccordé aux jetons (conteneur
   .fvc-calendar, qui reçoit aussi la classe .fc du composant). Les classes
   d'événement fv-cal-* sont posées par le flux JSON du serveur
   (AdminBlogCalendarController) : programmé, publié, parution à venir,
   sujet, en retard — mêmes tons que les pastilles de la légende.
   Les variables --fc-* sont celles de FullCalendar v6 (la feuille vendorisée
   n'est que l'habillage Vuexy ; le socle vit dans le bundle JS). */
.fvc-calendar {
  --fc-border-color: var(--fvc-border);
  --fc-page-bg-color: var(--fvc-surface);
  --fc-neutral-bg-color: var(--fvc-surface-2);
  --fc-neutral-text-color: var(--fvc-muted);
  --fc-today-bg-color: var(--fvc-blue-bg);
  --fc-event-text-color: var(--fvc-heading);
  --fc-list-event-hover-bg-color: var(--fvc-surface-2);
  --fc-button-bg-color: var(--fvc-surface);
  --fc-button-border-color: var(--fvc-border);
  --fc-button-text-color: var(--fvc-text);
  --fc-button-hover-bg-color: var(--fvc-surface-2);
  --fc-button-hover-border-color: var(--fvc-muted);
  --fc-button-active-bg-color: var(--fvc-primary);
  --fc-button-active-border-color: var(--fvc-primary);
}
/* Boutons de la barre du calendrier à 34 px (étaient 36–39 px), rayon 8 px,
   lisibles en sombre (le thème vendorisé posait #6d788d sur fond sombre). */
.fvc-calendar.fc .fc-toolbar .fc-button,
.fvc-calendar.fc .fc-toolbar .fc-button:not(.fc-next-button):not(.fc-prev-button) {
  min-height: var(--fvc-control-h-sm); height: var(--fvc-control-h-sm); padding: 0 12px;
  font-size: var(--fvc-font-sm); font-weight: 600; line-height: 1.5; text-transform: none;
  border-radius: 8px;
}
.fvc-calendar.fc .fc-toolbar .fc-button-group .fc-button { border-radius: 0; }
.fvc-calendar.fc .fc-toolbar .fc-button-group .fc-button:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.fvc-calendar.fc .fc-toolbar .fc-button-group .fc-button:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
/* Le thème vendorisé pose ses fonds de bouton en !important (transparent,
   violet à 5 % et 10 %) avec un texte #666cff : 4,2:1 au repos et texte blanc
   quasi invisible sur le bouton actif. Seul un !important repasse devant ;
   il est limité au fond, préfixé html comme les autres ponts du thème. */
html .fvc-calendar.fc .fc-toolbar .fc-button-primary,
html .fvc-calendar.fc .fc-toolbar .fc-button-group .fc-button.fc-next-button.fc-button-primary,
html .fvc-calendar.fc .fc-toolbar .fc-button-group .fc-button.fc-prev-button.fc-button-primary {
  background-color: var(--fvc-surface) !important; border-color: var(--fvc-border) !important; color: var(--fvc-text);
}
html .fvc-calendar.fc .fc-toolbar .fc-button-primary:not(:disabled):hover { background-color: var(--fvc-surface-2) !important; border-color: var(--fvc-muted) !important; color: var(--fvc-text); }
html .fvc-calendar.fc .fc-toolbar .fc-button-primary:not(:disabled).fc-button-active,
html .fvc-calendar.fc .fc-toolbar .fc-button-primary:not(:disabled):active {
  background-color: var(--fvc-primary) !important; border-color: var(--fvc-primary) !important; color: #fff;
}
.fvc-calendar.fc .fc-toolbar .fc-button-primary:disabled { opacity: .55; }
.fvc-calendar.fc .fc-toolbar-title { font-size: 16px; font-weight: 700; color: var(--fvc-heading); }
/* Événements : fond du ton à 10 %, liseré du ton, texte du thème. */
.fvc-calendar.fc .fc-event { border-width: 0; border-left: 3px solid var(--fvc-gray); padding: 1px 4px; background: var(--fvc-gray-bg); }
.fvc-calendar.fc .fc-event.fv-cal-scheduled { background: var(--fvc-blue-bg);   border-left-color: var(--fvc-blue); }
.fvc-calendar.fc .fc-event.fv-cal-published { background: var(--fvc-green-bg);  border-left-color: var(--fvc-green); }
.fvc-calendar.fc .fc-event.fv-cal-awaiting  { background: var(--fvc-violet-bg); border-left-color: var(--fvc-violet); }
.fvc-calendar.fc .fc-event.fv-cal-idea      { background: var(--fvc-gray-bg);   border-left-color: var(--fvc-gray); }
.fvc-calendar.fc .fc-event.fv-cal-late      { background: var(--fvc-red-bg);    border-left-color: var(--fvc-red); }
.fvc-calendar.fc .fc-event .fc-event-title, .fvc-calendar.fc .fc-event .fc-event-time,
.fvc-calendar.fc .fc-list-event-title a, .fvc-calendar.fc .fc-list-event-time { color: var(--fvc-heading); }
.fvc-calendar.fc .fc-daygrid-day-number, .fvc-calendar.fc .fc-col-header-cell-cushion { color: var(--fvc-text); }
.fvc-calendar.fc .fc-day-other .fc-daygrid-day-number { color: var(--fvc-muted); }

/* [44-blog-maillage, et toute page qui surligne un terme] `mark` : Bootstrap
   pose un fond jaune (--bs-highlight-bg) sous un texte qui hérite — illisible
   en sombre (texte clair sur jaune). Ton orange à 10 %, texte du thème. */
body.fvc-admin mark, body.fvc-admin .mark { background: var(--fvc-orange-bg); color: var(--fvc-text); padding: 0 2px; border-radius: 3px; }

/* [blog/revision/index — historique d'un article] Diff de révisions.
   « ajouté » vert et « retiré » rouge par les jetons, texte du ton sur fond
   du ton à 10 % : correct en clair comme en sombre. Réutilisable par tout
   écran qui compare deux versions (réglages, modèles d'e-mail). */
.fvc-diff { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.6; overflow-x: auto; }
.fvc-diff-line { display: block; padding: 1px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.fvc-diff-line.is-add  { background: var(--fvc-green-bg); color: var(--fvc-green); }
.fvc-diff-line.is-del  { background: var(--fvc-red-bg);   color: var(--fvc-red); }
.fvc-diff-line.is-same { color: var(--fvc-muted); }
.fvc-diff-line.is-add::before  { content: '+ '; opacity: .6; }
.fvc-diff-line.is-del::before  { content: '− '; opacity: .6; }
.fvc-diff-line.is-same::before { content: '  '; }
.fvc-diff-inline { font-size: var(--fvc-font-sm); line-height: 1.7; }
.fvc-diff-inline del { background: var(--fvc-red-bg);   color: var(--fvc-red);   text-decoration: line-through; padding: .1rem .3rem; border-radius: 4px; }
.fvc-diff-inline ins { background: var(--fvc-green-bg); color: var(--fvc-green); text-decoration: none;         padding: .1rem .3rem; border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════════════════════
   14. Héritage de base.html.twig (règles déplacées ici le 18/11/2026)
   ═══════════════════════════════════════════════════════════════════════════
   Le gabarit commun portait un <style> de 290 lignes. Ce qui servait encore
   est ici, à l'identique ; le reste a disparu : la règle « attrape-tout »
   `html.dark-style [class*="-card"] { background: #000000b8 }` (C2), les
   remaps pastel `[class*="-emerald"]…` (rendus inutiles par les jetons dans
   les gabarits), l'alerte de succès vert fluo, et les utilitaires jamais
   utilisés (.noedit, .t-xs, .engris, .enrouge, .envert, .enbleu, .uneligne). */
.radius { border-radius: 10px; padding: 5px; }
.card { padding: 20px; }
.panel { padding: 5px; }
.pk-panel, .auppanel { padding: 5px 5px !important; }

/* Tableaux : largeur pleine, cellules sur une ligne. Une page qui doit
   replier ses cellules le lève pour SON tableau (voir .fvc-subscribers),
   jamais ici : d'autres pages comptent sur ces règles (lot 4 : tableaux). */
table { width: 100% !important; }
table th { white-space: nowrap !important; }
table td { white-space: nowrap !important; text-align: left !important; }
.table thead tr th { text-align: left !important; }
.table-responsive { padding: 5px !important; }

/* Espace client : triangle du mode responsive de DataTables (la console a
   son chevron, section 12). */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
  margin-right: .5em; display: inline-block; color: var(--fvc-link); content: "▶";
}

/* Menu latéral : puce des sous-menus (à conserver tel quel, audit du 18/11). */
.layout-wrapper:not(.layout-horizontal) .menu-vertical .menu-inner > .menu-item .menu-sub > .menu-item > .menu-link::before {
  background: rgba(0, 204, 41, 0) !important; position: absolute !important;
  left: 0.15rem !important; top: 1.1rem !important; color: #a8aab400 !important;
}
.layout-wrapper:not(.layout-horizontal) .menu-vertical .menu-inner > .menu-item .menu-sub > .menu-item.active > .menu-link::before {
  background: rgb(0 204 42) !important; position: absolute !important;
  left: 0.15rem !important; top: 1.1rem !important; color: #a8aab4 !important;
}

.profile-hero-name { color: #ffffff !important; font-weight: 800 !important; letter-spacing: -0.02em !important; margin-bottom: 26px !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   E. Barre du haut et menu latéral — déplacés tels quels (lot 3, 18/11/2026)
   ═══════════════════════════════════════════════════════════════════════════
   Ces règles étaient dans un <style> des partiels nav.html.twig et
   menu.html.twig (le corps de chaque page). Elles sont ici à l'identique,
   sélecteurs préfixés de `html` pour garder leur priorité (voir B). Le
   bandeau, le menu, les notifications et le menu du profil sont « à
   conserver tels quels » : on ne retouche pas leurs couleurs ici. */

/* ── Barre du haut (partial/nav.html.twig), bloc 1 ── */
          html .fv-nav-wallet {
            display: inline-flex; align-items: center; gap: 8px;
            background: linear-gradient(135deg, #e8f6ee, #d3efdf);
            border: 1px solid #86d5a8; border-radius: 99px;
            padding: 5px 14px; margin-right: 10px;
            text-decoration: none; white-space: nowrap;
            box-shadow: 0 2px 6px rgba(21, 128, 61, .12);
            transition: transform .12s ease, box-shadow .15s ease;
          }
          html .fv-nav-wallet:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(21, 128, 61, .2); }
          html .fv-nav-wallet i { color: #15803d; font-size: 1.05rem; }
          html .fv-nav-wallet-lbl { display: block; font-size: .64rem; font-weight: 600; color: #166534; line-height: 1.1; }
          html .fv-nav-wallet-amount { display: block; font-size: .82rem; font-weight: 800; color: #14532d; line-height: 1.1; font-variant-numeric: tabular-nums; }
          html .fv-nav-wallet-frozen { background: #fdecec; border-color: #f2b8b8; box-shadow: 0 2px 6px rgba(180, 35, 35, .12); }
          html .fv-nav-wallet-frozen i { color: #b42323; }
          html .fv-nav-wallet-frozen .fv-nav-wallet-lbl { color: #b42323; }
          html .fv-nav-wallet-frozen .fv-nav-wallet-amount { color: #7f1d1d; }
          @media (max-width: 575px) { html .fv-nav-wallet-lbl { display: none; } html .fv-nav-wallet { padding: 5px 11px; } }
        

/* ── Barre du haut (partial/nav.html.twig), bloc 2 ── */
  html /* ===== Avatar nav ===== */
  .fv-nav-avatar .avatar-initial {
    background-color: var(--fvc-primary) !important;
    background-image: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
  }

  html /* ===== Dropdown ===== */
  .fv-nav-dropdown {
    min-width: 320px;
    padding: 10px !important;
    border: 1px solid var(--bs-border-color, #eef0f5);
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(15,23,42,0.12);
  }

  html /* ===== Profile header ===== */
  .fv-nav-profile {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px;
    padding: 12px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.04));
    border: 1px solid rgba(99,102,241,0.12);
    margin-bottom: 4px;
    transition: all .15s;
  }
  html .fv-nav-profile:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
    border-color: rgba(99,102,241,0.25);
  }
  html .fv-nav-profile .avatar-initial {
    background-color: var(--fvc-primary) !important;
    background-image: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(99,102,241,0.3);
  }
  html .fv-nav-name {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--bs-body-color, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
  }
  html .fv-nav-email {
    font-size: 11.5px;
    color: var(--bs-secondary-color, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
  }
  html .fv-nav-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px;
    background: rgba(99,102,241,0.15);
    color: #4338ca;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  html[data-style="dark"] .fv-nav-badge { color: #c7d2fe; }
  html .fv-nav-badge-admin {
    background: rgba(244, 63, 94, 0.15);
    color: #be123c;
  }
  html[data-style="dark"] .fv-nav-badge-admin { color: #fecaca; }

  html /* ===== Items ===== */
  .fv-nav-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    transition: all .15s;
    position: relative;
    overflow: hidden;
  }
  html .fv-nav-item:hover {
    background: rgba(99,102,241,0.08) !important;
    transform: translateX(3px);
  }
  html .fv-nav-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  html .fv-nav-item:hover .fv-nav-icon { transform: scale(1.1); }
  html .fv-nav-icon-indigo { background: #eef2ff; color: #4f46e5; }
  html .fv-nav-icon-slate { background: #f1f5f9; color: #475569; }
  html .fv-nav-icon-emerald { background: #ecfdf5; color: #059669; }
  html .fv-nav-icon-amber { background: #fffbeb; color: #d97706; }
  html .fv-nav-icon-sky { background: #eff6ff; color: #0369a1; }
  html[data-style="dark"] .fv-nav-icon-indigo { background: rgba(99,102,241,0.2);  color: #c7d2fe; }
  html[data-style="dark"] .fv-nav-icon-slate { background: rgba(100,116,139,0.2); color: #cbd5e1; }
  html[data-style="dark"] .fv-nav-icon-emerald { background: rgba(16,185,129,0.2);  color: #a7f3d0; }
  html[data-style="dark"] .fv-nav-icon-amber { background: rgba(245,158,11,0.2);  color: #fcd34d; }
  html[data-style="dark"] .fv-nav-icon-sky { background: rgba(14,165,233,0.2);  color: #bae6fd; }

  html .fv-nav-item-title {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--bs-body-color, #0f172a);
  }
  html .fv-nav-item-sub {
    font-size: 11.5px;
    color: var(--bs-secondary-color, #94a3b8);
  }
  html .fv-nav-arrow {
    color: var(--bs-secondary-color, #cbd5e1);
    font-size: 18px;
    transition: transform .2s, color .2s;
  }
  html .fv-nav-item:hover .fv-nav-arrow {
    color: #4f46e5;
    transform: translateX(3px);
  }

  html /* Divider */
  .fv-nav-dropdown .dropdown-divider {
    margin: 6px 0 !important;
    border-color: var(--bs-border-color, #f1f3f7) !important;
  }

  html /* Animation d'apparition */
  .fv-nav-dropdown {
    animation: fvNavDropdownIn .2s cubic-bezier(0.4, 0, 0.2, 1);
  }
  @keyframes fvNavDropdownIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  html /* ===== Cloche de notifications support (admin) ===== */
  .fv-bell-wrap > .nav-link { position: relative; }
  html .fv-bell-badge {
    position: absolute;
    top: 4px; right: 4px;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background-color: #be123c;
    background-image: linear-gradient(135deg, #f43f5e, #be123c);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(244,63,94,0.45);
    border: 2px solid var(--bs-card-bg, #fff);
  }
  html .fv-bell-pulse {
    position: absolute;
    top: 6px; right: 6px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: rgba(244, 63, 94, 0.55);
    animation: fvBellPulse 1.6s ease-out infinite;
    pointer-events: none;
  }
  @keyframes fvBellPulse {
    0%   { transform: scale(0.6); opacity: 0.85; }
    100% { transform: scale(1.8); opacity: 0; }
  }

  html .fv-bell-dropdown {
    min-width: 360px;
    max-width: 380px;
    border: 1px solid var(--bs-border-color, #eef0f5);
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(15,23,42,0.14);
    overflow: hidden;
    animation: fvNavDropdownIn .2s cubic-bezier(0.4, 0, 0.2, 1);
  }
  html .fv-bell-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px;
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    color: #fff;
  }
  html .fv-bell-head-title { font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; }
  html .fv-bell-head-count {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 11.5px; font-weight: 700;
  }

  html .fv-bell-body {
    max-height: 340px;
    overflow-y: auto;
  }

  html .fv-bell-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--bs-body-color, #0f172a);
    border-bottom: 1px solid var(--bs-border-color, #f1f3f7);
    transition: background .15s ease;
  }
  html .fv-bell-item:last-child { border-bottom: 0; }
  html .fv-bell-item:hover {
    background: rgba(99,102,241,0.06);
    color: inherit;
  }
  html .fv-bell-item-avatar {
    width: 34px; height: 34px;
    border-radius: 10px;
    background-color: var(--fvc-primary);
    background-image: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
  }
  html .fv-bell-item-body { flex: 1 1 auto; min-width: 0; }
  html .fv-bell-item-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--bs-body-color, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  html .fv-bell-item-sub {
    font-size: 11.5px;
    color: var(--bs-secondary-color, #94a3b8);
    margin-top: 2px;
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  }
  html .fv-bell-item-sub strong { color: var(--bs-body-color, #334155); font-weight: 600; }
  html .fv-bell-item-arrow {
    color: var(--bs-secondary-color, #cbd5e1);
    font-size: 18px;
    flex-shrink: 0;
    transition: transform .15s, color .15s;
  }
  html .fv-bell-item:hover .fv-bell-item-arrow {
    color: #4338ca;
    transform: translateX(3px);
  }

  html .fv-bell-prio {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  html .fv-bell-prio-urgent { background: #fee2e2; color: #991b1b; }
  html .fv-bell-prio-high { background: #ffedd5; color: #9a3412; }
  html[data-style="dark"] .fv-bell-prio-urgent { background: rgba(244,63,94,0.22); color: #fecaca; }
  html[data-style="dark"] .fv-bell-prio-high { background: rgba(249,115,22,0.22); color: #fed7aa; }

  html .fv-bell-empty {
    text-align: center;
    padding: 28px 16px;
  }
  html .fv-bell-empty-icon {
    width: 50px; height: 50px;
    margin: 0 auto 10px;
    border-radius: 14px;
    background: #ecfdf5;
    color: #059669;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
  }
  html[data-style="dark"] .fv-bell-empty-icon { background: rgba(16,185,129,0.18); color: #a7f3d0; }
  html .fv-bell-empty-title { font-weight: 700; font-size: 13.5px; color: var(--bs-body-color, #0f172a); }
  html .fv-bell-empty-sub { font-size: 11.5px; color: var(--bs-secondary-color, #94a3b8); margin-top: 2px; }

  html .fv-bell-footer {
    display: flex; align-items: center; justify-content: center;
    padding: 10px 14px;
    background: var(--bs-body-bg, #fafbfc);
    border-top: 1px solid var(--bs-border-color, #f1f3f7);
    color: #4338ca;
    font-weight: 600;
    font-size: 12.5px;
    text-decoration: none;
    transition: background .15s, color .15s;
  }
  html .fv-bell-footer:hover { background: #eef2ff; color: #312e81; }
  html[data-style="dark"] .fv-bell-footer { background: rgba(99,102,241,0.08); }
  html[data-style="dark"] .fv-bell-footer:hover { background: rgba(99,102,241,0.18); }

  html /* ===== Variante ALERTE (erreurs onboarding) ===== */
  .fv-bell-badge-alert {
    background-color: #be123c !important;
    background-image: linear-gradient(135deg, #f97316, #be123c) !important;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.55) !important;
  }
  html .fv-bell-pulse-alert {
    background: rgba(249, 115, 22, 0.6) !important;
  }
  html .fv-bell-head-alert {
    background: linear-gradient(135deg, #be123c 0%, #7f1d1d 100%) !important;
  }
  html .fv-bell-item-avatar-alert {
    background: linear-gradient(135deg, #f97316, #be123c) !important;
    font-size: 16px !important;
  }

/* ── Menu latéral (partial/menu.html.twig), bloc 1 ── */
  html /* ========== VARIABLES PAR THÈME ==========
     On se cale sur le thème Sneat (data-style="light|dark") en laissant
     le fond natif gérer la couleur (bg-menu-theme). On ne surcharge que
     les accents, html hovers et textes secondaires.
  */

  /* --- Thème CLAIR (par défaut) --- */
  .fv-menu {
    --fv-accent: #6366f1;
    --fv-accent-soft: rgba(99, 102, 241, 0.10);
    --fv-accent-strong: rgba(99, 102, 241, 0.18);
    --fv-text-dim: #64748b;            /* slate-500 — lisible sur fond clair */
    --fv-divider: rgba(15, 23, 42, 0.08);
    --fv-hover-bg: rgba(99, 102, 241, 0.08);
    --fv-user-card-bg: rgba(99, 102, 241, 0.06);
    --fv-user-card-border: rgba(15, 23, 42, 0.08);
    --fv-user-name: #0f172a;
    --fv-user-email: var(--fvc-muted);
    --fv-shadow-overlay: linear-gradient(
      var(--bs-card-bg, #fff) 40%,
      rgba(255,255,255,0) 100%);
  }

  /* --- Thème SOMBRE --- */
  html[data-style="dark"] .fv-menu, html.dark-style .fv-menu {
    --fv-accent: #818cf8;
    --fv-accent-soft: rgba(129, 140, 248, 0.12);
    --fv-accent-strong: rgba(129, 140, 248, 0.22);
    --fv-text-dim: rgba(255, 255, 255, 0.55);
    --fv-divider: rgba(255, 255, 255, 0.08);
    --fv-hover-bg: rgba(255, 255, 255, 0.06);
    --fv-user-card-bg: rgba(255, 255, 255, 0.05);
    --fv-user-card-border: rgba(255, 255, 255, 0.08);
    --fv-user-name: #fff;
    --fv-user-email: var(--fvc-muted);
    --fv-shadow-overlay: linear-gradient(
      var(--bs-card-bg, #2b3038) 40%,
      rgba(0,0,0,0) 100%);
  }

  html /* ========== FIX SHADOW BAND =========
     Le .menu-inner-shadow de Sneat est un dégradé blanc→transparent
     prévu pour le thème clair. En thème sombre on le remplace par le
     fond réel du menu ; sinon on le laisse agir naturellement.
  */
  .fv-menu .menu-inner-shadow {
    background: var(--fv-shadow-overlay) !important;
  }

  html /* ========== ASIDE ========== */
  .fv-menu {
    /* On N'override PAS le background : bg-menu-theme gère le thème natif */
  }

  html /* ========== BRAND ========== */
  .fv-brand {
    padding: 18px 20px 16px 20px !important;
    border-bottom: 1px solid var(--fv-divider);
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--fv-accent-soft) 0%, transparent 60%);
  }
  html .fv-brand-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
    transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  html .fv-brand-logo-wrap:hover {
    transform: rotate(-8deg) scale(1.05);
  }
  html .fv-brand-text {
    font-size: 16px !important;
    letter-spacing: -0.01em;
  }
  html .fv-brand-accent {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
  }
  html[data-style="dark"] .fv-brand-accent, html.dark-style .fv-brand-accent {
    background: linear-gradient(135deg, #818cf8, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
  }
  html .fv-menu-toggle svg {
    color: var(--fv-text-dim);
    transition: color .15s, transform .3s ease;
  }
  html .fv-menu-toggle:hover svg {
    color: var(--fv-accent);
    transform: scale(1.1);
  }

  html /* ========== SCROLLBAR ========== */
  .fv-menu-inner::-webkit-scrollbar { width: 5px; }
  html .fv-menu-inner::-webkit-scrollbar-track { background: transparent; }
  html .fv-menu-inner::-webkit-scrollbar-thumb {
    background: var(--fv-divider);
    border-radius: 10px;
  }
  html .fv-menu-inner::-webkit-scrollbar-thumb:hover {
    background: var(--fv-accent-soft);
  }

  html /* ========== SECTION HEADERS ========== */
  .fv-menu-header {
    padding: 16px 22px 6px 22px !important;
    margin-top: 4px !important;
  }
  html .fv-menu-header .menu-header-text {
    font-size: 10.5px !important;
    color: var(--fv-text-dim) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    position: relative;
  }
  html .fv-menu-header .menu-header-text i {
    color: var(--fv-accent);
    font-size: 12px;
    margin-right: 6px !important;
  }

  html /* ========== MENU ITEMS ========== */
  .fv-menu .menu-item {
    margin: 2px 10px;
  }
  html .fv-menu .menu-link {
    position: relative;
    border-radius: 10px;
    padding: 10px 14px !important;
    font-size: 13.5px !important;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
  }
  html .fv-menu .menu-link:hover {
    background: var(--fv-hover-bg) !important;
    transform: translateX(3px);
  }

  html /* Indicateur gauche au hover */
  .fv-menu .menu-link::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 3px; height: 0;
    background: var(--fv-accent);
    border-radius: 0 3px 3px 0;
    transform: translateY(-50%);
    transition: height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }
  html .fv-menu .menu-link:hover::before { height: 60%; }

  html /* Icon container */
  .fv-menu .menu-icon {
    font-size: 18px !important;
    margin-right: 10px !important;
    transition: color .2s, transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  html .fv-menu .menu-link:hover .menu-icon {
    color: var(--fv-accent) !important;
    transform: scale(1.12);
  }

  html /* ========== ACTIVE ITEM ==========
     Trois signaux, html pas un : la pastille colorée, html la barre d'accent à gauche, html et l'icône teintée. Un seul aurait suffi à un œil neuf ; trois font que
     l'entrée courante se retrouve d'un coup d'œil dans une liste longue, html même en vision périphérique et même en mode sombre.
  */
  .fv-menu .menu-item.active > .menu-link {
    background: linear-gradient(
      100deg,
      rgba(99, 102, 241, 0.16) 0%,
      rgba(139, 92, 246, 0.10) 55%,
      rgba(139, 92, 246, 0.04) 100%
    ) !important;
    color: #312e81 !important;           /* indigo-900 : contraste AA sur la pastille */
    font-weight: 600;
    /* Le liseré interne détache la pastille du fond sans l'alourdir d'une
       vraie bordure, qui ferait « bouton » au milieu d'une liste de liens. */
    box-shadow:
      inset 0 0 0 1px rgba(99, 102, 241, 0.18),
      0 6px 16px -6px rgba(99, 102, 241, 0.45);
    transform: none;                      /* pas de décalage : l'item courant est un point fixe */
  }
  html .fv-menu .menu-item.active > .menu-link > div {
    color: #312e81 !important;
    letter-spacing: -0.005em;
  }
  html .fv-menu .menu-item.active > .menu-link:hover {
    transform: none;
    background: linear-gradient(
      100deg,
      rgba(99, 102, 241, 0.22) 0%,
      rgba(139, 92, 246, 0.14) 55%,
      rgba(139, 92, 246, 0.06) 100%
    ) !important;
  }

  html[data-style="dark"] .fv-menu .menu-item.active > .menu-link, html.dark-style .fv-menu .menu-item.active > .menu-link {
    background: linear-gradient(
      100deg,
      rgba(129, 140, 248, 0.22) 0%,
      rgba(167, 139, 250, 0.12) 55%,
      rgba(167, 139, 250, 0.04) 100%
    ) !important;
    box-shadow:
      inset 0 0 0 1px rgba(129, 140, 248, 0.28),
      0 6px 16px -8px rgba(0, 0, 0, 0.6);
  }
  html[data-style="dark"] .fv-menu .menu-item.active > .menu-link, html.dark-style .fv-menu .menu-item.active > .menu-link, html[data-style="dark"] .fv-menu .menu-item.active > .menu-link > div, html.dark-style .fv-menu .menu-item.active > .menu-link > div {
    color: #e0e7ff !important;
  }

  html /* Barre d'accent : elle GRANDIT depuis le centre à l'arrivée, html ce qui donne
     au clic un accusé de réception sans faire bouger le texte. */
  .fv-menu .menu-item.active > .menu-link::before {
    height: 62%;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.55);
    animation: fvActiveBar .28s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  @keyframes fvActiveBar {
    from { height: 0; opacity: 0; }
    to   { height: 62%; opacity: 1; }
  }

  html .fv-menu .menu-item.active > .menu-link .menu-icon {
    color: var(--fv-accent) !important;
    transform: scale(1.06);
  }

  html /* Point de repère à droite : le « vous êtes ici » de la liste. Posé en
     ::after pour n'ajouter aucun nœud au gabarit — et masqué sur les entrées
     dépliantes, html dont le ::after porte déjà le chevron. */
  .fv-menu .menu-item.active > .menu-link:not(.menu-toggle)::after {
    content: '';
    margin-left: auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
    flex-shrink: 0;
  }
  html[data-style="dark"] .fv-menu .menu-item.active > .menu-link:not(.menu-toggle)::after, html.dark-style .fv-menu .menu-item.active > .menu-link:not(.menu-toggle)::after {
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.20);
  }

  html /* Section dépliée contenant l'entrée courante : elle doit se remarquer
     SANS rivaliser avec elle — sinon deux lignes se disputent le regard. */
  .fv-menu .menu-item.open > .menu-toggle .menu-icon {
    color: var(--fv-accent) !important;
  }
  html .fv-menu .menu-item.open:not(.active) > .menu-toggle {
    background: var(--fv-accent-soft) !important;
    font-weight: 600;
  }

  html /* ========== SUBMENU ========== */
  .fv-menu .menu-sub {
    padding-left: 0 !important;
    margin: 4px 0 6px 0 !important;
    position: relative;
  }
  html .fv-menu .menu-sub::before {
    content: '';
    position: absolute;
    left: 26px; top: 8px; bottom: 8px;
    width: 1px;
    background: var(--fv-divider);
  }
  html .fv-menu .menu-sub .menu-item {
    margin: 1px 10px 1px 28px !important;
  }
  html .fv-menu .menu-sub .menu-link {
    padding: 8px 12px !important;
    font-size: 12.5px !important;
    opacity: 0.85;
  }
  html .fv-menu .menu-sub .menu-link:hover { opacity: 1; }
  html .fv-menu .menu-sub .menu-link::before {
    content: '';
    position: absolute;
    left: -8px; top: 50%;
    width: 6px; height: 2px;
    background: var(--fv-divider);
    border-radius: 2px;
    transform: translateY(-50%);
    transition: background .2s, width .2s;
  }
  html .fv-menu .menu-sub .menu-link:hover::before {
    background: var(--fv-accent);
    width: 10px;
  }
  html /* Sous-entrée courante.
     Elle était laissée transparente : sur fond clair, html l'entrée active d'un
     sous-menu ressortait comme une simple pastille blanche, html impossible à
     distinguer d'un survol. Elle reçoit la même famille de traitement que le
     premier niveau, html en plus discret — c'est une sous-entrée, html pas une rivale. */
  .fv-menu .menu-sub .menu-item.active > .menu-link {
    background: linear-gradient(
      100deg,
      rgba(99, 102, 241, 0.13) 0%,
      rgba(139, 92, 246, 0.05) 100%
    ) !important;
    color: #4338ca !important;
    font-weight: 600;
    opacity: 1;
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.14);
  }
  html[data-style="dark"] .fv-menu .menu-sub .menu-item.active > .menu-link, html.dark-style .fv-menu .menu-sub .menu-item.active > .menu-link {
    background: linear-gradient(
      100deg,
      rgba(129, 140, 248, 0.18) 0%,
      rgba(167, 139, 250, 0.06) 100%
    ) !important;
    color: #e0e7ff !important;
    box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.22);
  }
  html /* Le tiret de raccordement devient un vrai repère : plus long, html coloré, html et posé au ras de la pastille. */
  .fv-menu .menu-sub .menu-item.active > .menu-link::before {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    width: 14px;
    height: 3px;
    border-radius: 3px;
    left: -12px;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
  }
  html .fv-menu .menu-sub .menu-item.active > .menu-link:hover {
    transform: none;
  }

  html /* ========== CHEVRON ANIMATION ========== */
  .fv-menu .menu-toggle::after {
    content: '\EB6D';           /* remix arrow-right */
    font-family: 'remixicon' !important;
    font-size: 15px !important;
    color: var(--fv-text-dim);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color .15s;
    margin-left: auto;
    border: 0 !important;
  }
  html .fv-menu .menu-item.open > .menu-toggle::after {
    transform: rotate(90deg);
    color: var(--fv-accent);
  }

  html /* ========== SUB SLIDE ANIMATION ========== */
  .fv-menu .menu-item:not(.open) > .menu-sub {
    display: none;
  }
  html .fv-menu .menu-item.open > .menu-sub {
    display: block;
    animation: fvSlideDown .25s cubic-bezier(0.4, 0, 0.2, 1);
  }
  @keyframes fvSlideDown {
    from { opacity: 0; transform: translateY(-6px); max-height: 0; }
    to   { opacity: 1; transform: translateY(0);    max-height: 600px; }
  }

  html /* ========== BADGE SOFT ========== */
  .fv-badge-soft {
    display: inline-flex;
    align-items: center; justify-content: center;
    background: #f43f5e;
    color: #fff;
    font-size: 9px; font-weight: 700;
    width: 16px; height: 16px;
    border-radius: 50%;
    margin-left: 6px;
    box-shadow: 0 0 0 0 rgba(244,63,94,0.5);
    animation: fvBadgePulse 2s infinite;
  }
  @keyframes fvBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244,63,94,0.5); }
    50%      { box-shadow: 0 0 0 6px rgba(244,63,94,0); }
  }
  html /* Variante "soft danger" pour les badges contenant un nombre (ex: erreurs onboarding) */
  .fv-badge-soft.fv-badge-soft-danger {
    background: linear-gradient(135deg, #f97316, #be123c);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    width: auto; height: auto;
    min-width: 18px; padding: 1px 6px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(190,18,60,0.45);
    animation: fvBadgePulseDanger 2s infinite;
  }
  @keyframes fvBadgePulseDanger {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244,63,94,0.55); }
    50%      { box-shadow: 0 0 0 6px rgba(244,63,94,0); }
  }
  html /* Variante "soft info" pour les notifications non bloquantes (ex: tickets support non lus) */
  .fv-badge-soft.fv-badge-soft-info {
    background: linear-gradient(135deg, #6366f1, #4338ca);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    width: auto; height: auto;
    min-width: 18px; padding: 1px 6px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(67,56,202,0.40);
    animation: fvBadgePulseInfo 2.4s infinite;
  }
  @keyframes fvBadgePulseInfo {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.5); }
    50%      { box-shadow: 0 0 0 6px rgba(99,102,241,0); }
  }

  html /* ========== EXTERNAL LINK ICON ========== */
  .fv-ext-link {
    font-size: 11px;
    opacity: .5;
    margin-left: 4px;
  }

  html /* ========== LOGOUT ========== */
  .fv-logout .menu-link {
    color: #dc2626 !important;
  }
  html[data-style="dark"] .fv-logout .menu-link, html.dark-style .fv-logout .menu-link {
    color: #fca5a5 !important;
  }
  html .fv-logout .menu-link:hover {
    background: rgba(244, 63, 94, 0.10) !important;
    color: #b91c1c !important;
  }
  html[data-style="dark"] .fv-logout .menu-link:hover, html.dark-style .fv-logout .menu-link:hover {
    background: rgba(244, 63, 94, 0.15) !important;
    color: #fecaca !important;
  }
  html .fv-logout .menu-link:hover .menu-icon { color: #dc2626 !important; }
  html[data-style="dark"] .fv-logout .menu-link:hover .menu-icon { color: #f87171 !important; }
  html .fv-logout .menu-link::before { background: #f43f5e !important; }
  html .fv-logout .menu-icon { color: #dc2626 !important; }
  html[data-style="dark"] .fv-logout .menu-icon, html.dark-style .fv-logout .menu-icon { color: #f87171 !important; }

  html /* ========== USER CARD BOTTOM ========== */
  .fv-user-card {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin: 0 10px 10px 10px;
    background: var(--fv-user-card-bg);
    border: 1px solid var(--fv-user-card-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
  }
  html .fv-user-avatar {
    width: 36px; height: 36px;
    border-radius: 10px;
    background-color: var(--fvc-primary);
    background-image: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(99,102,241,0.3);
  }
  html .fv-user-info { flex-grow: 1; min-width: 0; }
  html .fv-user-name {
    color: var(--fv-user-name);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  html .fv-user-email {
    color: var(--fv-user-email);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  html .fv-user-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16,185,129,0.5);
    animation: fvStatusPulse 2s infinite;
    flex-shrink: 0;
  }
  @keyframes fvStatusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
    50%      { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
  }

  html /* ========== MENU COLLAPSED MODE ========== */
  .layout-menu-collapsed .fv-menu-header .menu-header-text {
    text-align: center;
  }
  html .layout-menu-collapsed .fv-menu-header .menu-header-text i {
    margin-right: 0 !important;
    font-size: 14px;
  }
  html .layout-menu-collapsed .fv-user-card {
    flex-direction: column;
    gap: 4px;
    padding: 10px 4px;
  }
  html .layout-menu-collapsed .fv-user-info { display: none; }

  html /* ========== MENU INITIAL LOAD ANIMATION ==========
     L'entrée glissait depuis la gauche à CHAQUE chargement de page. Sur une
     application où l'on navigue toute la journée, html cette reconstruction
     permanente donne l'impression que le menu repart de zéro à chaque clic —
     exactement l'effet que la mémorisation du défilement cherche à supprimer.
     Il ne reste qu'un fondu, html plus court, html et le décalage a disparu. */
  .fv-menu-inner > .menu-item, html .fv-menu-inner > .menu-header {
    animation: fvFadeIn 0.22s ease-out backwards;
  }
  html /* L'entrée courante n'est pas animée : c'est le repère que l'œil cherche
     en premier, html il doit être là avant tout le reste. */
  .fv-menu-inner > .menu-item.active {
    animation: none;
  }
  html .fv-menu-inner > .menu-item:nth-child(1) { animation-delay: 0.02s; }
  html .fv-menu-inner > .menu-item:nth-child(2) { animation-delay: 0.04s; }
  html .fv-menu-inner > .menu-item:nth-child(3) { animation-delay: 0.06s; }
  html .fv-menu-inner > .menu-item:nth-child(4) { animation-delay: 0.08s; }
  html .fv-menu-inner > .menu-item:nth-child(5) { animation-delay: 0.10s; }
  html .fv-menu-inner > .menu-item:nth-child(6) { animation-delay: 0.12s; }
  html .fv-menu-inner > .menu-item:nth-child(7) { animation-delay: 0.14s; }
  html .fv-menu-inner > .menu-item:nth-child(8) { animation-delay: 0.16s; }
  html .fv-menu-inner > .menu-item:nth-child(n+9) { animation-delay: 0.18s; }
  @keyframes fvFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  html /* ========== MOUVEMENT RÉDUIT ==========
     Réglage système, html pas préférence esthétique : chez certaines personnes ces
     animations déclenchent un vrai malaise. Le menu reste entièrement
     utilisable — seuls les mouvements disparaissent, html pas les repères. */
  @media (prefers-reduced-motion: reduce) {
    html .fv-menu-inner > .menu-item, html .fv-menu-inner > .menu-header, html .fv-menu .menu-item.active > .menu-link::before, html .fv-user-dot {
      animation: none !important;
    }
    html .fv-menu .menu-link, html .fv-menu .menu-icon, html .fv-brand-logo-wrap {
      transition: none !important;
    }
    html .fv-menu .menu-link:hover {
      transform: none !important;
    }
  }


/* ═══════════════════════════════════════════════════════════════════════════
   I. Éditeur de modèle d'e-mail (gouttière, aperçu, plein écran)
   ═══════════════════════════════════════════════════════════════════════════
   admin/email_template/edit (+ _variables) : sections repliables, catalogue
   de variables, éditeur HTML à numéros de ligne, aperçu collant et plein
   écran. Classes posées par le gabarit, sauf `is-fullscreen` (panneau
   d'aperçu), `fvc-editor-locked` (body), `fvc-editor-reason` (ligne
   d'argument ajoutée) et `is-mobile` (cadre) : posées par le script de la
   page. Réutilisable par tout écran « éditeur + aperçu ». */

/* Sections repliables (<details>) habillées comme une carte commune */
.fvc-editor-section { background: var(--fvc-surface); border: 1px solid var(--fvc-border); border-radius: var(--fvc-radius-lg); margin-bottom: 16px; overflow: hidden; }
.fvc-editor-section > summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; list-style: none; color: var(--fvc-heading); }
.fvc-editor-section > summary::-webkit-details-marker { display: none; }
.fvc-editor-section > summary::after { content: '\ea4e'; font-family: remixicon; margin-left: auto; color: var(--fvc-muted); transition: transform .2s; }
.fvc-editor-section[open] > summary { border-bottom: 1px solid var(--fvc-border); }
.fvc-editor-section[open] > summary::after { transform: rotate(180deg); }
.fvc-editor-section > summary:hover { background: var(--fvc-surface-2); }
.fvc-editor-section > summary:focus-visible { outline: 2px solid var(--fvc-primary); outline-offset: -2px; }
.fvc-editor-section > summary .fvc-card-title { display: inline-flex; align-items: center; gap: 8px; }
.fvc-editor-section > summary .fvc-card-title > i { color: var(--fvc-muted); font-weight: 400; }
.fvc-editor-section-body { padding: 16px; }

/* Zones de texte qui portent du HTML : police à chasse fixe */
.fvc-editor-mono textarea.form-control { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fvc-font-sm); line-height: 1.55; }

/* Arguments : icône (4 caractères) + texte + bouton de retrait */
.fvc-editor-reason { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.fvc-editor-reason > .fvc-editor-reason-icon { flex: 0 0 64px; width: 64px; text-align: center; }
.fvc-editor-reason > textarea { flex: 1 1 auto; min-width: 0; }

/* Éditeur HTML : gouttière de numéros + zone de saisie, défilement solidaire.
   Surfaces du thème (plus de fond nuit en dur) : lisible en clair et en sombre. */
.fvc-editor-code-wrap { display: flex; border: 1px solid var(--fvc-border); border-radius: var(--fvc-radius); overflow: hidden; background: var(--fvc-surface); }
.fvc-editor-code-wrap:focus-within { border-color: var(--fvc-primary); box-shadow: var(--fvc-focus); }
.fvc-editor-gutter {
  flex: 0 0 auto; min-width: 2.75rem; padding: 8px; text-align: right; overflow: hidden; user-select: none; white-space: pre;
  background: var(--fvc-surface-2); color: var(--fvc-muted); border-right: 1px solid var(--fvc-border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fvc-font-xs); line-height: 1.55;
}
textarea.fvc-editor-code {
  flex: 1 1 auto; min-width: 0; min-height: 460px; resize: vertical; border: 0; border-radius: 0; outline: 0; box-shadow: none;
  padding: 8px 12px; background: var(--fvc-surface); color: var(--fvc-text); caret-color: var(--fvc-heading);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fvc-font-xs); line-height: 1.55;
  white-space: pre; overflow-wrap: normal; overflow-x: auto; tab-size: 2;
}
textarea.fvc-editor-code:focus { outline: 0; }

/* Catalogue de variables (colonne collante ≥ 1400 px, panneau latéral en dessous) */
.fvc-editor-offcanvas { --bs-offcanvas-width: 340px; }
.fvc-editor-vars { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.fvc-editor-vars-head { padding: 16px 16px 12px; border-bottom: 1px solid var(--fvc-border); }
.fvc-editor-vars-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 8px; }
.fvc-editor-vars-foot { padding: 12px 16px; border-top: 1px solid var(--fvc-border); }
.fvc-editor-vgroup { margin-bottom: 12px; }
.fvc-editor-vgroup-title { padding: 6px 8px; font-size: var(--fvc-font-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--fvc-muted); }
.fvc-editor-vgroup-title code { font-size: var(--fvc-font-xs); text-transform: none; letter-spacing: 0; }
.fvc-editor-var {
  display: block; width: 100%; margin-bottom: 2px; padding: 6px 8px; text-align: left; cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: var(--fvc-radius); color: var(--fvc-text);
}
.fvc-editor-var:hover { background: var(--fvc-surface-2); border-color: var(--fvc-border); }
.fvc-editor-var:focus-visible { outline: 2px solid var(--fvc-primary); outline-offset: 1px; }
.fvc-editor-var-path { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fvc-font-xs); font-weight: 600; color: var(--fvc-link); overflow-wrap: anywhere; }
.fvc-editor-var-label { display: block; font-size: var(--fvc-font-sm); color: var(--fvc-text); }
.fvc-editor-var-ex { display: block; font-size: var(--fvc-font-xs); font-style: italic; color: var(--fvc-muted); }
.fvc-editor-var-hint { display: block; margin-top: 2px; font-size: var(--fvc-font-xs); color: var(--fvc-orange); }

/* Aperçu */
.fvc-editor-preview { display: flex; flex-direction: column; }
.fvc-editor-preview-subject {
  margin: 12px 16px 0; padding: 8px 12px; font-size: var(--fvc-font-sm); overflow-wrap: anywhere;
  background: var(--fvc-surface-2); border: 1px solid var(--fvc-border); border-radius: var(--fvc-radius); color: var(--fvc-text);
}
.fvc-editor-preview-wrap { flex: 1 1 auto; margin-top: 12px; padding: 16px; overflow-x: auto; background: var(--fvc-surface-2); border-radius: 0 0 var(--fvc-radius-lg) var(--fvc-radius-lg); }
/* Le cadre montre l'e-mail TEL QUE REÇU : son fond blanc est celui du message
   (les clients de messagerie l'affichent sur blanc), pas une surface de la
   console. Seule couleur hors jetons de la section, voulue. */
.fvc-editor-frame { display: block; width: 100%; max-width: 100%; height: 640px; margin: 0 auto; border: 0; border-radius: var(--fvc-radius); background: #fff; transition: max-width .2s; }
.fvc-editor-frame.is-mobile { max-width: 380px; }
.fvc-editor-modal-note > .fvc-alert { margin-bottom: 0; }

/* Plein écran de l'aperçu (bouton « Plein écran », Échap pour revenir).
   Pas d'API Fullscreen : elle sort la page de son contexte, ferme les menus
   et, sur certains navigateurs, empêche de taper dans le formulaire resté
   dessous. Un panneau fixe garde la page vivante. */
.fvc-editor-preview.is-fullscreen { position: fixed; inset: 0; z-index: 1080; margin: 0; max-height: none; border-radius: 0; border: 0; box-shadow: none; background: var(--fvc-surface); }
.fvc-editor-preview.is-fullscreen .fvc-editor-preview-wrap { overflow: auto; border-radius: 0; }
.fvc-editor-preview.is-fullscreen .fvc-editor-frame { height: 100%; min-height: 0; }
body.fvc-editor-locked { overflow: hidden; }

@media (min-width: 1400px) {
  /* Colonnes latérales collantes : le panneau devient une boîte flexible qui
     découpe, et c'est la zone interne qui défile (catalogue, aperçu). Le
     plein écran est exclu : il quitte le flux. `min-height: 0` permet aux
     enfants flexibles de descendre sous la taille de leur contenu. */
  .fvc-editor-sticky:not(.is-fullscreen) { position: sticky; top: 80px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; overflow: hidden; }
  .fvc-editor-sticky:not(.is-fullscreen) > .fvc-card-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .fvc-editor-sticky:not(.is-fullscreen) .fvc-editor-vars { flex: 1 1 auto; min-height: 0; }
  .fvc-editor-sticky:not(.is-fullscreen) .fvc-editor-preview-wrap { min-height: 0; overflow: auto; }
  .fvc-editor-sticky:not(.is-fullscreen) .fvc-editor-frame { height: 100%; min-height: 320px; }
}
