
@font-face { font-family: "Bodoni Moda"; src: url("/statique/polices/bodoni-moda-opsz-wght-2.005.ttf") format("truetype"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/statique/polices/lato-regular-2.015.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/statique/polices/lato-bold-2.015.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --violet: #241a33; --violet-doux: #3b2e4d; --lilas: #d9cfe5; --dore: #d5b77e; --laiton: #80602a;
  --encre: #251d32; --encre2: #4A4750; --appoint: #706976; --desactive: #8A8690;
  --fond: #f7f5ef; --surface: #fffefa; --filet: #e3dfd8; --voile: #ede9f0; --voile-chaud: #f0eadc;
  --destructive: #B3261E;
  --r-carte: 14px; --r1: 10px; --r-petit: 8px;
  --titres: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --ui: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --marge: 32px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--fond); }
body { margin: 0; font-family: var(--ui); font-size: 14px; line-height: 21px; color: var(--encre); background: var(--fond); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
a { color: var(--laiton); text-underline-offset: 2px; }
.evitement { position: absolute; left: -9999px; top: 0; background: var(--surface); color: var(--encre); padding: 8px 12px; z-index: 10; }
.evitement:focus { left: 8px; top: 8px; }
.lecteur-seul { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Le gabarit « L'atelier » : la colonne violette, l'espace de travail */
.atelier { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.colonne { background: var(--violet); color: var(--lilas); }
.colonne-fixe { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; padding: 28px 14px 24px; }
.colonne :focus-visible, .barre-mobile :focus-visible, .barre-marque :focus-visible { outline-color: var(--dore); }
.marque { padding: 0 8px; }
.logo { display: block; width: 168px; height: auto; aspect-ratio: 390 / 67; color: var(--surface); }
.sous-marque { display: block; margin: 8px 0 26px; font-size: 10.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--dore); }
.espace { min-width: 0; display: flex; flex-direction: column; }
.barre-mobile { display: none; }

/* La navigation : huit catégories au plus, second niveau en <details> natifs */
nav.navigation details.categorie { margin: 0 0 2px; }
nav.navigation summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 12px; border-radius: var(--r-petit); color: var(--lilas); font-size: 14px; cursor: pointer; }
nav.navigation summary::-webkit-details-marker { display: none; }
nav.navigation summary::after { content: ""; width: 7px; height: 7px; margin: -4px 2px 0 auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
nav.navigation details[open] > summary::after { margin-top: 4px; transform: rotate(-135deg); }
nav.navigation summary:hover, nav.navigation details[open] > summary { background: var(--violet-doux); color: var(--surface); }
nav.navigation ul { list-style: none; margin: 4px 0 10px; padding: 0; }
nav.navigation a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px 10px 32px; border-radius: var(--r-petit); color: var(--lilas); text-decoration: none; font-size: 13.5px; }
nav.navigation a:hover { background: var(--violet-doux); color: var(--surface); }
nav.navigation a[aria-current="page"] { color: var(--dore); font-weight: 700; }
nav.navigation a[aria-current="page"]::before { content: ""; flex: none; width: 5px; height: 5px; margin: 0 9px 0 -14px; border-radius: 50%; background: var(--dore); }

/* La barre du haut : fil d'Ariane ; zone, rôle, fin de session */
.haut { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; min-height: 66px; padding: 12px var(--marge); border-bottom: 1px solid var(--filet); }
.fil ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; font-size: 12.5px; color: var(--encre2); }
.fil li + li::before { content: "/"; content: "/" / ""; margin-right: 8px; color: var(--appoint); }
.fil a { color: var(--encre2); display: inline-block; min-height: 24px; line-height: 24px; }
.fil [aria-current="page"] { color: var(--encre); font-weight: 700; }
.outils { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.identite { color: var(--encre2); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.zone { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.zone label { font-weight: 700; font-size: 13px; }
.zone select { width: auto; max-width: 100%; min-height: 40px; padding: 6px 10px; }
.zone select.choisie { border: 2px solid var(--encre); }
.zone select:disabled { color: var(--desactive); }
.zone .aide { color: var(--encre2); font-size: 12.5px; }
.lien-bouton { font: inherit; font-size: 13px; font-weight: 400; color: var(--laiton); background: none; border: none; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; padding: 0; min-height: 24px; }
.lien-bouton:hover { background: none; color: var(--encre); }

/* Le contenu */
main { padding: 28px var(--marge) 48px; min-width: 0; overflow-wrap: break-word; }
.surtitre { margin: 0 0 6px; font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--laiton); }
h1 { font-family: var(--titres); font-weight: 400; font-size: 34px; line-height: 1.2; letter-spacing: -0.4px; margin: 0 0 8px; }
h2 { font-family: var(--titres); font-weight: 400; font-size: 22px; line-height: 1.3; margin: 28px 0 10px; }
h3 { font-size: 14px; margin: 18px 0 6px; }
.portee { margin: 0 0 14px; color: var(--encre2); }
p { max-width: 760px; }
.legende { font-size: 12.5px; color: var(--encre2); }
.mono { font-family: var(--mono); font-size: 13px; text-transform: none; }

/* Les cartes : surfaces crème, filet clair, arrondi de la maquette */
.annonce { background: var(--surface); border: 1px solid var(--filet); border-left: 4px solid var(--violet); border-radius: var(--r1); padding: 10px 14px; margin: 0 0 16px; max-width: 760px; }
.bandeau { background: var(--voile); border: 1px solid var(--filet); border-radius: var(--r-carte); padding: 12px 16px; margin: 0 0 16px; max-width: 760px; }
.etat-vide { background: var(--surface); border: 1px solid var(--filet); border-radius: var(--r-carte); padding: 24px; max-width: 640px; }
.citation { background: var(--voile-chaud); border-left: 3px solid var(--laiton); border-radius: 0 var(--r-petit) var(--r-petit) 0; padding: 8px 12px; margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 760px; }
main section { background: var(--surface); border: 1px solid var(--filet); border-radius: var(--r-carte); padding: 4px 22px 18px; margin: 0 0 18px; max-width: 980px; }
main section > h2:first-child { margin-top: 16px; }
fieldset { border: 1px solid var(--filet); border-radius: var(--r1); padding: 10px 14px; margin: 8px 0; max-width: 760px; min-width: 0; }
legend { font-weight: 700; padding: 0 4px; }

/* Tables denses (§7.2), posées sur une carte */
table { width: 100%; max-width: 980px; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--filet); border-radius: var(--r-carte); margin: 0 0 18px; }
th { text-align: left; font-size: 12.5px; font-weight: 400; color: var(--encre2); padding: 12px 14px; border-bottom: 1px solid var(--filet); vertical-align: top; }
th[scope="row"] { font-size: 14px; color: var(--encre); }
/* Lot BO-6 (BO-NAV-04) : un en-tête de LIGNE porte une valeur (un libellé, un identifiant) et
   s'affiche tel quel ; un identifiant (.mono) ne change jamais de casse. Depuis LOOK-1, aucun
   en-tête de tableau n'est en capitales (maquette « L'atelier ») ; seuls les surtitres décoratifs le sont. */
th[scope="row"] { text-transform: none; }
td { padding: 11px 14px; border-bottom: 1px solid var(--filet); height: 44px; vertical-align: top; }
tr:last-child > td, tr:last-child > th { border-bottom: 0; }
thead tr:last-child > th { border-bottom: 1px solid var(--filet); }

/* Boutons : deux réponses de poids égal ; violet pour le SEUL bouton primaire */
button, .bouton { font: inherit; font-weight: 700; min-height: 48px; padding: 8px 16px; border: 1.5px solid var(--encre); border-radius: var(--r1); background: var(--surface); color: var(--encre); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
button:hover, .bouton:hover { background: var(--voile); }
button.primaire { background: var(--violet); border-color: var(--violet); color: var(--surface); }
button.primaire:hover { background: var(--violet-doux); border-color: var(--violet-doux); }
button.destructif { border-color: var(--destructive); color: var(--destructive); }
button:disabled { color: var(--desactive); border-color: var(--desactive); cursor: not-allowed; background: var(--surface); }
td button, td .bouton { min-height: 40px; padding: 6px 12px; }
.gestes { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.verdicts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; max-width: 760px; }
.verdicts form { margin: 0; }
.verdicts button { width: 100%; min-height: 56px; font-size: 15px; justify-content: center; flex-direction: column; }
.verdicts small { display: block; font-weight: 400; font-size: 12px; color: var(--encre2); }

/* Formulaires : le contour reste sombre (contraste des champs) */
form.pile { display: grid; gap: 8px; max-width: 520px; margin: 8px 0 16px; }
/* ★ Lot BO-ATELIER-3 (2026-10-19, constat du fondateur sur iPhone, ≈ 390 px) — la colonne implicite
   d'une grille prend la largeur « minimale » de son contenu : la liste des indicatifs (le plus long
   nom de pays) élargissait le formulaire au-delà de la carte, et le texte d'aide avec lui. La
   colonne est désormais bornée à la largeur disponible, et aucun enfant ne peut l'élargir. */
form.pile { grid-template-columns: minmax(0, 1fr); }
form.pile > * { min-width: 0; max-width: 100%; }
select { min-width: 0; text-overflow: ellipsis; }
.connexion { min-width: 0; overflow-wrap: anywhere; }
.grille-deux > * { min-width: 0; }
label { font-weight: 700; }
input[type="radio"], input[type="checkbox"] { width: 20px; height: 20px; margin: 0 8px 0 0; accent-color: var(--violet); vertical-align: middle; }
input[type="text"], input[type="tel"], input[type="date"], input[type="number"], textarea, select { font: inherit; min-height: 44px; padding: 8px 10px; border: 1px solid var(--encre2); border-radius: var(--r-petit); background: var(--surface); color: var(--encre); width: 100%; max-width: 100%; }
textarea { min-height: 72px; }
.aide-champ { font-size: 12.5px; color: var(--encre2); margin: 0; }
/* ★ Lot CHAMP-NUMERO (2026-10-09) — le champ du numéro (design du champ du numéro §5.2) : la liste
   des indicatifs et la saisie côte à côte ; quand la place manque (téléphone étroit, zoom à 200 %),
   la liste passe au-dessus, sur toute la largeur (la saisie prend presque tout l'espace restant).
   Hauteur 48 pour les deux ; contour sombre de la règle générale ; exemple grisé en --appoint,
   opacité explicite (certains navigateurs atténuent le texte d'exemple). */
.champ-numero { display: flex; flex-wrap: wrap; gap: 8px; }
.champ-numero select { flex: 1 1 9em; width: auto; min-width: 0; min-height: 48px; }
.champ-numero input[type="tel"] { flex: 999 1 12em; width: auto; min-width: 0; min-height: 48px; }
.champ-numero input::placeholder { color: var(--appoint); opacity: 1; }
main details { margin: 8px 0; max-width: 760px; }
main details > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; color: var(--encre); }
main details[open] { border: 1px solid var(--filet); border-radius: var(--r1); padding: 4px 14px 12px; background: var(--surface); }

/* La revue des photos (ADM-21) */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; align-items: start; }
.critere { margin: 0 0 12px; }
.critere small { display: block; margin-top: 4px; color: var(--encre2); font-size: 12.5px; }
.cadre { background: var(--filet); border-radius: var(--r-carte); padding: 10px; display: flex; justify-content: center; align-items: center; min-height: 260px; max-width: 760px; }
.cadre img { max-width: 100%; max-height: 60vh; height: auto; display: block; border-radius: 6px; }
.cadre.grand img { max-height: none; }
.lateral { border-left: 1px solid var(--filet); padding-left: 20px; }
.lateral h2 { font-family: var(--ui); font-weight: 700; font-size: 13px; margin: 0 0 4px; }
.lateral .bloc { margin-bottom: 18px; }
.nombre { font-family: var(--mono); font-size: 16px; }
kbd { font-family: var(--mono); font-size: 12px; border: 1px solid var(--encre2); border-radius: 4px; padding: 0 5px; background: var(--surface); }

/* Lecteurs de médias : lecture dans la page seulement */
audio, video { display: block; margin: 8px 0; max-width: 100%; }
video { max-height: 60vh; background: var(--encre); }

/* Portée d'un réglage (§12.14.2) : toujours en mots, jamais une couleur seule */
.badge { display: inline-block; padding: 2px 10px; border: 1px solid var(--encre2); border-radius: 999px; font-size: 12.5px; color: var(--encre2); }
.badge.exception { background: var(--voile); border: 1px solid var(--encre); border-left: 3px solid var(--encre); color: var(--encre); font-weight: 700; }
.badge.unique { border-style: dashed; }

/* ★★ Le tableau de bord « tel que la maquette » (lot LOOK-2) : bande de filtres, cartes à gros
   chiffres, anneau et barres en SVG (couleurs posées ICI, sur des classes : les formes n'ont que
   des attributs de présentation), écarts entre villes, bandeau « À traiter ». Aucune couleur
   de performance : le violet est la seule couleur des graphiques, le dernier jour seul est plus
   foncé (il est en cours). */
