/* Bip a Tutti — lot 0 — styles du banc d'essai. Reprend les jetons de design/tokens.css, sans prétention. */

:root {
  --bg: #F6F2EA; --surface: #FFFDF8; --surface-2: #ECE6DA; --line: #DAD2C3;
  --text: #1C2230; --muted: #575D6C;
  --primary-bg: #1C2230; --primary-text: #FBF8F2;
  --call-bg: #FF6A2B; --call-text: #1C2230;
  --done: #1F6B3A; --alert: #B4410E; --stale: #6B7080;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F141D; --surface: #182030; --surface-2: #212A3B; --line: #323C4E;
    --text: #EEF1F6; --muted: #AEB5C3;
    --primary-bg: #EEF1F6; --primary-text: #0F141D;
    --done: #6FCF97; --alert: #FF9B6A; --stale: #9AA0AE;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.45 system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-text-size-adjust: 100%;
}
.page { max-width: 560px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px 48px; }
h1 { font-size: 28px; line-height: 1.15; margin: 4px 0 8px; font-weight: 800; }
h2 { font-size: 20px; margin: 0 0 12px; }
.surtitre { font-size: 16px; font-weight: 700; color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: .04em; }
.muet { color: var(--muted); }
.carte { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 16px 0; }
.carte.alerte { border: 2px dashed var(--stale); }
ol { padding-left: 22px; margin: 0 0 8px; }
li { margin-bottom: 6px; }

dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 600; }

label { display: block; font-weight: 600; margin-bottom: 6px; }
input {
  width: 100%; min-height: 48px; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px;
}
button {
  display: block; width: 100%; min-height: 56px; margin: 0 0 10px; border-radius: 16px;
  font: inherit; font-weight: 700; cursor: pointer; border: 2px solid transparent;
}
button.principal { background: var(--primary-bg); color: var(--primary-text); }
button.secondaire { background: transparent; color: var(--text); border-color: var(--line); }
button.appel { background: var(--call-bg); color: var(--call-text); min-height: 72px; font-size: 20px; }
button.lien { background: none; color: var(--muted); min-height: 44px; text-decoration: underline; font-weight: 400; }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.version { text-align: center; margin-top: 24px; }
.message { min-height: 1.4em; margin: 4px 0 0; font-weight: 600; }

.plein {
  position: fixed; inset: 0; background: var(--bg); z-index: 10; overflow: auto;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}
.plein-contenu { max-width: 560px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
.plein h1 { font-size: 32px; }
.plein-corps { font-size: 20px; margin: 0 0 32px; }
