/* Fil Rouge — système de design « livre de comptes »
   Garance (actions) + indigo (encre / dos de toile) sur page blanche. */

:root {
  --bg: oklch(1 0 0);
  --surface: oklch(0.972 0.004 265);
  --surface-2: oklch(0.948 0.006 265);
  --border: oklch(0.90 0.008 265);
  --border-forte: oklch(0.84 0.01 265);
  --ink: oklch(0.22 0.015 265);
  --muted: oklch(0.46 0.02 265);

  --primary: oklch(0.51 0.17 12);
  --primary-hover: oklch(0.45 0.17 12);
  --primary-tint: oklch(0.965 0.018 12);
  --primary-tint-2: oklch(0.93 0.035 12);

  --accent: oklch(0.44 0.11 268);
  --accent-tint: oklch(0.955 0.02 268);

  --succes: oklch(0.50 0.12 155);
  --succes-tint: oklch(0.962 0.03 155);
  --attention: oklch(0.55 0.13 70);
  --attention-tint: oklch(0.968 0.045 85);
  --danger: oklch(0.52 0.20 27);
  --danger-tint: oklch(0.962 0.022 27);

  --spine: oklch(0.235 0.035 270);
  --spine-2: oklch(0.30 0.045 270);
  --spine-3: oklch(0.355 0.05 270);
  --spine-ink: oklch(0.93 0.008 270);
  --spine-muted: oklch(0.72 0.018 270);

  --police: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --police-chiffres: "Cascadia Mono", Consolas, "Courier New", monospace;

  --rayon: 10px;
  --rayon-petit: 8px;
  --ombre-1: 0 1px 2px oklch(0.2 0.02 265 / 0.06), 0 1px 6px oklch(0.2 0.02 265 / 0.05);
  --ombre-2: 0 4px 10px oklch(0.2 0.02 265 / 0.08), 0 12px 32px oklch(0.2 0.02 265 / 0.10);
  --sortie: cubic-bezier(0.16, 1, 0.3, 1);

  --z-colle: 10;
  --z-toast: 40;
}

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

[hidden] { display: none !important; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--police);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 600; }
h1 { font-size: 24px; letter-spacing: -0.01em; }
h2 { font-size: 17px; }
h3 { font-size: 14px; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============ Coquille ============ */

.coquille { display: flex; min-height: 100vh; }

.sidebar {
  width: 232px;
  flex-shrink: 0;
  background: var(--spine);
  color: var(--spine-ink);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.marque {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 18px;
}

.marque-logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: white;
  flex-shrink: 0;
}

.marque-nom { font-size: 16px; font-weight: 600; letter-spacing: 0.01em; }
.marque-sous { font-size: 11.5px; color: var(--spine-muted); margin-top: -2px; }

.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }

.nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: var(--rayon-petit);
  color: var(--spine-muted);
  font-weight: 500;
  font-size: 13.5px;
  text-decoration: none;
  transition: background 160ms var(--sortie), color 160ms var(--sortie);
}

.nav a:hover { background: var(--spine-2); color: var(--spine-ink); text-decoration: none; }

.nav a.actif {
  background: var(--spine-2);
  color: white;
}

.nav a.actif .ic { color: oklch(0.72 0.15 15); }

