/* =========================================================================
   TAOBENTO - charte DATIS (celle de BELENOS), en DEUX THEMES.

   Sombre par defaut. Clair au choix de l'utilisateur (bulle du compte >
   Apparence), ou selon le systeme avec le theme "auto". Les ecrans ne
   connaissent que les jetons (--fond, --surface, --texte...) : aucune
   couleur en dur dans un ecran, donc aucun ecran a reprendre pour un theme.

   Bootstrap est branche sur ces memes jetons plutot que combattu a coups
   de !important.
   ========================================================================= */

:root {
  /* --- marque, commune aux deux themes --- */
  --datis-orange:        #FD7E00;
  --datis-orange-clair:  #FF9633;
  --datis-orange-fonce:  #D96C00;

  --police: "Segoe UI", "Segoe UI Variable Text", system-ui, -apple-system,
            Roboto, "Helvetica Neue", Arial, sans-serif;

  --rayon:      .5rem;
  --rayon-sm:   .3rem;
}

/* --- THEME SOMBRE (defaut) --- */
:root,
:root[data-theme="sombre"] {
  color-scheme: dark;

  --fond:        #333333;
  --surface:     #3C3C3C;
  --surface-2:   #454545;
  --barre:       #2A2A2A;
  --bordure:     #4A4A4A;
  --bordure-forte: #5C5C5C;

  --texte:       #EDEDED;
  --texte-2:     #ADADAD;
  --texte-3:     #8A8A8A;

  /* Etats : deux niveaux seulement, distincts de l'orange de marque. */
  --alerte:      #FF8A8A;
  --alerte-fond: rgba(255, 138, 138, .14);
  --ok:          #98FB98;
  --ok-fond:     rgba(152, 251, 152, .12);
  --attention:      #F1DFA6;
  --attention-fond: rgba(241, 223, 166, .16);

  --lien:        var(--datis-orange);
  --lien-survol: var(--datis-orange-clair);
  --sur-orange:  #1F1F1F;          /* texte pose SUR l'orange */
  --ombre:       0 10px 30px rgba(0, 0, 0, .35);
  --ombre-douce: 0 1px 2px rgba(0, 0, 0, .25);
  --survol:      rgba(255, 255, 255, .05);
  --zebre:       rgba(255, 255, 255, .035);
}

/* --- THEME CLAIR ---
   L'orange de marque reste l'orange, mais sur fond clair il tombe a 2,6:1 :
   liens et texte orange passent a --lien (#B35800, 4,8:1), et l'orange plein
   ne sert plus qu'en aplat, avec du texte sombre dessus. */
:root[data-theme="clair"] {
  color-scheme: light;

  --fond:        #F1F3F6;
  --surface:     #FFFFFF;
  --surface-2:   #E9EDF2;
  --barre:       #FFFFFF;
  --bordure:     #DCE1E8;
  --bordure-forte: #BFC7D1;

  --texte:       #1E2329;
  --texte-2:     #4B535C;
  --texte-3:     #6B747E;

  --alerte:      #B3261E;
  --alerte-fond: rgba(179, 38, 30, .09);
  --ok:          #1B7A45;
  --ok-fond:     rgba(27, 122, 69, .10);
  --attention:      #7A5A00;
  --attention-fond: rgba(122, 90, 0, .10);

  --lien:        #B35800;
  --lien-survol: #8A4300;
  --sur-orange:  #1F1F1F;
  --ombre:       0 1px 2px rgba(16, 24, 40, .06), 0 10px 26px rgba(16, 24, 40, .10);
  --ombre-douce: 0 1px 2px rgba(16, 24, 40, .08);
  --survol:      rgba(16, 24, 40, .04);
  --zebre:       rgba(16, 24, 40, .025);
}

/* --- Bootstrap 5.3 : ses variables pointent sur les notres --- */
:root,
[data-bs-theme="dark"],
[data-bs-theme="light"] {
  --bs-body-bg: var(--fond);
  --bs-body-color: var(--texte);
  --bs-secondary-color: var(--texte-2);
  --bs-tertiary-color: var(--texte-3);
  --bs-border-color: var(--bordure);
  --bs-border-radius: var(--rayon-sm);

  --bs-primary: var(--datis-orange);
  --bs-primary-rgb: 253, 126, 0;
  --bs-link-color: var(--lien);
  --bs-link-hover-color: var(--lien-survol);
  --bs-link-color-rgb: 179, 88, 0;

  --bs-emphasis-color: var(--texte);
  --bs-heading-color: var(--texte);
}

html, body {
  font-family: var(--police);
  background-color: var(--fond);
  color: var(--texte);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -.01em; }

/* Partout ou des chiffres s'alignent en colonne : montants, dates, delais. */
.table, .tabulaire, .montant { font-variant-numeric: tabular-nums; }

/* --- liens et focus --- */
a { text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--datis-orange);
  outline-offset: 2px;
  border-radius: 3px;
}

.btn:focus, .btn:active:focus, .form-control:focus, .form-select:focus {
  box-shadow: 0 0 0 .2rem rgba(253, 126, 0, .35);
  border-color: var(--datis-orange);
}

/* --- boutons ---
   Texte SOMBRE sur l'orange : du blanc sur #FD7E00 tombe a 2,5:1 de
   contraste, illisible. Du #1F1F1F atteint 6,8:1. */
.btn-primary {
  --bs-btn-bg: var(--datis-orange);
  --bs-btn-border-color: var(--datis-orange);
  --bs-btn-color: var(--sur-orange);
  --bs-btn-hover-bg: var(--datis-orange-clair);
  --bs-btn-hover-border-color: var(--datis-orange-clair);
  --bs-btn-hover-color: var(--sur-orange);
  --bs-btn-active-bg: var(--datis-orange-fonce);
  --bs-btn-active-border-color: var(--datis-orange-fonce);
  --bs-btn-active-color: var(--sur-orange);
  --bs-btn-disabled-bg: var(--surface-2);
  --bs-btn-disabled-border-color: var(--bordure-forte);
  --bs-btn-disabled-color: var(--texte-3);
  font-weight: 600;
}

.btn-outline-primary {
  --bs-btn-color: var(--lien);
  --bs-btn-border-color: var(--datis-orange);
  --bs-btn-hover-bg: var(--datis-orange);
  --bs-btn-hover-border-color: var(--datis-orange);
  --bs-btn-hover-color: var(--sur-orange);
  --bs-btn-active-bg: var(--datis-orange);
  --bs-btn-active-color: var(--sur-orange);
}

.btn-secondary {
  --bs-btn-bg: var(--surface-2);
  --bs-btn-border-color: var(--bordure-forte);
  --bs-btn-color: var(--texte);
  --bs-btn-hover-bg: var(--bordure);
  --bs-btn-hover-border-color: var(--bordure-forte);
  --bs-btn-hover-color: var(--texte);
}

/* --- cartes --- */
.card {
  --bs-card-bg: var(--surface);
  --bs-card-border-color: var(--bordure);
  --bs-card-color: var(--texte);
}

/* --- tableaux --- */
.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--texte);
  --bs-table-border-color: var(--bordure);
  --bs-table-hover-bg: var(--survol);
  --bs-table-hover-color: var(--texte);
}
.table > thead th {
  color: var(--texte-3);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom-color: var(--bordure-forte);
  white-space: nowrap;
}

/* --- formulaires --- */
.form-control, .form-select {
  background-color: var(--surface);
  border-color: var(--bordure-forte);
  color: var(--texte);
}
.form-control:focus, .form-select:focus {
  background-color: var(--surface);
  color: var(--texte);
}
.form-control::placeholder { color: var(--texte-3); }
.form-label { color: var(--texte-2); font-size: .875rem; font-weight: 600; }
.form-floating > label { color: var(--texte-3); }

/* =========================================================================
   Etats
   Deux niveaux seulement. L'orange reste reserve a la marque : un etat
   en alerte affiche en orange se confondrait avec l'identite et cesserait
   d'attirer l'oeil. La couleur double toujours un mot, jamais l'inverse.
   ========================================================================= */
.etat {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 4px;
  white-space: nowrap;
}
.etat::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.etat-alerte { color: var(--alerte); background: var(--alerte-fond); }
.etat-ok     { color: var(--ok);     background: var(--ok-fond); }
.etat-neutre { color: var(--texte-2); background: var(--surface-2); }

.texte-alerte { color: var(--alerte); }
.texte-ok     { color: var(--ok); }
.texte-faible { color: var(--texte-3); }

/* --- tuiles d'indicateur --- */
.tuile {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: .375rem;
  padding: .9rem 1.05rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.tuile-libelle {
  font-size: .7rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--texte-3);
}
.tuile-valeur {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.tuile-note { font-size: .8rem; color: var(--texte-3); }
.tuile-alerte { border-color: var(--alerte); background: var(--alerte-fond); }
.tuile-alerte .tuile-valeur { color: var(--alerte); }

/* --- graphique d'echeances --- */
.barres { display: flex; align-items: flex-end; gap: 5px; }
.barres > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; }
.barres .b { width: 100%; border-radius: 3px 3px 0 0; background: var(--bordure-forte); }
.barres .b.chaude { background: var(--alerte); }
.barres .n { font-size: .7rem; font-weight: 600; color: var(--texte-2); font-variant-numeric: tabular-nums; }
.barres .m { font-size: .68rem; color: var(--texte-3); text-transform: uppercase; letter-spacing: .04em; }

/* --- validation (conserve du modele Blazor) --- */
.valid.modified:not([type=checkbox]) { outline: 1px solid var(--ok); }
.invalid { outline: 1px solid var(--alerte); }
.validation-message { color: var(--alerte); }

/* --- interface d'erreur Blazor --- */
#blazor-error-ui {
  background: var(--alerte-fond);
  border-top: 2px solid var(--alerte);
  color: var(--texte);
  bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.4);
  display: none; left: 0; padding: .8rem 1.4rem .8rem 1.4rem; position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

.blazor-error-boundary {
  background: var(--alerte-fond);
  border: 1px solid var(--alerte);
  border-radius: .375rem;
  padding: 1rem;
  color: var(--texte);
}

.darker-border-checkbox.form-check-input { border-color: var(--bordure-forte); }

/* =========================================================================
   Grammaire des pages (celle de BELENOS) : un .entete-page avec un
   <h1 class="h4"> et une phrase grise dessous, puis des <details class="rubrique">.
   ========================================================================= */
.entete-page h1 { margin-bottom: .2rem; }
.entete-page p { color: var(--texte-3); margin-bottom: 0; }

.rubrique {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: .375rem;
  margin-bottom: 1rem;
}
.rubrique > summary {
  cursor: pointer;
  padding: .75rem 1rem;
  font-weight: 600;
  list-style: none;
}
.rubrique > summary::-webkit-details-marker { display: none; }
.rubrique > summary::before {
  content: "\25B8";
  display: inline-block;
  width: 1rem;
  color: var(--texte-3);
  transition: transform .15s;
}
.rubrique[open] > summary::before { transform: rotate(90deg); }
.rubrique > .rubrique-corps { padding: 0 1rem 1rem; }

/* --- double authentification : le QR code reste noir sur blanc --- */
.qr-cadre {
  width: 220px;
  max-width: 100%;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: .375rem;
  padding: 6px;
  min-height: 120px;
}
.qr-cadre svg { display: block; width: 100%; height: auto; }

.cle-manuelle, .codes-secours {
  font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
  letter-spacing: .06em;
}

.codes-secours {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .35rem .75rem;
  background: var(--fond);
  border: 1px solid var(--bordure-forte);
  border-radius: .375rem;
  padding: .75rem 1rem;
}

