/* DUAUX Mobile v2 — feuille de style de base.
   Reprend la palette observée sur la v1 (bleu #1c2ea0 -> #4a90e2 en dégradé,
   bouton principal teal). À affiner avec la charte exacte si besoin. */

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: #eceef4;
    color: #333;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ---------- Écrans plein écran (login, inscription, profils, rattachement) ---------- */

.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #1c2ea0, #4a90e2);
    position: relative;
    overflow: hidden;
}

.login-wrapper .background-shape {
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.login-wrapper .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 40px 16px;
}

.big-logo { width: 90px; margin-bottom: 8px; }

.register-form { text-align: left; }

.form-group {
    position: relative;
    margin-bottom: 20px;
}
.form-group span {
    display: block;
    color: #e5e5e5;
    font-size: 12px;
    margin-bottom: 4px;
}
.form-group label {
    position: absolute;
    left: 10px; bottom: 10px;
    color: #cfd8ef;
}
.form-group .form-control {
    width: 100%;
    padding: 10px 10px 10px 34px;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    background: transparent;
    color: #fff;
    font-size: 15px;
}
.form-group .form-control::placeholder { color: rgba(255,255,255,0.6); }

.bouton-principal {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    border-radius: 6px;
    background: #16a085;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}
.bouton-principal[disabled] { opacity: 0.6; }

.bouton-secondaire {
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    border-radius: 6px;
    background: #f39c12;
    color: #513a00;
    font-weight: 600;
}

.lien-secondaire {
    display: block;
    margin-top: 18px;
    text-align: center;
    color: #e5e5e5;
    font-size: 13px;
    text-decoration: underline;
}

.btn-whatsapp {
    display: block;
    margin-top: 24px;
    padding: 12px;
    text-align: center;
    background: #e5e5e5;
    color: #075e54;
    border-radius: 6px;
    font-weight: 600;
}

.message-erreur {
    background: rgba(255,255,255,0.15);
    border-left: 3px solid #e74c3c;
    color: #ffe5e5;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 13px;
    border-radius: 4px;
}

.message-info {
    background: #fde8e8;
    color: #8a2b2b;
    padding: 16px;
    border-radius: 6px;
    text-align: center;
    margin-top: 16px;
}

.message-vide {
    text-align: center;
    color: #8a93a8;
    padding: 24px 16px;
}

.bandeau-exemple {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff6df;
    color: #8a6d1c;
    border: 1px solid #f0dfa8;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 12px;
}
.bandeau-exemple i { font-size: 14px; }

/* ---------- Sélection de profil ---------- */

.ecran-plein { min-height: 100vh; background: #eceef4; }

.topbar-fixe {
    background: #fff;
    padding: 16px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.conteneur-profils, .conteneur-formulaire { padding: 16px; }

.carte-profil {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.avatar-mini {
    width: 46px; height: 46px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    background: #dfe6f5;
}
.avatar-mini-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #4a90e2;
}
.carte-profil-texte { flex: 1; display: flex; flex-direction: column; }
.carte-profil-texte span { font-size: 12px; color: #8a93a8; }
.badge {
    align-self: flex-start;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
    background: #eef2fb;
    color: #4a90e2;
}
.badge-parent { background: #fdf1e0; color: #b9770e; }
.badge-enseignant { background: #eafaf1; color: #16a085; }

/* ---------- Barre latérale + barre du haut (vues /home/*) ---------- */

.topbar {
    background: #fff;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    position: fixed;          /* reste en haut quand on défile */
    top: 0; left: 0; right: 0;
    z-index: 150;             /* au-dessus de tout le contenu (le menu, 190/200, reste au-dessus) */
}
.app-chrome { padding-top: 56px; }   /* réserve la place de la barre fixe */
.topbar-burger { background: none; font-size: 22px; color: #333; }
.topbar-titre { flex: 1; text-align: center; color: #8a93a8; }
.topbar-logo { height: 34px; max-width: 96px; object-fit: contain; margin-left: 8px; }

.sidebar {
    position: fixed;
    top: 0; left: -280px;
    width: 280px; height: 100vh;
    background: linear-gradient(180deg, #1c2ea0, #2f4bd6);
    color: #fff;
    overflow-y: auto;
    transition: left 0.2s ease;
    z-index: 200;   /* au-dessus de la barre d'onglets du bas (z-index 40) */
}
.sidebar.sidebar-ouverte { left: 0; box-shadow: 4px 0 18px rgba(0,0,0,0.3); }

/* Voile derrière le menu : un clic dessus referme le menu */
.sidebar-voile {
    position: fixed; inset: 0; z-index: 190;
    background: rgba(15, 23, 60, 0.45);
    animation: voile-entree 0.2s ease;
}
@keyframes voile-entree { from { opacity: 0; } to { opacity: 1; } }

/* Bouton de fermeture du menu */
.sidebar-fermer {
    position: absolute; top: 10px; right: 10px; z-index: 1;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.16); color: #fff; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer;
}
.sidebar-fermer:active, .sidebar-fermer:hover { background: rgba(255,255,255,0.3); }

.sidebar-profil { text-align: center; padding: 28px 16px; }
.sidebar-avatar {
    width: 84px; height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.4);
}
.sidebar-avatar-icone {
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    background: rgba(255,255,255,0.15);
}
.sidebar-nom { margin-top: 10px; font-weight: 600; font-size: 16px; }
.sidebar-role { font-size: 13px; color: #cfe0ff; margin-top: 2px; }
.sidebar-sous-titre { font-size: 12px; color: #cfd8ef; margin-top: 2px; }

.sidebar-menu { display: flex; flex-direction: column; padding: 8px 0; }
.sidebar-menu a {
    padding: 14px 20px;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-menu a i { margin-right: 10px; width: 18px; display: inline-block; text-align: center; }

/* Bloc "compte" séparé en bas de la barre latérale : changer de profil,
   aide, déconnexion — bien distinct des liens de navigation du dessus. */
.sidebar-menu-compte {
    margin-top: 12px;
    border-top: 2px solid rgba(255,255,255,0.15);
}
.sidebar-menu-compte a:first-child { border-top: none; }

.deconnexion-lien { color: #ffd3d3 !important; }

.contenu { min-height: 100vh; }
.contenu-avec-chrome { min-height: calc(100vh - 56px); }
.contenu-avec-chrome { padding-bottom: 24px; }
.ecran-contenu { padding: 16px; }

/* ---------- Cartes de contenu diverses ---------- */

.carte-matiere, .carte-matiere-notes, .carte-scolarite, .carte-annee, .carte-classe, .carte-actualite {
    background: #fff;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.carte-matiere { display: flex; justify-content: space-between; align-items: center; }
.carte-matiere-titre, .carte-scolarite-titre { font-weight: 600; margin-bottom: 6px; }
.ligne-note, .ligne-frais, .ligne-versement {
    display: flex; justify-content: space-between;
    font-size: 14px; color: #555;
    padding: 4px 0;
}
.ligne-versement-total { font-weight: 700; border-top: 1px solid #eee; margin-top: 6px; padding-top: 8px; }
.carte-annee { display: flex; justify-content: space-between; }
.carte-annee-active { border: 2px solid #4a90e2; }

.calendrier-entete {
    display: flex; justify-content: space-between; align-items: center;
    background: #1c2ea0; color: #fff;
    padding: 14px; border-radius: 8px;
    margin-bottom: 12px;
}
.calendrier-entete button { background: none; color: #fff; font-size: 18px; }
.calendrier-grille {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.calendrier-jour-nom { text-align: center; font-size: 12px; color: #8a93a8; padding: 4px 0; }
.calendrier-case {
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    border-radius: 4px;
    font-size: 13px;
}
.calendrier-case-vide { background: transparent; }
.calendrier-case-avec-evenement {
    position: relative;
    font-weight: 600;
    color: #1c2ea0;
    box-shadow: inset 0 0 0 1.5px #4a90e2;
}
.calendrier-case-avec-evenement::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #4a90e2;
}

.panneau-detail {
    margin-top: 16px;
    background: #fff;
    border-radius: 8px;
    padding: 14px;
}
.panneau-detail-entete { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 8px; }
.panneau-detail-entete button { background: none; }

.fiche-info { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #e2e6f0; }
.section-titre { margin: 16px 0 8px; font-weight: 600; color: #8a93a8; font-size: 13px; text-transform: uppercase; }

.chargement { text-align: center; color: #8a93a8; padding: 24px; }

/* Messages d'erreur sur les écrans à fond clair (hors login / inscription) */
.ecran-contenu .message-erreur {
    background: #fde8e8;
    color: #8a2b2b;
    border-left-color: #e74c3c;
}

/* ---------- Connexion : onglets Élève / Parent / Enseignant ---------- */
.login-onglets {
    display: flex;
    margin: 0 16px;
    padding: 4px;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
}
.login-onglet {
    flex: 1;
    text-align: center;
    padding: 9px 4px 8px;
    border-radius: 6px;
    color: #dbe4f7;
    font-size: 13px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.login-onglet i { display: block; font-size: 18px; margin-bottom: 2px; }
.login-onglet.actif {
    background: #fff;
    color: #1c2ea0;
    font-weight: 700;
}
.login-intro {
    background: rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 10px 12px;
    margin: 18px 0 8px;
    color: #fff;
    font-size: 13px;
    line-height: 18px;
    text-align: left;
}
.login-intro p { margin: 4px 0 0; color: #e5e5e5; }
.login-aide-compte {
    margin: 18px 0 0;
    text-align: center;
    color: #e5e5e5;
    font-size: 13px;
}

/* ---------- Rappel : mot de passe par défaut ---------- */
.rappel-mdp {
    position: relative;   /* défile avec la page : ne masque pas le contenu */
    display: flex; gap: 12px; align-items: flex-start;
    margin: 10px 12px 0; padding: 12px 12px 12px 14px;
    background: #fff7e6; color: #6b4a00;
    border: 1px solid #f0d9a8; border-left: 5px solid #f0a500; border-radius: 12px;
    box-shadow: 0 4px 14px rgba(240,165,0,0.18);
    animation: rappel-entree 0.3s ease;
}
@keyframes rappel-entree { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.rappel-mdp-icone { font-size: 26px; color: #f0a500; margin-top: 2px; }
.rappel-mdp-texte { flex: 1; font-size: 13px; line-height: 1.4; min-width: 0; }
.rappel-mdp-texte strong { display: block; font-size: 15px; color: #4a3200; margin-bottom: 2px; }
.rappel-mdp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.rappel-mdp-bouton {
    background: #f0a500; color: #fff; font-weight: 600; font-size: 13px;
    padding: 8px 14px; border-radius: 20px; text-decoration: none;
}
.rappel-mdp-plus-tard { background: none; border: none; color: #8a5a00; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 8px 4px; }
.rappel-mdp-x { background: none; border: none; color: #8a5a00; font-size: 16px; padding: 2px 4px; cursor: pointer; }

/* ---------- Année académique ---------- */
.annee-bandeau {
    display: flex; align-items: center; gap: 10px;
    background: #eaf3ff; color: #1c2ea0; border: 1px solid #cfe0ff; border-radius: 10px;
    padding: 9px 12px; margin-bottom: 12px; font-size: 14px;
}
.annee-bandeau > i { font-size: 20px; }
.annee-bandeau-texte { display: flex; flex-direction: column; line-height: 1.3; }
.annee-etat { font-size: 12px; font-weight: 600; }
.annee-etat-ok { color: #16a085; }
.annee-etat-ancienne { color: #b9770e; }
.annee-bandeau.annee-ancienne { background: #fff4e0; border-color: #f0d9a8; color: #6b4a00; }
.acc-annee { margin-top: 8px; font-size: 13px; color: #dbe6ff; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.acc-annee strong { color: #fff; }
.acc-annee-etat { background: rgba(255,255,255,0.22); color: #fff; border-radius: 10px; padding: 1px 9px; font-size: 12px; font-weight: 600; }
.acc-annee-ancienne .acc-annee-etat { background: #ffe0a6; color: #6b4a00; }
.acc-h2-annee { font-weight: 500; color: #8a93a8; margin-left: 4px; font-size: 12px; }
.message-succes {
    background: #e6f6ec; color: #1b6b3a; border-radius: 8px;
    padding: 10px 12px; margin-bottom: 12px; font-size: 14px;
}
.form-mdp .form-control { width: 100%; }

/* ---------- Accueil + barre d'onglets ---------- */
.contenu-avec-chrome { padding-bottom: 76px; }
.onglets-bas {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    padding-bottom: env(safe-area-inset-bottom);
}
.onglets-bas a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 2px 7px; font-size: 11px; color: #8a93a8;
}
.onglets-bas a i { font-size: 20px; }
.onglets-bas a.actif { color: #1c2ea0; font-weight: 600; }
@media (min-width: 900px) { .onglets-bas { max-width: 520px; left: 50%; transform: translateX(-50%); border-radius: 14px 14px 0 0; } }

.accueil { max-width: 640px; margin: 0 auto; }
.acc-entete { background: linear-gradient(135deg, #1c2ea0, #4a90e2); color: #fff; border-radius: 14px; padding: 18px; margin-bottom: 12px; }
.acc-salut { font-size: 20px; font-weight: 700; }
.acc-sous { margin-top: 6px; font-size: 13px; color: #dbe6ff; line-height: 1.5; }
.acc-sous strong { color: #fff; font-size: 15px; }
.acc-carte { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.acc-carte > header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.acc-carte h2 { font-size: 15px; margin: 0; }
.acc-carte > header a { font-size: 12px; color: #4a90e2; }
.acc-prochain { background: #eaf3ff; border-left: 4px solid #4a90e2; }
.acc-prochain small { color: #4a90e2; text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.acc-prochain-titre { font-size: 17px; font-weight: 700; margin: 4px 0 6px; }
.acc-prochain-ligne { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: #555; }
.acc-quand { background: #1c2ea0; color: #fff; border-radius: 10px; padding: 1px 9px; font-weight: 600; }
.acc-seance, .acc-note { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid #f0f2f8; }
.acc-seance.passee { opacity: .5; }
.acc-heure { font-size: 12px; color: #4a90e2; font-weight: 700; min-width: 86px; }
.acc-seance-texte { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.acc-seance-texte small { color: #8a93a8; font-size: 12px; }
.acc-note-valeur { min-width: 48px; text-align: center; background: #eef2fb; color: #1c2ea0; font-weight: 700; border-radius: 8px; padding: 6px 4px; font-size: 14px; }
.acc-suite { margin-top: 8px; font-size: 12px; color: #666; border-top: 1px solid #f0f2f8; padding-top: 8px; }
.acc-suite small { display: block; color: #8a93a8; text-transform: uppercase; font-weight: 700; margin-bottom: 2px; }
.acc-suite span { font-weight: 600; }
.acc-vide { color: #8a93a8; font-size: 13px; }
.acc-erreur { color: #c0392b; font-size: 13px; }
.acc-reste strong { font-size: 24px; color: #d35400; display: block; }
.acc-reste.solde strong { color: #16a085; }
.acc-reste small { color: #8a93a8; }
.acc-barre { height: 8px; border-radius: 99px; background: #e6e9f4; overflow: hidden; margin: 8px 0 4px; }
.acc-barre div { height: 100%; background: linear-gradient(90deg, #4a90e2, #1c2ea0); }
.acc-actu { padding: 8px 0; border-top: 1px solid #f0f2f8; font-size: 14px; }
.acc-actu small { display: block; color: #8a93a8; font-size: 12px; }
.acc-actu p { margin: 4px 0 0; color: #555; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acc-ecole { padding: 8px 0; border-top: 1px solid #f0f2f8; font-size: 14px; }
.acc-puces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.acc-puce { background: #eef2fb; color: #1c2ea0; border-radius: 12px; padding: 2px 10px; font-size: 12px; }

/* Évaluation des enseignements */
.acc-eval { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; border-left: 4px solid #f5a623; }
.acc-eval > i:first-child { font-size: 22px; color: #f5a623; }
.acc-eval span { flex: 1; } .acc-eval small { display: block; color: #6b7f7c; font-size: 12.5px; }
.eval-intro { font-size: 13.5px; color: #4a5a58; margin: 4px 0 12px; }
.eval-carte { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.eval-carte-texte small { display: block; color: #6b7f7c; font-size: 12.5px; }
.eval-carte.bientot { opacity: .7; }
.eval-bouton { background: #0f2e3a; color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 600; font-size: 14px; }
.eval-bouton[disabled] { opacity: .6; }
.eval-annuler { background: #fff; border: 1px solid #d5dede; border-radius: 10px; padding: 10px 16px; font-size: 14px; }
.eval-etat { font-size: 12.5px; color: #6b7f7c; white-space: nowrap; } .eval-etat.fait { color: #1a7f4b; font-weight: 600; }
.eval-form h2 { font-size: 17px; margin: 0; } .eval-prof { color: #6b7f7c; margin: 2px 0 14px; font-size: 13.5px; }
.eval-critere { background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.eval-critere > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.eval-visages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.eval-visages button { background: #f4f7f7; border: 2px solid transparent; border-radius: 10px; padding: 8px 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.eval-visages button.choisi { border-color: #0f2e3a; background: #e6f0f1; }
.eval-emoji { font-size: 24px; line-height: 1; } .eval-visages small { font-size: 10.5px; color: #4a5a58; }
.eval-com { display: block; margin: 12px 0; } .eval-com span { display: block; font-size: 13px; margin-bottom: 4px; }
.eval-com textarea { width: 100%; border: 1px solid #d5dede; border-radius: 10px; padding: 10px; font: inherit; box-sizing: border-box; }
.eval-actions { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: 20px; }

/* Séance de l'enseignant : appel + contenu */
.seance-tete h2 { margin: 6px 0 2px; font-size: 18px; }
.seance-tete small { display: block; color: #6b7f7c; }
.seance-etat { display: inline-block; margin: 8px 0; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #eef1f1; color: #4a5a58; }
.seance-etat.declaree { background: #ffe9c7; color: #8a5200; }
.seance-etat.validee { background: #dcf3e6; color: #17683f; }
.seance-bloc { background: #fff; border-radius: 12px; margin: 10px 0; box-shadow: 0 1px 4px rgba(0,0,0,0.06); overflow: hidden; }
.seance-bloc header { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px; border-bottom: 1px solid #eef1f1; }
.seance-bloc header small { color: #6b7f7c; }
.appel-ligne { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; background: #fff; border: 0; border-bottom: 1px solid #f2f4f4; text-align: left; font-size: 14.5px; }
.appel-nom small { display: block; color: #8a9896; font-size: 12px; }
.appel-etat { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #dcf3e6; color: #17683f; min-width: 68px; text-align: center; }
.appel-ligne.absent { background: #fdecec; }
.appel-ligne.absent .appel-etat { background: #f8c9c9; color: #a12727; }
.appel-ligne:disabled { opacity: .85; }
.seance-compte { display: flex; justify-content: space-between; align-items: center; padding: 6px 2px; font-size: 14px; }
.seance-contenu textarea { width: 100%; }
.seance-action { margin-left: auto; align-self: center; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: #0f2e3a; color: #fff; text-decoration: none; white-space: nowrap; }
.seance-action.declaree { background: #ffe9c7; color: #8a5200; }
.seance-action.validee { background: #dcf3e6; color: #17683f; }
.acc-seance.passee:has(.seance-action) { opacity: 1; }
.ligne-evenement { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ligne-evenement > strong { flex: 1 1 100%; }
.ecran-contenu.seance { padding-bottom: 90px; }


/* ---------- Lot mobile 1 : notes, paiements, bascule d'enfant, hors-ligne ---------- */
.bandeau-reseau { position: fixed; top: 56px; left: 0; right: 0; z-index: 140; display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: #fff4d6; color: #7a5300; font-size: 13px; border-bottom: 1px solid #f0dca0; }
.lien-reessayer { margin-left: 6px; background: #fff; color: #c0392b; border: 1px solid #e6b3ad; border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 600; min-height: 36px; }
.message-vide.petit { padding: 6px 0; text-align: left; }
.muet { color: #8a93a8; }

.carte-matiere-titre { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.moyenne-pastille { font-size: 12px; font-weight: 700; color: #1c2ea0; background: #e8ecff; border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.note-ligne { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid #f0f1f6; }
.note-valeur { min-width: 64px; text-align: center; font-size: 20px; font-weight: 700; padding: 6px 8px; border-radius: 12px; background: #eef0f6; }
.note-valeur small { font-size: 11px; font-weight: 600; opacity: .6; margin-left: 1px; }
.note-valeur.bon { background: #e3f6ec; color: #11794a; }
.note-valeur.faible { background: #fdeceb; color: #b4231f; }
.note-detail { display: flex; flex-direction: column; gap: 1px; }
.note-detail small { color: #8a93a8; }

.pai-resume small { color: #8a93a8; text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.pai-reste { font-size: 28px; font-weight: 800; color: #c0431b; margin: 2px 0 10px; }
.pai-reste.solde { color: #11794a; }
.pai-barre { height: 10px; border-radius: 99px; background: #e8ebf3; overflow: hidden; }
.pai-barre i { display: block; height: 100%; background: linear-gradient(90deg, #1c2ea0, #4a90e2); border-radius: 99px; transition: width .4s; }
.pai-legende { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 13px; color: #555; }
.pai-avance { margin-top: 8px; font-size: 13px; color: #11794a; font-weight: 600; }
.ligne-versement span { display: flex; flex-direction: column; gap: 1px; }
.ligne-versement-total span { display: inline; }

.topbar-enfant { display: inline-flex; align-items: center; gap: 6px; background: #eef1ff; color: #1c2ea0; border-radius: 99px; padding: 7px 12px; font-size: 14px; font-weight: 600; min-height: 38px; }
.feuille-voile { z-index: 120; }
.feuille-enfants { position: fixed; left: 0; right: 0; bottom: 0; z-index: 130; background: #fff; border-radius: 20px 20px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.2); max-width: 520px; margin: 0 auto; animation: feuille-monte .2s ease-out; }
.feuille-enfants h3 { margin: 6px 0 12px; font-size: 17px; }
.feuille-poignee { width: 40px; height: 4px; border-radius: 4px; background: #d5d9e6; margin: 0 auto 6px; }
.feuille-enfant { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #f6f7fb; border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; min-height: 60px; }
.feuille-enfant.actif { background: #e8ecff; outline: 2px solid #1c2ea0; }
.feuille-enfant img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #dfe4f5; }
.feuille-enfant span { flex: 1; display: flex; flex-direction: column; }
.feuille-enfant small { color: #8a93a8; }
.feuille-enfant .lni { color: #1c2ea0; font-size: 20px; }
@keyframes feuille-monte { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

.calendrier-case-aujourdhui { outline: 2px solid #1c2ea0; outline-offset: -2px; font-weight: 700; }
.calendrier-case-choisie { background: #1c2ea0 !important; color: #fff; }
.prochain-jour { padding: 8px 0; border-top: 1px solid #f0f1f6; }
.prochain-date { font-size: 12px; font-weight: 700; color: #1c2ea0; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.prochain-evt { display: flex; gap: 10px; padding: 3px 0; font-size: 14px; }
.prochain-evt strong { min-width: 98px; color: #555; font-weight: 600; }
.prochain-evt small { color: #8a93a8; }
.carte-matiere-notes.prochains { margin-top: 14px; }

/* Rattachement d'un enfant : écran clair -> champs lisibles (le style des formulaires de connexion est blanc sur fond bleu) */
.conteneur-formulaire .form-group span { color: #4b5578; font-size: 13px; font-weight: 600; }
.conteneur-formulaire .form-group label { color: #8a93a8; }
.conteneur-formulaire .form-group .form-control { color: #1d2440; border-bottom: 1px solid #b9c2da; font-size: 16px; text-transform: uppercase; }
.conteneur-formulaire .form-group .form-control::placeholder { color: #9aa3b8; text-transform: none; }
.conteneur-formulaire .lien-secondaire { color: #1c2ea0; display: block; text-align: center; margin-top: 14px; }

/* Logo DUAUX de l'écran de connexion */
.login-logo { width: 132px; height: 132px; margin: 0 auto 6px; padding: 8px; background: #fff; border-radius: 28px; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); }
.login-logo img { width: 100%; height: 100%; display: block; object-fit: contain; }

/* Tableau de bord de l'accueil (moyenne, absences, scolarité, matières sous 10) */
.tb { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.tb.tb-trois { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tb-kpi { display: flex; flex-direction: column; gap: 4px; background: #fff; border-radius: 16px; padding: 12px 14px; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(20,30,70,.06), 0 6px 16px rgba(20,30,70,.06); min-width: 0; }
.tb-kpi label { font-size: 12px; font-weight: 600; color: #8a93a8; text-transform: uppercase; letter-spacing: .04em; }
.tb-v { font-size: 26px; font-weight: 800; line-height: 1.1; color: #1c2ea0; }
.tb-v small { font-size: 13px; font-weight: 600; color: #8a93a8; }
.tb-v-petit { font-size: 18px; }
.tb-v.tb-ok { color: #1b9a5b; }
.tb-v.tb-ko { color: #d6383a; }
.tb-v.tb-mid { color: #c77700; }
.tb-s { font-size: 12px; color: #8a93a8; line-height: 1.3; }


/* ---------- Accueil apprenant : tuiles du tableau de bord ---------- */
.tb-trois .tb-kpi { padding: 10px 10px 11px; gap: 3px; border-radius: 14px; }
.tb-trois .tb-kpi label { font-size: 11px; letter-spacing: .03em; }
.tb-trois .tb-v { font-size: 22px; min-height: 26px; }
.tb-trois .tb-v small { font-size: 11px; margin-left: 1px; }
.tb-trois .tb-s { font-size: 11px; min-height: 28px; }
.tb-ico { width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 2px; background: #eef1ff; color: #1c2ea0; }
.tb-ico-bleu { background: #e8efff; color: #1c2ea0; }
.tb-ico-vert { background: #e3f6ec; color: #11794a; }
.tb-ico-rouge { background: #fdeceb; color: #b4231f; }
.tb-ico-orange { background: #fff1de; color: #b36200; }
.tb-deux { grid-template-columns: 1fr 1fr; }
/* Chargement : barre grise animée à la place de « … » ou « chargement » */
.sk { display: inline-block; width: 52px; height: 20px; border-radius: 6px; vertical-align: middle;
      background: linear-gradient(90deg, #e9ecf4 25%, #f6f7fb 37%, #e9ecf4 63%); background-size: 400% 100%; animation: sk-anim 1.3s ease infinite; }
@keyframes sk-anim { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.acc-carte > header h2 { display: flex; align-items: baseline; gap: 4px; }

/* ---------- Absences ---------- */
.abs-ligne { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #f0f2f8; }
.abs-ligne:first-child { border-top: none; }
.abs-pastille { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #c9ced9; }
.abs-pastille.ok { background: #1b9a5b; }
.abs-pastille.ko { background: #d6383a; }
.abs-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.abs-texte small { color: #8a93a8; font-size: 12px; }
.abs-etat { font-size: 11px; font-weight: 700; border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.abs-etat.ok { background: #e3f6ec; color: #11794a; }
.abs-etat.ko { background: #fdeceb; color: #b4231f; }

/* ---------- Installation de l'application + hors ligne ---------- */
.installer-lien { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.16); color: #fff; margin: 4px 14px 10px; border-radius: 14px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.22); }
.installer-lien > i { font-size: 22px; color: #ffe08a; }
.installer-lien span { display: flex; flex-direction: column; line-height: 1.25; }
.installer-lien strong { font-size: 14px; }
.installer-lien small { font-size: 11.5px; color: #cfd8ef; }
.bandeau-hl { display: flex; align-items: flex-start; gap: 8px; padding: 9px 14px; background: #fff4d6; color: #7a5300; font-size: 13px; line-height: 1.35; border-bottom: 1px solid #f0dca0; }
.bandeau-hl i { margin-top: 2px; }
.aide-voile { position: fixed; inset: 0; z-index: 210; background: rgba(15,23,60,.5); animation: voile-entree .2s ease; }
.aide-install { position: fixed; left: 0; right: 0; bottom: 0; z-index: 220; max-width: 520px; margin: 0 auto; background: #fff; border-radius: 20px 20px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.25); animation: feuille-monte .2s ease-out; }
.aide-install h3 { margin: 6px 0 10px; font-size: 17px; color: #1c2ea0; }
.aide-install ol { margin: 0 0 10px; padding-left: 20px; font-size: 14px; line-height: 1.55; }
.aide-install .eval-bouton { width: 100%; background: #1c2ea0; padding: 12px; }
.petit { font-size: 12.5px; }


/* ---------- Évaluer mes cours (refonte) ---------- */
.eval-hero { display: flex; gap: 12px; align-items: flex-start; background: linear-gradient(135deg, #1c2ea0, #4a90e2); color: #fff; border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.eval-hero strong { font-size: 16px; }
.eval-hero p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: #e3ecff; }
.eval-hero b { color: #fff; }
.eval-hero-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.eval-progres { background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.eval-progres-ligne { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.eval-progres-ligne strong { font-size: 20px; color: #1c2ea0; }
.eval-progres-ligne span, .eval-progres small { color: #6b7388; font-size: 13px; }
.eval-barre { height: 8px; border-radius: 99px; background: #e6e9f4; overflow: hidden; margin-bottom: 6px; }
.eval-barre i { display: block; height: 100%; background: linear-gradient(90deg, #4a90e2, #1c2ea0); border-radius: 99px; transition: width .35s; }
.eval-vide { text-align: center; background: #fff; border-radius: 16px; padding: 28px 18px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.eval-vide > i { font-size: 34px; color: #4a90e2; }
.eval-vide strong { display: block; margin: 8px 0 4px; font-size: 16px; }
.eval-vide p { margin: 0; color: #6b7388; font-size: 13.5px; line-height: 1.5; }
.eval-carte { gap: 12px; padding: 12px 14px; justify-content: flex-start; border-left: 4px solid transparent; }
.eval-carte.a_faire { border-left-color: #f5a623; }
.eval-carte.fait { border-left-color: #1b9a5b; }
.eval-carte.bientot { opacity: 1; border-left-color: #c9ced9; }
.eval-pastille { flex: none; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; background: #eef1ff; color: #1c2ea0; }
.eval-carte.a_faire .eval-pastille { background: #fff1de; color: #b36200; }
.eval-carte.fait .eval-pastille { background: #e3f6ec; color: #11794a; }
.eval-carte.bientot .eval-pastille { background: #eef0f6; color: #8a93a8; }
.eval-carte-texte { flex: 1; min-width: 0; }
.eval-carte-texte strong { font-size: 14.5px; }
.eval-avance { height: 5px; border-radius: 99px; background: #e6e9f4; margin: 7px 0 3px; overflow: hidden; }
.eval-avance i { display: block; height: 100%; background: #9aa6cf; border-radius: 99px; }
.eval-avance-txt { font-size: 11.5px !important; }
.eval-etat.fait { background: #e3f6ec; color: #11794a; border-radius: 99px; padding: 4px 11px; font-weight: 700; }
.eval-bouton { background: #1c2ea0; min-height: 40px; }
.eval-merci { display: flex; gap: 8px; align-items: center; }
.sk-large { width: 160px; height: 22px; }
/* Formulaire */
.eval-form-tete { background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.eval-form-tete small { color: #6b7388; font-size: 12.5px; }
.eval-critere { border-radius: 14px; padding: 14px; border: 2px solid transparent; }
.eval-critere.fait { border-color: #dfe8ff; }
.eval-num { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: #1c2ea0; color: #fff; font-size: 12px; align-items: center; justify-content: center; margin-right: 6px; }
.eval-visages { gap: 8px; }
.eval-visages button { min-height: 66px; padding: 8px 2px; border-radius: 12px; background: #f4f6fb; }
.eval-visages button.choisi { border-color: #1c2ea0; background: #e8ecff; transform: scale(1.04); }
.eval-visages button.choisi.v1 { border-color: #d6383a; background: #fdeceb; }
.eval-visages button.choisi.v2 { border-color: #c77700; background: #fff1de; }
.eval-visages button.choisi.v3 { border-color: #3a8d5f; background: #e8f6ee; }
.eval-visages button.choisi.v4 { border-color: #11794a; background: #daf3e6; }
.eval-emoji { font-size: 28px; }
.eval-com em { color: #8a93a8; font-style: normal; font-size: 12px; }
.eval-actions-fixes { position: sticky; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 5; background: rgba(255,255,255,.96); border-radius: 14px; padding: 10px; box-shadow: 0 4px 18px rgba(20,30,70,.18); margin-top: 8px; }
.eval-actions-fixes .eval-bouton { flex: 1; }

/* ---------- Voyants et notifications ---------- */
.voyant { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.voyant.orange { background: #ff9f1a; box-shadow: 0 0 0 0 rgba(255,159,26,.7); animation: voyant-pulse 1.8s infinite; }
.voyant.vert { background: #2ecc71; }
@keyframes voyant-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,159,26,.7); } 70% { box-shadow: 0 0 0 9px rgba(255,159,26,0); } 100% { box-shadow: 0 0 0 0 rgba(255,159,26,0); } }
.topbar-cloche { position: relative; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: #333; margin-left: 2px; }
.point-n { position: absolute; background: #e53935; color: #fff; border-radius: 99px; font-size: 10px; font-weight: 700; font-style: normal; line-height: 1; }
.point-n-nb { top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-sizing: content-box; min-width: 13px; height: 13px; }
.point-n-off { top: 7px; right: 7px; width: 10px; height: 10px; background: #ff9f1a; border: 2px solid #fff; box-sizing: content-box; animation: voyant-pulse 1.8s infinite; }
.onglets-bas a { position: relative; }
.point-n-onglet { top: 4px; left: calc(50% + 6px); width: 10px; height: 10px; border: 2px solid #fff; box-sizing: content-box; }
.point-n-onglet.point-n-off { background: #ff9f1a; }
.pastille-n { margin-left: auto; background: #e53935; color: #fff; border-radius: 99px; min-width: 20px; height: 20px; padding: 0 6px; font-size: 11px; font-weight: 700; font-style: normal; display: inline-flex; align-items: center; justify-content: center; float: right; }
.notif-lien { display: flex; align-items: center; gap: 12px; margin: 4px 14px 10px; padding: 11px 14px; border-radius: 14px; background: rgba(255,255,255,.1); color: #fff; }
.notif-lien-off { background: rgba(255,159,26,.2); border: 1px solid rgba(255,190,90,.7); }
.notif-lien-ico { position: relative; flex: none; font-size: 22px; width: 28px; text-align: center; }
.notif-lien-ico .voyant { position: absolute; top: -2px; right: -2px; border: 2px solid #2336c0; box-sizing: content-box; }
.notif-lien-texte { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.notif-lien-texte strong { font-size: 14px; }
.notif-lien-texte small { font-size: 11.5px; color: #dbe3ff; }
.notif-lien .pastille-n { float: none; }
.nouveau { margin-left: 8px; background: #e53935; color: #fff; border-radius: 99px; padding: 2px 9px; font-size: 11px; font-weight: 700; font-style: normal; align-self: center; }
.acc-supports { border-left-color: #e53935; }
.acc-supports > i:first-child { color: #e53935; }
/* Page Notifications */
.notif-etat { display: flex; gap: 14px; align-items: center; border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.notif-etat.ok { background: #e3f6ec; }
.notif-etat.off { background: #fff1de; }
.notif-etat-ico { position: relative; font-size: 30px; color: #1c2ea0; width: 40px; text-align: center; }
.notif-etat-ico .voyant { position: absolute; top: 0; right: 2px; border: 2px solid #fff; box-sizing: content-box; }
.notif-etat-texte strong { font-size: 16px; }
.notif-etat-texte p { margin: 3px 0 0; font-size: 13px; color: #4a5470; line-height: 1.45; }
.notif-actions { margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.notif-actions .eval-bouton, .notif-actions .eval-annuler { width: 100%; min-height: 46px; font-size: 15px; }
.notif-ligne { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #f0f2f8; color: inherit; }
.notif-ligne-ico { flex: none; width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: #eef1ff; color: #1c2ea0; }
.notif-ligne-ico.note { background: #e8efff; } .notif-ligne-ico.paiement { background: #e3f6ec; color: #11794a; } .notif-ligne-ico.cours { background: #fff1de; color: #b36200; } .notif-ligne-ico.actu { background: #f1e8ff; color: #6b2fb5; }
.notif-ligne-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.notif-ligne-texte small { color: #8a93a8; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-ligne > .lni-chevron-right-circle { color: #b9c2da; }
.notif-tuto h2 { display: flex; gap: 6px; align-items: center; }
.tuto-bloc { margin-bottom: 12px; }
.tuto-bloc h3 { font-size: 14px; margin: 4px 0 6px; color: #1c2ea0; }
.tuto-bloc ol { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.55; color: #3d465f; }
.tuto-bloc li { margin-bottom: 5px; }
.lien-autres { background: none; border: 0; color: #4a90e2; font-size: 13px; padding: 4px 0 12px; text-decoration: underline; }
.tuto-verifier { border-top: 1px solid #f0f2f8; padding-top: 12px; }
.tuto-verifier p { margin: 0 0 8px; font-size: 13px; color: #3d465f; }
.tuto-verifier .eval-bouton { width: 100%; min-height: 46px; font-size: 15px; }
.notif-note { margin: 4px 4px 20px; line-height: 1.5; }

/* ---------- Connexion (refonte) : bandeau bleu + feuille blanche ---------- */
.cx { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: linear-gradient(160deg, #1c2ea0 0%, #2f5fd0 60%, #4a90e2 100%); }
.cx-haut { padding: calc(28px + env(safe-area-inset-top)) 24px 56px; text-align: center; color: #fff; }
.cx-logo { width: 96px; height: 96px; margin: 0 auto 14px; padding: 6px; background: #fff; border-radius: 26px; box-shadow: 0 12px 30px rgba(10, 20, 80, .35); }
.cx-logo img { width: 100%; height: 100%; display: block; object-fit: contain; border-radius: 20px; }
.cx-titre { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.cx-sous-titre { margin: 6px auto 0; max-width: 300px; font-size: 14px; line-height: 1.45; color: #dbe6ff; }

.cx-feuille { flex: 1; width: 100%; max-width: 480px; margin: -28px auto 0; padding: 22px 22px calc(28px + env(safe-area-inset-bottom)); background: #fff; border-radius: 28px 28px 0 0; box-shadow: 0 -8px 30px rgba(10, 20, 80, .18); }

.cx-onglets { display: flex; gap: 4px; padding: 4px; background: #eef1f9; border-radius: 14px; }
.cx-onglet { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 4px; border-radius: 11px; color: #5b6685; font-size: 14px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .2s, color .2s, box-shadow .2s; }
.cx-onglet i { font-size: 16px; }
.cx-onglet.actif { background: #fff; color: #1c2ea0; box-shadow: 0 1px 3px rgba(20, 30, 70, .15), 0 4px 10px rgba(20, 30, 70, .08); }
.cx-onglet:focus-visible { outline: 2px solid #4a90e2; outline-offset: 2px; }

.cx-aide { margin: 16px 2px 20px; font-size: 14px; line-height: 1.5; color: #5b6685; }

.cx-champ { margin-bottom: 16px; }
.cx-champ label { display: block; margin: 0 0 6px 2px; font-size: 14px; font-weight: 600; color: #1d2440; }
.cx-saisie { position: relative; }
.cx-saisie > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; color: #8a93a8; pointer-events: none; }
.cx-saisie input { width: 100%; height: 52px; padding: 0 48px 0 44px; border: 1.5px solid #d5dbeb; border-radius: 14px; background: #f7f8fc; color: #1d2440; font-size: 16px; font-family: inherit; outline: none; transition: border-color .15s, background .15s, box-shadow .15s; }
.cx-saisie input::placeholder { color: #9aa3b8; }
.cx-saisie input:focus { border-color: #2f5fd0; background: #fff; box-shadow: 0 0 0 4px rgba(47, 95, 208, .14); }
.cx-saisie:focus-within > i { color: #2f5fd0; }
.cx-oeil { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; background: transparent; border-radius: 12px; color: #5b6685; font-size: 18px; }
.cx-oeil:focus-visible { outline: 2px solid #4a90e2; }

.cx-erreur { margin: 0 0 14px; padding: 11px 14px; border-radius: 12px; background: #fdecec; border: 1px solid #f5c2c2; color: #a02323; font-size: 14px; line-height: 1.4; }

.cx-bouton { width: 100%; height: 54px; margin-top: 4px; border-radius: 14px; background: #1c2ea0; background: linear-gradient(135deg, #1c2ea0, #2f5fd0); color: #fff; font-size: 16px; font-weight: 700; box-shadow: 0 8px 18px rgba(28, 46, 160, .28); transition: transform .1s, box-shadow .1s, opacity .2s; }
.cx-bouton:active { transform: translateY(1px); box-shadow: 0 4px 10px rgba(28, 46, 160, .28); }
.cx-bouton[disabled] { opacity: .65; }
.cx-bouton:focus-visible { outline: 3px solid #9ec2f5; outline-offset: 2px; }

.cx-lien { display: block; margin-top: 18px; text-align: center; font-size: 14px; font-weight: 600; color: #1c2ea0; }
.cx-note { margin: 18px 0 0; text-align: center; font-size: 14px; line-height: 1.45; color: #5b6685; }
.cx-aide-wa { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; padding: 13px; border-radius: 14px; background: #e9f7ef; color: #0b6b3d; font-size: 14px; font-weight: 600; }
.cx-aide-wa i { font-size: 18px; }

@media (min-width: 560px) {
    .cx { justify-content: center; align-items: center; padding: 24px; }
    .cx-haut { padding-bottom: 40px; }
    .cx-feuille { flex: none; margin-top: -20px; border-radius: 28px; box-shadow: 0 24px 60px rgba(10, 20, 80, .35); }
}
@media (prefers-reduced-motion: reduce) { .cx-onglet, .cx-saisie input, .cx-bouton { transition: none; } }
.cx-oeil.voir { color: #1c2ea0; background: #e7ecfa; }

/* Notifications : section de dépannage repliée */
.notif-souci { margin: 14px 0 4px; padding: 12px 14px; background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(20,30,70,.06); }
.notif-souci summary { cursor: pointer; font-size: 14px; font-weight: 600; color: #5b6685; list-style: none; }
.notif-souci summary::-webkit-details-marker { display: none; }
.notif-souci summary::after { content: ' ▾'; }
.notif-souci[open] summary::after { content: ' ▴'; }
.notif-souci p { margin: 10px 0; font-size: 13px; line-height: 1.45; color: #5b6685; }

/* ---------- Rattachement d'un enfant (code remis par l'établissement) + rappel mot de passe lisible sur fond clair ---------- */
.rattach { padding: 78px 18px 28px; max-width: 460px; margin: 0 auto; }
.rattach-intro { text-align: center; margin-bottom: 18px; }
.rattach-icone { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; background: linear-gradient(135deg, #1c2ea0, #2f5fd0); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 8px 18px rgba(28, 46, 160, .25); }
.rattach-intro h2 { margin: 0 0 6px; font-size: 22px; color: #1d2440; }
.rattach-intro p { margin: 0; color: #5b6580; font-size: 15px; line-height: 1.45; }
.rattach-carte { background: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 6px 20px rgba(28, 36, 80, .08); }
.rattach-carte label { display: block; margin: 0 0 6px 2px; font-size: 14px; font-weight: 600; color: #1d2440; }
.rattach-champ { width: 100%; height: 54px; padding: 0 14px; border: 1.5px solid #d5dbeb; border-radius: 14px; background: #f7f8fc; color: #1d2440; font-size: 18px; letter-spacing: 1.5px; text-transform: uppercase; font-family: inherit; outline: none; }
.rattach-champ:focus { border-color: #2f5fd0; background: #fff; box-shadow: 0 0 0 4px rgba(47, 95, 208, .14); }
.rattach-champ.invalide { border-color: #d64545; background: #fff5f5; }
.rattach-erreur { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 11px 14px; border-radius: 12px; background: #fdecec; border: 1px solid #f5c2c2; color: #a02323; font-size: 14px; line-height: 1.4; }
.rattach-pt { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #d64545; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.rattach-valider { width: 100%; height: 54px; margin-top: 14px; border-radius: 14px; background: linear-gradient(135deg, #1c2ea0, #2f5fd0); color: #fff; font-size: 16px; font-weight: 700; box-shadow: 0 8px 18px rgba(28, 46, 160, .28); }
.rattach-valider[disabled] { opacity: .55; box-shadow: none; }
.rattach-annuler { display: block; text-align: center; margin: 16px 0 6px; color: #1c2ea0; font-weight: 600; text-decoration: none; }
.rattach-aide { text-align: center; color: #7a8399; font-size: 13px; line-height: 1.45; margin: 8px 8px 0; }
.ecran-contenu .login-intro { background: #eef2ff; border: 1px solid #d5dbf5; color: #1c2ea0; }
.ecran-contenu .login-intro p { color: #3b4668; }
.form-mdp .form-group > span { display: block; margin: 0 0 6px 2px; font-size: 14px; font-weight: 600; color: #1d2440; }
.form-mdp .form-control { height: 50px; padding: 0 14px; border: 1.5px solid #d5dbeb; border-radius: 14px; background: #fff; color: #1d2440; font-size: 16px; }
.form-mdp .form-control:focus { border-color: #2f5fd0; box-shadow: 0 0 0 4px rgba(47, 95, 208, .14); outline: none; }
