/* ==========================================================================
   Refonte « Cockpit » — v12

   Chargée APRÈS app.css, dont elle ne retire rien. Retirer la ligne <link>
   de index.html rend l'ancienne interface (police et graisses mises à part,
   réglées dans app.css via --font-ui / --font-mono).

   Parti pris : un combiné d'instruments de nuit. Noir profond, panneaux en
   filets fins éclairés par le haut, cadrans à 270° gradués, chiffres fins à
   chasse fixe, et un seul éclairage — l'ambre des aiguilles. Michroma, police
   large de lettrage automobile, ne sert qu'aux libellés courts en capitales :
   marque, titres d'onglet, unités.

   ⚠️ Aucun backdrop-filter : le GPU de l'autoradio le rend en bandes de
   pixels. Les halos sont des box-shadow, que les règles html.rendu-simple
   d'app.css (plus spécifiques) suppriment avec tout le reste.
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Michroma";
  src: url("fonts/Michroma.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --font-ui: "Geist", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Courier New", monospace;
  --font-display: "Michroma", "Geist", sans-serif;

  --bg: #050608;
  --bg-glow-1: rgba(255, 159, 28, 0.13);
  --bg-glow-2: rgba(70, 110, 160, 0.10);
  --card-bg: #0c0e11;
  --card-bg-alt: #12151a;
  --surface-3: #1a1e24;

  /* L'ambre remplace l'or partout où app.css l'emploie : c'est la couleur
     d'éclairage des aiguilles, et la seule couleur non sémantique de l'app. */
  --gold: #ff9f1c;
  --gold-light: #ffbe5c;
  --gold-dark: #c46d00;
  --ambre: var(--gold);
  --ambre-lavis: rgba(255, 159, 28, 0.12);
  --ambre-halo: 0 0 18px rgba(255, 159, 28, 0.45);

  --red: #ff3b4f;
  --red-light: #ff6676;
  --orange: #ff7a2e;
  --green: #2fd37f;

  --text: #eef1f5;
  --text-secondary: #8e959f;
  --text-dim: #565d67;

  --line: rgba(220, 230, 245, 0.08);
  --card-border: var(--line);
  --card-border-strong: rgba(255, 159, 28, 0.4);
  /* Filet éclairé par le haut : le panneau semble taillé, pas posé. */
  --relief: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 -1px 0 rgba(0, 0, 0, 0.6);

  --radius: 22px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-card: var(--relief);

  --nav-height: 68px;
  --nav-gap: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Fond ---------- */

/* Halo ambre en haut, reflet froid en bas, et une trame de points très
   discrète : de la profondeur sans un seul calque animé. */
body {
  font-family: var(--font-ui);
  background:
    radial-gradient(700px 360px at 50% -120px, var(--bg-glow-1), transparent 70%),
    radial-gradient(600px 400px at 100% 110%, var(--bg-glow-2), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1.2px) 0 0 / 22px 22px,
    var(--bg);
  background-attachment: fixed;
}

button, input, select, textarea { font-family: inherit; }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

/* ---------- En-tête ---------- */

.app-header {
  background: none;
  border-bottom: none;
  height: auto;
  min-height: var(--header-height);
  padding-top: calc(env(safe-area-inset-top) + 8px);
}

.crest { width: 36px; height: 33px; }

.brand-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.28em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.conn-pill {
  min-height: 44px;
  padding: 0 16px 0 14px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  box-shadow: var(--relief);
  font-family: var(--font-display);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.conn-pill .conn-dot { width: 7px; height: 7px; }
.conn-pill.connected { border-color: rgba(47, 211, 127, 0.45); background: rgba(47, 211, 127, 0.08); }
.conn-pill.connected .conn-dot { box-shadow: 0 0 10px var(--green); }
.conn-pill.connecting { border-color: var(--card-border-strong); background: var(--ambre-lavis); }
.conn-pill.relayed { border-color: rgba(90, 150, 230, 0.5); background: rgba(90, 150, 230, 0.1); }
.conn-pill.relayed .conn-dot { box-shadow: 0 0 10px var(--crest-blue-light); }

.btn-icon,
.logout-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  box-shadow: var(--relief);
  color: var(--text-secondary);
  transition: transform 0.15s var(--ease), color 0.2s;
}
.btn-icon:active { transform: scale(0.94); color: var(--gold-light); }

/* ---------- Structure ---------- */

.app-main {
  padding: 6px 14px calc(var(--nav-height) + var(--nav-gap) * 2 + env(safe-area-inset-bottom) + 18px);
}

