/* Feuille commune à la vitrine et à l'appli outils. Aucune ressource externe.
   Contrastes (WCAG 2.2, tous AAA >= 7:1) : clair texte 14,6, secondaire 7,2, accent 11,5 ;
   sombre texte 13,7, secondaire 8,3, accent 8,7. */
:root {
  --fond: #f7f5f0;
  --surface: #ffffff;
  --texte: #1b2230;
  --texte-2: #4a5263;
  --accent: #1f3a5f;
  --accent-texte: #ffffff;
  --bord: #d9d5cc;
  --erreur: #9b1c1c;
  --erreur-fond: #fdecec;
  --rayon: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #11151c;
    --surface: #1a2029;
    --texte: #ecebe7;
    --texte-2: #b5b9c2;
    --accent: #9cc0ea;
    --accent-texte: #0f1620;
    --bord: #313a47;
    --erreur: #ffb4b4;
    --erreur-fond: #3a1d1f;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--fond);
  color: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.carte {
  width: 100%;
  max-width: 34rem;
  padding: clamp(1.75rem, 6vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  box-shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 12px 32px -16px rgb(0 0 0 / 18%);
}

.marque {
  margin: 0 0 2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--accent);
}

h1 {
  margin: 0 0 .75rem;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -.01em;
}

p { margin: 0 0 .75rem; }
.chapo { font-size: 1.2rem; }
.carte p:last-child { margin-bottom: 0; }
.secondaire, .pied { color: var(--texte-2); }
.pied { font-size: .9rem; }
.pied p { margin: 0; }

a { color: var(--accent); text-underline-offset: .15em; }

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

/* Formulaires (appli outils) */
form { display: grid; gap: 1rem; margin-top: 1.5rem; }
label { display: grid; gap: .35rem; font-weight: 600; }

input[type="email"],
input[type="password"] {
  width: 100%;
  min-height: 2.875rem;
  padding: .6rem .8rem;
  font: inherit;
  color: var(--texte);
  background: var(--fond);
  border: 1px solid var(--texte-2);
  border-radius: 10px;
}

button {
  min-height: 2.875rem;
  padding: .6rem 1.2rem;
  font: inherit;
  font-weight: 600;
  color: var(--accent-texte);
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

button.discret {
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--bord);
}

.erreur {
  padding: .75rem 1rem;
  color: var(--erreur);
  background: var(--erreur-fond);
  border-radius: 10px;
}

.entete {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.entete .marque { margin: 0; }
.entete form { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
