/* Gestion TEKR : pensé d'abord pour le téléphone, aux couleurs du site (encre marine, filets gris, touches de rouge).
   Polices du système : rien à télécharger. Chiffres à chasse fixe dans les tableaux et les tuiles. */

:root {
  --encre: #141b2b;
  --encre-2: #2f3a4d;
  --discret: #5a6578;
  --marine: #15354f;
  --marine-2: #1e4768;
  --filet: #cdd1d5;
  --filet-doux: #e3e6ea;
  --papier: #fff;
  --fond: #f4f5f7;
  --accent: #b0484f;
  --serie: #3d5aa8;          /* série unique des graphiques (6,5:1 sur blanc) */
  --serie-fonce: #2d4483;
  --serie-voile: rgba(61, 90, 168, .10);
  --bon: #1f6b3d;
  --bon-fond: #e5f3ea;
  --attention: #8a5300;
  --attention-fond: #fff3dc;
  --mauvais: #a3262c;
  --mauvais-fond: #fcebec;
  --info-fond: #e9eef9;
  --rayon: 8px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--marine-2); }
a:hover { color: var(--marine); }
:focus-visible { outline: 2px solid var(--serie); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; font-weight: 650; }
h2 { font-size: 1.1rem; }
h3 { font-size: .95rem; margin-top: 1em; }
p { margin: 0 0 .75em; }
code { font-family: var(--mono); font-size: .88em; background: var(--fond); padding: 1px 4px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--filet-doux); margin: 20px 0; }
.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.discret { color: var(--discret); font-size: .9rem; }
.nb, .tuile-valeur, .mesure-valeur, .compte { font-variant-numeric: tabular-nums; }