.mot-de-passe-provisoire {
  font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
  font-size: 1.15rem;
  letter-spacing: .08em;
  color: var(--texte);
  background: var(--fond);
  border: 1px dashed var(--datis-orange);
  border-radius: .375rem;
  padding: .35rem .75rem;
  display: inline-block;
  user-select: all;
}

/* =========================================================================
   Icones du menu : SVG en ligne poses en MASQUE CSS, colores par
   currentColor (gris au repos, orange au survol). Aucun fichier, aucune
   police. Pour en ajouter une : SVG 24x24, fill='none', stroke='%23000',
   stroke-width='1.6', encode en URL, et les DEUX proprietes mask-image.
   Deux entrees voisines ne portent jamais le meme dessin.
   ========================================================================= */
.ic {
  flex: none;
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: .75rem;
  position: relative;
  top: -1px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
}

.ic-accueil {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h7v7H4z'/%3E%3Cpath d='M13 4h7v4h-7z'/%3E%3Cpath d='M13 10h7v10h-7z'/%3E%3Cpath d='M4 13h7v7H4z'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h7v7H4z'/%3E%3Cpath d='M13 4h7v4h-7z'/%3E%3Cpath d='M13 10h7v10h-7z'/%3E%3Cpath d='M4 13h7v7H4z'/%3E%3C/svg%3E");
}

.ic-utilisateurs {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3.5 19.5c.6-3.3 2.9-5.2 5.5-5.2s4.9 1.9 5.5 5.2'/%3E%3Ccircle cx='17' cy='9' r='2.4'/%3E%3Cpath d='M16.2 14.3c2.3.3 3.9 2 4.3 5.2'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3.5 19.5c.6-3.3 2.9-5.2 5.5-5.2s4.9 1.9 5.5 5.2'/%3E%3Ccircle cx='17' cy='9' r='2.4'/%3E%3Cpath d='M16.2 14.3c2.3.3 3.9 2 4.3 5.2'/%3E%3C/svg%3E");
}

.ic-cle {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M10.9 12.1L19 4'/%3E%3Cpath d='M16 7l2.5 2.5'/%3E%3Cpath d='M13.5 9.5L16 12'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M10.9 12.1L19 4'/%3E%3Cpath d='M16 7l2.5 2.5'/%3E%3Cpath d='M13.5 9.5L16 12'/%3E%3C/svg%3E");
}

/* =========================================================================
   Livraison 03 : consultation de RECUPERO
   ========================================================================= */
.lien-tuile { color: inherit; }
.lien-tuile:hover { color: var(--lien); text-decoration: none; }

/* --- icones du menu, livraison 03 --- */
.ic-master {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='1.5'/%3E%3Cpath d='M3.5 9.5h17'/%3E%3Cpath d='M3.5 14.5h17'/%3E%3Cpath d='M9.5 9.5v10'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='1.5'/%3E%3Cpath d='M3.5 9.5h17'/%3E%3Cpath d='M3.5 14.5h17'/%3E%3Cpath d='M9.5 9.5v10'/%3E%3C/svg%3E");
}

.ic-sites {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-5.6-6.5-11a6.5 6.5 0 0 1 13 0c0 5.4-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.4'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-5.6-6.5-11a6.5 6.5 0 0 1 13 0c0 5.4-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.4'/%3E%3C/svg%3E");
}

.ic-journal {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3.5h9l3.5 3.5v13.5H6z'/%3E%3Cpath d='M14.5 3.5V7.5h4'/%3E%3Cpath d='M9 11.5h6.5'/%3E%3Cpath d='M9 14.5h6.5'/%3E%3Cpath d='M9 17.5h4'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3.5h9l3.5 3.5v13.5H6z'/%3E%3Cpath d='M14.5 3.5V7.5h4'/%3E%3Cpath d='M9 11.5h6.5'/%3E%3Cpath d='M9 14.5h6.5'/%3E%3Cpath d='M9 17.5h4'/%3E%3C/svg%3E");
}

/* =========================================================================
   Livraison 04
   ========================================================================= */

/* --- tous les tableaux : une ligne sur deux legerement plus claire --- */
.table > tbody > tr:nth-of-type(odd) > * { --bs-table-bg-type: var(--zebre); }

.min-w-0 { min-width: 0; }
.flex-none { flex: none; }
.titre-section { color: var(--texte-2); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin: 1.5rem 0 .75rem; }

/* --- table MASTER : ligne cliquable --- */
.ligne-cliquable { cursor: pointer; }
.ligne-choisie > * { --bs-table-bg-state: var(--surface-2); }

/* --- fenetre au premier plan (fiche produit) --- */
.fenetre-fond {
  position: fixed;
  inset: 0;
  /* Au-dessus de la barre du haut (1000), du menu (1050) et du tiroir telephone (1200) :
     sinon la barre collee masquait le haut de la fiche. Sous l'erreur Blazor (1300). */
  z-index: 1250;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.fenetre {
  width: min(56rem, 100%);
  max-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--bordure-forte);
  border-radius: .6rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
  outline: none;
}
.fenetre-entete {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem .85rem;
  border-bottom: 1px solid var(--bordure);
}
.fenetre-corps { overflow-y: auto; padding: 1rem 1.25rem 1.5rem; }

.fiche-haut { display: grid; grid-template-columns: 11rem 1fr; gap: 1.25rem; margin-bottom: .5rem; }
.fiche-image a, .fiche-sans-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 11rem;
  height: 11rem;
  border-radius: .45rem;
  background: var(--fond);
  border: 1px solid var(--bordure);
  overflow: hidden;
}
.fiche-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fiche-sans-image { color: var(--texte-3); font-size: .8rem; }

.fiche-groupe {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--lien);
  margin: 1.25rem 0 .5rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--bordure);
}
.fiche {
  display: grid;
  grid-template-columns: minmax(8rem, 32%) 1fr;
  gap: .35rem .9rem;
  margin: 0;
  font-size: .875rem;
}
.fiche dt { color: var(--texte-3); font-weight: 600; }
.fiche dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.fiche .champ-en-cause { color: var(--alerte); }
dd.champ-en-cause { background: var(--alerte-fond); border-radius: 3px; padding: 0 .35rem; font-weight: 600; }

@media (max-width: 640px) {
  .fenetre-fond { padding: .5rem; }
  .fiche-haut { grid-template-columns: 1fr; }
  .fiche { grid-template-columns: 1fr; gap: .1rem; }
  .fiche dd { margin-bottom: .45rem; }
}

/* --- verdict d'une execution ou d'une mise a jour --- */
.verdict {
  border: 1px solid var(--bordure);
  border-left-width: 4px;
  border-radius: .45rem;
  padding: .85rem 1.1rem;
  margin-bottom: 1rem;
  background: var(--surface);
}
.verdict-titre { font-size: 1.1rem; font-weight: 600; }
.verdict-detail { color: var(--texte-2); margin-top: .2rem; }
.verdict-ok { border-left-color: var(--ok); }
.verdict-ok .verdict-titre { color: var(--ok); }
.verdict-alerte { border-left-color: var(--alerte); background: var(--alerte-fond); }
.verdict-alerte .verdict-titre { color: var(--alerte); }
.verdict-neutre { border-left-color: var(--texte-3); }

/* --- listes cliquables (journaux, MASTER) --- */
.ligne-cliquable .chevron { font-size: 1.15rem; line-height: 1; }
.ligne-cliquable:hover .chevron { color: var(--lien); }
.texte-coupe { max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.colonne-declenchement { max-width: 22rem; }

/* --- anomalies d'une execution : une ligne courte par message --- */
.anomalies { list-style: none; margin: 0; padding: 0; }
.anomalies > li {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: .4rem .75rem;
  border: 1px solid var(--bordure);
  border-left-width: 3px;
  border-radius: .3rem;
  background: var(--surface);
  margin-bottom: .35rem;
  font-size: .87rem;
}
.anomalies > li.anomalie-erreur { border-left-color: var(--alerte); background: var(--alerte-fond); }
.anomalies .pastille { flex: none; }
.anomalie-portee { flex: none; font-weight: 600; color: var(--texte-3); min-width: 3rem; }
/* Deux lignes au plus : le texte entier reste dans le journal et dans l'infobulle. */
.anomalie-texte {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* --- journal technique --- */
.journal {
  height: 60vh;
  overflow-y: auto;
  background: var(--fond);
  border: 1px solid var(--bordure-forte);
  border-radius: .375rem;
  font-size: .82rem;
}
.journal-ligne {
  display: flex;
  gap: .75rem;
  align-items: baseline;
  min-height: 26px;
  padding: .2rem .6rem;
  color: var(--texte-2);
  border-bottom: 1px solid var(--bordure);
}
.journal-heure { flex: none; color: var(--texte-3); font-variant-numeric: tabular-nums; font-family: Consolas, "Cascadia Mono", monospace; }
.journal-niveau { flex: none; width: 7.5rem; }
.journal-portee { flex: none; width: 5rem; color: var(--texte-3); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.journal-message { flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--texte); }
.pastille {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  padding: .05rem .45rem;
  border-radius: 3px;
  background: var(--surface-2);
  color: var(--texte-2);
}
.journal-erreur { background: var(--alerte-fond); }
.journal-erreur .pastille { background: var(--alerte); color: var(--surface); }
.journal-erreur .journal-message { color: var(--alerte); }
.journal-avertissement .pastille { background: var(--attention-fond); color: var(--attention); }
.journal-succes .pastille { background: var(--ok-fond); color: var(--ok); }
.journal-direct { height: auto; max-height: 16rem; }

/* --- mise a jour : lancement et suivi en direct --- */
.panneau-lancement {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: .45rem;
  padding: 1.1rem 1.25rem;
}
.panneau-lancement-texte { color: var(--texte-2); flex: 1; min-width: 14rem; }

.suivi {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: .45rem;
  padding: 1rem 1.25rem;
}
.suivi-actif { border-color: var(--datis-orange); }
.suivi-entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.suivi-titre { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .2rem; }
.suivi-chiffres { display: flex; flex-wrap: wrap; gap: .4rem 2rem; margin: .75rem 0 .4rem; }
.suivi-chiffres .texte-faible { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.suivi-etape { color: var(--texte); font-size: .9rem; margin-bottom: .25rem; overflow-wrap: anywhere; }

/* Barre indeterminee : la duree reelle n'est pas connue a l'avance. */
.progression { position: relative; height: 4px; margin-top: .9rem; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.progression > div {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  border-radius: 2px;
  background: var(--datis-orange);
  animation: progression 1.6s ease-in-out infinite;
}
@keyframes progression { 0% { left: -35%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .progression > div { animation: none; left: 0; width: 100%; opacity: .5; } }

/* --- icones du menu, livraison 04 --- */
.ic-maj {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 0 0-14.3-4.9'/%3E%3Cpath d='M5.5 3v3.5H9'/%3E%3Cpath d='M4 13a8 8 0 0 0 14.3 4.9'/%3E%3Cpath d='M18.5 21v-3.5H15'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 0 0-14.3-4.9'/%3E%3Cpath d='M5.5 3v3.5H9'/%3E%3Cpath d='M4 13a8 8 0 0 0 14.3 4.9'/%3E%3Cpath d='M18.5 21v-3.5H15'/%3E%3C/svg%3E");
}

.ic-bouclier {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5.5c0 4.3-3 7.9-7 9.5-4-1.6-7-5.2-7-9.5V6z'/%3E%3Cpath d='M9 12l2.2 2.2L15.5 10'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5.5c0 4.3-3 7.9-7 9.5-4-1.6-7-5.2-7-9.5V6z'/%3E%3Cpath d='M9 12l2.2 2.2L15.5 10'/%3E%3C/svg%3E");
}

/* =========================================================================
   Livraison 07 : bulle du compte, themes, telephone
   ========================================================================= */

/* --- pastille d'initiales (bulle du compte) --- */
.avatar {
  flex: none;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: var(--datis-orange);
  color: var(--sur-orange);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* --- bulle du compte : un <details>, donc sans javascript pour s'ouvrir --- */
.bulle { position: relative; }

.bulle > summary {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .25rem .45rem .25rem .25rem;
  border-radius: 2rem;
  cursor: pointer;
  list-style: none;
  border: 1px solid transparent;
}
.bulle > summary::-webkit-details-marker { display: none; }
.bulle > summary:hover { background: var(--survol); border-color: var(--bordure); }
.bulle[open] > summary { background: var(--survol); border-color: var(--bordure); }

.bulle-identite { line-height: 1.15; text-align: right; }
.bulle-nom { font-weight: 600; font-size: .88rem; color: var(--texte); }
.bulle-role { font-size: .72rem; color: var(--texte-3); }

.bulle-menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  z-index: 1100;
  width: 17.5rem;
  padding: .35rem;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}

.bulle-entete { padding: .6rem .7rem .5rem; border-bottom: 1px solid var(--bordure); margin-bottom: .35rem; }
.bulle-entete .bulle-nom { font-size: .95rem; }
.bulle-entete .bulle-identifiant { font-size: .78rem; color: var(--texte-3); }

.bulle-menu a,
.bulle-menu button[type="submit"] {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .5rem .7rem;
  border: 0;
  border-radius: var(--rayon-sm);
  background: none;
  color: var(--texte);
  font-size: .9rem;
  text-align: left;
  text-decoration: none;
}
.bulle-menu a:hover,
.bulle-menu button[type="submit"]:hover { background: var(--survol); color: var(--lien); text-decoration: none; }

.bulle-titre {
  padding: .55rem .7rem .3rem;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--texte-3);
}

.bulle-separateur { height: 1px; background: var(--bordure); margin: .35rem .3rem; }

/* Choix du theme : trois boutons en segment. */
.themes { display: flex; gap: .25rem; padding: 0 .4rem .3rem; }
.themes button {
  flex: 1;
  padding: .4rem .2rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-sm);
  background: var(--fond);
  color: var(--texte-2);
  font-size: .78rem;
}
.themes button:hover { border-color: var(--bordure-forte); color: var(--texte); }
.themes button[aria-pressed="true"] {
  background: var(--datis-orange);
  border-color: var(--datis-orange);
  color: var(--sur-orange);
  font-weight: 600;
}

/* --- barre du haut --- */
.barre-haut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.5rem;
}

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--rayon-sm);
  border: 1px solid var(--bordure);
  background: var(--surface);
  color: var(--texte);
  cursor: pointer;
}
.burger:hover { border-color: var(--bordure-forte); color: var(--lien); }
/* Trois barres de 2 px, espacees de 4 px exactement (livraison 19 : la barre
   du bas etait a 2 px, celle du haut a 4 px). Largeur en pixels entiers : une
   largeur en rem tombait entre deux pixels et floutait les barres. */