/* Titre d'onglet en lettrage de calandre : court, large, espacé. */
.tab-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.25;
  margin: 14px 4px 22px;
  text-wrap: balance;
}

.section-header { margin: 30px 4px 12px; }

.card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Panneau générique : filet fin, éclairé par le haut. */
.card,
.fuel-ratio-card,
.sante,
.paliers-carte,
.diag-context,
.moniteurs-vide {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card-bg-alt), var(--card-bg) 60%);
  border-radius: var(--radius-lg);
  box-shadow: var(--relief);
}

/* ---------- Sélecteur de mode ---------- */

.mode-toggle,
.calc-toggle {
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--relief);
  padding: 4px;
}
.mode-toggle-btn,
.calc-toggle-btn {
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s, background 0.25s var(--ease);
}
.mode-toggle-btn.active,
.calc-toggle-btn.active {
  background: var(--ambre-lavis);
  color: var(--gold-light);
  box-shadow: inset 0 0 0 1px var(--card-border-strong);
}

.mode-explication { font-size: 12.5px; color: var(--text-dim); margin: 10px 6px 0; max-width: 60ch; }

.relay-banner {
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Combiné : les deux cadrans ---------- */

.gauge-row {
  gap: 0;
  padding: 18px 8px 14px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(120% 90% at 50% 0%, #15181e 0%, #090a0d 70%);
  box-shadow: var(--relief), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  justify-content: space-around;
}

.gauge {
  width: 44vw;
  height: 44vw;
  max-width: 190px;
  max-height: 190px;
  background: none;
  transition: transform 0.2s var(--ease);
}
.gauge:active { transform: scale(0.97); }

/* Départ en bas à gauche, arrivée en bas à droite : 270° de balayage. */
.gauge-svg { transform: rotate(135deg); overflow: visible; }

.gauge-ticks {
  fill: none;
  stroke: rgba(230, 236, 245, 0.28);
  stroke-width: 3.2;
}
.gauge-ticks.majeur { stroke: rgba(230, 236, 245, 0.75); stroke-width: 5; }

.gauge-zone {
  fill: none;
  stroke: var(--red);
  stroke-width: 5;
  opacity: 0.85;
}

.gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 3;
  stroke-dasharray: 75 100;
}

.gauge-arc {
  fill: none;
  stroke: var(--color);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 75 100;
  stroke-dashoffset: 75;
  filter: drop-shadow(0 0 3px var(--color));
  transition: stroke-dashoffset 0.6s var(--ease), stroke 0.45s ease;
}

.gauge-center { transform: translateY(-2px); }

.gauge-value {
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
  font-size: 50px;
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1;
}

.gauge-unit {
  font-family: var(--font-display);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  margin-top: 6px;
}

.gauge-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin-top: 3px;
}

.gauge-pid {
  bottom: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--text-dim);
  background: none;
  letter-spacing: 0.1em;
}

/* ---------- Tuiles de mesure : afficheurs ---------- */

.metric-grid { gap: 10px; margin-top: 12px; }

.metric-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card-bg-alt), var(--card-bg) 70%);
  border-radius: var(--radius-md);
  box-shadow: var(--relief);
  padding: 14px 14px 12px;
  transition: transform 0.15s var(--ease), border-color 0.2s;
}
.metric-card:active { transform: scale(0.98); border-color: var(--card-border-strong); }
.metric-card.a-valeur { border-color: rgba(255, 159, 28, 0.18); }

.metric-head {
  align-items: flex-start;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.metric-head .icon { width: 16px; height: 16px; color: var(--gold); }

.metric-pid {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--text-dim);
  background: none;
  padding: 0;
}

.metric-foot {
  margin-top: auto;
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  font-weight: 250;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* Barre en segments de LED : un masque répété sur le remplissage. */
.metric-bar {
  order: 3;
  height: 6px;
  margin-top: 12px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 5px, transparent 5px 7px);
}
.metric-bar-fill,
.metric-bar-fill.gold,
.metric-bar-fill.teal {
  border-radius: 0;
  background: var(--gold);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 7px);
  mask: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 7px);
}

.metric-etat {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* ---------- Raccourcis du tableau ---------- */

.dtc-quick-card {
  min-height: 60px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card-bg-alt), var(--card-bg));
  box-shadow: var(--relief);
  font-weight: 500;
  font-size: 15px;
}

.badge {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.14em;
  border-radius: 6px;
  padding: 6px 10px;
}
.badge:not(.alert) { box-shadow: 0 0 14px rgba(47, 211, 127, 0.25); }

