/* =====================================================================
   Console établissement, nouvelle peau (v2)
   =====================================================================

   Chargée EN DERNIER, dans la console établissement seulement : ni la
   WebApp, ni la console super-admin. Elle ne change aucune fonction, aucun
   texte, aucun ordre de bloc : uniquement l'apparence.

   Référence : maquette « Carte des vins » (écran de Le R), en Inter partout
   (titres, texte, chiffres, petits libellés) au lieu de Geist. Inter est déjà
   servie par kelWINE : aucune police de plus à charger.

   Organisation, pour le futur ménage des styles :
     0. Variables (couleurs, rayons, ombres, espacements, typos)
     1. Base
     2. Coquille et menu latéral
     3. En-tête de page
     4. Cartes et titres
     5. Boutons
     6. Champs
     7. Pastilles, badges, tableaux, alertes
     8. Carte des vins
     9. Carte complète
    10. Tableau de bord et statistiques
    11. Personnalisation et supports
    12. Fenêtres modales
    13. Bandeau d'annonce (toast)
    14. Finitions
    15. Exporter ma carte
    16. Stock (lot moteur)

   Les jetons historiques (--bg, --ink, --muted, --line, --accent…) sont
   redéfinis plutôt que contournés : tout ce qui s'en sert déjà dans
   composants.css et etab.css suit sans être réécrit. Les !important sont
   réservés aux styles posés en ligne dans le HTML généré par etab.js, que
   rien d'autre ne peut battre. Chacun est signalé.
   ===================================================================== */

/* =====================================================================
   0. Variables
   ===================================================================== */
:root[data-console="etab"] {
  /* --- Couleurs ------------------------------------------------------ */
  --v2-fond: #EFEDEA;          /* fond de page, gris chaud */
  --v2-carte: #FFFFFF;         /* cartes */
  --v2-encre: #1D1B1A;         /* texte principal, action principale */
  --v2-encre-2: #57524D;       /* texte de menu, boutons discrets */
  --v2-doux: #6E6A66;          /* texte secondaire */
  --v2-libelle: #736D67;       /* petits libellés */
  --v2-filet: #ECE8E4;         /* filets, contours de bloc */
  --v2-contour: #E2DEDA;       /* contours de champs et de boutons */
  --v2-contour-actif: #E7E3DF; /* contour de l'entrée de menu active */
  --v2-survol: #F5F3F1;        /* survol, pastille du compte */
  --v2-actif: #F3F1EE;         /* entrée active, pastilles */
  --v2-bloc: #F8F7F5;          /* blocs millésime */
  --v2-segment: #EDEAE6;       /* fond des interrupteurs-pilules */
  --v2-marque: #7A1F35;        /* accent de la console : bordeaux kelWINE */
  --v2-marque-fonce: #63192B;  /* survol de l'accent */
  --v2-alu: #E9E6E2;           /* actions secondaires, gris alu */
  --v2-alu-survol: #E0DCD7;
  --v2-graphite: #2B2928;      /* éléments actifs, au lieu du noir pur */
  --v2-danger: #A3262F;        /* texte des gestes destructifs */
  --v2-danger-fond: #FBEDEE;
  --v2-coeur: #C8323C;
  --v2-coeur-fond: #FDF3F3;
  --v2-coeur-contour: #F0C9CC;
  --v2-indice: #9A948E;        /* repères dans les champs (€), icônes au repos */

  /* --- Rayons -------------------------------------------------------- */
  --v2-r-carte: 20px;
  --v2-r-bloc: 16px;
  --v2-r-menu: 14px;
  --v2-r-champ: 12px;
  --v2-r-pilule: 999px;

  /* --- Ombres -------------------------------------------------------- */
  --v2-ombre-carte: 0 1px 0 rgba(29, 27, 26, .04), 0 1px 2px rgba(29, 27, 26, .05),
    0 12px 32px -12px rgba(29, 27, 26, .10);
  --v2-ombre-pilule: 0 1px 2px rgba(29, 27, 26, .12);
  --v2-ombre-modale: 0 24px 64px -16px rgba(29, 27, 26, .28), 0 2px 6px rgba(29, 27, 26, .08);

  /* --- Hauteurs et espacements -------------------------------------- */
  --v2-h-bouton: 40px;
  --v2-h-champ: 44px;
  --v2-h-menu: 40px;
  --v2-marge: 16px;

  /* --- Typos --------------------------------------------------------- */
  --v2-police: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Les petits libellés aussi sont en Inter : seule leur mise en forme les
     distingue (voir --v2-libelle-*). */
  --v2-police-libelle: var(--v2-police);

  /* --- Jetons historiques, repeints --------------------------------- */
  --police: var(--v2-police);
  --bg: var(--v2-fond);
  --surface: var(--v2-carte);
  --bg2: var(--v2-carte);
  --ink: var(--v2-encre);
  --muted: var(--v2-doux);
  --line: var(--v2-filet);
  --tint: var(--v2-actif);
  --tint-soft: var(--v2-bloc);
  --accent: var(--v2-marque);
  --accent-fort: var(--v2-marque);
  --accent-sombre: var(--v2-marque-fonce);
  --accent2: #A9707B;
  --danger: var(--v2-danger);
  --erreur: var(--v2-danger);
  --radius: var(--v2-r-champ);
  --r-md: var(--v2-r-champ);
  --r-lg: var(--v2-r-carte);
}

/* Le petit libellé (« VINS VISIBLES », « MA CARTE », « SUR PLACE ») : Inter
   11 px, graisse 500, majuscules, lettres espacées de 0,06 em, gris #736D67.
   Une seule définition, reprise par la règle commune de la section 1. */
:root[data-console="etab"] {
  --v2-libelle-taille: 11px;
  --v2-libelle-graisse: 500;
  --v2-libelle-espace: .06em;
}

/* =====================================================================
   1. Base
   ===================================================================== */