.burger span, .burger span::before, .burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  content: "";
}
.burger span { position: relative; }
.burger span::before, .burger span::after { position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

.titre-mobile { font-weight: 700; letter-spacing: .04em; color: var(--lien); display: none; }

/* --- tri des colonnes --- */
th.triable { cursor: pointer; user-select: none; white-space: nowrap; }
th.triable:hover { color: var(--texte); }
th.triable .fleche { opacity: .35; margin-left: .25rem; }
th.triable[aria-sort] .fleche { opacity: 1; color: var(--lien); }

/* =========================================================================
   Telephone et tablette
   ========================================================================= */

/* Tableaux en cartes sous 768 px : chaque cellule porte son libelle, et
   .table-cartes est pose sur les tableaux qui s'y pretent. Aucune donnee
   n'est cachee : elle change de forme. */
@media (max-width: 767.98px) {
  .table-cartes,
  .table-cartes tbody,
  .table-cartes tr,
  .table-cartes td { display: block; width: auto; }

  .table-cartes thead { display: none; }

  .table-cartes > tbody > tr {
    background: var(--surface);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    padding: .6rem .8rem;
    margin-bottom: .6rem;
    box-shadow: var(--ombre-douce);
  }
  .table-cartes > tbody > tr > * { --bs-table-bg-type: transparent; }

  .table-cartes td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    border: 0;
    padding: .18rem 0;
  }
  .table-cartes td::before {
    content: attr(data-libelle);
    flex: none;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--texte-3);
  }
  /* Cellule vide ou purement decorative : inutile sur un telephone. */
  .table-cartes td:empty, .table-cartes td.chevron { display: none; }
  .table-cartes td.carte-titre {
    font-size: 1.02rem;
    font-weight: 600;
    padding-bottom: .35rem;
    margin-bottom: .3rem;
    border-bottom: 1px solid var(--bordure);
  }
  .table-cartes td.carte-titre::before { content: none; }

  .fenetre-fond { padding: 0; }
  .fenetre { width: 100%; max-height: 100vh; height: 100%; border-radius: 0; }
  .journal { height: 50vh; }
  .journal-ligne { flex-wrap: wrap; gap: .2rem .6rem; }
  .journal-niveau { width: auto; }
  .journal-portee { width: auto; min-width: 3rem; }
  .journal-message { flex-basis: 100%; }
  .suivi-chiffres { gap: .4rem 1.2rem; }
  .panneau-lancement .btn-lg { width: 100%; }
  .entete-page h1 { font-size: 1.25rem; }
}

@media (max-width: 991.98px) {
  .burger { display: inline-flex; }
  .titre-mobile { display: block; }
}

/* --- livraison 08 : icone "Se deconnecter" (porte et fleche de sortie) --- */
.ic-sortie {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4.5H6.5a1.5 1.5 0 0 0-1.5 1.5v12a1.5 1.5 0 0 0 1.5 1.5H14'/%3E%3Cpath d='M17 8.5l3.5 3.5-3.5 3.5'/%3E%3Cpath d='M20.5 12H10'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4.5H6.5a1.5 1.5 0 0 0-1.5 1.5v12a1.5 1.5 0 0 0 1.5 1.5H14'/%3E%3Cpath d='M17 8.5l3.5 3.5-3.5 3.5'/%3E%3Cpath d='M20.5 12H10'/%3E%3C/svg%3E");
}

.ic-crayon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l4.2-1 10.3-10.3a2 2 0 0 0-2.8-2.8L5.4 16.2z'/%3E%3Cpath d='M14.3 7.3l2.4 2.4'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l4.2-1 10.3-10.3a2 2 0 0 0-2.8-2.8L5.4 16.2z'/%3E%3Cpath d='M14.3 7.3l2.4 2.4'/%3E%3C/svg%3E");
}

/* Petit bouton d'icone seule (modifier une valeur). */
.btn-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--rayon-sm);
  background: none;
  color: var(--texte-3);
}
.btn-icone:hover { color: var(--lien); border-color: var(--bordure); background: var(--survol); }
.btn-icone .ic { margin: 0; width: 1rem; height: 1rem; }

.saisie-courte { max-width: 11rem; }

/* Groupe de boutons d'une ligne : Blazor retire les blancs entre elements,
   les boutons se toucheraient sans cet espacement explicite. */
.actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .35rem;
}
@media (max-width: 767.98px) {
  .actions { justify-content: flex-start; }
}


/* =========================================================================
   Livraison 09 : impression en masse
   ========================================================================= */

/* --- icones du menu --- */
.ic-etiquettes {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12.3V5a1.5 1.5 0 0 1 1.5-1.5h7.3l8.2 8.2a1.5 1.5 0 0 1 0 2.1l-6.2 6.2a1.5 1.5 0 0 1-2.1 0z'/%3E%3Ccircle cx='8.2' cy='8.2' r='1.4'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12.3V5a1.5 1.5 0 0 1 1.5-1.5h7.3l8.2 8.2a1.5 1.5 0 0 1 0 2.1l-6.2 6.2a1.5 1.5 0 0 1-2.1 0z'/%3E%3Ccircle cx='8.2' cy='8.2' r='1.4'/%3E%3C/svg%3E");
}

.ic-categories {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 7.5a1.5 1.5 0 0 1 1.5-1.5h4.5l2 2.5H19a1.5 1.5 0 0 1 1.5 1.5v8.5A1.5 1.5 0 0 1 19 20H5a1.5 1.5 0 0 1-1.5-1.5z'/%3E%3Cpath d='M3.5 11h17'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 7.5a1.5 1.5 0 0 1 1.5-1.5h4.5l2 2.5H19a1.5 1.5 0 0 1 1.5 1.5v8.5A1.5 1.5 0 0 1 19 20H5a1.5 1.5 0 0 1-1.5-1.5z'/%3E%3Cpath d='M3.5 11h17'/%3E%3C/svg%3E");
}

.ic-fiche {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='14' rx='1.5'/%3E%3Crect x='6.5' y='8.5' width='4.5' height='4.5' rx='.5'/%3E%3Cpath d='M13.5 9h4'/%3E%3Cpath d='M13.5 12h4'/%3E%3Cpath d='M6.5 15.8h11'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='14' rx='1.5'/%3E%3Crect x='6.5' y='8.5' width='4.5' height='4.5' rx='.5'/%3E%3Cpath d='M13.5 9h4'/%3E%3Cpath d='M13.5 12h4'/%3E%3Cpath d='M6.5 15.8h11'/%3E%3C/svg%3E");
}