.km-row {
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  box-shadow: var(--relief);
}
.km-label {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}
.km-mode { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.04em; }
.km-value {
  min-height: 48px;
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
  font-size: 26px;
  font-weight: 250;
  letter-spacing: -0.02em;
  color: var(--text);
}
.km-value .icon { color: var(--gold); }

/* ---------- Boutons ---------- */

.btn {
  min-height: 52px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.15s var(--ease), box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gold);
  color: #140b00;
  box-shadow: var(--ambre-halo), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:active { background: var(--gold-light); }

.btn-secondary {
  border: 1px solid var(--line);
  background: var(--card-bg);
  box-shadow: var(--relief);
  color: var(--text);
}
.btn-secondary .icon { color: var(--gold); }

.btn-danger-outline {
  border: 1px solid rgba(255, 59, 79, 0.4);
  background: rgba(255, 59, 79, 0.08);
  color: var(--red-light);
}

/* ---------- Formulaires ---------- */

.field {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.16em;
}
.field input,
.field select,
.field textarea {
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #07080a;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
  font-family: var(--font-ui);
  letter-spacing: normal;
}
.field input:focus,
.field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--ambre-lavis);
}
.field-aide { font-family: var(--font-ui); letter-spacing: normal; }

/* ---------- Barre d'onglets : la console ---------- */

.bottom-nav {
  left: var(--nav-gap);
  right: var(--nav-gap);
  bottom: calc(var(--nav-gap) + env(safe-area-inset-bottom));
  height: var(--nav-height);
  padding: 6px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #14171c, #0a0b0e);
  box-shadow: var(--relief), 0 20px 40px -10px rgba(0, 0, 0, 0.9);
}

.nav-item {
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  gap: 6px;
  transition: color 0.2s, background 0.25s var(--ease);
}
.nav-item.active { color: var(--gold-light); background: var(--ambre-lavis); }
.nav-item.active .icon { transform: none; filter: drop-shadow(0 0 6px rgba(255, 159, 28, 0.7)); }
/* Le témoin allumé de l'onglet actif, comme un voyant de console. */
.nav-item.active::before {
  display: block;
  top: auto;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 8px var(--gold);
}

/* ---------- Onglet Entretien ---------- */

.bloc { margin-bottom: 34px; }
.bloc-tete { border-bottom: none; padding-bottom: 0; margin-bottom: 14px; }
.bloc-icone { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); }
.bloc-icone.entretien { background: var(--ambre-lavis); color: var(--gold-light); }
.bloc-titre { font-family: var(--font-display); font-weight: 400; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.bloc-sous { font-size: 12.5px; font-weight: 500; margin-top: 5px; }

.sante, .paliers-carte { padding: 20px; }
.sante-km {
  font-family: var(--font-ui);
  font-weight: 200;
  font-size: 44px;
  letter-spacing: -0.04em;
  color: var(--text);
}
.sante-km-label,
.paliers-titre {
  font-family: var(--font-display);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}
.sante-centre b { font-weight: 300; font-size: 26px; }
.anneau circle { stroke-width: 2.6; }
.palier { border-bottom-color: var(--line); }
.palier-km { font-family: var(--font-ui); font-weight: 300; font-size: 20px; letter-spacing: -0.02em; }
.palier-barre, .ent-barre {
  height: 5px;
  border-radius: 1px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 5px, transparent 5px 7px);
}
.palier-barre i, .ent-barre i {
  border-radius: 0;
  background: var(--gold);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 7px);
  mask: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 7px);
}
.palier-job, .palier-lot { border-radius: 6px; font-weight: 500; }

.groupe-titre {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.ent {
  border: 1px solid var(--line);
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--relief);
  margin-bottom: 8px;
}
.ent.niveau-urgent { border-color: rgba(255, 59, 79, 0.35); background: linear-gradient(90deg, rgba(255, 59, 79, 0.08), transparent 60%), var(--card-bg); }
.ent.niveau-warning { border-color: rgba(255, 122, 46, 0.3); background: linear-gradient(90deg, rgba(255, 122, 46, 0.07), transparent 60%), var(--card-bg); }
.ent-ligne { min-height: 64px; border-radius: 16px; }
.ent-icone { border-radius: 10px; }
.ent-titre { font-weight: 500; }
.ent-reste { font-weight: 500; }
.ent-reperes { border-top-color: var(--line); }

.produit-bloc { border: 1px solid var(--card-border-strong); background: var(--ambre-lavis); border-radius: 14px; }
.gm-bloc { border: 1px solid var(--line); background: var(--card-bg-alt); border-radius: 14px; }