.nav .badge-nav {
  margin-left: auto;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.sidebar-pied {
  margin-top: auto;
  padding: 12px 12px 2px;
  font-size: 11.5px;
  color: var(--spine-muted);
  border-top: 1px solid var(--spine-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.sidebar-pied .deconnexion { color: var(--spine-muted); padding-left: 0; }
.sidebar-pied .deconnexion:hover { background: var(--spine-2); color: var(--spine-ink); }

.contenu {
  flex: 1;
  min-width: 0;
  padding: 26px 32px 60px;
}

.page { max-width: 1180px; margin: 0 auto; }

.page-tete {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.page-tete .sous-titre { color: var(--muted); margin-top: 3px; font-size: 13.5px; }
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.vue { animation: entree 240ms var(--sortie); }

@keyframes entree {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ============ Boutons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--rayon-petit);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 500;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 150ms var(--sortie), border-color 150ms var(--sortie),
              color 150ms var(--sortie), transform 100ms var(--sortie);
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }

.btn-primaire { background: var(--primary); color: white; }
.btn-primaire:hover:not(:disabled) { background: var(--primary-hover); }

.btn-secondaire { background: var(--bg); border-color: var(--border-forte); color: var(--ink); }
.btn-secondaire:hover:not(:disabled) { background: var(--surface); }

.btn-fantome { background: transparent; color: var(--muted); }
.btn-fantome:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover:not(:disabled) { background: oklch(0.46 0.20 27); }

.btn-icone { padding: 8px; }
.btn-petit { padding: 5px 10px; font-size: 12.5px; gap: 5px; }

.spin {
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: rotation 700ms linear infinite;
}

@keyframes rotation { to { transform: rotate(360deg); } }

/* ============ Formulaires ============ */

.champ { display: flex; flex-direction: column; gap: 5px; }

.champ > label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.champ input, .champ select, .champ textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border-forte);
  border-radius: var(--rayon-petit);
  padding: 8px 11px;
  min-height: 38px;
  width: 100%;
  transition: border-color 140ms var(--sortie), box-shadow 140ms var(--sortie);
}

.champ textarea { resize: vertical; min-height: 64px; }

.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.champ input::placeholder, .champ textarea::placeholder { color: oklch(0.55 0.015 265); }

.champ .aide { font-size: 12px; color: var(--muted); }

.lien-effacer {
  font: inherit;
  font-size: 12px;
  background: none;
  border: none;
  padding: 0;
  color: var(--danger);
  text-decoration: underline;
  cursor: pointer;
}

.lien-effacer:disabled { color: var(--muted); cursor: default; }

.form-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.form-grille .large { grid-column: 1 / -1; }

.form-erreur {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--danger-tint);
  color: var(--danger);
  font-weight: 500;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: var(--rayon-petit);
  border: 1px solid oklch(0.85 0.06 27);
  margin-bottom: 14px;
}

.modale-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.modale-actions .a-gauche { margin-right: auto; }

/* ============ Cartes & KPI ============ */

.carte {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-1);
}

.carte-corps { padding: 18px 20px; }

.carte-titre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 20px 0;
}

.carte-titre h2 { display: flex; align-items: center; gap: 8px; }
.carte-titre .ic { color: var(--muted); }