/* --- bandeau de chiffres en tete d'ecran --- */
.impression-resume {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .6rem;
  margin-bottom: 1rem;
}
.resume-bloc {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 8.5rem;
  padding: .55rem .9rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--surface);
  box-shadow: var(--ombre-douce);
  color: var(--texte);
  text-align: left;
  font: inherit;
}
.resume-chiffre { font-size: 1.45rem; font-weight: 700; line-height: 1.1; }
.resume-libelle { font-size: .74rem; color: var(--texte-3); text-transform: uppercase; letter-spacing: .06em; }
.resume-orange { border-left: 3px solid var(--datis-orange); }
.resume-orange .resume-chiffre { color: var(--lien); }
button.resume-bloc { cursor: pointer; }
.resume-alerte { border-color: var(--alerte); background: var(--alerte-fond); }
.resume-alerte .resume-chiffre { color: var(--alerte); }
.resume-alerte:hover { filter: brightness(1.08); }
.resume-sauvegarde {
  margin-left: auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  min-height: 1.5rem;
}
.point-anime {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--datis-orange);
  animation: point-pulse 1s ease-in-out infinite;
}
@keyframes point-pulse { 50% { opacity: .25; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .point-anime { animation: none; } }

/* --- recherche et filtres --- */
.barre-outils {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.25rem;
  margin-bottom: .75rem;
}
.barre-outils .recherche { max-width: 22rem; flex: 1 1 14rem; }
.barre-outils .filtre-court { max-width: 14rem; }

/* --- onglets (categories) : defilent horizontalement sur telephone --- */
.onglets {
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  padding: .15rem 0 .6rem;
  margin-bottom: .5rem;
  border-bottom: 1px solid var(--bordure);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.onglet {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .8rem;
  border: 1px solid var(--bordure);
  border-radius: 999px;
  background: var(--surface);
  color: var(--texte-2);
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s, color .15s, background-color .15s;
}
.onglet:hover { border-color: var(--bordure-forte); color: var(--texte); }
.onglet .compteur {
  font-size: .72rem;
  font-weight: 700;
  padding: .05rem .42rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--texte-3);
}
.onglet-actif {
  background: var(--datis-orange);
  border-color: var(--datis-orange);
  color: var(--sur-orange);
}
.onglet-actif:hover { color: var(--sur-orange); border-color: var(--datis-orange-clair); }
.onglet-actif .compteur { background: rgba(0, 0, 0, .18); color: var(--sur-orange); }
.onglet-ranger:not(.onglet-actif) { border-color: var(--alerte); color: var(--alerte); }
.pastille-quantite {
  min-width: 1.25rem;
  padding: .05rem .35rem;
  border-radius: 999px;
  background: var(--ok-fond);
  color: var(--ok);
  font-size: .7rem;
  font-weight: 700;
  text-align: center;
}
.onglet-actif .pastille-quantite { background: rgba(255, 255, 255, .55); color: #1F1F1F; }

/* --- liste des produits --- */
.produits { list-style: none; margin: 0; padding: 0; }
.produit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6rem 13rem auto;
  align-items: center;
  gap: .5rem 1rem;
  padding: .55rem .75rem;
  border-bottom: 1px solid var(--bordure);
  border-left: 3px solid transparent;
  transition: background-color .15s;
}
.produit:nth-child(odd) { background: var(--zebre); }
.produit:hover { background: var(--survol); }
.produit-choisi { border-left-color: var(--datis-orange); }
.produit-titre { font-weight: 600; color: var(--texte); overflow-wrap: anywhere; }
.produit-sous {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem .4rem;
  margin-top: .1rem;
  font-size: .76rem;
  color: var(--texte-3);
}
.produit-sous .etat { font-size: .68rem; padding-top: .05rem; padding-bottom: .05rem; }
.produit-prix { text-align: right; color: var(--texte-2); font-weight: 600; white-space: nowrap; }

/* Compteur - [n] + : de vraies cibles tactiles (2.4rem). */
.pas {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--bordure-forte);
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--surface);
}
.pas button {
  width: 2.4rem;
  border: 0;
  background: var(--surface-2);
  color: var(--texte);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.pas button:hover:not(:disabled) { background: var(--datis-orange); color: var(--sur-orange); }
.pas button:disabled { color: var(--texte-3); cursor: default; }
.pas input {
  width: 3.4rem;
  height: 2.4rem;
  border: 0;
  border-left: 1px solid var(--bordure);
  border-right: 1px solid var(--bordure);
  background: transparent;
  color: var(--texte);
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
}
.pas input:focus { outline: 2px solid var(--datis-orange); outline-offset: -2px; }
.produit-choisi .pas { border-color: var(--datis-orange); }
.produit-choisi .pas input { color: var(--lien); }

.vide {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--texte-3);
  border: 1px dashed var(--bordure-forte);
  border-radius: var(--rayon);
}

/* --- categories --- */
.ajout-categorie { display: flex; gap: .6rem; max-width: 34rem; margin-bottom: 1rem; }
.ligne-inactive > * { color: var(--texte-3); }

@media (max-width: 767.98px) {
  .impression-resume { gap: .45rem; }
  .resume-bloc { min-width: 0; flex: 1 1 calc(50% - .45rem); padding: .45rem .7rem; }
  .resume-chiffre { font-size: 1.2rem; }
  .resume-sauvegarde { flex-basis: 100%; margin-left: 0; }
  .barre-outils .recherche { max-width: none; flex-basis: 100%; }

  /* Un produit = une carte : nom en haut, prix et categorie, compteur a droite. */
  .produit {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "nom nom" "prix pas" "categorie pas";
    gap: .4rem .75rem;
    padding: .7rem .75rem;
    margin-bottom: .5rem;
    border: 1px solid var(--bordure);
    border-left-width: 3px;
    border-radius: var(--rayon);
    background: var(--surface);
  }
  .produit:nth-child(odd) { background: var(--surface); }
  .produit-choisi { border-left-color: var(--datis-orange); }
  .produit-nom { grid-area: nom; }
  .produit-prix { grid-area: prix; text-align: left; }
  .produit-categorie { grid-area: categorie; }
  .produit .pas { grid-area: pas; align-self: center; }
  .pas button { width: 2.8rem; }
  .pas input { height: 2.8rem; }
  .ajout-categorie { max-width: none; }
}

/* =========================================================================
   Livraison 10 : liste d'articles du restaurant
   ========================================================================= */

/* --- ajout d'un article : recherche et propositions --- */
.ajout-article {
  position: relative;
  max-width: 44rem;
  margin-bottom: 1.25rem;
  padding: .9rem 1rem 1rem;
  border: 1px solid var(--bordure);
  border-top: 3px solid var(--datis-orange);
  border-radius: var(--rayon);
  background: var(--surface);
  box-shadow: var(--ombre-douce);
}
.ajout-article .form-control-lg { font-size: 1.05rem; }
.candidats {
  list-style: none;
  margin: .5rem 0 0;
  padding: 0;
  max-height: 22rem;
  overflow-y: auto;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-sm);
}
.candidats > li + li { border-top: 1px solid var(--bordure); }
.candidat {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem .75rem;
  border: 0;
  background: transparent;
  color: var(--texte);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.candidat:hover:not(:disabled), .candidat:focus-visible { background: var(--survol); outline: none; }
.candidat-nom { display: flex; flex-direction: column; }
.candidat-ajouter {
  flex: none;
  padding: .3rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--datis-orange);
  color: var(--lien);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}
.candidat:hover:not(:disabled) .candidat-ajouter { background: var(--datis-orange); color: var(--sur-orange); }
.candidats-vide { margin-top: .5rem; font-size: .88rem; color: var(--texte-3); }

.annonce-retrait {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  max-width: 44rem;
  margin-bottom: 1rem;
  padding: .5rem .8rem;
  border-radius: var(--rayon);
  background: var(--surface-2);
  color: var(--texte-2);
  font-size: .9rem;
}

.vide-grand { padding: 3rem 1rem; }
.vide-titre { font-size: 1.1rem; font-weight: 600; color: var(--texte-2); margin-bottom: .3rem; }

/* --- ligne de la liste : bouton retirer, article indisponible --- */
.produit { grid-template-columns: minmax(0, 1fr) 6rem 13rem 2.8rem auto 2rem; }

/* Entre le telephone et l'ordinateur, la colonne du bouton glissant prendrait
   sur le nom de l'article : on resserre le prix et la categorie. */
@media (max-width: 991.98px) {
  .produit { grid-template-columns: minmax(0, 1fr) 4.5rem 10rem 2.8rem auto 2rem; }
}
.produit-retirer { font-size: 1.3rem; line-height: 1; }
/* Seulement le BOUTON : la livraison 36 laisse un emplacement vide a la place
   de la croix pour un article de l'enseigne, qui ne doit pas rougir au survol. */
button.produit-retirer:hover { color: var(--alerte); border-color: var(--alerte); background: var(--alerte-fond); }
.produit-indisponible .produit-titre,
.produit-indisponible .produit-prix { color: var(--texte-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.produit-indisponible .pas { opacity: .6; }

/* Livraison 37 : bouton glissant "cette ligne part a l'impression". Pas de
   libelle a cote (l'aria-label le porte), donc on annule le decalage que
   Bootstrap reserve au texte. */
.produit-bascule { display: flex; align-items: center; justify-content: center; min-height: 1.6rem; margin: 0; padding: 0; }
.produit-bascule .form-check-input { margin: 0; width: 2.2rem; height: 1.15rem; cursor: pointer; }
/* Allume = orange de la charte, comme tout ce qui est actif dans le site.
   La pastille passe en SOMBRE : blanche sur #FD7E00, elle tombe a 2,5:1 de
   contraste et ne se voit plus (meme raison que le texte des boutons). */
.produit-bascule .form-check-input:checked {
  background-color: var(--datis-orange);
  border-color: var(--datis-orange);
  --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%231F1F1F'/%3e%3c/svg%3e");
}

/* Livraison 39 : la liste est rangee par categorie. Le titre reste lisible
   sans voler la vedette aux articles. */
.produits-groupe { margin-bottom: 1rem; }
.produits-groupe-titre {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .6rem;
  margin: 0 0 .35rem;
  padding: .3rem .75rem;
  border-left: 3px solid var(--datis-orange);
  background: var(--surface-2);
  border-radius: var(--rayon-sm);
  font-size: .95rem;
  font-weight: 600;
  color: var(--texte);
}
.produits-groupe-titre .texte-faible { font-weight: 400; font-size: .8rem; }

/* Ligne eteinte : elle reste a sa place, en retrait. Pas de texte barre, qui
   veut dire "n'existe plus dans Zelty". */
.produit-eteint .produit-titre,
.produit-eteint .produit-prix { color: var(--texte-3); }
.produit-eteint .produit-categorie,
.produit-eteint .pas { opacity: .65; }

@media (max-width: 767.98px) {
  .ajout-article { padding: .75rem; }
  .produit {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "nom bascule retirer" "prix pas pas" "categorie pas pas";
  }
  .produit-retirer { grid-area: retirer; justify-self: end; align-self: start; }
  .produit-bascule { grid-area: bascule; justify-self: end; align-self: start; }
}

/* --- encadres de couleur : UN seul a la fois (livraison 10) ---
   Avant, trois marques pouvaient s'empiler sur un champ : l'anneau orange
   du focus, le contour de :focus-visible et le contour VERT pose par Blazor
   sur un champ "modifie et valide". Desormais :
     - champs et boutons : l'anneau orange seul quand on y est ;
     - champ refuse : bordure rouge (plus de contour en plus) ;
     - champ valide : rien, c'est l'etat normal. */
.valid.modified:not([type=checkbox]) { outline: none; }
.invalid { outline: none; }
.form-control.invalid, .form-select.invalid { border-color: var(--alerte); }
.form-control.invalid:focus, .form-select.invalid:focus { box-shadow: 0 0 0 .2rem var(--alerte-fond); }
.form-control:focus-visible, .form-select:focus-visible, .form-check-input:focus-visible,
.btn:focus-visible { outline: none; }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(253, 126, 0, .35); border-color: var(--datis-orange); }

/* =========================================================================
   Livraison 11 : categories personnelles du restaurant
   ========================================================================= */
.mes-categories { max-width: 44rem; }
.mes-categories > summary .compteur {
  margin-left: .4rem;
  padding: .05rem .45rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--texte-3);
  font-size: .72rem;
  font-weight: 700;
}
.mes-categories .ajout-categorie { max-width: none; margin-bottom: .75rem; }
.mes-categories-liste { list-style: none; margin: 0 0 .75rem; padding: 0; }
.mes-categories-liste > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .75rem;
  padding: .4rem .5rem;
  border-bottom: 1px solid var(--bordure);
}
.mes-categories-liste > li:last-child { border-bottom: 0; }
.communes { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.btn-icone-alerte { font-size: 1.2rem; line-height: 1; }
.btn-icone-alerte:hover { color: var(--alerte); border-color: var(--alerte); background: var(--alerte-fond); }

/* Formulaire "nouvelle categorie" sous un article : toute la largeur de la ligne. */
.nouvelle-categorie {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .5rem 0 .15rem;
}
.nouvelle-categorie .form-control { flex: 1 1 14rem; max-width: 24rem; }
@media (max-width: 767.98px) {
  .nouvelle-categorie { grid-area: auto; }
  .produit:has(.nouvelle-categorie) {
    grid-template-areas: "nom bascule retirer" "prix pas pas" "categorie pas pas" "nouvelle nouvelle nouvelle";
  }
  .produit .nouvelle-categorie { grid-area: nouvelle; }
}

/* =========================================================================
   Livraison 13 : comparaison des exports, horaires, journal d'audit
   ========================================================================= */
.ic-comparaison {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16'/%3E%3Cpath d='M4 7l3-3 3 3'/%3E%3Cpath d='M17 20V4'/%3E%3Cpath d='M14 17l3 3 3-3'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16'/%3E%3Cpath d='M4 7l3-3 3 3'/%3E%3Cpath d='M17 20V4'/%3E%3Cpath d='M14 17l3 3 3-3'/%3E%3C/svg%3E");
}
.ic-horloge {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E");
}
.ic-audit {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l7 3v5c0 4.3-3 7.7-7 9-4-1.3-7-4.7-7-9v-5z'/%3E%3Cpath d='M9 12.5h6'/%3E%3Cpath d='M9 9.5h6'/%3E%3Cpath d='M9 15.5h3.5'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l7 3v5c0 4.3-3 7.7-7 9-4-1.3-7-4.7-7-9v-5z'/%3E%3Cpath d='M9 12.5h6'/%3E%3Cpath d='M9 9.5h6'/%3E%3Cpath d='M9 15.5h3.5'/%3E%3C/svg%3E");
}

/* --- comparaison : periode --- */
.comparaison-periode {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .75rem 1rem;
  margin-bottom: 1rem;
}
.periode-bloc { min-width: 14rem; }
.periode-valeur {
  padding: .3rem .6rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-sm);
  background: var(--surface);
  font-size: .9rem;
}
.periode-fleche { color: var(--lien); font-size: 1.3rem; padding-bottom: .2rem; }
.resume-ok { border-color: var(--ok); background: var(--ok-fond); }
.resume-ok .resume-chiffre { color: var(--ok); }
.resume-choisi { outline: 2px solid var(--datis-orange); outline-offset: 1px; }