/* ---------- Onglet Flexfuel ---------- */

.calc-result,
.bilan-phare,
.bilan-phare.vide {
  border: 1px solid var(--line);
  background: #08090c;
  border-radius: 14px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.calc-result-label,
.bilan-phare-label {
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.14em;
}

/* Un seul style pour tous les chiffres-vedettes : celui des cadrans. */
.calc-result-value,
.bilan-phare-valeur,
.bilan-eco-valeur,
.huile-valeur {
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
  font-weight: 200;
  letter-spacing: -0.03em;
}
.calc-result-value { font-size: 30px; }
.bilan-phare-valeur { font-size: 42px; }
.bilan-eco-valeur { font-size: 34px; }
.huile-valeur { font-size: 30px; }

/* ---------- Onglet Diagnostic ---------- */

.dtc-banner,
.dtc-banner.alert {
  min-height: 60px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dtc-banner { box-shadow: 0 0 30px -8px rgba(47, 211, 127, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05); }

.version-chip { font-family: var(--font-mono); }

/* ---------- Feuille modale ---------- */

.modal-overlay { background: rgba(2, 3, 4, 0.86); }
.modal {
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, #15181d, #0c0e11 140px);
  box-shadow: var(--relief), 0 -20px 60px rgba(0, 0, 0, 0.7);
  padding: 14px 20px calc(24px + env(safe-area-inset-bottom));
  animation: modal-up 0.35s var(--ease);
}
.modal-title { font-family: var(--font-display); font-weight: 400; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.modal-sub { font-size: 13px; }

/* ---------- Notifications ---------- */

.toast {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #14171c;
  font-weight: 500;
  box-shadow: var(--relief), 0 16px 32px rgba(0, 0, 0, 0.6);
}
.toast.error { border-color: rgba(255, 59, 79, 0.5); }
.toast.success { border-color: rgba(47, 211, 127, 0.5); }

/* ---------- Écran de connexion ---------- */

.auth-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, #13161b, #0a0b0e 60%);
  box-shadow: var(--relief), 0 40px 80px -20px rgba(0, 0, 0, 0.9);
  padding: 32px 24px 24px;
}
.auth-card form { text-align: left; }
.auth-brand { font-family: var(--font-display); font-weight: 400; font-size: 16px; letter-spacing: 0.3em; }
.auth-sub { font-size: 13px; }
.auth-title { font-family: var(--font-display); font-weight: 400; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); margin: 6px 0 4px; }
.auth-version { font-family: var(--font-mono); }

/* ---------- Grands écrans ---------- */

@media (min-width: 480px) {
  .bottom-nav { max-width: 460px; margin: 0 auto; }
}

@media (min-width: 720px) {
  #app { box-shadow: none; }
  .bottom-nav { left: 50%; right: auto; width: 460px; transform: translateX(-50%); }
}

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

/* ---------- Ajustements ---------- */

/* Quatre chiffres de régime doivent tenir dans le cadran. */
#valRpm { font-size: 40px; }

/* Phrase longue : lisible en casse normale, pas en lettrage large. */
.relay-banner { font-family: var(--font-ui); font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; }

/* Le voyant de l'onglet actif s'allume au-dessus de l'icône, pas sur le libellé. */
.nav-item.active::before { top: 6px; bottom: auto; }

/* Les boutons d'action côte à côte gardent le lettrage des autres. */
.dtc-actions .btn,
.diag-actions .btn { font-size: 10px; }

/* ---------- Corrections de la revue du 09/10 sur le site en ligne ---------- */

/* « DÉCONNECTÉ » en lettrage large poussait le bouton de déconnexion hors de
   l'écran (en-tête à 433 px pour 412). Libellé d'état en Geist, plus étroit,
   et l'en-tête autorise ses blocs à rétrécir. */
.app-header { gap: 8px; }
.brand { min-width: 0; }
.brand-text { min-width: 0; }
.header-actions { flex-shrink: 0; }
.conn-pill {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0 12px;
}

/* Libellés de formulaire : le lettrage large débordait des grilles à deux
   colonnes (« Prix E85 (€/L) » sortait de l'écran) et Michroma n'a pas de
   glyphe €. Geist en petites capitales, et des colonnes qui rétrécissent. */
.field {
  min-width: 0;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.field input, .field select, .field textarea { min-width: 0; width: 100%; }

/* Cibles tactiles de l'écran de connexion sous 48 px. */
.password-toggle { width: 44px; height: 44px; }
.auth-card .link-btn { min-height: 48px; }
