/* Les pages d'avant la connexion (connexion, inscription, confirmation d'adresse, mot de passe,
   choix du profil, désabonnement) : UNE feuille, aux couleurs et à la police de l'app
   (tars-ui/src/styles.css, :root). Avant le 05/11/2026 chacune avait la sienne : marine et turquoise
   en Segoe UI ici, bleu en « SF Pro » (jamais chargée) là, cartes arrondies et boutons pilules,
   alors que l'app est en Inter, en gris, à angles droits. La première chose qu'un client voit ne
   ressemblait pas au produit.
   Chaque page garde dans son <style> ce qui n'appartient qu'à elle (CAPTCHA, tuiles des profils…). */

@font-face {
  font-family: 'Inter';
  src: url("/static/fonts/inter-latin.woff2") format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blanc: #fff;
  --fond: #f5f5f7;
  --filet: #d2d2d7;
  --gris-clair: #f0f0f2;
  --gris: #6e6e73;
  --encre: #1d1d1f;
  --cadre: #0a0a0c;
  --rouge: #c0392b;
  --rouge-fond: #fbeaea;
  --vert: #2e7d46;
  --vert-fond: #eaf4ed;
  --bleu: #1a6fbd;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--fond);
  color: var(--encre);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  font-size: 15px;
  line-height: 1.5;
}

/* La carte : blanche, un filet, angles droits, comme les panneaux de l'app. */
.card {
  background: var(--blanc);
  border: 1px solid var(--filet);
  width: 432px;
  max-width: 100%;
  padding: 44px 40px 36px;
}
@media (max-width: 480px) { .card { padding: 32px 22px 28px; } }

/* Le logo : l'œil de TARS sur fond noir, carré. */
.logo-box {
  width: 64px;
  height: 64px;
  background: var(--cadre);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.marque {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--encre);
  margin-bottom: 22px;
}

h1, h2 { color: var(--encre); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
h1 { font-size: 24px; margin-bottom: 24px; }
h2 { font-size: 21px; margin-bottom: 8px; }
.subtitle, .hint, .sub { font-size: 14px; color: var(--gris); line-height: 1.55; font-weight: 400; }

label { display: block; font-size: 13px; color: var(--gris); margin-bottom: 6px; }

input:not([type=checkbox]):not([type=radio]) {
  width: 100%;
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-radius: 0;
  padding: 14px;
  font: inherit;
  font-size: 15px;
  color: var(--encre);
  outline: none;
  transition: border-color .15s;
}
input:not([type=checkbox]):not([type=radio]):focus { border-color: var(--encre); }
input::placeholder { color: #8a8a8f; }

/* Bouton principal : noir, angles droits, comme le bouton principal de l'app. Borné aux boutons
   des pages elles-mêmes (dans la carte ou une fenêtre, ou portant .btn) : le bandeau des cookies,
   posé par un script commun à tout le site, garde son propre dessin. */
button { font: inherit; cursor: pointer; }
.card button, .box button, .btn {
  display: block;
  width: 100%;
  background: var(--cadre);
  color: var(--blanc);
  border: 1px solid var(--cadre);
  border-radius: 0;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s, opacity .15s;
}
.card button:hover, .box button:hover, .btn:hover { background: #2a2a2e; }
.card button:disabled, .box button:disabled, .btn:disabled { opacity: .45; cursor: not-allowed; }
/* Bouton second : contour noir sur blanc (« Créer un compte » à côté de « Se connecter »). */
.card .btn-alt, a.btn-alt {
  background: var(--blanc);
  color: var(--encre);
  border: 1px solid var(--cadre);
}
.card .btn-alt:hover, a.btn-alt:hover { background: var(--fond); }

:where(a, button, input, select, [tabindex]):focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }

a { color: var(--encre); text-underline-offset: 2px; }

/* Messages : erreur en rouge, réussite en vert, information en gris, tous sans arrondi. */
.err { color: var(--rouge); font-size: 14px; text-align: start; }
.ok-box, .ok {
  background: var(--vert-fond);
  border: 1px solid #bfdcc8;
  color: var(--encre);
  font-size: 14px;
  line-height: 1.55;
  padding: 14px 16px;
}