/* --- comparaison : liste des changements --- */
.ecarts { list-style: none; margin: 0; padding: 0; }
.ecart {
  padding: .55rem .75rem;
  border-bottom: 1px solid var(--bordure);
  border-left: 3px solid var(--bordure-forte);
}
.ecart:nth-child(odd) { background: var(--zebre); }
.ecart-ajoute { border-left-color: var(--ok); }
.ecart-retire { border-left-color: var(--alerte); }
.ecart-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
.ecart-site {
  flex: none;
  min-width: 2.6rem;
  font-weight: 700;
  font-size: .8rem;
  color: var(--texte-3);
}
.ecart-nom { font-weight: 600; color: var(--texte); overflow-wrap: anywhere; }
.ecart-natures { display: inline-flex; flex-wrap: wrap; gap: .25rem; margin-left: auto; }
.ecart-detail { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .5rem; margin: .2rem 0 0 3.2rem; font-size: .88rem; }
.ecart-detail .avant { color: var(--texte-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.ecart-detail .apres { color: var(--texte); font-weight: 600; }

/* --- tableau de bord : depuis l'export precedent --- */
.tuile-large { display: block; }
.compteurs-ecarts { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: .6rem; }
.compteur-ecart { color: inherit; font-size: .92rem; }
.compteur-ecart .tabulaire { font-size: 1.35rem; font-weight: 700; margin-right: .2rem; }
.compteur-ecart:hover { text-decoration: none; color: var(--lien); }
.sites-ecarts { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .7rem; }
.site-ecart {
  display: inline-flex;
  gap: .4rem;
  padding: .15rem .55rem;
  border: 1px solid var(--bordure);
  border-radius: 999px;
  color: var(--texte-2);
  font-size: .8rem;
}
.site-ecart:hover { border-color: var(--datis-orange); color: var(--lien); text-decoration: none; }

/* --- horaires --- */
.horaires { display: grid; gap: .6rem; max-width: 52rem; }
.horaire {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  padding: .75rem 1rem;
  border: 1px solid var(--bordure);
  border-left: 3px solid var(--datis-orange);
  border-radius: var(--rayon);
  background: var(--surface);
  box-shadow: var(--ombre-douce);
}
.horaire-inactif { border-left-color: var(--bordure-forte); opacity: .75; }
.horaire-heure { font-size: 1.7rem; font-weight: 700; color: var(--lien); min-width: 5.2rem; }
.horaire-inactif .horaire-heure { color: var(--texte-3); }
.horaire-corps { flex: 1 1 14rem; }
.horaire-jours { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; margin: .25rem 0; }
.jour {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 1px solid var(--bordure);
  color: var(--texte-3);
  font-size: .72rem;
  font-weight: 700;
  background: transparent;
}
.jour-oui { background: var(--datis-orange); border-color: var(--datis-orange); color: var(--sur-orange); }
.jour-bouton { width: 2.2rem; height: 2.2rem; font-size: .8rem; cursor: pointer; }
.jour-bouton:hover:not(.jour-oui) { border-color: var(--datis-orange); color: var(--lien); }
.horaire-ajout {
  justify-content: center;
  border-style: dashed;
  border-left-style: dashed;
  border-left-width: 1px;
  background: transparent;
  color: var(--lien);
  font-weight: 600;
  box-shadow: none;
  cursor: pointer;
}
.horaire-ajout:hover { background: var(--survol); }
.horaire-formulaire { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .75rem 1.25rem; width: 100%; }

/* --- journal d'audit --- */
.ligne-alerte > * { --bs-table-bg-type: var(--alerte-fond); }
.texte-coupe-large { max-width: 28rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 767.98px) {
  .periode-bloc { min-width: 0; flex: 1 1 100%; }
  .periode-fleche { display: none; }
  .ecart-natures { margin-left: 0; }
  .ecart-detail { margin-left: 0; }
  .horaire-heure { font-size: 1.4rem; min-width: 0; }
  .texte-coupe-large { max-width: none; white-space: normal; }
}

/* =========================================================================
   Livraison 14 : alertes mail, horaires au tableau de bord, synthese restaurant
   ========================================================================= */

/* --- horaires planifies (tableau de bord, synthese restaurant) --- */
.horaires-tuile { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .45rem; }
.horaire-puce {
  display: inline-block;
  padding: .05rem .45rem;
  border: 1px solid var(--datis-orange);
  border-radius: 999px;
  color: var(--lien);
  font-size: .74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
a.horaire-puce:hover { background: var(--datis-orange); color: var(--sur-orange); text-decoration: none; }
.horaire-puce-pause { border-color: var(--bordure-forte); color: var(--texte-3); text-decoration: line-through; }

/* --- synthese d'un restaurant, en tete de sa table MASTER --- */
.synthese-site {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.synthese-bloc {
  padding: .65rem .85rem;
  border: 1px solid var(--bordure);
  border-top: 3px solid var(--datis-orange);
  border-radius: var(--rayon);
  background: var(--surface);
  box-shadow: var(--ombre-douce);
  color: var(--texte);
  min-width: 0;
}
.synthese-alerte { border-top-color: var(--alerte); background: var(--alerte-fond); }
.synthese-alerte .synthese-valeur { color: var(--alerte); }
.synthese-valeur { font-size: 1.2rem; font-weight: 700; line-height: 1.25; margin: .1rem 0; }
.synthese-ecarts { display: flex; gap: .7rem; }
.synthese-lien { display: block; border-top-color: var(--bordure-forte); }
.synthese-lien:hover { text-decoration: none; border-color: var(--datis-orange); }
.synthese-lien .synthese-valeur { color: var(--lien); }

/* --- page Mails --- */
.formulaire-mail, .test-mail {
  max-width: 60rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--surface);
}
.test-mail .form-control { max-width: 24rem; }
.regles-mail { max-width: 60rem; }
.regles-mail td:first-child { max-width: 34rem; }
.saisie-nombre { width: 5rem; }
.destinataires { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: .6rem; max-width: 60rem; margin-bottom: .5rem; }
.destinataire-role { padding: .6rem .8rem; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--surface); }

/* --- adresses de contact (Utilisateurs) --- */
.adresses-compte { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; min-width: 14rem; }
.adresse-puce {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  padding: .05rem .15rem .05rem .5rem;
  border: 1px solid var(--bordure-forte);
  border-radius: 999px;
  font-size: .78rem;
  color: var(--texte-2);
}
.adresse-retirer {
  border: 0;
  background: none;
  color: var(--texte-3);
  font-size: 1rem;
  line-height: 1;
  padding: 0 .3rem;
  border-radius: 999px;
}
.adresse-retirer:hover:not(:disabled) { color: var(--alerte); background: var(--alerte-fond); }
.adresse-ajout { display: inline-flex; gap: .25rem; }
.adresse-ajout .form-control { width: 12rem; }

@media (max-width: 767.98px) {
  .synthese-site { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .synthese-valeur { font-size: 1.05rem; }
  .adresses-compte { min-width: 0; justify-content: flex-end; }
  .adresse-ajout .form-control { width: 10rem; }
}

.ic-mail {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='13' rx='1.5'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='13' rx='1.5'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E");
}

/* =========================================================================
   Livraison 15 : page Utilisateurs (liste + fenetres), dernieres demandes
   ========================================================================= */

/* --- liste des comptes --- */
.filtres-roles { display: flex; flex-wrap: wrap; gap: .3rem; }
.table-comptes td { padding-top: .55rem; padding-bottom: .55rem; }
.compte { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.compte-nom { font-weight: 600; color: var(--texte); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compte-identifiant { display: block; font-size: .78rem; color: var(--texte-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-petit { width: 2rem; height: 2rem; font-size: .76rem; }
.avatar-restaurant { background: var(--surface-2); color: var(--texte); border: 1px solid var(--bordure-forte); }
.avatar-inactif { background: var(--surface-2); color: var(--texte-3); border: 1px dashed var(--bordure-forte); }

/* badge de role : contour seul, pour ne pas se confondre avec les etats */
.role {
  display: inline-block;
  min-width: 6.5rem;
  padding: .12rem .55rem;
  border: 1px solid var(--bordure-forte);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  color: var(--texte-2);
}
.role-administrateur { border-color: var(--datis-orange); color: var(--lien); }
.role-siege { border-color: var(--texte-2); color: var(--texte); }
.role-restaurant { border-style: dashed; }

/* --- fenetres --- */
.fenetre-etroite { width: min(40rem, 100%); }
.grille-formulaire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; }
.grille-formulaire > .plein { grid-column: 1 / -1; }
/* Noms propres a la page Utilisateurs : .fiche-groupe appartient a la fiche produit (MASTER). */
.compte-section { padding: .9rem 0; border-top: 1px solid var(--bordure); }
.compte-section:first-of-type { border-top: 0; padding-top: .25rem; }
.compte-groupe {
  margin: 0 0 .6rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--texte-3);
}
.ligne-reglage { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .3rem 0; }
.confirmation {
  margin-top: .6rem;
  padding: .6rem .8rem;
  border: 1px solid var(--attention);
  border-radius: var(--rayon-sm);
  background: var(--attention-fond);
}
.zone-sensible {
  margin-top: .5rem;
  padding: .8rem .9rem;
  border: 1px solid var(--alerte);
  border-radius: var(--rayon);
  background: var(--alerte-fond);
}
.zone-sensible .compte-groupe { color: var(--alerte); }
.actions-gauche { justify-content: flex-start; }

/* --- dernieres demandes (Mise a jour) : colonnes fixes, badges de meme largeur --- */
.table-demandes { table-layout: fixed; width: 100%; }
.table-demandes .col-num { width: 6rem; }
.table-demandes .col-date { width: 10.5rem; }
.table-demandes .col-badge { width: 9.5rem; }
.table-demandes .col-duree { width: 6rem; }
.table-demandes .cellule-par { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-fixe { min-width: 8.2rem; justify-content: flex-start; }

@media (max-width: 767.98px) {
  .grille-formulaire { grid-template-columns: 1fr; }
  .table-demandes { table-layout: auto; }
  .table-demandes .cellule-par { white-space: normal; }
  .badge-fixe { min-width: 0; }
  .role { min-width: 0; }
}

/* =========================================================================
   Livraison 16 : table MASTER (exports, liste a haut et bas figes,
   pagination), navigation de la fiche produit
   ========================================================================= */

/* --- en-tete de page avec actions a droite --- */
.entete-avec-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .75rem 1.5rem; }
.entete-avec-actions > .min-w-0 { flex: 1 1 22rem; }
.exports { flex: none; padding-top: .15rem; flex-wrap: nowrap; }

/* --- boutons d'export : icone de telechargement, roue pendant la preparation --- */
.bouton-export { display: inline-flex; align-items: center; gap: .5rem; }
.icone-export {
  flex: none;
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2.5v7.5M4.8 7L8 10.2 11.2 7M3 13.2h10'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2.5v7.5M4.8 7L8 10.2 11.2 7M3 13.2h10'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bouton-export.en-cours { cursor: progress; }
.bouton-export.en-cours .icone-export {
  -webkit-mask: none;
          mask: none;
  background: transparent;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: tourne .7s linear infinite;
}
.bouton-export.en-cours .bouton-export-texte::after { content: "\2026"; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* --- liste : une seule barre de defilement, celle de la page (livraison 17).
   La barre de la liste, les titres de colonnes et la pagination sont
   "colles" (sticky) : la barre et les titres sous le bandeau du site, la
   pagination en bas de l'ecran. Aucun ancetre ne doit donc couper le
   debordement (overflow), sinon le collage ne marche plus. --- */
.liste-master {
  --haut-site: 3.5rem;          /* bandeau du site (.barre-haut) */
  --haut-barre-liste: 3.25rem;  /* barre de la liste, bordure comprise */
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--surface);
  box-shadow: var(--ombre-douce);
  scroll-margin-top: var(--haut-site);
}
.liste-barre, .liste-pied {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding: .55rem .9rem;
  background: var(--surface);
}
.liste-barre {
  position: sticky;
  top: var(--haut-site);
  z-index: 6;
  border-bottom: 1px solid var(--bordure);
  border-radius: var(--rayon) var(--rayon) 0 0;
}
.liste-compte strong { color: var(--texte); font-weight: 600; }
.taille-page { display: inline-flex; align-items: center; gap: .5rem; margin: 0; white-space: nowrap; }
.taille-page .form-select { width: auto; min-width: 4.75rem; }

/* Barre de chargement : fine, au pied de la barre de la liste (collee avec elle). */
.liste-chargement { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.liste-chargement > div { display: none; }
.liste-occupee .liste-chargement > div {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  background: var(--datis-orange);
  animation: progression 1.1s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .liste-occupee .liste-chargement > div { animation: none; left: 0; width: 100%; opacity: .6; }
  .bouton-export.en-cours .icone-export { animation-duration: 2s; }
}

.liste-defilement .table { margin: 0; }
.liste-defilement tbody { transition: opacity .15s ease; }
.liste-occupee .liste-defilement tbody { opacity: .45; }

@media (min-width: 768px) {
  /* Hauteur fixe de la barre : les titres de colonnes se collent juste dessous. */
  .liste-barre { height: var(--haut-barre-liste); flex-wrap: nowrap; }
  .liste-defilement .table > thead th {
    position: sticky;
    top: calc(var(--haut-site) + var(--haut-barre-liste));
    z-index: 5;
    background: var(--surface);
    box-shadow: inset 0 -1px 0 var(--bordure-forte);
    border-bottom: 0;
    padding-top: .6rem;
    padding-bottom: .5rem;
  }
  .liste-defilement .table > :not(caption) > * > :first-child { padding-left: .9rem; }
  .liste-defilement .table > :not(caption) > * > :last-child { padding-right: .9rem; }
  .liste-defilement .table > tbody > tr:last-child > * { border-bottom: 0; }
  /* Libelles longs : ils passent a la ligne au lieu d'elargir le tableau. */
  .liste-defilement td.carte-titre, .liste-defilement td.col-technique { overflow-wrap: anywhere; }
}
/* Ecran moyen : le libelle technique (souvent identique au commercial) laisse la place. */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .liste-defilement .col-technique { display: none; }
  .liste-defilement .table > thead th { white-space: normal; vertical-align: bottom; }
}
/* Filet de securite : un tableau plus large que le cadre ne deborde jamais sur la page. */
.liste-defilement .table { width: 100%; table-layout: auto; }

.liste-pied {
  position: sticky;
  bottom: 0;
  z-index: 6;
  border-top: 1px solid var(--bordure);
  border-radius: 0 0 var(--rayon) var(--rayon);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  box-shadow: 0 -6px 14px rgba(0, 0, 0, .14);
}
.liste-pied:empty { display: none; }
.liste-pied .pages { grid-column: 2; }
.liste-pied .pages-total { grid-column: 3; justify-self: end; }

/* --- boutons ronds de navigation (pagination, fiche) --- */
.bouton-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--bordure-forte);
  border-radius: var(--rayon-sm);
  background: var(--surface-2);
  color: var(--texte-2);
  transition: background-color .12s, border-color .12s, color .12s;
}
.bouton-icone:hover:not(:disabled) { border-color: var(--datis-orange); color: var(--lien); background: var(--survol); }
.bouton-icone:active:not(:disabled) { transform: translateY(1px); }
.bouton-icone:disabled { opacity: .35; cursor: default; }
.bouton-icone:focus-visible, .bouton-page:focus-visible { outline: 2px solid var(--datis-orange); outline-offset: 2px; }

/* --- pagination : fleches, puis la page courante et 3 numeros de chaque cote --- */
.pages { display: inline-flex; align-items: center; gap: .25rem; }
.pages-numeros { display: inline-flex; align-items: center; gap: .2rem; margin: 0 .3rem; }
.bouton-page {
  min-width: 2rem;
  height: 2rem;
  padding: 0 .45rem;
  border: 1px solid transparent;
  border-radius: var(--rayon-sm);
  background: transparent;
  color: var(--texte-2);
  font-size: .85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color .12s, border-color .12s, color .12s;
}
.bouton-page:hover:not(:disabled) { background: var(--survol); border-color: var(--bordure-forte); color: var(--texte); }
.bouton-page:disabled { cursor: default; }
.bouton-page-courante, .bouton-page-courante:disabled {
  background: var(--datis-orange);
  border-color: var(--datis-orange);
  color: var(--sur-orange);
}
.liste-occupee .bouton-page:not(.bouton-page-courante) { opacity: .6; }

/* --- fiche produit : precedente / rang / suivante, puis fermer, a l'ecart --- */
.fenetre-entete .nav-fiche { display: flex; align-items: center; gap: .6rem; flex: none; }
.nav-fiche-groupe {
  display: inline-flex;
  align-items: center;
  gap: .1rem;
  padding: .15rem;
  border: 1px solid var(--bordure);
  border-radius: calc(var(--rayon-sm) + .15rem);
  background: var(--fond);
}
.nav-fiche-groupe .bouton-icone { border-color: transparent; background: transparent; }
.nav-fiche-groupe .bouton-icone:hover:not(:disabled) { background: var(--surface-2); }
.nav-fiche-position { min-width: 5.5rem; padding: 0 .35rem; text-align: center; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.bouton-fermer:hover:not(:disabled) { border-color: var(--alerte); color: var(--alerte); background: var(--alerte-fond); }

/* --- telephone : la liste suit la page ; barre et pied restent colles en haut et en bas --- */
@media (max-width: 767.98px) {
  .exports { width: 100%; }
  .exports .bouton-export { flex: 1 1 0; justify-content: center; }
  .liste-defilement { padding: .5rem; }
  .liste-pied { grid-template-columns: 1fr; justify-items: center; padding: .45rem .5rem; }
  .liste-pied .pages { grid-column: 1; }
  .liste-pied .pages-total { display: none; }
  .bouton-page-loin { display: none; }
  .nav-fiche-position { min-width: 4rem; }
}

/* =========================================================================
   Livraison 18 : liste d'impression d'un restaurant depuis la table MASTER
   ========================================================================= */

/* --- pastille verte "dans ma liste" (tableau et fiche) --- */
.pastille-impression {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  color: var(--ok);
  background: var(--ok-fond);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 45%, transparent);
}
.pastille-impression-vide { color: var(--texte-3); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--bordure-forte); }

/* --- bandeau en tete de la fiche --- */
.bandeau-impression {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.25rem;
  padding: .8rem .95rem .6rem;
  margin-bottom: 1.1rem;
  border: 1px solid var(--bordure-forte);
  border-radius: var(--rayon);
  background: var(--surface-2);
}
.bandeau-impression-actif {
  border-color: color-mix(in srgb, var(--ok) 55%, transparent);
  background: var(--ok-fond);
}
.bandeau-impression-titre { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.bandeau-impression-titre .pastille-impression { width: 2.1rem; height: 2.1rem; }
.bandeau-impression-titre .pastille-impression svg { width: 17px; height: 17px; }
.bandeau-impression-reglages { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem .9rem; }
.reglage-court { display: flex; flex-direction: column; gap: .2rem; margin: 0; }
.reglage-court .form-select { min-width: 11rem; }
.quantite-fiche { display: inline-flex; align-items: center; gap: .25rem; }
.quantite-fiche .bouton-icone { width: 1.9rem; height: 1.9rem; font-size: 1rem; font-weight: 600; }
.quantite-fiche .form-control { width: 3.6rem; text-align: center; }
.bouton-imprimante { display: inline-flex; align-items: center; gap: .45rem; }
.bouton-retirer:hover:not(:disabled) { border-color: var(--alerte); color: var(--alerte); background: var(--alerte-fond); }
.bandeau-impression-pied {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: .45rem;
  border-top: 1px solid var(--bordure);
}

@media (max-width: 640px) {
  .bandeau-impression-reglages { width: 100%; }
  .reglage-court:first-child { flex: 1 1 100%; }
  .reglage-court .form-select { min-width: 0; width: 100%; }
  .bouton-imprimante { width: 100%; justify-content: center; }
}

/* =========================================================================
   Livraison 19 : page Aide (documentation par profil)
   ========================================================================= */
.nav-separateur { height: 1px; margin-top: .9rem; margin-bottom: .5rem; background: var(--bordure); }
.ic-aide {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M9.6 9.4a2.5 2.5 0 0 1 4.8 1c0 1.7-2.4 2.1-2.4 3.6'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M9.6 9.4a2.5 2.5 0 0 1 4.8 1c0 1.7-2.4 2.1-2.4 3.6'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}

.aide-profils { margin-bottom: 1.25rem; }
.aide { display: grid; grid-template-columns: 14rem minmax(0, 46rem); gap: 2rem; align-items: start; }

/* Sommaire colle sous le bandeau pendant la lecture. */
.aide-sommaire {
  position: sticky;
  top: calc(3.5rem + 1rem);
  padding: .8rem .9rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--surface);
  font-size: .86rem;
}
.aide-sommaire-titre { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); margin-bottom: .4rem; }
.aide-sommaire ol { list-style: none; margin: 0; padding: 0; counter-reset: rubrique; }
.aide-sommaire li { counter-increment: rubrique; }
.aide-sommaire a {
  display: flex;
  gap: .5rem;
  padding: .22rem .35rem;
  border-radius: var(--rayon-sm);
  color: var(--texte-2);
  text-decoration: none;
}
.aide-sommaire a::before { content: counter(rubrique); min-width: 1.1rem; color: var(--texte-3); font-variant-numeric: tabular-nums; text-align: right; }
.aide-sommaire a:hover { background: var(--survol); color: var(--lien); }

.aide-contenu { min-width: 0; line-height: 1.6; }
.aide-resume {
  padding: .9rem 1.1rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--datis-orange);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  background: var(--surface);
}
.aide-resume p { margin: 0; }
.aide-rubrique { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--bordure); scroll-margin-top: calc(3.5rem + 1rem); }
.aide-rubrique:last-child { border-bottom: 0; }
.aide-rubrique h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: .6rem; }
.aide-rubrique h3 { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lien); margin: 1.1rem 0 .4rem; }
.aide-rubrique ul { padding-left: 1.15rem; margin-bottom: .6rem; }
.aide-rubrique li { margin-bottom: .3rem; }
.aide-rubrique li::marker { color: var(--texte-3); }
.aide-note {
  margin: .8rem 0 .2rem;
  padding: .6rem .85rem;
  border: 1px solid var(--bordure-forte);
  border-radius: var(--rayon);
  background: var(--surface-2);
  font-size: .9rem;
  color: var(--texte-2);
}
.aide-definitions { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; align-items: baseline; margin: .3rem 0 .6rem; }
.aide-definitions dt { font-weight: 400; }
.aide-definitions dd { margin: 0; color: var(--texte-2); }
.aide-faq dt { font-weight: 600; margin-top: .8rem; }
.aide-faq dd { margin: .15rem 0 0; color: var(--texte-2); }

