/* Polices hébergées dans le projet (aucun appel à Google Fonts). Inter et Sora, licence OFL : voir public/fonts/. */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Sora; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/sora-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Sora; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/sora-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Pages de connexion : mise en page « split » (bandeau jaune + formulaire). */
:root { --cx-jaune: #F9C23C; --cx-noir: #111; --cx-gris: #4A4A4A; --cx-bord: #E6E4DE; --cx-fond2: #F5F4F0; --cx-erreur: #D8402F; }
* { box-sizing: border-box; }
body.cx { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--cx-noir); background: #fff; -webkit-font-smoothing: antialiased; }
.cx a { color: var(--cx-noir); text-decoration: none; }
.cx a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cx-page { min-height: 100vh; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

.cx-aside { background: var(--cx-jaune); padding: clamp(24px, 5vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 280px; }
.cx-brand { display: flex; align-items: center; gap: 12px; }
.cx-logo { width: 44px; height: 44px; border-radius: 12px; background: var(--cx-noir); color: var(--cx-jaune); display: grid; place-items: center; font-weight: 800; font-size: 16px; letter-spacing: .02em; flex-shrink: 0; }
.cx-brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cx-brand-name { font-weight: 700; font-size: 17px; line-height: 1.2; }
.cx-brand-sub { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cx-gris); }
.cx-hero { display: flex; flex-direction: column; gap: 16px; }
.cx-kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cx-hello { margin: 0; font-weight: 800; font-size: clamp(40px, 6vw, 80px); line-height: 1.02; letter-spacing: -.03em; }
.cx-hero p { margin: 0; max-width: 440px; font-size: 17px; line-height: 1.55; }
.cx-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.cx-pill { background: rgba(17,17,17,.08); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 500; }
.cx-pill-dark { background: var(--cx-noir); color: #fff; }

.cx-main { display: flex; flex-direction: column; padding: clamp(24px, 5vw, 56px); }
.cx-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 0; }
.cx-box { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 32px; }
.cx-logo, .cx-brand-name, .cx-hello, .cx-head h1, .mt-hero h1, .mt-article h2 { font-family: Sora, Inter, system-ui, sans-serif; }
.cx-head { display: flex; flex-direction: column; gap: 12px; }
.cx-head h1 { margin: 0; font-weight: 700; font-size: clamp(32px, 4vw, 44px); letter-spacing: -.02em; line-height: 1.1; }
.cx-lead { margin: 0; color: var(--cx-gris); font-size: 16px; line-height: 1.55; }
.cx-email { display: block; margin-top: 4px; color: var(--cx-noir); }
/* Adresse coupée de préférence avant le « @ » ; chaque partie ne se coupe que si elle dépasse la largeur. */
.cx-email span { display: inline-block; max-width: 100%; overflow-wrap: anywhere; hyphens: none; }

.cx-form { display: flex; flex-direction: column; gap: 20px; }
.cx-field { display: flex; flex-direction: column; gap: 8px; }
.cx-field label { font-size: 14px; font-weight: 600; }
.cx-field input { height: 52px; padding: 0 16px; font: inherit; font-size: 16px; border: 1px solid var(--cx-bord); border-radius: 8px; outline: none; background: #fff; color: var(--cx-noir); transition: border-color 180ms, box-shadow 180ms; }
.cx-field input:focus { border-color: var(--cx-noir); box-shadow: 0 0 0 4px rgba(249,194,60,.6); }
.cx-field input:user-invalid { border-color: var(--cx-erreur); }

.cx-btn { height: 52px; border: 0; border-radius: 8px; background: var(--cx-noir); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: transform 180ms cubic-bezier(.2,.8,.2,1), background 180ms; }
.cx-btn:hover { background: #2a2a2a; transform: translateY(-2px); }
.cx-btn:active { transform: scale(.98); }
.cx-arrow { color: var(--cx-jaune); }

.cx-sep { border-top: 1px solid var(--cx-bord); padding-top: 24px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.cx-muted { color: var(--cx-gris); }
.cx .cx-link { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.cx-dot { background: var(--cx-jaune); border-radius: 999px; width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 13px; flex-shrink: 0; }

.cx-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--cx-jaune); display: grid; place-items: center; }
.cx-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cx-inline { margin: 0; }
.cx-btn-ghost { height: 44px; padding: 0 18px; border: 1px solid var(--cx-bord); border-radius: 8px; background: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--cx-noir); }
.cx-btn-ghost:hover { border-color: var(--cx-noir); }
.cx .cx-btn-text { padding: 0 6px; font-size: 15px; font-weight: 500; color: var(--cx-gris); text-decoration: underline; text-underline-offset: 3px; }

.cx-flash { padding: 12px 16px; border-radius: 8px; font-size: 15px; background: var(--cx-fond2); }
.cx-flash-danger { background: #fde8e5; color: #8a2417; }
.cx-flash-success { background: #e6f4ea; color: #1e5631; }

.cx-footer { display: flex; justify-content: flex-start; font-size: 13px; border-top: 1px solid var(--cx-bord); padding-top: 20px; }
.cx-footer a { color: var(--cx-gris); }

/* Mobile : le bandeau jaune se resserre au-dessus du formulaire. */
@media (max-width: 860px) {
    .cx-aside { min-height: 0; gap: 24px; }
    .cx-hello { font-size: 40px; }
    .cx-hero p { font-size: 15px; }
    .cx-center { padding: 8px 0 24px; }
}

/* Page « Lien envoyé » : étapes numérotées. */
.cx-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.cx-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.cx-steps li > span:last-child { padding-top: 3px; }
.cx-step { flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--cx-noir); color: var(--cx-jaune); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.cx-actions-sep { border-top: 1px solid var(--cx-bord); padding-top: 24px; }

/* Page « Données personnelles » : bandeau jaune pleine largeur + sommaire. */
.mt-page { min-height: 100vh; display: flex; flex-direction: column; }
.mt-wrap { max-width: 1280px; width: 100%; margin: 0 auto; padding-left: clamp(16px, 5vw, 48px); padding-right: clamp(16px, 5vw, 48px); }
.mt-header { background: var(--cx-jaune); }
.mt-bar { padding-top: 20px; padding-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cx .mt-back { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.mt-hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 5vw, 64px); display: flex; flex-direction: column; gap: 14px; }
.mt-hero h1 { margin: 0; font-weight: 800; font-size: clamp(36px, 6vw, 72px); line-height: 1.02; letter-spacing: -.03em; }
.mt-hero p { margin: 0; max-width: 620px; font-size: 17px; line-height: 1.55; }
.mt-main { flex: 1; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 48px; align-items: start; }
.mt-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 24px; }
.mt-nav-title { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cx-gris); padding: 0 12px 8px; }
.cx .mt-nav a { padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.cx .mt-nav a:hover { background: var(--cx-fond2); text-decoration: none; }
.mt-article { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.mt-article section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 24px; }
.mt-article h2 { margin: 0; font-weight: 700; font-size: 24px; letter-spacing: -.01em; }
.mt-article p { margin: 0; color: var(--cx-gris); line-height: 1.6; }
.cx .mt-article p a { text-decoration: underline; text-underline-offset: 3px; }
.mt-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.mt-list li { display: flex; gap: 12px; line-height: 1.6; color: var(--cx-gris); }
.mt-list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 999px; background: var(--cx-jaune); margin-top: 9px; }
.mt-article .mt-contact { background: var(--cx-fond2); border-radius: 16px; padding: 28px; }
.cx .mt-btn { display: inline-flex; height: 48px; padding: 0 20px; color: #fff; }
.cx .mt-btn:hover { text-decoration: none; }

@media (max-width: 860px) {
    .mt-main { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .mt-nav { position: static; }
}
.mt-footer { border-top: 1px solid var(--cx-bord); background: #fff; }
.mt-footer .mt-wrap { padding-top: 20px; padding-bottom: 20px; font-size: 13px; color: var(--cx-gris); display: flex; gap: 8px 24px; flex-wrap: wrap; }

/* Page « Créer mon compte » : formulaire long, bandeau jaune fixe sur grand écran. */
.cx-box-wide { max-width: 480px; }
.cx-page-long .cx-center { align-items: flex-start; padding-top: 16px; }
@media (min-width: 861px) { .cx-page-long .cx-aside { position: sticky; top: 0; height: 100vh; } }
.cx .cx-back { font-size: 14px; font-weight: 500; color: var(--cx-gris); display: inline-flex; align-items: center; gap: 8px; }
.cx-form-large { gap: 22px; }
.cx-field.is-invalid input { border-color: var(--cx-erreur); }
.cx-error { color: var(--cx-erreur); font-size: 14px; }
.cx-field-code { background: var(--cx-fond2); border-radius: 16px; padding: 20px; }
.cx-field-code input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; }
.cx-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; }
.cx-grid-2 input { width: 100%; }
.cx-fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cx-fieldset legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 12px; }
.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-chip { position: relative; cursor: pointer; }
.cx-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cx-chip span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--cx-bord); background: #fff; font-size: 14px; font-weight: 500; transition: background 180ms, border-color 180ms, color 180ms; }
.cx-chip:hover span { border-color: var(--cx-noir); }
.cx-chip input:checked + span { background: var(--cx-noir); border-color: var(--cx-noir); color: #fff; }
.cx-chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(249,194,60,.6); }
.cx-consent { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--cx-bord); padding-top: 22px; }
.cx-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; line-height: 1.5; }
.cx-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--cx-noir); flex: none; }
.cx .cx-consent-link { font-size: 14px; color: var(--cx-gris); text-decoration: underline; text-underline-offset: 3px; padding-left: 32px; }
.cx-consent .cx-error { padding-left: 32px; }

