/* ALANDA — feuille de style unique. Mise en page de la version 1.6 ; couleurs de la version 1.8.1 (10 novembre 2026) :
   palette « Pilotage médical & réglementaire — lisible, rassurante, orientée action », appliquée avec ses codes exacts.
   Téléphone d'abord (délégué sur le terrain) ; tablette ; menu latéral et barre supérieure sur ordinateur.
   Palette : bleu profond #1E3A5F (navigation et actions principales), bleu médical #2F80ED (liens et éléments actifs),
   vert #2E7D5B (conforme, à jour), ambre #E6A23C (échéance proche), rouge #C94C4C (en retard, action requise), gris bleuté
   #718096 (information neutre), gris très clair #F5F7FA (fond général), blanc #FFFFFF (cartes et panneaux), anthracite
   #243247 (texte principal). Statuts : pastilles pleines à texte blanc, toujours avec un mot et une forme (jamais la
   couleur seule). Contrastes connus et acceptés le 10 novembre 2026 (« codes exacts partout ») : liens en bleu médical
   3,87:1 sur blanc, textes secondaires en gris bleuté 4,02:1, ambre et blanc 2,19:1 — sous le seuil de 4,5:1 conseillé
   pour le texte courant.
   Polices (SIL OFL 1.1, fichiers et provenance dans /polices) : Inter pour le texte, Manrope pour les titres et les chiffres.
   Version 1.8.3 (11 novembre 2026) : ce design de la version 1.8.1 est rétabli à l'identique (le design de la version 1.8.2
   est abandonné) ; plus de couleurs et des animations s'y ajoutent, dans le bloc « version 1.8.3 » en fin de feuille. */

