/* Les polices et les jetons sont liés séparément depuis le gabarit, et non
   importés ici. Deux raisons : un `@import` enchaîne les requêtes en série et
   retarde le premier rendu, et surtout il ne transmet pas le jeton de version
   de la feuille parente — une modification des jetons resterait invisible
   derrière un cache. */


/* ---------------------------------------------------------------- Socle -- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fi-paper);
  color: var(--fi-ink);
  font-family: var(--police-texte);
  font-size: var(--t-corps);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--police-titre); line-height: 1.22; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
p { margin: 0 0 1em; }
a { color: var(--fi-blue-700); text-underline-offset: .18em; }
a:hover { color: var(--fi-blue-500); }

/* Tous les montants sont en chiffres tabulaires : sans cela, une colonne de
   sommes ne s'aligne pas et se relit mal. */
.montant, table td, table th, .kpi-val, .chiffre { font-variant-numeric: tabular-nums; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--fi-blue-500);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.saut-contenu {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--fi-blue-900); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.saut-contenu:focus { left: 0; }

.invisible { display: none !important; }
.lecteur-seul {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------- Coquille -- */
.appli { display: grid; grid-template-columns: var(--largeur-barre) 1fr; min-height: 100vh; }

.barre-laterale {
  background: linear-gradient(180deg, var(--fi-blue-900) 0%, var(--fi-blue-950) 100%);
  color: #fff; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.marque { padding: 22px var(--gouttiere) 16px; display: flex; gap: 12px; align-items: center; }
.marque img, .marque svg { width: 42px; height: 42px; flex: 0 0 auto; }
.marque-texte { font-family: var(--police-titre); font-weight: 700; letter-spacing: .04em; line-height: 1.1; }
.marque-texte span { display: block; font-size: .72em; font-weight: 500; letter-spacing: .18em; color: var(--fi-rose-500); }

.identite-laterale {
  margin: 0 var(--gouttiere) 14px; padding: 12px 14px;
  background: rgba(255, 255, 255, .08); border-radius: var(--r);
  display: flex; gap: 12px; align-items: center;
}
.pastille {
  width: 40px; height: 40px; border-radius: var(--r-pill); flex: 0 0 auto;
  display: grid; place-items: center; font-family: var(--police-titre); font-weight: 700;
  background: var(--fi-green-300); color: var(--fi-blue-950);
}
.identite-laterale .qui { font-weight: 600; font-size: var(--t-petit); }
.identite-laterale .role { font-size: .85em; color: var(--fi-green-300); }

.menu { padding: 6px var(--gouttiere) 18px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.menu-titre {
  font-size: .78em; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .5); margin: 16px 0 6px; font-weight: 600;
}
.menu a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-radius: var(--r-sm); color: rgba(255, 255, 255, .84);
  text-decoration: none; font-size: var(--t-menu); font-weight: 500;
  transition: background .16s ease, color .16s ease;
}
.menu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.menu a[aria-current="page"] { background: #fff; color: var(--fi-blue-900); font-weight: 600; }
.menu a[aria-current="page"] .ico { color: var(--fi-rose-700); }
.menu .ico { width: 20px; text-align: center; flex: 0 0 auto; opacity: .9; }
.menu .compteur {
  margin-left: auto; background: var(--fi-rose-700); color: #fff;
  border-radius: var(--r-pill); padding: 1px 9px; font-size: .78em; font-weight: 700;
}
.menu a[aria-current="page"] .compteur { background: var(--fi-rose-700); }

.pied-lateral { padding: 14px var(--gouttiere) 20px; font-size: .84em; color: rgba(255, 255, 255, .55); }
.pied-lateral a { color: rgba(255, 255, 255, .8); }

/* --------------------------------------------------------------- Entête -- */
.zone { display: flex; flex-direction: column; min-width: 0; }

.entete {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247, 248, 252, .92);
  border-bottom: 1px solid var(--fi-line);
  padding: 14px var(--gouttiere);
  display: flex; align-items: center; gap: 14px;
}
@supports (backdrop-filter: blur(6px)) {
  @media (min-width: 1024px) { .entete { backdrop-filter: blur(8px); } }
}
.fil { font-size: .84em; color: var(--fi-muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.entete h1 { font-size: var(--t-h2); margin: 0; }
.entete-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.bouton-menu {
  display: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  border: 1px solid var(--fi-line-forte); background: var(--fi-card);
  font-size: 1.3rem; cursor: pointer; color: var(--fi-blue-900);
}

.contenu { padding: var(--gouttiere); flex: 1; display: flex; flex-direction: column; gap: var(--gouttiere); }

/* --------------------------------------------------------------- Cartes -- */
.carte { background: var(--fi-card); border: 1px solid var(--fi-line); border-radius: var(--r); box-shadow: var(--ombre-basse); overflow: hidden; }
.carte-h { padding: 16px 20px; border-bottom: 1px solid var(--fi-line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.carte-h h2, .carte-h h3 { margin: 0; font-size: var(--t-h3); }
.carte-h .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.carte-b { padding: 20px; }
.carte-p { padding: 14px 20px; border-top: 1px solid var(--fi-line); background: var(--fi-paper); font-size: var(--t-petit); color: var(--fi-muted); }

.grille { display: grid; gap: var(--gouttiere); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
/* Les colonnes se dimensionnent sur leur contenu : sans cela, la plus courte
   s'étire à la hauteur de la plus longue et laisse une grande carte à moitié
   vide, qui se lit comme un écran inachevé. */
.g-2-large { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .g-2-large { grid-template-columns: 1fr; } }
.grille.g-2, .grille.g-3, .grille.g-4 { align-items: start; }

/* --------------------------------------------------------- Indicateurs -- */
.kpi {
  background: var(--fi-card); border: 1px solid var(--fi-line); border-radius: var(--r);
  padding: 18px 20px; box-shadow: var(--ombre-basse);
  border-top: 3px solid var(--fi-blue-700);
}
.kpi.vert { border-top-color: var(--fi-green-500); }
.kpi.rose { border-top-color: var(--fi-rose-500); }
.kpi.alerte { border-top-color: var(--fi-danger); }
.kpi-lbl { font-size: var(--t-petit); color: var(--fi-muted); font-weight: 600; letter-spacing: .02em; }
/* Échelle unique pour tous les indicateurs. Distinguer le montant du simple
   compte par `:has()` aurait été plus fin, mais le support de ce sélecteur
   n'est pas acquis sur les terminaux visés, et un montant débordant de sa carte
   est un défaut bien pire qu'un compte affiché un peu plus petit. */
.kpi-val { font-family: var(--police-titre); font-size: var(--t-chiffre-montant); font-weight: 700; color: var(--fi-blue-900); line-height: 1.15; margin-top: 4px; overflow-wrap: anywhere; }
.kpi.vert .kpi-val { color: var(--fi-green-700); }
.kpi.rose .kpi-val { color: var(--fi-rose-700); }
.kpi.alerte .kpi-val { color: var(--fi-danger); }
.kpi-note { font-size: var(--t-petit); color: var(--fi-muted); margin-top: 4px; }

/* ------------------------------------------------------------ Jauge --- */
.jauge { height: 10px; border-radius: var(--r-pill); background: var(--fi-blue-050); overflow: hidden; }
.jauge > i { display: block; height: 100%; border-radius: inherit; background: var(--fi-green-500); transition: width .4s ease; }
.jauge.rose > i { background: var(--fi-rose-500); }
.jauge.alerte > i { background: var(--fi-danger); }
.jauge-legende { display: flex; justify-content: space-between; font-size: var(--t-petit); color: var(--fi-muted); margin-top: 6px; }

/* ------------------------------------------------------------ Tableaux -- */
.tbl-enveloppe { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: var(--t-petit); }
th {
  text-align: left; padding: 12px 16px; background: var(--fi-paper);
  border-bottom: 1px solid var(--fi-line); font-weight: 600; color: var(--fi-muted);
  font-size: .92em; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
}
td { padding: 14px 16px; border-bottom: 1px solid var(--fi-line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--fi-blue-050); }
td.nombre, th.nombre { text-align: right; }
.t-principal { font-weight: 600; color: var(--fi-ink); display: block; }
.t-second { font-size: .9em; color: var(--fi-muted); display: block; }

/* -------------------------------------------------------------- Badges -- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: .86em; font-weight: 600; white-space: nowrap;
  background: var(--fi-wait-surface); color: var(--fi-wait);
}
.badge.ok { background: var(--fi-ok-surface); color: var(--fi-ok); }
.badge.attention { background: var(--fi-warn-surface); color: var(--fi-warn); }
.badge.accent { background: var(--fi-accent-surface); color: var(--fi-accent); }
.badge.danger { background: var(--fi-danger-surface); color: var(--fi-danger); }
.badge.neutre { background: var(--fi-blue-050); color: var(--fi-blue-700); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.badge.sans-point::before { display: none; }

/* ------------------------------------------------------------- Boutons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--r-sm); border: 1px solid transparent;
  font: inherit; font-size: var(--t-petit); font-weight: 600; cursor: pointer;
  text-decoration: none; transition: background .16s ease, border-color .16s ease, transform .1s ease;
  min-height: 44px; /* cible tactile confortable */
}
.btn:active { transform: translateY(1px); }
.btn-principal { background: var(--fi-blue-700); color: #fff; }
.btn-principal:hover { background: var(--fi-blue-800); color: #fff; }
.btn-second { background: var(--fi-card); color: var(--fi-blue-800); border-color: var(--fi-line-forte); }
.btn-second:hover { background: var(--fi-blue-050); color: var(--fi-blue-900); }
.btn-accent { background: var(--fi-rose-700); color: #fff; }
.btn-accent:hover { background: var(--fi-rose-800); color: #fff; }
.btn-vert { background: var(--fi-green-700); color: #fff; }
.btn-vert:hover { background: var(--fi-green-800); color: #fff; }
.btn-danger { background: var(--fi-card); color: var(--fi-danger); border-color: var(--fi-danger); }
.btn-danger:hover { background: var(--fi-danger-surface); color: var(--fi-danger); }
.btn-discret { background: transparent; color: var(--fi-muted); border-color: transparent; padding: 8px 12px; }
.btn-discret:hover { background: var(--fi-blue-050); color: var(--fi-blue-800); }
.btn-petit { padding: 7px 14px; min-height: 38px; font-size: .92em; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-large { width: 100%; }

/* ----------------------------------------------------------- Formulaire -- */
.champ { margin-bottom: 16px; }
.champ > label, .etiquette {
  display: block; font-size: var(--t-petit); font-weight: 600;
  color: var(--fi-ink-2); margin-bottom: 6px;
}
.champ .aide { font-size: .9em; color: var(--fi-muted); margin-top: 5px; }
.champ .erreur { font-size: .9em; color: var(--fi-danger); margin-top: 5px; font-weight: 600; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="date"], input[type="search"], input[type="url"],
select, textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: var(--t-petit);
  color: var(--fi-ink); background: var(--fi-card);
  border: 1px solid var(--fi-line-forte); border-radius: var(--r-sm);
  min-height: 46px; transition: border-color .16s ease, box-shadow .16s ease;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fi-muted) 50%), linear-gradient(135deg, var(--fi-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { border-color: var(--fi-blue-700); box-shadow: 0 0 0 3px var(--fi-blue-100); outline: none; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--fi-danger); }
input[readonly], input[disabled], select[disabled], textarea[disabled] { background: var(--fi-paper); color: var(--fi-muted); }

.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .champs-2 { grid-template-columns: 1fr; } }

.case { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.case input[type="checkbox"], .case input[type="radio"] { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--fi-blue-700); }
.case label { font-size: var(--t-petit); font-weight: 500; }
/* Une phrase d'engagement se lit entièrement : pas de ligne écrasée. */
.case label { line-height: 1.5; display: block; }
/* La mention d'information reste lisible mais passe visiblement au second
   plan : sans cette règle elle héritait de la taille du corps de texte et
   s'affichait PLUS GRANDE que l'engagement qu'elle commente. */
.case .aide { font-size: var(--t-petit); line-height: 1.45; color: var(--fi-muted);
              margin-top: 8px; font-weight: 400; }

fieldset { border: 1px solid var(--fi-line); border-radius: var(--r); padding: 16px 18px; margin: 0 0 18px; }
legend { font-family: var(--police-titre); font-weight: 600; padding: 0 8px; font-size: var(--t-petit); color: var(--fi-blue-900); }

/* Le champ leurre n'est jamais visible ni atteignable au clavier : seul un
   automate le remplit. */
.leurre { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }

/* ------------------------------------------------------------- Stepper -- */
.etapes { display: flex; flex-direction: column; gap: 0; }
.etape { display: grid; grid-template-columns: 44px 1fr; gap: 14px; position: relative; padding-bottom: 22px; }
.etape:last-child { padding-bottom: 0; }
.etape::before {
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px;
  background: var(--fi-line); border-radius: 2px;
}
.etape:last-child::before { display: none; }
.etape.faite::before { background: var(--fi-green-500); }
.etape-pastille {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--police-titre); font-weight: 700; font-size: 1.05rem;
  background: var(--fi-wait-surface); color: var(--fi-wait);
  border: 2px solid var(--fi-line); z-index: 1;
}
.etape.faite .etape-pastille { background: var(--fi-green-500); color: #fff; border-color: var(--fi-green-500); }
.etape.courante .etape-pastille { background: var(--fi-rose-700); color: #fff; border-color: var(--fi-rose-700); }
.etape-titre { font-family: var(--police-titre); font-weight: 600; font-size: var(--t-petit); margin: 10px 0 2px; }
.etape-note { font-size: .92em; color: var(--fi-muted); }
.etape-obs {
  margin-top: 8px; padding: 10px 14px; background: var(--fi-blue-050);
  border-left: 3px solid var(--fi-blue-700); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .95em; color: var(--fi-ink-2);
}

/* ------------------------------------------------------------ Encarts --- */
.encart { padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--fi-line); background: var(--fi-card); }
.encart-rose { background: var(--fi-rose-050); border-color: var(--fi-rose-100); }
.encart-vert { background: var(--fi-green-050); border-color: var(--fi-green-100); }
.encart-bleu { background: var(--fi-blue-050); border-color: var(--fi-blue-100); }
.encart-alerte { background: var(--fi-danger-surface); border-color: #F3C9CE; }
.encart-titre { font-family: var(--police-titre); font-weight: 600; font-size: var(--t-petit); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.encart p:last-child { margin-bottom: 0; }
.encart-chiffre { font-family: var(--police-titre); font-size: var(--t-chiffre-montant); font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.encart-rose .encart-chiffre, .encart-rose .encart-titre { color: var(--fi-rose-800); }
.encart-vert .encart-chiffre, .encart-vert .encart-titre { color: var(--fi-green-800); }
.encart-alerte .encart-chiffre, .encart-alerte .encart-titre { color: var(--fi-danger); }

/* --------------------------------------------------------------- Vide --- */
.vide { text-align: center; padding: 48px 24px; color: var(--fi-muted); }
.vide .signe { font-size: 2.6rem; line-height: 1; margin-bottom: 12px; opacity: .45; }
.vide h3 { color: var(--fi-ink-2); }
.vide p { max-width: 46ch; margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------- Modale --- */
.voile {
  position: fixed; inset: 0; background: rgba(8, 14, 58, .55); z-index: 90;
  display: grid; place-items: center; padding: 18px; overflow-y: auto;
}
.modale {
  background: var(--fi-card); border-radius: var(--r-lg); box-shadow: var(--ombre);
  width: min(640px, 100%); max-height: 92vh; overflow-y: auto;
}
.modale.large { width: min(920px, 100%); }
.modale-h { padding: 20px 24px; border-bottom: 1px solid var(--fi-line); display: flex; align-items: center; gap: 14px; position: sticky; top: 0; background: var(--fi-card); z-index: 1; }
.modale-h h2 { margin: 0; font-size: var(--t-h3); }
.modale-b { padding: 24px; }
.modale-p { padding: 16px 24px; border-top: 1px solid var(--fi-line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--fi-card); }
.fermer { margin-left: auto; width: 38px; height: 38px; border-radius: var(--r-sm); border: 0; background: var(--fi-paper); cursor: pointer; font-size: 1.2rem; color: var(--fi-muted); }
.fermer:hover { background: var(--fi-blue-050); color: var(--fi-blue-900); }

/* ------------------------------------------------------------ Messages -- */
.messages { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 36px)); }
.message {
  background: var(--fi-blue-900); color: #fff; padding: 14px 18px; border-radius: var(--r);
  box-shadow: var(--ombre); font-size: var(--t-petit); font-weight: 500;
  display: flex; gap: 10px; align-items: flex-start;
  animation: entree .25s ease;
}
.message.success { background: var(--fi-green-700); }
.message.error { background: var(--fi-danger); }
.message.warning { background: var(--fi-warn); }
@keyframes entree { from { opacity: 0; transform: translateY(10px); } }

.bandeau {
  padding: 14px 18px; border-radius: var(--r); font-size: var(--t-petit);
  border: 1px solid; margin-bottom: var(--gouttiere);
}
.bandeau.info { background: var(--fi-blue-050); border-color: var(--fi-blue-100); color: var(--fi-blue-900); }
.bandeau.attention { background: var(--fi-warn-surface); border-color: #F2DDB4; color: #7A4E00; }
.bandeau.danger { background: var(--fi-danger-surface); border-color: #F3C9CE; color: var(--fi-danger); }

/* ------------------------------------------------------------- Connexion */
.page-auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .page-auth { grid-template-columns: 1fr; } }
.auth-presentation {
  background: linear-gradient(150deg, var(--fi-blue-900) 0%, var(--fi-blue-950) 100%);
  color: #fff; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 20px;
  position: relative; overflow: hidden;
}
@media (max-width: 900px) { .auth-presentation { padding: 32px 24px; } }
.auth-presentation h2 { color: #fff; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem); max-width: 18ch; }
.auth-presentation p { color: rgba(255, 255, 255, .82); max-width: 44ch; }
.auth-arcs { position: absolute; right: -80px; bottom: -80px; width: 340px; opacity: .16; pointer-events: none; }
.auth-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, .9); font-size: var(--t-petit); }
.auth-points b { color: var(--fi-green-300); }
.auth-formulaire { display: grid; place-items: center; padding: clamp(24px, 4vw, 56px) clamp(20px, 4vw, 48px); }
.auth-carte { width: min(460px, 100%); }
/* Logotype de l'entreprise, au-dessus du formulaire d'accès. La hauteur est
   fixée et la largeur suit : c'est la seule façon d'éviter que la carte saute
   au moment où l'image arrive. */
.logotype { display: block; height: 72px; width: auto; margin: 0 auto 22px; }
@media (max-width: 900px) { .logotype { height: 58px; margin-bottom: 18px; } }

.auth-onglets { display: flex; gap: 6px; background: var(--fi-blue-050); padding: 5px; border-radius: var(--r-pill); margin-bottom: 24px; }
.auth-onglets a { flex: 1; text-align: center; padding: 10px; border-radius: var(--r-pill); text-decoration: none; font-weight: 600; font-size: var(--t-petit); color: var(--fi-blue-800); }
.auth-onglets a[aria-current="page"] { background: var(--fi-card); box-shadow: var(--ombre-basse); color: var(--fi-blue-900); }

/* ------------------------------------------------------ Cartes lotissement */
.lot-carte { display: flex; flex-direction: column; }
.lot-bandeau { background: linear-gradient(135deg, var(--fi-blue-900), var(--fi-blue-700)); color: #fff; padding: 18px 20px; }
.lot-bandeau h3 { color: #fff; margin: 0 0 2px; }
.lot-bandeau .lieu { font-size: var(--t-petit); color: var(--fi-green-300); font-weight: 500; }
.lot-faits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; padding: 16px 20px; }
.lot-faits div { font-size: var(--t-petit); }
.lot-faits b { display: block; font-family: var(--police-titre); color: var(--fi-blue-900); font-size: 1.08em; }
.lot-faits span { color: var(--fi-muted); font-size: .9em; }

/* ------------------------------------------------------------- Rangées -- */
.rangee { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--fi-line); }
.rangee:last-child { border-bottom: 0; }
.rangee-corps { min-width: 0; flex: 1; }
.rangee-fin { margin-left: auto; text-align: right; flex: 0 0 auto; }

.liste-nue { list-style: none; padding: 0; margin: 0; }
.pile { display: flex; flex-direction: column; gap: 14px; }
.ligne { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ligne-fin { margin-left: auto; }
.separateur { height: 1px; background: var(--fi-line); border: 0; margin: 18px 0; }

/* ---------------------------------------------------------- Impression -- */
@media print {
  .barre-laterale, .entete-actions, .bouton-menu, .messages, .btn, .menu { display: none !important; }
  .appli { grid-template-columns: 1fr; }
  body { background: #fff; font-size: 11pt; }
  .carte { box-shadow: none; border-color: #999; break-inside: avoid; }
  .entete { position: static; }
}

/* ---------------------------------------------------------- Adaptation -- */
@media (max-width: 1024px) {
  .appli { grid-template-columns: 1fr; }
  .bouton-menu { display: grid; place-items: center; }
  .barre-laterale {
    position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 100;
    transform: translateX(-102%); transition: transform .22s ease;
  }
  .barre-laterale.ouverte { transform: none; }
  .voile-menu { position: fixed; inset: 0; background: rgba(8, 14, 58, .5); z-index: 95; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}