.grille-kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.kpi {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-1);
  padding: 15px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.kpi-libelle {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

.kpi-valeur {
  font-family: var(--police-chiffres);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.kpi-valeur .devise-kpi { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 3px; }
.kpi-detail { font-size: 12px; color: var(--muted); }
.kpi-danger .kpi-valeur { color: var(--danger); }

/* ============ Tables ============ */

.table-enveloppe { overflow-x: auto; border-radius: var(--rayon); }

table.tableau {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.tableau th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.tableau td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.tableau tbody tr:last-child td { border-bottom: none; }

.tableau tbody tr.cliquable { cursor: pointer; transition: background 120ms var(--sortie); }
.tableau tbody tr.cliquable:hover { background: var(--surface); }

.tableau .num {
  text-align: right;
  font-family: var(--police-chiffres);
  font-size: 13px;
  white-space: nowrap;
}

.tableau th.num { font-family: var(--police); }
.tableau .fort { font-weight: 600; }
.tableau .discret { color: var(--muted); font-size: 12.5px; }
.tableau .actions-ligne { text-align: right; white-space: nowrap; }
.tableau .actions-ligne .btn:not(.toujours) { visibility: hidden; }
.tableau tr:hover .actions-ligne .btn { visibility: visible; }

.ligne-total td {
  background: var(--surface);
  font-weight: 600;
  border-top: 1px solid var(--border-forte);
}

/* ============ Pilules ============ */

.pilule {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.pilule-succes { background: var(--succes-tint); color: var(--succes); }
.pilule-attention { background: var(--attention-tint); color: var(--attention); }
.pilule-danger { background: var(--danger-tint); color: var(--danger); }
.pilule-info { background: var(--accent-tint); color: var(--accent); }

/* ============ Rappels (dashboard) ============ */

.rappels { margin-bottom: 22px; }

.rappel-ligne {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

.rappel-ligne:last-child { border-bottom: none; }

.rappel-icone {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.rappel-retard .rappel-icone { background: var(--danger-tint); color: var(--danger); }
.rappel-bientot .rappel-icone { background: var(--attention-tint); color: var(--attention); }

.rappel-texte { min-width: 0; }
.rappel-texte .titre { font-weight: 600; font-size: 13.5px; }
.rappel-texte .detail { color: var(--muted); font-size: 12.5px; }

.rappel-droite {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: right;
}

.rappel-montant { font-family: var(--police-chiffres); font-weight: 600; font-size: 14px; }
.rappel-date { font-size: 12px; color: var(--muted); }

.tout-va-bien {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  color: var(--succes);
  font-weight: 500;
  background: var(--succes-tint);
  border: 1px solid oklch(0.88 0.05 155);
  border-radius: var(--rayon);
  margin-bottom: 22px;
}

/* ============ Progression (crédits) ============ */

.progression {
  height: 7px;
  border-radius: 4px;
  background: var(--surface-2);
  overflow: hidden;
}

.progression > div {
  height: 100%;
  border-radius: 4px;
  background: var(--primary);
  transition: width 400ms var(--sortie);
}

.credit-carte { padding: 17px 20px; display: flex; flex-direction: column; gap: 12px; }

.credit-tete { display: flex; align-items: flex-start; gap: 12px; }

.credit-icone {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.credit-nom { font-weight: 600; font-size: 15px; }
.credit-sous { color: var(--muted); font-size: 12.5px; margin-top: 1px; }

.credit-chiffres {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.credit-reste { font-family: var(--police-chiffres); font-size: 20px; font-weight: 600; }
.credit-reste .libelle { font-family: var(--police); font-size: 12px; color: var(--muted); font-weight: 500; display: block; }

.credit-meta { font-size: 12.5px; color: var(--muted); text-align: right; }

.credit-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.grille-credits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
}

/* Historique de paiements replié */
.paiements-liste { border-top: 1px solid var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }

.paiement-ligne {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 2px;
  font-size: 13px;
}

.paiement-ligne .montant { font-family: var(--police-chiffres); font-weight: 600; margin-left: auto; }
.paiement-ligne .note { color: var(--muted); font-size: 12px; }
.paiement-ligne .btn { visibility: hidden; }
.paiement-ligne:hover .btn { visibility: visible; }

/* ============ États vides & squelettes ============ */

.etat-vide {
  text-align: center;
  padding: 52px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.etat-vide-icone {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
  margin-bottom: 4px;
}

.etat-vide h3 { font-size: 15px; }
.etat-vide p { color: var(--muted); max-width: 46ch; }
.etat-vide .btn { margin-top: 8px; }

.squelette { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; }

.squelette-ligne {
  height: 15px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 45%, var(--surface) 65%);
  background-size: 220% 100%;
  animation: brillance 1.3s ease-in-out infinite;
}

.squelette-ligne:nth-child(2) { width: 82%; }
.squelette-ligne:nth-child(3) { width: 91%; }
.squelette-ligne:nth-child(4) { width: 70%; }

@keyframes brillance { from { background-position: 130% 0; } to { background-position: -90% 0; } }

/* ============ Modales ============ */

.modale {
  border: none;
  border-radius: 14px;
  padding: 0;
  width: 94vw;
  max-width: 560px; /* surchargé par ouvrirModale({ largeur }) */
  box-shadow: var(--ombre-2);
  animation: modale-entree 200ms var(--sortie);
}

.modale::backdrop { background: oklch(0.2 0.02 265 / 0.45); }

@keyframes modale-entree {
  from { opacity: 0; transform: scale(0.975) translateY(6px); }
  to { opacity: 1; transform: none; }
}

.modale-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0;
}

.modale-corps { padding: 16px 20px 20px; }

.confirmation-texte { color: var(--muted); line-height: 1.55; }

/* ============ Toasts ============ */

#toasts {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  z-index: var(--z-toast);
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--spine);
  color: white;
  padding: 11px 16px;
  border-radius: 10px;
  box-shadow: var(--ombre-2);
  font-size: 13.5px;
  font-weight: 500;
  max-width: 380px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms var(--sortie), transform 200ms var(--sortie);
}

.toast.visible { opacity: 1; transform: none; }
.toast-succes .ic { color: oklch(0.78 0.13 155); }
.toast-erreur { background: var(--danger); }

/* ============ Barre d'outils (filtres) ============ */

.barre-outils {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.recherche-boite {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 320px;
}

.recherche-boite .ic {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.recherche-boite input {
  width: 100%;
  font: inherit;
  padding: 8px 11px 8px 34px;
  min-height: 38px;
  border: 1px solid var(--border-forte);
  border-radius: var(--rayon-petit);
  background: var(--bg);
  color: var(--ink);
}

.recherche-boite input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.segments {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rayon-petit);
  padding: 3px;
  gap: 2px;
}

.segments button {
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 140ms var(--sortie), color 140ms var(--sortie);
}

.segments button.actif { background: var(--bg); color: var(--ink); box-shadow: var(--ombre-1); }

select.filtre {
  font: inherit;
  font-size: 13px;
  padding: 8px 10px;
  min-height: 38px;
  border: 1px solid var(--border-forte);
  border-radius: var(--rayon-petit);
  background: var(--bg);
  color: var(--ink);
}

.bande-totaux {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rayon);
  padding: 12px 18px;
  margin-bottom: 14px;
}

.bande-totaux .element .libelle { font-size: 12px; color: var(--muted); font-weight: 500; }
.bande-totaux .element .valeur { font-family: var(--police-chiffres); font-weight: 600; font-size: 15px; }
.bande-totaux .element .valeur.negatif { color: var(--danger); }

/* ============ Calculateur (modèles) ============ */

.calc-disposition { display: grid; grid-template-columns: 1fr 246px; gap: 18px; }

.calc-recap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rayon);
  padding: 15px 16px;
  align-self: start;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.calc-recap h3 { font-size: 12.5px; color: var(--muted); font-weight: 600; }

.recap-ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; }
.recap-ligne .valeur { font-family: var(--police-chiffres); font-weight: 600; }
.recap-ligne.majeur { border-top: 1px solid var(--border-forte); padding-top: 9px; margin-top: 3px; }
.recap-ligne.majeur .valeur { font-size: 16px; }
.recap-ligne .valeur.positif { color: var(--succes); }
.recap-ligne .valeur.negatif { color: var(--danger); }

.lignes-editeur { display: flex; flex-direction: column; gap: 8px; }

.ligne-calc {
  display: grid;
  grid-template-columns: 1fr 88px 96px 92px 34px;
  gap: 8px;
  align-items: center;
}

.ligne-calc .sous-total {
  font-family: var(--police-chiffres);
  font-size: 12.5px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.lignes-entete {
  display: grid;
  grid-template-columns: 1fr 88px 96px 92px 34px;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 0 2px;
}

/* ============ Graphique barres ============ */

.graphique-barres { width: 100%; }
.graphique-barres text { font-family: var(--police); }

/* ============ Deux colonnes dashboard ============ */

.deux-colonnes {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
  align-items: start;
}

.liste-simple { display: flex; flex-direction: column; }

.liste-simple .ligne {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.liste-simple .ligne:last-child { border-bottom: none; }
.liste-simple .num { margin-left: auto; font-family: var(--police-chiffres); font-weight: 600; }

/* ============ Paramètres ============ */

.parametres-sections { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }

.note-aide {
  background: var(--accent-tint);
  border: 1px solid oklch(0.87 0.03 268);
  color: var(--ink);
  border-radius: var(--rayon-petit);
  padding: 11px 14px;
  font-size: 12.5px;
  line-height: 1.55;
}

/* ============ Responsive ============ */

@media (max-width: 900px) {
  .coquille { flex-direction: column; }

  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 10px 14px;
    gap: 8px;
    overflow-x: auto;
  }

  .marque { padding: 0 8px 0 0; }
  .marque-sous { display: none; }
  .nav { flex-direction: row; margin: 0; }
  .nav a { padding: 8px 11px; white-space: nowrap; }
  .nav a span.txt { display: none; }
  .sidebar-pied { display: none; }
  .contenu { padding: 18px 14px 46px; }
  .deux-colonnes, .calc-disposition { grid-template-columns: 1fr; }
  .form-grille { grid-template-columns: 1fr; }
  .calc-recap { position: static; }
  .ligne-calc, .lignes-entete { grid-template-columns: 1fr 70px 84px 80px 30px; }
}

/* ============ Mouvement réduit ============ */

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