/* Data Hub — feuille du login et de la coquille. Rien de plus.
 *
 * Les composants des ECRANS (tuiles, pastilles d'etat, tableaux triables) ne sont
 * pas ici : ils se cadrent sur les planches avant d'etre produits. Ecrire leur CSS
 * maintenant, ce serait figer un dessin qui n'est pas arrete.
 *
 * Palette et typographie reprises de CONCEPTION-FRONT.md §3 — six jetons de socle,
 * pile systeme, aucune police telechargee : zero requete reseau, zero FOUT, ce qui
 * est exactement ce qu'un mutualise demande. */

:root {
  --fg:     #1c2024;   /* texte, encre, controle actif */
  --muted:  #6a737d;   /* libelles, secondaire */
  --line:   #e6e9ec;   /* filets, bordures */
  --bg:     #f7f8fa;   /* fond de page */
  --card:   #ffffff;   /* surfaces */
  --accent: #0E7A5C;   /* vert WeComm — NAVIGATION seulement, jamais un bouton */
  --ko:     #b3261e;
  --ko-fond:#fdecea;
  --ombre:  0 1px 2px rgba(16,22,26,.06), 0 4px 12px rgba(16,22,26,.05);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 15px/1.55 "Segoe UI", -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
}

h1 { font-size: 24px; font-weight: 650; letter-spacing: -.2px; margin: 0 0 4px; }
h2 {
  font-size: 12px; font-weight: 650; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin: 32px 0 8px;
}

/* --- La porte ------------------------------------------------------------- */

body.porte {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px;
}

.carte-porte {
  width: 100%; max-width: 380px; padding: 32px 28px 24px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--ombre);
}

.carte-porte .sous { margin: 0 0 24px; color: var(--muted); font-size: 13px; }

.refus {
  margin: 0 0 18px; padding: 10px 12px; border-radius: 7px;
  background: var(--ko-fond); color: var(--ko); font-size: 14px;
}

label {
  display: block; margin: 14px 0 5px;
  font-size: 11px; font-weight: 650; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted);
}

input[type=text], input[type=password] {
  width: 100%; padding: 9px 11px; font: inherit; color: var(--fg);
  background: var(--card); border: 1px solid var(--line); border-radius: 7px;
}
input[type=text]:focus, input[type=password]:focus {
  outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent);
}
#code { letter-spacing: .35em; }

/* Bouton d'action en ENCRE, jamais en vert : un bouton vert plein se lit comme un
 * verdict « c'est bon ». Le vert est reserve a la navigation. */
button[type=submit] {
  width: 100%; margin-top: 22px; padding: 10px 14px;
  font: inherit; font-weight: 650; color: var(--card);
  background: var(--fg); border: 0; border-radius: 7px; cursor: pointer;
}
button[type=submit]:hover { background: #000; }

.pied { margin: 20px 0 0; font-size: 12px; color: var(--muted); }

/* --- La coquille ---------------------------------------------------------- */

.bandeau {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; background: var(--card); border-bottom: 1px solid var(--line);
}
.marque { font-weight: 650; letter-spacing: -.2px; }
.sortie { margin: 0; }

.lien-bouton {
  padding: 6px 12px; font: inherit; font-size: 13px; color: var(--fg);
  background: transparent; border: 1px solid var(--line);
  border-radius: 7px; cursor: pointer;
}
.lien-bouton:hover { border-color: var(--fg); }

.page { max-width: 1320px; margin: 0 auto; padding: 28px 24px 64px; }
@media (max-width: 820px) { .page { padding: 18px 12px 48px; } }

.etat { margin: 14px 0 0; padding-left: 18px; color: var(--fg); }
.etat li { margin: 4px 0; }

.note { color: var(--muted); font-size: 14px; max-width: 62ch; }

/* Ce qui n'existe pas doit se LIRE comme n'existant pas — la meme doctrine que
 * `.lien.eteint` du rapport : la seule opacite faisait passer un outil absent pour
 * un lien ordinaire un peu pale. */
.attente { margin: 8px 0 0; padding-left: 22px; color: var(--muted); }
.attente li { margin: 3px 0; text-decoration: line-through; }
