/* Logi Z 2.0 — feuille de style unique, sans framework ni build.
   Volontairement sobre : le soin visuel viendra avec les écrans métier. */

:root {
  --encre: #1f2937;
  --doux: #6b7280;
  --trait: #e4e8f0;
  --fond: #f6f8fb;
  --accent: #1d3a6b;
  --accent-clair: #e6f1fb;
  --vert: #2f7d4f;
  --rouge: #c2402f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--encre);
  background: var(--fond);
  line-height: 1.5;
}

/* ── Barre supérieure ─────────────────────────────────────────────────────── */
.barre {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--trait);
}
.marque { font-weight: 800; font-size: 17px; color: var(--accent); text-decoration: none; }
.nav { display: flex; gap: 6px; flex: 1 1 auto; flex-wrap: wrap; }
.pilule {
  padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: #5a6678; text-decoration: none;
}
.pilule:hover { background: #f1f4f9; color: var(--accent); }
.pilule.actif { background: var(--accent-clair); color: #0c447c; }

.etab { display: flex; align-items: center; gap: 8px; }
.etab-libelle { font-size: 12px; font-weight: 700; color: var(--doux); text-transform: uppercase; }
.etab-select { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--trait); background: #fff; }

.compte { display: flex; align-items: center; gap: 12px; }
.compte-nom { font-size: 13px; font-weight: 700; }
.compte-nom em { display: block; font-style: normal; font-weight: 600; font-size: 11.5px; color: var(--doux); }
.lien { border: 0; background: none; color: var(--accent); font-size: 13px; cursor: pointer; text-decoration: underline; }

/* ── Structure ────────────────────────────────────────────────────────────── */
.scene { max-width: 960px; margin: 0 auto; padding: 28px 24px 60px; }
.scene.etroit, .carte.etroit { max-width: 640px; }
.scene.centre { display: grid; place-items: center; min-height: 100vh; }

.titre { margin-bottom: 18px; }
.titre span { font-size: 12px; font-weight: 800; color: var(--doux); text-transform: uppercase; letter-spacing: .04em; }
.titre h1 { margin: 2px 0 0; font-size: 24px; }

.carte {
  background: #fff; border: 1px solid var(--trait); border-radius: 14px;
  padding: 20px 22px; margin-bottom: 18px;
}
.carte h2 { margin: 0 0 12px; font-size: 16px; }
.carte h3 { margin: 20px 0 10px; font-size: 14px; color: var(--doux); }
.connexion { min-width: 340px; }

.aide { color: var(--doux); font-size: 13.5px; margin: 0 0 14px; }
.pied { text-align: center; color: var(--doux); font-size: 12px; padding: 20px; }
.pied-invite { color: var(--doux); font-size: 12px; margin-top: 16px; text-align: center; }

/* ── Formulaires ──────────────────────────────────────────────────────────── */
.formulaire { display: flex; flex-direction: column; gap: 14px; }
.formulaire label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 600; }
.formulaire small { font-weight: 500; color: var(--doux); }
.paire { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .paire { grid-template-columns: 1fr; } }

input[type=text], input[type=email], input[type=password], select {
  padding: 9px 12px; border-radius: 9px; border: 1px solid var(--trait);
  font-size: 14px; font-family: inherit; background: #fff;
}
input:focus, select:focus { outline: 2px solid #b5d4f4; outline-offset: 1px; }
.case { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 600; }

.bouton {
  padding: 9px 16px; border-radius: 9px; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; font-family: inherit;
}
.bouton:hover { filter: brightness(1.1); }
.bouton:disabled { opacity: .4; cursor: not-allowed; }
.bouton.discret { background: #fff; color: var(--accent); border: 1px solid var(--trait); }
.bouton.danger { background: #fff; color: var(--rouge); border: 1px solid #f0c2ba; }
.bouton.danger:hover:not(:disabled) { background: #fdeeec; }

/* ── Listes et tables ─────────────────────────────────────────────────────── */
.liste { list-style: none; margin: 0 0 16px; padding: 0; }
.ligne { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--trait); flex-wrap: wrap; }
.ligne-forme { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; }
.ligne-forme input[type=text] { flex: 1 1 auto; min-width: 0; }
.creation { margin-top: 6px; }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 600; padding: 7px 0; width: 45%; }
.table td { padding: 7px 0; color: var(--doux); }
.table .ok { color: var(--vert); font-weight: 700; text-align: right; }
.table .ko { color: var(--rouge); font-weight: 700; text-align: right; }

/* ── Messages ─────────────────────────────────────────────────────────────── */
.alerte { padding: 10px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; margin: 0 0 14px; }
.alerte.erreur { background: #fdeeec; color: var(--rouge); }
.alerte.succes { background: #eaf5ee; color: var(--vert); }
