/*
 * Kit visuel commun Strateo, v1.2 du 15/11/2026 : le socle.
 *
 * Extrait du back-office de Palo-Roue (roue.strateo.ai, feuille de style v3
 * du 05/11/2026, piste A « verre net » choisie par Elie) pour servir à tous
 * les outils Strateo : Palo-Roue, Palo-Prospect, Palo-Parc et les suivants.
 * Le kit tient en quatre morceaux, à copier ensemble dans un outil :
 * - strateo-kit.css, ce fichier : variables, police, verre, briques de base
 * - ressort.css : les 23 composants à ressort (v1.1, d'après Plush UI) et le
 *   mouvement donné aux briques de ce socle (v1.2)
 * - strateo-kit.js : le script des composants qui en demandent, pour une
 *   page sans React
 * - react/ : les mêmes composants en React, pour un outil Next.js
 * Plus un thème par client (theme-palomano.css).
 *
 * Principe : ce fichier ne contient aucune couleur de client. Il ne lit que
 * des variables --k-*. Chaque client a son thème, un petit fichier qui donne
 * une valeur à ces variables (theme-palomano.css). Sans thème, le kit prend
 * les couleurs de Strateo (bleu nuit, cuivre, crème, poudrés de la charte
 * v2.0).
 *
 * Règles de la maison :
 * - aucun attribut style dans les pages (la politique de contenu des outils
 *   en ligne le refuse), tout le rendu passe par les classes du kit. Le
 *   script pose ses valeurs par element.style.setProperty, ce qui passe
 * - une seule police, Plus Jakarta Sans, graisses de 500 à 700
 * - le verre (fond blanc translucide flouté) est la seule recette des
 *   surfaces, sur un fond crème parcouru de halos de couleur
 * - quand le téléphone demande moins d'animations, tout se pose sans bouger
 *
 * Courbes de ressort, valeurs d'appui et principe des animations des
 * composants : Plush UI, Copyright (c) 2026 Dominik Martin, licence MIT
 * (notice complète dans NOTICE-PLUSH-UI.md, à garder avec ce fichier).
 */