@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/polices/inter-variable-latin.woff2) format("woff2-variations"), url(/polices/inter-variable-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/polices/manrope-latin-wght-normal.woff2) format("woff2-variations"), url(/polices/manrope-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/polices/manrope-latin-ext-wght-normal.woff2) format("woff2-variations"), url(/polices/manrope-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------------------------------------------------- jetons du design system */
:root {
  /* palette « Pilotage médical & réglementaire » : codes exacts (les noms des jetons restent ceux des versions précédentes,
     repris par tous les écrans) */
  --nuit: #1E3A5F;      /* bleu profond : navigation, actions principales, titres */
  --bleu: #2F80ED;      /* bleu médical : liens et éléments actifs */
  --vert: #2E7D5B;      /* conforme, à jour */
  --orange: #E6A23C;    /* ambre : échéance proche */
  --rouge: #C94C4C;     /* en retard, action requise */
  --ardoise: #718096;   /* gris bleuté : information neutre, textes secondaires */
  --ivoire: #F5F7FA;    /* gris très clair : fond général */
  --blanc: #FFFFFF;     /* cartes et panneaux */
  --encre: #243247;     /* anthracite : texte principal */
  /* les mêmes codes, sous les noms qu'utilisent les écrans */
  --gris: var(--ardoise); --trait: var(--ardoise); --ardoise-fonce: var(--encre); --tete: var(--ivoire); --survol: var(--ivoire);
  --vert-vif: var(--vert); --orange-vif: var(--orange); --rouge-vif: var(--rouge);
  /* nuances dérivées, là où la palette n'a pas de code (fonds pâles, bordures, survols, textes du menu sur bleu profond) :
     mélange d'un code de la palette avec du blanc, sauf mention ; part du code de la palette entre parenthèses */
  --nuit-fonce: #182E4C;                                     /* bleu profond (80 %) + noir : survol du bouton principal */
  --nuit-clair: #21487B;                                     /* bleu profond (80 %) + bleu médical : reflet du motif */
  --nuit-pale: #F2F3F5; --nuit-bord: #CED4DC;                /* bleu profond (6, 22 %) : bandeau d'information */
  --bleu-fonce: #2666BE;                                     /* bleu médical (80 %) + noir : survol des liens */
  --bleu-pale: #ECF4FD; --bleu-leger: #D5E6FB; --bleu-bord: #CBDFFB; --bleu-clair: #C1D9FA; --bleu-trait: #A1C6F7;
  --bleu-moyen: #8DB9F5;                                     /* bleu médical (9, 20, 25, 30, 45, 55 %) */
  --perle: #E5E8EC; --perle-fonce: #D4D9E0; --gris-pale: #EFF1F3;   /* gris bleuté (18, 30, 11 %) : séparateurs, fonds */
  --vert-pale: #EAF2EF; --vert-bord: #C0D8CE; --vert-fonce: #256449;   /* vert (10, 30 %) ; vert (80 %) + noir */
  --orange-pale: #FCF4E8;                                            /* ambre (12 %) */
  --rouge-pale: #FAEFEF; --rouge-bord: #EFC9C9;                      /* rouge (9, 30 %) */
  --menu-texte: #D2D8DF; --menu-libelle: #AAB4C2;   /* blanc (80, 62 %) + bleu profond : 8,0:1 et 5,5:1 sur le menu */
  /* noms repris par les écrans (styles en ligne) */
  --alerte: var(--rouge); --gris-clair: var(--perle); --bord: var(--perle);
  /* typographie */
  --texte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --titre: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* formes et ombres : rayons modérés, hiérarchisés ; ombres très légères, réservées à ce qui flotte */
  --r-champ: 8px; --r-carte: 12px; --r-grand: 16px;
  --ombre-survol: 0 2px 10px rgba(36, 50, 71, .07);
  --ombre-flottant: 0 14px 38px rgba(36, 50, 71, .16), 0 2px 6px rgba(36, 50, 71, .06);
  --menu: 264px;
  --duree: 140ms;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font: 400 16px/1.55 var(--texte); font-feature-settings: "ss04" 1; color: var(--encre); background: var(--ivoire);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
@media (min-width: 1024px) { body { font-size: 15px; } }
a { color: var(--bleu); text-underline-offset: 2px; }
a:hover { color: var(--bleu-fonce); }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
#app { min-height: 100vh; }
.symbole { display: block; flex: 0 0 auto; }
.menu-lateral .symbole, header.haut .symbole, .connexion-marque .symbole { color: #fff; --serpent: var(--bleu); }
.lecteur { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
::selection { background: var(--bleu-clair); color: var(--nuit); }

/* chiffres tabulaires là où des nombres s'alignent en colonne (tableaux, axes) ; chiffres proportionnels pour les grands
   nombres isolés (indicateurs), plus serrés et plus élégants */
table, .graphique, .badge, .heure, .infobulle { font-variant-numeric: tabular-nums; }

/* indicateur de chargement : un trait fin en haut de l'écran pendant qu'un écran se prépare */
body.charge::after { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; pointer-events: none;
  background: linear-gradient(90deg, transparent 0, var(--bleu) 30%, var(--bleu) 70%, transparent 100%); background-size: 50% 100%;
  background-repeat: no-repeat; animation: charge 1.1s ease-in-out infinite; }
@keyframes charge { from { background-position: -50% 0; } to { background-position: 150% 0; } }

/* ---------------------------------------------------------------- cadre : en-tête et barre du bas (téléphone, tablette) */
header.haut { background: var(--nuit); color: #fff; padding: calc(6px + env(safe-area-inset-top, 0px)) 12px 6px; position: sticky; top: 0; z-index: 20; }
header.haut .l1 { display: flex; align-items: center; gap: 8px; max-width: 1180px; margin: 0 auto; }
header.haut .marque { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding-right: 6px; font: 700 16px/1 var(--titre); letter-spacing: .14em; color: #fff; text-decoration: none; }
header.haut .qui { font-size: 12.5px; color: var(--menu-texte); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
header.haut .qui b { display: block; font-weight: 600; font-size: 13.5px; color: #fff; overflow: hidden; text-overflow: ellipsis; }
.icone-bouton { position: relative; background: transparent; border: 1px solid transparent; color: inherit; border-radius: 10px; min-width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 9px; cursor: pointer; font: 600 14px/1 var(--texte); text-decoration: none;
  transition: background-color var(--duree), border-color var(--duree); }
.icone-bouton svg { width: 21px; height: 21px; }
header.haut .icone-bouton { border-color: rgba(255, 255, 255, .16); color: #fff; }
header.haut .icone-bouton:hover { background: rgba(255, 255, 255, .07); color: #fff; }
header.haut .icone-bouton.initiales-bouton { background: var(--bleu); border-color: var(--bleu); color: #fff; font-family: var(--titre); font-weight: 700; letter-spacing: .02em; }
header.haut :focus-visible, .menu-lateral :focus-visible, .synthese :focus-visible, .connexion-marque :focus-visible { outline-color: #fff; }
.badge { position: absolute; top: -5px; right: -5px; background: var(--bleu); color: #fff; font: 600 11px/18px var(--texte); border-radius: 999px; min-width: 18px; height: 18px;
  text-align: center; padding: 0 5px; box-shadow: 0 0 0 2px var(--blanc); }
header.haut .badge { background: var(--bleu); color: #fff; box-shadow: 0 0 0 2px var(--nuit); }
.bandeau-reseau { background: var(--ardoise); color: #fff; font-size: 14px; text-align: center; padding: 7px 12px; }
.bandeau-reseau.attente { background: var(--orange); color: var(--encre); }

nav.bas { position: fixed; bottom: 0; left: 0; right: 0; background: var(--blanc); border-top: 1px solid var(--perle); display: flex; justify-content: center; z-index: 20;
  padding-bottom: env(safe-area-inset-bottom, 0px); }
nav.bas a { flex: 1; max-width: 168px; min-height: 60px; text-align: center; padding: 8px 2px 8px; font: 500 12px/1.2 var(--texte); color: var(--ardoise); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; position: relative; }
nav.bas a svg { width: 22px; height: 22px; }
nav.bas a:hover { color: var(--nuit); }
nav.bas a.actif { color: var(--nuit); font-weight: 650; }
nav.bas a.actif::before { content: ""; position: absolute; top: 0; left: 50%; width: 30px; height: 3px; margin-left: -15px; background: var(--bleu); border-radius: 0 0 3px 3px; }
nav.bas a .badge { top: 4px; right: calc(50% - 25px); }

main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 18px 16px calc(96px + env(safe-area-inset-bottom, 0px)); }
.menu-lateral, .barre-haut { display: none; }

/* ---------------------------------------------------------------- cadre sur ordinateur : menu latéral et barre supérieure */
@media (min-width: 1024px) {
  #app.cadre { display: grid; grid-template-columns: var(--menu) minmax(0, 1fr); grid-template-rows: auto auto 1fr; }
  header.haut, nav.bas { display: none; }
  .menu-lateral { display: flex; flex-direction: column; grid-column: 1; grid-row: 1 / -1; position: sticky; top: 0; height: 100vh; overflow-y: auto;
    background: var(--nuit); color: var(--menu-texte); padding: 20px 14px 14px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
  .barre-haut { display: flex; grid-column: 2; grid-row: 1; }
  #bandeau-reseau { grid-column: 2; grid-row: 2; }
  main { grid-column: 2; grid-row: 3; max-width: 1280px; margin: 0; padding: 30px 40px 56px; }
}
.menu-lateral .marque-bloc { display: flex; align-items: center; gap: 12px; padding: 4px 10px 18px; margin-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.menu-lateral .marque-bloc .mot { display: block; font: 700 18px/1.1 var(--titre); letter-spacing: .16em; }
.menu-lateral .marque-bloc .agence { display: block; font: 500 12.5px/1.3 var(--texte); color: var(--menu-libelle); margin-top: 3px; letter-spacing: 0; }
.menu-lateral .rubrique { font: 600 12px/1.3 var(--texte); color: var(--menu-libelle); margin: 20px 12px 6px; letter-spacing: .01em; }
.menu-lateral a.entree { display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 8px 12px; border-radius: 8px; color: var(--menu-texte); text-decoration: none;
  font: 500 14px/1.25 var(--texte); position: relative; transition: background-color var(--duree), color var(--duree); }
.menu-lateral a.entree svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: .78; }
.menu-lateral a.entree:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.menu-lateral a.entree.actif { background: var(--bleu); color: #fff; font-weight: 600; }
.menu-lateral a.entree.actif svg { color: #fff; opacity: 1; }
.menu-lateral a.entree .badge { position: static; margin-left: auto; background: var(--bleu); color: #fff; box-shadow: none; }
.menu-lateral a.entree.actif .badge { background: #fff; color: var(--nuit); }
.menu-lateral .pied { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.menu-lateral .version { font-size: 11.5px; color: var(--menu-libelle); padding: 10px 12px 0; }

.barre-haut { position: sticky; top: 0; z-index: 15; align-items: center; gap: 14px; min-height: 64px; padding: 10px 40px; background: var(--blanc); border-bottom: 1px solid var(--perle); }
.ariane { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ardoise); white-space: nowrap; overflow: hidden; }
.ariane > * { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ariane a { color: var(--ardoise); text-decoration: none; }
.ariane a:hover { color: var(--bleu); text-decoration: underline; }
.ariane .sep { flex: 0 0 auto; color: var(--perle-fonce); display: inline-flex; }
.ariane .sep svg { width: 14px; height: 14px; }
.ariane [aria-current] { color: var(--encre); font-weight: 600; }
.barre-haut .icone-bouton { color: var(--nuit); width: 42px; min-width: 42px; height: 42px; padding: 0; }
.barre-haut .icone-bouton:hover { background: var(--ivoire); border-color: var(--perle); color: var(--nuit); }
.barre-haut .icone-bouton[aria-current] { background: var(--bleu-pale); }
.profil-puce { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 12px; text-decoration: none; color: var(--encre); max-width: 260px;
  border: 1px solid transparent; transition: background-color var(--duree), border-color var(--duree); }
.profil-puce:hover { background: var(--ivoire); border-color: var(--perle); color: var(--encre); }
.initiales { width: 36px; height: 36px; border-radius: 50%; background: var(--bleu); color: #fff; font: 700 13.5px/1 var(--titre); letter-spacing: .02em;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; }
.profil-puce .nom { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profil-puce .role { display: block; font-size: 12.5px; color: var(--ardoise); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* recherche d'une fonction (barre supérieure et page « Toutes les fonctions ») */
.cherche-fonction { position: relative; width: 320px; flex: 0 1 320px; }
.cherche-fonction svg.loupe { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; color: var(--ardoise); pointer-events: none; }
.cherche-fonction input { padding-left: 38px; min-height: 42px; height: 42px; background: var(--ivoire); border-radius: 10px; font-size: 14.5px; }
.cherche-fonction input:focus { background: var(--blanc); }
.cherche-fonction.pleine { width: auto; flex: none; margin: 4px 0 18px; }
.cherche-fonction.pleine input { min-height: 48px; height: 48px; background: var(--blanc); font-size: 16px; }
.resultats-fonction { position: absolute; top: calc(100% + 6px); right: 0; width: max(100%, 420px); max-width: calc(100vw - 32px); max-height: min(60vh, 460px); overflow: auto; z-index: 40;
  background: var(--blanc); border: 1px solid var(--perle); border-radius: var(--r-carte); box-shadow: var(--ombre-flottant); padding: 6px; }
.cherche-fonction.pleine .resultats-fonction { left: 0; right: auto; width: 100%; }
.resultats-fonction a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; text-decoration: none; color: var(--encre); min-height: 48px; }
.resultats-fonction a svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--bleu); }
.resultats-fonction a .t { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.resultats-fonction a .s { display: block; font-size: 12.5px; color: var(--ardoise); line-height: 1.35; }
.resultats-fonction a:hover, .resultats-fonction a.choisi { background: var(--bleu-pale); }
.resultats-fonction .rien { padding: 12px; color: var(--ardoise); font-size: 14px; }

/* ---------------------------------------------------------------- titres et blocs */
h2 { font: 650 22px/1.25 var(--titre); letter-spacing: -.012em; color: var(--nuit); margin: 2px 0 16px; }
h3 { font: 600 17px/1.3 var(--titre); letter-spacing: -.005em; color: var(--nuit); margin: 30px 0 12px; }
@media (min-width: 1024px) { h2 { font-size: 28px; margin-bottom: 18px; } h3 { font-size: 18px; } }
.titre { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.titre h2 { margin: 0; }
.retour { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font: 500 14.5px var(--texte); color: var(--bleu); text-decoration: none; margin: -8px 0 2px; cursor: pointer;
  background: none; border: 0; padding: 0 8px 0 0; }
.retour:hover { text-decoration: underline; }
.carte { background: var(--blanc); border: 1px solid var(--perle); border-radius: var(--r-carte); padding: 14px 16px; margin-bottom: 10px; }
a.carte, button.carte { display: block; text-decoration: none; color: inherit; width: 100%; text-align: left; font: inherit; cursor: pointer;
  transition: border-color var(--duree), box-shadow var(--duree); }
a.carte:hover, button.carte:hover { border-color: var(--bleu-trait); box-shadow: var(--ombre-survol); color: inherit; }
.carte .t { font-weight: 600; font-size: 15.5px; color: var(--encre); }
.s, .carte .s { color: var(--ardoise); font-size: 14px; }
.petit { font-size: 13px; color: var(--ardoise); }
.ligne { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ligne > :first-child { min-width: 0; }
a.ligne-lien { align-items: center; min-height: 44px; padding: 8px 0; color: inherit; text-decoration: none; border-top: 1px solid var(--perle); }
a.ligne-lien:hover b { text-decoration: underline; color: var(--bleu); }
.grille { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grille2 { display: grid; gap: 0 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grille2 { grid-template-columns: 1fr 1fr; } }
.etroit { max-width: 720px; }
.chiffre { font: 650 28px/1.15 var(--titre); letter-spacing: -.01em; color: var(--nuit); margin-top: 4px; }
.chiffre.petit-chiffre { font-size: 22px; }
.carte.kpi { padding: 16px 18px; }
.kpi .libelle { font-size: 13px; font-weight: 500; color: var(--ardoise-fonce); }
.jauge { height: 6px; background: var(--perle); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.jauge > span { display: block; height: 100%; background: var(--bleu); border-radius: 999px; }
.jauge.depasse > span { background: var(--rouge); }
.jauge.haute > span { background: var(--orange-vif); }

/* statuts : un mot, une couleur et une forme (rond plein : conforme ; anneau : action ou échéance ; losange : anomalie ; trait : inactif).
   Version 1.8.1 : pastilles pleines, texte et forme en blanc, comme sur la palette ; sans statut : fond bleu pâle, texte bleu profond. */
.pastille { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1.45 var(--texte); padding: 2px 10px; border-radius: 999px; background: var(--bleu-pale); color: var(--nuit);
  white-space: nowrap; vertical-align: middle; }
.pastille.ok, .pastille.att, .pastille.non, .pastille.gris { padding-left: 8px; }
.pastille.ok::before, .pastille.att::before, .pastille.non::before, .pastille.gris::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pastille.ok { background: var(--vert); color: #fff; }
.pastille.att { background: var(--orange); color: #fff; }
.pastille.att::before { background: transparent; box-shadow: inset 0 0 0 1.6px currentColor; }
.pastille.non { background: var(--rouge); color: #fff; }
.pastille.non::before { border-radius: 1px; transform: rotate(45deg); width: 6.5px; height: 6.5px; }
.pastille.gris { background: var(--gris); color: #fff; }
.pastille.gris::before { width: 8px; height: 2px; border-radius: 1px; }

.bandeau { border: 1px solid var(--nuit-bord); border-left: 3px solid var(--nuit); background: var(--nuit-pale); padding: 12px 14px; border-radius: 10px; margin-bottom: 14px;
  font-size: 14.5px; line-height: 1.5; color: var(--encre); }
.bandeau.rouge { border-color: var(--rouge-bord); border-left-color: var(--rouge); background: var(--rouge-pale); }
.bandeau.vert { border-color: var(--vert-bord); border-left-color: var(--vert); background: var(--vert-pale); }
.bandeau.gris { border-color: var(--perle-fonce); border-left-color: var(--gris); background: var(--gris-pale); }
.bandeau.bleu { border-color: var(--bleu-bord); border-left-color: var(--bleu); background: var(--bleu-pale); }
/* sur les fonds teintés, le texte secondaire passe à l'anthracite (contraste ≥ 4,5:1) */
.bandeau .petit, .bandeau .s, .bandeau .aide, .liste-choix button .petit, .liste-choix button .s, .resultats-fonction a .s, .choix label .petit,
tr:hover > td .petit, tr:hover > td .s { color: var(--ardoise-fonce); }
.vide { color: var(--ardoise); text-align: center; padding: 26px 12px; font-size: 14.5px; }
.carte .vide, td .vide, td.vide { padding: 18px 8px; }
div.vide:not(.carte div):not(td div) { background: var(--blanc); border: 1px dashed var(--perle-fonce); border-radius: var(--r-carte); }
.onglets { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 16px; }
.onglets a, .onglets button { font: 500 14px/1.2 var(--texte); padding: 8px 15px; border-radius: 999px; border: 1px solid var(--perle-fonce); background: var(--blanc); color: var(--encre);
  text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 38px; transition: border-color var(--duree), background-color var(--duree); }
.onglets a:hover, .onglets button:hover { border-color: var(--trait); color: var(--encre); }
.onglets .actif, .onglets .actif:hover { background: var(--nuit); border-color: var(--nuit); color: #fff; font-weight: 600; }

/* ---------------------------------------------------------------- accueil : synthèse, indicateurs, ce qui attend, accès */
.synthese { position: relative; display: grid; grid-template-columns: 1fr; background: var(--nuit); color: #fff; border-radius: var(--r-grand); overflow: hidden; margin: 0 0 18px; isolation: isolate; }
.synthese-texte { position: relative; z-index: 1; padding: 20px 20px 22px; min-width: 0; }
.synthese-date { font-size: 13px; color: var(--menu-libelle); }
.synthese-date::after { content: ""; display: block; width: 32px; height: 2px; background: var(--bleu); border-radius: 2px; margin: 12px 0 12px; }
.synthese h2 { color: #fff; margin: 0 0 8px; font-size: 24px; }
.synthese-phrase { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--menu-texte); max-width: 60ch; }
.synthese-phrase b { color: #fff; font-weight: 600; }
.synthese-phrase a { color: #fff; text-decoration-color: var(--bleu); }
.synthese-phrase a:hover { color: #fff; text-decoration-color: #fff; }
.synthese .actions { margin-top: 18px; }
.synthese .b.second { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .32); }
.synthese .b.second:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); color: #fff; }
.synthese-visuel { display: none; position: relative; margin: 0; min-height: 100%; }
.synthese-visuel img, .synthese-visuel svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.synthese-visuel::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--nuit) 0, rgba(30, 58, 95, .55) 22%, rgba(30, 58, 95, 0) 55%); pointer-events: none; }
.credit { position: absolute; z-index: 2; right: 10px; bottom: 8px; font-size: 11px; color: rgba(255, 255, 255, .78); background: rgba(30, 58, 95, .55); padding: 2px 7px; border-radius: 6px; }
@media (min-width: 760px) {
  .synthese { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: 220px; }
  .synthese-texte { padding: 28px 30px 30px; }
  .synthese h2 { font-size: 30px; }
  .synthese-visuel { display: block; }
}
@media (min-width: 1024px) { .synthese { min-height: 236px; } .synthese-texte { padding: 32px 36px 34px; } .synthese h2 { font-size: 32px; } }

/* indicateurs clés : une bande unique, séparée par des filets */
.indicateurs { display: flex; flex-wrap: wrap; gap: 1px; background: var(--perle); border: 1px solid var(--perle); border-radius: var(--r-carte); overflow: hidden; margin: 0 0 6px; }
.indicateur { flex: 1 1 148px; background: var(--blanc); padding: 16px 18px 15px; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
a.indicateur:hover { background: var(--survol); color: inherit; }
.indicateur .l { font-size: 13px; font-weight: 500; color: var(--ardoise-fonce); }
.indicateur .v { font: 650 30px/1.15 var(--titre); letter-spacing: -.012em; color: var(--nuit); margin: 4px 0 2px; white-space: nowrap; }
.indicateur .v small { font-size: .55em; font-weight: 600; color: var(--ardoise-fonce); letter-spacing: 0; margin-left: 2px; }
.indicateur .s { font-size: 13px; color: var(--ardoise); }
.indicateur .jauge { margin-top: 10px; }
.tendance { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; margin-top: 8px; padding: 1px 8px 1px 6px;
  border-radius: 999px; background: var(--gris-pale); color: var(--ardoise-fonce); white-space: nowrap; }
.tendance.hausse { background: var(--vert-pale); }
.tendance.baisse { background: var(--rouge-pale); }
.note-indicateurs { font-size: 12.5px; color: var(--ardoise); margin: 8px 2px 0; }
/* tendances : chiffre en anthracite (lisible sur le fond teinté), flèche à la couleur du sens */
.tendance.hausse svg { color: var(--vert); }
.tendance.baisse svg { color: var(--rouge); }
.tendance svg { width: 14px; height: 14px; }
@media (min-width: 1024px) { .indicateur .v { font-size: 32px; } }

.a-traiter { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); margin-bottom: 4px; }
@media (min-width: 1024px) { .a-traiter { grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 12px; } }
.tuile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 108px; padding: 14px 16px 14px; background: var(--blanc);
  border: 1px solid var(--perle); border-radius: var(--r-carte); color: var(--encre); text-decoration: none; transition: border-color var(--duree), box-shadow var(--duree); }
.tuile:hover { border-color: var(--bleu-trait); box-shadow: var(--ombre-survol); color: var(--encre); }
.tuile .n { font: 650 32px/1 var(--titre); letter-spacing: -.01em; color: var(--nuit); }
.tuile .l { font-size: 14px; line-height: 1.35; font-weight: 500; }
.tuile::after { content: ""; position: absolute; top: 18px; right: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--bleu); }
.tuile.alerte .n { color: var(--rouge); }
.tuile.alerte::after { background: var(--rouge-vif); border-radius: 1px; transform: rotate(45deg); }
.tuile.action .n { color: var(--orange); }
.tuile.action::after { background: transparent; box-shadow: inset 0 0 0 2px var(--orange-vif); width: 9px; height: 9px; }
.periode { display: flex; flex-wrap: wrap; gap: 1px; background: var(--perle); border: 1px solid var(--perle); border-radius: var(--r-carte); overflow: hidden; }
.periode > a, .periode > div { flex: 1 1 200px; background: var(--blanc); padding: 14px 16px; text-decoration: none; color: inherit; }
.periode > a:hover { background: var(--survol); color: inherit; }
.periode .v { font: 650 26px/1.15 var(--titre); color: var(--nuit); }
.periode .l { font-size: 13px; color: var(--ardoise); }
.acces { display: grid; gap: 0 20px; grid-template-columns: 1fr; background: var(--blanc); border: 1px solid var(--perle); border-radius: var(--r-carte); padding: 4px 8px; }
@media (min-width: 760px) { .acces { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .acces { grid-template-columns: 1fr 1fr 1fr; } }
.acces a { display: flex; align-items: center; gap: 13px; min-height: 60px; padding: 9px 8px; text-decoration: none; color: var(--encre); border-bottom: 1px solid var(--perle); border-radius: 8px; }
.acces a:hover { background: var(--survol); color: var(--encre); }
.acces a svg { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--tete); color: var(--nuit); flex: 0 0 36px; transition: background-color var(--duree), color var(--duree); }
.acces a:hover svg { background: var(--nuit); color: #fff; }
.acces a .t { font-weight: 600; display: block; font-size: 14.5px; line-height: 1.3; }
.acces a .s { display: block; font-size: 13px; line-height: 1.35; }
.taches { list-style: none; margin: 0; padding: 0; background: var(--blanc); border: 1px solid var(--perle); border-radius: var(--r-carte); overflow: hidden; }
.alerte-item { display: flex; gap: 12px; align-items: center; min-height: 54px; padding: 11px 14px; margin-bottom: 8px; text-decoration: none; color: var(--encre); background: var(--blanc);
  border: 1px solid var(--perle); border-radius: 10px; font-size: 14.5px; line-height: 1.45; }
.taches .alerte-item { border: 0; border-bottom: 1px solid var(--perle); border-radius: 0; margin: 0; }
.taches .alerte-item:last-child { border-bottom: 0; }
.alerte-item:hover { background: var(--survol); color: var(--encre); }
.alerte-item .point { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; background: var(--bleu); }
.alerte-item.alerte .point { background: var(--rouge-vif); border-radius: 1px; transform: rotate(45deg); }
.alerte-item.action .point { background: transparent; box-shadow: inset 0 0 0 2px var(--orange-vif); width: 9px; height: 9px; flex-basis: 9px; }
.alerte-item .chevron { margin-left: auto; color: var(--ardoise); flex: 0 0 auto; display: inline-flex; }
.alerte-item.lue { color: var(--ardoise); }
.alerte-item.lue .point { background: var(--perle-fonce); }
.entete-jour { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.entete-jour h2 { margin: 0; }
.gros-bouton { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; font-size: 17px !important; border-radius: 12px !important; }
.gros-bouton svg { width: 24px; height: 24px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.duo .b { width: 100%; }
.duo .plein { grid-column: 1 / -1; }
.jour-chiffres { display: flex; gap: 1px; background: var(--perle); border: 1px solid var(--perle); border-radius: var(--r-carte); margin: 14px 0 2px; overflow: hidden; }
.jour-chiffres > div { flex: 1; padding: 12px 15px; background: var(--blanc); }
.jour-chiffres .v { font: 650 26px/1.1 var(--titre); color: var(--nuit); }
.jour-chiffres .l { font-size: 13px; color: var(--ardoise); }
/* Chiffres d'un plan d'action : en colonnes sur grand écran, à la ligne sur téléphone. */
.chiffres { display: flex; flex-wrap: wrap; gap: 1px; background: var(--perle); border: 1px solid var(--perle); border-radius: var(--r-carte); margin: 12px 0 2px; overflow: hidden; }
.chiffres > div { flex: 1 1 128px; padding: 11px 14px; background: var(--blanc); }
.chiffres .v { font: 650 19px/1.25 var(--titre); color: var(--nuit); white-space: nowrap; }
.chiffres .l { font-size: 12.5px; color: var(--ardoise); }

/* disposition de l'accueil : sur téléphone, ce qui attend passe avant les graphiques */
.tableau-accueil { display: flex; flex-direction: column; }
.tableau-accueil > section > h3:first-child { margin-top: 28px; }
@media (max-width: 759.98px) {
  .tableau-accueil .zone-synthese { order: 1; }
  .tableau-accueil .zone-traiter { order: 2; }
  .tableau-accueil .zone-indicateurs { order: 3; }
  .tableau-accueil .zone-graphiques { order: 4; }
  .tableau-accueil .zone-echeances { order: 5; }
  .tableau-accueil .zone-recent { order: 6; }
  .tableau-accueil .zone-acces { order: 7; }
  .tableau-accueil .zone-indicateurs { margin-top: 22px; }
  .indicateur { padding: 14px 14px 13px; }
  .indicateur .v { font-size: 26px; }
}
.deux-colonnes { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .deux-colonnes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .deux-colonnes.large-etroit { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }

@media (min-width: 1024px) { .seulement-tel { display: none !important; } }
@media (max-width: 1023.98px) { .seulement-ordi { display: none !important; } }

/* ---------------------------------------------------------------- graphiques */
.graphique { background: var(--blanc); border: 1px solid var(--perle); border-radius: var(--r-carte); padding: 16px 18px 14px; margin: 0 0 12px; min-width: 0; }
.graphique figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 10px; }
.graphique .g-titre { font: 600 15.5px/1.35 var(--titre); color: var(--nuit); }
.graphique .g-sous { display: block; font: 400 13px/1.4 var(--texte); color: var(--ardoise); margin-top: 2px; }
.legende { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ardoise-fonce); }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--bleu); }
.legende i.ligne-pointillee { height: 0; border-top: 2px dashed var(--nuit); border-radius: 0; background: none; width: 16px; }
.legende i.trait-plein { height: 2px; border-radius: 1px; width: 16px; }
.graphique svg { display: block; width: 100%; height: auto; overflow: visible; }
.graphique .axe text, .graphique text.axe { font: 400 11.5px var(--texte); fill: var(--ardoise); }
.graphique .grille-g line { stroke: var(--perle); stroke-width: 1; shape-rendering: crispEdges; }
.graphique .axe-base { stroke: var(--perle-fonce); stroke-width: 1; shape-rendering: crispEdges; }
.graphique .cible-g { cursor: default; }
.graphique .cible-g:focus { outline: none; }
.graphique .cible-g:focus-visible .marque-focus, .graphique .cible-g.survole .marque-focus { opacity: 1; }
.graphique .marque-focus { opacity: 0; transition: opacity var(--duree); }
.graphique .valeur { font: 600 12px var(--texte); fill: var(--encre); }
.graphique .etiquette { font: 500 13px var(--texte); fill: var(--encre); }
.graphique .etiquette-s { font: 400 12px var(--texte); fill: var(--ardoise); }
.graphique-vide { display: flex; align-items: center; justify-content: center; min-height: 140px; text-align: center; color: var(--ardoise); font-size: 14px; padding: 12px;
  background: repeating-linear-gradient(135deg, var(--blanc) 0 10px, var(--survol) 10px 20px); border-radius: 10px; }
.infobulle { position: fixed; z-index: 90; pointer-events: none; max-width: 260px; background: var(--nuit); color: #fff; font-size: 13px; line-height: 1.45; padding: 8px 11px; border-radius: 8px;
  box-shadow: var(--ombre-flottant); opacity: 0; transform: translateY(2px); transition: opacity 100ms, transform 100ms; }
.infobulle.visible { opacity: 1; transform: none; }
.infobulle .ib-titre { color: var(--menu-texte); font-size: 12px; margin-bottom: 3px; }
.infobulle .ib-ligne { display: flex; align-items: center; gap: 7px; }
.infobulle .ib-cle { width: 12px; height: 3px; border-radius: 2px; flex: 0 0 12px; }
.infobulle b { color: #fff; font-weight: 650; }
details.donnees { margin-top: 10px; border-top: 1px solid var(--perle); padding-top: 4px; }
details.donnees > summary { cursor: pointer; font-size: 13px; color: var(--bleu); font-weight: 500; min-height: 36px; display: inline-flex; align-items: center; list-style-position: inside; }
details.donnees > summary:hover { color: var(--bleu-fonce); text-decoration: underline; }
details.donnees .defile { margin-top: 6px; border: 1px solid var(--perle); border-radius: 10px; max-height: 340px; overflow: auto; }
details.donnees table { font-size: 13.5px; }
/* barres horizontales : libellé à gauche (au-dessus sur téléphone), valeur au bout de la barre */
.barres { display: flex; flex-direction: column; gap: 2px; }
.barre-ligne { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; text-decoration: none; color: inherit; outline-offset: 0; }
@media (min-width: 640px) { .barre-ligne { grid-template-columns: minmax(120px, 32%) minmax(0, 1fr); align-items: center; gap: 16px; } }
a.barre-ligne:hover, .barre-ligne.survole { background: var(--survol); color: inherit; }
.barre-libelle { font-size: 14px; line-height: 1.3; font-weight: 500; color: var(--encre); min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.barre-sous { margin-left: 7px; font-size: 12.5px; color: var(--ardoise); font-weight: 400; }
.barre-piste { position: relative; display: flex; align-items: center; gap: 8px; height: 22px; min-width: 0; }
.barre { position: relative; z-index: 1; display: block; height: 14px; width: calc((100% - 72px) * var(--p)); min-width: 2px; background: var(--c, var(--bleu)); border-radius: 0 4px 4px 0; flex: 0 0 auto; }
.avec-piste .barre-piste::before { content: ""; position: absolute; left: 0; top: 4px; height: 14px; width: calc(100% - 72px); background: var(--bleu-pale); border-radius: 0 4px 4px 0; }
.avec-piste .barre-piste.colore::before { background: var(--gris-pale); }
.barre-valeur { position: relative; z-index: 1; font-size: 13px; font-weight: 600; color: var(--encre); white-space: nowrap; font-variant-numeric: tabular-nums; }
.barre-repere { position: absolute; z-index: 2; top: -5px; bottom: -5px; left: calc((100% - 72px) * var(--o)); border-left: 1.5px dashed var(--nuit); }
/* Version 1.7 : repère placé après la barre (objectif non atteint) : la valeur passe après le repère, sans le chevaucher. */
.barre-piste.repere-apres .barre-valeur { margin-left: calc((100% - 72px) * (var(--o) - var(--p)) + 2px); }
.imbriquees .barre-piste { height: 26px; }
.imbriquees .barre { position: absolute; left: 0; }
.imbriquees .barre.fond { top: 3px; height: 20px; width: calc((100% - 80px) * var(--p)); background: var(--bleu-leger); }
.imbriquees .barre.milieu { top: 8px; height: 10px; width: calc((100% - 80px) * var(--q)); background: var(--bleu-moyen); }
.imbriquees .barre.trait { top: 11px; height: 4px; width: calc((100% - 80px) * var(--t)); background: var(--nuit); border-radius: 0 2px 2px 0; z-index: 2; }
.imbriquees .barre-valeur { position: absolute; left: calc((100% - 80px) * max(var(--p), var(--q), var(--t)) + 8px); }

/* ---------------------------------------------------------------- visuels (photographie éditoriale ou motif moléculaire de remplacement) */
.visuel-motif { background: radial-gradient(120% 90% at 85% 20%, var(--nuit-clair) 0, var(--nuit) 70%); }

/* ---------------------------------------------------------------- formulaires */
label { display: block; font-size: 13.5px; color: var(--ardoise-fonce); margin: 16px 0 6px; font-weight: 600; }
label.case { display: flex; align-items: center; gap: 10px; color: var(--encre); font-size: 15px; font-weight: 400; min-height: 44px; }
label.case input { width: 20px; height: 20px; margin: 0; flex: 0 0 20px; }
input, select, textarea { width: 100%; font: 400 16px/1.4 var(--texte); padding: 10px 12px; border: 1px solid var(--trait); border-radius: var(--r-champ); background: var(--blanc); color: var(--encre);
  min-height: 46px; transition: border-color var(--duree), box-shadow var(--duree); }
@media (min-width: 1024px) and (pointer: fine) { input, select, textarea { font-size: 15px; min-height: 44px; } }
input::placeholder, textarea::placeholder { color: var(--ardoise); }
input:hover, select:hover, textarea:hover { border-color: var(--ardoise-fonce); }
input:focus, select:focus, textarea:focus { border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(47, 128, 237, .18); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--bleu); outline-offset: 1px; }
input:disabled, select:disabled, textarea:disabled { background: var(--gris-pale); color: var(--gris); }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234E5A69' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
select[multiple] { background-image: none; padding-right: 12px; }
input[type="checkbox"], input[type="radio"] { min-height: 0; width: 20px; height: 20px; accent-color: var(--bleu); box-shadow: none; }
input[type="file"] { padding: 10px; min-height: 46px; background: var(--survol); }
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
textarea { min-height: 96px; resize: vertical; }
.aide { font-size: 13px; color: var(--ardoise); margin-top: 6px; line-height: 1.45; }
button.b, a.b { font: 600 15px/1.2 var(--texte); border: 1px solid transparent; border-radius: var(--r-champ); padding: 11px 18px; background: var(--nuit); color: #fff; min-height: 46px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; text-align: center; letter-spacing: .005em;
  transition: background-color var(--duree), border-color var(--duree), color var(--duree); }
button.b:hover, a.b:hover { background: var(--nuit-fonce); color: #fff; }
button.b.second, a.b.second { background: var(--blanc); color: var(--nuit); border-color: var(--perle-fonce); }
button.b.second:hover, a.b.second:hover { background: var(--bleu-pale); border-color: var(--bleu-trait); color: var(--nuit); }
button.b.danger, a.b.danger { background: var(--blanc); color: var(--rouge); border-color: var(--rouge-bord); }
button.b.danger:hover, a.b.danger:hover { background: var(--rouge-pale); border-color: var(--rouge); color: var(--rouge); }
button.b.vert, a.b.vert { background: var(--vert); }
button.b.vert:hover, a.b.vert:hover { background: var(--vert-fonce); }
button.b.mini, a.b.mini { min-height: 36px; padding: 7px 13px; font-size: 14px; }
button.b:disabled, a.b[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.b svg { width: 19px; height: 19px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.actions .b { flex: 1 1 auto; min-width: 120px; }
.actions.serre .b { flex: 0 0 auto; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix label { margin: 0; display: flex; align-items: center; gap: 8px; background: var(--blanc); border: 1px solid var(--perle-fonce); border-radius: 999px; padding: 8px 15px 8px 12px;
  color: var(--encre); cursor: pointer; min-height: 44px; font-weight: 400; font-size: 15px; transition: border-color var(--duree), background-color var(--duree); }
.choix label:hover { border-color: var(--trait); }
.choix label:has(input:checked) { border-color: var(--bleu); background: var(--bleu-pale); font-weight: 600; color: var(--nuit); }
.choix input { width: 18px; height: 18px; min-height: 0; margin: 0; }
.lien-action { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.erreur { color: var(--rouge); font-size: 14px; margin-top: 10px; min-height: 18px; font-weight: 500; }
.recherche { position: relative; }
.liste-choix { max-height: 300px; overflow: auto; border: 1px solid var(--perle); border-radius: 10px; background: var(--blanc); margin-top: 6px; box-shadow: var(--ombre-flottant); }
.liste-choix button { display: block; width: 100%; min-height: 48px; text-align: left; border: 0; border-bottom: 1px solid var(--perle); background: var(--blanc); padding: 11px 14px; font: inherit; cursor: pointer; color: var(--encre); }
.liste-choix button:hover, .liste-choix button.choisi { background: var(--bleu-pale); }
.liste-choix .deja { padding: 11px 14px; border-bottom: 1px solid var(--perle); color: var(--ardoise); font-size: 14px; }
.carte.grise { opacity: .62; }
.labos .pastille { white-space: normal; margin: 2px 4px 2px 0; }
.prevues { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 12px; }
.prevues button { font: 600 15px var(--texte); min-height: 44px; padding: 8px 15px; border-radius: 999px; border: 1px dashed var(--bleu-trait); background: var(--blanc); color: var(--nuit); cursor: pointer; }
.prevues button:hover { background: var(--bleu-pale); border-style: solid; }

/* ---------------------------------------------------------------- dossiers réglementaires : une case par étape */
.case-etape { width: 26px; height: 26px; flex: 0 0 26px; border: 1.5px solid var(--trait); border-radius: 7px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: var(--blanc); margin-top: 1px; }
.case-etape svg { width: 16px; height: 16px; }
.etape.faite .case-etape { background: var(--vert); border-color: var(--vert); }

/* ---------------------------------------------------------------- tableaux */
.defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.carte.defile { padding: 0; }
.carte.defile > table { border-radius: inherit; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--blanc); }
@media (min-width: 1024px) { table { font-size: 14px; } }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--perle); vertical-align: top; }
th { color: var(--ardoise-fonce); font-weight: 600; font-size: 12.5px; line-height: 1.35; background: var(--tete); position: sticky; top: 0; border-bottom-color: var(--perle-fonce); white-space: nowrap; }
tr:last-child > td { border-bottom: 0; }
tr:hover > td { background: var(--survol); }
tr.entete-table:hover > td { background: none; }
td.n, th.n { text-align: right; white-space: nowrap; }
tr.total > td { font-weight: 700; border-top: 1.5px solid var(--nuit); background: var(--tete); }
td.vide { text-align: center; }
/* Sur téléphone, un tableau trop large pour l'écran devient une liste de cartes (classe posée par le noyau). */
@media (max-width: 759.98px) {
  .contient-cartes { background: transparent !important; border: 0 !important; padding: 0 !important; overflow: visible !important; box-shadow: none !important; }
  table.en-cartes, table.en-cartes > tbody, table.en-cartes > tbody > tr, table.en-cartes > tr { display: block; width: 100%; }
  table.en-cartes { background: transparent; font-size: 14.5px; }
  table.en-cartes tr.entete-table { display: none; }
  table.en-cartes tr { background: var(--blanc); border: 1px solid var(--perle); border-radius: var(--r-carte); padding: 10px 14px; margin-bottom: 8px; }
  table.en-cartes tr:hover > td { background: none; }
  /* chaque cellule : libellé de la colonne à gauche, valeur à droite (le contenu garde sa mise en forme) */
  table.en-cartes td, table.en-cartes th { display: block; position: relative; border: 0; padding: 5px 0 5px 42%; min-height: 30px; text-align: right; white-space: normal;
    overflow-wrap: anywhere; background: none; }
  table.en-cartes td::before { content: attr(data-label); position: absolute; left: 0; top: 5px; width: 39%; text-align: left; color: var(--ardoise); font-size: 13px; font-weight: 500;
    line-height: 1.4; overflow-wrap: normal; }
  table.en-cartes td[data-label=""], table.en-cartes td:not([data-label]) { padding-left: 0; text-align: left; }
  table.en-cartes td[data-label=""]::before, table.en-cartes td:not([data-label])::before { content: none; }
  table.en-cartes td:empty { display: none; }
  table.en-cartes td:first-child { padding: 2px 0 8px; margin-bottom: 4px; text-align: left; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--perle); }
  table.en-cartes td:first-child::before { content: none; }
  table.en-cartes td:first-child:last-child, table.en-cartes td[colspan] { border-bottom: 0; margin: 0; padding: 2px 0; font-weight: 400; text-align: left; }
  table.en-cartes td .actions, table.en-cartes td[data-label=""] .b { justify-content: flex-start; }
  table.en-cartes td input, table.en-cartes td select, table.en-cartes td textarea { width: 100%; }
  table.en-cartes tr.total { border-color: var(--nuit); background: var(--tete); }
  table.en-cartes tr.total > td { border-top: 0; background: none; }
}

/* ---------------------------------------------------------------- connexion */
.connexion-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--ivoire); }
.connexion-marque { position: relative; background: var(--nuit); color: #fff; padding: calc(30px + env(safe-area-inset-top, 0px)) 22px 28px; text-align: center; overflow: hidden; isolation: isolate; }
.connexion-marque .symbole { margin: 0 auto 14px; }
.connexion-marque .mot { font: 700 32px/1.1 var(--titre); letter-spacing: .22em; padding-left: .22em; }
.connexion-marque .sous { color: var(--menu-texte); margin-top: 8px; font-size: 15px; }
.connexion-marque .sous::before { content: ""; display: block; width: 32px; height: 2px; background: var(--bleu); border-radius: 2px; margin: 14px auto 14px; }
.connexion-visuel { position: absolute; inset: 0; z-index: -1; }
.connexion-visuel img, .connexion-visuel svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.connexion-visuel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 58, 95, .05) 0, rgba(30, 58, 95, .35) 45%, rgba(30, 58, 95, .9) 85%, var(--nuit) 100%); }
.connexion-marque .credit { right: 12px; bottom: 10px; }
@media (max-width: 899.98px) { .connexion-visuel .molecule { display: none; } }
.connexion { width: 100%; max-width: 420px; margin: 0 auto; padding: 28px 22px 40px; }
.connexion h1 { font: 650 24px/1.25 var(--titre); color: var(--nuit); margin: 0 0 4px; letter-spacing: -.01em; }
.connexion .intro { color: var(--ardoise); margin: 0 0 8px; font-size: 15px; }
.connexion .actions .b { width: 100%; }
.connexion .petit { text-align: center; margin-top: 28px; line-height: 1.6; }
@media (min-width: 900px) {
  .connexion-page { flex-direction: row; }
  .connexion-marque { flex: 0 0 46%; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; text-align: left; padding: 48px 52px 56px; }
  .connexion-marque .symbole { margin: 0 0 18px; }
  .connexion-marque .mot { font-size: 46px; padding-left: 0; }
  .connexion-marque .sous { font-size: 17px; max-width: 34ch; }
  .connexion-marque .sous::before { margin: 18px 0 16px; }
  .connexion-zone { flex: 1; display: flex; align-items: center; justify-content: center; }
  .connexion { padding: 40px 36px; }
}

/* ---------------------------------------------------------------- fenêtres, messages */
.voile { position: fixed; inset: 0; background: rgba(36, 50, 71, .5); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: voile-entre 140ms ease-out; }
.fenetre { background: var(--blanc); width: 100%; max-width: 580px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--ombre-flottant); animation: fenetre-entre 180ms cubic-bezier(.2, .8, .2, 1); }
.fenetre h3 { margin-top: 0; color: var(--nuit); font-size: 19px; padding-bottom: 12px; border-bottom: 1px solid var(--perle); margin-bottom: 4px; }
@media (min-width: 640px) { .voile { align-items: center; padding: 20px; } .fenetre { border-radius: var(--r-grand); padding: 24px 26px; } }
.fenetre.large { max-width: 920px; }
.fenetre img.apercu { max-width: 100%; border-radius: 8px; border: 1px solid var(--perle); }
@keyframes voile-entre { from { opacity: 0; } to { opacity: 1; } }
@keyframes fenetre-entre { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 460px); }
@media (min-width: 1024px) { #toasts { bottom: 28px; left: auto; right: 28px; transform: none; width: 400px; } }
.toast { background: var(--nuit); color: #fff; padding: 13px 16px 13px 15px; border-radius: 10px; font-size: 14.5px; line-height: 1.45; box-shadow: var(--ombre-flottant);
  border-left: 3px solid var(--bleu); animation: fenetre-entre 180ms cubic-bezier(.2, .8, .2, 1); }
.toast.erreur-t { background: var(--rouge); border-left-color: var(--rouge-bord); }
.toast.ok-t { background: var(--vert); border-left-color: var(--vert-bord); }

/* ---------------------------------------------------------------- messagerie */
.fil { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.bulle { max-width: 85%; padding: 10px 14px; border-radius: 14px; background: var(--blanc); border: 1px solid var(--perle); align-self: flex-start; }
.bulle.moi { align-self: flex-end; background: var(--bleu-pale); border-color: var(--bleu-bord); }
.bulle .auteur { font-size: 12.5px; font-weight: 600; color: var(--nuit); }
.bulle .heure { font-size: 12px; color: var(--ardoise); margin-top: 3px; }
.bulle.retire { font-style: italic; color: var(--ardoise); }
.bulle .lien-objet { display: inline-block; margin-top: 4px; font-size: 13.5px; background: var(--blanc); border: 1px dashed var(--perle-fonce); border-radius: 8px; padding: 3px 9px; }
.saisie-message { position: sticky; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); background: var(--ivoire); padding: 8px 0; display: flex; gap: 8px; align-items: flex-end; }
.saisie-message textarea { min-height: 48px; height: 48px; }
@media (min-width: 1024px) { .saisie-message { bottom: 0; } }

/* ---------------------------------------------------------------- signature */
.signature { border: 1.5px dashed var(--trait); border-radius: 10px; background: var(--blanc); touch-action: none; width: 100%; height: 190px; display: block; }

/* ---------------------------------------------------------------- terrain (téléphone, tablette, écran tactile) : rien à toucher sous 44 px */
@media (max-width: 1023.98px), (pointer: coarse) {
  button.b.mini, a.b.mini { min-height: 44px; padding: 8px 15px; }
  .onglets a, .onglets button { min-height: 44px; min-width: 44px; justify-content: center; padding: 8px 16px; }
  .menu-lateral a.entree { min-height: 44px; }
  .liste-choix button { min-height: 52px; }
  details.donnees > summary { min-height: 44px; }
  .barre-ligne { min-height: 44px; }
}
/* tablette : deux colonnes là où le téléphone n'en a qu'une */
@media (min-width: 640px) and (max-width: 1023.98px) {
  main { padding: 22px 24px calc(100px + env(safe-area-inset-bottom, 0px)); }
  .grille { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  h2 { font-size: 25px; }
}

/* ---------------------------------------------------------------- mouvement réduit, impression */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  body.charge::after { background: var(--bleu); }
}
.imprimable-seul { display: none; }
/* ---------------------------------------------------------------- version 1.7 : ventes des grossistes */
.filtres-ventes { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin: 0 0 16px; }
.filtres-ventes .champ-filtre { flex: 1 1 170px; max-width: 260px; min-width: 0; }
.filtres-ventes label { margin: 0 0 4px; }
.filtres-ventes select { padding-top: 8px; padding-bottom: 8px; }
.grille-saisie { font-size: 14px; }
.grille-saisie th.grossiste { text-align: center; border-left: 2px solid var(--perle-fonce); }
.grille-saisie td.produit { min-width: 190px; max-width: 260px; }
.grille-saisie td.saisie { padding: 4px 3px; }
.grille-saisie td.saisie input { width: 76px; min-width: 64px; padding: 7px 8px; font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.grille-saisie td.importee input { background: var(--bleu-pale); }
.grille-saisie.objectifs td.saisie input { width: 84px; }
.grille-saisie tr.total td { border-top: 2px solid var(--perle-fonce); background: var(--gris-pale); font-weight: 600; }
/* première colonne fixe quand la grille défile en largeur */
.grille-saisie td.produit { position: sticky; left: 0; z-index: 1; background: var(--blanc); box-shadow: 1px 0 0 var(--perle); }
.grille-saisie tr:hover > td.produit { background: var(--survol); }
.grille-saisie tr.total > td.produit { background: var(--gris-pale); }
.grille-saisie td.hors-gamme { color: var(--trait); background: var(--survol); text-align: center; vertical-align: middle; }
.grille-saisie td.a-revoir input { border-color: var(--orange-vif); }
.table-produits-ventes td:first-child { min-width: 170px; }
.table-produits-ventes td:last-child { white-space: normal; min-width: 150px; }
.defile[data-clavier]:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
@media (max-width: 759.98px) {
  .grille-saisie td.produit { min-width: 118px; max-width: 150px; padding: 8px 8px; }
  .grille-saisie td.saisie input, .grille-saisie.objectifs td.saisie input { width: 66px; min-width: 56px; padding: 7px 6px; }
}
.choix-ligne { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--encre); margin: 12px 0; }
.choix-ligne input { width: auto; margin-top: 3px; }
.pastille-serie { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }
.zones-choix label { flex: 1 1 260px; border-radius: 10px; }
.zones-choix label .petit { margin-left: 4px; }

/* Double authentification (version 1.8) : étapes d'activation, code QR, clé, codes de secours */
button.lien { background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--bleu); font: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
button.lien:hover { color: var(--bleu-fonce); }
.etapes-da { margin: 14px 0 6px; padding-left: 22px; line-height: 1.55; }
.etapes-da li { margin-bottom: 12px; }
.etapes-da li::marker { font-weight: 700; color: var(--nuit); }
.qr-da { width: 232px; max-width: 100%; margin: 12px 0 10px; padding: 6px; background: #fff; border: 1px solid var(--perle); border-radius: 10px; }
.qr-da svg { display: block; width: 100%; height: auto; }
.cle-da { font: 600 16px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; color: var(--nuit);
  background: var(--perle); border-radius: 8px; padding: 8px 10px; margin-top: 6px; word-break: break-all; user-select: all; }
.codes-da { columns: 2; column-gap: 28px; margin: 12px 0 16px; padding-left: 26px; }
.codes-da li { font: 600 17px/2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--nuit); break-inside: avoid; }
@media (max-width: 360px) { .codes-da { columns: 1; } }

/* ================================================================ version 1.8.3 : plus de couleurs, des animations
   Base : design de la version 1.8.1, rétabli à l'identique (palette « Pilotage médical & réglementaire », codes exacts) ;
   le design de la version 1.8.2 est abandonné. Ajouts du 11 novembre 2026 (« retourner à la version 1.8.1 et ajouter plus
   de couleurs et d'animations ») :
   - deux couleurs d'accent, prises hors des couleurs de statut : turquoise #0B7F86 et violet #7048E8. Avec le bleu médical,
     elles colorent les cartes de chiffres, les accès directs, les icônes du menu et les dégradés. Le vert, l'ambre et le
     rouge gardent leur sens : conforme, échéance proche, alerte ;
   - texte blanc sur les cartes colorées : 4,5:1 au moins en tout point du dégradé (bleu #2B74DA 4,55, turquoise #0B7F86
     4,78, violet #7048E8 5,55, rouge #C94C4C 4,54) ; texte anthracite sur l'ambre (5,08 à 5,92) ; icônes du menu sur le
     bleu profond : 5,3 à 7,1:1 ; barres des graphiques sur blanc : 3,6 à 3,9:1 ;
   - animations brèves (0,2 à 1,1 s ; opacité et déplacement seulement) : arrivée des écrans en cascade, jauges et barres
     qui se remplissent, graphiques qui se dessinent, survols, fenêtres, messages, pastilles de notification. Le motif de
     la zone de bienvenue bouge moins de 5 secondes, puis s'arrête (WCAG 2.2.2). Aucune animation quand l'appareil demande
     de réduire les animations (règle « mouvement réduit » plus haut), ni à l'impression. Aucun chiffre n'est animé :
     chacun s'affiche exact dès son apparition. */
:root {
  --turquoise: #0B7F86; --turquoise-fonce: #0A6670; --turquoise-vif: #0F95A0; --turquoise-pale: #EBF5F5;   /* pâle : 8 % */
  --violet: #7048E8; --violet-fonce: #5B37C2; --violet-pale: #F4F0FD;
  --bleu-carte: #2B74DA; --bleu-carte-fonce: #1F57B0; --bleu-teinte: #EEF5FE;                              /* teinte : 8 % */
  --rouge-fonce: #B03E3E; --ambre-fonce: #DE9226; --nuit-teinte: #EDEFF2;
  /* icônes du menu latéral, une teinte par rubrique (contraste sur le bleu profond entre parenthèses) */
  --menu-bleu: #8DB9F5; --menu-turquoise: #5CC8C2; --menu-violet: #B9A3F5; --menu-ambre: #F2C46D;   /* 5,7 ; 5,8 ; 5,3 ; 7,1 */
  --degrade-vif: linear-gradient(135deg, #2B74DA 0%, #7048E8 100%);
  --degrade-donnees: linear-gradient(90deg, #2F80ED 0%, #0F95A0 100%);
  --degrade-marque: linear-gradient(90deg, #2F80ED 0%, #0F95A0 50%, #7048E8 100%);
  --ombre-couleur: 0 8px 20px -10px rgba(30, 58, 95, .55);
  --ombre-levee: 0 14px 28px -12px rgba(30, 58, 95, .42), 0 2px 6px rgba(36, 50, 71, .06);
  --ressort: cubic-bezier(.2, .8, .2, 1);
}

/* ---------------------------------------------------------------- 1.8.3 : cadre */
body.charge::after { background-image: linear-gradient(90deg, transparent 0, #2F80ED 22%, #0F95A0 50%, #7048E8 78%, transparent 100%); }
header.haut::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--degrade-marque); }
.barre-haut::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--degrade-marque); }
.initiales, header.haut .icone-bouton.initiales-bouton { background: var(--degrade-vif); border-color: transparent; }
.badge.pop { animation: pop .5s var(--ressort); }

/* menu latéral : une teinte d'icône par rubrique ; entrée active en dégradé bleu–violet (blanc 4,55 à 5,55:1) */
.menu-lateral a.entree svg { opacity: 1; color: var(--menu-bleu); transition: transform var(--duree) var(--ressort), color var(--duree); }
.menu-lateral .rubrique:nth-of-type(1) ~ a.entree svg { color: var(--menu-bleu); }
.menu-lateral .rubrique:nth-of-type(2) ~ a.entree svg { color: var(--menu-turquoise); }
.menu-lateral .rubrique:nth-of-type(3) ~ a.entree svg { color: var(--menu-violet); }
.menu-lateral .rubrique:nth-of-type(4) ~ a.entree svg { color: var(--menu-ambre); }
.menu-lateral .rubrique:nth-of-type(5) ~ a.entree svg { color: var(--menu-bleu); }
.menu-lateral .rubrique:nth-of-type(6) ~ a.entree svg { color: var(--menu-turquoise); }
.menu-lateral .rubrique:nth-of-type(7) ~ a.entree svg { color: var(--menu-violet); }
.menu-lateral .rubrique:nth-of-type(8) ~ a.entree svg { color: var(--menu-ambre); }
.menu-lateral a.entree:hover { background: rgba(255, 255, 255, .07); }
.menu-lateral a.entree:hover svg { transform: translateX(2px); }
.menu-lateral a.entree.actif, .menu-lateral a.entree.actif:hover { background: var(--degrade-vif); box-shadow: 0 8px 18px -10px rgba(43, 116, 218, .9); }
.menu-lateral a.entree.actif svg, .menu-lateral .rubrique ~ a.entree.actif svg { color: #fff; transform: none; }

/* ---------------------------------------------------------------- 1.8.3 : titres, cartes, boutons */
main h3::before { content: ""; display: inline-block; width: 4px; height: .92em; margin: 0 10px 0 0; border-radius: 2px; vertical-align: -.08em;
  background: linear-gradient(180deg, #2F80ED, #0F95A0); }
a.carte, button.carte { transition: border-color var(--duree), box-shadow var(--duree), transform var(--duree) var(--ressort); }
a.carte:hover, button.carte:hover { transform: translateY(-2px); }
button.b, a.b { transition: background-color var(--duree), border-color var(--duree), color var(--duree), transform var(--duree) var(--ressort), box-shadow var(--duree); }
button.b:not(:disabled):hover, a.b:not([aria-disabled="true"]):hover { transform: translateY(-1px); box-shadow: 0 8px 16px -10px rgba(30, 58, 95, .65); }
button.b.second:not(:disabled):hover, a.b.second:hover, button.b.danger:not(:disabled):hover, a.b.danger:hover { box-shadow: 0 6px 14px -10px rgba(30, 58, 95, .45); }
button.b:not(:disabled):active, a.b:not([aria-disabled="true"]):active { transform: translateY(0) scale(.985); box-shadow: none; }
/* « Nouvelle visite » (accueil du délégué) : dégradé bleu–violet, texte blanc 4,55 à 5,55:1 */
a.b.gros-bouton, a.b.gros-bouton:hover { background: var(--degrade-vif); color: #fff; box-shadow: 0 12px 24px -12px rgba(43, 116, 218, .85); }
th { background: var(--bleu-pale); color: var(--nuit); }
.graphique { position: relative; }
/* trait de couleur en haut de chaque graphique, entre les deux coins arrondis : le fond de la carte reste blanc uni */
.graphique::before { content: ""; position: absolute; top: -1px; left: 11px; right: 11px; height: 3px; border-radius: 0 0 2px 2px;
  background: var(--degrade-marque); pointer-events: none; }
.synthese { background: radial-gradient(85% 120% at 100% 0%, rgba(15, 149, 160, .30) 0, rgba(15, 149, 160, 0) 60%),
  radial-gradient(70% 100% at 85% 115%, rgba(112, 72, 232, .30) 0, rgba(112, 72, 232, 0) 62%), var(--nuit); }
.synthese-date::after, .connexion-marque .sous::before { width: 44px; background: var(--degrade-marque); }
.alerte-item.info { box-shadow: inset 3px 0 0 var(--bleu); }
.alerte-item.action { box-shadow: inset 3px 0 0 var(--orange); }
.alerte-item.alerte { box-shadow: inset 3px 0 0 var(--rouge); }
nav.bas a.actif svg { color: var(--bleu); }
nav.bas a.actif::before { width: 34px; margin-left: -17px; background: var(--degrade-marque); animation: barre-onglet .32s var(--ressort) backwards; }

/* ---------------------------------------------------------------- 1.8.3 : cartes de chiffres en couleur
   Une couleur par position, dans un ordre fixe : bleu, turquoise, violet ; une carte en alerte passe au rouge. */
.indicateurs { gap: 12px; background: none; border: 0; border-radius: 0; overflow: visible; }
.indicateur, .tuile, .jour-chiffres > div { --fond: linear-gradient(135deg, var(--bleu-carte), var(--bleu-carte-fonce)); position: relative; isolation: isolate; overflow: hidden;
  background: var(--fond); color: #fff; border: 0; border-radius: var(--r-carte); box-shadow: var(--ombre-couleur);
  transition: transform var(--duree) var(--ressort), box-shadow var(--duree); }
.indicateur::before, .tuile::before, .jour-chiffres > div::before { content: ""; position: absolute; z-index: -1; width: 128px; height: 128px; right: -40px; top: -52px; border-radius: 50%;
  background: rgba(0, 0, 0, .09); pointer-events: none; }
.indicateur::after { content: ""; position: absolute; z-index: -1; width: 84px; height: 84px; right: 30px; bottom: -54px; border-radius: 50%; background: rgba(0, 0, 0, .06); pointer-events: none; }
/* Ronds décoratifs sombres : ils ne font qu'assombrir le fond, donc le texte blanc garde au moins 5,05:1 par-dessus (un rond
   blanc l'aurait fait tomber à 3,8:1 sur le bleu clair). Sur la tuile ambre, à texte anthracite, le rond est clair (6,08:1). */
.tuile.action::before { background: rgba(255, 255, 255, .18); }
.indicateur:nth-child(3n+2), .jour-chiffres > div:nth-child(2) { --fond: linear-gradient(135deg, var(--turquoise), var(--turquoise-fonce)); }
.indicateur:nth-child(3n) { --fond: linear-gradient(135deg, var(--violet), var(--violet-fonce)); }
.indicateur:has(.v[style*="--alerte"]) { --fond: linear-gradient(135deg, var(--rouge), var(--rouge-fonce)); }
a.indicateur:hover, .tuile:hover { background: var(--fond); transform: translateY(-3px); box-shadow: var(--ombre-levee); }
a.indicateur:hover { color: #fff; }
.indicateur .l, .indicateur .s, .indicateur .v, .indicateur .v small, .jour-chiffres .v, .jour-chiffres .l, .tuile .n, .tuile .l { color: #fff; }
.indicateur .v[style*="--alerte"] { color: #fff !important; }   /* la carte entière passe au rouge : le chiffre reste lisible */
.indicateur .petit, .indicateur .aide, .tuile .petit, .tuile .s, .jour-chiffres .petit { color: inherit; }   /* textes secondaires des cartes en couleur */
.indicateur .l { font-weight: 600; }
.indicateur .jauge { background: rgba(0, 0, 0, .18); }
.indicateur .jauge > span { background: #fff; }
.indicateur .tendance, .indicateur .tendance.hausse, .indicateur .tendance.baisse { background: rgba(0, 0, 0, .14); color: #fff; }
.indicateur :focus-visible, a.indicateur:focus-visible, a.tuile:focus-visible { outline-offset: 3px; }
.jour-chiffres { gap: 10px; background: none; border: 0; overflow: visible; }
.jour-chiffres > div { padding: 14px 16px; }
/* « À traiter » : la couleur du niveau, sur toute la tuile (alerte rouge, action ambre à texte anthracite, information bleue) */
.tuile.alerte { --fond: linear-gradient(135deg, var(--rouge), var(--rouge-fonce)); }
.tuile.action { --fond: linear-gradient(135deg, var(--orange), var(--ambre-fonce)); color: var(--encre); }
.tuile.action .n, .tuile.action .l, .tuile.action:hover { color: var(--encre); }
.tuile:hover { color: #fff; }
.tuile::after { background: #fff; }
.tuile.alerte::after { background: #fff; }
.tuile.action::after { box-shadow: inset 0 0 0 2px var(--encre); }
.tuile.alerte .n, .tuile.action .n { color: inherit; }
/* cartes de chiffres des écrans de travail : liseré et chiffre en couleur, fond blanc */
.carte.kpi { --k: var(--bleu-carte); border-top: 3px solid var(--k); }
.carte.kpi:nth-child(3n+2) { --k: var(--turquoise); }
.carte.kpi:nth-child(3n) { --k: var(--violet); }
.carte.kpi .chiffre { color: var(--k); }
.chiffres > div { box-shadow: inset 0 3px 0 #2F80ED; }
.chiffres > div:nth-child(3n+2) { box-shadow: inset 0 3px 0 var(--turquoise-vif); }
.chiffres > div:nth-child(3n) { box-shadow: inset 0 3px 0 var(--violet); }
.jauge > span { background: var(--degrade-donnees); }
.jauge.depasse > span { background: var(--rouge); }
.jauge.haute > span { background: var(--orange-vif); }
/* accès directs (et page « Toutes les fonctions ») : pastille d'icône en couleur, pleine au survol */
.acces a { transition: background-color var(--duree); }
.acces a svg { background: var(--bleu-teinte); color: var(--bleu); transition: background-color var(--duree), color var(--duree), transform var(--duree) var(--ressort); }
.acces a:nth-child(4n+2) svg { background: var(--turquoise-pale); color: var(--turquoise); }
.acces a:nth-child(4n+3) svg { background: var(--violet-pale); color: var(--violet); }
.acces a:nth-child(4n) svg { background: var(--nuit-teinte); color: var(--nuit); }
.acces a:hover svg { background: var(--bleu); color: #fff; transform: scale(1.06); }
.acces a:nth-child(4n+2):hover svg { background: var(--turquoise); }
.acces a:nth-child(4n+3):hover svg { background: var(--violet); }
.acces a:nth-child(4n):hover svg { background: var(--nuit); }

/* ---------------------------------------------------------------- 1.8.3 : graphiques en couleur */
.barres:not(.imbriquees) .barre-piste:not(.colore) .barre { background: var(--degrade-donnees); }

/* ---------------------------------------------------------------- 1.8.3 : animations
   À l'arrivée sur un écran, le noyau pose la classe « apparition » sur le contenu pendant 1,5 s : rien ne bouge quand
   le même écran se redessine après une action. */
@keyframes monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes apparait { from { opacity: 0; } to { opacity: 1; } }
@keyframes pousse-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pousse-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { transform: scale(.3); } 65% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes barre-onglet { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes tourne { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes scintille { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes respire { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes fenetre-entre { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes message-entre { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes message-entre-cote { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }

#contenu.apparition > :not(.tableau-accueil), #contenu.apparition .tableau-accueil > section { animation: monte .42s var(--ressort) backwards; }
#contenu.apparition > :nth-child(2), #contenu.apparition .tableau-accueil > section:nth-child(2) { animation-delay: 50ms; }
#contenu.apparition > :nth-child(3), #contenu.apparition .tableau-accueil > section:nth-child(3) { animation-delay: 100ms; }
#contenu.apparition > :nth-child(4), #contenu.apparition .tableau-accueil > section:nth-child(4) { animation-delay: 150ms; }
#contenu.apparition > :nth-child(5), #contenu.apparition .tableau-accueil > section:nth-child(5) { animation-delay: 200ms; }
#contenu.apparition > :nth-child(6), #contenu.apparition .tableau-accueil > section:nth-child(6) { animation-delay: 250ms; }
#contenu.apparition > :nth-child(7), #contenu.apparition .tableau-accueil > section:nth-child(7) { animation-delay: 300ms; }
#contenu.apparition > :nth-child(n+8), #contenu.apparition .tableau-accueil > section:nth-child(n+8) { animation-delay: 340ms; }
#contenu.apparition .indicateur, #contenu.apparition .tuile, #contenu.apparition .jour-chiffres > div, #contenu.apparition .carte.kpi { animation: monte .46s var(--ressort) 80ms backwards; }
#contenu.apparition .indicateur:nth-child(2), #contenu.apparition .tuile:nth-child(2), #contenu.apparition .jour-chiffres > div:nth-child(2), #contenu.apparition .carte.kpi:nth-child(2) { animation-delay: 140ms; }
#contenu.apparition .indicateur:nth-child(3), #contenu.apparition .tuile:nth-child(3), #contenu.apparition .carte.kpi:nth-child(3) { animation-delay: 200ms; }
#contenu.apparition .indicateur:nth-child(4), #contenu.apparition .tuile:nth-child(4), #contenu.apparition .carte.kpi:nth-child(4) { animation-delay: 260ms; }
#contenu.apparition .indicateur:nth-child(5), #contenu.apparition .tuile:nth-child(5), #contenu.apparition .carte.kpi:nth-child(5) { animation-delay: 320ms; }
#contenu.apparition .indicateur:nth-child(n+6), #contenu.apparition .tuile:nth-child(n+6), #contenu.apparition .carte.kpi:nth-child(n+6) { animation-delay: 380ms; }
#contenu.apparition .acces > a { animation: monte .4s var(--ressort) 120ms backwards; }
#contenu.apparition .acces > a:nth-child(2) { animation-delay: 160ms; }
#contenu.apparition .acces > a:nth-child(3) { animation-delay: 200ms; }
#contenu.apparition .acces > a:nth-child(4) { animation-delay: 240ms; }
#contenu.apparition .acces > a:nth-child(5) { animation-delay: 280ms; }
#contenu.apparition .acces > a:nth-child(n+6) { animation-delay: 320ms; }
#contenu.apparition .jauge > span { transform-origin: 0 50%; animation: pousse-x .8s var(--ressort) .35s backwards; }
#contenu.apparition .barre { transform-origin: 0 50%; animation: pousse-x .7s var(--ressort) .15s backwards; }
#contenu.apparition .barre-ligne:nth-child(2) .barre { animation-delay: .19s; }
#contenu.apparition .barre-ligne:nth-child(3) .barre { animation-delay: .23s; }
#contenu.apparition .barre-ligne:nth-child(4) .barre { animation-delay: .27s; }
#contenu.apparition .barre-ligne:nth-child(5) .barre { animation-delay: .31s; }
#contenu.apparition .barre-ligne:nth-child(6) .barre { animation-delay: .35s; }
#contenu.apparition .barre-ligne:nth-child(7) .barre { animation-delay: .39s; }
#contenu.apparition .barre-ligne:nth-child(n+8) .barre { animation-delay: .43s; }
#contenu.apparition .barre-valeur, #contenu.apparition .barre-repere { animation: apparait .4s ease-out .55s backwards; }
/* graphiques dessinés par le navigateur : au premier dessin seulement (pas au redimensionnement) */
.graphique svg.anime path.col { transform-box: fill-box; transform-origin: 50% 100%; animation: pousse-y .65s var(--ressort) backwards;
  animation-delay: calc(var(--i, 0) * 12ms + 60ms); }
.graphique svg.anime .trace { stroke-dasharray: 1; animation: trace 1.1s ease-out .1s backwards; }
.graphique svg.anime .aire { animation: apparait .8s ease-out .4s backwards; }
.graphique svg.anime text.valeur, .graphique svg.anime .point-fin { animation: apparait .4s ease-out .7s backwards; }
.graphique svg.anime .cible-g { animation: monte .5s var(--ressort) backwards; animation-delay: calc(var(--i, 0) * 25ms + 60ms); }
/* zone de bienvenue et connexion : le motif bouge moins de 5 secondes, puis s'arrête */
.motif .molecule { transform-box: fill-box; transform-origin: 50% 50%; animation: flotte 2.3s ease-in-out .2s 2; }   /* fin à 4,8 s */
.motif .anneau { transform-box: fill-box; transform-origin: 50% 50%; animation: tourne 4.6s linear .2s 1; }   /* fin à 4,8 s */
.motif .points circle { animation: scintille 1.6s ease-in-out 2; }
.motif .points circle:nth-child(3n+2) { animation-delay: .4s; }
.motif .points circle:nth-child(3n) { animation-delay: .8s; }
.motif .halo { animation: respire 2.3s ease-in-out 2; }
.connexion { animation: monte .55s var(--ressort) .1s backwards; }
.connexion-marque .symbole, .connexion-marque .mot, .connexion-marque .sous { animation: monte .6s var(--ressort) backwards; }
.connexion-marque .mot { animation-delay: .08s; }
.connexion-marque .sous { animation-delay: .16s; }
/* fenêtres et messages */
.voile { animation: voile-entre .2s ease-out; }
.fenetre { animation: fenetre-entre .26s var(--ressort); }
.toast { animation: message-entre .3s var(--ressort); }
@media (min-width: 1024px) { .toast { animation-name: message-entre-cote; } }

@media print {
  header.haut, nav.bas, .menu-lateral, .barre-haut, .actions, .onglets, .bandeau-reseau, .retour, #toasts, .pas-imprime, .synthese-visuel, .infobulle { display: none !important; }
  #app, #app.cadre { display: block; }
  main { padding: 0; max-width: none; }
  body { background: #fff; font-size: 12px; }
  .carte, .graphique, .tuile, .indicateurs { box-shadow: none; break-inside: avoid; }
  .synthese { background: #fff; color: var(--encre); border: 1px solid var(--perle); }
  .synthese h2, .synthese-phrase, .synthese-phrase b { color: var(--encre); }
  .imprimable-seul { display: block; }
  /* version 1.8.1 : pastilles pleines à texte blanc — leur fond s'imprime, sinon le texte blanc disparaîtrait sur le papier */
  .pastille.ok, .pastille.att, .pastille.non, .pastille.gris { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* version 1.8.3 : cartes en couleur à texte blanc — leur fond s'imprime ; aucune animation sur le papier */
  .indicateur, .tuile, .jour-chiffres > div, a.b.gros-bouton, .graphique::before, main h3::before, th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .barres .barre, .jauge, .jauge > span, .legende i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }   /* barres, jauges et légendes : imprimées même sans « graphismes d'arrière-plan » */
  .indicateur, .tuile, .jour-chiffres > div { box-shadow: none; break-inside: avoid; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ================================================================ version 1.9 : interface enrichie (16 novembre 2026)
   Demande : « une belle interface d'utilisation innovante avec des couleurs, des décorations », en enrichissant la 1.8.3.
   La palette, les codes de statut (vert, ambre, rouge), les textes et la structure des écrans ne changent pas. Ajouts :
   - fond « aurore » : halos très pâles (bleu, turquoise, violet) et trame d'alvéoles derrière le contenu ;
   - menu latéral en dégradé avec halos et alvéoles ; barre supérieure en verre dépoli ; sur téléphone, barre du bas
     flottante, arrondie, avec bulle de couleur sous l'onglet actif ;
   - cartes plus rondes, à ombre douce ; quatrième couleur de carte de chiffres (bleu profond) ; reflets et alvéoles ;
   - titres d'écran soulignés d'un trait de couleur, boutons principaux en dégradé, onglets, champs et fenêtres plus ronds ;
   - bandeaux d'explication avec pictogramme ; tableaux à en-tête teinté et lignes alternées ; états vides illustrés.
   Contrastes (texte normal ≥ 4,5:1) : blanc sur le dégradé des boutons #1E3A5F→#2B5BA8 : 11,5 à 6,5 ; blanc sur la carte bleu profond #24487A→#1E3A5F : 9,3 à 11,5 ; les halos du
   fond ne dépassent pas 7 % d'opacité (texte anthracite ≥ 11:1). Rien de ce bloc ne s'applique à l'impression. */
@media screen {
  :root {
    --r-champ: 12px; --r-carte: 16px; --r-grand: 22px;
    --degrade-bouton: linear-gradient(135deg, #1E3A5F 0%, #2B5BA8 100%);
    --ombre-carte: 0 1px 2px rgba(36, 50, 71, .04), 0 10px 26px -20px rgba(30, 58, 95, .38);
    --alveoles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='145.5' viewBox='0 0 84 145.5'%3E%3Cpath d='M42 0L84 24.25V72.75L42 97L0 72.75V24.25Z M42 97V145.5' fill='none' stroke='%232F80ED' stroke-opacity='.10' stroke-width='1.2'/%3E%3C/svg%3E");
    --alveoles-claires: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='145.5' viewBox='0 0 84 145.5'%3E%3Cpath d='M42 0L84 24.25V72.75L42 97L0 72.75V24.25Z M42 97V145.5' fill='none' stroke='%23FFFFFF' stroke-opacity='.07' stroke-width='1.2'/%3E%3C/svg%3E");
  }

  /* ---------------------------------------------------------------- 1.9 : textes secondaires plus lisibles
     Le gris bleuté #718096 de la palette ne fait que 4,0:1 sur blanc. Il reste la couleur des traits et des bordures ; les textes
     secondaires prennent la même teinte en plus foncé, #5A687E : 5,7:1 sur blanc, 5,3:1 sur le fond, 5,1:1 sur le bleu pâle. */
  :root { --gris: #718096; --trait: #718096; --ardoise: #5A687E; }

  /* ---------------------------------------------------------------- 1.9 : fond « aurore » */
  body { background:
      radial-gradient(900px 520px at 100% -8%, rgba(15, 149, 160, .07) 0, rgba(15, 149, 160, 0) 70%),
      radial-gradient(760px 520px at 18% 4%, rgba(112, 72, 232, .055) 0, rgba(112, 72, 232, 0) 70%),
      radial-gradient(900px 700px at 60% 110%, rgba(47, 128, 237, .06) 0, rgba(47, 128, 237, 0) 70%),
      var(--ivoire);
    background-attachment: fixed; }
  main { position: relative; }
  main::before { content: ""; position: absolute; z-index: -1; top: 0; right: 0; width: min(560px, 70%); height: 300px; pointer-events: none;
    background: var(--alveoles); -webkit-mask-image: radial-gradient(closest-side at 70% 30%, #000 0, transparent 100%); mask-image: radial-gradient(closest-side at 70% 30%, #000 0, transparent 100%); }
  #app { isolation: isolate; }
  ::selection { background: #D9D0FB; color: var(--nuit); }
  html { scrollbar-color: #B9C6DA transparent; }

  /* ---------------------------------------------------------------- 1.9 : cadre */
  .menu-lateral { background:
      radial-gradient(420px 300px at 110% 0%, rgba(15, 149, 160, .30) 0, rgba(15, 149, 160, 0) 70%),
      radial-gradient(420px 360px at -20% 100%, rgba(112, 72, 232, .34) 0, rgba(112, 72, 232, 0) 70%),
      var(--alveoles-claires),
      linear-gradient(180deg, #1E3A5F 0%, #182E4C 100%); }
  .menu-lateral .marque-bloc { padding-bottom: 16px; }
  .menu-lateral .marque-bloc .symbole { filter: drop-shadow(0 6px 14px rgba(47, 128, 237, .55)); }
  .menu-lateral .rubrique { text-transform: uppercase; font-size: 11px; letter-spacing: .09em; color: #B4BDCB; }
  .menu-lateral a.entree { border-radius: 12px; }
  .menu-lateral a.entree.actif, .menu-lateral a.entree.actif:hover { box-shadow: 0 10px 22px -10px rgba(43, 116, 218, .95), inset 0 1px 0 rgba(255, 255, 255, .22); }
  .barre-haut { background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); border-bottom-color: rgba(113, 128, 150, .2); }
  .cherche-fonction input { border-radius: 999px; background: rgba(245, 247, 250, .9); padding-left: 42px; }
  .cherche-fonction svg.loupe { left: 15px; }
  .profil-puce { border-radius: 999px; padding-right: 16px; }
  .initiales { box-shadow: 0 6px 14px -6px rgba(112, 72, 232, .8), 0 0 0 2px #fff; }
  header.haut { background:
      radial-gradient(260px 120px at 100% 0%, rgba(15, 149, 160, .38) 0, rgba(15, 149, 160, 0) 75%),
      radial-gradient(240px 140px at 0% 120%, rgba(112, 72, 232, .40) 0, rgba(112, 72, 232, 0) 75%),
      var(--nuit); }
  header.haut .icone-bouton { border-radius: 14px; background: rgba(255, 255, 255, .06); }
  /* barre du bas flottante (téléphone, tablette) */
  nav.bas { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding-bottom: 0; border: 1px solid rgba(113, 128, 150, .22); border-radius: 22px;
    background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
    box-shadow: 0 18px 36px -16px rgba(30, 58, 95, .5), 0 2px 6px rgba(36, 50, 71, .06); }
  nav.bas a { min-height: 62px; border-radius: 18px; }
  nav.bas a svg { position: relative; z-index: 1; transition: transform var(--duree) var(--ressort); }
  nav.bas a.actif svg { color: #fff; transform: translateY(-1px); }
  nav.bas a.actif::before { top: 7px; left: 50%; width: 46px; height: 30px; margin-left: -23px; border-radius: 999px; background: var(--degrade-vif);
    box-shadow: 0 8px 16px -8px rgba(43, 116, 218, .9); animation: pop .4s var(--ressort) backwards; }
  nav.bas a .badge { z-index: 2; }
  main { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  @media (min-width: 1024px) { main { padding-bottom: 56px; } }
  .saisie-message { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  @media (min-width: 1024px) { .saisie-message { bottom: 0; } }
  #toasts { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  @media (min-width: 1024px) { #toasts { bottom: 28px; } }

  /* ---------------------------------------------------------------- 1.9 : titres */
  .titre h2 { position: relative; padding-bottom: 10px; }
  .titre h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--degrade-marque); }
  main h3::before { width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); vertical-align: .02em; margin: 0 12px 0 3px; background: var(--degrade-vif); }
  .retour { border-radius: 999px; padding: 0 14px 0 8px; margin-bottom: 6px; background: rgba(47, 128, 237, .08); }
  .retour:hover { background: rgba(47, 128, 237, .14); text-decoration: none; }

  /* ---------------------------------------------------------------- 1.9 : cartes, bandeaux, états vides */
  .carte { border-color: rgba(113, 128, 150, .2); box-shadow: var(--ombre-carte); }
  a.carte:hover, button.carte:hover { box-shadow: var(--ombre-levee); border-color: var(--bleu-trait); }
  .carte.kpi { position: relative; overflow: hidden; isolation: isolate; border-top-width: 0; }
  @supports (background: color-mix(in srgb, red 7%, #fff)) { .carte.kpi { background: linear-gradient(180deg, color-mix(in srgb, var(--k) 7%, #fff) 0, #fff 70%); } }
  .carte.kpi::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--k); }
  .carte.kpi::after { content: ""; position: absolute; z-index: -1; width: 120px; height: 120px; right: -36px; top: -44px; border-radius: 50%; background: color-mix(in srgb, var(--k) 9%, transparent); pointer-events: none; }
  .carte.kpi:nth-child(4n) { --k: var(--nuit); }
  .bandeau { border-radius: 14px; border-left-width: 1px; padding: 13px 16px 13px 48px; background-repeat: no-repeat; background-position: 14px 13px; background-size: 22px 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v5.5M12 7.6h.01'/%3E%3C/svg%3E");
    box-shadow: inset 4px 0 0 var(--nuit); }
  .bandeau.bleu { background-color: var(--bleu-pale); box-shadow: inset 4px 0 0 var(--bleu);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232666BE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v5.5M12 7.6h.01'/%3E%3C/svg%3E"); }
  .bandeau.vert { box-shadow: inset 4px 0 0 var(--vert);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E7D5B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M7.8 12.4l2.8 2.8 5.6-5.9'/%3E%3C/svg%3E"); }
  .bandeau.rouge { box-shadow: inset 4px 0 0 var(--rouge);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B03E3E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.2l9.6 16.8H2.4z'/%3E%3Cpath d='M12 10v4.6M12 17.2h.01'/%3E%3C/svg%3E"); }
  .bandeau.gris { box-shadow: inset 4px 0 0 var(--gris); }
  /* les variantes de la 1.8.3 posent leur fond en raccourci : le pictogramme ne doit ni se répéter ni bouger */
  .bandeau:not(#_), .bandeau.bleu:not(#_) { background-repeat: no-repeat; background-position: 14px 13px; background-size: 22px 22px; }
  .vide { position: relative; padding-top: 74px; }
  .vide::before { content: ""; position: absolute; left: 50%; top: 18px; width: 46px; height: 46px; margin-left: -23px; border-radius: 16px; transform: rotate(8deg);
    background: linear-gradient(135deg, var(--bleu-teinte), var(--violet-pale)); box-shadow: inset 0 0 0 1px rgba(47, 128, 237, .25); }
  .vide::after { content: ""; position: absolute; left: 50%; top: 30px; width: 22px; height: 22px; margin-left: -11px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B74DA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13h5l1.5 3h5L16 13h5'/%3E%3Cpath d='M5.5 5h13L21 13v6H3v-6z'/%3E%3C/svg%3E"); }
  .carte .vide, td .vide, td.vide { padding-top: 18px; }
  .carte .vide::before, .carte .vide::after, td .vide::before, td .vide::after, td.vide::before, td.vide::after { content: none; }
  div.vide:not(.carte div):not(td div) { border-radius: var(--r-carte); background: rgba(255, 255, 255, .7); }

  /* ---------------------------------------------------------------- 1.9 : boutons, onglets, champs */
  button.b, a.b { border-radius: 12px; background: var(--degrade-bouton); box-shadow: 0 8px 16px -12px rgba(30, 58, 95, .9), inset 0 1px 0 rgba(255, 255, 255, .14); }
  button.b:hover, a.b:hover { background: linear-gradient(135deg, #182E4C 0%, #24509A 100%); }
  button.b.second, a.b.second { background: var(--blanc); box-shadow: 0 1px 2px rgba(36, 50, 71, .05); }
  button.b.second:hover, a.b.second:hover { background: var(--bleu-pale); }
  button.b.danger, a.b.danger { background: var(--blanc); box-shadow: 0 1px 2px rgba(36, 50, 71, .05); }
  button.b.danger:hover, a.b.danger:hover { background: var(--rouge-pale); }
  button.b.vert, a.b.vert { background: linear-gradient(135deg, var(--vert) 0%, var(--vert-fonce) 100%); }
  button.b.vert:hover, a.b.vert:hover { background: var(--vert-fonce); }
  a.b.gros-bouton, a.b.gros-bouton:hover { border-radius: 16px; background: var(--degrade-vif); min-height: 56px; font-size: 16.5px; }
  .synthese .b.second, .synthese .b.second:hover { background: rgba(255, 255, 255, .08); box-shadow: none; }
  .onglets a, .onglets button { box-shadow: 0 1px 2px rgba(36, 50, 71, .05); }
  .onglets .actif, .onglets .actif:hover { background: var(--degrade-vif); border-color: transparent; box-shadow: 0 8px 16px -10px rgba(43, 116, 218, .9); }
  input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px rgba(47, 128, 237, .16), 0 6px 16px -10px rgba(112, 72, 232, .6); }
  .choix label { box-shadow: 0 1px 2px rgba(36, 50, 71, .05); }
  .choix label:has(input:checked) { background: linear-gradient(135deg, var(--bleu-pale), var(--violet-pale)); box-shadow: 0 6px 14px -10px rgba(43, 116, 218, .8); }
  .liste-choix { border-radius: 14px; }
  .signature { border-radius: 14px; }

  /* ---------------------------------------------------------------- 1.9 : tableaux */
  th { background: linear-gradient(90deg, var(--bleu-pale), #EEF1FD); }
  tbody tr:nth-child(even) > td { background: #FAFBFD; }
  tr:hover > td, tbody tr:nth-child(even):hover > td { background: var(--bleu-teinte); }
  tr.entete-table:hover > td { background: none; }
  tr.total > td, tbody tr.total:nth-child(even) > td { background: var(--bleu-pale); }
  @media (max-width: 759.98px) {
    table.en-cartes tr { box-shadow: var(--ombre-carte); border-color: rgba(113, 128, 150, .2); }
    table.en-cartes tbody tr:nth-child(even) > td, table.en-cartes tr:hover > td { background: none; }
  }

  /* ---------------------------------------------------------------- 1.9 : accueil */
  .synthese { box-shadow: 0 24px 44px -28px rgba(30, 58, 95, .8); }
  .synthese::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--alveoles-claires);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60%); mask-image: linear-gradient(90deg, transparent 0, #000 60%); }
  .synthese::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 2; background: var(--degrade-marque); }
  .indicateur, .tuile, .jour-chiffres > div { border-radius: 18px; background: var(--alveoles-claires), linear-gradient(120deg, rgba(255, 255, 255, .10) 0, rgba(255, 255, 255, 0) 38%), var(--fond); }
  a.indicateur:hover, .tuile:hover { background: var(--alveoles-claires), linear-gradient(120deg, rgba(255, 255, 255, .10) 0, rgba(255, 255, 255, 0) 38%), var(--fond); }
  .indicateur:nth-child(n) { --fond: linear-gradient(135deg, var(--bleu-carte), var(--bleu-carte-fonce)); }
  .indicateur:nth-child(4n+2) { --fond: linear-gradient(135deg, var(--turquoise), var(--turquoise-fonce)); }
  .indicateur:nth-child(4n+3) { --fond: linear-gradient(135deg, var(--violet), var(--violet-fonce)); }
  .indicateur:nth-child(4n) { --fond: linear-gradient(135deg, #24487A, #1E3A5F); }
  .indicateur:has(.v[style*="--alerte"]) { --fond: linear-gradient(135deg, var(--rouge), var(--rouge-fonce)); }
  .acces a { border-radius: 14px; }
  .acces a svg { border-radius: 12px; }
  .graphique::before { height: 4px; }
  .alerte-item { border-radius: 12px; }

  /* ---------------------------------------------------------------- 1.9 : connexion, fenêtres, messages */
  .connexion-page { background: transparent; }
  .connexion-marque { background:
      radial-gradient(70% 60% at 100% 0%, rgba(15, 149, 160, .40) 0, rgba(15, 149, 160, 0) 70%),
      radial-gradient(70% 60% at 0% 100%, rgba(112, 72, 232, .42) 0, rgba(112, 72, 232, 0) 70%),
      var(--alveoles-claires), var(--nuit); }
  .connexion-marque .symbole { filter: drop-shadow(0 10px 22px rgba(47, 128, 237, .6)); }
  @media (min-width: 900px) {
    .connexion { background: var(--blanc); border: 1px solid rgba(113, 128, 150, .2); border-radius: 24px; box-shadow: 0 30px 60px -36px rgba(30, 58, 95, .55); position: relative; overflow: hidden; }
    .connexion::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--degrade-marque); }
  }
  .voile { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); background: rgba(24, 46, 76, .46); }
  .fenetre { border-radius: 24px 24px 0 0; }
  @media (min-width: 640px) { .fenetre { border-radius: 24px; } }
  .fenetre { background: var(--degrade-marque) top / 100% 5px no-repeat, var(--blanc); }
  .toast { border-radius: 14px; border-left-width: 4px; }
  .bulle { border-radius: 18px 18px 18px 6px; box-shadow: var(--ombre-carte); }
  .bulle.moi { border-radius: 18px 18px 6px 18px; background: linear-gradient(135deg, var(--bleu-pale), var(--violet-pale)); }
  .saisie-message { background: transparent; }
}

/* Version 1.10 — fiche du personnel : un numéro de téléphone reste sur une ligne et, sur téléphone et tablette, se touche
   sur 44 pixels de haut. */
.lien-tel { white-space: nowrap; }
@media (max-width: 1023px) { .lien-tel { display: inline-flex; align-items: center; min-height: 44px; } }

/* Version 1.10 — classement par mandant et par gamme : ligne d'en-tête de groupe dans un tableau. */
tr.groupe td { background: var(--bleu-pale); color: var(--nuit); }


/* Version 1.10.2 — une couleur de barre latérale (et d'en-tête sur téléphone) par type de compte, demande du 19 novembre
   2026. Couleur claire du rôle : icônes, titres de rubrique, nom de l'agence.
   Contrastes calculés (WCAG 2.x) sur la couleur la plus claire du fond : 4,5:1 au moins pour tout texte. */
@media screen {
  [data-role="delegue"] { --role-haut: #1E3A5F; --role-bas: #1B4374; --role-clair: #8DB9F5; --role-actif: #2563C9; }   /* Délégué médical : clair 4.9:1, texte 7.0:1, actif 5.7:1 */
  [data-role="superviseur"] { --role-haut: #0B3B3C; --role-bas: #0D4D50; --role-clair: #7FE0C4; --role-actif: #0F766E; }   /* Superviseur : clair 6.1:1, texte 6.7:1, actif 5.5:1 */
  [data-role="sales_manager"] { --role-haut: #2A1B5E; --role-bas: #432B8F; --role-clair: #C4B1FA; --role-actif: #6D3FE0; }   /* Sales manager : clair 5.6:1, texte 7.4:1, actif 6.1:1 */
  [data-role="direction"] { --role-haut: #3A1F4D; --role-bas: #6A2A35; --role-clair: #F2C46D; --role-actif: #B4233C; }   /* Direction : clair 6.5:1, texte 7.3:1, actif 6.5:1 */
  [data-role="comptable"] { --role-haut: #0B3D2E; --role-bas: #0E4E37; --role-clair: #8FDCB0; --role-actif: #15803D; }   /* Comptable : clair 6.0:1, texte 6.8:1, actif 5.0:1 */
  [data-role="administrateur"] { --role-haut: #1F2937; --role-bas: #334155; --role-clair: #A5B4C8; --role-actif: #475569; }   /* Administrateur : clair 4.9:1, texte 7.2:1, actif 7.6:1 */
  [data-role="responsable_reglementaire"] { --role-haut: #3B1E3F; --role-bas: #5E2750; --role-clair: #F5A3C7; --role-actif: #A21C5E; }   /* Responsable réglementaire : clair 5.8:1, texte 7.8:1, actif 7.3:1 */
  [data-role="laboratoire"] { --role-haut: #3D2914; --role-bas: #5E3B1C; --role-clair: #F3C08A; --role-actif: #9A4A12; }   /* Laboratoire mandant : clair 6.0:1, texte 6.9:1, actif 6.2:1 */
  [data-role="responsable_formation"] { --role-haut: #123A52; --role-bas: #134A63; --role-clair: #7DD3FC; --role-actif: #0369A1; }   /* Responsable de la formation : clair 5.8:1, texte 6.7:1, actif 5.9:1 */
  .menu-lateral[data-role] { background:
      radial-gradient(420px 300px at 110% 0%, color-mix(in srgb, var(--role-clair) 22%, transparent) 0, transparent 70%),
      var(--alveoles-claires),
      linear-gradient(180deg, var(--role-haut) 0%, var(--role-bas) 100%); }
  header.haut[data-role] { background: linear-gradient(120deg, var(--role-haut) 0%, var(--role-bas) 100%); }
  header.haut[data-role] .badge { box-shadow: 0 0 0 2px var(--role-haut); }
  .menu-lateral[data-role] .symbole, header.haut[data-role] .symbole { filter: drop-shadow(0 4px 10px rgba(212, 169, 85, .35)); }
  .menu-lateral[data-role] .rubrique, .menu-lateral[data-role] .marque-bloc .agence { color: var(--role-clair); }
  .menu-lateral[data-role] a.entree svg, .menu-lateral[data-role] .rubrique ~ a.entree svg { color: var(--role-clair); }
  .menu-lateral[data-role] a.entree.actif, .menu-lateral[data-role] a.entree.actif:hover { background: var(--role-actif);
    box-shadow: 0 10px 22px -10px var(--role-actif), inset 0 1px 0 rgba(255, 255, 255, .22); }
  .menu-lateral[data-role] a.entree.actif svg { color: #fff; }
  .menu-lateral[data-role] a.entree .badge { background: var(--role-actif); }
  .menu-lateral[data-role] .marque-bloc { border-bottom: 2px solid color-mix(in srgb, var(--role-clair) 45%, transparent); }
  .menu-lateral[data-role] .version { color: var(--role-clair); }
}

/* Version 1.11 — nouveau logo (« A » d'un trait d'or, choisi le 19 novembre 2026) : halo doré, mot ALANDA plus léger,
   comme sur la planche d'identité visuelle fournie. */
@media screen {
  .connexion-marque .symbole { filter: drop-shadow(0 8px 20px rgba(212, 169, 85, .45)); }
  .menu-lateral .marque-bloc .mot, header.haut .marque span, .connexion-marque .mot { font-weight: 500; letter-spacing: .18em; }
}

/* Version 1.11.1 : résumé de l'accueil sans bandeau (le cadre bleu « Bonjour » est retiré). */
.resume-accueil { margin: 0 0 16px; }
.resume-accueil p { margin: 0; font-size: 15px; line-height: 1.55; max-width: 70ch; }
.resume-accueil .actions { margin-top: 10px; }
