/* Espace élève — organisation en pages (cours / examens / historique), pensée d'abord pour le téléphone. */
:root {
  --sp-bg: #F3F6FB;
  --sp-line: #DCE4F0;
  --sp-muted: #51627C;
  --sp-ok: #14723F;
  --sp-ok-bg: #E6F5EE;
  --sp-warn-bg: #FFF1E8;
  --sp-blue-bg: #E3ECFF;
}
body.student-page { background: var(--sp-bg); }
body.student-page main { min-height: 60vh; }

/* Bande de titre */
.sp-top { background: var(--navy); color: #fff; padding: 22px 0 20px; }
.sp-top h1 { color: #fff; font-size: clamp(26px, 6vw, 36px); letter-spacing: -.03em; margin: 2px 0 0; }
.sp-top small { color: rgba(255,255,255,.8); display: block; font-size: 14px; font-weight: 700; }
.sp-top .sp-email { color: rgba(255,255,255,.78); font-size: 14px; margin: 4px 0 0; overflow-wrap: anywhere; }
.sp-top .sp-lead { color: rgba(255,255,255,.92); font-size: 15px; line-height: 1.5; margin: 12px 0 0; max-width: 560px; }
.sp-back { align-items: center; color: #fff; display: inline-flex; font-size: 14px; font-weight: 800; margin-bottom: 10px; min-height: 44px; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
.sp-wrap { margin: 0 auto; max-width: 980px; padding: 0 16px; }
.sp-body { display: grid; gap: 14px; padding-bottom: 36px; padding-top: 16px; }
.sp-area { padding: 0; }
.sp-loading { color: var(--sp-muted); font-weight: 700; margin: 8px 0; }
.sp-boot { padding: 40px 16px; text-align: center; }

/* Grandes cartes et boutons */
.sp-card { background: #fff; border: 1px solid var(--sp-line); border-radius: 16px; box-shadow: none; padding: 16px; }
.sp-card h2 { font-size: 19px; letter-spacing: -.02em; margin: 0 0 4px; }
.sp-card p { color: var(--sp-muted); font-size: 15px; line-height: 1.5; margin: 0; }
.sp-card h3 { color: var(--navy); font-size: 15px; margin: 18px 0 5px; }
.sp-card .btn { margin-top: 14px; min-height: 48px; }
.account-delete-link { align-items: center; background: transparent; border: 0; border-top: 1px solid var(--sp-line); color: #B42318; cursor: pointer; display: flex; font: inherit; font-weight: 800; justify-content: space-between; margin-top: 18px; min-height: 48px; padding: 12px 0 0; text-align: left; width: 100%; }
.account-delete-link span { font-size: 28px; line-height: 1; }
.account-delete-panel { border-color: rgba(180,35,24,.35); }
.account-delete-check { align-items: flex-start; color: var(--navy); display: flex; font-size: 14px; font-weight: 800; gap: 10px; line-height: 1.4; margin-top: 18px; }
.account-delete-check input { height: 20px; margin-top: 0; width: 20px; }
.btn-lg { font-size: 16px; min-height: 52px; padding: 12px 22px; }
.sp-textlink { align-items: center; color: var(--navy); display: inline-flex; font-size: 15px; font-weight: 800; justify-content: center; min-height: 44px; padding: 8px 4px; text-decoration: underline; text-underline-offset: 3px; }
.sp-textbtn { background: none; border: 0; color: var(--navy); cursor: pointer; font: inherit; font-size: 14px; font-weight: 800; padding: 10px 6px; text-decoration: underline; text-underline-offset: 3px; }
.sp-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 12px; }
.sp-actions .btn { flex: 1 1 200px; }

/* Bandeau « épreuve en cours » */
.sp-resume { align-items: center; background: var(--sp-warn-bg); border: 2px solid var(--orange); border-radius: 16px; display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: space-between; padding: 12px 14px; }
.sp-resume-text { display: grid; gap: 2px; min-width: 0; }
.sp-resume-text strong { color: var(--navy); }
.sp-resume-text span { color: var(--sp-muted); font-size: 14px; }
.sp-resume-actions { align-items: center; display: flex; gap: 6px; }

/* Aujourd'hui */
.sp-next { background: linear-gradient(145deg, var(--navy), #123B70); border: 0; box-shadow: 0 14px 28px rgba(7, 26, 53, .18); color: #fff; padding: 22px 18px; }
.sp-label { color: var(--orange-dark); font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.sp-next .sp-label { color: #FFB18D; }
.sp-next h2 { font-size: 22px; margin: 4px 0 8px; }
.sp-next p { color: #D5E2F1; }
.sp-meta { color: var(--sp-muted); display: grid; font-size: 13.5px; font-weight: 700; gap: 3px; margin: 12px 0 14px; }
.sp-next .sp-meta { color: #D5E2F1; }
.sp-next .btn { box-shadow: none; }
.sp-method { display: grid; gap: 12px; overflow: hidden; position: relative; }
.sp-method::after { background: radial-gradient(circle, rgba(255,107,44,.15), transparent 66%); content: ""; height: 180px; pointer-events: none; position: absolute; right: -72px; top: -92px; width: 180px; }
.sp-method > * { position: relative; z-index: 1; }
.sp-method-head { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.sp-method-head h2 { margin: 2px 0 0; }
.sp-method-mark { align-items: center; background: var(--orange); border-radius: 50%; color: var(--navy); display: inline-flex; flex: 0 0 auto; font-size: 19px; font-weight: 900; height: 38px; justify-content: center; width: 38px; }
.sp-method-steps { display: grid; gap: 10px; margin: 4px 0 0; }
.sp-method-step { align-items: center; background: var(--sp-bg); border: 1px solid var(--sp-line); border-radius: 12px; display: flex; gap: 10px; padding: 10px; }
.sp-method-steps b { align-items: center; background: var(--sp-blue-bg); border-radius: 50%; color: #0F3E9E; display: inline-flex; flex: 0 0 auto; font-size: 14px; height: 28px; justify-content: center; width: 28px; }
.sp-method-steps span { display: grid; gap: 1px; }
.sp-method-steps strong { color: var(--navy); font-size: 14.5px; }
.sp-method-steps small { color: var(--sp-muted); font-size: 13px; line-height: 1.35; }
.sp-stats { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp-stats > div { background: #fff; border: 1px solid var(--sp-line); border-radius: 14px; padding: 12px 8px; text-align: center; }
.sp-stats b { color: var(--navy); display: block; font-size: 24px; line-height: 1.1; }
.sp-stats span { color: var(--sp-muted); display: block; font-size: 12.5px; line-height: 1.25; margin-top: 3px; }
.sp-zone { display: grid; gap: 12px; }
.sp-zone-head { align-items: center; display: flex; gap: 12px; }
.sp-zone-head > div { min-width: 0; }
.sp-ico { align-items: center; border-radius: 14px; display: inline-flex; flex: 0 0 auto; height: 48px; justify-content: center; width: 48px; }
.sp-ico.is-course { background: var(--sp-blue-bg); color: var(--blue); }
.sp-ico.is-exam { background: var(--sp-warn-bg); color: var(--orange-dark); }
.sp-review { display: grid; gap: 10px; }
.sp-shortcuts { display: grid; gap: 10px; }
.sp-section-title { padding: 4px 2px 0; }
.sp-section-title h2 { font-size: 20px; margin: 2px 0 0; }
.sp-details { background: #fff; border: 1px solid var(--sp-line); border-radius: 16px; padding: 4px 16px; }
.sp-details > summary { cursor: pointer; font-size: 16px; font-weight: 800; list-style: none; padding: 14px 0; position: relative; }
.sp-details > summary::-webkit-details-marker { display: none; }
.sp-details > summary::after { content: "+"; color: var(--orange-dark); font-size: 24px; position: absolute; right: 2px; top: 8px; }
.sp-details[open] > summary::after { content: "−"; }
.sp-note { color: var(--sp-muted); font-size: 13.5px; margin: 0 0 10px; }
.sp-subject-list { display: grid; gap: 8px; padding-bottom: 14px; }
.sp-subject-row { align-items: center; background: var(--sp-bg); border: 1px solid var(--sp-line); border-radius: 12px; color: var(--navy); display: grid; gap: 6px 10px; grid-template-columns: minmax(0, 1fr) auto; padding: 10px 12px; }
.sp-subject-row strong { display: block; font-size: 15px; }
.sp-subject-row small { color: var(--sp-muted); display: block; font-size: 13px; }
.sp-subject-row b { font-size: 16px; white-space: nowrap; }
.sp-subject-row.is-priority { border-color: var(--orange); }
.sp-priority-annals { border-color: #f2cf80; background: linear-gradient(140deg, #fffdf5, #fff7e8); }
.sp-priority-annals-head { align-items: center; display: flex; justify-content: space-between; gap: 16px; }
.sp-priority-annals-head h2 { margin: 0; }
.sp-priority-annals-mark { color: #D99000; flex: 0 0 auto; font-size: 17px; font-weight: 900; letter-spacing: 1px; white-space: nowrap; }
.sp-priority-annals-list { display: grid; gap: 8px; margin-top: 16px; }
.sp-priority-annal { align-items: center; background: #fff; border: 1px solid #f2dfb4; border-radius: 12px; color: inherit; display: flex; justify-content: space-between; padding: 12px; text-decoration: none; }
.sp-priority-annal:hover { border-color: var(--orange); }
.sp-priority-annal strong, .sp-priority-annal small { display: block; }
.sp-priority-annal small { color: var(--sp-muted); margin-top: 2px; }
.sp-priority-annal b { color: var(--orange); font-size: 14px; white-space: nowrap; }
.sp-bar { background: #E1E8F3; border-radius: 99px; display: block; grid-column: 1 / -1; height: 7px; overflow: hidden; }
.sp-bar em { background: var(--blue); display: block; height: 100%; }
.sp-account dl { display: grid; gap: 10px; margin: 12px 0 14px; }
.sp-account dl > div { display: grid; gap: 1px; }
.sp-account dt { color: var(--sp-muted); font-size: 13px; font-weight: 700; }
.sp-account dd { font-size: 15px; font-weight: 800; margin: 0; overflow-wrap: anywhere; }

/* Cours / examens : cartes par matière */
.sp-subject-head { align-items: center; display: flex; gap: 10px; justify-content: space-between; }
.sp-subject-head h2 { margin: 0; }
.sp-pills-inline { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.sp-pill { background: var(--sp-bg); border: 1px solid var(--sp-line); border-radius: 99px; color: var(--sp-muted); display: inline-block; font-size: 13px; font-weight: 800; padding: 4px 10px; white-space: nowrap; }
.sp-pill.is-ok { background: var(--sp-ok-bg); border-color: transparent; color: var(--sp-ok); }
.sp-pill.is-advice { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.sp-subject > p { margin-top: 6px; }
.sp-subject.is-targeted { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,44,.2); }
.sp-subject { scroll-margin-top: 80px; }
.sp-facts { color: var(--sp-muted); display: flex !important; flex-wrap: wrap; font-size: 14px; font-weight: 700; gap: 4px 14px; margin-top: 6px; }
.sp-intro h2 { margin-bottom: 6px; }
.sp-seg { background: #E1E8F3; border-radius: 14px; display: grid; gap: 4px; grid-template-columns: 1fr 1fr; padding: 4px; }
.sp-seg button { background: transparent; border: 0; border-radius: 11px; color: var(--sp-muted); cursor: pointer; font: inherit; font-size: 15px; font-weight: 800; min-height: 48px; padding: 8px 4px; }
.sp-seg button.is-active { background: var(--navy); color: #fff; }
.sp-seg button:focus-visible, .sp-chip:focus-visible, .student-nav a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sp-pills-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.sp-pill-link { background: #fff; border: 2px solid var(--sp-line); border-radius: 14px; color: var(--navy); display: grid; gap: 1px; min-height: 58px; padding: 9px 12px; }
.sp-pill-link strong { font-size: 15px; }
.sp-pill-link small { color: var(--sp-muted); font-size: 13px; font-weight: 700; }
.sp-pill-link.is-next { border-color: var(--orange); }
.sp-pill-link.is-done { background: var(--sp-ok-bg); border-color: transparent; }
.sp-pill-link.is-done small { color: var(--sp-ok); }
.sp-pill-link:hover { border-color: var(--navy); }

/* Historique */
.sp-chips { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-chip { align-items: center; background: #fff; border: 2px solid var(--sp-line); border-radius: 14px; color: var(--navy); cursor: pointer; display: flex; font: inherit; font-size: 15px; font-weight: 800; gap: 6px; justify-content: space-between; min-height: 52px; padding: 10px 14px; text-align: left; }
.sp-chip b { color: var(--sp-muted); font-size: 15px; }
.sp-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.sp-chip.is-active b { color: #fff; opacity: .85; }
#history-list { display: grid; gap: 10px; }
.sp-hist { display: grid; gap: 6px; padding: 14px; }
.sp-hist h2 { font-size: 17px; margin: 0; }
.sp-hist-top { align-items: center; display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; }
.sp-hist-top time { color: var(--sp-muted); font-size: 13.5px; }
.sp-hist-score { align-items: baseline; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.sp-hist-score strong { font-size: 22px; }
.sp-history-review { color: var(--orange-dark); font-size: 14px; font-weight: 800; margin-top: 4px; width: fit-content; }
.sp-history-review:hover { text-decoration: underline; }
.sp-attempt-review { gap: 16px; }
.sp-attempt-review h2 { margin: 0; }
.sp-attempt-review h3 { font-size: 16px; margin: 8px 0; }
.sp-attempt-review p { margin: 6px 0; }
.sp-review-note { background: var(--sp-blue-bg); border-radius: 10px; color: #0F3E9E; font-weight: 700; padding: 10px; }
.sp-low { background: var(--sp-warn-bg); border-radius: 8px; color: #B4430F; font-size: 13px; font-weight: 800; padding: 2px 8px; }
.sp-badge { border-radius: 8px; display: inline-block; font-size: 13.5px; font-weight: 800; padding: 3px 10px; }
.sp-badge.b-exam { background: var(--sp-blue-bg); color: #0F3E9E; }
.sp-badge.b-train { background: var(--sp-ok-bg); color: #0E6B43; }
.sp-badge.b-review { background: var(--sp-warn-bg); color: #B4430F; }
.sp-badge.b-free { background: #EEF1F6; color: var(--sp-muted); }
.sp-empty { display: grid; gap: 10px; }

/* Lecture d'un cours */
.sp-reader { padding: 16px 16px 20px; }
.sp-reader .course-content { margin-top: 0; max-width: 760px; }
.sp-reader .course-complete-action { border-top: 1px solid var(--sp-line); margin-top: 22px; padding-top: 18px; }
.sp-next-links { border-top: 1px solid var(--sp-line); display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; }
.sp-next-links[hidden] { display: none; }
.sp-next-links .sp-textlink { text-align: center; }

/* Épreuve */
.sp-run { max-width: 760px; }
.sp-intro-run { background: #fff; border: 1px solid var(--sp-line); border-radius: 16px; display: grid; gap: 14px; padding: 16px; }
.sp-checklist { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.sp-checklist li { color: var(--sp-muted); font-size: 15px; line-height: 1.5; padding-left: 26px; position: relative; }
.sp-checklist li::before { color: var(--orange-dark); content: "✓"; font-weight: 900; left: 0; position: absolute; }
.sp-checklist strong { color: var(--navy); }
.sp-run .quiz-wrap .card { padding: 18px 16px; }

/* Navigation : barre du bas sur téléphone, onglets sur ordinateur */
.student-nav[hidden] { display: none; }
.student-nav a { align-items: center; color: var(--sp-muted); display: flex; flex-direction: column; font-size: 12.5px; font-weight: 800; gap: 2px; justify-content: center; min-height: 58px; padding: 4px 2px; text-decoration: none; }
.student-nav a svg { border-radius: 12px; box-sizing: content-box; padding: 3px 13px; }
.student-nav a.is-active { color: var(--navy); }
.student-nav a.is-active svg { background: var(--orange); color: var(--navy); }
body.student-page .action-rail { display: none; }

@media (max-width: 900px) {
  body.student-active { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .student-nav { background: #fff; border-top: 1px solid var(--sp-line); bottom: 0; box-shadow: 0 -8px 24px rgba(7,26,53,.12); display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; left: 0; padding: 4px 4px calc(6px + env(safe-area-inset-bottom, 0px)); position: fixed; right: 0; z-index: 1000; }
}
@media (min-width: 901px) {
  body.student-active { padding-bottom: 0; }
  .student-nav { background: #fff; border-bottom: 1px solid var(--sp-line); display: flex; gap: 6px; justify-content: center; padding: 0 16px; }
  .student-nav a { border-bottom: 3px solid transparent; flex-direction: row; font-size: 15px; gap: 8px; min-height: 54px; padding: 0 20px; }
  .student-nav a svg { padding: 0; width: 22px; height: 22px; }
  .student-nav a.is-active { border-bottom-color: var(--orange); }
  .student-nav a.is-active svg { background: none; color: var(--orange-dark); }
  .student-nav a:hover { color: var(--navy); }
  .sp-body { gap: 16px; padding-top: 22px; }
  .sp-stats b { font-size: 28px; }
  .sp-pills-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sp-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sp-next { padding: 22px; }
  .sp-next .btn { width: auto; }
}
@media (min-width: 640px) and (max-width: 900px) {
  .sp-pills-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .sp-pills-grid { gap: 6px; }
  .sp-pill-link { padding: 8px 10px; }
  .sp-stats span { font-size: 12px; }
}

/* Espacement vertical régulier entre les blocs */
#learning-area, #view-root, #panel-exam, #panel-training { display: grid; gap: 14px; }
@media (min-width: 901px) { #learning-area, #view-root, #panel-exam, #panel-training { gap: 16px; } }

/* Réponses de QCM : toutes de la même largeur, texte aligné à gauche */
body.student-page .quiz-option { text-align: left; width: 100%; }
body.student-page .quiz-options { margin-bottom: 18px; }

/* Les boutons gardent la police du site (par défaut un <button> prend la police du système) */
body.student-page button, body.student-page textarea, body.student-page input { font-family: inherit; }

/* Fin d'épreuve : boutons pleine largeur sur téléphone ; « Recommencer » masqué (on repasse par la liste des épreuves) */
body.student-page #quiz-restart-btn { display: none; }
@media (max-width: 640px) {
  body.student-page .session-complete-actions { display: grid; }
  body.student-page .session-complete-actions .btn { text-align: center; width: 100%; }
}
body.student-page .quiz-option { font-size: 16px; line-height: 1.4; }

/* Contact élèves payants (lien fourni par le serveur) */
.sp-support { margin: 14px 0 0; }
.sp-account .sp-support .btn { width: 100%; }

/* Repères Cours / Examens : chaque page annonce son rôle, avec sa couleur */
body[data-student-view="courses"] .sp-top { border-bottom: 6px solid var(--blue); }
body[data-student-view="exams"] .sp-top { border-bottom: 6px solid var(--orange); }
.sp-top .sp-step { background: rgba(255,255,255,.14); border-radius: 99px; display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .03em; padding: 5px 12px; text-transform: uppercase; }
.sp-top .sp-step.is-course { box-shadow: inset 0 0 0 2px var(--blue); }
.sp-top .sp-step.is-exam { box-shadow: inset 0 0 0 2px var(--orange); }
.sp-top h1 { margin-top: 8px; }
.sp-top .sp-jump { color: #fff; display: inline-flex; align-items: center; font-size: 14px; font-weight: 800; margin-top: 4px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.sp-subject.is-course { border-left: 5px solid var(--blue); }
.sp-kicker { background: var(--sp-blue-bg); border-radius: 99px; color: var(--navy); display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .04em; margin-bottom: 6px; padding: 3px 10px; text-transform: uppercase; }
.sp-textlink.is-exam { color: var(--sp-muted); font-size: 14px; font-weight: 700; }

/* Examens et Cours : titre de chaque matière dans une étiquette bleu marine, logo VTC Malin à gauche */
body[data-student-view="exams"] .sp-subject-head, body[data-student-view="courses"] .sp-subject-head { align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 10px; }
body[data-student-view="exams"] .sp-subject-head h2, body[data-student-view="courses"] .sp-subject-head h2 { align-items: center; background: var(--navy); border-radius: 12px; color: #fff; display: inline-flex; font-size: clamp(19px, 5.2vw, 22px); gap: 8px; letter-spacing: -.02em; margin: 0; padding: 5px 16px 5px 6px; }
body[data-student-view="exams"] .sp-subject-head h2::before, body[data-student-view="courses"] .sp-subject-head h2::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='11' fill='%23071A35'/%3E%3Ccircle cx='20' cy='20' r='12.5' stroke='%23FFFFFF' stroke-width='4' fill='none'/%3E%3Ccircle cx='20' cy='20' r='12.5' stroke='%23FF6B2C' stroke-width='4' fill='none' stroke-linecap='round' stroke-dasharray='78.5' stroke-dashoffset='21' transform='rotate(-90 20 20)'/%3E%3Cpath d='M14.5 20 L18.5 24 L26 16' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat; content: ""; flex: none; height: 32px; width: 32px; }

/* Déconnexion en haut de page, bien visible */
.sp-top .sp-wrap { position: relative; }
.sp-top small { padding-right: 150px; }
.sp-logout-top { background: transparent; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; color: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; padding: 8px 14px; position: absolute; right: 0; top: 0; }
.sp-logout-top:hover, .sp-logout-top:focus-visible { background: rgba(255,255,255,.14); }
.sp-network-status { background: #fff4e6; border-bottom: 1px solid #f3c98a; color: #633900; font-size: 14px; font-weight: 700; padding: 10px 0; }
.sp-network-status .sp-wrap { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.sp-network-status button { background: #633900; border: 0; border-radius: 999px; color: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; min-height: 36px; padding: 7px 13px; }
.sp-network-status button:hover, .sp-network-status button:focus-visible { background: #442700; }

/* Installation de l'application : carte visible dans l'accueil élève, sur téléphone. */
.sp-install-app { align-items: center; background: linear-gradient(135deg, #071A35, #123761); border: 0; color: #fff; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(180px, 220px); }
.sp-install-app .sp-label { color: #FFB28D; }
.sp-install-app h2 { color: #fff; margin: 4px 0 8px; }
.sp-install-app p { color: #D9E7F7; margin: 0; }
.sp-install-steps { color: #fff; display: grid; font-size: 14px; gap: 8px; line-height: 1.45; margin: 14px 0 0; padding-left: 20px; }
.sp-install-actions { display: grid; gap: 8px; }
.sp-install-actions .btn { background: #FF6B2C; border-color: #FF6B2C; color: #071A35; }
.sp-install-actions .form-help { color: #D9E7F7; font-size: 12px; line-height: 1.4; text-align: center; }
@media (max-width: 620px) { .sp-install-app { grid-template-columns: 1fr; } }
/* Dans l'application Android, les achats restent exclusivement hors de l'app. */
html.android-app-mode #purchase-area,
html.android-app-mode #upgrade-offer,
html.android-app-mode #install-app-card {
  display: none !important;
}
.android-free-options { display: none; }
html.android-app-mode .android-free-options { display: grid; gap: 12px; margin-top: 18px; }
html.android-app-mode .android-free-options p { margin: 0; color: var(--text-muted); }

/* Suppression de compte : boutons et textes des écrans de confirmation */
.account-delete-danger{background: #B42318; border-color: #B42318; color: #fff;}
.account-delete-danger:hover{background: #8F1C13; border-color: #8F1C13; color: #fff;}
.account-delete-panel p + p, #delete-email-sent p + p, #delete-confirm-success p + p, #delete-confirm-invalid p + p{margin-top: 10px;}
.account-delete-panel p a{color: var(--navy); font-weight: 800; text-decoration: underline; text-underline-offset: 3px;}
.account-delete-panel .btn:disabled{background: #E7EBF1; border-color: #E7EBF1; color: #7A8699; cursor: not-allowed; transform: none;}
#delete-confirm-success .btn + p{margin-top: 14px;}

/* Espace élève : chiffres dans l’en-tête, méthode sur une ligne, raccourcis en 2 colonnes (30/10) */
.sp-top .sp-stats{margin-top:18px;max-width:640px}
.sp-top .sp-stats>div{background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.18)!important}
.sp-top .sp-stats b{color:#fff!important;font-size:1.7rem}
.sp-top .sp-stats span{color:#c6d3e6!important}
@media (min-width:760px){.sp-method-steps{grid-template-columns:repeat(3,minmax(0,1fr))!important}.sp-method-step{align-items:flex-start!important}.sp-shortcuts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.sp-shortcuts>.sp-section-title{grid-column:1/-1}.sp-shortcuts>.sp-zone,.sp-shortcuts>.sp-card{margin:0!important}}

/* Espace élève allégé (30/10) : plus de doublons, annales sobres, progression visible */
.sp-top .sp-email,.sp-zone{display:none!important}
.sp-priority-annals{background:#fff!important;border:1px solid #d3deee!important;border-left:4px solid #ff6b2c!important;box-shadow:none!important}
.sp-priority-annals *::before,.sp-priority-annals *::after{content:none!important}
.sp-priority-annals-head > :not(div):not(h2){display:none!important}
.sp-priority-annals-list{display:grid!important;grid-template-columns:1fr 1fr;gap:10px}
.sp-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0!important;padding:0!important}.sp-shortcuts .sp-section-title{grid-column:1/-1}
details.sp-details{margin-top:0}details.sp-details[open] .sp-subject-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media(max-width:700px){.sp-priority-annals-list,.sp-shortcuts,details.sp-details[open] .sp-subject-list{grid-template-columns:1fr}}

/* Onglets espace élève plus visibles (30/10) */
.student-nav a{color:#071a35!important;font-size:13.5px!important;font-weight:800!important;gap:4px!important}
.student-nav a svg{background:#eaf0fb;color:#1d4ed8!important}
.student-nav a:nth-child(3) svg{background:#fff0e8;color:#c2410c!important}
.student-nav a.is-active{background:#071a35;color:#fff!important;border-radius:16px;margin:6px 4px}
.student-nav a.is-active svg{background:#ff6b2c!important;color:#071a35!important}
.student-nav{box-shadow:0 -6px 20px rgba(7,26,53,.12)}