/* ------------------------------------------------------------------ */
/* Police                                                              */
/* ------------------------------------------------------------------ */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("polices/plus-jakarta-sans-latin-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ */
/* Variables : valeurs par défaut, celles de Strateo                   */
/* ------------------------------------------------------------------ */
:root {
  color-scheme: light;

  /* L'encre : texte et éléments forts */
  --k-encre: #1A2F4E;
  --k-encre-1: #3d4f6b;
  --k-encre-2: #5d6b82;
  --k-encre-forte: #24406a;
  --k-discret: #59657a;
  --k-blanc: #ffffff;

  /* L'accent : liens, graphiques, champ actif */
  --k-accent: #2E4A73;
  --k-accent-texte: #2E4A73;
  --k-accent-voile: 46 74 115;      /* r g b de l'accent, pour les transparences */
  --k-second: #B36B3E;               /* deuxième série des graphiques */

  /* Les états */
  --k-ok: #1E6B4A;  --k-ok-voile: 30 107 74;
  --k-alerte: #A3302B; --k-alerte-fond: #fbeceb; --k-alerte-voile: 163 48 43;
  --k-vigilance: #8A5A0B; --k-vigilance-fond: #fcf5ee; --k-vigilance-bord: 179 107 62;
  --k-avatar: #F8EBDF; --k-avatar-texte: #1A2F4E;

  /* Le fond et ses halos (r g b) */
  --k-fond-page: #F5F1EC;
  --k-halo-1: 231 237 246;
  --k-halo-2: 248 235 223;
  --k-halo-3: 244 247 251;
  --k-halo-4: 252 245 238;
  --k-halo-5: 231 237 246;

  /* Le verre */
  --k-verre: rgb(255 255 255 / 0.58);
  --k-verre-plein: rgb(255 255 255 / 0.86);
  --k-verre-bord: rgb(255 255 255 / 0.92);
  --k-verre-flou: blur(20px) saturate(160%);
  --k-ombre-voile: 26 47 78;         /* r g b de l'encre, pour les ombres */
  --k-verre-ombre: inset 0 1px 0 rgb(255 255 255 / 0.95), 0 24px 48px -30px rgb(var(--k-ombre-voile) / 0.38), 0 2px 6px -3px rgb(var(--k-ombre-voile) / 0.1);
  --k-trait: rgb(var(--k-ombre-voile) / 0.09);
  --k-trait-champ: var(--k-encre-2);

  /* Formes et police */
  --k-police: "Plus Jakarta Sans", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --k-rayon: 14px;
  --k-rayon-grand: 22px;
  --k-rayon-carte: 24px;
  --k-largeur: 78rem;
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--k-police);
  font-size: 1rem; line-height: 1.5; word-spacing: 0.03em;
  color: var(--k-encre);
  background: var(--k-fond-page);
  min-height: 100dvh;
}
/* Les halos, fixes derrière tout le contenu */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42rem 42rem at 6% 4%, rgb(var(--k-halo-1) / 0.95), transparent 62%),
    radial-gradient(44rem 40rem at 98% 8%, rgb(var(--k-halo-2) / 0.82), transparent 62%),
    radial-gradient(46rem 40rem at 55% 72%, rgb(var(--k-halo-3) / 0.62), transparent 62%),
    radial-gradient(40rem 40rem at 100% 100%, rgb(var(--k-halo-4) / 0.9), transparent 60%),
    radial-gradient(36rem 36rem at 0% 100%, rgb(var(--k-halo-5) / 0.7), transparent 60%);
}
h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; word-spacing: 0.06em; margin: 0 0 0.75rem; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 0.75rem; }
a { color: var(--k-accent-texte); text-underline-offset: 2px; }
a:hover { color: var(--k-encre); }
:focus-visible { outline: 3px solid var(--k-accent); outline-offset: 2px; border-radius: 6px; }
small, .discret { color: var(--k-discret); font-size: 0.8125rem; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.repere { color: var(--k-encre-1); font-size: 0.9375rem; max-width: 72ch; }

/* ------------------------------------------------------------------ */
/* Le verre : une seule recette pour toutes les surfaces               */
/* ------------------------------------------------------------------ */
.verre, .barre, .chiffres > div, .table-defile, .carte-verre, .liste-actions > li,
.onglets ul, .fiche, .porte, .modale-boite {
  background: var(--k-verre);
  -webkit-backdrop-filter: var(--k-verre-flou);
  backdrop-filter: var(--k-verre-flou);
  border: 1px solid var(--k-verre-bord);
  box-shadow: var(--k-verre-ombre);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .verre, .barre, .chiffres > div, .table-defile, .carte-verre, .liste-actions > li,
  .onglets ul, .fiche, .porte, .modale-boite { background: var(--k-verre-plein); }
}

/* ------------------------------------------------------------------ */
/* Barre du haut : logo, menu en pilule, menu du compte                */
/* ------------------------------------------------------------------ */
.barre {
  position: sticky; top: 0.75rem; z-index: 20;
  max-width: var(--k-largeur); width: calc(100% - 2rem); margin: 0.75rem auto 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem;
  padding: 0.45rem 0.55rem 0.45rem 1.1rem; border-radius: 28px;
}
.barre-logo { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--k-encre); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; white-space: nowrap; }
.barre-logo img, .barre-logo svg { height: 30px; width: auto; }
.barre nav ul { display: flex; flex-wrap: nowrap; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.barre nav a, .barre nav button {
  display: flex; align-items: center; gap: 0.35rem; padding: 0.5rem 0.75rem; border-radius: 999px; min-height: 0;
  font: inherit; font-weight: 600; font-size: 0.875rem; white-space: nowrap; text-decoration: none; color: var(--k-encre-1);
  background: none; border: 0; box-shadow: none; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease;
}
.barre nav a:hover, .barre nav button:hover { background: rgb(255 255 255 / 0.8); color: var(--k-encre); transform: none; }
.barre nav [aria-current="page"] { background: var(--k-encre); color: var(--k-blanc); box-shadow: 0 8px 18px -10px rgb(var(--k-ombre-voile) / 0.8); }
.barre nav [aria-current="page"]:hover { background: var(--k-encre); color: var(--k-blanc); }
/* Le nombre de choses à faire sur un lien du menu */
.compte-a-faire {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.25rem; height: 1.25rem; padding: 0 0.35rem;
  border-radius: 999px; font-size: 0.7rem; font-weight: 700; background: rgb(var(--k-alerte-voile) / 0.12); color: var(--k-alerte);
}
[aria-current="page"] > .compte-a-faire { background: rgb(255 255 255 / 0.22); color: var(--k-blanc); }
.barre-compte { margin-left: auto; position: relative; }
.barre-compte > summary {
  list-style: none; display: flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.45rem 0.2rem 0.2rem;
  border-radius: 999px; cursor: pointer; color: var(--k-encre-1); font-weight: 600; transition: background-color 0.15s ease;
}
.barre-compte > summary::-webkit-details-marker { display: none; }
.barre-compte > summary:hover, .barre-compte[open] > summary { background: rgb(255 255 255 / 0.85); }
.barre-chevron { width: 0.75rem; height: 0.75rem; transition: transform 0.15s ease; }
.barre-compte[open] .barre-chevron { transform: rotate(180deg); }
.barre-menu {
  position: absolute; right: 0; top: calc(100% + 0.6rem); z-index: 30; width: max-content; min-width: 15rem; max-width: min(20rem, calc(100vw - 2rem));
  display: grid; gap: 0.1rem; padding: 1rem 1.1rem; border-radius: 18px; text-align: left;
  background: var(--k-blanc); border: 1px solid var(--k-trait); box-shadow: 0 24px 48px -24px rgb(var(--k-ombre-voile) / 0.4), 0 2px 6px -3px rgb(var(--k-ombre-voile) / 0.12);
}
.barre-nom { margin: 0; font-weight: 700; color: var(--k-encre); overflow-wrap: anywhere; }
.barre-parc { margin: 0; font-size: 0.875rem; color: var(--k-encre-1); overflow-wrap: anywhere; }
.barre-menu form, .barre-menu .barre-menu-pied { margin: 0.75rem 0 0; }
.barre-menu .bouton-second { width: 100%; min-height: 2.5rem; }
.avatar {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--k-avatar); color: var(--k-avatar-texte); font-weight: 700; font-size: 0.85rem; box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.12);
}