/* Formulaire « Signaler un besoin » (enseignants) */
.cx-field textarea { min-height: 128px; padding: 14px 16px; font: inherit; font-size: 16px; line-height: 1.5; border: 1px solid var(--cx-bord); border-radius: 8px; outline: none; background: #fff; color: var(--cx-noir); resize: vertical; transition: border-color 180ms, box-shadow 180ms; }
.cx-field textarea:focus { border-color: var(--cx-noir); box-shadow: 0 0 0 4px rgba(249,194,60,.6); }
.cx-field.is-invalid textarea { border-color: var(--cx-erreur); }
.cx-help { font-size: 13px; color: var(--cx-gris); }
.cx-sep-fin { height: 1px; background: var(--cx-bord); }
.cx-depot { position: relative; display: flex; align-items: center; justify-content: center; min-height: 88px; padding: 16px; border: 2px dashed var(--cx-bord); border-radius: 12px; background: var(--cx-fond2); font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color 180ms; }
.cx-depot:hover, .cx-depot:focus-within { border-color: var(--cx-noir); }
.cx-depot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; height: auto !important; }
.cx-depot-txt::before { content: "+ "; color: var(--cx-gris); }
.cx-urgent { padding: 16px; border-radius: 12px; background: var(--cx-fond2); }
.cx-urgent:has(input:checked) { background: rgba(216,64,47,.08); }
.cx-urgent input { accent-color: var(--cx-erreur); }
.cx-pot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Code de connexion à 6 chiffres (application installée) */
.cx-code { margin-top: 4px; }
.cx-code input#code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 24px; letter-spacing: .3em; text-align: center; }