/* En-tête et menu */
.entete { background: var(--marine); color: #fff; padding-top: env(safe-area-inset-top); }
.entete-haut {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1080px; margin: 0 auto; padding: 10px 16px 4px;
}
.marque { color: #fff; text-decoration: none; display: inline-flex; align-items: baseline; gap: 8px; }
.marque:hover { color: #fff; }
.marque-tekr { font-weight: 800; letter-spacing: .14em; font-size: 1.05rem; }
.marque-gestion { font-weight: 400; opacity: .8; font-size: .95rem; }
.marque-tekr::after { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--accent); margin-left: 8px; vertical-align: middle; }
.deconnexion { margin: 0; }
.entete .bouton-lien { color: #fff; opacity: .85; font-size: .88rem; }
.onglets {
  display: flex; gap: 2px; max-width: 1080px; margin: 0 auto; padding: 0 8px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.onglets::-webkit-scrollbar { display: none; }
.onglets a {
  flex: none; color: rgba(255, 255, 255, .82); text-decoration: none; white-space: nowrap;
  padding: 10px 10px 11px; border-bottom: 3px solid transparent; font-size: .95rem;
}
.onglets a:hover { color: #fff; }
.onglets a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); font-weight: 600; }
.pastille {
  display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px;
  background: var(--accent); color: #fff; border-radius: 10px;
  font-size: .75rem; font-weight: 700; line-height: 20px; text-align: center;
}

/* Page et cartes */
.page { max-width: 1080px; margin: 0 auto; padding: 16px 16px calc(48px + env(safe-area-inset-bottom)); }
.titre-page { font-size: 1.45rem; margin: 4px 0 12px; }
.titre-page-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.titre-page-ligne .titre-page { margin-bottom: 8px; }
.intro { color: var(--encre-2); max-width: 70ch; }
.fil { margin: 0 0 6px; font-size: .9rem; }
.fil a { text-decoration: none; }
.carte {
  background: var(--papier); border: 1px solid var(--filet-doux); border-radius: var(--rayon);
  padding: 16px; margin: 0 0 16px;
}
.carte > :last-child { margin-bottom: 0; }
.carte-titre { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.carte-titre h2 { margin: 0; }
.carte-etroite { max-width: 460px; margin: 32px auto; padding: 24px 20px; }
.carte-etroite h1 { font-size: 1.4rem; }
.encadre { border-style: dashed; border-color: var(--filet); background: #fbfbfc; }
.grille-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.grille-2 > .carte { margin: 0; }
.grille-2 + .grille-2, .grille-2 + .carte, .carte + .grille-2 { margin-top: 16px; }
.grille-2.grille-serree { gap: 20px; }
@media (min-width: 900px) {
  .grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
.retour {
  background: var(--bon-fond); color: var(--bon); border-radius: var(--rayon);
  padding: 10px 14px; margin: 0 0 16px; font-weight: 600;
}
.retour::before { content: "✓\FE0E" / ""; margin-right: 8px; }

/* Messages et alertes */
.message { padding: 10px 12px; border-radius: 6px; margin: 0 0 12px; }
.message-info { background: var(--info-fond); color: var(--marine); }
.message-erreur { background: var(--mauvais-fond); color: var(--mauvais); }
.alertes { margin-bottom: 16px; }
.alerte {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--attention-fond); color: #5c3800; border-left: 4px solid var(--attention);
  border-radius: 6px; padding: 10px 12px; margin: 0 0 8px;
}
.alerte .discret { color: #6b5132; }
.alerte-icone {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--attention); color: #fff;
  font-weight: 800; text-align: center; line-height: 22px; font-size: .85rem;
}

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 1px solid var(--marine); border-radius: 6px;
  background: var(--marine); color: #fff; font: inherit; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: background-color .15s;
}
.bouton:hover { background: var(--marine-2); color: #fff; }
.bouton-secondaire { background: var(--papier); color: var(--marine); }
.bouton-secondaire:hover { background: var(--fond); color: var(--marine); }
.bouton-petit { min-height: 36px; padding: 0 12px; font-size: .9rem; }
.bouton-lien {
  background: none; border: 0; padding: 4px 0; font: inherit; color: var(--marine-2);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.bouton-danger { color: var(--mauvais); }
.bouton[disabled] { opacity: .6; cursor: progress; }

/* Formulaires */
.formulaire label, .formulaire legend, .ajout-cle label { display: block; margin: 14px 0 4px; font-weight: 600; font-size: .95rem; }
.formulaire > label:first-of-type { margin-top: 0; }
input, select, textarea {
  width: 100%; min-height: 44px; padding: 8px 10px;
  border: 1px solid var(--filet); border-radius: 6px; background: var(--papier); color: var(--encre);
  font: inherit; font-size: 16px;   /* 16 px : iOS ne zoome pas sur le champ */
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--serie); outline: 2px solid rgba(61, 90, 168, .25); outline-offset: 0; }
input[type="checkbox"] { width: 20px; min-height: 20px; height: 20px; margin: 0; accent-color: var(--marine); flex: none; }
.formulaire .bouton { margin-top: 18px; width: 100%; }
@media (min-width: 600px) { .formulaire .bouton { width: auto; } }
.formulaire label.case, label.case {
  display: flex; align-items: center; gap: 10px; font-weight: 400; margin: 10px 0 0; cursor: pointer;
}
.choix { border: 0; padding: 0; margin: 14px 0 0; }
.choix legend { margin-bottom: 0; padding: 0; }
.choix label.case { margin-top: 8px; }
.aide { color: var(--discret); font-size: .9rem; margin: 10px 0 0; }
.champ { margin: 0; }

/* Filtres de période et de statut, recherche */
.filtres {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 16px; padding: 10px 12px; background: var(--papier);
  border: 1px solid var(--filet-doux); border-radius: var(--rayon);
}
.filtres label { font-weight: 600; font-size: .9rem; }
.filtres select { width: auto; min-height: 36px; padding: 4px 8px; }
.filtres .dates { display: flex; gap: 6px; flex-wrap: wrap; }
.filtres .dates input { width: auto; min-height: 36px; padding: 4px 6px; }
.filtres-libelle { color: var(--discret); font-size: .88rem; margin-left: auto; }
.filtres-statut { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin: 0 0 10px; scrollbar-width: thin; }
.filtres-statut a {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border: 1px solid var(--filet); border-radius: 18px; background: var(--papier);
  color: var(--encre-2); text-decoration: none; font-size: .9rem;
}
.filtres-statut a[aria-current="page"] { background: var(--marine); border-color: var(--marine); color: #fff; }
.filtres-statut .compte { font-size: .8rem; opacity: .75; }
.recherche { display: flex; gap: 8px; margin: 0 0 12px; }
.recherche input { flex: 1; min-height: 40px; }

/* Listes de demandes */
.liste-demandes { list-style: none; margin: 0; padding: 0; }
.carte.liste-demandes { padding: 0 14px; }
.liste-demandes li + li { border-top: 1px solid var(--filet-doux); }
.ligne-demande { display: block; padding: 12px 0; color: inherit; text-decoration: none; }
.ligne-demande:hover strong { text-decoration: underline; }
.ligne-haut { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ligne-infos { display: block; color: var(--discret); font-size: .88rem; margin-top: 2px; }

/* Statuts : toujours un symbole et un libellé, jamais la couleur seule */
.statut {
  flex: none; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 2px 9px; border-radius: 12px; font-size: .8rem; font-weight: 600;
  background: var(--fond); color: var(--encre-2);
}
.statut::before { font-size: .85em; }
.statut-nouvelle { background: var(--mauvais-fond); color: #8f2f36; }
.statut-nouvelle::before { content: "●\FE0E" / ""; }
.statut-contactee { background: var(--info-fond); color: var(--serie-fonce); }
.statut-contactee::before { content: "↩\FE0E" / ""; }
.statut-visite { background: #e2f1f0; color: #1b5b58; }
.statut-visite::before { content: "⌂\FE0E" / ""; }
.statut-devis { background: #efeaf7; color: #563d86; }
.statut-devis::before { content: "≡\FE0E" / ""; }
.statut-signee { background: var(--bon-fond); color: var(--bon); }
.statut-signee::before { content: "✓\FE0E" / ""; }
.statut-perdue { background: #eceef1; color: #4a5363; }
.statut-perdue::before { content: "×\FE0E" / ""; }
.statut-hors_cible { background: var(--papier); color: #4a5363; border: 1px dashed var(--filet); }
.statut-hors_cible::before { content: "–\FE0E" / ""; }

.echeance { display: inline-flex; gap: 6px; margin-top: 6px; font-size: .85rem; font-weight: 600; }
.echeance-depassee { color: var(--mauvais); }
.echeance-proche { color: var(--attention); }
.echeance-ok { color: var(--discret); font-weight: 500; }
.echeance-bandeau { padding: 10px 12px; border-radius: 6px; font-weight: 600; }
.echeance-bandeau.echeance-depassee { background: var(--mauvais-fond); }
.echeance-bandeau.echeance-proche { background: var(--attention-fond); }
.echeance-bandeau.echeance-ok { background: var(--info-fond); color: var(--marine); }

/* Fiche d'une demande */
.fiche-entete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fiche-entete h1 { font-size: 1.45rem; margin: 4px 0; }
.fiche-sous-titre { color: var(--discret); font-size: .92rem; }
.actions-contact { display: flex; gap: 8px; margin: 0 0 16px; }
.actions-contact .bouton { flex: 1; }
@media (min-width: 600px) { .actions-contact .bouton { flex: none; min-width: 120px; } }
.details { display: grid; grid-template-columns: minmax(7.5rem, 34%) 1fr; gap: 6px 12px; margin: 0 0 12px; }
.details dt { color: var(--discret); font-size: .9rem; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.etiquette {
  display: inline-block; padding: 1px 7px; border-radius: 10px; margin-left: 4px;
  background: var(--fond); border: 1px solid var(--filet); color: var(--encre-2); font-size: .78rem; font-weight: 600;
}
.message-client { background: var(--fond); border-left: 3px solid var(--filet); padding: 10px 12px; border-radius: 0 6px 6px 0; overflow-wrap: anywhere; }
.replie { margin-top: 12px; }
.replie > summary { cursor: pointer; color: var(--marine-2); font-weight: 600; padding: 6px 0; }
.replie[open] > summary { margin-bottom: 8px; }
.historique { list-style: none; margin: 0; padding: 0; }
.historique > li { position: relative; padding: 0 0 14px 20px; border-left: 2px solid var(--filet-doux); margin-left: 6px; }
.historique > li::before {
  content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--papier); border: 2px solid var(--serie);
}
.historique > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.historique-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.historique-remarque { color: var(--encre-2); margin: 4px 0 0; font-size: .92rem; }
.historique .annulee { opacity: .6; }
.historique .annulee .statut { text-decoration: line-through; }
.historique form { margin: 2px 0 0; }
.journal { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.journal li { padding: 6px 0; border-top: 1px solid var(--filet-doux); overflow-wrap: anywhere; }
.journal li:first-child { border-top: 0; }

/* Opérations */
.liste-operations { list-style: none; margin: 0; padding: 0; }
.liste-operations li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--filet-doux); }
.liste-operations li:first-child { border-top: 0; }
.liste-operations li[aria-current="true"] { background: var(--info-fond); margin: 0 -10px; padding: 8px 10px; border-radius: 6px; }
.liste-operations a { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.liste-operations a:hover strong { text-decoration: underline; }
.liste-operations form { margin: 0; flex: none; }

/* Réglages */
.liste-reglages { list-style: none; margin: 0 0 12px; padding: 0; }
.liste-reglages li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--filet-doux); }
.liste-reglages li:first-child { border-top: 0; }
.liste-reglages li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.liste-reglages form { margin: 0; flex: none; }
.ajout-cle { margin-top: 12px; }
.ajout-cle .bouton { margin-top: 12px; width: 100%; }
@media (min-width: 600px) { .ajout-cle .bouton { width: auto; } }
.ajout-cle .message { margin-top: 12px; }
.cle-acces { margin: 0 0 20px; }
.cle-acces .bouton { width: 100%; }
.cle-acces .discret { margin: 8px 0 0; }
.connexion .formulaire .bouton { width: 100%; }
.etat-technique { list-style: none; margin: 0; padding: 0; }
.etat-technique li { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 0 10px 28px; position: relative; border-top: 1px solid var(--filet-doux); }
.etat-technique li:first-child { border-top: 0; }
.etat-technique li::before {
  position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 50%;
  font-size: .75rem; font-weight: 800; line-height: 20px; text-align: center; color: #fff;
}
.etat-technique .etat-nom { font-weight: 600; }
.etat-technique .discret { display: block; }
.etat-bon::before { content: "✓\FE0E" / "En ordre"; background: var(--bon); }
.etat-mauvais::before { content: "!" / "À vérifier"; background: var(--mauvais); }
.etat-neutre::before { content: "–" / "Pas encore réglé"; background: #8a93a3; }
@media (min-width: 700px) { .etat-technique li { grid-template-columns: 14rem 1fr; } }

/* Tableaux */
.defile {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  /* Tableau plus large que l'écran : une ombre apparaît du côté où il continue. */
  background:
    linear-gradient(to right, var(--papier) 30%, rgba(255, 255, 255, 0)) left center / 32px 100% no-repeat local,
    linear-gradient(to left, var(--papier) 30%, rgba(255, 255, 255, 0)) right center / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(20, 27, 43, .2), rgba(20, 27, 43, 0)) left center / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(20, 27, 43, .2), rgba(20, 27, 43, 0)) right center / 12px 100% no-repeat scroll;
}
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-weight: 600; color: var(--discret); font-size: .8rem; padding: 6px 8px; border-bottom: 1px solid var(--filet); white-space: nowrap; }
td { padding: 8px; border-bottom: 1px solid var(--filet-doux); vertical-align: top; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
.nb { text-align: right; white-space: nowrap; }
.texte-long { min-width: 11rem; overflow-wrap: anywhere; }
.avant-apres { table-layout: fixed; }
.avant-apres .avant-apres-mesure { color: var(--encre); font-size: .9rem; white-space: normal; text-align: left; padding: 12px 0 2px; border-bottom: 0; }
.avant-apres tbody td { padding-top: 2px; }
.liste-simple { list-style: none; margin: 0 0 12px; padding: 0; }
.liste-simple li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid var(--filet-doux); }
.liste-simple li:first-child { border-top: 0; }

/* Tuiles des chiffres clés */
.tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
@media (min-width: 700px) { .tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
.tuile { background: var(--papier); border: 1px solid var(--filet-doux); border-radius: var(--rayon); padding: 12px; min-width: 0; }
.tuile p { margin: 0; }
.tuile-libelle { color: var(--discret); font-size: .82rem; font-weight: 600; line-height: 1.3; }
.tuile-valeur { font-size: clamp(1.3rem, 5.6vw, 1.55rem); font-weight: 700; margin: 4px 0 2px !important; letter-spacing: -.01em; overflow-wrap: anywhere; }
.tuile-valeur .unite { font-size: .62em; font-weight: 600; color: var(--discret); letter-spacing: 0; }
.tuile-detail { color: var(--discret); font-size: .8rem; line-height: 1.35; margin-top: 4px !important; }
.evolution { font-size: .8rem; font-weight: 600; }
.evolution .discret { font-weight: 400; font-size: .78rem; }
.evolution-bon { color: var(--bon); }
.evolution-mauvais { color: var(--mauvais); }
.evolution-egal { color: var(--discret); }

/* Entonnoir et parts : une mesure par ligne, une jauge de la même teinte */
.mesures { list-style: none; margin: 0 0 12px; padding: 0; }
.mesures li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 7px 0; }
.mesure-nom { font-weight: 600; font-size: .93rem; }
.mesure-valeur { font-weight: 700; text-align: right; }
.mesures .jauge { grid-column: 1 / -1; }
.mesure-detail { grid-column: 1 / -1; color: var(--discret); font-size: .8rem; }
.jauge { display: block; width: 100%; height: 8px; border-radius: 4px; overflow: hidden; }
.jauge .piste { fill: var(--filet-doux); }
.jauge .rempli { fill: var(--serie); }

/* Graphiques : deux largeurs, celle qui garde un texte lisible s'affiche selon la place disponible */
.graphique { margin: 0; container-type: inline-size; min-width: 0; }
.graphique figcaption { font-weight: 650; font-size: 1rem; margin: 0 0 8px; }
.graphique svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.graphique .svg-etroit { max-width: 500px; }
.graphique .svg-large { display: none; max-width: 860px; }
@container (min-width: 560px) {
  .graphique .svg-etroit { display: none; }
  .graphique .svg-large { display: block; }
}
.graphique .vide { color: var(--discret); font-size: .9rem; padding: 24px 0; text-align: center; background: var(--fond); border-radius: 6px; }
.svg-etroit text { font-size: 11px; }
.svg-large text { font-size: 12.5px; }
.graphique .grille { stroke: var(--filet-doux); stroke-width: 1; shape-rendering: crispEdges; }
.graphique .base { stroke: var(--filet); stroke-width: 1; shape-rendering: crispEdges; }
.graphique .axe { fill: var(--discret); }
.graphique .barre { fill: var(--serie); }
.graphique .point:hover .barre, .graphique .point:focus .barre, .graphique .point.actif .barre { fill: var(--serie-fonce); }
.graphique .courbe { fill: none; stroke: var(--serie); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.graphique .aire { fill: var(--serie-voile); stroke: none; }
.graphique .zone { fill: transparent; }
.graphique .point { outline: none; cursor: default; }
.graphique .reticule { stroke: var(--encre-2); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0; }
.graphique .marque { fill: var(--papier); stroke: var(--serie); stroke-width: 2; opacity: 0; }
.graphique .point:hover .reticule, .graphique .point:focus .reticule, .graphique .point.actif .reticule,
.graphique .point:hover .marque, .graphique .point:focus .marque, .graphique .point.actif .marque { opacity: 1; }
.graphique .fin { fill: var(--serie); stroke: var(--papier); stroke-width: 2; }
.graphique .valeur { fill: var(--encre); font-weight: 700; }
.graphique .repere polyline { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 3; }
.graphique .repere circle { fill: var(--papier); stroke: var(--accent); stroke-width: 1.5; }
.graphique .repere text { fill: var(--accent); font-weight: 700; font-size: 11px; }
.graphique .repere { outline: none; }
.graphique .repere:hover circle, .graphique .repere:focus circle { fill: var(--mauvais-fond); }
.chiffres { margin-top: 8px; font-size: .88rem; }
.chiffres > summary { cursor: pointer; color: var(--marine-2); padding: 4px 0; }
.chiffres table { margin-top: 6px; }
.legende-operations { list-style: none; margin: 12px 0 0; padding: 0; font-size: .88rem; }
.legende-operations li { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; }
.repere-numero {
  flex: none; display: inline-block; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent); font-size: .72rem; font-weight: 700;
  text-align: center; line-height: 17px;
}
.repere-numero.repere-hors { border-style: dashed; border-color: var(--discret); color: var(--discret); }

/* Bulle des graphiques (gestion.js) */
.bulle {
  position: fixed; z-index: 50; max-width: 240px; padding: 6px 9px; border-radius: 6px;
  background: var(--encre); color: #fff; font-size: .82rem; line-height: 1.35;
  pointer-events: none; transform: translate(-50%, calc(-100% - 12px));
  box-shadow: 0 4px 14px rgba(20, 27, 43, .18);
}

@media (min-width: 700px) {
  .page { padding-top: 24px; }
  .carte { padding: 20px; }
  .titre-page { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media print {
  .entete, .filtres, .actions-contact, form { display: none !important; }
  body { background: #fff; }
  .carte { border: 0; padding: 0; }
}