/* Bandeau sous la barre (échéance, maquette, abonnement) */
.bandeau {
  max-width: var(--k-largeur); width: calc(100% - 2rem); margin: 0.75rem auto 0; padding: 0.65rem 1.25rem;
  border-radius: 999px; text-align: center; font-weight: 600;
  background: var(--k-vigilance-fond); border: 1px solid rgb(var(--k-vigilance-bord) / 0.45); box-shadow: 0 10px 24px -20px rgb(var(--k-ombre-voile) / 0.5);
}
.bandeau-alerte { background: var(--k-alerte-fond); border-color: rgb(var(--k-alerte-voile) / 0.4); color: var(--k-alerte); }

/* ------------------------------------------------------------------ */
/* Mise en page                                                        */
/* ------------------------------------------------------------------ */
.contenu { max-width: var(--k-largeur); margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.titre-page { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; margin-bottom: 0.9rem; }
.titre-page h1, .titre-page h2 { margin: 0; }
.titre-page h1 { font-size: clamp(1.9rem, 3.2vw, 2.35rem); letter-spacing: -0.035em; word-spacing: 0.1em; }
.titre-page .pastille { white-space: normal; }
.sous-titre { margin: -0.4rem 0 1.4rem; color: var(--k-encre-1); max-width: 70ch; }
.actions-ligne { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.bloc { margin: 0 0 2rem; }
.pile { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.deux-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1.25rem; }
.trois-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.principal-cote { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: 1.25rem; align-items: start; }
.cote-colle { position: sticky; top: 6rem; }

/* Onglets en pilule, à l'intérieur d'un écran */
.onglets ul { display: inline-flex; flex-wrap: wrap; gap: 0.15rem; list-style: none; padding: 0.3rem; margin: 0 0 1.5rem; border-radius: 999px; }
.onglets a, .onglets button {
  display: block; padding: 0.45rem 1rem; border-radius: 999px; text-decoration: none; font: inherit; font-weight: 600; color: var(--k-encre-1);
  background: none; border: 0; box-shadow: none; min-height: 0; cursor: pointer;
}
.onglets a:hover, .onglets button:hover { background: rgb(255 255 255 / 0.8); color: var(--k-encre); transform: none; }
.onglets [aria-current="page"], .onglets [aria-selected="true"] { background: var(--k-encre); color: var(--k-blanc); }
.onglets [aria-current="page"]:hover, .onglets [aria-selected="true"]:hover { background: var(--k-encre); color: var(--k-blanc); }

/* ------------------------------------------------------------------ */
/* Grands chiffres                                                     */
/* ------------------------------------------------------------------ */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; margin: 0 0 1.25rem; }
.chiffres > div { border-radius: var(--k-rayon-carte); padding: 1.15rem 1.3rem 1.2rem; min-width: 0; }
.chiffres dt { font-size: 0.8125rem; color: var(--k-encre-1); font-weight: 500; }
.chiffres dd { margin: 0.3rem 0 0; font-size: 2.25rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.05; letter-spacing: -0.04em; }
.chiffres dd small { display: block; margin-top: 0.35rem; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0; }
.chiffres .hausse { color: var(--k-ok); font-weight: 700; }
.chiffres .baisse { color: var(--k-alerte); font-weight: 700; }

/* ------------------------------------------------------------------ */
/* Cartes                                                              */
/* ------------------------------------------------------------------ */
.carte-verre { border-radius: var(--k-rayon-carte); padding: 1.3rem 1.4rem; min-width: 0; }
.carte-verre > h2 { font-size: 1.3rem; letter-spacing: -0.025em; margin: 0 0 0.6rem; text-wrap: balance; }
.carte-verre > :last-child { margin-bottom: 0; }
.carte-etiquette { margin: 0 0 0.2rem; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--k-encre-1); }
.carte-entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.5rem 1rem; margin-bottom: 0.6rem; }
.carte-entete h2 { margin: 0; }
.carte-cliquable { text-decoration: none; color: inherit; display: block; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.carte-cliquable:hover { transform: translateY(-2px); color: inherit; }
.fiche { display: grid; gap: 0.5rem; padding: 1.1rem 1.3rem; border-radius: var(--k-rayon-carte); margin: 0 0 1rem; }
.fiche div { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fiche dt { font-weight: 600; min-width: 12rem; }
.fiche dd { margin: 0; }
.vide { margin: 0; padding: 1.4rem; border: 2px dashed var(--k-trait); border-radius: var(--k-rayon); text-align: center; color: var(--k-encre-1); font-weight: 600; }
.alerte {
  background: var(--k-vigilance-fond); border: 1px solid rgb(var(--k-vigilance-bord) / 0.45); padding: 0.7rem 1rem;
  border-radius: var(--k-rayon); max-width: 80ch; box-shadow: 0 10px 24px -20px rgb(var(--k-ombre-voile) / 0.5);
}

/* Pastilles */
.pastille { display: inline-block; padding: 0.15rem 0.7rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; background: rgb(var(--k-ombre-voile) / 0.07); color: var(--k-encre-1); white-space: nowrap; }
.pastille-ok { background: rgb(var(--k-ok-voile) / 0.11); color: var(--k-ok); }
.pastille-info { background: rgb(var(--k-accent-voile) / 0.12); color: var(--k-encre-forte); }
.pastille-alerte { background: rgb(var(--k-alerte-voile) / 0.11); color: var(--k-alerte); }
.pastille-vigilance { background: rgb(var(--k-vigilance-bord) / 0.14); color: var(--k-vigilance); }

/* Listes de lignes en verre */
.liste-actions { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.liste-actions > li { border-radius: var(--k-rayon-grand); padding: 0.75rem 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.liste-actions > li > .grandit { flex: 1 1 14rem; min-width: 0; }
.liste-nue { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.2rem; }
.liste-lignes { list-style: none; padding: 0; margin: 0; }
.liste-lignes > li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--k-trait); }
.liste-lignes > li:last-child { border-bottom: 0; }
.liste-lignes .grandit { flex: 1 1 12rem; min-width: 0; }

/* ------------------------------------------------------------------ */
/* Tableaux                                                            */
/* ------------------------------------------------------------------ */
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; background: transparent; }
th, td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--k-trait); vertical-align: top; }
thead th { font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--k-discret); white-space: nowrap; }
tbody th { font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr { transition: background-color 0.15s ease; }
tbody tr:hover { background: rgb(255 255 255 / 0.55); }
td.nombre, th.nombre { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ligne-total th, .ligne-total td { font-weight: 700; border-top: 2px solid var(--k-trait); }
.table-defile { overflow-x: auto; border-radius: var(--k-rayon-carte); padding: 0.35rem 0.5rem; margin-bottom: 1rem; }
.table-defile table { min-width: 44rem; }

/* ------------------------------------------------------------------ */
/* Boutons                                                             */
/* ------------------------------------------------------------------ */
.bouton, .bouton-second, .bouton-danger, button {
  font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; min-height: 2.75rem; padding: 0.5rem 1.2rem; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.bouton, button { background: var(--k-encre); color: var(--k-blanc); box-shadow: 0 10px 22px -12px rgb(var(--k-ombre-voile) / 0.7); }
.bouton:hover, button:hover { background: var(--k-encre-forte); color: var(--k-blanc); transform: translateY(-1px); }
.bouton-second { background: rgb(255 255 255 / 0.75); color: var(--k-encre); border-color: var(--k-encre); box-shadow: none; }
.bouton-second:hover { background: var(--k-blanc); color: var(--k-encre); }
.bouton-danger { background: rgb(255 255 255 / 0.75); color: var(--k-alerte); border-color: var(--k-alerte); box-shadow: none; }
.bouton-danger:hover { background: var(--k-alerte-fond); color: var(--k-alerte); }
.bouton-petit { min-height: 2rem; padding: 0.2rem 0.85rem; font-size: 0.875rem; }
button:disabled, .bouton[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.lien-bouton { background: none; color: var(--k-accent-texte); padding: 0; min-height: 0; border: 0; font-weight: 500; text-decoration: underline; box-shadow: none; }
.lien-bouton:hover { background: none; color: var(--k-encre); transform: none; }

/* ------------------------------------------------------------------ */
/* Formulaires                                                         */
/* ------------------------------------------------------------------ */
label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.25rem; }
input, select, textarea {
  font: inherit; color: var(--k-encre); background: rgb(255 255 255 / 0.9);
  border: 1.5px solid var(--k-trait-champ); border-radius: 12px; padding: 0.55rem 0.75rem; width: 100%; min-height: 2.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { min-height: 6rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--k-accent); box-shadow: 0 0 0 4px rgb(var(--k-accent-voile) / 0.18); outline: none; }
input[type="checkbox"], input[type="radio"] { width: 1.15rem; height: 1.15rem; min-height: 0; accent-color: var(--k-accent); flex: none; margin-top: 0.15rem; box-shadow: none; }
input[type="search"] { border-radius: 999px; padding-left: 1rem; }
.formulaire { display: grid; gap: 0.75rem; margin: 0.5rem 0 1rem; }
.formulaire-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.grille-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.75rem 1rem; align-items: start; }
.champ-large { grid-column: 1 / -1; }
.champ small { display: block; margin-top: 0.25rem; }
.champ-requis > label::after { content: " *"; color: var(--k-alerte); }
.case { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 500; }
.message-ok { color: var(--k-ok); font-weight: 700; }
.message-erreur { color: var(--k-alerte); font-weight: 700; }
.filtres { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 0 0 1rem; }
.filtres input[type="search"] { flex: 1 1 16rem; width: auto; }
.filtres select { width: auto; min-width: 10rem; }
details > summary { cursor: pointer; font-weight: 600; color: var(--k-accent-texte); padding: 0.35rem 0; }

/* ------------------------------------------------------------------ */
/* Fenêtre par-dessus l'écran                                          */
/* ------------------------------------------------------------------ */
.modale { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1rem; background: rgb(var(--k-ombre-voile) / 0.35); }
.modale[hidden] { display: none; }
.modale-boite { width: min(40rem, 100%); max-height: calc(100dvh - 2rem); overflow: auto; border-radius: 28px; padding: 1.5rem 1.6rem; background: var(--k-verre-plein); }
.modale-boite > h2 { margin-right: 2.5rem; }
.modale-fermer { position: absolute; top: 1rem; right: 1rem; min-height: 2.25rem; width: 2.25rem; padding: 0; }

/* ------------------------------------------------------------------ */
/* Graphiques et barres de progression                                 */
/* ------------------------------------------------------------------ */
.graphique { margin: 0; }
.graphique svg { width: 100%; height: auto; display: block; overflow: visible; }
.grille { stroke: rgb(var(--k-ombre-voile) / 0.1); stroke-width: 1; stroke-dasharray: 3 5; }
.axe { fill: var(--k-discret); font-size: 11px; font-weight: 500; font-family: var(--k-police); }
.serie-1 { fill: var(--k-accent); }
.serie-2 { fill: var(--k-second); }
.courbe { fill: none; stroke: var(--k-accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.courbe-point { fill: var(--k-accent); stroke: var(--k-blanc); stroke-width: 2; }
.degrade-haut { stop-color: var(--k-accent); stop-opacity: 0.3; }
.degrade-bas { stop-color: var(--k-accent); stop-opacity: 0; }
.legende { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; margin-top: 0.4rem; font-size: 0.875rem; font-weight: 500; color: var(--k-encre-1); }
.cle { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 4px; margin-right: 0.3rem; vertical-align: -0.05rem; }
.cle-1 { background: var(--k-accent); }
.cle-2 { background: var(--k-second); }
.progression { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.95rem; }
.progression li { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 0.75rem; align-items: baseline; }
.progression-nom { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progression-valeur { font-weight: 700; color: var(--k-ok); font-variant-numeric: tabular-nums; }
.jauge { grid-column: 1 / -1; height: 0.55rem; border-radius: 999px; background: rgb(var(--k-ombre-voile) / 0.08); overflow: hidden; display: block; }
.jauge > span { display: block; height: 100%; border-radius: inherit; background: var(--k-accent); }
.jauge-ok > span { background: var(--k-ok); }
.jauge-alerte > span { background: var(--k-alerte); }

/* Largeurs de jauge sans attribut style : de 0 à 100 par pas de 5 */
.l0 { width: 0; } .l5 { width: 5%; } .l10 { width: 10%; } .l15 { width: 15%; } .l20 { width: 20%; } .l25 { width: 25%; } .l30 { width: 30%; }
.l35 { width: 35%; } .l40 { width: 40%; } .l45 { width: 45%; } .l50 { width: 50%; } .l55 { width: 55%; } .l60 { width: 60%; } .l65 { width: 65%; }
.l70 { width: 70%; } .l75 { width: 75%; } .l80 { width: 80%; } .l85 { width: 85%; } .l90 { width: 90%; } .l95 { width: 95%; } .l100 { width: 100%; }

/* ------------------------------------------------------------------ */
/* Porte d'entrée (connexion)                                          */
/* ------------------------------------------------------------------ */
.porte { max-width: 28rem; margin: 3rem auto; padding: 2.25rem 2rem; border-radius: 28px; }
.porte h1 { font-size: 2.2rem; }
.porte form { display: grid; gap: 0.5rem; margin: 1rem 0; }

/* ------------------------------------------------------------------ */
/* Adaptations                                                         */
/* ------------------------------------------------------------------ */
@media (max-width: 75rem) {
  .barre { padding: 0.6rem 0.75rem 0.6rem 1rem; }
  .barre nav { order: 3; width: 100%; overflow-x: auto; }
}
@media (max-width: 56rem) {
  .principal-cote { grid-template-columns: minmax(0, 1fr); }
  .cote-colle { position: static; }
}
@media (max-width: 40rem) {
  .barre { position: static; width: calc(100% - 1.5rem); }
  .contenu { padding: 1.25rem 1rem 3rem; }
  .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .chiffres > div { padding: 0.9rem 1rem; }
  .chiffres dd { font-size: 1.75rem; }
  .bandeau { border-radius: 18px; }
  .porte { margin: 1.5rem 0.75rem; padding: 1.75rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  body::before, .barre, .bandeau { display: none; }
  .verre, .chiffres > div, .table-defile, .carte-verre, .liste-actions > li, .fiche { background: #fff; box-shadow: none; border-color: #ddd; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
