/* Savoira, connexion / inscription simplifiées : une colonne, un geste.
   Jetons : #FAF8F2 papier, #0E3B2C pin, #0E8F5F vert, #121A16 encre. */
/* --as-green sert aux bordures, aux aplats et aux pastilles, où 3:1 suffit
   (WCAG 1.4.11). Sur du TEXTE il ne donne que 4,11:1 sur blanc, sous les 4,5:1
   exigés : --as-green-ink, plus sombre, monte à 5,37:1 sans changer la teinte. */
:root { --as-paper: #FAF8F2; --as-pine: #0E3B2C; --as-green: #0E8F5F; --as-green-ink: #0B7A50; --as-ink: #121A16; --as-muted: #66736B; --as-line: #D3DAD2; --as-soft: #E5E9E3; --as-warn: #B4540A; }
html, body { margin: 0; background: var(--as-paper); }
body { font-family: "Geist", "Helvetica Neue", Arial, sans-serif; color: var(--as-ink); -webkit-font-smoothing: antialiased; }
.as-main { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; box-sizing: border-box; }
.as-box { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.as-brand { margin-bottom: 26px; display: block; }
.as-brand svg { display: block; overflow: visible; }
.as-step { width: 100%; display: flex; flex-direction: column; align-items: center; }
.as-step[hidden] { display: none; }
.as-h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.025em; margin: 0 0 30px; text-wrap: balance; }
.as-h1.tight { margin-bottom: 10px; }
.as-sub { font-size: 14.5px; line-height: 1.6; color: var(--as-muted); margin: 0 0 30px; }
.as-sub b { color: var(--as-ink); font-weight: 600; }
.as-form { width: 100%; display: flex; flex-direction: column; margin: 0; }
.as-input { width: 100%; height: 50px; border-radius: 10px; border: 1px solid var(--as-line); background: #fff; padding: 0 16px; font: inherit; font-size: 15px; color: var(--as-ink); box-sizing: border-box; }
.as-input + .as-input { margin-top: 10px; }
.as-input::placeholder { color: var(--as-muted); opacity: 1; }
.as-input:focus { outline: none; border-color: var(--as-green); box-shadow: 0 0 0 4px rgba(14,143,95,.12); }
.as-input[aria-invalid="true"] { border-color: var(--as-warn); }
.as-err { font-size: 13px; color: var(--as-warn); margin: 8px 0 0; text-align: left; }
.as-err:empty { display: none; }
.as-btn { width: 100%; height: 50px; border: none; border-radius: 10px; background: var(--as-pine); color: #EEF9F2; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 12px; transition: background .15s ease; }
.as-btn:hover { background: #0C3225; }
.as-btn:disabled { opacity: .7; cursor: default; }
.as-rule { width: 100%; height: 1px; background: var(--as-soft); margin: 26px 0; }
.as-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 10px; background: #fff; border: 1px solid var(--as-line); box-shadow: 0 1px 2px rgba(16,32,26,.05); font: inherit; font-size: 15px; font-weight: 500; color: var(--as-ink); cursor: pointer; text-decoration: none; box-sizing: border-box; transition: border-color .15s ease, background .15s ease; }
.as-google:hover { border-color: var(--as-muted); background: #F4F6F3; color: var(--as-ink); }
.as-google svg { width: 18px; height: 18px; flex: none; }
.as-switch { font-size: 14px; color: #3C4A42; margin: 28px 0 0; }
.as-switch a, .as-legal a, .as-inline { color: var(--as-pine); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.as-switch a:hover, .as-legal a:hover, .as-inline:hover { color: var(--as-green-ink); }
.as-legal { font-size: 12.5px; line-height: 1.6; color: var(--as-muted); margin: 14px 0 0; max-width: 340px; }
.as-legal a { font-weight: 400; text-underline-offset: 2px; }
.as-alt { background: none; border: 0; padding: 8px 0 0; margin-top: 14px; font: inherit; font-size: 13.5px; color: var(--as-muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.as-alt:hover { color: var(--as-ink); }
.as-pw { width: 100%; display: flex; flex-direction: column; margin-top: 10px; }
.as-pw[hidden] { display: none; }
.as-pw-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 13px; }
.as-pw-row a { color: var(--as-muted); text-decoration: underline; text-underline-offset: 2px; }
.as-check { display: inline-flex; align-items: center; gap: 8px; color: var(--as-muted); cursor: pointer; }
.as-check input { accent-color: var(--as-green); width: 15px; height: 15px; margin: 0; }
.as-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #E7F3EC; margin-bottom: 20px; }
.as-icon.ok { background: var(--as-green); }
/* Six cases : 6 × 48 + 5 × 10 = 338 px, au large dans la carte de 400 px. */
.as-code { display: flex; gap: 10px; justify-content: center; }
.as-code input { width: 48px; height: 60px; border-radius: 10px; border: 1px solid var(--as-line); background: #fff; text-align: center; font-family: "Geist Mono", ui-monospace, monospace; font-size: 24px; font-weight: 600; color: var(--as-ink); box-sizing: border-box; padding: 0; }
.as-code input:focus { outline: none; border-color: var(--as-green); box-shadow: 0 0 0 4px rgba(14,143,95,.12); }
.as-code.shake { animation: as-shake .35s ease; }
@keyframes as-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.as-note { font-size: 13px; color: var(--as-muted); margin: 18px 0 0; }
.as-note + .as-note { margin-top: 8px; }
.as-note.ok { color: var(--as-green-ink); font-weight: 500; }
.as-note button { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--as-pine); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.as-note button:disabled { color: var(--as-muted); text-decoration: none; cursor: default; }
.as-help { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; padding: 8px 0; font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--as-muted); text-decoration: none; }
.as-help:hover { color: var(--as-ink); }
.as-foot { margin-top: 36px; display: flex; gap: 14px; font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.as-foot a { color: var(--as-muted); text-decoration: none; }
.as-foot a[aria-current="true"], .as-foot a:hover { color: var(--as-ink); }
.as-status { font-size: 13px; color: var(--as-warn); margin: 12px 0 0; }
.as-status.ok { color: var(--as-green-ink); }
.as-status:empty { display: none; }
.as-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 12px 0 0; width: 100%; }
@media (max-width: 420px) { .as-code { gap: 6px; } .as-code input { width: 40px; height: 52px; font-size: 21px; } .as-h1 { font-size: 23px; } }
@media (max-width: 340px) { .as-code { gap: 4px; } .as-code input { width: 34px; height: 46px; font-size: 19px; } }

/* Thème clair assumé : voir la note dans site-chrome.css. */
:root { color-scheme: light; }