.lien-titre { margin: -4px 0 8px; text-align: right; max-width: none; }
.filtres { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto; gap: 12px 14px; align-items: end; background: var(--surface); border: 1px solid var(--filet); border-radius: var(--r-carte); padding: 16px 18px; margin: 16px 0 10px; }
.filtre { display: grid; gap: 6px; min-width: 0; }
.filtre label { font-weight: 400; font-size: 12.5px; color: var(--encre2); }
.filtre-action button { width: 100%; justify-content: center; }
.filtre-aide { grid-column: 1 / -1; margin: 0; }
.resume { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.resume p { margin: 0; }
.resume .bouton { min-height: 40px; font-weight: 400; font-size: 13px; padding: 6px 14px; border-color: var(--filet); }
main section.carte-chiffre, main section.carte-large { max-width: none; margin: 0; }
.cartes-chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 16px; }
main section.carte-chiffre { padding: 16px 18px 14px; }
main section.carte-chiffre > h2:first-child { font-family: var(--ui); font-weight: 400; font-size: 13px; line-height: 1.4; color: var(--encre2); margin: 0 0 6px; }
.chiffre { font-family: var(--titres); font-weight: 400; font-size: 46px; line-height: 1.1; letter-spacing: -0.5px; margin: 0 0 8px; font-variant-numeric: lining-nums; }
.chiffre-moyen { font-size: 34px; margin: 0 0 2px; }
.chiffre.chiffre-absent { font-family: var(--ui); font-size: 15px; line-height: 1.4; letter-spacing: 0; color: var(--encre2); margin: 10px 0; }
main section.carte-chiffre .legende { margin: 0; }
.grille-deux { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin: 0 0 16px; align-items: start; }
main section.carte-large { padding: 6px 22px 16px; }
main section.carte-pleine { margin: 0 0 16px; }
.carte-tete { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; }
.carte-tete h2 { margin: 16px 0 6px; }
.carte-tete a { font-size: 13px; }
.place { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; margin: 8px 0 4px; }
.place p { margin: 0 0 4px; }
.anneau { width: 132px; height: 132px; flex: none; }
.anneau-fond { stroke: var(--voile-chaud); }
.anneau-part { stroke: var(--violet); }
.anneau-texte { font-family: var(--titres); font-size: 21px; fill: var(--encre); }
.barres { display: block; width: 100%; height: auto; max-height: 220px; margin: 18px 0 0; }
.barre { fill: #cdc2dc; }
.barre-courante { fill: var(--violet); }
.barre-valeur { font-family: var(--ui); font-size: 11px; fill: var(--encre2); }
.barres-base { stroke: var(--filet); stroke-width: 1; }
.barres-axe { display: flex; justify-content: space-between; font-size: 12px; color: var(--encre2); margin: 6px 0 10px; }
table.ecarts td, table.ecarts th { vertical-align: middle; }
table.ecarts tr[aria-current="true"] > th { font-weight: 700; }
.a-traiter { background: var(--voile-chaud); border: 1px solid var(--filet); border-radius: var(--r-carte); padding: 14px 18px; margin: 0 0 24px; }
.a-traiter p { margin: 0; max-width: none; }
.titre-detail { margin-top: 36px; }

/* ★ Lot PANNEAU — le panneau des droits (fiche d'un compte, ADM-08) et la phrase « Tu vois ». */
.portee-du-compte { margin: 0 0 14px; color: var(--encre2); }
table.fiche { max-width: 760px; }
table.fiche th[scope="row"] { width: 180px; font-size: 13px; color: var(--encre2); }
form.panneau { max-width: 980px; }
fieldset.categorie-panneau { max-width: 980px; background: var(--surface); border-radius: var(--r-carte); padding: 12px 18px 14px; margin: 0 0 14px; }
fieldset.categorie-panneau > legend { font-family: var(--titres); font-weight: 400; font-size: 19px; padding: 0 6px; }
ul.fonctions { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 22px; }
li.fonction { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 0; padding: 6px 0; border-bottom: 1px solid var(--filet); }
li.fonction > input { margin-top: 1px; }
li.fonction > .aide-champ { grid-column: 2; }
li.fonction.reservee { grid-template-columns: minmax(0, 1fr); color: var(--encre2); }
li.fonction.reservee > .aide-champ { grid-column: 1; }
li.fonction .intitule { font-weight: 700; }
.tout-cocher { margin: 4px 0 8px; }
.limite { margin: 14px 0 0; padding: 10px 14px 12px; background: var(--voile); border-radius: var(--r1); }
.limite h3 { margin: 4px 0 6px; }
ul.limites { list-style: none; margin: 0 0 8px; padding: 0; }
ul.limites li { padding: 4px 0; }
.avis { font-size: 12.5px; color: var(--laiton); font-weight: 700; margin-left: 6px; }
.ajouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-top: 8px; }
.ajout { display: grid; gap: 4px; min-width: 0; }

/* La page de connexion et les pages simples : une barre violette, un bloc centré (§12.4) */
.barre-marque { background: var(--violet); padding: 18px 24px; }
.barre-marque .logo { width: 150px; }
.connexion { max-width: 440px; margin: 40px auto; padding: 24px 28px; background: var(--surface); border: 1px solid var(--filet); border-radius: var(--r-carte); }
.connexion h1 { font-size: 28px; margin-bottom: 12px; }
.connexion .rappel { border-left: 3px solid var(--laiton); padding: 6px 12px; color: var(--encre2); margin: 16px 0; }
.connexion .cle { font-family: var(--mono); font-size: 16px; letter-spacing: 0.08em; word-break: break-all; background: var(--fond); border: 1px solid var(--filet); padding: 10px; border-radius: var(--r-petit); }

/* ★ Lot BO-ATELIER-1 — la pastille du territoire (barre du haut) et sa croix ; la barre commune
   (territoire, période, Valeurs / %) ; la carte schématique des territoires (SVG, aucune tuile) ;
   le dénominateur écrit sous chaque part. Aucune couleur de performance. */