@media (max-width: 991.98px) {
  .aide { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .aide-sommaire { position: static; }
  .aide-sommaire ol { columns: 2; column-gap: 1rem; }
}
@media (max-width: 575.98px) {
  .aide-sommaire ol { columns: 1; }
  .aide-definitions { grid-template-columns: 1fr; gap: .15rem; }
  .aide-definitions dd { margin-bottom: .5rem; }
}

/* =========================================================================
   Livraison 20 : API des postes (Administration)
   ========================================================================= */
.ic-api {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='11' rx='1.5'/%3E%3Cpath d='M8 19.5h8M12 15.5v4'/%3E%3Cpath d='M9.5 8.5L7.5 10l2 1.5M14.5 8.5l2 1.5-2 1.5'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='11' rx='1.5'/%3E%3Cpath d='M8 19.5h8M12 15.5v4'/%3E%3Cpath d='M9.5 8.5L7.5 10l2 1.5M14.5 8.5l2 1.5-2 1.5'/%3E%3C/svg%3E");
}

.table-cles td:first-child { min-width: 12rem; }
.cle-api {
  display: inline-block;
  max-width: 100%;
  padding: .15rem .45rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-sm);
  background: var(--fond);
  color: var(--texte-2);
  font-size: .8rem;
  overflow-wrap: anywhere;
  user-select: all;
}
.cle-api-visible { color: var(--texte); border-color: var(--datis-orange); }

