/* Parcours révision, devoirs de niveau, examens blancs (04/11/2026). Couleurs de theme.css (--pt-*), mode sombre compris. */
.pt-pr { max-width: 1080px; }
.pt-pr h1 { font-size: 1.7rem; font-weight: 700; margin: 0 0 .5rem; line-height: 1.25; }
.pt-pr h2 { font-size: 1.12rem; font-weight: 700; margin: 0 0 .85rem; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.pt-pr h2 > i { color: var(--pt-primary); font-size: 1.3rem; }
.pt-pr h2 small { font-weight: 400; color: var(--pt-muted); font-size: .88rem; }
.pt-pr-carte { padding: 1.4rem; margin-bottom: 1.25rem; }
.pt-pr-accueil { text-align: center; padding: 2rem 1.5rem; }
.pt-pr-accueil .pt-tn-actions { justify-content: center; }
.pt-pr-grande-icone { font-size: 3rem; color: var(--pt-primary); background: var(--pt-primary-soft); border-radius: 50%; padding: .9rem; margin-bottom: .5rem; }
.pt-pr-surtitre { color: var(--pt-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; margin: 0 0 .3rem; }
.pt-pr-liste { list-style: none; padding: 0; margin: 1rem auto 1.1rem; max-width: 640px; text-align: left; }
.pt-pr-liste li { display: flex; gap: .55rem; padding: .4rem 0; line-height: 1.45; }
.pt-pr-liste i { color: var(--pt-success); font-size: 1.3rem; flex: none; }
.pt-pr-champ { border: 1px solid var(--pt-border); background: var(--pt-surface); color: var(--pt-text); border-radius: var(--pt-radius-sm); padding: .55rem .7rem; font: inherit; min-height: 42px; }
.pt-pr-champ:focus { outline: none; box-shadow: var(--pt-focus); border-color: var(--pt-primary); }
.pt-pr-ligne { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.pt-pr-petit-form { margin-top: 1rem; font-size: .9rem; color: var(--pt-muted); }
.pt-pr-danger { color: var(--pt-danger) !important; }
.pt-pr-ok { color: var(--pt-success); font-weight: 600; display: flex; gap: .35rem; align-items: center; }

/* Étapes */
.pt-pr-etapes { display: flex; align-items: center; gap: .45rem; font-size: .9rem; color: var(--pt-muted); margin: 0 0 1rem; flex-wrap: wrap; }
.pt-pr-etapes b, .pt-pr-etapes i { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; font-style: normal; font-weight: 700; }
.pt-pr-etapes b { background: var(--pt-primary); color: #fff; }
.pt-pr-etapes i { background: var(--pt-surface-2); border: 1px solid var(--pt-border); }
.pt-pr-etapes span { width: 1.6rem; height: 2px; background: var(--pt-border); }

/* Choix des matières */
.pt-pr-matieres { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin: 1rem 0; }
.pt-pr-matiere { position: relative; display: flex; align-items: center; gap: .75rem; padding: 1rem; border: 2px solid var(--pt-border); border-radius: var(--pt-radius); cursor: pointer; background: var(--pt-surface); }
.pt-pr-matiere input { position: absolute; opacity: 0; pointer-events: none; }
.pt-pr-matiere span b { display: block; }
.pt-pr-matiere small { color: var(--pt-muted); }
.pt-pr-matiere-icone { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--m-soft); color: var(--m); font-size: 1.4rem; flex: none; }
.pt-pr-coche { margin-left: auto; font-size: 1.4rem; color: transparent; border: 2px solid var(--pt-border); border-radius: 50%; }
.pt-pr-matiere:has(input:checked) { border-color: var(--m); background: var(--m-soft); }
.pt-pr-matiere:has(input:checked) .pt-pr-coche { color: #fff; background: var(--m); border-color: var(--m); }
.pt-pr-matiere:has(input:focus-visible) { box-shadow: var(--pt-focus); }

/* Charge et créneaux */
.pt-pr-charge { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.2rem; align-items: center; background: var(--pt-primary-soft); border-radius: var(--pt-radius-sm); padding: 1rem 1.2rem; margin: .8rem 0 1.2rem; }
.pt-pr-charge > div { text-align: center; }
.pt-pr-chiffre { display: block; font-size: 1.8rem; font-weight: 800; color: var(--pt-primary); line-height: 1.1; }
.pt-pr-charge small { color: var(--pt-muted); }
.pt-pr-charge p { margin: 0; }
.pt-pr-charge ul { grid-column: 1 / -1; margin: .2rem 0 0; padding-left: 1.1rem; color: var(--pt-muted); font-size: .92rem; }
.pt-pr-creneaux { display: grid; gap: .55rem; margin-bottom: .7rem; }
.pt-pr-creneau { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: .5rem; }
.pt-pr-suppr { border: 0; background: transparent; color: var(--pt-muted); font-size: 1.4rem; cursor: pointer; border-radius: 8px; width: 42px; }
.pt-pr-suppr:hover { color: var(--pt-danger); background: var(--pt-surface-2); }
.pt-pr-jauge { margin: 1rem 0; }
.pt-pr-jauge > div { height: 10px; border-radius: 6px; background: var(--pt-surface-2); border: 1px solid var(--pt-border); overflow: hidden; }
.pt-pr-jauge span { display: block; height: 100%; background: var(--pt-danger); transition: width .25s; }
.pt-pr-jauge span.is-moyen { background: #E0A100; }
.pt-pr-jauge span.is-ok { background: var(--pt-success); }
.pt-pr-jauge p { margin: .45rem 0 0; font-size: .92rem; }
.pt-pr-rappels { border: 1px solid var(--pt-border); border-radius: var(--pt-radius-sm); padding: .8rem 1rem; display: grid; gap: .55rem; margin: 1rem 0; }
.pt-pr-rappels legend { font-weight: 700; padding: 0 .3rem; }
.pt-pr-rappels label { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.pt-pr-tel input { flex: 1; min-width: 180px; max-width: 260px; }

/* Tableau de bord */
.pt-pr-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.pt-pr-tete .pt-tn-muted { margin: 0; }
.pt-pr-grille { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.pt-pr-compteur { margin: -.3rem 0 .8rem; color: var(--pt-muted); }
.pt-pr-compteur b { color: var(--pt-text); font-size: 1.15rem; }
.pt-pr-taches { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.pt-pr-quand { font-weight: 700; font-size: .88rem; color: var(--pt-muted); margin-top: .5rem; }
.pt-pr-quand.is-aujourdhui { color: var(--pt-primary); }
.pt-pr-tache { display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border: 1px solid var(--pt-border); border-left: 4px solid var(--m); border-radius: var(--pt-radius-sm); background: var(--pt-surface); }
.pt-pr-tache.is-fait { background: var(--pt-surface-2); }
.pt-pr-tache.is-fait b { color: var(--pt-muted); }
.pt-pr-tache.is-retard { border-color: var(--pt-danger); border-left-color: var(--pt-danger); }
.pt-pr-etat { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--m-soft); color: var(--m); font-size: 1.2rem; flex: none; }
.pt-pr-tache.is-fait .pt-pr-etat { background: var(--pt-success); color: #fff; }
.pt-pr-tache-txt { flex: 1; min-width: 0; }
.pt-pr-tache-txt small { display: block; color: var(--pt-muted); font-size: .8rem; }
.pt-pr-tache-txt b { display: block; line-height: 1.3; }
.pt-pr-tache .pt-btn { flex: none; }
.pt-pr-cote .pt-pr-carte { padding: 1.15rem; }
.pt-pr-cote p { margin: 0 0 .6rem; }
.pt-pr-resultat { display: flex; flex-direction: column; border-top: 1px solid var(--pt-border); padding-top: .5rem; }
.pt-pr-resultat a { color: var(--pt-text); font-weight: 600; text-decoration: none; }
.pt-pr-resultat a:hover { color: var(--pt-primary); }
.pt-pr-resultat span { color: var(--pt-muted); font-size: .9rem; }
.pt-pr-avance { margin-bottom: .8rem; }
.pt-pr-avance p { display: flex; justify-content: space-between; margin: 0 0 .25rem !important; }
.pt-pr-avance small { color: var(--pt-muted); font-size: .8rem; }
.pt-pr-barre { position: relative; height: 9px; border-radius: 6px; background: var(--pt-surface-2); border: 1px solid var(--pt-border); overflow: hidden; }
.pt-pr-barre span { position: absolute; left: 0; top: 0; bottom: 0; }
.pt-pr-barre .is-vu { background: var(--m-soft); }
.pt-pr-barre .is-ok { background: var(--m); }
.pt-pr-agenda { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.pt-pr-agenda-sem { border: 1px solid var(--pt-border); border-radius: var(--pt-radius-sm); padding: .75rem; display: flex; flex-direction: column; gap: .35rem; }
.pt-pr-agenda-sem p { margin: 0 0 .2rem; display: flex; justify-content: space-between; gap: .5rem; }
.pt-pr-agenda-sem small { color: var(--pt-muted); }
.pt-pr-puce { display: flex; gap: .35rem; align-items: flex-start; font-size: .88rem; line-height: 1.3; background: var(--m-soft); color: var(--pt-text); border-radius: 8px; padding: .35rem .5rem; }
.pt-pr-puce i { color: var(--m); margin-top: .1rem; }
.pt-pr-reglages { color: var(--pt-muted); font-size: .92rem; padding: 0 .2rem 1rem; }
.pt-pr-reglages p { margin: 0 0 .5rem; }
.pt-pr-reglages .pt-link { margin-right: 1rem; }
.pt-pr-reglages form { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Devoir de niveau */
.pt-dn-liste { display: grid; gap: .7rem; }
.pt-dn-ligne { display: flex; gap: .9rem; align-items: center; padding: .9rem 1rem; border: 1px solid var(--pt-border); border-left: 4px solid var(--m); border-radius: var(--pt-radius-sm); background: var(--pt-surface); flex-wrap: wrap; }
.pt-dn-ligne > div { flex: 1; min-width: 200px; }
.pt-dn-ligne b { display: block; }
.pt-dn-ligne small { color: var(--pt-muted); }
.pt-dn-etat { font-size: .8rem; font-weight: 700; border-radius: 20px; padding: .2rem .65rem; background: var(--pt-surface-2); color: var(--pt-muted); white-space: nowrap; }
.pt-dn-etat--ouvert { background: var(--pt-success-soft); color: var(--pt-success); }
.pt-dn-etat--resultats { background: var(--pt-primary-soft); color: var(--pt-primary); }
.pt-dn-chrono { display: flex; align-items: center; gap: .6rem; font-variant-numeric: tabular-nums; font-weight: 700; }
.pt-dn-chrono .pt-dn-cercle { width: 44px; height: 44px; flex: none; }
.pt-dn-chrono.is-urgent { color: var(--pt-danger); }
.pt-dn-regles { list-style: none; padding: 0; margin: 1rem auto; max-width: 560px; text-align: left; }
.pt-dn-regles li { display: flex; gap: .6rem; padding: .35rem 0; }
.pt-dn-regles i { color: var(--pt-primary); font-size: 1.25rem; flex: none; }
.pt-dn-note { font-size: 3rem; font-weight: 800; color: var(--pt-primary); line-height: 1; }
.pt-dn-note small { font-size: 1.2rem; color: var(--pt-muted); font-weight: 600; }
.pt-dn-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin: 1.2rem 0; }
.pt-dn-stat { background: var(--pt-surface-2); border: 1px solid var(--pt-border); border-radius: var(--pt-radius-sm); padding: .8rem; text-align: center; }
.pt-dn-stat b { display: block; font-size: 1.4rem; }
.pt-dn-stat small { color: var(--pt-muted); }
.pt-dn-podium { width: 100%; border-collapse: collapse; }
.pt-dn-podium td, .pt-dn-podium th { padding: .5rem .4rem; border-bottom: 1px solid var(--pt-border); text-align: left; }
.pt-dn-podium th { font-size: .82rem; color: var(--pt-muted); font-weight: 600; }
.pt-dn-podium tr.is-moi td { background: var(--pt-primary-soft); font-weight: 700; }
.pt-dn-podium td:first-child { width: 3rem; font-weight: 700; }
.pt-dn-lecons { display: grid; gap: .45rem; }
.pt-dn-lecon { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; align-items: center; }
.pt-dn-lecon .pt-pr-barre { grid-column: 1 / -1; }

/* Examens blancs */
.pt-eb-heures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; margin: 1rem 0; }
.pt-eb-heure { background: var(--pt-surface-2); border: 1px solid var(--pt-border); border-radius: var(--pt-radius-sm); padding: .7rem .8rem; }
.pt-eb-heure small { display: block; color: var(--pt-muted); font-size: .8rem; }
.pt-eb-heure b { font-size: 1.1rem; }
.pt-eb-numero { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.5rem; font-weight: 800; letter-spacing: .12em; background: var(--pt-warning-soft); border-radius: 8px; padding: .2rem .6rem; }
.pt-eb-qr { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; background: var(--pt-surface-2); border: 1px dashed var(--pt-border); border-radius: var(--pt-radius); padding: 1rem; margin: 1rem 0; }
.pt-eb-qr #qr { background: #fff; padding: 10px; border-radius: 10px; width: 200px; height: 200px; }
.pt-eb-qr #qr img, .pt-eb-qr #qr canvas { width: 180px !important; height: 180px !important; }
.pt-eb-qr ol { margin: .4rem 0; padding-left: 1.2rem; }
.pt-eb-lien { word-break: break-all; font-size: .85rem; color: var(--pt-muted); }
.pt-eb-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; margin: 1rem 0; }
.pt-eb-page { position: relative; border: 1px solid var(--pt-border); border-radius: 8px; overflow: hidden; background: var(--pt-surface-2); aspect-ratio: 3 / 4; }
.pt-eb-page img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-eb-page span { position: absolute; left: 4px; top: 4px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .78rem; border-radius: 6px; padding: 0 .4rem; }
.pt-eb-page button { position: absolute; right: 4px; top: 4px; border: 0; border-radius: 50%; width: 30px; height: 30px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 1.1rem; cursor: pointer; }
.pt-eb-page .pt-eb-gauche { right: auto; left: 4px; top: auto; bottom: 4px; }
.pt-eb-page .pt-eb-droite { top: auto; bottom: 4px; }
.pt-eb-photo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; border: 2px dashed var(--pt-primary); border-radius: var(--pt-radius); padding: 1.4rem; color: var(--pt-primary); font-weight: 700; cursor: pointer; background: var(--pt-primary-soft); text-align: center; }
.pt-eb-photo i { font-size: 2.4rem; }
.pt-eb-photo input { display: none; }
.pt-eb-bareme { width: 100%; border-collapse: collapse; }
.pt-eb-bareme td, .pt-eb-bareme th { padding: .45rem .4rem; border-bottom: 1px solid var(--pt-border); text-align: left; }
.pt-eb-bareme td:last-child, .pt-eb-bareme th:last-child { text-align: right; white-space: nowrap; }
.pt-eb-commentaire { background: var(--pt-surface-2); border-left: 4px solid var(--pt-primary); border-radius: 8px; padding: .8rem 1rem; white-space: pre-line; }

@media (max-width: 860px) {
    .pt-pr-grille { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .pt-pr h1 { font-size: 1.4rem; }
    .pt-pr-carte { padding: 1.1rem; }
    .pt-pr-charge { grid-template-columns: 1fr; text-align: center; }
    .pt-pr-creneau { grid-template-columns: 1fr 1fr; }
    .pt-pr-creneau select[name="duree[]"] { grid-column: 1; }
    .pt-pr-tache { flex-wrap: wrap; }
    .pt-pr-tache .pt-btn { width: 100%; justify-content: center; }
    .pt-eb-qr { grid-template-columns: 1fr; justify-items: center; text-align: left; }
}
.pt-pr .pt-tn-carte h2 { display: block; }
/* Bandeau « parcours révision » sur Teste ton niveau */
.pt-pr-bandeau { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; margin: 0 0 1.25rem; border-left: 5px solid var(--pt-primary); flex-wrap: wrap; }
.pt-pr-bandeau > i { font-size: 2rem; color: var(--pt-primary); background: var(--pt-primary-soft); border-radius: 50%; padding: .5rem; }
.pt-pr-bandeau > div { flex: 1; min-width: 220px; }
.pt-pr-bandeau p { margin: .2rem 0 0; color: var(--pt-muted); }