.pastille-territoire { display: inline-flex; align-items: center; gap: 6px; background: var(--voile); border-radius: 999px; padding: 4px 10px; font-size: 14px; }
.pastille-territoire .croix { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--violet); }
.pastille-territoire .croix:hover { background: var(--lilas); }
.barre-commune { margin: 8px 0 16px; }
.barre-territoire { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
.barre-periode { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
.bascule-mode { display: flex; gap: 10px; align-items: center; margin: 6px 0 12px; }
.bascule-mode .mode { padding: 4px 12px; border: 1px solid var(--filet); border-radius: var(--r-petit); text-decoration: none; color: var(--encre2); }
.bascule-mode .mode-actif { background: var(--violet); border-color: var(--violet); color: var(--surface); }
.denominateur { font-size: 13px; color: var(--encre2); font-weight: 400; }
.carte-territoires { width: 100%; max-width: 720px; height: auto; display: block; }
.carte-fond { fill: var(--voile); }
.carte-disque { fill: var(--violet); fill-opacity: 0.55; stroke: var(--violet); stroke-width: 1; }
.carte-territoires a:hover .carte-disque, .carte-territoires a:focus .carte-disque { fill-opacity: 0.85; }
.liste-prioritaires { margin: 8px 0 0; padding-left: 20px; }

/* ★ Le téléphone (consulter ET modérer) : sous 900 px, la colonne laisse place à une barre et
   à un menu <details> ; aucun défilement horizontal de la page (une table trop large défile
   dans son propre cadre). */
@media (max-width: 899.98px) {
  :root { --marge: 16px; }
  .atelier { display: block; min-height: 0; }
  .colonne { display: none; }
  .barre-mobile { display: block; position: relative; background: var(--violet); color: var(--lilas); padding: 14px 16px; min-height: 64px; }
  .barre-mobile .marque { padding: 4px 0 0; }
  .barre-mobile .logo { width: 140px; }
  .menu > summary { position: absolute; top: 10px; right: 12px; list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: var(--r-petit); background: var(--violet-doux); color: var(--lilas); font-weight: 700; cursor: pointer; }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu > summary::before { content: ""; width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
  .menu[open] > summary { color: var(--surface); }
  .navigation-menu { margin-top: 16px; }
  .haut { padding: 10px var(--marge); min-height: 0; }
  main { padding: 20px var(--marge) 40px; }
  h1 { font-size: 28px; }
  .duo { grid-template-columns: 1fr; }
  .lateral { border-left: 0; padding-left: 0; border-top: 1px solid var(--filet); padding-top: 14px; }
  table { display: block; overflow-x: auto; }
  .cadre { min-height: 200px; }
  .cadre img { max-height: 42vh; }
  main section { padding: 4px 16px 14px; }
  .connexion { margin: 24px 16px; padding: 20px; }
  .filtres { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; }
  .filtre-action { grid-column: 1 / -1; }
  .barre-territoire, .barre-periode { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cartes-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .chiffre { font-size: 34px; }
  .grille-deux { grid-template-columns: 1fr; }
  main section.carte-large { padding: 4px 16px 14px; }
  ul.fonctions, .ajouts { grid-template-columns: 1fr; }
  fieldset.categorie-panneau { padding: 10px 12px 12px; }
}
@media (max-width: 1199.98px) and (min-width: 900px) {
  .filtres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grille-deux { grid-template-columns: 1fr; }
}
/* ★ Lot BO-ATELIER-3 — sous 480 px, l'indicatif passe AU-DESSUS du numéro, chacun sur toute la
   largeur ; la carte de connexion garde 16 px de marge de chaque côté. */
@media (max-width: 479.98px) {
  .champ-numero { flex-direction: column; flex-wrap: nowrap; }
  .champ-numero select, .champ-numero input[type="tel"] { flex: none; width: 100%; }
  .connexion { padding: 18px 16px; }
}
@media (max-width: 339.98px) {
  .cartes-chiffres { grid-template-columns: 1fr; }
  .filtres { grid-template-columns: 1fr; }
}
@media (pointer: coarse) {
  .lien-bouton, .fil a { min-height: 44px; line-height: 44px; }
  input[type="text"], input[type="tel"], input[type="date"], input[type="number"], textarea, select { font-size: 16px; }
}
/* ★★★ LOT BO-REFONTE-19 (2026-10-19) — LE DESSIN DES MAQUETTES DU FONDATEUR
   (livrables/design/maquettes/2026-10-19-bureau-maquettes-fondateur.md). Fond crème très clair,
   cartes blanc cassé arrondies à ombre très légère, icônes rondes lavande, titres en grand serif,
   menu latéral en fondu aubergine → lavande, pastilles en rond de couleur. Les règles d'avant
   restent pour ce que ce bloc ne redessine pas ; celles-ci, plus bas, l'emportent.
   ★ Contraste (formule de luminance relative WCAG, calculée le 2026-10-19 par un script local) :
     texte blanc sur l'aubergine du haut du menu #2a1c3c = 15,79:1, sur #3d2a57 = 12,60:1, et sur
     le milieu du fondu #7d6a9c = 4,76:1 (les cinq rubriques restent au-dessus) ; « Déconnexion »
     #2a1c3c sur la lavande du bas #e4dbef = 11,79:1 ; chiffre --encre #251d32 sur la pastille
     dorée #d9b46a = 8,22:1 ; blanc sur la pastille violette #5b3f86 = 8,40:1 ; --encre2 #4A4750 sur
     le fond #faf8f4 = 8,58:1 et sur une carte #fffefb = 9,02:1. Le laiton #b08a4e ne sert qu'aux
     filets (décoratifs), jamais à un texte sur clair. */
:root {
  --aubergine: #2a1c3c; --aubergine-2: #3d2a57; --lavande: #e4dbef; --lavande-pale: #f1ecf7;
  --lavande-icone: #ebe4f4; --filet-laiton: #b08a4e; --doree: #d9b46a; --violet-pastille: #5b3f86;
  --creme: #faf8f4; --carte: #fffefb; --ombre: 0 1px 2px rgba(42, 28, 60, 0.05), 0 4px 14px rgba(42, 28, 60, 0.05);
  --rose-pale: #fbe9ea; --rouge-alerte: #a3242c; --vert-pale: #e7f4ea; --vert: #1f6b39;
}
html, body { background: var(--creme); }
.icone { width: 20px; height: 20px; flex: none; }
.icone-petite { width: 16px; height: 16px; }

/* Le menu latéral en fondu */
.atelier { grid-template-columns: 248px minmax(0, 1fr); }
.colonne { background: linear-gradient(180deg, var(--aubergine) 0, var(--aubergine-2) 360px, #7d6a9c 72%, var(--lavande) 100%); color: var(--surface); }
.colonne-fixe { display: flex; flex-direction: column; min-height: 100vh; max-height: none; padding: 26px 16px 22px; }
.colonne .logo { width: 178px; color: var(--surface); }
.colonne .marque { margin: 0 0 34px; }
ul.rubriques { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
nav.navigation a.rubrique { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 12px 14px; border-radius: 12px; border-left: 3px solid transparent; color: var(--surface); text-decoration: none; font-size: 15px; font-weight: 400; }
nav.navigation a.rubrique:hover { background: rgba(255, 255, 255, 0.10); color: var(--surface); }
nav.navigation a.rubrique[aria-current="page"] { background: rgba(255, 255, 255, 0.18); border-left-color: var(--filet-laiton); color: var(--surface); font-weight: 700; }
nav.navigation a.rubrique[aria-current="page"]::before { content: none; }
nav.navigation a.rubrique .intitule { flex: 1 1 auto; min-width: 0; }
.pied-colonne { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(42, 28, 60, 0.25); }
.pied-colonne form { margin: 0; }
button.bouton-deconnexion { width: 100%; gap: 14px; justify-content: flex-start; min-height: 48px; padding: 10px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--aubergine); font-weight: 400; font-size: 15px; }
button.bouton-deconnexion:hover { background: rgba(42, 28, 60, 0.08); }

/* Les pastilles : un rond de couleur avec le chiffre (2026-10-19, réponse (4)) */
.pastille { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--violet-pastille); color: #ffffff; font-size: 12px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; margin-left: 6px; }
nav.navigation .pastille { background: var(--doree); color: var(--encre); }
nav.navigation .pastille + .pastille { margin-left: 4px; }

/* La barre du haut */
.haut { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; min-height: 72px; padding: 14px var(--marge); border-bottom: 1px solid var(--filet); background: var(--creme); }
.haut-territoire, .haut-droite { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; min-width: 0; }
a.bouton-monde { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--filet); border-radius: 12px; background: var(--carte); color: var(--encre); text-decoration: none; font-size: 14px; box-shadow: var(--ombre); }
a.bouton-monde:hover { background: var(--lavande-pale); }
a.bouton-monde .icone-petite { color: var(--encre2); }
form.barre-haut { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; background: none; border: 0; }
form.barre-haut select { width: auto; min-width: 0; max-width: 220px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--filet); border-radius: 12px; background: var(--carte); box-shadow: var(--ombre); }
form.barre-haut select:focus-visible { outline: 2px solid var(--aubergine); }
form.barre-haut > .icone { color: var(--encre2); }
form.barre-haut label:not(.lecteur-seul) { font-weight: 400; font-size: 13px; color: var(--encre2); }
button.petit, .bouton.petit { min-height: 40px; padding: 6px 12px; font-size: 13px; border-radius: 10px; }
details.plage { position: relative; margin: 0; max-width: none; }
details.plage > summary { min-height: 40px; font-weight: 400; font-size: 13px; color: var(--encre2); cursor: pointer; display: flex; align-items: center; }
details.plage[open] { border: 0; padding: 0; background: none; }
details.plage .dates { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
details.plage input[type="date"] { width: auto; min-height: 40px; }
.zone.barre-haut select.choisie { border: 2px solid var(--aubergine); }
.identite { color: var(--encre2); font-size: 13px; }
a.bouton-haut { min-height: 44px; gap: 8px; padding: 8px 14px; border: 1px solid var(--encre); border-radius: 12px; font-weight: 400; font-size: 13px; }
.pastille-territoire { background: var(--lavande-pale); }

/* Le titre de page, les onglets, les pilules */
main { padding: 26px var(--marge) 48px; }
.tete-page { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 10px; }
.titre-et-etiquette { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; min-width: 0; }
.tete-page h1 { font-family: var(--titres); font-weight: 500; font-size: 44px; line-height: 1.1; letter-spacing: -0.6px; margin: 0; }
.etiquette { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--lavande); color: var(--aubergine); font-size: 13px; }
.outils-titre { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bascule-mode { display: inline-flex; gap: 0; margin: 0; padding: 3px; border: 1px solid var(--filet); border-radius: 12px; background: var(--carte); }
.bascule-mode .mode { padding: 7px 18px; border: 0; border-radius: 9px; text-decoration: none; color: var(--encre2); }
.bascule-mode .mode-actif { background: var(--aubergine); color: var(--surface); }
.legende-periode, .fraicheur { margin: 0 0 12px; }
/* ★ Lot BO-INSCRITS-MENU (2026-10-30, planche validée) : la rangée passe à la ligne au lieu de défiler. */
nav.onglets { margin: 8px 0 18px; border-bottom: 1px solid var(--filet); }
nav.onglets ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0; padding: 0; }
nav.onglets a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 4px 10px; border-bottom: 3px solid transparent; color: var(--encre2); text-decoration: none; font-family: var(--titres); font-size: 18px; white-space: nowrap; }
nav.onglets a:hover { color: var(--encre); }
nav.onglets a[aria-current="page"] { color: var(--encre); border-bottom-color: var(--filet-laiton); font-weight: 600; }
nav.pilules { margin: 0 0 18px; }
nav.pilules ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
nav.pilules a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border: 1px solid var(--filet); border-radius: 999px; background: var(--carte); color: var(--encre); text-decoration: none; font-size: 14px; }
nav.pilules a:hover { background: var(--lavande-pale); }
nav.pilules a[aria-current="page"] { background: var(--aubergine); border-color: var(--aubergine); color: var(--surface); }
nav.pilules a[aria-current="page"] .pastille { background: var(--doree); color: var(--encre); }

/* Les cartes : blanc cassé, arrondi 16, ombre très légère */
main section, table, .etat-vide, .etat-page, .bandeau, fieldset.categorie-panneau { background: var(--carte); border-color: #ebe6dd; border-radius: 16px; box-shadow: var(--ombre); }
main section { max-width: none; }
table { max-width: none; }
.annonce { border-radius: 12px; }
.annonce-succes { display: flex; align-items: center; gap: 12px; background: var(--vert-pale); border: 1px solid #cfe6d5; border-left: 4px solid var(--vert); max-width: none; }
.annonce-succes .icone-rond { width: 28px; height: 28px; padding: 4px; border-radius: 999px; border: 1.6px solid var(--vert); color: var(--vert); }
.bandeau-info { display: flex; align-items: flex-start; gap: 12px; background: var(--lavande-pale); border: 1px solid #e1d8ec; border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; max-width: none; }
.bandeau-info p { margin: 0; max-width: none; }
.bandeau-info .icone { color: var(--aubergine-2); margin-top: 1px; }
.rond-icone { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 999px; background: var(--lavande-icone); color: var(--aubergine-2); }
.rond-icone.chaud { background: #f6ecda; color: #7a5a1f; }
.rond-icone .icone { width: 22px; height: 22px; }

/* Les tuiles à gros chiffre (maquettes 3, 8, 17) */
.tuiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 16px; }
.tuile { display: flex; gap: 14px; align-items: flex-start; background: var(--carte); border: 1px solid #ebe6dd; border-radius: 16px; box-shadow: var(--ombre); padding: 18px; min-width: 0; }
.tuile .contenu-tuile { min-width: 0; }
.tuile h2, .tuile h3 { font-family: var(--ui); font-weight: 400; font-size: 14px; line-height: 1.35; color: var(--encre); margin: 0 0 4px; }
.tuile .grand-chiffre { font-family: var(--titres); font-weight: 500; font-size: 44px; line-height: 1.05; margin: 0 0 6px; font-variant-numeric: lining-nums; }
.tuile .grand-chiffre.chaud { color: #6d4f17; }
.tuile .non-mesure { font-family: var(--titres); font-size: 22px; line-height: 1.2; color: var(--encre2); margin: 6px 0; }
.tuile .legende { margin: 0; }
.cartes-deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; }
.carte { background: var(--carte); border: 1px solid #ebe6dd; border-radius: 16px; box-shadow: var(--ombre); padding: 18px 20px; min-width: 0; }
.carte-entete { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.carte-entete h2 { font-family: var(--titres); font-weight: 500; font-size: 22px; margin: 0; }
.carte-entete .a-droite { margin-left: auto; font-size: 13px; color: var(--encre2); display: inline-flex; align-items: center; gap: 6px; }
.chiffres-carte { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin: 0 0 12px; }
.chiffres-carte .chiffre-carte { font-family: var(--titres); font-size: 34px; line-height: 1.1; margin: 0; }
.chiffres-carte .libelle-carte { font-size: 13px; color: var(--encre2); margin: 0; }
.mot-non-mesure { font-family: var(--titres); font-size: 20px; color: var(--encre2); }
.bandeau-gris { background: #f3f1ec; border-radius: 10px; padding: 9px 14px; color: var(--encre2); font-size: 13px; margin: 8px 0 0; max-width: none; }
.lien-action { display: inline-flex; align-items: center; gap: 8px; }
.barres-horizontales { display: grid; gap: 10px; margin: 6px 0 4px; }
.ligne-barre { display: grid; grid-template-columns: minmax(110px, 0.9fr) minmax(0, 1.6fr) auto auto; align-items: center; gap: 12px; }
.ligne-barre .nombre-barre { font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.ligne-barre .part-barre { color: var(--encre2); min-width: 5ch; text-align: right; }
svg.jauge { width: 100%; height: 12px; display: block; }
.jauge-fond { fill: #ece7f3; }
.jauge-plein { fill: var(--aubergine-2); }
.jauge-plein.n2 { fill: #7a5fa6; } .jauge-plein.n3 { fill: #9a82c0; } .jauge-plein.n4 { fill: #b9a8d6; }
svg.histogramme { width: 100%; height: auto; display: block; max-height: 260px; }
.histo-barre { fill: #9a82c0; }
.histo-barre.fort { fill: #6e539a; }
.histo-valeur, .histo-axe { font-family: var(--ui); font-size: 12px; fill: var(--encre2); }
.histo-base { stroke: #d9d2c6; stroke-width: 1; }

/* Les états d'une page (maquette 16) */
.etat-page { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 34px 20px; margin: 0 0 16px; border: 1px solid #ebe6dd; }
.etat-page .rond-etat { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 999px; background: var(--lavande-icone); color: var(--aubergine-2); }
.etat-page .rond-etat .icone { width: 32px; height: 32px; }
.etat-page.etat-erreur .rond-etat { background: var(--rose-pale); color: var(--rouge-alerte); }
.etat-page h1, .etat-page .etat-titre { font-family: var(--titres); font-weight: 500; font-size: 26px; line-height: 1.25; margin: 6px 0 0; }
.etat-page .etat-texte { color: var(--encre2); margin: 0; }
.etat-page .bouton, .etat-page button { margin-top: 10px; }
a.bouton.primaire { background: var(--aubergine); border-color: var(--aubergine); color: var(--surface); justify-content: center; }
a.bouton.primaire:hover { background: var(--aubergine-2); }
button.primaire { background: var(--aubergine); border-color: var(--aubergine); }
button.secondaire { background: var(--carte); border-color: var(--encre); color: var(--encre); }
button.large, .bouton.large { width: 100%; justify-content: center; gap: 12px; min-height: 52px; font-size: 16px; border-radius: 10px; }
button.laiton, .bouton.laiton { background: var(--doree); border-color: var(--doree); color: var(--encre); }

/* La connexion (maquette 1) : bandeau en fondu, une carte « Connexion » */
body.simple { background: #f4f2f6; }
.ecran-simple { min-height: 100vh; background: linear-gradient(180deg, var(--aubergine) 0, var(--aubergine-2) 110px, #b9a8d0 210px, #f4f2f6 320px); }
.bandeau-marque { padding: 36px 40px 0; }
.bandeau-marque .logo { width: 210px; color: var(--surface); }
.bandeau-marque .sous-marque { display: block; margin: 10px 0 0 2px; font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: #e6def2; }
main.connexion { max-width: 470px; margin: 70px auto 48px; padding: 30px 32px 28px; background: var(--carte); border: 1px solid #ebe6dd; border-radius: 18px; box-shadow: 0 8px 30px rgba(42, 28, 60, 0.10); }
main.connexion h1 { font-family: var(--titres); font-weight: 500; font-size: 34px; text-align: center; margin: 0 0 22px; }
main.connexion .cle-acces { background: none; border: 0; box-shadow: none; padding: 0; margin: 0; }
main.connexion .aide-champ.centre { text-align: center; }
main.connexion .separateur { display: flex; align-items: center; gap: 14px; margin: 14px 0 6px; color: var(--encre2); font-size: 13px; max-width: none; }
main.connexion .separateur::before, main.connexion .separateur::after { content: ""; flex: 1 1 auto; border-top: 1px solid #ddd6cb; }
main.connexion .rappel { border-left: 3px solid var(--filet-laiton); padding: 4px 14px; color: var(--encre2); margin: 22px 0 0; }

/* Les confirmations (maquette 15) : une carte aubergine très sombre, titre serif blanc en question,
   la ligne de contexte en gras, « Retour » encadré clair à gauche, l'action pleine LAITON à droite.
   Contraste : blanc sur #2a1c3c 15,79:1 ; --encre sur le doré #d9b46a 8,22:1 (calculés). */
section.confirmation { max-width: 620px; margin: 8px auto 24px; padding: 28px 30px; background: var(--aubergine); border: 0; border-radius: 18px; color: #ffffff; box-shadow: 0 12px 34px rgba(42, 28, 60, 0.25); text-align: center; }
section.confirmation h2 { font-family: var(--titres); font-weight: 500; font-size: 30px; margin: 10px 0 12px; color: #ffffff; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
section.confirmation p { margin: 6px auto; max-width: none; }
section.confirmation .contexte { font-weight: 700; }
section.confirmation .rond-alerte { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 2px solid var(--doree); border-radius: 999px; color: var(--doree); font-family: var(--titres); font-size: 24px; }
.gestes-confirmation { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.gestes-confirmation form { margin: 0; }
.gestes-confirmation .bouton, .gestes-confirmation button { width: 100%; justify-content: center; }
section.confirmation .bouton { background: transparent; color: #ffffff; border-color: #ffffff; }
section.confirmation :focus-visible { outline-color: var(--doree); }
.rond-etat.rond-fait { background: var(--vert-pale); color: var(--vert); }
.etat-page table.fiche { max-width: 520px; text-align: left; box-shadow: none; }
.etiquette-laiton { background: #f3e7cf; color: #5c4316; display: inline-flex; align-items: center; gap: 6px; }
.sous-carte { margin: 10px 2px 0; display: flex; align-items: center; gap: 6px; }
section.carte.decision form.pile { max-width: none; }

/* ★★★ LOT BO-REFONTE-19-B (2026-10-19) — Réglages (maquettes 7, 9, 12, 13), Revenus & offres
   (maquettes 5, 6), Promotion (maquette 13). Mêmes jetons que le bloc précédent ; aucune image,
   aucun style en ligne. L'INTERRUPTEUR est un bouton de formulaire (role="switch") qui demande la
   reconfirmation : sa piste « allumée » est l'aubergine (#2a1c3c), « éteinte » un gris lavande
   bordé de --encre2 (#4A4750 sur la carte #fffefb = 9,02:1, calculé au lot précédent), ce qui
   tient le 3:1 exigé d'un composant d'interface ; le curseur blanc a son propre filet. */
.carte-reglages { margin: 0 0 16px; }
.carte-entete .titre-carte { min-width: 0; }
.carte-entete .titre-carte .legende { margin: 2px 0 0; }
.carte-entete .etiquette { margin-left: auto; }
.ligne-reglage { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px 18px; padding: 12px 4px; border-top: 1px solid #efeae2; margin: 0; max-width: none; }
.ligne-reglage .texte-reglage { min-width: 0; }
.ligne-reglage .texte-reglage p, .ligne-reglage .texte-reglage .legende { margin: 0; }
.nom-reglage { font-weight: 700; color: var(--encre); margin: 0; display: block; }
.etat-reglage { display: inline-block; padding: 5px 14px; border-radius: 999px; background: #f0eef2; color: var(--encre2); font-size: 13px; white-space: nowrap; }
.etat-reglage.etat-actif { background: var(--lavande); color: var(--aubergine); }
form.forme-interrupteur { margin: 0; }
button.interrupteur { min-height: 44px; min-width: 64px; padding: 6px; border: 0; background: transparent; justify-content: center; }
button.interrupteur:hover { background: transparent; }
button.interrupteur:focus-visible { outline: 2px solid var(--aubergine); outline-offset: 2px; border-radius: 999px; }
.interrupteur-piste { display: inline-flex; align-items: center; width: 52px; height: 30px; padding: 2px; border-radius: 999px; background: #e9e5ee; border: 1.5px solid var(--encre2); box-sizing: border-box; }
.interrupteur-curseur { width: 22px; height: 22px; border-radius: 999px; background: #ffffff; border: 1px solid var(--encre2); box-sizing: border-box; }
button.interrupteur[aria-checked="true"] .interrupteur-piste { background: var(--aubergine); border-color: var(--aubergine); justify-content: flex-end; }
button.interrupteur[aria-checked="true"] .interrupteur-curseur { border-color: #ffffff; }
form.ligne-duree { grid-template-columns: minmax(0, 1fr) auto auto; }
.champ-jours { display: inline-flex; align-items: center; gap: 10px; }
.champ-jours input[type="number"] { width: 96px; }
.liste-changements { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.liste-changements li { padding: 8px 0; border-top: 1px solid #efeae2; }
.point-etat { display: inline-block; width: 9px; height: 9px; border-radius: 999px; background: #b9b4be; margin-right: 8px; vertical-align: middle; }
.point-etat.point-actif { background: var(--vert); }
.point-etat.point-attente { background: #b5761d; }
.liste-et-panneau { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; align-items: start; margin: 0 0 16px; }
.liste-et-panneau.liste-large { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.liste-et-panneau > section { margin: 0; }
ul.liste-emplacements { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
ul.liste-emplacements a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 52px; padding: 10px 12px; border-radius: 12px; color: var(--encre); text-decoration: none; }
ul.liste-emplacements a:hover { background: var(--lavande-pale); }
ul.liste-emplacements a[aria-current="true"] { background: var(--lavande-pale); border-left: 3px solid var(--aubergine-2); }
.texte-emplacement { display: grid; gap: 2px; min-width: 0; }
.nom-emplacement { font-weight: 700; overflow-wrap: anywhere; }
.numero-ordre { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--filet); font-size: 13px; color: var(--encre2); }
fieldset.statut { border: 0; padding: 0; margin: 4px 0; }
fieldset.statut legend { font-weight: 700; padding: 0; }
.panneau-detail h3 { font-family: var(--titres); font-weight: 500; font-size: 18px; margin: 14px 0 6px; }
dl.fiche-detail, dl.grille-identite { margin: 0 0 12px; display: grid; gap: 8px; }
dl.fiche-detail > div { display: grid; grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.4fr); gap: 4px 14px; padding: 6px 0; border-top: 1px solid #efeae2; }
dl.fiche-detail dt, dl.grille-identite dt { font-size: 13px; color: var(--encre2); margin: 0; }
dl.fiche-detail dd, dl.grille-identite dd { margin: 0; overflow-wrap: anywhere; }
dl.fiche-detail dd.legende { grid-column: 2; }
dl.grille-identite { grid-template-columns: repeat(2, minmax(0, 1fr)); background: #f6f3ef; border-radius: 12px; padding: 12px 16px; }
details.autres-gestes { margin: 8px 0 0; }
details.autres-gestes > summary { cursor: pointer; font-size: 13px; color: var(--encre2); min-height: 32px; }
form.barre-filtres { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin: 0 0 16px; max-width: none; }
form.barre-filtres .champ-filtre { display: grid; gap: 4px; min-width: 0; }
form.barre-filtres select { min-width: 200px; max-width: 100%; }
form.barre-filtres .a-droite { margin-left: auto; align-self: center; }
nav.onglets.sous-onglets { margin: 4px 0 14px; }
nav.onglets.sous-onglets a { font-family: var(--ui); font-size: 15px; }
table tr.choisie > th, table tr.choisie > td { background: var(--lavande-pale); }
.bandeau-info.bandeau-laiton { background: #f8efdc; border-color: #ead7ad; }
.bandeau-info.bandeau-laiton .icone { color: #6d4f17; }
.tuiles.tuiles-trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.non-mesure-cellule { color: var(--encre2); }
@media (max-width: 899.98px) {
  .ligne-reglage, form.ligne-duree { grid-template-columns: minmax(0, 1fr) auto; }
  .ligne-reglage > .texte-reglage { grid-column: 1 / -1; }
  .liste-et-panneau, .liste-et-panneau.liste-large, .tuiles.tuiles-trois { grid-template-columns: 1fr; }
  dl.grille-identite { grid-template-columns: 1fr; }
  dl.fiche-detail > div { grid-template-columns: 1fr; }
  dl.fiche-detail dd.legende { grid-column: 1; }
  form.barre-filtres .a-droite { margin-left: 0; }
  form.barre-filtres select { min-width: 0; }
}
@media (max-width: 1199.98px) and (min-width: 900px) {
  .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899.98px) {
  .barre-mobile { background: linear-gradient(180deg, var(--aubergine) 0, var(--aubergine-2) 100%); }
  .menu .navigation-menu a.rubrique { color: var(--surface); }
  .menu .pied-colonne { border-top-color: rgba(255, 255, 255, 0.25); }
  .menu button.bouton-deconnexion { color: var(--surface); }
  .tete-page h1 { font-size: 32px; }
  .tuiles, .cartes-deux { grid-template-columns: 1fr; }
  .tuile .grand-chiffre { font-size: 34px; }
  .ligne-barre { grid-template-columns: minmax(90px, 1fr) minmax(0, 1.2fr) auto; }
  .ligne-barre .part-barre { display: none; }
  form.barre-haut select { max-width: 100%; }
  .ecran-simple { background: linear-gradient(180deg, var(--aubergine) 0, var(--aubergine-2) 120px, #b9a8d0 220px, #f4f2f6 300px); }
  .bandeau-marque { padding: 34px 16px 0; text-align: center; }
  .bandeau-marque .logo { margin: 0 auto; width: 190px; }
  main.connexion { margin: 34px 16px 32px; padding: 22px 18px; }
}
@media (max-width: 479.98px) {
  .tete-page h1 { font-size: 28px; }
  nav.onglets a { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ★★★ Lot BO-TABLEAU-DE-BORD-22 (2026-10-22) — la refonte du tableau de bord (proposition validée
   livrables/design/2026-10-22-proposition-tableau-de-bord.md et son prototype). Identité gardée :
   aubergine, lavande, fonds clairs, filets dorés (laiton) ; titres et ombres ALLÉGÉS ; le chiffre
   domine, l'unité reste discrète ; cartes à plat, une seule couche. Aucune règle n'est en ligne :
   la carte SVG ne porte que des attributs de présentation et ces classes. */
:root { --ombre: 0 1px 2px rgba(42, 28, 60, 0.04); --filet-carte: #ebe6dd; }
.tete-page h1 { font-weight: 400; font-size: 32px; letter-spacing: -0.3px; }
nav.onglets { margin: 4px 0 16px; }
nav.onglets a { font-size: 16px; }
.haut { min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
main { padding-top: 18px; }
.selection-active { margin: 2px 0 4px; font-size: 14px; color: var(--encre2); }
.selection-active strong { color: var(--encre); font-weight: 700; }

/* La barre de filtres unique : un formulaire, un « Appliquer », un « Réinitialiser » */
form.barre-unique { gap: 8px; flex: 1 1 560px; min-width: 0; }
.haut-territoire { flex: 1 1 auto; }
form.barre-unique select { max-width: 180px; }
main section.bloc-plat .tuile-chiffre { border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 4px 0; }
main section.bloc-plat .trois-chiffres { gap: 0 24px; }
form.barre-unique .filtre-periode { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
form.barre-unique .filtre-periode > .icone { color: var(--encre2); }
form.barre-unique button.primaire { min-height: 44px; }
a.bouton-clair { min-height: 44px; border-color: transparent; background: transparent; color: var(--aubergine); font-weight: 400; text-decoration: underline; }
a.bouton-clair:hover { background: var(--lavande-pale); }

/* Le chiffre domine, l'unité est discrète (fin du « 0 conversati / on ») */
.chiffre .mono, .chiffre-carte .mono { font-family: var(--titres); font-size: inherit; letter-spacing: 0; }
.chiffre .unite, .chiffre-carte .unite { display: block; margin-top: 2px; font-family: var(--ui); font-size: 13px; line-height: 1.4; letter-spacing: 0; color: var(--encre2); }
.chiffre { font-size: 36px; font-weight: 500; overflow-wrap: normal; word-break: normal; }
.chiffre .absent { font-family: var(--ui); font-size: 24px; color: var(--encre2); }
/* Bodoni Moda : un poids 500 garde lisibles les déliés des chiffres (le « 4 ») à cette taille. */
.nombre { font-weight: 500; }
main section.carte-chiffre h3 { font-family: var(--ui); font-weight: 400; font-size: 13px; color: var(--encre2); margin: 0 0 4px; }

/* Les quatre chiffres de l'accueil */
.quatre-chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 12px; }
.quatre-chiffres[data-nombre="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quatre-chiffres[data-nombre="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quatre-chiffres[data-nombre="1"] { grid-template-columns: minmax(0, 1fr); }
main section.tuile-chiffre { margin: 0; padding: 14px 18px; min-width: 0; border: 1px solid var(--filet-carte); border-radius: 14px; background: var(--carte); box-shadow: var(--ombre); }
.tuile-titre { display: flex; align-items: center; gap: 6px; }
.tuile-titre h2, main section.tuile-chiffre h2 { font-family: var(--ui); font-weight: 400; font-size: 13px; line-height: 1.4; color: var(--encre2); margin: 0; }
.nombre { font-family: var(--titres); font-weight: 400; font-size: 34px; line-height: 1.1; margin: 4px 0 2px; font-variant-numeric: lining-nums; color: var(--encre); }
.nombre.nombre-absent { font-family: var(--ui); font-size: 24px; color: var(--encre2); }
.sous { margin: 0; font-size: 13px; color: var(--encre2); max-width: none; }
.vers { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--aubergine-2); }
.partiel { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #f3e7cf; color: #5c4316; font-size: 12px; }
.squelette { display: grid; gap: 8px; margin: 8px 0; }
.squelette i { display: block; height: 12px; border-radius: 6px; background: #ece7f3; }
.squelette i:first-child { height: 30px; width: 40%; }
main section.tuile-erreur { background: var(--rose-pale); border-color: #f0cdd0; }
.rond-etat-petit { display: inline-flex; color: var(--rouge-alerte); vertical-align: -3px; }
details.definition { position: relative; display: inline-block; margin: 0; padding: 0; border: 0; background: none; max-width: none; }
details.definition > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; min-height: 0; padding: 0; border-radius: 999px; border: 1px solid var(--filet-carte); font-size: 12px; font-weight: 400; color: var(--encre2); }
details.definition > summary::-webkit-details-marker { display: none; }
details.definition[open] { border: 0; padding: 0; background: none; }
details.definition > p { position: absolute; z-index: 3; left: 0; top: 28px; width: 260px; margin: 0; padding: 10px 12px; background: var(--carte); border: 1px solid var(--filet-carte); border-radius: 10px; box-shadow: 0 4px 14px rgba(42, 28, 60, 0.10); font-size: 13px; color: var(--encre); }

/* La carte et sa liste : UNE carte */
main section.carte-et-liste { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 0 22px; margin: 0 0 12px; padding: 14px 18px; border: 1px solid var(--filet-carte); border-radius: 14px; background: var(--carte); box-shadow: var(--ombre); }
.entete-carte { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 10px; }
.entete-carte h2 { font-family: var(--ui); font-weight: 700; font-size: 15px; margin: 0; }
nav.selecteur-mesure { display: inline-flex; padding: 3px; border: 1px solid var(--filet-carte); border-radius: 12px; background: var(--carte); }
nav.selecteur-mesure a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border-radius: 9px; color: var(--encre2); text-decoration: none; font-size: 14px; }
nav.selecteur-mesure a[aria-current="true"] { background: var(--aubergine); color: var(--surface); }
.zone-carte { min-width: 0; }
.carte-cadre { position: relative; border: 1px solid var(--filet-carte); border-radius: 12px; overflow: hidden; background: #f3f0f8; }
svg.carte-svg { display: block; width: 100%; height: auto; max-height: 420px; }
.carte-mer { fill: #f3f0f8; }
.carte-terre { fill: #e7e0ef; stroke: #cfc5df; stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.carte-disque { fill: #5b3f86; fill-opacity: 0.55; stroke: var(--aubergine); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.carte-disque-choisi { fill: var(--doree); fill-opacity: 0.85; stroke-width: 2.5; }
a:hover .carte-disque, a:focus-visible .carte-disque { fill-opacity: 0.85; stroke-width: 3; }
.carte-etiquette { font-family: var(--ui); font-weight: 700; fill: var(--encre); paint-order: stroke; stroke: #f3f0f8; stroke-width: 3px; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.carte-message { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 16px; }
.carte-message p { margin: 0; padding: 10px 16px; background: var(--carte); border: 1px solid var(--filet-carte); border-radius: 10px; color: var(--encre); max-width: none; }
.carte-message p:has(a) { padding: 0; border: 0; background: none; }
.carte-message-erreur > p:first-child { background: var(--rose-pale); border-color: #f0cdd0; }
.carte-zoom { position: absolute; right: 10px; top: 10px; display: grid; gap: 6px; }
.carte-zoom a, .carte-zoom span { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--carte); border: 1px solid var(--filet-carte); color: var(--encre); text-decoration: none; font-size: 20px; }
.carte-zoom .carte-zoom-bout { color: #b9b4be; }
.carte-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 8px 0 0; font-size: 13px; color: var(--encre2); }
svg.carte-legende { height: 46px; width: auto; }
.carte-repere { font-family: var(--ui); font-size: 10px; fill: var(--encre2); }
.carte-quand { margin: 4px 0 0; font-size: 13px; }
/* ★ Lot BO-CARTE-DEUX-SOURCES (planche validée le 2026-11-09) : « Source du lieu », la ligne sous la carte, la note
   de la vue « numéro », « Recentrer ». */
.source-du-lieu { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 4px; }
.libelle-source { font-size: 13px; color: var(--encre2); }
.aide-source { margin: 0 0 8px; font-size: 13px; color: var(--encre2); }
.carte-compte { margin: 8px 0 0; font-size: 14px; color: var(--encre); }
.carte-note { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--filet-carte); background: rgba(127, 110, 160, 0.18); font-size: 14px; }
.carte-zoom svg.icone { width: 20px; height: 20px; }
.liste-carte { min-width: 0; }
.liste-carte h3 { font-family: var(--ui); font-size: 14px; font-weight: 700; margin: 0 0 6px; }
ul.liste-territoires { list-style: none; margin: 0; padding: 0; max-height: 400px; overflow-y: auto; }
.ligne-liste, li.ligne-fixe { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(40px, 1fr) auto; align-items: center; gap: 10px; min-height: 36px; padding: 2px 8px; border-radius: 8px; color: var(--encre); text-decoration: none; }
a.ligne-liste:hover, a.ligne-liste:focus-visible { background: var(--lavande-pale); }
.ligne-choisie { background: var(--lavande-pale); border-left: 3px solid var(--filet-laiton); font-weight: 700; }
.liste-territoires .nb { font-variant-numeric: tabular-nums; text-align: right; }
.liste-territoires svg.jauge { height: 8px; }
li.ligne-fixe { color: var(--encre2); font-size: 14px; }
li.ligne-total { border-top: 1px solid var(--filet-carte); margin-top: 4px; padding-top: 4px; font-weight: 700; color: var(--encre); }

/* Le bloc « À traiter » */
main section.bloc-a-traiter { padding: 14px 18px; margin: 0 0 12px; border: 1px solid var(--filet-carte); border-radius: 14px; background: var(--carte); box-shadow: var(--ombre); }
main section.bloc-a-traiter h2 { font-family: var(--ui); font-weight: 700; font-size: 15px; margin: 0; }
ul.liste-attente { list-style: none; margin: 8px 0 0; padding: 0; }
ul.liste-attente li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; border-top: 1px solid #efeae2; }
ul.liste-attente li:first-child { border-top: 0; }
ul.liste-attente .nb { font-family: var(--titres); font-size: 20px; }
p.rien { display: flex; align-items: center; gap: 12px; margin: 8px 0 0; color: var(--encre2); }
p.rien .rond-icone { width: 36px; height: 36px; }
.bloc-erreur { margin: 8px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--rose-pale); }
.bloc-erreur p { margin: 0 0 6px; }
.pied-de-page { margin: 12px 2px 0; font-size: 13px; color: var(--encre2); max-width: none; }

/* « Actifs » et « Définitions et méthode » */
.filtres-secondaires { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; font-size: 13px; color: var(--encre2); max-width: none; }
.filtres-secondaires select { width: auto; min-height: 40px; }
main section.bloc-plat { padding: 14px 18px; margin: 0 0 12px; border: 1px solid var(--filet-carte); border-radius: 14px; background: var(--carte); box-shadow: var(--ombre); }
main section.bloc-plat > h2 { font-family: var(--ui); font-weight: 700; font-size: 15px; margin: 0 0 8px; }
main section.bloc-plat table { box-shadow: none; border-radius: 0; }
.trois-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 12px; }
dl.index-definitions { margin: 0; display: grid; gap: 0; }
dl.index-definitions > div { display: grid; grid-template-columns: minmax(160px, 0.9fr) minmax(0, 2fr) minmax(120px, 0.8fr); gap: 4px 16px; padding: 10px 0; border-top: 1px solid #efeae2; }
dl.index-definitions dt { font-weight: 700; margin: 0; }
dl.index-definitions dd { margin: 0; }
dl.index-definitions .ou { color: var(--encre2); font-size: 13px; }
.etat-mesure { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--lavande-pale); color: var(--aubergine); font-size: 12px; }
.etat-mesure.etat-non { background: #f0eef2; color: var(--encre2); }

/* Répartitions en barres, évolutions en courbe, détails à la demande */
td.cellule-jauge { width: 40%; min-width: 80px; }
svg.barre-empilee { width: 100%; height: 14px; display: block; margin: 4px 0 6px; border-radius: 4px; }
.empile-1 { fill: var(--aubergine-2); background: var(--aubergine-2); }
.empile-2 { fill: #9a82c0; background: #9a82c0; }
.empile-3 { fill: var(--doree); background: var(--doree); }
.empile-4 { fill: #cfc5df; background: #cfc5df; }
ul.legende-empilee { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0 0 10px; padding: 0; list-style: none; font-size: 13px; color: var(--encre2); }
i.pastille-empile { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
svg.courbe { width: 100%; height: auto; max-height: 220px; display: block; }
.courbe-ligne { fill: none; stroke: var(--aubergine-2); stroke-width: 2; vector-effect: non-scaling-stroke; }
.courbe-point { fill: var(--carte); stroke: var(--aubergine-2); stroke-width: 1.5; }
.courbe-point-courant { fill: var(--doree); }
.courbe-base { stroke: #d9d2c6; stroke-width: 1; }
details.a-la-demande { margin: 8px 0 0; padding: 0; border: 0; background: none; max-width: none; }
details.a-la-demande > summary { cursor: pointer; font-size: 13px; color: var(--aubergine-2); min-height: 32px; font-weight: 400; }
details.a-la-demande[open] { border: 0; padding: 0; background: none; }
.note-depuis { margin: 0 0 10px; }
tr.ligne-sans > th, tr.ligne-sans > td { color: var(--encre2); }
tr.ligne-total > th, tr.ligne-total > td { font-weight: 700; border-top: 1px solid var(--filet-carte); }
.nombre-absent { color: var(--encre2); }
/* « Non mesuré » ne s'écrit plus en grand corps : un indisponible reste petit (proposition § 1). */
.tuile .non-mesure, .mot-non-mesure { font-family: var(--ui); font-size: 14px; line-height: 1.4; color: var(--encre2); margin: 6px 0; }
svg.courbe .histo-axe { font-size: 10px; }

@media (max-width: 1199.98px) {
  .quatre-chiffres, .quatre-chiffres[data-nombre="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899.98px) {
  main section.carte-et-liste { grid-template-columns: 1fr; }
  .liste-carte { margin-top: 14px; }
  .trois-chiffres { grid-template-columns: 1fr; }
  dl.index-definitions > div { grid-template-columns: 1fr; }
  .tete-page h1 { font-size: 26px; }
}
@media (max-width: 519.98px) {
  .quatre-chiffres, .quatre-chiffres[data-nombre="3"], .quatre-chiffres[data-nombre="2"] { grid-template-columns: 1fr; }
}

/* ★★★ LOT FOND-PREMIUM-24 (2026-10-24) — LE FOND DU PREMIUM SUR TOUTES LES PAGES.
   Journal des arbitrages, entrée « Le fond du Premium partout, à la place du fondu — app et
   back-office » (DEMANDE FONDATEUR, 2026-10-24 ; verbatim : « applique le fond du premium sur tous nos
   ecrans à la place du fondu idem BO »). ~~Fond crème ('--creme') du lot BO-REFONTE-19~~ → le fond
   violet profond des maquettes Premium : dégradé vertical + ellipses de lumière, UNE définition
   ('fond-premium.ts', la chaîne produite par l'app), posé sur 'html' et fixe comme l'écran du
   téléphone. Les cartes, les tableaux et les formulaires gardent leur surface claire (lisibles, déjà
   éprouvés) : ils se détachent du fond sombre.
   ★ LA MÉCANIQUE : les jetons d'encre ('--encre', '--encre2', '--laiton', '--appoint', '--filet')
   deviennent CLAIRS à la racine — le texte posé directement sur le fond (titre de page, fil d'Ariane,
   légendes, liens) se lit en clair — et les surfaces claires (liste ci-dessous) REDONNENT les valeurs
   sombres d'avant à tout ce qu'elles contiennent. Aucune règle d'avant n'est réécrite : elles lisent les
   mêmes jetons, qui changent de valeur selon qu'on est sur le fond ou sur une surface.
   ★ Le menu latéral (fondu aubergine → lavande) et les barres violettes gardent leur dessin : ce sont
   des surfaces à elles. */
:root {
  --encre: #FFFAFC; --encre2: #D9CFE5; --appoint: #C9BCDD; --laiton: #E6C98F; --filet: rgba(255, 250, 252, 0.28);
  --filet-carte: rgba(255, 250, 252, 0.28);
}
html { background-color: #4F3098; background-image: radial-gradient(ellipse 23.2% 92.2% at 96% 97.8%, rgba(146, 76, 255, 0.384) 0%, rgba(146, 76, 255, 0.384) 29.2%, rgba(146, 76, 255, 0) 100%), radial-gradient(ellipse 27.9% 13.5% at 86.9% 16.9%, rgba(85, 36, 208, 0.389) 0%, rgba(85, 36, 208, 0.389) 24.9%, rgba(85, 36, 208, 0) 100%), radial-gradient(ellipse 50.4% 71.6% at 51.8% 54%, rgba(43, 33, 73, 0.958) 0%, rgba(43, 33, 73, 0.958) 78.3%, rgba(43, 33, 73, 0) 100%), linear-gradient(180deg, #261C40 0%, #272133 6%, #291E3F 13%, #2A2044 19%, #2E1F58 26%, #372466 32%, #3F2582 39%, #492D92 45%, #5630A7 52%, #5B37AA 65%, #5A36AA 70%, #7044C4 78%, #8454D8 84%, #9460E9 91%, #A671F7 97%, #AA75FB 100%); background-attachment: fixed; background-repeat: no-repeat; background-size: 100% 100%; min-height: 100%; }
body { background: transparent; }
.haut { background: transparent; }
/* Les surfaces claires : elles redonnent les encres sombres à leur contenu. ':where' garde une
   spécificité nulle : aucune règle d'avant n'est écrasée, seul l'héritage de la couleur change. */
:where(main section, table, .annonce, .annonce-succes, .bandeau, .bandeau-info, .etat-vide, .etat-page, .citation, .filtres, .a-traiter,
fieldset.categorie-panneau, main details[open], .connexion, .tuile, .cadre, .carte-cadre, .carte-message p, .limite,
button, .bouton, a.bouton-monde, a.bouton-haut, input, select, textarea, kbd, .badge, .pastille-territoire, .etiquette,
.etat-mesure, .bascule-mode, nav.selecteur-mesure, nav.pilules a, .evitement, details.definition > p, details.plage > .dates,
main section.carte-et-liste, .carte-zoom a, .carte-zoom span, .tuile-erreur, .bloc-erreur, .rond-icone) {
  --encre: #251d32; --encre2: #4A4750; --appoint: #706976; --laiton: #80602a; --filet: #e3dfd8; --filet-carte: #ebe6dd;
  color: var(--encre);
}
/* Le repère de focus : double anneau (clair puis sombre), visible sur le fond comme sur une surface. */
:focus-visible { outline: 2px solid #FFFAFC; outline-offset: 2px; box-shadow: 0 0 0 5px #241a33; }
.colonne :focus-visible, .barre-mobile :focus-visible, .barre-marque :focus-visible { outline-color: var(--dore); }
/* Le menu latéral, la barre du téléphone et la page de connexion avaient chacun leur fondu aubergine →
   lavande : ils laissent voir le fond du Premium, séparés du contenu par un filet clair. */
.colonne { background: transparent; border-right: 1px solid rgba(255, 250, 252, 0.18); }
.barre-mobile { background: transparent; border-bottom: 1px solid rgba(255, 250, 252, 0.18); }
body.simple { background: transparent; }
.ecran-simple { background: none; }
/* « Déconnexion » est tout en bas du menu, sur le lilas du bas du fond : l'aubergine la plus sombre y tient 5:1. */
button.bouton-deconnexion { color: #1d1226; }
/* Les repères actifs (pilule, bascule) sont aubergine : sur le fond sombre, un filet clair les cerne. */
nav.pilules a[aria-current="page"], .bascule-mode .mode-actif { box-shadow: 0 0 0 1.5px rgba(255, 250, 252, 0.7); }

/* ★★★ LOT BO-STYLE-IOS-26 (2026-10-25) — voir l'en-tête de pages/style-ios.ts. */
:root {
  --encre: #251d32; --encre2: #4A4750; --appoint: #706976; --laiton: #80602a; --filet: #e3dfd8; --filet-carte: #ebe6dd;
  --verre-haut: #4a3e7c; --verre-bas: #33295a; --verre-filet: rgba(255, 255, 255, 0.30); --verre-texte: #f6f2fb;
  --bleu-ios: #0a6fe0; --alerte-verre: #ffb4ab; --laiton-verre: #f1d79a;
}

/* Le fond blanc du contenu ; le dégradé du Premium reste sur le menu de gauche (et la barre du téléphone) seulement. */
html { background: #ffffff; min-height: 100%; }
body, body.simple { background: #ffffff; }
.haut { background: #ffffff; }
/* ★ Le menu de gauche est COLLANT : la colonne garde la hauteur de la page (sans fond), son contenu reste en haut de l'écran sur
   toute la hauteur de la fenêtre et porte le dégradé d'un bout à l'autre (jamais d'aplat uni sous un dégradé coupé, quelle que
   soit la longueur de la page). La barre du téléphone porte le même fond. */
.colonne { background: transparent; }
.colonne-fixe, .barre-mobile { background-color: #4F3098; background-image: radial-gradient(ellipse 23.2% 92.2% at 96% 97.8%, rgba(146, 76, 255, 0.384) 0%, rgba(146, 76, 255, 0.384) 29.2%, rgba(146, 76, 255, 0) 100%), radial-gradient(ellipse 27.9% 13.5% at 86.9% 16.9%, rgba(85, 36, 208, 0.389) 0%, rgba(85, 36, 208, 0.389) 24.9%, rgba(85, 36, 208, 0) 100%), radial-gradient(ellipse 50.4% 71.6% at 51.8% 54%, rgba(43, 33, 73, 0.958) 0%, rgba(43, 33, 73, 0.958) 78.3%, rgba(43, 33, 73, 0) 100%), linear-gradient(180deg, #261C40 0%, #272133 6%, #291E3F 13%, #2A2044 19%, #2E1F58 26%, #372466 32%, #3F2582 39%, #492D92 45%, #5630A7 52%, #5B37AA 65%, #5A36AA 70%, #7044C4 78%, #8454D8 84%, #9460E9 91%, #A671F7 97%, #AA75FB 100%); background-repeat: no-repeat; background-size: 100% 100%; }
/* « Déconnexion » est en bas de la fenêtre, sur la zone sombre du dégradé (pixels relevés : #2f2450 à #4d3281) : texte blanc, 10:1 au pire des deux points mesurés. */
.colonne button.bouton-deconnexion:not(#_) { color: #ffffff; }
.colonne-fixe { position: sticky; top: 0; height: 100vh; min-height: 0; max-height: 100vh; overflow-y: auto; }
/* La page de connexion n'a pas de menu : son bandeau garde le fondu aubergine d'avant le fond du Premium, jusqu'au blanc. */
.ecran-simple { background: linear-gradient(180deg, var(--aubergine) 0, var(--aubergine-2) 110px, #b9a8d0 210px, #ffffff 320px); }
@media (max-width: 899.98px) {
  .ecran-simple { background: linear-gradient(180deg, var(--aubergine) 0, var(--aubergine-2) 120px, #b9a8d0 220px, #ffffff 300px); }
}
/* Le repère de focus, visible sur le blanc comme sur une carte violette (anneau bleu iOS, liseré blanc). */
:focus-visible { outline: 2px solid var(--bleu-ios); outline-offset: 2px; box-shadow: 0 0 0 4px #ffffff; }
.colonne :focus-visible, .barre-mobile :focus-visible, .barre-marque :focus-visible { outline-color: var(--dore); box-shadow: none; }
nav.pilules a[aria-current="page"], .bascule-mode .mode-actif { box-shadow: none; }

/* ── Les cartes violettes (style des panneaux du simulateur : classe .panel de la source du 2026-10-24) ── */
:where(main section:not(.confirmation),
table,
.filtres,
.etat-vide,
.etat-page,
.tuile,
.carte,
fieldset.categorie-panneau,
main details[open],
main.connexion,
main section.carte-et-liste,
section.confirmation) {
  --encre: #FFFAFC; --encre2: #D9CFE5; --appoint: #C9BCDD; --laiton: #E6C98F; --filet: rgba(255, 250, 252, 0.28); --filet-carte: rgba(255, 250, 252, 0.28);
  color: var(--encre);
}
main section:not(.confirmation):not(#_):not(.vvp *),
table:not(#_):not(.vvp *),
.filtres:not(#_):not(.vvp *),
.etat-vide:not(#_):not(.vvp *),
.etat-page:not(#_):not(.vvp *),
.tuile:not(#_):not(.vvp *),
.carte:not(#_):not(.vvp *),
fieldset.categorie-panneau:not(#_):not(.vvp *),
main details[open]:not(#_):not(.vvp *),
main.connexion:not(#_):not(.vvp *),
main section.carte-et-liste:not(#_):not(.vvp *) {
  background: linear-gradient(135deg, #3e3258ee, #2b2342ee); border: 1px solid #9c7fc277; border-radius: 18px; box-shadow: 0 12px 30px #160c2925;
}
main section table:not(#_), .carte table:not(#_), .tuile table:not(#_), .etat-page table:not(#_), .filtres table:not(#_) { background: transparent; box-shadow: none; border-color: var(--filet); border-radius: 12px; }
main section .tuile:not(#_), main section.tuile-chiffre:not(#_), main section section:not(#_) { border-radius: 14px; box-shadow: none; }
main section.bloc-plat .tuile-chiffre:not(#_) { background: transparent; border: 0; border-radius: 0; }
/* Les îlots clairs reprennent les encres sombres (écrits après les cartes : à spécificité égale, le dernier gagne). */
:where(input,
textarea,
kbd,
.annonce,
.annonce-succes,
.bandeau,
.bandeau-info,
.a-traiter,
.bandeau-gris,
.citation,
.limite,
.bloc-erreur,
main section.tuile-erreur,
.badge.exception,
.etat-reglage,
.etat-mesure,
.etiquette,
.etiquette-laiton,
.partiel,
.pastille-territoire,
dl.grille-identite,
.carte-cadre,
.carte-message p,
details.definition > p,
.evitement,
.rond-icone) {
  --encre: #251d32; --encre2: #4A4750; --appoint: #706976; --laiton: #80602a; --filet: #e3dfd8; --filet-carte: #ebe6dd;
  color: var(--encre);
}
/* Une pastille sans fond propre lit les encres de ce qui la porte (blanc : sombres ; carte violette : claires). */
.badge:not(.exception) { --encre: inherit; --encre2: inherit; color: inherit; }
/* Ce que les cartes violettes lisaient en sombre : surbrillances, graphiques, indicateurs, interrupteurs. */
ul.liste-emplacements a:hover:not(#_), ul.liste-emplacements a[aria-current="true"]:not(#_), a.ligne-liste:hover:not(#_), a.ligne-liste:focus-visible:not(#_),
.ligne-choisie:not(#_), table tr.choisie > th:not(#_), table tr.choisie > td:not(#_) { background: rgba(255, 255, 255, 0.12); }
.tuile .grand-chiffre.chaud { color: #f1d79a; }
.vers, main section details.a-la-demande > summary { color: #e6dcf5; }
.point-etat.point-actif { background: #7fd49a; }
.point-etat.point-attente { background: #e0a24a; }
.rond-etat-petit { color: var(--alerte-verre); }
.jauge-fond { fill: rgba(255, 255, 255, 0.18); }
.jauge-plein { fill: #d9c9ff; }
.jauge-plein.n2 { fill: #b9a0f0; } .jauge-plein.n3 { fill: #9a82d8; } .jauge-plein.n4 { fill: #8f78cc; }
.histo-barre { fill: #b9a0f0; }
.histo-barre.fort { fill: #e6d8ff; }
.histo-base, .courbe-base { stroke: rgba(255, 255, 255, 0.3); }
.barre { fill: #9a82c0; }
.barre-courante { fill: #e6d8ff; }
.anneau-fond { stroke: rgba(255, 255, 255, 0.18); }
.anneau-part { stroke: #d9c9ff; }
.courbe-ligne { stroke: #d9c9ff; }
.courbe-point { fill: #2b2342; stroke: #d9c9ff; }
.empile-1 { fill: #d9c9ff; background: #d9c9ff; } .empile-2 { fill: #b9a0f0; background: #b9a0f0; } .empile-4 { fill: #8f78cc; background: #8f78cc; }
.interrupteur-piste { background: #5a4f78; border-color: #cfc5e0; }
.interrupteur-curseur { border-color: #6b6478; }
button.interrupteur[aria-checked="true"] .interrupteur-piste { background: var(--bleu-ios); border-color: #7fb3ff; }
button.interrupteur:focus-visible { box-shadow: none; }
.tete-page h1, .titre-et-etiquette h1 { color: var(--encre); }
a.bouton-monde .icone-petite:not(#_) { color: #d9cfe5; }

/* L'outil « Pilotage · prévisionnel » garde son style sombre (sa feuille n'est pas touchée) : il est posé sur un îlot violet. */
.vvp { background: #28203e; color: #fbf7ff; border-radius: 18px; padding: 18px 24px 8px; }

/* ── Boutons et sélecteurs : le menu déroulant iOS de la capture ──
   Fond sombre translucide, coins 12 px, filet clair fin, texte clair ; l'élément choisi est surligné en BLEU iOS avec coche. */
button:not(.interrupteur):not(.bouton-deconnexion):not(.lien-bouton):not(.calendrier-jour):not(#_):not(.vvp *),
.bouton:not(#_):not(.vvp *),
a.bouton-monde:not(#_):not(.vvp *),
a.bouton-haut:not(#_):not(.vvp *),
select:not(#_):not(.vvp *),
input[type="date"]:not(#_):not(.vvp *),
.menu > summary:not(#_):not(.vvp *),
.carte-zoom a:not(#_):not(.vvp *),
.carte-zoom span:not(#_):not(.vvp *),
nav.pilules a:not(#_):not(.vvp *) {
  background: linear-gradient(180deg, var(--verre-haut) 0%, var(--verre-bas) 100%); color: var(--verre-texte); border: 1px solid var(--verre-filet); border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 3px rgba(30, 20, 50, 0.30), 0 6px 16px rgba(30, 20, 50, 0.12);
  color-scheme: dark; text-decoration: none; text-shadow: none;
}
select:not(#_):not(.vvp *), input[type="date"]:not(#_):not(.vvp *) { font-weight: 400; }
select option { background: #2d2550; color: var(--verre-texte); }
button:not(.interrupteur):not(.bouton-deconnexion):not(.lien-bouton):not(.calendrier-jour):hover:not(:disabled):not(#_):not(.vvp *),
.bouton:hover:not(:disabled):not(#_):not(.vvp *),
a.bouton-monde:hover:not(:disabled):not(#_):not(.vvp *),
a.bouton-haut:hover:not(:disabled):not(#_):not(.vvp *),
select:hover:not(:disabled):not(#_):not(.vvp *),
input[type="date"]:hover:not(:disabled):not(#_):not(.vvp *),
.menu > summary:hover:not(:disabled):not(#_):not(.vvp *),
.carte-zoom a:hover:not(:disabled):not(#_):not(.vvp *),
.carte-zoom span:hover:not(:disabled):not(#_):not(.vvp *),
nav.pilules a:hover:not(:disabled):not(#_):not(.vvp *) { background: linear-gradient(180deg, #57498f 0%, #3b3068 100%); }
.carte-zoom span:not(#_) { color: #b8b0cb; }
/* ★ Lot BO-CARTE-DEUX-SOURCES (planche validée le 2026-11-09) : un bouton de cadrage à sa borne reste à sa place, GRISÉ
   (son état est aussi dit au lecteur d'écran par aria-disabled). */
.carte-zoom span.carte-zoom-bout:not(#_) { opacity: 0.45; box-shadow: none; }
button:not(.interrupteur):not(.bouton-deconnexion):not(.lien-bouton):not(.calendrier-jour).primaire:not(#_):not(.vvp *),
.bouton.primaire:not(#_):not(.vvp *),
nav.pilules a[aria-current="page"]:not(#_):not(.vvp *) { background: var(--bleu-ios); border-color: rgba(255, 255, 255, 0.40); color: #ffffff; font-weight: 700; }
button:not(.interrupteur):not(.bouton-deconnexion):not(.lien-bouton):not(.calendrier-jour).primaire:hover:not(:disabled):not(#_):not(.vvp *),
.bouton.primaire:hover:not(:disabled):not(#_):not(.vvp *) { background: #0a66d6; }
nav.pilules a[aria-current="page"]::before { content: "✓"; margin-right: 6px; }
button:not(.interrupteur):not(.bouton-deconnexion):not(.lien-bouton):not(.calendrier-jour).destructif:not(#_):not(.vvp *) { color: var(--alerte-verre); border-color: rgba(255, 138, 128, 0.55); background: linear-gradient(180deg, #55304f 0%, #3a2140 100%); }
button:not(.interrupteur):not(.bouton-deconnexion):not(.lien-bouton):not(.calendrier-jour).laiton:not(#_):not(.vvp *),
.bouton.laiton:not(#_):not(.vvp *) { color: var(--laiton-verre); border-color: rgba(217, 180, 106, 0.60); }
button:not(.interrupteur):not(.bouton-deconnexion):not(.lien-bouton):not(.calendrier-jour):disabled:not(#_):not(.vvp *),
select:disabled:not(#_):not(.vvp *) { color: #b8b0cb; border-color: rgba(255, 255, 255, 0.18); background: #2f2850; box-shadow: none; cursor: not-allowed; }
.zone select.choisie:not(#_):not(.vvp *),
form.barre-haut select.choisie:not(#_):not(.vvp *) { border: 2px solid #7fb3ff; }
/* Les boutons en lien (« Réinitialiser ») ne soulignent plus : ce sont des boutons. */
a.bouton-clair:not(#_) { text-decoration: none; }
/* Les groupes de choix (Valeurs / %, sélecteur de mesure) : un petit menu sombre, la ligne choisie en bleu avec sa coche. */
.bascule-mode:not(#_):not(.vvp *),
nav.selecteur-mesure:not(#_):not(.vvp *) { background: linear-gradient(180deg, var(--verre-haut) 0%, var(--verre-bas) 100%); border: 1px solid var(--verre-filet); border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 3px rgba(30, 20, 50, 0.30); }
.bascule-mode .mode:not(#_):not(.vvp *),
nav.selecteur-mesure a:not(#_):not(.vvp *) { color: var(--verre-texte); background: transparent; border-radius: 9px; }
.bascule-mode .mode-actif:not(#_):not(.vvp *),
nav.selecteur-mesure a[aria-current="true"]:not(#_):not(.vvp *) { background: var(--bleu-ios); color: #ffffff; font-weight: 700; }
.bascule-mode .mode-actif::before, nav.selecteur-mesure a[aria-current="true"]::before { content: "✓"; margin-right: 6px; }

/* ★★★ LOT BO-SIMPLIFIER-26 (2026-10-25) — passe de simplification de l'atelier (journal des arbitrages, entrée
   « Back-office : passe de simplification de l'atelier »). */
/* Les cartes de chiffres sur UNE ligne (« Conversations », « Voulez-vous ? », « Tête-à-tête ») ; l'explication est dans la
   bulle du « ? ». Sous 1200 px, deux par ligne : une page étroite ne rétrécit pas les chiffres. */
.cartes-chiffres.sur-une-ligne:not(#_) { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.sur-une-ligne .chiffre { font-size: 30px; }
.sur-une-ligne main section.carte-chiffre, main .sur-une-ligne section.carte-chiffre { padding: 14px 14px 12px; }
.sur-une-ligne > section:nth-last-child(-n + 2) details.definition > p { left: auto; right: 0; }
.tuiles.tuiles-cinq { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tuiles-cinq .tuile { flex-direction: column; gap: 8px; padding: 14px; }
.tuiles-cinq .tuile .grand-chiffre { font-size: 36px; white-space: nowrap; }
@media (max-width: 1199.98px) {
  .cartes-chiffres.sur-une-ligne:not(#_) { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tuiles.tuiles-cinq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Le nombre écrit dans la bulle de la carte (une bulle par ville ou par pays, jamais un point par personne). */
.carte-nombre { font-family: var(--ui); font-weight: 700; fill: #1b1426; pointer-events: none; }

/* Le calendrier de la période personnalisée : un petit menu sombre, comme les listes (la même matière que les boutons). */
.filtre-periode { position: relative; }
form.avec-calendrier details.plage > .dates { display: none; }
.calendrier {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; width: 308px; padding: 12px; box-sizing: border-box;
  background: linear-gradient(180deg, #43376f 0%, #2d2550 100%); color: var(--verre-texte); border: 1px solid var(--verre-filet); border-radius: 14px;
  box-shadow: 0 12px 30px rgba(22, 12, 41, 0.35); color-scheme: dark;
}
.calendrier-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 6px; }
.calendrier-mois { font-weight: 700; text-transform: capitalize; }
.calendrier-consigne { margin: 0 0 8px; font-size: 13px; color: #d9cfe5; max-width: none; }
.calendrier-jours { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.calendrier-semaine { text-align: center; font-size: 11px; color: #d9cfe5; padding: 4px 0; }
.calendrier button:not(#_) { min-height: 0; padding: 0; justify-content: center; font-size: 14px; font-weight: 400; box-shadow: none; }
.calendrier button.calendrier-jour:not(#_) { height: 36px; width: 100%; background: transparent; border-color: transparent; border-radius: 10px; color: var(--verre-texte); }
.calendrier button.calendrier-jour:hover:not(:disabled):not(#_) { background: rgba(255, 255, 255, 0.16); }
.calendrier button.calendrier-aujourdhui:not(#_) { border-color: rgba(255, 255, 255, 0.55); }
.calendrier button.calendrier-dans-la-plage:not(#_) { background: rgba(10, 111, 224, 0.35); }
.calendrier button.calendrier-choisi:not(#_) { background: var(--bleu-ios); border-color: rgba(255, 255, 255, 0.40); color: #ffffff; font-weight: 700; }
.calendrier button.calendrier-jour:disabled:not(#_) { color: #b8b0cb; opacity: 0.55; background: transparent; border-color: transparent; cursor: not-allowed; }
.calendrier button.calendrier-nav:not(#_) { width: 36px; height: 36px; font-size: 20px; }
.calendrier button.calendrier-fermer:not(#_) { margin-top: 8px; width: 100%; min-height: 36px; }

/* ★★★ LOT BO-PREVISIONNEL-REEL-26 (2026-10-25) — le Prévisionnel part de nos chiffres : l'étiquette « réel » ou « hypothèse »
   de chaque réglage et le panneau « Nos chiffres réels » (la feuille du simulateur lui-même n'est pas touchée). Aucun
   style en ligne. */
.vvp .origine { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.2px; }
.vvp .origine-reel { background: #99dbbc; color: #10261b; }
.vvp .origine-hypothese { background: #e7c979; color: #2b2108; }
.vvp .reel-liste { margin: 8px 0 0; display: grid; gap: 0; }
.vvp .reel-liste dt { margin: 10px 0 0; font-size: 12px; color: #c7b9dd; }
.vvp .reel-liste dd { margin: 2px 0 0; font-size: 13.5px; color: #fbf7ff; }

/* ★★★ LOT BO-TARIFS-26 (2026-10-25) — « Tarifs » en une carte : le rappel de la zone du haut, puis UNE carte violette
   « Offre / Prix » ; un champ de prix par ligne (focus doré) ; « Annuler » et « Enregistrer pour [pays] » en bas à droite. */
.rappel-zone { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 14px; font-size: 15px; max-width: none; }
.rappel-zone strong { font-family: var(--titres); font-weight: 500; font-size: 20px; }
.rappel-zone .separateur { color: var(--encre2); }
main section.carte-tarifs { max-width: 920px; padding: 18px 24px 16px; }
.tarifs-entete { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 12px; padding: 0 0 8px; border-bottom: 1px solid var(--filet); }
.tarifs-entete h2, main section.carte-tarifs > .tarifs-entete > h2:first-child { font-family: var(--ui); font-weight: 700; font-size: 15px; margin: 0; }
h3.tarif-famille { font-family: var(--titres); font-weight: 500; font-size: 20px; margin: 18px 0 4px; }
.tarif-ligne { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: center; gap: 8px 12px; padding: 12px 0; border-top: 1px solid var(--filet); }
h3.tarif-famille + .tarif-ligne { border-top: 0; }
.tarif-offre { display: grid; gap: 2px; min-width: 0; }
.tarif-offre .nom-offre { font-weight: 700; font-size: 16px; }
.tarif-offre .etiquette { justify-self: start; }
.tarif-prix { display: flex; align-items: center; gap: 10px; }
.tarif-prix input[type="text"] { width: 130px; min-height: 44px; text-align: right; font-size: 16px; }
.tarif-prix input[type="text"]:focus-visible:not(#_) { outline: 2px solid #d9b46a; outline-offset: 0; border-color: #d9b46a; box-shadow: 0 0 0 3px rgba(217, 180, 106, 0.40); }
.unite-prix { min-width: 64px; color: var(--encre2); }
.tarifs-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; max-width: 920px; margin: 16px 0 6px; }
@media (max-width: 599.98px) {
  .tarifs-entete { grid-template-columns: 1fr; }
  .tarif-ligne { grid-template-columns: 1fr; }
}

/* ★★★ LOT BO-EQUIPE-26 (2026-10-25) — voir l'en-tête de pages/style-equipe.ts. */
:root { --or-equipe: #e2b969; --or-equipe-fonce: #d3a650; --encre-sur-or: #2a1f3d; --violet-lien: #5b3f86; }

/* L'en-tête : « ‹ Équipe et accès » à gauche et « Connexion et sécurité » à droite, AU-DESSUS du titre (maquette). */
.tete-page:has(.retour-equipe) { flex-wrap: wrap; row-gap: 14px; }
.outils-titre:has(.retour-equipe) { display: contents; }
.tete-page:has(.retour-equipe) .retour-equipe { order: -2; flex: 1 1 auto; }
.tete-page:has(.retour-equipe) .lien-securite { order: -1; }
.tete-page:has(.retour-equipe) .titre-et-etiquette { order: 0; flex: 1 1 100%; }
.tete-page:has(.retour-equipe) h1 { font-size: 44px; line-height: 1.15; }
a.retour-equipe, a.lien-securite { color: var(--violet-lien); text-decoration: underline; text-underline-offset: 3px; font-size: 16px; display: inline-flex; align-items: center; gap: 6px; }
a.retour-equipe .icone { width: 18px; height: 18px; }
.outils-titre:has(.lien-securite):not(:has(.retour-equipe)) { display: flex; align-items: center; gap: 22px; }

/* Le bouton doré (« + Ajouter un membre », « Valider et inviter ») : fond or, encre aubergine, 12:1 mesuré. */
a.bouton-dore:not(#_):not(#_), button.bouton-dore:not(#_):not(#_) { background: var(--or-equipe); color: var(--encre-sur-or); border: 1px solid var(--or-equipe-fonce); border-radius: 10px; font-weight: 700; box-shadow: 0 1px 2px rgba(42, 31, 61, 0.18); text-decoration: none; }
a.bouton-dore:not(#_):not(#_):hover, button.bouton-dore:not(#_):not(#_):hover { background: #ebc678; }
a.bouton-dore .icone { width: 18px; height: 18px; }
button.bouton-dore:not(#_):not(#_) { min-height: 50px; padding: 12px 34px; font-size: 18px; }
a.lien-action.annuler-equipe, .gestes-bas a.lien-action { color: var(--violet-lien); font-weight: 700; font-size: 17px; text-decoration: none; }

/* La liste « Membres » et le panneau « Accès de … » côte à côte (empilés sur un écran étroit). */
.equipe-et-panneau.avec-panneau { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 20px; align-items: start; }
@media (max-width: 1099.98px) { .equipe-et-panneau.avec-panneau { grid-template-columns: minmax(0, 1fr); } }
.table-membres td.action-ligne { width: 44px; text-align: center; }
.table-membres .icone-ligne { display: inline-flex; color: var(--encre2); }
.table-membres a.icone-ligne:hover, .table-membres a.icone-ligne:focus-visible { color: var(--encre); }
.presence { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.point-presence { width: 10px; height: 10px; border-radius: 50%; flex: none; box-sizing: border-box; }
.presence-connecte .point-presence { background: #7fd49a; }
.presence-hors-ligne .point-presence { background: #a79fb6; }
.presence-attente .point-presence { background: transparent; border: 2px solid var(--or-equipe); }
.note-presence { margin-top: 12px; }
section.panneau-acces { padding: 22px 24px; position: sticky; top: 16px; }
.panneau-acces-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.panneau-acces-tete h2 { margin: 0 0 4px; }
a.croix { color: var(--encre); font-size: 28px; line-height: 1; text-decoration: none; padding: 0 4px; }
.champ-lecture { display: flex; flex-direction: column; gap: 4px; margin: 14px 0 6px; }
.libelle-champ { font-weight: 700; }
.valeur-champ { border: 1px solid var(--filet); border-radius: 10px; padding: 10px 14px; }
.autres-gestes { margin-top: 16px; }

/* Les autorisations : une ligne par droit, un filet entre deux ; l'interrupteur à droite avec « Oui » ou « Non ». */
.autorisations { display: flex; flex-direction: column; }
.autorisation { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--filet); }
.autorisation label { display: flex; flex-direction: column; gap: 3px; font-size: 17px; font-weight: 400; cursor: pointer; }
.autorisation-admin label strong { font-weight: 700; }
.autorisation .legende { font-size: 13px; }
.autorisation-admin { border-top: 1px solid rgba(255, 250, 252, 0.45); border-bottom: 0; margin-top: 0; padding-top: 12px; }
details.autres-autorisations:not(#_):not(#_) { background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: 0; margin: 0; }
details.autres-autorisations > summary { cursor: pointer; padding: 8px 0; color: var(--encre2); text-decoration: underline; text-underline-offset: 3px; }

.bascule { position: relative; display: inline-flex; align-items: center; gap: 12px; flex: none; }
.bascule input:not(#_):not(#_) { position: absolute; left: 0; top: 0; width: 64px; height: 34px; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.bascule-piste { position: relative; width: 64px; height: 34px; border-radius: 17px; background: rgba(255, 255, 255, 0.22); border: 1px solid rgba(255, 255, 255, 0.28); box-sizing: border-box; transition: background 0.15s; }
.bascule-piste::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px rgba(20, 10, 40, 0.35); transition: left 0.15s; }
.bascule input:checked + .bascule-piste { background: var(--or-equipe); border-color: var(--or-equipe-fonce); }
.bascule input:checked + .bascule-piste::after { left: 33px; }
.bascule input:focus-visible + .bascule-piste { outline: 2px solid var(--bleu-ios); outline-offset: 2px; box-shadow: 0 0 0 4px #ffffff; }
.bascule input:disabled + .bascule-piste { opacity: 0.5; }
.bascule input:disabled { cursor: not-allowed; }
.bascule-oui, .bascule-non { min-width: 32px; font-size: 17px; }
.bascule input:checked ~ .bascule-non, .bascule input:not(:checked) ~ .bascule-oui { display: none; }

/* « Ajouter un membre » : la carte violette à deux colonnes de la maquette. */
section.carte-membre:not(#_):not(#_) { padding: 26px 40px 20px; }
.deux-colonnes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.colonne-coordonnees { padding-right: 44px; border-right: 1px solid var(--filet); }
.colonne-autorisations { padding-left: 44px; }
@media (max-width: 899.98px) {
  .deux-colonnes { grid-template-columns: minmax(0, 1fr); }
  .colonne-coordonnees { padding-right: 0; border-right: 0; padding-bottom: 20px; }
  .colonne-autorisations { padding-left: 0; }
}
.carte-membre h2 { font-size: 32px; margin: 0 0 6px; }
.carte-membre .sous-titre-carte { color: var(--encre2); font-size: 17px; margin: 0 0 10px; }
.colonne-coordonnees label { display: block; font-weight: 700; font-size: 17px; margin: 16px 0 8px; }
.carte-membre input[type="text"]:not(#_):not(#_) { width: 100%; box-sizing: border-box; min-height: 50px; padding: 10px 18px; font-size: 18px; color: #fffafc; background: rgba(27, 18, 44, 0.35); border: 1.5px solid rgba(255, 250, 252, 0.85); border-radius: 8px; }
.carte-membre select:not(#_):not(#_) { width: 100%; min-height: 50px; padding: 10px 18px; font-size: 18px; border-radius: 8px; border: 1.5px solid rgba(255, 250, 252, 0.85); background: rgba(27, 18, 44, 0.35); box-shadow: none; }
.carte-membre .aide-champ { color: var(--encre2); font-size: 14px; margin: 8px 0 0; }
.carte-membre p, .panneau-acces p, .note-activation { max-width: none; }
.note-activation { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--filet); color: var(--encre2); font-size: 16px; }
.note-activation .icone { width: 28px; height: 28px; flex: none; }
.gestes.gestes-bas { justify-content: flex-end; align-items: center; gap: 44px; margin-top: 16px; }

/* La confirmation (« Confirmer le passage admin ? ») : une carte violette, Annuler / Confirmer. */
section.confirmation-acces { max-width: 640px; }
.note-confirmation { display: flex; align-items: center; gap: 10px; max-width: none; }
.note-confirmation .icone { flex: none; }
section.confirmation-acces .gestes { justify-content: flex-end; align-items: center; gap: 24px; }
section.confirmation-acces a.lien-action { color: var(--encre); font-weight: 700; }

.carte-couleurs .ligne-couleur { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.carte-couleurs .ligne-couleur .texte-reglage { flex: 1 1 260px; }
.champ-couleur { display: inline-flex; align-items: center; gap: 8px; }
.champ-couleur input[type="color"] { inline-size: 44px; block-size: 44px; padding: 2px; border-radius: 10px; cursor: pointer; }
.champ-couleur input[type="text"] { inline-size: 8.5em; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.apercu-et-contrastes { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 20px; align-items: start; margin-block: 12px; }
@media (max-width: 760px) { .apercu-et-contrastes { grid-template-columns: minmax(0, 1fr); } }
.apercu-couleurs { margin: 0; }
.apercu-fond-app { background: #4F3098; background: radial-gradient(ellipse 23.2% 92.2% at 96% 97.8%, rgba(146, 76, 255, 0.384) 0%, rgba(146, 76, 255, 0.384) 29.2%, rgba(146, 76, 255, 0) 100%), radial-gradient(ellipse 27.9% 13.5% at 86.9% 16.9%, rgba(85, 36, 208, 0.389) 0%, rgba(85, 36, 208, 0.389) 24.9%, rgba(85, 36, 208, 0) 100%), radial-gradient(ellipse 50.4% 71.6% at 51.8% 54%, rgba(43, 33, 73, 0.958) 0%, rgba(43, 33, 73, 0.958) 78.3%, rgba(43, 33, 73, 0) 100%), linear-gradient(180deg, #261C40 0%, #272133 6%, #291E3F 13%, #2A2044 19%, #2E1F58 26%, #372466 32%, #3F2582 39%, #492D92 45%, #5630A7 52%, #5B37AA 65%, #5A36AA 70%, #7044C4 78%, #8454D8 84%, #9460E9 91%, #A671F7 97%, #AA75FB 100%); border-radius: 14px; padding: 12px; }
.apercu-carte { display: block; inline-size: 100%; block-size: auto; max-inline-size: 380px; }
.apercu-titre { font-family: "Bodoni Moda", Georgia, serif; font-size: 23px; }
.apercu-texte { font-family: "Lato", system-ui, sans-serif; font-size: 15px; }
.contrastes h3 { margin-block-start: 0; }
.contrastes .contraste { margin-block: 6px; }
.contrastes .contraste-insuffisant .contraste-verdict { font-weight: 700; text-decoration: underline; }
.contrastes [hidden] { display: none; }

.revue-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 20px; align-items: start; max-width: 760px; }
@media (max-width: 760px) { .revue-duo { grid-template-columns: minmax(0, 1fr); } }
.revue-duo .cadre { max-width: none; }
.verdicts.verdicts-motif { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 0; max-width: none; }
.verdicts-motif form { display: grid; gap: 8px; margin: 0; }
.verdicts-motif button:not(#_) { width: 100%; min-height: 52px; font-size: 15px; justify-content: space-between; flex-direction: row; align-items: center; }
.verdicts-motif button small { display: inline; font-weight: 400; font-size: 12px; color: var(--encre2); }
.verdicts.verdicts-motif form[data-refus] button:disabled:not(#_):not(#_) { border-style: dashed; border-color: rgba(255, 255, 255, 0.45); }
.verdicts-motif button small:not(#_) { color: inherit; opacity: 0.8; }
.verdicts-motif .ou-refuser { display: flex; align-items: center; gap: 10px; margin: 2px 0 0; font-size: 13px; color: var(--encre2); }
.verdicts-motif .ou-refuser::before, .verdicts-motif .ou-refuser::after { content: ""; flex: 1 1 0; border-top: 1px solid var(--filet); }
.verdicts-motif label { font-weight: 700; }
.verdicts-motif select { min-height: 48px; }
.verdicts-motif .rappel { margin: 0; padding: 10px 12px; border: 1px solid var(--filet); border-radius: 10px; background: var(--voile); font-size: 13px; line-height: 1.45; color: var(--encre); }
.verdicts-motif [hidden] { display: none; }

/* ★★★ LOT SMS-ALERTES-SANS-BLOCAGE (2026-11-09) — voir l'en-tête de pages/style-sms.ts. */
:root { --sms-violet: #5b3f86; --sms-violet-clair: #ece7f3; --sms-laiton: #80602a; --sms-laiton-clair: #f6ecd6; --sms-vert: #2f6b45; --sms-vert-clair: #e5f2ea; }
.sms-cache { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sms-deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 12px 0; }
@media (max-width: 759.98px) { .sms-deux { grid-template-columns: minmax(0, 1fr); } }
.sms-carte:not(#_) { background: #fff; border: 1px solid var(--filet-carte, #ebe6dd); border-radius: 14px; padding: 16px 18px; color: var(--encre, #251d32); }
.sms-carte h2, .sms-carte h3 { margin-top: 0; }
.sms-carte-jauge h3 { font-size: 14px; font-weight: 600; color: var(--encre2, #4A4750); margin: 0 0 4px; }
.sms-grand { margin: 0 0 8px; }
.sms-grand strong { font-size: 30px; }
.sms-cout { color: var(--encre2, #4A4750); font-size: 16px; }
svg.sms-jauge { width: 100%; height: 10px; display: block; margin: 6px 0; }
.sms-jauge-fond { fill: var(--sms-violet-clair); }
.sms-jauge-plein { fill: var(--sms-violet); }
.sms-jauge-plein.sms-depasse { fill: var(--sms-laiton); }
.sms-pastilles { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.sms-etat { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 14px; font-weight: 600; border: 1px solid transparent; }
.sms-etat-normal { background: var(--sms-vert-clair); color: var(--sms-vert); border-color: #b9dcc6; }
.sms-etat-alerte { background: var(--sms-laiton-clair); color: #5e4519; border-color: #e3cf9f; }
.sms-etat-envoyee { background: #fbf6ea; color: #5e4519; border-color: #e3cf9f; }
.sms-etat-pause { background: var(--sms-violet-clair); color: var(--sms-violet); border-color: #cfc3e3; }
.sms-bandeau { display: flex; gap: 10px; align-items: center; background: var(--sms-violet-clair); border-left: 4px solid var(--sms-violet); border-radius: 10px; padding: 10px 14px; font-weight: 600; color: #2a1f3d; }
.sms-section { margin-top: 24px; }
.sms-tete-section { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.sms-tete-section h2 { margin: 0; }
nav.sms-bascule { display: inline-flex; border: 1px solid #2a1f3d; border-radius: 10px; overflow: hidden; }
nav.sms-bascule a:not(#_) { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; color: #2a1f3d; text-decoration: none; font-weight: 600; background: #fff; }
nav.sms-bascule a.sms-bascule-active:not(#_) { background: #2a1f3d; color: #fff; }
.sms-total:not(#_) { background: #f5f2f8; border-radius: 10px; padding: 10px 14px; margin: 0; display: flex; flex-direction: column; gap: 2px; color: #251d32; }
svg.sms-graphique { width: 100%; height: auto; display: block; max-height: 240px; }
.sms-barre { fill: #6e539a; }
.sms-barre.sms-depasse { fill: var(--sms-laiton); }
.sms-barre.sms-aujourdhui { stroke: #2a1f3d; stroke-width: 1.5; }
.sms-ligne-seuil { stroke: var(--sms-laiton); stroke-width: 1.5; stroke-dasharray: 5 4; }
.sms-base { stroke: #d9d2c6; stroke-width: 1; }
.sms-axe { font-family: var(--ui); font-size: 12px; fill: #4A4750; }
.sms-triangle { font-size: 11px; fill: var(--sms-laiton); }
.sms-table td.sms-n, .sms-table th.sms-n { text-align: right; font-family: var(--ui); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sms-table tfoot th, .sms-table tfoot td { font-weight: 700; border-top: 2px solid #d9d2c6; }
.sms-nom-pays { font-weight: 600; display: block; }
.sms-sous-nom { display: block; font-weight: 400; }
.sms-table td.sms-action { text-align: right; }
.sms-table td.sms-action form { margin: 0; }
.sms-ligne-pause th, .sms-ligne-pause td { color: var(--encre, #251d32); }
.sms-encadre { display: flex; gap: 12px; align-items: flex-start; background: #f5f2f8; border-radius: 12px; padding: 12px 16px; margin-top: 20px; color: #251d32; }
.sms-encadre p { margin: 0 0 6px; }
.sms-recherche { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
fieldset.sms-choix { border: 1px solid #ebe6dd; border-radius: 12px; padding: 0; margin: 12px 0; max-height: 520px; overflow-y: auto; }
.sms-choix-ligne { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 14px; border-bottom: 1px solid #f0ece6; border-left: 4px solid transparent; }
.sms-choix-ligne:has(input:checked) { border-left-color: var(--sms-violet); font-weight: 700; background: #faf8fc; }
.sms-choix-ligne .legende { margin-left: auto; }
.sms-choix-pause { color: #4A4750; }
.sms-avant-apres { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 12px 0 18px; }
.sms-avant-apres > div { display: flex; flex-direction: column; gap: 4px; }
.sms-reglage { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sms-champ { display: flex; align-items: center; gap: 8px; }
.sms-champ input { max-width: 140px; }
input.sms-court { max-width: 80px; }
dl.sms-limites { display: grid; gap: 8px; margin: 0 0 8px; }
dl.sms-limites > div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid #f0ece6; padding: 6px 0; }
dl.sms-limites dd { margin: 0; font-weight: 700; }
details.sms-details { margin-top: 8px; }