.doc-api { max-width: 60rem; line-height: 1.6; }
.doc-api section { padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--bordure); }
.doc-api section:last-child { border-bottom: 0; }
.doc-api h2 { font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; }
.doc-api code { color: var(--texte); background: var(--surface-2); padding: .05rem .3rem; border-radius: 3px; font-size: .85em; }
.table-doc td:first-child { white-space: nowrap; }
.bloc-code {
  margin: .4rem 0 .6rem;
  padding: .75rem .9rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--fond);
  color: var(--texte);
  font-size: .82rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bloc-prompt { max-height: 70vh; overflow: auto; }

/* =========================================================================
   Livraison 21 : base de donnees (purges, tailles), securite des connexions
   ========================================================================= */
.ic-base {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5.5' rx='7.5' ry='2.5'/%3E%3Cpath d='M4.5 5.5v13c0 1.4 3.4 2.5 7.5 2.5s7.5-1.1 7.5-2.5v-13'/%3E%3Cpath d='M4.5 12c0 1.4 3.4 2.5 7.5 2.5s7.5-1.1 7.5-2.5'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5.5' rx='7.5' ry='2.5'/%3E%3Cpath d='M4.5 5.5v13c0 1.4 3.4 2.5 7.5 2.5s7.5-1.1 7.5-2.5v-13'/%3E%3Cpath d='M4.5 12c0 1.4 3.4 2.5 7.5 2.5s7.5-1.1 7.5-2.5'/%3E%3C/svg%3E");
}

/* --- purges : une carte par journal --- */
.purges { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: .75rem; max-width: 72rem; }
.purge {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: .9rem 1rem;
  border: 1px solid var(--bordure);
  border-top: 3px solid var(--datis-orange);
  border-radius: var(--rayon);
  background: var(--surface);
  box-shadow: var(--ombre-douce);
}
.purge-inactive { border-top-color: var(--bordure-forte); }
.purge-inactive .purge-reglage { opacity: .6; }
.purge-entete { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.purge-reglage { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; }
.purge-delai { width: auto; }
.purge-delai .form-control { width: 5.5rem; text-align: right; }
.purge-pied {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  margin-top: auto;
  padding-top: .55rem;
  border-top: 1px solid var(--bordure);
}

/* --- tailles des bases --- */
.bases { display: grid; grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr)); gap: 1rem; }
.base {
  min-width: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--surface);
  box-shadow: var(--ombre-douce);
}
.base-entete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .8rem; }
.base-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-bottom: .8rem; }
.base-valeur { font-size: 1.25rem; font-weight: 700; line-height: 1.2; margin: .1rem 0; }
.jauge { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-bottom: .3rem; }
.jauge-barre { height: 100%; border-radius: 3px; background: var(--ok); }
.jauge-attention { background: var(--attention); }
.jauge-alerte { background: var(--alerte); }
.table-tailles td, .table-tailles th { white-space: nowrap; }
.table-tailles .col-part { width: 22%; min-width: 5rem; }
.part { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.part > div { height: 100%; border-radius: 3px; background: var(--datis-orange); opacity: .75; }

@media (max-width: 767.98px) {
  .bases { grid-template-columns: minmax(0, 1fr); }
  .base-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-tailles .col-part { display: none; }
}

/* =========================================================================
   Livraison 22 : masques d'etiquettes NiceLabel par site
   ========================================================================= */
.depot-masques {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 1.5rem;
  max-width: 72rem;
  margin-bottom: 1rem;
  padding: .9rem 1rem;
  border: 1px dashed var(--datis-orange);
  border-radius: var(--rayon);
  background: var(--surface);
}
.depot-masques > div { flex: 1 1 24rem; min-width: 0; }
.table-masques td:first-child { overflow-wrap: anywhere; }
.ligne-copie > td { background: var(--surface-2) !important; }
.copie-masque { padding: .4rem .2rem; }
.sites-copie { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .25rem 1rem; }

/* =========================================================================
   Livraison 24 : journal des impressions des postes
   ========================================================================= */
.ic-impressions {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 8V3.5h10V8'/%3E%3Cpath d='M7 16.5H5A1.5 1.5 0 0 1 3.5 15V9.5A1.5 1.5 0 0 1 5 8h14a1.5 1.5 0 0 1 1.5 1.5V15a1.5 1.5 0 0 1-1.5 1.5h-2'/%3E%3Cpath d='M7 13h10v7.5H7z'/%3E%3Cpath d='M9.5 16h5M9.5 18h3'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 8V3.5h10V8'/%3E%3Cpath d='M7 16.5H5A1.5 1.5 0 0 1 3.5 15V9.5A1.5 1.5 0 0 1 5 8h14a1.5 1.5 0 0 1 1.5 1.5V15a1.5 1.5 0 0 1-1.5 1.5h-2'/%3E%3Cpath d='M7 13h10v7.5H7z'/%3E%3Cpath d='M9.5 16h5M9.5 18h3'/%3E%3C/svg%3E");
}
.etat-attention { color: var(--attention); background: var(--attention-fond); }
.texte-coupe-mot { overflow-wrap: anywhere; }


/* =========================================================================
   Livraison 26 : Historique et statistiques (meme page que MODULO, Ctrl+H)
   Valeurs du prompt MODULO : px CSS = px independants WPF.
   ========================================================================= */
.page-stats { font-size: 14px; }
.page-stats .tabulaire, .page-stats td, .stats-tuile-valeur, .barre-nombre { font-variant-numeric: tabular-nums; }

/* --- en-tete --- */
.stats-entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.stats-entete > .min-w-0 { flex: 1 1 24rem; }
.stats-titre { font-size: 20px; font-weight: 600; color: var(--texte); margin: 0; }
.stats-sous-titre { font-size: 14px; color: var(--texte-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-export { min-width: 170px; justify-content: center; }

.bandeau-muets {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; padding: 8px 14px;
  border: 1px solid var(--alerte); border-radius: 8px; background: var(--alerte-fond); color: var(--texte); font-size: 13px;
}

/* --- filtres : un seul panneau, un seul rang pour les deux onglets --- */
.stats-filtres {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 14px 16px; margin-bottom: 14px;
  background: var(--surface); border: 1px solid var(--bordure); border-radius: 8px;
}
.groupe-filtre { display: flex; align-items: center; gap: 10px; min-width: 0; }
.groupe-filtre > label, .libelle-filtre { font-size: 14px; font-weight: 600; color: var(--texte-2); margin: 0; }
.stats-filtres .form-control, .stats-filtres .form-select { height: 36px; border-radius: 5px; border-color: var(--bordure-forte); font-size: 14px; }
.champ-periode { width: 170px; }
.champ-date-stats { width: 130px; }
.filtre-au { font-size: 12.5px; color: var(--texte-3); margin: 0 -2px; }
.champ-mode { width: 150px; }
.champ-recherche { position: relative; width: 300px; max-width: 100%; }
.champ-recherche .loupe { position: absolute; left: 8px; top: 10px; color: var(--texte-3); pointer-events: none; }
.champ-recherche .form-control { padding-left: 30px; }

.choix-sites { position: relative; width: 220px; }
.choix-sites > summary { list-style: none; display: flex; align-items: center; height: 36px; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.choix-sites > summary::-webkit-details-marker { display: none; }
.choix-sites-liste {
  position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 100%; max-height: 22rem; overflow: auto;
  padding: 6px; background: var(--surface); border: 1px solid var(--bordure-forte); border-radius: 8px; box-shadow: var(--ombre);
}
.choix-site { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 4px; font-size: 13px; white-space: nowrap; cursor: pointer; margin: 0; }
.choix-site:hover { background: var(--survol); }

.pastille-produit {
  display: inline-flex; align-items: center; gap: 6px; max-width: 360px;
  padding: 4px 4px 4px 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--datis-orange);
}
.pastille-produit-texte { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--texte); }
.pastille-produit-croix {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--texte-2);
}
.pastille-produit-croix:hover { background: var(--survol); color: var(--texte); }

/* --- onglets : 38 px, filet orange de 2 px sous l'onglet actif --- */
.stats-onglets {
  position: sticky; top: 3.5rem; z-index: 20; display: flex; align-items: stretch; gap: 4px;
  height: 38px; margin-bottom: 14px; border-bottom: 1px solid var(--bordure); background: var(--fond);
}
.stats-onglet { position: relative; padding: 0 12px; border: 0; background: none; font-size: 14px; color: var(--texte-2); }
.stats-onglet:hover { color: var(--texte); }
.stats-onglet.actif { color: var(--texte); font-weight: 600; }
.stats-onglet.actif::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 1px; background: var(--datis-orange); }
.stats-etat { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--texte-3); }
.rond-chargement { width: 16px; height: 16px; border: 2px solid var(--bordure-forte); border-top-color: var(--datis-orange); border-radius: 50%; animation: rond-tourne .8s linear infinite; }
@keyframes rond-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rond-chargement { animation-duration: 3s; } }

