/* classe.oluno.fr — styles communs. Côté élève : gros caractères, interligne aéré, grandes
   cibles tactiles (iPad), une seule chose importante à l'écran à la fois. */

:root {
    --tc-accent: #1f6f78;
    --tc-accent-clair: #e3f1f2;
    --tc-surligne: #fff3bf;
}

.barre-eleve, .barre-prof { background: #fff; border-bottom: 1px solid #e6e8eb; }
.barre-eleve .navbar-brand, .barre-prof .navbar-brand { color: var(--tc-accent); }

/* ---------- Espace élève ---------- */
.espace-eleve { font-size: 1.2rem; }
.espace-eleve .btn { font-size: 1.1rem; }
.espace-eleve .btn-lg { font-size: 1.25rem; padding: .8rem 1.4rem; }
.titre-eleve { font-size: 2rem; font-weight: 700; margin: .5rem 0 .75rem; }
.texte-eleve { font-size: 1.3rem; color: #495057; margin-bottom: 1.5rem; }

.connexion { max-width: 820px; margin: 1rem auto; }
.carte-eleve { max-width: 460px; background: #fff; border: 1px solid #e6e8eb; border-radius: 12px; padding: 1.5rem; }
.champ-code { font-size: 2rem; letter-spacing: .25em; text-transform: uppercase; text-align: center; }
.grille-prenoms { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .9rem; }
.prenom {
    display: flex; align-items: center; justify-content: center; min-height: 84px; padding: .75rem;
    background: #fff; border: 2px solid #dfe3e7; border-radius: 12px; color: #1d273b;
    font-size: 1.45rem; font-weight: 600; text-align: center; text-decoration: none;
}
.prenom:hover, .prenom:focus { border-color: var(--tc-accent); background: var(--tc-accent-clair); text-decoration: none; }
.date-naissance { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: .75rem; }
.date-naissance label { font-size: 1rem; color: #495057; }
.date-naissance input { font-size: 1.8rem; text-align: center; margin-top: .25rem; }

.grille-matieres { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.matiere {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; min-height: 150px;
    background: #fff; border: 2px solid #dfe3e7; border-radius: 14px; color: #1d273b; font-size: 1.35rem; font-weight: 600; text-decoration: none;
}
.matiere i { font-size: 2.6rem; color: var(--tc-accent); }
.matiere:hover, .matiere:focus { border-color: var(--tc-accent); background: var(--tc-accent-clair); text-decoration: none; }
.liste-travaux { display: grid; gap: .9rem; max-width: 820px; }
.travail-carte {
    display: flex; flex-direction: column; align-items: flex-start; padding: 1.1rem 1.3rem; background: #fff;
    border: 2px solid #dfe3e7; border-radius: 12px; color: #1d273b; text-decoration: none;
}
.travail-carte:hover, .travail-carte:focus { border-color: var(--tc-accent); text-decoration: none; }
.travail-titre { font-size: 1.4rem; font-weight: 700; }
.travail-objectif { color: #495057; margin-top: .25rem; }

/* Page de travail */
.travail { max-width: 860px; margin: 0 auto 4rem; }
.titre-travail { font-size: 2rem; font-weight: 700; display: flex; align-items: flex-start; gap: .5rem; }
.objectif { background: var(--tc-accent-clair); border-radius: 10px; padding: .75rem 1rem; display: flex; gap: .5rem; align-items: flex-start; }
.travail section { background: #fff; border: 1px solid #e6e8eb; border-radius: 12px; padding: 1.25rem 1.4rem; margin-top: 1.25rem; }
.travail h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: .9rem; }
.paragraphe { display: flex; align-items: flex-start; gap: .6rem; }
.lisible { font-size: 1.3rem; line-height: 1.75; margin-bottom: 1rem; max-width: 62ch; border-radius: 6px; transition: background-color .2s; }
.lisible.en-lecture, .en-lecture { background: var(--tc-surligne); }
.bloc-questions .question { padding: .5rem 0 1rem; border-top: 1px solid #eef0f2; }
.bloc-questions .question:first-of-type { border-top: 0; }
.numero { font-weight: 700; color: var(--tc-accent); }
.reponse { font-size: 1.3rem; line-height: 1.6; min-height: 6rem; }
.etat-sauvegarde { font-size: .95rem; min-height: 1.4rem; margin-top: .25rem; color: #6c757d; }
.etat-sauvegarde.ok { color: #2f9e44; }
.etat-sauvegarde.erreur { color: #d63939; font-weight: 600; }
.consigne-cahier { font-size: 1.25rem; font-weight: 600; color: var(--tc-accent); background: var(--tc-accent-clair); padding: .6rem .9rem; border-radius: 8px; }
.astuce-dictee { color: #6c757d; font-size: 1rem; }
.fin-travail { margin-top: 1.75rem; text-align: center; }
.termine { font-size: 1.3rem; font-weight: 600; color: #2f9e44; }

.btn-lire {
    flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--tc-accent);
    background: #fff; color: var(--tc-accent); font-size: 1.5rem; display: inline-flex; align-items: center; justify-content: center;
}
.btn-lire:active, .btn-lire:hover { background: var(--tc-accent); color: #fff; }
.barre-ecoute {
    position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
    background: #fff; border: 1px solid #e6e8eb; border-radius: 12px; padding: .6rem .8rem; margin-bottom: 1rem;
}
.barre-ecoute [data-vitesse].active { background: var(--tc-accent-clair); border-color: var(--tc-accent); color: var(--tc-accent); }

/* ---------- Espace enseignant ---------- */
.espace-prof .badge-mode { font-weight: 600; }
.mode-lecture-badge { background: #eef0f2; color: #495057; }
.mode-tablette-badge { background: #e7f0fe; color: #1c5dbf; }
.mode-ecoute-badge { background: #fff1e6; color: #b35c00; }
.question-edit { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .6rem; }
.question-edit .num { font-weight: 700; padding-top: .45rem; min-width: 1.6rem; color: var(--tc-accent); }
.reponse-cellule { white-space: pre-wrap; max-width: 420px; }
.aide-mode { font-size: .85rem; color: #6c757d; }
.entete-page { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .75rem; margin-bottom: 1rem; }
.entete-page .page-title { margin: .15rem 0; }

/* QCM (élève) : de grands boutons, un état coché bien visible */
.choix-qcm { display: grid; gap: .6rem; margin-top: .25rem; max-width: 640px; }
.choix-ligne { display: flex; align-items: center; gap: .6rem; }
.choix {
    flex: 1; display: flex; align-items: center; gap: .75rem; text-align: left; min-height: 60px; padding: .7rem 1rem;
    background: #fff; border: 2px solid #dfe3e7; border-radius: 12px; font-size: 1.25rem; color: #1d273b;
}
.choix i { font-size: 1.6rem; color: #adb5bd; }
.choix .icone-coche { display: none; color: var(--tc-accent); }
.choix.coche { border-color: var(--tc-accent); background: var(--tc-accent-clair); font-weight: 600; }
.choix.coche .icone-vide { display: none; }
.choix.coche .icone-coche { display: inline; }
.lisible-choix.en-lecture { background: var(--tc-surligne); border-radius: 4px; }
.plusieurs-reponses { color: var(--tc-accent); font-weight: 600; margin: 0 0 .25rem; }

/* QCM (enseignant) */
.choix-edit { margin: .25rem 0 .75rem 2.1rem; padding: .6rem .75rem; background: #f8fafc; border-radius: 8px; }
.choix-edit .ligne-choix { display: flex; gap: .5rem; align-items: center; margin-bottom: .4rem; }
.qcm-juste { color: #2f9e44; }
.qcm-faux { color: #d63939; }

/* Suivi en direct (enseignant) */
.grille-direct { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.carte-direct { transition: border-color .2s, box-shadow .2s; }
.carte-direct.hors-ligne { opacity: .72; }
.carte-direct.main-levee { border: 2px solid #f59f00; box-shadow: 0 0 0 4px rgba(245, 159, 0, .15); opacity: 1; }
.pastille { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: #adb5bd; margin-right: .35rem; vertical-align: middle; }
.pastille.en-ligne { background: #2fb344; }
.bandeau-main { display: flex; justify-content: space-between; align-items: center; gap: .5rem; background: #fff4e6; color: #a35200; border-radius: 8px; padding: .4rem .6rem; font-weight: 600; }
.liste-reponses { padding-left: 1.2rem; white-space: pre-wrap; }
.liste-reponses li { margin-bottom: .2rem; }
.point-direct { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; background: #d63939; margin-right: .5rem; vertical-align: middle; animation: clignote 1.6s infinite; }
@keyframes clignote { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .point-direct { animation: none; } }

/* Version simplifiée (enseignant) */
.bloc-simplifie { border: 1px dashed #c5b3e6; border-radius: 10px; padding: .9rem 1rem; background: #fbf9ff; }
