/* Parole Claire : système visuel de la marque (accueil, connexion).
   Encre + brume + jaune sous-titre : la convention du sous-titrage comme identité. */
:root {
  --encre: #101B3B;
  --encre-2: #1C2A55;
  --brume: #F3F5FA;
  --blanc: #FFFFFF;
  --ardoise: #5B6478;
  --trait: #DCE1EC;
  --jaune: #FFD000;
  --jaune-fonce: #8A6A00;
  --ok: #1E7F4F;
  --erreur: #B3261E;

  --titre: "Bricolage Grotesque", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --texte: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;

  --r-petit: 10px;
  --r: 18px;
  --r-grand: 28px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--brume);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; border-radius: 6px; }

/* Logo : deux barres de sous-titre empilées + le nom */
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--titre); font-weight: 700; font-size: 21px; letter-spacing: -0.01em;
  text-decoration: none; color: inherit;
}
.logo-signe { display: inline-flex; flex-direction: column; gap: 3px; }
.logo-signe span { display: block; height: 5px; border-radius: 3px; background: var(--jaune); }
.logo-signe span:first-child { width: 22px; }
.logo-signe span:last-child { width: 14px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 17px/1 var(--texte); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-jaune { background: var(--jaune); color: var(--encre); }
.btn-jaune:hover { background: #FFDC3D; }
.btn-encre { background: var(--encre); color: var(--blanc); }
.btn-encre:hover { background: var(--encre-2); }
.btn-contour { border-color: currentColor; background: transparent; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Champs */
.champ-marque {
  width: 100%; min-height: 54px; padding: 0 16px;
  border: 2px solid var(--trait); border-radius: var(--r-petit);
  background: var(--blanc); color: var(--encre);
  font: 18px var(--texte);
}
.champ-marque:focus { border-color: var(--encre); outline: none; box-shadow: 0 0 0 4px rgba(255, 208, 0, .45); }
label.etiquette { display: block; font-weight: 700; font-size: 16px; margin: 18px 0 6px; }