/* --- six tuiles --- */
.stats-tuiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.stats-tuile { position: relative; padding: 14px 17px; background: var(--surface); border: 1px solid var(--bordure); border-radius: 6px; min-width: 0; }
.stats-tuile-libelle { font-size: 11.2px; letter-spacing: .09em; text-transform: uppercase; color: var(--texte-3); }
.stats-tuile-valeur { font-size: 25.6px; font-weight: 700; color: var(--texte); line-height: 1.15; margin: 4px 0 2px; }
.stats-tuile-note { font-size: 12.8px; color: var(--texte-3); min-height: 1.2em; }
.tuile-marque::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px; border-radius: 6px 6px 0 0; background: var(--datis-orange); }
.tuile-incident { border-color: var(--alerte); background: var(--alerte-fond); }
.tuile-incident .stats-tuile-valeur { color: var(--alerte); }

/* --- cartes --- */
.stats-carte {
  min-width: 0; margin-bottom: 12px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--bordure); border-radius: 8px; box-shadow: var(--ombre-douce);
}
.carte-colonnes { padding: 14px 18px; }
.carte-barres { padding: 14px 10px; }
.carte-barres .stats-carte-titre { padding: 0 8px; margin-bottom: 10px; }
.stats-carte-titre { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--texte); }
.stats-carte-titre > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-carte-note { font-size: 12.5px; font-weight: 400; color: var(--texte-3); white-space: nowrap; }
.stats-rang { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stats-rang.rang-3-2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.stats-rang > .stats-carte { margin-bottom: 12px; }
.stats-rang > .stats-carte:only-child { grid-column: 1 / -1; }

/* --- infobulles (sans delai sur les colonnes, 150 ms sur les barres) --- */
.infobulle {
  position: absolute; z-index: 40; left: 50%; top: -6px; transform: translate(-50%, -100%);
  display: none; width: max-content; max-width: min(300px, 80vw); padding: 6px 9px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--bordure-forte); box-shadow: var(--ombre);
  color: var(--texte); font-size: 12.5px; font-weight: 400; line-height: 1.35; white-space: pre-line; pointer-events: none; text-align: left;
}
.infobulle-gauche .infobulle { left: 0; transform: translate(0, -100%); }
.infobulle-droite .infobulle { left: auto; right: 0; transform: translate(0, -100%); }

/* --- colonnes --- */
.graphe { display: flex; gap: 8px; padding-bottom: 24px; }
.graphe-axe {
  display: flex; flex-direction: column; justify-content: space-between; min-width: 28px; height: var(--hauteur-graphe);
  margin: -7px 0; font-size: 12.5px; color: var(--texte-3); text-align: right; line-height: 14px;
}
.graphe-zone { position: relative; flex: 1 1 auto; min-width: 0; height: var(--hauteur-graphe); }
.graphe-grille i { position: absolute; left: 0; right: 0; height: 1px; pointer-events: none; }
.graphe-grille .g-max { top: 0; background: var(--bordure); opacity: .6; }
.graphe-grille .g-mi { top: 50%; background: var(--bordure); opacity: .35; }
.graphe-grille .g-base { bottom: 0; background: var(--bordure-forte); }
.graphe-colonnes { position: absolute; inset: 0; display: flex; }
.creneau { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; justify-content: center; }
.creneau:hover { background: var(--survol); }
.creneau:hover .infobulle { display: block; }
.creneau.cliquable { cursor: pointer; }
.colonne { width: calc(100% - 2px); max-width: 42px; background: var(--datis-orange); border-radius: 3px 3px 0 0; }
.graphe-etiquette {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  font-size: 12.5px; color: var(--texte-3); white-space: nowrap; pointer-events: none;
}

/* --- barres --- */
.barres-liste { display: flex; flex-direction: column; gap: 1px; }
.barre-ligne {
  position: relative; display: grid; grid-template-columns: min(38%, 260px) minmax(0, 1fr) 64px; align-items: center;
  padding: 4px 0; border-radius: 4px;
}
.barre-ligne:hover { background: var(--survol); }
.barre-ligne.cliquable { cursor: pointer; }
.barre-ligne.choisie { background: var(--surface-2); }
.barre-ligne.choisie .barre-libelle { color: var(--texte); font-weight: 600; }
.barre-libelle { min-width: 0; padding: 0 10px 0 8px; font-size: 12.5px; color: var(--texte-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barre-piste { height: 12px; display: flex; align-items: stretch; }
.barre-valeur-trait { background: var(--datis-orange); border-radius: 0 3px 3px 0; }
.barre-nombre { padding-right: 8px; text-align: right; font-size: 12.5px; color: var(--texte); }
.infobulle-barre { left: min(38%, 260px); transform: translate(0, -100%); top: 0; }
.barre-ligne:hover .infobulle-barre { display: block; animation: bulle-attente .15s step-end both; }
@keyframes bulle-attente { from { visibility: hidden; } to { visibility: visible; } }
.barres-vide { margin: 4px 8px; font-size: 12.5px; color: var(--texte-3); }

.point { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; flex: none; }
.point-ok { background: var(--ok); }
.point-orange { background: var(--attention); }
.point-rouge, .point-alerte { background: var(--alerte); }
.point-jamais { background: var(--bordure-forte); }

/* --- carte jour x heure : une seule teinte, 5 niveaux --- */
.chaleur { display: grid; grid-template-columns: 36px repeat(24, minmax(0, 1fr)); gap: 2px; align-items: center; }
.chaleur-heure { font-size: 12.5px; color: var(--texte-3); white-space: nowrap; overflow: visible; }
.chaleur-jour { font-size: 12.5px; color: var(--texte-2); }
.chaleur-case { position: relative; display: block; height: 22px; border-radius: 3px; background: var(--survol); }
.chaleur-case:hover { outline: 1px solid var(--texte-3); }
.chaleur-case:hover .infobulle { display: block; }
.chaleur-case.niveau-1 { background: rgba(253, 126, 0, .18); }
.chaleur-case.niveau-2 { background: rgba(253, 126, 0, .36); }
.chaleur-case.niveau-3 { background: rgba(253, 126, 0, .55); }
.chaleur-case.niveau-4 { background: rgba(253, 126, 0, .78); }
.chaleur-case.niveau-5 { background: #FD7E00; }
.chaleur-legende { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 12.5px; color: var(--texte-3); }
.chaleur-legende .chaleur-case { width: 18px; height: 12px; }

/* --- comparaison des sites --- */
.table-comparaison { margin-bottom: 0; font-size: 13px; }
.table-comparaison th { font-weight: 600; color: var(--texte-2); white-space: nowrap; }
.entete-tri button { border: 0; background: none; padding: 0; color: inherit; font: inherit; }
.entete-tri.actif button { color: var(--texte); }

/* Etiquettes d'axe : une sur n selon la largeur (e-l : ecrans larges seulement). */
@media (max-width: 979.98px) { .graphe-etiquette.e-l { display: none; } }

/* --- journal --- */
.journal-grille { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 12px; align-items: start; }
.carte-journal { padding: 0; }
.journal-entete { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px 8px; }
.journal-entete .form-check { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.table-journal { margin: 0; font-size: 13px; }
.table-journal th { font-weight: 600; color: var(--texte-2); white-space: nowrap; }
.table-journal td, .table-journal th { padding: 8px 10px; }
/* Colonnes secondaires (mode, EAN, categorie, format) : dans le detail a droite quand la place manque. */
@media (min-width: 980px) and (max-width: 1699.98px) { .table-journal .col-secondaire { display: none; } }
.cellule-site { white-space: nowrap; }
.cellule-site small { display: block; max-width: 8rem; overflow: hidden; text-overflow: ellipsis; color: var(--texte-3); font-size: 12px; }
.texte-coupe-journal { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.texte-coupe-court { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pastille-statut { display: inline-block; padding: 3px 9px; border-radius: 4px; font-size: 12px; white-space: nowrap; }
.pastille-statut::before { display: none; }
.journal-pied { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--bordure); }
.carte-detail { position: sticky; top: calc(3.5rem + 52px); max-height: calc(100vh - 3.5rem - 64px); overflow: auto; }
.detail-entete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.stats-carte-titre-texte { font-size: 14px; font-weight: 600; color: var(--texte); }
.detail-rubrique { margin: 14px 0 6px; font-size: 11.2px; letter-spacing: .09em; text-transform: uppercase; color: var(--texte-3); font-weight: 600; }
.detail-champs { display: grid; grid-template-columns: minmax(6rem, 38%) 1fr; gap: 3px 10px; margin: 0; font-size: 13px; }
.detail-champs dt { color: var(--texte-2); font-weight: 400; overflow-wrap: anywhere; }
.detail-champs dd { margin: 0; color: var(--texte); overflow-wrap: anywhere; white-space: pre-wrap; }

/* --- largeurs etroites --- */
@media (max-width: 979.98px) {
  .stats-tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-rang, .stats-rang.rang-3-2, .journal-grille { grid-template-columns: minmax(0, 1fr); }
  .carte-detail { position: static; max-height: none; }
}
@media (max-width: 639.98px) {
  .stats-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .groupe-filtre, .champ-recherche, .choix-sites { width: 100%; flex-wrap: wrap; }
  .champ-periode, .champ-mode { flex: 1 1 100%; width: 100%; }
  .champ-date-stats { flex: 1 1 40%; width: auto; }
  .stats-carte-titre { flex-wrap: wrap; }
  .stats-carte-note { white-space: normal; }
  .chaleur { grid-template-columns: 30px repeat(24, minmax(0, 1fr)); gap: 1px; }
  .chaleur-heure { font-size: 10px; }
}

/* =========================================================================
   Livraison 30 : repercuter la liste d'un restaurant sur d'autres
   ========================================================================= */

/* Les 16 autres restaurants tiennent dans la fenetre sans la faire deborder. */
.liste-sites-copie {
  max-height: 16rem;
  overflow-y: auto;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: .6rem .8rem;
}

.liste-sites-copie .form-check { margin-bottom: .25rem; }

/* =========================================================================
   Livraison 32 : categories de l'enseigne
   ========================================================================= */

/* Sous la liste deroulante d'un article : "personnalisee, revenir a l'enseigne". */
.btn-lien {
  border: 0;
  background: none;
  padding: 0;
  margin-top: .15rem;
  color: var(--datis-orange);
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.btn-lien:hover { color: var(--texte); }

/* =========================================================================
   Livraison 33 : barre d'action au-dessus d'une longue liste
   ========================================================================= */

/* Ce qu'on fait de la selection reste visible sans faire defiler la liste.
   Livraison 34 : elle se colle sous le bandeau du site (.barre-haut, 3,5 rem,
   lui-meme colle) tant qu'on parcourt la liste. Fond opaque et ombre
   obligatoires : les lignes passent dessous. */
.barre-action {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .6rem;
  margin: 1rem 0 .75rem;
  padding: .75rem .9rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--surface-2);
  position: sticky;
  top: 3.5rem;
  z-index: 5;
  box-shadow: var(--ombre-douce);
}

.barre-action-champ { min-width: 16rem; flex: 0 1 22rem; }

.barre-action .form-label { margin-bottom: .2rem; }

@media (max-width: 575.98px) {
  .barre-action-champ { flex-basis: 100%; min-width: 0; }

  /* Sur un telephone, la barre prend trop de hauteur pour rester collee. */
  .barre-action { position: static; box-shadow: none; }
}

