/* Feuille de style de base — Plateforme d'inscription Lycée Galilée.
   Mobile-first, sobre. Les styles complets viendront avec les 12 pages. */

:root {
    --bleu: #1d4e89;
    --bleu-fonce: #163a66;
    --gris: #f4f6f9;
    --texte: #1f2933;
    --vert: #2f8f4e;
    --rouge: #c0392b;
    --radius: 10px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--texte);
    background: var(--gris);
    line-height: 1.5;
}

.accueil {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.accueil__header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.accueil__etab {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: var(--bleu);
    margin: 0 0 0.25rem;
    font-weight: 600;
}

.accueil__header h1 {
    margin: 0;
    font-size: 1.9rem;
    color: var(--bleu-fonce);
}

.carte {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--bleu);
}

.carte--ouvert { border-top-color: var(--vert); }
.carte--erreur { border-top-color: var(--rouge); }
.carte h2 { margin-top: 0; color: var(--bleu-fonce); }

.accueil__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    background: #e6ebf2;
    color: var(--bleu-fonce);
    border: 1px solid transparent;
}

.btn--primary { background: var(--bleu); color: #fff; }
.btn:hover { filter: brightness(0.96); }

.accueil__footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #627084;
}

.accueil__debug {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #9aa5b1;
}

/* ====================================================================== */
/*  Mise en page commune (en-tête, pied, contenu)                         */
/* ====================================================================== */

.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    background: #fff;
    border-bottom: 3px solid var(--bleu);
}

.site-header__brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.2;
}

.site-header__etab {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--bleu);
}

.site-header__app {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bleu-fonce);
}

.site-header__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.site-header__nav a { color: var(--bleu-fonce); text-decoration: none; font-weight: 600; }
.site-header__nav a:hover { text-decoration: underline; }

.btn--ghost { background: transparent; border-color: #cdd5e0; }
.btn--block { display: block; width: 100%; text-align: center; }
.btn--primary.btn--block:hover { text-decoration: none; }

.page {
    max-width: 560px;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 3rem;
}

.site-footer {
    text-align: center;
    font-size: 0.9rem;
    color: #627084;
    padding: 1.5rem 1.25rem 2.5rem;
}

.site-footer__debug {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: #9aa5b1;
}

/* ---- Alertes (messages flash) --------------------------------------- */
.alerte {
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.alerte--succes { background: #e8f6ed; border-color: #b7e0c4; color: #1e6b38; }
.alerte--erreur { background: #fdecea; border-color: #f3c0b9; color: #9b2f22; }
.alerte--info   { background: #eaf1fb; border-color: #c2d5f2; color: #1d4e89; }

/* ---- Formulaires ----------------------------------------------------- */
.form-carte {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--bleu);
}

.form-carte h1 { margin: 0 0 0.35rem; font-size: 1.5rem; color: var(--bleu-fonce); }
.form-carte__intro { margin: 0 0 1.4rem; color: #52606d; }

.champ { margin-bottom: 1.1rem; }
.champ label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.champ input[type="email"],
.champ input[type="password"],
.champ input[type="tel"],
.champ input[type="text"] {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid #cdd5e0;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
}

.champ input:focus {
    outline: none;
    border-color: var(--bleu);
    box-shadow: 0 0 0 3px rgba(29, 78, 137, 0.15);
}

.champ__aide { font-size: 0.82rem; color: #7b8794; margin-top: 0.3rem; }

.champ--consentement {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.9rem;
}
.champ--consentement input { margin-top: 0.2rem; }
.champ--consentement label { font-weight: 400; margin: 0; }

/* Pot de miel anti-robot : masqué à l'humain, atteignable aux bots. */
.pot-de-miel {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-actions { margin-top: 1.4rem; }

.form-liens {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
}
.form-liens a { color: var(--bleu); }

.tdb-liste { list-style: none; padding: 0; margin: 1rem 0 0; }
.tdb-liste li { padding: 0.4rem 0; border-bottom: 1px solid #eef1f5; }
.tdb-liste strong { color: var(--bleu-fonce); }
