/* Base commune à la connexion et à l'application : police, remise à zéro,
   focus visible, boutons et champs. Aucune valeur de couleur ou de taille en dur : tout vient
   de tokens.css. */

/* Schibsted Grotesk (licence OFL, vendor/schibsted-grotesk-v7/OFL.txt) : une seule police
   variable, sous-ensemble latin (français compris), qui couvre 400 à 700.
   Le dossier porte la version de la police : en cas de changement de fichier,
   changer aussi de dossier (vendor/ est servi en cache immuable). */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/vendor/schibsted-grotesk-v7/SchibstedGrotesk-latin-variable.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font: var(--fw-regular) var(--fs-m)/var(--lh) var(--font-ui);
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; font-stretch: inherit; color: inherit; }
:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-w); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hidden { display: none !important; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--ctl-m); padding: 0 var(--s-4);
  font-size: var(--fs-m); font-weight: var(--fw-medium); white-space: nowrap;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-ctl);
  cursor: pointer; text-decoration: none;
}
.btn:hover:not(:disabled) { border-color: var(--ink-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primaire { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.btn-primaire:hover:not(:disabled) { background: var(--accent-2); border-color: var(--accent-2); }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 55%, var(--line-strong)); }
.btn-danger:hover:not(:disabled) { border-color: var(--danger); }
.btn-danger-plein { color: var(--accent-ink); background: var(--danger); border-color: var(--danger); }
.btn-discret { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-discret:hover:not(:disabled) { border-color: transparent; background: var(--surface-2); color: var(--ink); }
.btn-petit { min-height: var(--ctl-s); padding: 0 var(--s-3); font-size: var(--fs-s); }
.icon-btn {
  display: grid; place-items: center; flex: none; width: var(--ctl-size); height: var(--ctl-size); padding: 0;
  color: var(--ink-2); background: none; border: 0; border-radius: var(--radius-ctl); cursor: pointer;
}
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }

/* Champs */
.champ, select.champ, textarea.champ {
  width: 100%; min-height: var(--ctl-m); padding: var(--s-2) var(--s-3);
  color: var(--ink); background: var(--surface-2); border: 1px solid transparent; border-radius: var(--radius-ctl);
}
.champ:focus-visible { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 calc(var(--focus-w) - 1px) var(--focus); background: var(--surface); }
textarea.champ { min-height: calc(var(--ctl-m) * 2); resize: vertical; }
.champ::placeholder { color: var(--ink-3); opacity: 1; }
label.etiquette { display: grid; gap: var(--s-1); font-size: var(--fs-s); color: var(--ink-2); }