body {
  font-family: var(--v2-police);
  background: var(--v2-fond);
  color: var(--v2-encre);
  font-feature-settings: "tnum" 1;
}
a { color: var(--v2-encre-2); }
a:hover { color: var(--v2-encre); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--v2-encre);
  outline-offset: 2px;
}

/* Tous les petits libellés, d'un seul tenant. Les règles de chaque zone
   n'y ajoutent que leurs marges. */
.brand small, .sidebar .brand small, .nav-groupe, th, .px-type, .stat-lbl, .tdb-sous {
  font-family: var(--v2-police-libelle);
  font-size: var(--v2-libelle-taille);
  font-weight: var(--v2-libelle-graisse);
  text-transform: uppercase;
  letter-spacing: var(--v2-libelle-espace);
  color: var(--v2-libelle);
  opacity: 1;
}

/* =====================================================================
   2. Coquille et menu latéral
   Le menu devient une carte blanche flottante, collée en haut au défilement.
   ===================================================================== */
.sidebar {
  background: var(--v2-carte);
  color: var(--v2-encre-2);
  box-shadow: var(--v2-ombre-carte);
  padding: var(--v2-marge);
}
@media (min-width: 861px) {
  .shell { gap: 0; }
  .sidebar {
    width: 252px;
    margin: var(--v2-marge) 0 var(--v2-marge) var(--v2-marge);
    border-radius: var(--v2-r-carte);
    top: var(--v2-marge);
    height: calc(100dvh - 2 * var(--v2-marge));
  }
}

/* La marque */
.sidebar .brand { padding: 4px 4px 20px; }
.brand { color: var(--v2-encre); font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.brand span { color: var(--v2-marque); font-weight: 700; }

/* Ajouter un vin : l'action principale, en bordeaux. */
.cta {
  background: var(--v2-marque); color: #FFFFFF; border: 0;
  border-radius: var(--v2-r-pilule); min-height: var(--v2-h-bouton);
  padding: 0 16px; font-size: 14px; font-weight: 500;
  margin-bottom: 20px;
}
.cta:hover { background: var(--v2-marque-fonce); color: #FFFFFF; }

/* Libellés de groupe : petits, en majuscules. */
.nav-groupe { padding: 6px 12px; margin: 0; }

/* Entrées */
.mainnav { gap: 4px; }
.mainnav a {
  min-height: var(--v2-h-menu); padding: 0 12px; gap: 12px;
  border-radius: var(--v2-r-champ);
  color: var(--v2-encre-2); font-size: 14px; font-weight: 400;
}
.mainnav a > i { width: 18px; font-size: 15px; opacity: 1; color: currentColor; }
.mainnav a:hover { background: var(--v2-survol); color: var(--v2-encre); }
.mainnav a.active {
  background: var(--v2-actif); color: var(--v2-encre); font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--v2-contour-actif);
}
.nav-badge {
  background: var(--v2-graphite); color: #FFFFFF;
  font-family: var(--v2-police-libelle); font-size: var(--v2-libelle-taille); font-weight: 500;
  padding: 3px 7px;
}
.mainnav a.active .nav-badge { background: var(--v2-graphite); }

/* Les séparateurs n'ont pas de libellé : ils deviennent de simples espaces. */
.nav-sep { background: transparent; margin: 6px 12px; }

/* Compte, en bas du menu */
.user-email { color: var(--v2-doux); font-size: 12px; }
.user-lien { color: var(--v2-encre-2); font-size: 13px; }
.user-lien:hover, .user-lien.active { color: var(--v2-encre); }
.side-bas .btn.secondary { background: var(--v2-alu); color: var(--v2-encre); border: 0; box-shadow: none; }
.side-bas .btn.secondary:hover { background: var(--v2-alu-survol); color: var(--v2-encre); }

/* Bandeau horizontal sur petit écran : il garde ses couleurs claires. */
@media (max-width: 860px) {
  .mainnav a.active { box-shadow: inset 0 -2px 0 var(--v2-encre); }
}

/* =====================================================================
   3. En-tête de page
   Plus de barre blanche : le titre se pose sur le fond, en grand.
   ===================================================================== */
.topbar {
  background: var(--v2-fond); border-bottom: 0;
  padding: calc(var(--v2-marge) + 12px) 32px 12px;
  gap: 10px;
}
.topbar h2 { font-size: 34px; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }

/* Recherche en pilule */
.recherche {
  background: var(--v2-carte); border: 0;
  box-shadow: inset 0 0 0 1px var(--v2-contour);
  border-radius: var(--v2-r-pilule); min-height: var(--v2-h-bouton);
  padding: 0 14px; color: var(--v2-doux);
  max-width: 280px;
}
.recherche input { font-size: 14px; min-height: 0; box-shadow: none; }
.recherche input:focus { box-shadow: none; }
.recherche:focus-within { box-shadow: inset 0 0 0 1.5px var(--v2-encre); }

/* Voir ma carte comme un client : action secondaire, gris alu. */
.btn.voir-carte { background: var(--v2-alu); color: var(--v2-encre); }
.btn.voir-carte:hover { background: var(--v2-alu-survol); color: var(--v2-encre); }

/* Pastille du compte, et sélecteur d'établissement quand il y en a plusieurs */
.user-chip {
  background: var(--v2-survol); border-radius: var(--v2-r-menu);
  padding: 6px 10px 6px 6px;
}
.user-chip .avatar { background: var(--v2-graphite); color: #FFFFFF; font-weight: 600; font-size: 12px; }
.user-chip .qui { font-size: 12px; }
.user-chip .qui b { font-size: 14px; }
.user-chip.chip-choix:hover { background: var(--v2-actif); }

/* =====================================================================
   4. Cartes et titres
   ===================================================================== */
.container { margin-top: 12px; padding: 0 32px; }
.card {
  background: var(--v2-carte); border: 0;
  border-radius: var(--v2-r-carte); box-shadow: var(--v2-ombre-carte);
}
.pagehead h1 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
h2 { letter-spacing: -.015em; font-weight: 600; }
.container > h2, .container h3 { letter-spacing: -.01em; }
.crumb { color: var(--v2-doux); }
.crumb a { color: var(--v2-encre-2); }

/* =====================================================================
   5. Boutons
   Tous en pilule, 40 px. Trois niveaux :
     - action principale en bordeaux, texte blanc (« Ajouter un vin »,
       « Enregistrer », « + Millésime ») ;
     - actions secondaires en gris alu (« Voir ma carte comme un client »,
       « Masquer la référence », « Ajouter une photo de la bouteille »,
       « Ajouter une contenance ») ;
     - éléments actifs (apéritif, période, interrupteurs) en graphite.
   Les gestes destructifs restent en texte rouge sans fond.
   ===================================================================== */
.btn {
  border-radius: var(--v2-r-pilule);
  min-height: var(--v2-h-bouton);
  padding: 0 16px;
  font-family: var(--v2-police); font-size: 14px; font-weight: 500;
  background: var(--v2-marque); border: 0; color: #FFFFFF;
  box-shadow: none;
}
.btn:hover { background: var(--v2-marque-fonce); color: #FFFFFF; }
.btn.small { min-height: var(--v2-h-bouton); padding: 0 14px; font-size: 13px; }

.btn.secondary { background: var(--v2-alu); color: var(--v2-encre); box-shadow: none; }
.btn.secondary:hover { background: var(--v2-alu-survol); color: var(--v2-encre); }
.btn.secondary:disabled:hover { background: var(--v2-alu); }

/* Enregistrer : la couleur kelWINE remplace le vert. */
.btn.ok { background: var(--v2-marque); color: #FFFFFF; }
.btn.ok:hover { background: var(--v2-marque-fonce); }

.btn:disabled:hover, .btn.ok:disabled:hover { background: var(--v2-marque); }

/* Destructifs : texte rouge, fond au survol seulement. Les boutons « Retirer »
   et « Supprimer » de la carte portent leur rouge en style en ligne (etab.js) :
   seul !important le remplace. Les confirmations ne changent pas. */
.btn.danger,
.btn[style*="background:var(--danger)"] {
  background: transparent !important; border-color: transparent !important;
  color: var(--v2-danger); box-shadow: none;
}
.btn.danger:hover,
.btn[style*="background:var(--danger)"]:hover { background: var(--v2-danger-fond) !important; color: var(--v2-danger); }
/* Les liens d'action rouges (« Supprimer le logo », « Retirer l'image »). */
.btn.secondary[style*="color:var(--danger)"] { color: var(--v2-danger) !important; }
.btn.secondary[style*="color:var(--danger)"]:hover { background: var(--v2-danger-fond); }

/* Le bouton de confirmation d'une fenêtre destructive reste plein : c'est la
   réponse à une question, pas un geste dans une liste. Même rouge. */
.dlg-danger, .dlg-danger:hover { background: var(--v2-danger); color: #FFFFFF; filter: none; }
.dlg-danger:hover { background: #8A1F27; }

/* Flèches d'ordre manuel : rondes. */
.fleches .btn { min-width: var(--v2-h-bouton); padding: 0; }
/* Elles gardent leur fond alu, même dans un en-tête où les secondaires
   deviennent de simples textes : une flèche nue ne se lit pas comme un bouton. */
.mill-head .fleches .btn.secondary,
.fleches .btn.secondary { background: var(--v2-alu); }
.mill-head .fleches .btn.secondary:hover,
.fleches .btn.secondary:hover { background: var(--v2-alu-survol); }

/* =====================================================================
   6. Champs
   44 px, rayon 12, contour fin, focus noir. Chiffres tabulaires partout.
   ===================================================================== */
/* :where() garde la spécificité d'un simple « input » : les règles ciblées
   existantes (recherche, connexion, année) restent maîtresses de leurs champs. */
input:where(:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"])),
select, textarea {
  font-family: var(--v2-police); font-size: 15px;
  min-height: var(--v2-h-champ);
  border: 1px solid var(--v2-contour); border-radius: var(--v2-r-champ);
  background: var(--v2-carte); color: var(--v2-encre);
  padding: 0 14px;
  font-feature-settings: "tnum" 1;
}
textarea { padding: 10px 14px; }
input:hover, select:hover, textarea:hover { border-color: #CFC9C3; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--v2-encre);
  box-shadow: inset 0 0 0 .5px var(--v2-encre);
}
input::placeholder, textarea::placeholder { color: #B4AEA8; opacity: 1; }
label { color: var(--v2-encre); }

/* Listes déroulantes en pilule */
select { border-radius: var(--v2-r-pilule); padding: 0 14px; }

/* Les cases et boutons radio prennent l'encre, pas le bleu du navigateur. */
input[type="checkbox"], input[type="radio"] { accent-color: var(--v2-encre); }

/* Filtres de la carte : tout en pilule */
.filtres-carte input:not([type="checkbox"]) { border-radius: var(--v2-r-pilule); }

/* =====================================================================
   7. Pastilles, badges, tableaux, alertes
   ===================================================================== */
.badge {
  border-radius: var(--v2-r-pilule);
  background: var(--v2-actif); color: var(--v2-encre-2);
  font-family: var(--v2-police-libelle); font-size: var(--v2-libelle-taille);
  letter-spacing: .06em; font-weight: 500;
}
.badge.inactif { background: var(--v2-actif); color: var(--v2-doux); }

/* En-têtes de tableau : petits libellés */
th { background: var(--v2-carte); }
tbody tr:hover { background: var(--v2-survol); }

.alert { border-radius: var(--v2-r-champ); }

/* =====================================================================
   8. Carte des vins
   ===================================================================== */
/* Chaque référence : une carte, son nom en grand. */
.vin-bloc { padding: 20px !important; margin-bottom: 16px !important; } /* style en ligne dans etab.js */
.vin-bloc > div:first-child > strong {
  font-size: 20px; font-weight: 600; letter-spacing: -.02em;
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.vin-bloc .dot { width: 12px; height: 12px; margin-right: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.vin-inactif { border-style: solid; }

/* Le bloc d'un millésime */
.mill {
  background: var(--v2-bloc); border: 0;
  border-radius: var(--v2-r-bloc);
  box-shadow: inset 0 0 0 1px var(--v2-filet);
  padding: 0 16px 16px; margin-top: 16px;
}
.mill > .mill-head {
  background: transparent; border-bottom: 1px solid var(--v2-filet);
  margin: 0 -16px; padding: 14px 16px; gap: 8px;
}
/* Les trois boutons du bloc, plus serrés : ils tiennent sur la ligne de
   l'année jusqu'à 1280 px, cases cochées comprises. */
.mill-head .btn.small { padding: 0 12px; }

/* L'année : grand champ centré */
.mill-edit { font-size: 13px; color: var(--v2-doux); gap: 10px; }
.mill > .mill-head .mill-edit input {
  width: 96px; padding: 0 8px;
  font-size: 22px; font-weight: 600; text-align: center;
}

/* Cœur et apéritif : deux boutons ronds de 40 px. La vraie case du cœur
   reste dans le HTML, cachée à l'œil seulement : elle porte le clic, le
   clavier et le nom accessible. */
.mill-head .fav-paire { gap: 8px; }
.mill-head .fav-sep { display: none; }
.mill-head .fav {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: var(--v2-h-bouton); padding: 0 12px;
  border-radius: var(--v2-r-pilule);
  background: var(--v2-carte); box-shadow: inset 0 0 0 1px var(--v2-contour);
  color: var(--v2-encre-2); font-size: 13px; margin: 0;
}
.mill-head .fav input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.mill-head .fav .fa-heart { color: var(--v2-indice); }
.mill-head .fav:hover { background: var(--v2-survol); }
.mill-head .fav:has(input:checked) {
  color: var(--v2-coeur); background: var(--v2-coeur-fond);
  box-shadow: inset 0 0 0 1px var(--v2-coeur-contour);
}
.mill-head .fav:has(input:checked) .fa-heart { color: var(--v2-coeur); }
.mill-head .fav:has(input:focus-visible) { outline: 2px solid var(--v2-encre); outline-offset: 2px; }

.apero-bascule {
  width: var(--v2-h-bouton); height: var(--v2-h-bouton);
  border: 0; border-radius: var(--v2-r-pilule);
  background: var(--v2-carte); color: var(--v2-encre-2);
  box-shadow: inset 0 0 0 1px var(--v2-contour);
}
.apero-bascule:hover { background: var(--v2-survol); color: var(--v2-encre); border-color: transparent; }
.apero-bascule.on, .apero-bascule.on:hover { background: var(--v2-graphite); color: #FFFFFF; box-shadow: none; }
.apero-bascule:focus-visible { outline-color: var(--v2-encre); }

/* Sur place / À emporter : interrupteurs-pilules. Les vraies cases restent
   dans le HTML, invisibles mais actives. */
.px-modes {
  display: inline-flex; gap: 4px; padding: 4px;
  border-radius: var(--v2-r-pilule); background: var(--v2-segment);
}
.px-modes label {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; margin: 0;
  border-radius: var(--v2-r-pilule);
  font-size: 13px; font-weight: 400; color: var(--v2-encre-2);
}
.px-modes input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.px-modes label:has(input:checked) {
  background: var(--v2-graphite); color: #FFFFFF; font-weight: 600;
  box-shadow: var(--v2-ombre-pilule);
}
/* La coche de la maquette, dessinée en CSS : aucune icône ajoutée au HTML. */
.px-modes label:has(input:checked)::before {
  content: ''; width: 9px; height: 5px; margin-top: -3px;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
.px-modes label:has(input:focus-visible) { outline: 2px solid var(--v2-encre); outline-offset: 1px; }

/* Les boutons de l'en-tête du bloc : Enregistrer, Masquer, Retirer. */
.mill-head .btn.secondary { box-shadow: none; background: transparent; color: var(--v2-encre-2); }
.mill-head .btn.secondary:hover { background: var(--v2-survol); color: var(--v2-encre); }

/* Les libellés « Sur place » et « À emporter » */
.px-type { margin-top: 14px; }
.px-emporter { border-top: 1px dashed var(--v2-contour); margin-top: 16px; }

/* Les prix : champ, euro, chiffres alignés */
.px-row { gap: 12px; margin-top: 10px; }
.px { font-size: 12px; color: var(--v2-doux); gap: 6px; }
.px input { width: 8rem; font-weight: 500; }
.px-suppr { color: var(--v2-indice); }

/* Ajouter une contenance : bouton discret à contour */
.mill [data-act="add-autre"] {
  margin-top: 14px !important; /* marge posée en ligne dans etab.js */
}

/* Repliables : lignes discrètes avec chevron */
.mot-etab {
  margin: 14px -16px 0; padding: 0;
  border-top: 1px solid var(--v2-filet);
}
/* Le texte entre parenthèses (« reprises de la fiche kelWINE »,
   « facultatif ») est un .crumb : sa marge basse et l'alignement au centre le
   faisaient flotter au-dessus du reste. Tout se cale sur la ligne de base ;
   seul le chevron, qui n'a pas de texte, reste centré. */
.mot-etab summary {
  display: flex; align-items: baseline; gap: 6px;
  list-style: none; padding: 12px 16px 0;
  font-size: 13px; line-height: 1.4; color: var(--v2-encre-2);
}
.mot-etab summary .crumb { margin: 0; font-size: 12px; line-height: inherit; }
.mot-etab summary::-webkit-details-marker { display: none; }
.mot-etab summary::before {
  align-self: center; margin-right: 2px;
  content: ''; width: 6px; height: 6px; flex: none;
  border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor;
  transform: rotate(-45deg); transition: transform .15s ease;
}
.mot-etab[open] summary::before { transform: rotate(45deg); }
.mot-etab summary:hover { color: var(--v2-encre); }
.mot-etab[open] { padding-bottom: 4px; }
.mot-etab > :not(summary) { margin-left: 16px; margin-right: 16px; }

/* Photo de la bouteille */
.bo-thumb { border-radius: var(--v2-r-champ); border: 0; box-shadow: inset 0 0 0 1px var(--v2-filet); }

/* Regroupement par couleur en ordre manuel */
.grp-couleur { border-bottom-color: var(--v2-filet); font-weight: 600; }

/* =====================================================================
   9. Carte complète
   ===================================================================== */
.item { border-top: 1px dashed var(--v2-contour); }
.ip-row .ip-prix { width: 8rem; }
.vins-bascule {
  min-width: var(--v2-h-bouton); height: var(--v2-h-bouton);
  border: 0; border-radius: var(--v2-r-pilule);
  background: var(--v2-carte); color: var(--v2-encre-2);
  box-shadow: inset 0 0 0 1px var(--v2-contour);
}
.vins-bascule:hover { background: var(--v2-survol); color: var(--v2-encre); }
.vins-bascule.on, .vins-bascule.on:hover { background: var(--v2-graphite); color: #FFFFFF; box-shadow: none; }

/* Bloc repliable « Demander l'ajout d'un vin » */
.collapse-head { font-size: 18px; letter-spacing: -.01em; }

/* =====================================================================
   10. Tableau de bord et statistiques
   Les chiffres qui existent déjà passent en grands chiffres.
   ===================================================================== */
.stat-card {
  border: 0; border-radius: var(--v2-r-carte);
  box-shadow: var(--v2-ombre-carte); background: var(--v2-carte);
}
.stat-num {
  font-size: 44px; font-weight: 600; letter-spacing: -.03em; line-height: 1;
  color: var(--v2-encre);
}
.stat-lbl { margin-top: 10px; }
.stat-card--alerte { box-shadow: var(--v2-ombre-carte), inset 0 0 0 1px color-mix(in srgb, var(--attention) 40%, transparent); }
/* Fréquentation sur 30 jours : le chiffre au milieu de la tuile, les
   libellés du bas alignés d'une tuile à l'autre (les tuiles d'une même
   rangée ont la même hauteur, la ligne du libellé est la dernière). */
.tdb-bloc .stat-card {
  display: grid; grid-template-rows: 1fr auto; align-items: center; justify-items: center;
}
/* Le vin le plus consulté : son nom entier, plus petit, deux lignes au plus,
   points de suspension au-delà, jamais coupé au milieu d'un mot. Le nom
   complet s'affiche au survol (title). */
.stat-nom {
  font-size: 27px; line-height: 1.15; letter-spacing: -.02em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; overflow-wrap: normal; word-break: normal; hyphens: none;
  max-width: 100%;
}
/* Le compteur de la formule : un encart blanc comme les autres, une fine
   barre bordeaux, le texte en gris. Orange doux de 95 à 99 %, rouge au
   plafond. Il remplace les anciennes boîtes bordées (etab.css). */
.formule-compteur {
  margin: calc(-1 * var(--esp-4)) 0 12px; padding: 12px 16px 14px;
  border: 0; border-radius: var(--v2-r-bloc);
  background: var(--v2-carte); box-shadow: var(--v2-ombre-carte);
  font-size: 13px; color: var(--v2-doux);
}
.formule-compteur p { margin: 0 0 8px; }
.formule-compteur b { color: var(--v2-encre-2); font-weight: 600; }
.formule-barre { display: block; height: 4px; border-radius: var(--v2-r-pilule); background: var(--v2-filet); overflow: hidden; }
.formule-barre > span { display: block; height: 100%; border-radius: inherit; background: var(--v2-marque); }
.formule-compteur.formule-alerte { background: #FDF5EA; box-shadow: inset 0 0 0 1px #F1D9B5; color: #8A5A12; }
.formule-compteur.formule-alerte b { color: inherit; }
.formule-compteur.formule-alerte .formule-barre { background: #F3E3CB; }
.formule-compteur.formule-alerte .formule-barre > span { background: #C98A2E; }
.formule-compteur.formule-atteint { background: var(--v2-danger-fond); box-shadow: inset 0 0 0 1px #F0C9CC; color: var(--v2-danger); }
.formule-compteur.formule-atteint b { color: inherit; }
.formule-compteur.formule-atteint .formule-barre { background: #F5D6D9; }
.formule-compteur.formule-atteint .formule-barre > span { background: var(--v2-danger); }
.stat-gros { font-size: 44px; font-weight: 600; letter-spacing: -.03em; color: var(--v2-encre); }
.stat-creneaux strong { color: var(--v2-encre); }
.accueil-hi { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.tdb-bloc h2, .tdb-titre-raccourcis { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.tdb-priorite { border-radius: var(--v2-r-carte); box-shadow: var(--v2-ombre-carte); border-color: transparent; }
.tdb-barre { background: var(--v2-actif); }
.tdb-barre-part { background: var(--v2-graphite); }
.tdb-barre-num { font-feature-settings: "tnum" 1; }
.tdb-sous { margin: var(--esp-4) 0 var(--esp-2); }
.tdb-liste li { border-bottom-color: var(--v2-filet); }
.tdb-plus { color: var(--v2-encre-2); }
.accueil-btn { border: 0; border-radius: var(--v2-r-carte); box-shadow: var(--v2-ombre-carte); }
.accueil-btn .ic { color: var(--v2-encre); }
/* Ouvertures de la carte, heure par heure (graphiqueHeures, etab.js).
   24 colonnes ; les deux services teintés très légèrement en fond, avec leur
   nom ; les heures sous l'axe ; la valeur au survol de chaque colonne. */
.stat-sous-titre { margin: -4px 0 16px; }
.stat-sous-titre .stat-tendance { margin-left: 4px; }
.stat-heures { margin: 0 0 16px; }
.stat-heures-zone {
  position: relative; height: 180px; padding-top: 26px;
  border-bottom: 1px solid var(--v2-contour);
}
.stat-heures-plage {
  position: absolute; top: 0; bottom: 0;
  background: color-mix(in srgb, var(--v2-marque) 5%, transparent);
  border-radius: 10px 10px 0 0;
}
.stat-heures-plage-nom {
  position: absolute; top: 6px; left: 0; right: 0; text-align: center;
  font-size: 11px; font-weight: 500; color: var(--v2-marque);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stat-heures-barres {
  position: relative; height: 100%;
  display: flex; align-items: flex-end;
}
.stat-heures-col {
  flex: 1 1 0; height: 100%; min-width: 0;
  display: flex; align-items: flex-end; justify-content: center;
  cursor: default;
}
.stat-heures-barre {
  position: relative; display: block;
  width: 62%; max-width: 18px; min-height: 2px;
  border-radius: 4px 4px 0 0;
  background: var(--v2-graphite);
  transition: background-color .12s;
}
.stat-heures-col:hover .stat-heures-barre { background: var(--v2-marque); }
/* La valeur au survol : posée au-dessus de la barre, jamais coupée par le
   bord de la carte grâce au centrage. */
.stat-heures-barre::after {
  content: attr(data-info);
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  padding: 4px 8px; border-radius: var(--v2-r-pilule);
  background: var(--v2-graphite); color: #FFFFFF;
  font-size: 12px; font-weight: 500; white-space: nowrap;
  font-feature-settings: "tnum" 1;
  opacity: 0; pointer-events: none; transition: opacity .1s; z-index: 2;
}
.stat-heures-col:hover .stat-heures-barre::after { opacity: 1; }
.stat-heures-axe { position: relative; height: 22px; }
.stat-heures-axe > span {
  position: absolute; top: 6px; transform: translateX(-50%);
  font-size: 11px; color: var(--v2-libelle); white-space: nowrap;
  font-feature-settings: "tnum" 1;
}

/* Périodes des statistiques : segment en pilule, comme Sur place / À emporter */
.stat-periodes { gap: 4px; padding: 4px; border-radius: var(--v2-r-pilule); background: var(--v2-segment); width: max-content; }
.stat-periodes button {
  border: 0; border-radius: var(--v2-r-pilule); background: transparent;
  height: 32px; padding: 0 14px; font-size: 13px; color: var(--v2-encre-2);
}
.stat-periodes button:hover { color: var(--v2-encre); background: transparent; }
.stat-periodes button.on { background: var(--v2-graphite); color: #FFFFFF; box-shadow: var(--v2-ombre-pilule); }

/* Compteur de la formule */
.formule-compteur { font-feature-settings: "tnum" 1; }

/* =====================================================================
   11. Personnalisation et supports
   ===================================================================== */
.perso-choix button, .icones-choix button {
  border-radius: var(--v2-r-pilule);
}
.perso-choix button.on { background: var(--v2-graphite); border-color: var(--v2-graphite); color: #FFFFFF; }
.perso-choix button:hover, .icones-choix button:hover { border-color: var(--v2-encre); }
.icones-choix button.on { border-color: var(--v2-encre); }
.theme-pastille.on { border-color: var(--v2-encre); }
.theme-swatch { border-radius: var(--v2-r-champ); }
.perso-apercu-onglets button.on { color: var(--v2-encre); border-bottom-color: var(--v2-encre); }
.perso-panneau { border-top-color: var(--v2-filet); }
.perso-cadre { border-radius: var(--v2-r-carte); }
.sup-qr { border-radius: var(--v2-r-bloc); border-color: var(--v2-filet); }
.cp-case input, .vins-option input, label.interrupteur input { accent-color: var(--v2-encre); }

/* =====================================================================
   12. Fenêtres modales
   Confirmations, ajout de contenance, renommage, choix de vins, tutoriel.
   ===================================================================== */
.dlg, .dlg-portee, .dlg-tuto, .modale {
  border: 0; border-radius: var(--v2-r-carte);
  box-shadow: var(--v2-ombre-modale);
  background: var(--v2-carte); color: var(--v2-encre);
}
.dlg::backdrop, .dlg-portee::backdrop, .dlg-tuto::backdrop { background: rgba(29, 27, 26, .38); }
.modale-fond { background: rgba(29, 27, 26, .38); }
.dlg-portee { padding: 24px; }
.dlg-titre, .dlg-portee h3 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.dlg-detail p, .dlg-liste { color: var(--v2-doux); }
.dlg-actions { gap: 8px; }
.modale-corps { border-color: var(--v2-filet); border-radius: var(--v2-r-champ); }
.tuto-lien, .tuto-sortie { border-radius: var(--v2-r-champ); }
.tuto-fermer { border-radius: var(--v2-r-pilule); }
.vins-liste { border-radius: var(--v2-r-champ); }

/* =====================================================================
   13. Bandeau d'annonce (toast)
   ===================================================================== */
/* En haut au centre, juste sous l'en-tête de page, là où se pose le regard
   après un clic sur Enregistrer. Un peu plus grand qu'avant, avec une coche
   dessinée en CSS : toast() n'écrit que le texte, il ne change pas. Il reste
   visible 3 s (minuterie de toast(), etab.js). */
.toast {
  top: calc(var(--v2-marge) + 76px); bottom: auto;
  transform: translateX(-50%) translateY(-.75rem);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; font-size: 15px; font-weight: 500; line-height: 1.3;
  border-radius: var(--v2-r-pilule); box-shadow: var(--v2-ombre-modale);
  z-index: 70;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.ok { background: var(--v2-graphite); color: #FFFFFF; }
.toast.ok::before {
  content: ''; flex: none; width: 6px; height: 12px; margin: -3px 4px 0 2px;
  border-right: 2.5px solid #8FE0AB; border-bottom: 2.5px solid #8FE0AB;
  transform: rotate(45deg);
}
.toast.err { background: var(--v2-danger); color: #FFFFFF; }

/* =====================================================================
   14. Finitions
   ===================================================================== */
/* Carte des vins, ordre d'affichage : la liste prend la largeur de sa plus
   longue option, l'aide passe dessous en petit gris. */
.ordre-barre { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ordre-barre select { width: auto; max-width: 100%; padding-right: 36px; }
.ordre-barre .crumb { margin: 0; font-size: 12px; color: var(--v2-doux); }

/* Filtrer ma carte : la recherche sur toute la première ligne, avec sa
   loupe ; les filtres dessous, chacun avec son icône Lucide à gauche ;
   « Réinitialiser » en lien texte, à droite. Les règles de etab.css
   (largeur au contenu, repli de ligne) restent valables : elles visent les
   champs, qui gardent leur place dans le DOM. */
.filtres-carte { gap: 8px; margin-top: 6px; }
.filtres-carte > .filtre { position: relative; display: inline-flex; align-items: center; }
.filtres-carte > .filtre-recherche { flex: 1 1 100%; }
.filtres-carte .filtre > .filtre-ic {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--v2-libelle); pointer-events: none;
}
.filtres-carte .filtre > :is(input, select) { padding-left: 38px; }
.filtres-carte .filtre-recherche > input { width: 100%; flex: 1 1 auto; }
.filtres-carte .filtre > select { padding-right: 34px; }
/* Prix et millésime : l'icône prend sa place, « Millésime » doit rester entier. */
.filtres-carte .filtre > input[type="number"] { width: 9.5rem; }
.filtres-carte .filtre:focus-within > .filtre-ic { color: var(--v2-encre); }
.filtres-reset {
  margin-left: auto; border: 0; background: none; padding: 0 4px; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--v2-encre-2);
  text-decoration: underline; text-underline-offset: 3px;
}
.filtres-reset:hover { color: var(--v2-encre); }

/* « Enregistré ✓ » pendant 2 s après un enregistrement réussi
   (confirmerBouton, etab.js). */
.btn.enregistre, .btn.enregistre:hover { background: var(--v2-graphite); color: #FFFFFF; }

/* Recherche dans la base : une ligne « Déjà sur votre carte » a la même
   disposition que les autres. Le champ millésime et le bouton restent côte à
   côte, à droite ; tous les boutons ont la largeur du plus long (« + Ajouter
   quand même »), si bien que les champs millésime s'alignent d'une ligne à
   l'autre. Le bouton d'une ligne déjà présente reste en gris alu. */
#search-results tr > td:last-child:not([colspan]) { white-space: nowrap; width: 1%; }
#search-results tr > td:last-child:not([colspan]) > .mil-ajout { vertical-align: middle; margin-right: 6px; }
#search-results [data-add] { min-width: 172px; vertical-align: middle; }

/* « Déjà sur votre carte » : une étiquette discrète. Fond rose très pâle,
   texte bordeaux ; taille et forme des autres étiquettes (règle .badge). */
.badge.deja { background: #FBEFF2; color: var(--v2-marque); }

/* =====================================================================
   15. Exporter ma carte (Mes supports)
   ===================================================================== */
/* Deux cartes côte à côte, chacune un titre, une phrase et un bouton. Une
   seule colonne sur petit écran. */
.ex-cartes {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
@media (max-width: 720px) { .ex-cartes { grid-template-columns: 1fr; } }
.ex-carte {
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
  padding: 16px 18px 18px;
  border: 1px solid var(--v2-filet); border-radius: var(--v2-r-bloc);
  background: var(--v2-bloc);
}
.ex-carte h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--v2-encre); }
.ex-carte p { margin: 0 0 6px; font-size: 13px; color: var(--v2-doux); line-height: 1.5; min-height: 3em; }
/* Les boutons côte à côte, même forme et même taille : Excel en bordeaux,
   CSV en gris alu (secondaire). Ils passent l'un sous l'autre s'il le faut. */
.ex-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ex-actions .btn[aria-expanded="true"] { background: var(--v2-alu-survol); }
/* Le choix des décimales n'apparaît qu'au clic sur « en CSV ». */
.ex-csv { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 6px; }
.ex-csv .cp-cases { align-items: center; }
.ex-decimales-titre { font-size: 13px; color: var(--v2-doux); }

/* Importer mon fichier mis à jour. Le dernier import et son annulation sous
   les boutons de la carte ; l'aperçu, large, sous les deux cartes. */
.im-dernier {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--v2-filet);
  font-size: 13px; color: var(--v2-encre-2);
}
.im-panneau {
  margin-top: 12px; padding: 16px 18px 18px; min-width: 0;
  border: 1px solid var(--v2-filet); border-radius: var(--v2-r-bloc);
  background: var(--v2-carte);
  display: flex; flex-direction: column; gap: 10px;
}
.im-panneau h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--v2-encre); overflow-wrap: anywhere; }
.im-panneau .alert { margin: 0; }
.im-etapes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.im-etapes li {
  padding: 4px 10px; border-radius: var(--v2-r-pilule);
  background: var(--v2-bloc); color: var(--v2-indice); font-size: 12px; font-weight: 500;
}
.im-etapes li.fait { color: var(--v2-encre-2); }
.im-etapes li.actif { background: var(--v2-marque); color: #fff; }
.im-resume { margin: 0; font-size: 14px; font-weight: 600; color: var(--v2-encre); }
.im-liste { margin: 6px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.im-num { font-weight: 600; }
.im-avertissements { font-size: 13px; color: var(--v2-encre-2); }
.im-avertissements summary { cursor: pointer; font-weight: 500; }
.im-filtre { font-size: 13px; }
.im-rien { margin: 0; font-size: 13px; color: var(--v2-doux); }
.im-tableau-cadre { overflow-x: auto; border: 1px solid var(--v2-filet); border-radius: var(--v2-r-champ); }
.im-tableau { width: 100%; border-collapse: collapse; font-size: 13px; }
.im-tableau th {
  text-align: left; padding: 8px 10px; background: var(--v2-bloc);
  font-size: var(--v2-libelle-taille); font-weight: var(--v2-libelle-graisse);
  color: var(--v2-libelle); text-transform: uppercase; letter-spacing: .04em;
}
.im-tableau td { padding: 8px 10px; border-top: 1px solid var(--v2-filet); vertical-align: top; color: var(--v2-encre); }
.im-champ { color: var(--v2-doux); }
.im-statut {
  display: inline-block; padding: 2px 8px; border-radius: var(--v2-r-pilule);
  background: var(--v2-bloc); color: var(--v2-doux); font-size: 12px; white-space: nowrap;
}
.im-statut.modifiee { background: var(--v2-actif); color: var(--v2-encre); }
.im-statut.perimee { background: var(--attention-fond); color: var(--attention); }
.im-statut.erreur { background: var(--v2-danger-fond); color: var(--v2-danger); }
/* Sur téléphone, chaque ligne devient une petite fiche : libellé à gauche,
   valeur à droite (data-l). */
@media (max-width: 720px) {
  .im-tableau-cadre { border: 0; overflow: visible; }
  .im-tableau thead { display: none; }
  .im-tableau, .im-tableau tbody, .im-tableau tr, .im-tableau td { display: block; }
  .im-tableau tr { border: 1px solid var(--v2-filet); border-radius: var(--v2-r-champ); margin-bottom: 8px; padding: 4px 0; }
  .im-tableau td { display: flex; gap: 10px; border-top: 0; padding: 4px 12px; }
  .im-tableau td::before { content: attr(data-l); flex: 0 0 92px; color: var(--v2-libelle); font-size: 12px; }
  .im-actions .btn { flex: 1 1 auto; }
}

/* =====================================================================
   16. Stock (lot moteur)
   ===================================================================== */
/* Le stock d'une contenance, à droite de son prix. Son libellé « Stock »
   se place au-dessus de la case, sur la ligne du nom de la contenance
   (« Bouteille », « Magnum »), dans le même style. Donnée interne, jamais
   dans la WebApp.

   Une grille de deux colonnes sur la contenance : ligne 1 les libellés, ligne
   2 les cases. Les enveloppes .px-saisie et .px-stock s'effacent
   (display: contents) pour que leurs enfants se rangent dans la grille. Sans
   champ Stock (verre, suivi désactivé), la contenance reste en une colonne. */
.px:has(.px-stock) {
  display: grid; grid-template-columns: max-content max-content;
  column-gap: 8px; row-gap: 6px; align-items: end;
}
.px:has(.px-stock) > span:first-of-type { grid-column: 1; grid-row: 1; }
.px:has(.px-stock) .px-saisie,
.px:has(.px-stock) .px-stock { display: contents; }
.px:has(.px-stock) .px-saisie > input { grid-column: 1; grid-row: 2; }
.px:has(.px-stock) .px-stock-lib { grid-column: 2; grid-row: 1; }
.px:has(.px-stock) .px-stock input { grid-column: 2; grid-row: 2; }
.px-saisie { display: inline-flex; align-items: center; gap: 8px; }
/* Le même style que le nom de la contenance : on hérite de .px. */
.px-stock-lib { font: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.px .px-stock input {
  width: 4.75rem; text-align: right; font-feature-settings: "tnum" 1;
  background: var(--v2-alu); border-color: var(--v2-alu);
}
.px .px-stock input:focus { background: var(--v2-carte); border-color: var(--v2-marque); }
/* « Ma carte » : l'ordre d'affichage et la gestion des stocks, deux encarts
   côte à côte de même hauteur ; l'un sous l'autre sur un écran étroit. */
.carte-reglages {
  display: grid; gap: 12px; margin-bottom: .8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 860px) { .carte-reglages { grid-template-columns: 1fr; } }
.carte-reglages > .card { margin: 0; }
.stock-encart { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.stock-encart .crumb { margin: 0; font-size: 12px; color: var(--v2-doux); }
/* L'interrupteur « Gestion des stocks » : une pilule qui glisse, l'état écrit
   à côté. Activé : bordeaux. */
.suivi-stock { display: inline-flex; align-items: center; gap: 10px; margin: 2px 0; cursor: pointer; }
.suivi-stock input[role="switch"] {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0; cursor: pointer;
  width: 44px; height: 24px; border-radius: var(--v2-r-pilule);
  background: var(--v2-contour); position: relative; transition: background .15s;
}
.suivi-stock input[role="switch"]::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #FFFFFF; box-shadow: var(--v2-ombre-pilule); transition: transform .15s;
}
.suivi-stock input[role="switch"]:checked { background: var(--v2-marque); }
.suivi-stock input[role="switch"]:checked::after { transform: translateX(20px); }
.suivi-stock input[role="switch"]:focus-visible { outline: 2px solid var(--v2-marque); outline-offset: 2px; }
.suivi-stock input[role="switch"]:disabled { opacity: .6; cursor: wait; }
.suivi-etat { font-size: 14px; font-weight: 500; color: var(--v2-doux); }
.suivi-stock:has(input:checked) .suivi-etat { color: var(--v2-marque); font-weight: 600; }
/* « Masquer automatiquement les vins épuisés », sous le suivi des stocks et
   seulement avec lui : même interrupteur, séparé par un filet. */
.masquage-epuises {
  display: flex; flex-direction: column; gap: 6px; align-self: stretch;
  margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--v2-filet);
}
.masquage-epuises[hidden] { display: none; }
.masquage-lib { font-size: 14px; font-weight: 500; color: var(--v2-encre); }
/* Une contenance épuisée (option active) : grisée, toujours modifiable.
   « Épuisé » et « Masqué : épuisé » : pastilles orangées, distinctes du
   « Masqué » gris posé à la main. */
.px-epuise > span:first-of-type, .px-epuise input[data-cont], .px-epuise input[data-cont-emp] { opacity: .55; }
.badge.epuise { background: var(--attention-fond); color: var(--attention); }
/* « Vendue au verre », dans la fenêtre d'ajout d'une contenance. */
.dlg-verre { margin-top: 10px; }
