/* Défaut sans priorité : la page fixe sa couleur sur :root, et ImportAssets recharge ce fichier après */
:where(:root) { --u-accent: #1d2b44; }

.vs-page, .vs-hero, .sa-page, .vs-drawer, .vs-drawer-tab, .vs-fiche-apprenant, .em-pane, .vs-ma-formation {
    --u-soft: color-mix(in srgb, var(--u-accent) 9%, white);
    --u-zebre: color-mix(in srgb, var(--u-accent) 6%, white);
    --u-survol: color-mix(in srgb, var(--u-accent) 13%, white);
    --u-line: color-mix(in srgb, var(--u-accent) 22%, white);
    --esp-xs: clamp(.2rem, .3vw, .35rem);
    --esp-s: clamp(.4rem, .55vw, .6rem);
    --esp-m: clamp(.6rem, .9vw, 1rem);
    --esp-l: clamp(1rem, 1.5vw, 1.6rem);
    --esp-xl: clamp(1.25rem, 2vw, 2rem);
    --txt-xs: clamp(.65rem, .65vw, .72rem);
    --txt-s: clamp(.72rem, .75vw, .8rem);
    --txt-m: clamp(.8rem, .85vw, .9rem);
    --txt-l: clamp(.95rem, 1.05vw, 1.1rem);
    --txt-xl: clamp(1.3rem, 1.8vw, 1.75rem);
    --ico-s: clamp(.8rem, .9vw, 1rem);
    --ico-m: clamp(1rem, 1.15vw, 1.25rem);
    --ico-l: clamp(1.4rem, 1.8vw, 1.9rem);
}
.vs-page { background: color-mix(in srgb, var(--u-accent) 4%, #f5f7fb); color: #1d2b44; margin: -1rem -1rem 0; padding: var(--esp-xl); min-height: 100%; }

.vs-hero { display: grid; grid-template-columns: minmax(0, 1fr) clamp(18rem, 30vw, 28rem); gap: var(--esp-m); align-items: center; padding: var(--esp-m) var(--esp-l); border-radius: 14px; background: var(--u-accent); color: var(--u-texte, #fff); margin-bottom: var(--esp-l); }
.vs-hero-left { display: flex; align-items: center; gap: var(--esp-s); }
.vs-hero-icon { display: grid; place-items: center; width: clamp(2.1rem, 2.8vw, 2.6rem); aspect-ratio: 1; border-radius: 12px; background: rgba(255,255,255,.14); color: var(--u-texte, #fff); font-size: var(--ico-m); }
.vs-kicker { font-size: var(--txt-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.vs-hero-title { font-size: var(--txt-l); font-weight: 750; margin: 0; color: var(--u-texte, #fff); }
.vs-hero .vs-card { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: #fff; margin: 0; padding: var(--esp-s) var(--esp-m); }
.vs-hero .vs-card-title { margin-bottom: var(--esp-xs); }
.vs-hero .vs-next-title { font-size: var(--txt-m); }
.vs-cours { display: flex; align-items: center; justify-content: space-between; gap: var(--esp-m); }
.vs-cours-infos { min-width: 0; }
.vs-cours-infos .vs-next-title, .vs-cours-infos .vs-muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-cours .vs-btn-action { flex-shrink: 0; }
.vs-hero .vs-card-title, .vs-hero .vs-next-title, .vs-hero .vs-muted { color: var(--u-texte, #fff); }
.vs-hero .vs-muted { opacity: .8; }
.vs-hero .vs-tag { background: #fff; color: var(--u-accent); }
.vs-hero-meta { display: inline-flex; align-items: center; gap: var(--esp-xs); margin-top: var(--esp-xs); padding: .2em .8em; border-radius: 999px; background: rgba(255,255,255,.14); font-size: var(--txt-s); }
.vs-hero-meta .material-symbols-outlined { font-size: var(--ico-s); }
.vs-hero-formation { margin-right: var(--esp-xs); }
.vs-hero-info { display: inline-grid; place-items: center; padding: 0; border: 0; background: none; color: inherit; line-height: 1; }
.vs-hero-info:hover, .vs-hero-info:focus-visible { opacity: .75; }
.vs-btn-action { text-decoration: none; display: inline-flex; align-items: center; gap: .4em; padding: .55em 1.2em; border: 0; border-radius: 999px; background: #fff; color: var(--u-accent); font-size: var(--txt-m); font-weight: 700; line-height: 1; box-shadow: 0 2px 8px rgba(20, 35, 70, .18); transition: transform .15s ease, box-shadow .15s ease; }
.vs-btn-action:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(20, 35, 70, .25); }
.vs-btn-action .material-symbols-outlined { font-size: var(--ico-m); }

.vs-main, .vs-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--esp-l); align-items: stretch; margin-bottom: var(--esp-l); }
.vs-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.vs-main > div { display: flex; flex-direction: column; gap: var(--esp-l); }
.vs-main > div > .vs-card, .vs-split > .vs-card { flex: 1; margin-bottom: 0; }
/* Les cartes de gauche gardent leur hauteur naturelle, la timeline seule à droite s'étire */
.vs-main > .vs-col-main > .vs-card { flex: 0 0 auto; }
@media (max-width: 56em) { .vs-main, .vs-split, .vs-hero { grid-template-columns: 1fr; } }

.vs-timeline { position: relative; padding-left: 1.6em; }
.vs-timeline::before { content: ''; position: absolute; top: .4em; bottom: .4em; left: .6em; width: 2px; background: var(--u-line); }
.vs-timeline-item { position: relative; padding: .5em .65em 1em .65em; margin-left: -.65em; border-radius: 10px; }
.vs-timeline-item:last-child { padding-bottom: .5em; }
.vs-timeline-item-event { background: rgba(180, 83, 9, .06); }
.vs-timeline-dot { position: absolute; left: -.65em; top: .8em; width: .8em; aspect-ratio: 1; border-radius: 50%; background: var(--u-accent); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--u-line); }
.vs-timeline-dot-event { background: #b45309; box-shadow: 0 0 0 1px #b45309; }
.vs-timeline-date { font-size: var(--txt-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--u-accent); }
.vs-timeline-item-event .vs-timeline-date { color: #b45309; }
.vs-timeline-head { display: flex; align-items: center; justify-content: space-between; gap: var(--esp-s); margin-bottom: .15em; }
.vs-timeline-type { display: inline-flex; align-items: center; gap: .2em; text-transform: none; letter-spacing: normal; font-weight: 650; background: var(--u-soft); color: var(--u-accent); }
.vs-timeline-type .material-symbols-outlined { font-size: var(--txt-s); }
.vs-timeline-type-event { background: rgba(180, 83, 9, .12); color: #b45309; }

.vs-card { background: #fff; border: 1px solid #e3e8f1; border-top: 3px solid var(--u-accent); border-radius: 14px; padding: var(--esp-l) var(--esp-l); margin-bottom: var(--esp-m); }
.vs-card-title { display: flex; align-items: center; gap: var(--esp-s); font-size: var(--txt-s); font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--u-accent); margin-bottom: var(--esp-m); }
.vs-card-title .material-symbols-outlined { font-size: var(--ico-m); }
.vs-next-title { font-size: var(--txt-l); font-weight: 700; color: #1d2b44; margin-bottom: var(--esp-xs); }
.vs-row { display: flex; justify-content: space-between; align-items: center; gap: var(--esp-s); padding: var(--esp-s) 0; border-bottom: 1px solid #eef1f6; font-size: var(--txt-m); }
.vs-row:last-child { border-bottom: 0; }
.vs-muted { color: #7b8699; font-size: var(--txt-s); }
.vs-tag { display: inline-block; font-size: var(--txt-xs); padding: .25em .8em; border-radius: 999px; background: var(--u-soft); color: var(--u-accent); font-weight: 650; text-decoration: none; white-space: nowrap; margin-right: var(--esp-xs); margin-bottom: var(--esp-xs); }
.vs-page .accordion-button:not(.collapsed) { background: var(--u-soft); color: #1d2b44; box-shadow: none; }
.vs-page .accordion-button:focus { box-shadow: none; }
.vs-fiche-ligne { display: grid; grid-template-columns: minmax(6rem, 16%) minmax(0, 1fr); gap: var(--esp-m); padding: var(--esp-s) 0; border-bottom: 1px solid #eef1f6; }
.vs-fiche-ligne:last-child { border-bottom: 0; }
.vs-fiche-label { font-size: var(--txt-xs); font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: #7b8699; padding-top: .25em; }
.vs-fiche-texte { font-size: var(--txt-m); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vs-fiche-texte.is-ouvert { display: block; overflow: visible; }
.vs-fiche-suite { border: 0; background: none; padding: 0; margin-top: var(--esp-xs); color: var(--u-accent); font-size: var(--txt-s); font-weight: 650; }
.vs-fiche-table { font-size: var(--txt-s); }
.vs-tag .material-symbols-outlined { font-size: 1em; vertical-align: middle; }
@media (max-width: 36em) { .vs-fiche-ligne { grid-template-columns: 1fr; gap: var(--esp-xs); } }
.vs-page .btn-outline-primary { color: var(--u-accent); border-color: var(--u-accent); }
.vs-page .btn-outline-primary:hover { background: var(--u-accent); border-color: var(--u-accent); color: #fff; }
.vs-page .btn-primary { background: var(--u-accent); border-color: var(--u-accent); }

.vs-blocs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: var(--esp-m); }
.vs-bloc { background: var(--u-soft); border: 1px solid var(--u-line); border-radius: 12px; padding: var(--esp-m) var(--esp-m); }
.vs-bloc-wide { grid-column: 1 / -1; }
.vs-bloc-duo { display: flex; flex-direction: column; padding: 0; }
.vs-bloc-moitie { flex: 1; padding: 6% 8%; }
.vs-bloc-moitie + .vs-bloc-moitie { border-top: 1px solid var(--u-line); }
.vs-big { font-size: var(--txt-xl); font-weight: 750; color: #1d2b44; }
.vs-semestre { display: grid; grid-template-columns: minmax(5rem, 25%) 1fr 3em; align-items: center; gap: var(--esp-s); margin-bottom: var(--esp-s); font-size: var(--txt-m); }
.vs-semestre-bar { height: .5em; border-radius: 4px; background: #fff; overflow: hidden; }
.vs-semestre-bar > span { display: block; height: 100%; background: var(--u-accent); }

.vs-trombi { display: flex; flex-wrap: wrap; gap: var(--esp-m); }
.vs-eleve { position: relative; display: flex; flex-direction: column; align-items: center; width: clamp(4.5rem, 6vw, 5.5rem); text-align: center; font-size: var(--txt-s); }
.vs-eleve-avatar { background: none; border: 0; padding: 0; cursor: pointer; line-height: 0; }
.vs-eleve-avatar img, .vs-eleve-avatar .vs-initiales { width: clamp(2.75rem, 4vw, 3.5rem); aspect-ratio: 1; height: auto; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--u-accent); color: #fff; font-weight: 700; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--u-line); }
.vs-eleve-avatar:hover img, .vs-eleve-avatar:hover .vs-initiales { box-shadow: 0 0 0 2px var(--u-accent); }
.vs-eleve-avatar-big { display: flex; justify-content: center; }
.vs-eleve-avatar-big img, .vs-eleve-avatar-big .vs-initiales { width: clamp(7rem, 11vw, 10rem); aspect-ratio: 1; height: auto; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--u-accent); color: #fff; font-weight: 700; font-size: clamp(2rem, 3vw, 2.9rem); }
.vs-eleve-nom { display: block; margin-top: var(--esp-xs); color: #1d2b44; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
a.vs-eleve-nom:hover { text-decoration: underline; color: var(--u-accent); }
/* Encart ancré sous l'avatar (pas une modale) : pas de fond plein écran, donc rien qui
   puisse déborder en haut ou en bas de la page. */
.vs-eleve-popover { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: var(--esp-m); z-index: 20; width: min(18rem, 80vw); background: #fff; border: 1px solid #e3e8f1; border-radius: 16px; box-shadow: 0 10px 30px rgba(20, 35, 70, .2); padding: var(--esp-l); text-align: center; }
.vs-eleve-popover::before { content: ''; position: absolute; top: -.4em; left: 50%; width: .8em; aspect-ratio: 1; background: #fff; border-left: 1px solid #e3e8f1; border-top: 1px solid #e3e8f1; transform: translateX(-50%) rotate(45deg); }
.vs-eleve-popover.is-open { display: block; }

.vs-drawer { position: fixed; top: 0; right: 0; height: 100dvh; width: min(24rem, 90vw); background: #fff; box-shadow: -10px 0 30px rgba(20, 35, 70, .18); transform: translateX(100%); transition: transform .3s ease; z-index: 1050; display: flex; flex-direction: column; }
.vs-drawer.is-open { transform: translateX(0); }
.vs-drawer-head { background: var(--u-accent); color: #fff; padding: var(--esp-l) var(--esp-l); display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.vs-drawer-body { padding: var(--esp-m) var(--esp-l); overflow-y: auto; }
.vs-drawer-close { background: none; border: 0; color: #fff; }
.vs-drawer-tab { position: fixed; top: 50%; right: 0; transform: translateY(-50%); z-index: 1040; width: clamp(2.5rem, 3vw, 3rem); height: clamp(3.5rem, 8vh, 4rem); padding: 0; display: flex; align-items: center; justify-content: center; background: var(--u-accent); color: #fff; border: 0; border-radius: 14px 0 0 14px; box-shadow: -4px 0 14px rgba(20, 35, 70, .25); transition: right .3s ease; }
.vs-drawer-tab .material-symbols-outlined { color: #fff; font-size: var(--ico-l); writing-mode: horizontal-tb; }
.vs-drawer.is-open ~ .vs-drawer-tab { right: min(24rem, 90vw); }

.vs-blocage { max-width: min(36rem, 100%); margin: var(--esp-l) auto; text-align: center; display: grid; justify-items: center; gap: var(--esp-s); }
.vs-blocage-icone { font-size: clamp(2.2rem, 3vw, 2.8rem); color: var(--u-accent); }

.vs-doc { max-width: min(52rem, 100%); margin: 0 auto; }
.vs-doc-texte { line-height: 1.65; font-size: var(--txt-m); max-width: 70ch; }
.vs-doc-texte img { max-width: 100%; height: auto; }
.vs-doc-signature { position: sticky; bottom: 0; margin: var(--esp-l) calc(-1 * var(--esp-l)) calc(-1 * var(--esp-l)); padding: var(--esp-m) var(--esp-l); background: var(--u-soft); border-top: 1px solid var(--u-line); border-radius: 0 0 14px 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--esp-m); }
.vs-doc-signature label { display: flex; align-items: center; gap: .5em; margin: 0; font-weight: 650; }
.vs-doc-retour { display: inline-flex; align-items: center; gap: .3em; color: #fff; text-decoration: none; font-size: var(--txt-s); opacity: .9; }
.vs-doc-retour:hover { color: #fff; opacity: 1; text-decoration: underline; }

/* Les messages flash de base.html.twig précèdent .vs-page dans la même carte : sans ça, la marge négative de .vs-page les recouvre */
.card-body:has(> .vs-page) > .alert { display: flex; align-items: center; gap: .5em; margin: -1rem -1rem 0; padding: var(--esp-s, .6rem) 2.5rem var(--esp-s, .6rem) clamp(1.25rem, 2vw, 2rem); border: 0; border-left: 4px solid currentColor; border-radius: 0; font-weight: 650; }
.card-body:has(> .vs-page) > .alert + .alert { margin-top: 0; }
.card-body > .alert ~ .vs-page { margin-top: 0; }

.vs-drawer-section + .vs-drawer-section { margin-top: var(--esp-l); }
.vs-drawer-section-titre { display: flex; align-items: center; gap: .4em; padding-bottom: var(--esp-xs); margin-bottom: var(--esp-s); border-bottom: 2px solid var(--u-line); font-weight: 750; color: var(--u-accent); }
.vs-progression { background: var(--u-soft); border-radius: 10px; padding: var(--esp-s) var(--esp-m); margin-bottom: var(--esp-s); }
.vs-progression-tete { display: flex; justify-content: space-between; gap: var(--esp-s); font-size: var(--txt-s); margin-bottom: .35em; }
.vs-tag-ok { background: #e3f3ea; color: #1f7a4a; }
.vs-tag-attention { background: #f8ecdc; color: #a85a06; }
.vs-tag-alerte { background: #f8e2e0; color: #c0352b; }

.vs-apprenant { padding: var(--esp-m) 0; border-bottom: 1px solid #eef1f6; }
.vs-apprenant:last-child { border-bottom: 0; padding-bottom: 0; }
.vs-apprenant:first-of-type { padding-top: 0; }
.vs-apprenant-tete { display: flex; flex-wrap: wrap; align-items: center; gap: var(--esp-s) var(--esp-m); margin-bottom: var(--esp-m); }
.vs-apprenant-tete .vs-eleve-avatar { cursor: default; }
.vs-apprenant-identite { flex: 1 1 12rem; min-width: 0; }
.vs-apprenant-corps { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--esp-l); align-items: start; }
.vs-graphique { position: relative; height: 15rem; min-width: 0; }
.vs-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--esp-s); margin-bottom: var(--esp-m); }
.vs-kpi { border-radius: 10px; padding: var(--esp-s) var(--esp-m); background: #f4f6fb; min-width: 0; }
.vs-kpi b { display: block; font-size: var(--txt-xl); line-height: 1.1; }
.vs-kpi span { font-size: var(--txt-xs); color: #7b8699; }
.vs-kpi-absences b { color: #c4543f; }
.vs-kpi-vigilances b { color: #b7791f; }
.vs-kpi-sanctions b { color: #6b46c1; }
.vs-vide { display: grid; justify-items: center; gap: var(--esp-xs); text-align: center; padding: var(--esp-l) 0; }
.vs-vide .material-symbols-outlined { font-size: var(--ico-l); color: var(--u-accent); }
@media (max-width: 40em) { .vs-apprenant-corps, .vs-kpis { grid-template-columns: 1fr; } }

.vs-fiche-apprenant.modal-header, .vs-fiche-apprenant.modal-body { padding: var(--esp-l) clamp(1rem, 2vw, 1.75rem); }
.vs-fiche-tete { display: flex; align-items: center; gap: var(--esp-m); flex-wrap: wrap; }
.vs-fiche-tete .modal-title { font-size: var(--txt-l); font-weight: 800; color: #1d2b44; margin-bottom: .2em; }
.vs-fiche-tete .vs-eleve-avatar img, .vs-fiche-tete .vs-eleve-avatar .vs-initiales { width: 3.5rem; }
.vs-fiche-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: var(--esp-l); }
.vs-fiche-kpis .vs-kpi { padding: var(--esp-m); }
.vs-fiche-kpis .vs-kpi b { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.vs-kpi-retards b { color: #3f6ad8; }
.vs-kpis-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vs-fiche-onglets { gap: .4em; margin-bottom: var(--esp-m); }
.vs-fiche-onglets .nav-link { border: 0; border-radius: 999px; padding: .4em 1em; color: #5b6577; background: #f4f6fb; font-weight: 650; }
.vs-fiche-onglets .nav-link.active { background: var(--u-accent); color: #fff; }
.vs-fiche-colonnes { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--esp-l); align-items: start; }
.vs-periode { display: grid; grid-template-columns: minmax(5rem, 30%) minmax(0, 1fr) 3rem; align-items: center; gap: var(--esp-m); padding: var(--esp-s) 0; border-bottom: 1px solid #eef1f6; }
.vs-periode-barre { position: relative; height: .55rem; border-radius: 999px; background: #eef1f6; }
.vs-periode-barre > span { display: block; height: 100%; border-radius: 999px; background: var(--u-accent); }
.vs-periode-barre > i { position: absolute; top: -.25rem; width: 2px; height: 1.05rem; background: #e8826f; }
.vs-repere-legende { color: #e8826f; }
.vs-row-lien { color: inherit; text-decoration: none; }
.vs-row-lien:hover { color: var(--u-accent); }
@media (max-width: 48em) { .vs-fiche-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vs-fiche-colonnes { grid-template-columns: 1fr; } }
.vs-liens-suite { display: flex; flex-wrap: wrap; gap: .3em var(--esp-m); margin-top: var(--esp-s); }
.vs-lien-suite { display: inline-block; margin-top: var(--esp-s); font-size: var(--txt-s); font-weight: 650; color: var(--u-accent); }

.vs-hero-simple { grid-template-columns: minmax(0, 1fr) auto; }
.vs-btn-clair { background: #fff; color: var(--u-accent); }
.vs-btn-clair:hover { color: var(--u-accent); }
.vs-groupe-titre { margin: var(--esp-m) 0 var(--esp-s); font-size: var(--txt-xs); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: #7b8699; }
.vs-card-title + .vs-groupe-titre { margin-top: 0; }
.vs-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: var(--esp-s); }
.vs-module { display: flex; gap: var(--esp-s); align-items: flex-start; padding: var(--esp-m); border: 1px solid #e3e8f1; border-radius: 12px; text-decoration: none; color: #1d2b44; background: #fff; transition: border-color .15s, box-shadow .15s; }
.vs-module:hover { border-color: var(--u-accent); box-shadow: 0 4px 14px color-mix(in srgb, var(--u-accent) 15%, transparent); color: #1d2b44; }
.vs-module-icone { flex-shrink: 0; display: grid; place-items: center; width: 2.4rem; aspect-ratio: 1; border-radius: 10px; background: var(--u-soft); color: var(--u-accent); }
.vs-module b { display: block; font-size: var(--txt-m); }
.vs-module .vs-muted { display: block; line-height: 1.35; }
.vs-raccourci { display: flex; align-items: center; gap: .6em; padding: .55em .6em; border-radius: 8px; color: #1d2b44; text-decoration: none; font-size: var(--txt-m); }
.vs-raccourci:hover { background: var(--u-soft); color: var(--u-accent); }
.vs-raccourci .material-symbols-outlined { color: var(--u-accent); }
.vs-raccourci .vs-muted { margin-left: auto; }
.vs-liste-tete { display: flex; align-items: center; gap: var(--esp-s); flex-wrap: wrap; margin-bottom: var(--esp-s); }
.vs-liste-tete .vs-card-title { margin-bottom: 0; }
.vs-filtres { display: flex; gap: .3em; flex-wrap: wrap; margin-left: auto; }
.vs-filtre { border: 1px solid #e3e8f1; background: #fff; border-radius: 999px; padding: .15em .7em; font-size: var(--txt-xs); color: #5b6577; }
.vs-filtre.actif { background: var(--u-accent); border-color: var(--u-accent); color: #fff; }
@media (max-width: 56em) { .vs-hero-simple { grid-template-columns: 1fr; justify-items: start; } }

.am-etapes { list-style: none; margin: 0 0 var(--esp-l); padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.am-etapes li { position: relative; text-align: center; }
.am-etapes li::before { content: ""; position: absolute; z-index: 0; top: 1.1rem; left: -50%; width: 100%; height: 3px; background: #e3e8f1; }
.am-etapes li:first-child::before { display: none; }
.am-etapes li.fait::before, .am-etapes li.courant::before { background: var(--u-accent); }
.am-etapes button { position: relative; z-index: 1; border: 0; background: none; padding: 0; display: grid; justify-items: center; gap: .35em; width: 100%; color: #7b8699; font-size: var(--txt-s); }
.am-etapes button:disabled { cursor: default; }
.am-rond { position: relative; z-index: 1; width: 2.2rem; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid #e3e8f1; font-weight: 800; }
.am-etapes .fait .am-rond { border-color: var(--u-accent); color: var(--u-accent); }
.am-etapes .courant .am-rond { background: var(--u-accent); border-color: var(--u-accent); color: #fff; }
.am-etapes .courant button { color: #1d2b44; font-weight: 700; }
.am-tete { margin-bottom: var(--esp-m); }
.am-tete h2 { margin: 0; font-size: var(--txt-l); font-weight: 750; color: #1d2b44; }
.am-tete p { margin: .2em 0 0; color: #7b8699; max-width: 70ch; }
.am-choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--esp-s); margin-bottom: var(--esp-m); }
.am-choix label { display: flex; gap: .6em; align-items: flex-start; border: 1px solid #e3e8f1; border-radius: 10px; padding: var(--esp-s) var(--esp-m); cursor: pointer; }
.am-choix label:has(input:checked) { border-color: var(--u-accent); background: var(--u-soft); }
.am-choix span { display: grid; }
.am-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--esp-m); margin-bottom: var(--esp-m); }
.am-champ { display: grid; gap: .3em; align-content: start; min-width: 0; }
.am-champ > label, .am-libelle { font-weight: 700; font-size: var(--txt-s); color: #1d2b44; }
.am-libelle { display: block; margin: var(--esp-s) 0 var(--esp-xs); }
.am-mono { font-family: ui-monospace, Menlo, monospace; font-size: var(--txt-s); }
.am-case { display: flex; gap: .5em; align-items: center; flex-wrap: wrap; margin: .25em 0; font-weight: 400; }
.am-tableau { overflow-x: auto; border: 1px solid #e3e8f1; border-radius: 10px; }
.am-tableau th { font-size: var(--txt-xs); text-transform: uppercase; letter-spacing: .04em; color: #7b8699; white-space: nowrap; vertical-align: bottom; }
.am-tableau td { vertical-align: middle; }
.am-existe td { background: #fafbfc; }
.am-matrice { min-width: 44rem; }
.am-matrice th, .am-matrice td { text-align: center; }
.am-matrice th:first-child, .am-matrice td:first-child { text-align: left; position: sticky; left: 0; background: #fff; }
.am-matrice th { white-space: normal; min-width: 5.5rem; }
.am-matrice th .vs-muted { display: block; text-transform: none; letter-spacing: 0; }
.am-alerte { display: flex; gap: .6em; align-items: flex-start; margin-top: var(--esp-m); padding: var(--esp-s) var(--esp-m); border-radius: 10px; background: #fdf3e1; color: #87590a; font-size: var(--txt-s); }
.am-erreurs { margin-top: var(--esp-m); padding: var(--esp-s) var(--esp-m); border-radius: 10px; background: #fbe3ea; color: #a01c3e; font-size: var(--txt-s); }
.am-erreurs ul { margin: .2em 0 0; padding-left: 1.2em; }
.am-pied { display: flex; justify-content: space-between; gap: var(--esp-s); margin-top: var(--esp-l); padding-top: var(--esp-m); border-top: 1px solid #eef1f6; }
.am-suivant { background: var(--u-accent); border-color: var(--u-accent); }
@media (max-width: 40em) { .am-etapes button { font-size: var(--txt-xs); } }

.dr-boutons { display: flex; flex-wrap: wrap; gap: var(--esp-s); }
.dr-zone { position: relative; }
.dr-barre { display: flex; flex-wrap: wrap; align-items: center; gap: var(--esp-m); margin-bottom: var(--esp-m); }
.dr-fil { display: flex; flex-wrap: wrap; align-items: center; gap: .2em; font-size: var(--txt-m); }
.dr-fil a { color: var(--u-accent); text-decoration: none; font-weight: 650; }
.dr-fil a:hover { text-decoration: underline; }
.dr-fil .material-symbols-outlined { color: #9aa3b2; font-size: 1.1em; }
.dr-recherche { position: relative; margin: 0 0 0 auto; flex: 0 1 20rem; min-width: min(100%, 14rem); }
.dr-recherche .material-symbols-outlined { position: absolute; left: .6em; top: 50%; transform: translateY(-50%); color: #9aa3b2; }
.dr-recherche input { padding-left: 2.2em; }
.dr-dossiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: var(--esp-s); }
.dr-dossier { position: relative; display: flex; align-items: center; gap: .6em; padding: .6em .7em; border: 1px solid #e3e8f1; border-radius: 10px; cursor: pointer; background: #fff; }
.dr-dossier:hover, .dr-dossier:focus-visible { border-color: var(--u-accent); background: var(--u-soft); }
.dr-ico-dossier { color: #e0a030; font-size: 1.6em; }
.dr-nom { display: grid; min-width: 0; font-weight: 650; color: #1d2b44; overflow-wrap: anywhere; }
.dr-nom small { font-weight: 400; }
.dr-menu-btn { margin-left: auto; display: grid; place-items: center; flex-shrink: 0; width: 2rem; aspect-ratio: 1; border: 1px solid #d7deea; border-radius: 8px; background: #fff; color: #44516a; }
.dr-menu-btn:hover, .dr-menu-btn:focus-visible { border-color: var(--u-accent); color: var(--u-accent); }
.dr-menu { position: absolute; right: .4em; top: 100%; z-index: 5; min-width: 11rem; background: #fff; border: 1px solid #e3e8f1; border-radius: 10px; box-shadow: 0 10px 30px rgba(20, 35, 70, .15); padding: .3em 0; }
.dr-menu a, .dr-menu button { display: flex; align-items: center; gap: .5em; width: 100%; padding: .45em .9em; border: 0; background: none; color: #1d2b44; text-decoration: none; font-size: var(--txt-s); text-align: left; }
.dr-menu a:hover, .dr-menu button:hover { background: var(--u-soft); }
.dr-menu .dr-danger { color: #c0352b; }
.dr-fichiers { display: grid; }
.dr-ligne { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 11rem 7rem 11rem; align-items: center; gap: var(--esp-m); padding: .55em .4em; border-bottom: 1px solid #eef1f6; font-size: var(--txt-m); }
.dr-ligne:not(.dr-entete):hover { background: #f8f9fc; }
.dr-entete { font-size: var(--txt-xs); text-transform: uppercase; letter-spacing: .06em; color: #7b8699; font-weight: 700; }
.dr-fichier { display: flex; align-items: center; gap: .6em; min-width: 0; font-weight: 600; color: #1d2b44; }
.dr-fichier-nom { display: grid; min-width: 0; overflow-wrap: anywhere; }
.dr-fichier-nom small { font-weight: 400; }
.dr-type { flex-shrink: 0; display: grid; place-items: center; width: 2.3rem; height: 1.6rem; border-radius: 6px; font-size: .62rem; font-weight: 800; color: #fff; background: #7b8699; }
.dr-pdf { background: #d0453b; } .dr-doc { background: #2b5fb4; } .dr-xls { background: #1f7a4a; } .dr-img { background: #7a4fb5; } .dr-ppt { background: #c4612b; }
.dr-actions { position: relative; display: flex; justify-content: flex-end; align-items: center; gap: .4em; }
.dr-act { border: 0; background: none; color: #7b8699; border-radius: 6px; padding: .1em; line-height: 1; }
.dr-act:hover { color: var(--u-accent); background: var(--u-soft); }
.dr-depot-aide { display: flex; flex-wrap: wrap; align-items: center; gap: .6em; margin-top: var(--esp-m); padding: var(--esp-m); border: 2px dashed color-mix(in srgb, var(--u-accent) 30%, white); border-radius: 12px; background: color-mix(in srgb, var(--u-accent) 3%, white); color: #44516a; font-size: var(--txt-s); }
.dr-depot-aide > .material-symbols-outlined { color: var(--u-accent); font-size: 1.8em; }
.dr-depot-texte { display: grid; flex: 1 1 16rem; min-width: 0; }
.dr-depot-aide .dr-btn { margin-left: auto; }
.dr-outils { display: flex; flex-wrap: wrap; gap: var(--esp-s); padding-bottom: var(--esp-m); margin-bottom: var(--esp-xs); border-bottom: 1px solid #eef1f6; }
.dr-btn { display: inline-flex; align-items: center; gap: .35em; border: 1px solid color-mix(in srgb, var(--u-accent) 35%, white); border-radius: 8px; background: #fff; color: var(--u-accent); padding: .42rem .85rem; font-size: var(--txt-s); font-weight: 650; text-decoration: none; line-height: 1.2; }
.dr-btn:hover, .dr-btn:focus-visible { background: var(--u-soft); border-color: var(--u-accent); color: var(--u-accent); }
.dr-btn-plein { background: var(--u-accent); border-color: var(--u-accent); color: #fff; }
.dr-btn-plein:hover, .dr-btn-plein:focus-visible { background: color-mix(in srgb, var(--u-accent) 85%, black); color: #fff; }
.dr-btn-petit { padding: .28rem .6rem; font-size: var(--txt-xs); }
.dr-vide-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--esp-s); margin-top: var(--esp-s); }
.dr-depot-voile { display: none; position: absolute; inset: 0; z-index: 6; place-items: center; align-content: center; gap: .4em; border: 3px dashed var(--u-accent); border-radius: 14px; background: color-mix(in srgb, var(--u-accent) 10%, rgba(255, 255, 255, .92)); color: var(--u-accent); font-size: var(--txt-l); pointer-events: none; }
.dr-depot-voile .material-symbols-outlined { font-size: 2.6em; }
.dr-zone.dr-depot-actif.dz-drag-hover .dr-depot-voile { display: grid; }
@media (max-width: 48em) { .dr-btn-texte { display: none; } .dr-ligne { grid-template-columns: minmax(0, 1fr) auto; } .dr-ligne > span:nth-child(2), .dr-ligne > span:nth-child(3) { display: none; } }


/* Mon drive · modale « Partager » */
.pa-modale { border: 0; border-radius: 14px; overflow: visible; box-shadow: 0 20px 50px rgba(16, 25, 43, .3); color: #1d2b44; }
.pa-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid #eef1f6; }
.pa-chemin { color: #7b8699; }
.pa-tete h2 { margin: .15rem 0 0; font-size: 1.15rem; font-weight: 800; display: flex; align-items: center; gap: .4rem; overflow-wrap: anywhere; }
.pa-tete h2 .material-symbols-outlined { color: var(--u-accent); }
.pa-fermer { border: 0; background: none; color: #7b8699; padding: .2rem; border-radius: 6px; }
.pa-fermer:hover { background: #eef1f6; }
.pa-corps { padding: 1.1rem 1.4rem; display: grid; gap: .6rem; }
.pa-ajout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 15rem) auto; gap: .5rem; }
.pa-champ { position: relative; margin: 0; }
.pa-champ .material-symbols-outlined { position: absolute; left: .6em; top: 50%; transform: translateY(-50%); color: var(--u-accent); pointer-events: none; }
.pa-champ .form-control { padding-left: 2.3em; }
.pa-champ .form-control:focus { border-color: var(--u-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--u-accent) 15%, transparent); }
.pa-btn { border: 0; border-radius: 8px; background: var(--u-accent); color: #fff; font-weight: 700; padding: .45rem 1rem; }
.pa-btn:disabled { opacity: .6; }
.pa-suggestions { position: absolute; left: 0; top: calc(100% + .3rem); width: min(100%, 26rem); max-height: 18rem; overflow-y: auto; z-index: 5; background: #fff; border: 1px solid #e3e8f1; border-radius: 10px; box-shadow: 0 12px 30px rgba(20, 35, 70, .15); padding: .3rem 0; }
.pa-sugg-titre { padding: .35rem .9rem .15rem; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7b8699; }
.pa-sugg { display: flex; align-items: center; gap: .5rem; padding: .4rem .9rem; font-size: .85rem; cursor: pointer; }
.pa-sugg small { margin-left: auto; text-align: right; overflow-wrap: anywhere; }
.pa-sugg.actif, .pa-sugg:hover { background: var(--u-soft); }
.pa-sugg .material-symbols-outlined { color: var(--u-accent); }
.pa-section { margin-top: .4rem; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7b8699; }
#pa-modale .pa-ligne { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) minmax(12rem, 15rem) 1.9rem; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid #eef1f6; font-size: .9rem; }
#pa-modale .pa-ligne:last-of-type { border-bottom: 1px solid #eef1f6; }
.pa-ico { display: grid; place-items: center; width: 2.2rem; aspect-ratio: 1; border-radius: 50%; color: #fff; }
.pa-ico .material-symbols-outlined { font-size: 1.15rem; }
.pa-promo { background: #2b5fb4; }
.pa-groupe { background: #7a4fb5; }
.pa-personne { background: #1f7a4a; }
.pa-createur { background: #e0a030; }
.pa-qui-nom { display: grid; min-width: 0; font-weight: 650; overflow-wrap: anywhere; }
.pa-qui-nom small { font-weight: 400; }
.pa-fixe { grid-column: 3 / 5; color: #7b8699; font-size: .85rem; padding-left: .75rem; }
.pa-niveau { font-size: .85rem; }
.pa-vide { margin: .3rem 0; font-size: .85rem; }
.pa-retirer { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; padding: 0; border: 0; border-radius: 6px; background: none; color: #9aa3b2; }
.pa-retirer .material-symbols-outlined { font-size: 1.1rem; }
.pa-retirer:hover { color: #c0352b; background: #fbe3ea; }
.pa-aide { font-size: .82rem; color: #5b6577; margin-top: .4rem; }
.pa-aide summary { cursor: pointer; color: var(--u-accent); font-weight: 650; }
.pa-aide ul { margin: .4rem 0 0; padding-left: 1.1rem; display: grid; gap: .25rem; }
.pa-pied { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; padding: .9rem 1.4rem; border-top: 1px solid #eef1f6; background: #f8f9fc; border-radius: 0 0 14px 14px; }
.pa-case { display: flex; gap: .45rem; align-items: center; font-size: .85rem; margin: 0 auto 0 0; }
.pa-case[hidden] { display: none; }
@media (max-width: 36em) {
    .pa-ajout { grid-template-columns: 1fr; }
    #pa-modale .pa-ligne { grid-template-columns: 2.2rem minmax(0, 1fr) 1.9rem; }
    #pa-modale .pa-ligne .pa-niveau, #pa-modale .pa-ligne .select2-container { grid-column: 2 / 4; }
    .pa-fixe { grid-column: 2 / 4; padding-left: 0; }
}
#pa-modale .modal-dialog { max-width: min(40rem, calc(100% - 1rem)); }

/* Pages de formulaire : colonne centrée, bandeau compris */
.vs-page-etroite > .vs-hero, .vs-page-etroite > .vs-card, .vs-page-etroite > form > .vs-card { max-width: 50rem; margin-inline: auto; }

/* Rendus et dépôts */
.rd-mon[hidden], [data-type-champ][hidden] { display: none; }
.rd-retour { display: inline-flex; align-items: center; gap: .3em; margin-bottom: var(--esp-xs); color: #fff; opacity: .85; font-size: var(--txt-s); text-decoration: none; }
.rd-retour:hover { color: #fff; opacity: 1; }
.rd-barre { display: flex; flex-wrap: wrap; align-items: center; gap: var(--esp-s); margin-bottom: var(--esp-m); }
.rd-filtres { display: flex; flex-wrap: wrap; gap: .3rem; padding: .2rem; border-radius: 10px; background: #eef1f6; }
.rd-filtres :is(button, a) { border: 0; border-radius: 8px; background: none; padding: .35rem .8rem; color: #0c1017; font-size: var(--txt-s); font-weight: 650; }
.rd-filtres a, .rd-filtres a:hover { text-decoration: none; }
.rd-filtres a:hover { color: rgba(31, 32, 31, 0.64); }
.rd-filtres :is(button, a).actif { background: #fff; color: var(--u-accent); box-shadow: 0 1px 3px rgba(20, 35, 70, .12); }
.rd-recherche { position: relative; margin: 0 0 0 auto; flex: 0 1 20rem; min-width: min(100%, 14rem); }
.rd-recherche .material-symbols-outlined { position: absolute; left: .6em; top: 50%; transform: translateY(-50%); color: #9aa3b2; }
.rd-recherche input { padding-left: 2.2em; }
.rd-mon h3 { margin: 0 0 .25rem; font-size: var(--txt-m); font-weight: 750; color: #1d2b44; overflow-wrap: anywhere; }
.rd-mon p { margin: 0; color: #5b6577; font-size: var(--txt-s); overflow-wrap: anywhere; }
.rd-promo { display: inline-flex; align-items: center; gap: .25em; padding: .15rem .5rem; border-radius: 999px; background: #e8effb; color: #2b5fb4; font-size: var(--txt-xs); font-weight: 700; }
.rd-promo .material-symbols-outlined { font-size: 1.1em; }
.rd-echeance { display: inline-flex; align-items: center; gap: .3em; padding: .2rem .55rem; border-radius: 999px; font-size: var(--txt-xs); font-weight: 700; white-space: nowrap; }
.rd-echeance .material-symbols-outlined { font-size: 1.15em; }
.rd-e-ok { background: #e6f4ec; color: #1f7a4a; }
.rd-e-proche { background: #fff1d6; color: #9a6200; }
.rd-e-passe { background: #eef1f6; color: #5b6577; }
.rd-e-retard { background: #fbe3ea; color: #c0352b; }
.rd-petit { font-size: var(--txt-xs); }
.rd-mes { display: grid; gap: var(--esp-s); }
.rd-mon { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .6rem 1rem; padding: 1rem; border: 1px solid #e3e8f1; border-left: 4px solid var(--u-accent); border-radius: 12px; background: #fff; }
.rd-mon-rendu { border-left-color: #1f7a4a; }
.rd-mon-ferme { border-left-color: #c3cad8; }
.rd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .5rem; font-size: var(--txt-xs); }
.rd-mes-depots { grid-column: 1 / -1; display: grid; gap: .4rem; padding-top: .6rem; border-top: 1px dashed #e3e8f1; }
.rd-retour-prof { display: flex; gap: .5rem; padding: .6rem .8rem; border-radius: 10px; background: #f3f6fd; color: #1d2b44; font-size: var(--txt-s); overflow-wrap: anywhere; }
.rd-retour-prof .material-symbols-outlined { color: var(--u-accent); }
.rd-liens { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1rem; }
.rd-lien { justify-self: start; color: var(--u-accent); font-size: var(--txt-s); font-weight: 650; }
.rd-ferme { opacity: .55; pointer-events: none; }
.rd-fichiers { display: grid; gap: .3rem; min-width: 0; }
.rd-fichier { display: flex; align-items: center; gap: .45rem; min-width: 0; font-size: var(--txt-s); }
.rd-fichier a { color: var(--u-accent); font-weight: 600; overflow-wrap: anywhere; }
.rd-consignes { margin: 0 0 var(--esp-m); padding: .7rem .9rem; border-radius: 10px; background: #f8f9fc; color: #44516a; white-space: pre-line; overflow-wrap: anywhere; }
.rd-infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: var(--esp-s); margin-bottom: var(--esp-s); }
.rd-info { display: grid; justify-items: start; gap: .2rem; padding: .7rem .9rem; border-radius: 10px; background: #f8f9fc; }
.rd-info b { font-size: var(--txt-l); color: #1d2b44; }
.rd-info small { color: #7b8699; font-size: var(--txt-xs); }
.rd-eleve { display: flex; align-items: center; gap: .6rem; min-width: 0; font-weight: 650; color: #1d2b44; overflow-wrap: anywhere; }
.rd-avatar { display: grid; place-items: center; flex-shrink: 0; width: 2rem; aspect-ratio: 1; border-radius: 50%; background: var(--u-soft); color: var(--u-accent); font-size: var(--txt-xs); font-weight: 800; }
.rd-obs { color: #5b6577; font-size: var(--txt-s); overflow-wrap: anywhere; }
.rd-obs a { color: var(--u-accent); font-weight: 650; }
.rd-sans { color: #9aa3b2; font-style: italic; }
.rd-aide { margin: 0 0 var(--esp-m); color: #7b8699; font-size: var(--txt-s); }
.rd-form .form-label, .rd-form label.required { font-weight: 650; }
.rd-deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--esp-m); }
.rd-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .5rem; margin-top: var(--esp-m); padding-top: var(--esp-m); border-top: 1px solid #eef1f6; }
.rd-actions form { margin: 0 auto 0 0; }
.rd-zone-danger { margin-top: var(--esp-m); }
.rd-danger { color: #c0352b; border-color: #f1c4cc; }
.rd-danger:hover, .rd-danger:focus-visible { color: #c0352b; background: #fbe3ea; border-color: #c0352b; }
.rd-rappel { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: var(--esp-m); padding: .6rem .8rem; border-radius: 10px; background: #fff8e8; color: #7a4d00; font-size: var(--txt-s); }
.rd-choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-bottom: var(--esp-m); }
.rd-choix label { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .7rem .8rem; border: 1px solid #d7deea; border-radius: 10px; font-weight: 650; cursor: pointer; }
.rd-choix input { accent-color: var(--u-accent); }
.rd-choix label:has(input:checked) { border-color: var(--u-accent); background: var(--u-soft); color: var(--u-accent); }
.rd-depot { position: relative; display: grid; justify-items: center; gap: .3rem; margin-bottom: var(--esp-m); padding: 1.4rem 1rem; border: 2px dashed color-mix(in srgb, var(--u-accent) 30%, white); border-radius: 12px; background: color-mix(in srgb, var(--u-accent) 3%, white); color: #44516a; text-align: center; cursor: pointer; }
.rd-depot > .material-symbols-outlined { color: var(--u-accent); font-size: 2.2em; }
.rd-depot.rd-survol, .rd-depot:focus-within { border-color: var(--u-accent); background: var(--u-soft); }
.rd-depot-nom { color: var(--u-accent); font-weight: 700; }
.rd-depot-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rd-actuel { display: grid; gap: .4rem; margin-bottom: var(--esp-m); padding: .7rem .9rem; border-radius: 10px; background: #f8f9fc; }
.rd-actuel-titre, .rd-reserve-titre { display: flex; align-items: center; gap: .3rem; color: #7b8699; font-size: var(--txt-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rd-reserve { margin-top: var(--esp-s); padding: .9rem; border-radius: 10px; background: #f8f9fc; }
.rd-reserve-titre { margin-bottom: .6rem; }
@media (max-width: 48em) {
    .rd-deux, .rd-choix { grid-template-columns: 1fr; }
    .rd-recherche { margin-left: 0; flex-basis: 100%; }
    .rd-mon { grid-template-columns: 1fr; }
}

/* Absences et retards */
.ab-cours label[hidden], .ab-switch[hidden], .ab-curseur[hidden] { display: none; }
.ab-annees { display: inline-flex; max-width: 100%; margin-bottom: var(--esp-m); }
.ab-compteurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: var(--esp-s); margin-bottom: var(--esp-m); }
.ab-compteur { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border-left: 4px solid; border-radius: 12px; background: #f8f9fc; }
.ab-compteur b { display: block; font-size: var(--txt-l); line-height: 1.1; color: #1d2b44; }
.ab-compteur small { color: #5b6577; font-size: var(--txt-xs); }
.ab-ico { display: grid; place-items: center; flex-shrink: 0; width: 2.4rem; aspect-ratio: 1; border-radius: 50%; color: #fff; }
.ab-c-inj { border-color: #c0352b; } .ab-c-inj .ab-ico { background: #c0352b; }
.ab-c-just { border-color: #2b5fb4; } .ab-c-just .ab-ico { background: #2b5fb4; }
.ab-c-ret { border-color: #d08a00; } .ab-c-ret .ab-ico { background: #d08a00; }
.ab-filtres { display: flex; flex-wrap: wrap; align-items: center; gap: var(--esp-s); margin-bottom: var(--esp-s); }
.ab-recherche { margin: 0; flex: 1 1 16rem; max-width: 22rem; }
.ab-mois { width: auto; }
.ab-puces { display: flex; flex-wrap: wrap; gap: .35rem; }
.ab-puces button { border: 1px solid #d7deea; border-radius: 999px; background: #fff; padding: .3rem .75rem; color: #5b6577; font-size: var(--txt-xs); font-weight: 650; }
.ab-puces button.actif { background: var(--u-accent); border-color: var(--u-accent); color: #fff; }
.ab-eleve { display: flex; align-items: center; gap: .5rem; min-width: 0; font-weight: 650; color: #1d2b44; overflow-wrap: anywhere; }
.ab-triangle { flex-shrink: 0; font-size: 1.05rem; }
.ab-date b { display: block; font-weight: 650; }
.ab-date small { color: #7b8699; font-size: var(--txt-xs); }
.ab-type { display: inline-flex; align-items: center; padding: .2rem .6rem; border-radius: 999px; background: #eef1f6; color: #5b6577; font-size: var(--txt-xs); font-weight: 700; white-space: nowrap; }
.ab-t-inj { background: #fbe3ea; color: #c0352b; }
.ab-t-just { background: #e8effb; color: #2b5fb4; }
.ab-t-ret { background: #fff1d6; color: #9a6200; }
.ab-t-exc { background: #ece6f6; color: #6b3fa8; }
.ab-remarque { min-width: 0; color: #5b6577; font-size: var(--txt-s); overflow-wrap: anywhere; }
.ab-pj { display: inline-flex; align-items: center; gap: .2em; margin-right: .4rem; color: var(--u-accent); font-weight: 650; }
.ab-suivi { display: inline-flex; align-items: center; gap: .2em; margin-left: .3rem; padding: .05rem .45rem; border-radius: 6px; background: #eef1f6; font-size: var(--txt-xs); }
.ab-actions { display: flex; justify-content: flex-end; gap: .3rem; }
.ab-ico-btn { display: grid; place-items: center; width: 2rem; aspect-ratio: 1; border: 1px solid #d7deea; border-radius: 8px; background: #fff; color: #44516a; text-decoration: none; }
.ab-ico-btn:hover, .ab-ico-btn:focus-visible { border-color: var(--u-accent); color: var(--u-accent); }
.ab-danger:hover, .ab-danger:focus-visible { border-color: #c0352b; background: #fbe3ea; color: #c0352b; }
.ab-etape { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .3rem 1rem; padding: var(--esp-m) 0; border-bottom: 1px solid #eef1f6; }
.ab-num { display: grid; place-items: center; width: 2rem; aspect-ratio: 1; border-radius: 50%; background: var(--u-soft); color: var(--u-accent); font-weight: 800; }
.ab-etape h3 { margin: .3rem 0 .5rem; font-size: var(--txt-m); font-weight: 750; color: #1d2b44; }
.ab-fac { font-weight: 400; }
.ab-aide { margin: 0 0 .5rem; color: #7b8699; font-size: var(--txt-s); }
.ab-filtre-cours { display: block; margin: 0 0 .5rem; max-width: none; flex: none; }
.ab-cours { display: grid; gap: .4rem; max-height: 16rem; overflow: auto; padding: .1rem; }
.ab-cours label { display: grid; grid-template-columns: auto 6.5rem minmax(0, 1fr) auto; align-items: center; gap: .7rem; margin: 0; padding: .55rem .7rem; border: 1px solid #e3e8f1; border-radius: 10px; font-size: var(--txt-s); cursor: pointer; }
.ab-cours label span { display: grid; min-width: 0; }
.ab-cours small { color: #7b8699; }
.ab-cours label:has(input:checked) { border-color: var(--u-accent); background: var(--u-soft); }
.ab-cours input, .ab-types input { accent-color: var(--u-accent); }
.ab-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .5rem; }
.ab-types label { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .7rem .8rem; border: 1px solid #d7deea; border-radius: 10px; font-size: var(--txt-s); font-weight: 650; cursor: pointer; }
.ab-types label:has(input:checked) { border-color: var(--u-accent); background: var(--u-soft); color: var(--u-accent); }
.ab-duree { display: flex; flex-wrap: wrap; align-items: center; gap: var(--esp-m); margin-top: .8rem; }
.ab-switch { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-size: var(--txt-s); font-weight: 650; }
.ab-switch .form-check { margin: 0; }
.ab-curseur { flex: 1 1 16rem; display: flex; align-items: center; gap: .8rem; }
.ab-curseur .form-range { flex: 1; accent-color: var(--u-accent); }
.ab-valeur { min-width: 4.5rem; padding: .25rem .6rem; border-radius: 8px; background: var(--u-soft); color: var(--u-accent); font-weight: 800; text-align: center; }
.ab-rappel { display: flex; align-items: center; gap: .5rem; margin-top: .7rem; padding: .6rem .8rem; border-radius: 10px; background: #f3f6fd; color: #44516a; font-size: var(--txt-s); }
.ab-rappel .material-symbols-outlined { color: var(--u-accent); }
.ab-depot { margin-bottom: .6rem; padding: 1rem; }
.ab-fiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--esp-s); }
.ab-fiche .rd-info small { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ab-remarque-fiche { display: grid; gap: .3rem; margin: var(--esp-s) 0 0; }
.ab-remarque-fiche small { color: #7b8699; font-size: var(--txt-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 52em) {
    .ab-cours label { grid-template-columns: auto minmax(0, 1fr); }
    .ab-cours label > small { display: none; }
}

/* Suivi de session */
.ss-cours[hidden] { display: none; }
.ss-stats { display: flex; flex-wrap: wrap; gap: .6rem; }
.vs-hero > .ss-stats { justify-self: end; justify-content: flex-end; }
.ss-stat { padding: .45rem .9rem; border-radius: 12px; background: rgba(255, 255, 255, .14); color: var(--u-texte, #fff); font-size: var(--txt-s); }
.ss-stat b { display: block; font-size: var(--txt-l); }
.ss-titre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: var(--esp-m); }
.ss-titre .vs-card-title { margin: 0; }
.ss-compte { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .45rem; border-radius: 999px; background: #c0352b; color: #fff; font-size: var(--txt-xs); letter-spacing: 0; }
.ss-compte-ok { background: #1f7a4a; }
.ss-petit { font-size: var(--txt-s); }
.ss-a-remplir { display: grid; gap: .5rem; }
.ss-cours { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto auto; align-items: center; gap: var(--esp-m); padding: .75rem .9rem; border: 1px solid #e3e8f1; border-left: 4px solid #d08a00; border-radius: 12px; }
.ss-retard { border-left-color: #c0352b; }
.ss-jour { border-left-color: var(--u-accent); }
.ss-quand b { display: block; font-size: var(--txt-m); }
.ss-quand small { color: #7b8699; font-size: var(--txt-xs); }
.ss-quoi { display: grid; gap: .2rem; min-width: 0; }
.ss-quoi small { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.ss-matiere { display: inline-flex; align-items: center; gap: .35rem; color: #1d2b44; }
.ss-pastille { flex-shrink: 0; width: .6rem; aspect-ratio: 1; border-radius: 50%; }
.ss-promo { display: inline-flex; padding: .1rem .45rem; border-radius: 6px; background: #e8effb; color: #2b5fb4; font-size: var(--txt-xs); font-weight: 700; }
.ss-badge { display: inline-flex; align-items: center; gap: .25em; padding: .1rem .55rem; border-radius: 999px; font-size: var(--txt-xs); font-weight: 700; white-space: nowrap; }
.ss-badge .material-symbols-outlined { font-size: 1.1em; }
.ss-b-retard { background: #fbe3ea; color: #c0352b; }
.ss-b-proche { background: #fff1d6; color: #9a6200; }
.ss-b-jour { background: var(--u-soft); color: var(--u-accent); }
.ss-autoforma { display: inline-flex; align-items: center; gap: .4rem; margin: 0; color: #5b6577; font-size: var(--txt-s); white-space: nowrap; }
.ss-autoforma .form-check-input { margin: 0; float: none; }
.ss-filtres { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ss-recherche { margin: 0; flex: 0 1 18rem; }
.ss-promo-filtre { width: auto; }
.ss-entete span { white-space: nowrap; }
.ss-entete { color: #7b8699; font-size: var(--txt-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ss-resume { display: -webkit-box; overflow: hidden; color: #5b6577; font-size: var(--txt-s); -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.ss-indic { display: flex; gap: .5rem; color: #7b8699; font-size: var(--txt-xs); }
.ss-indic > span { display: inline-flex; align-items: center; gap: .15em; }
.ss-suppr { margin: 0; }
@media (max-width: 52em) {
    .ss-cours { grid-template-columns: minmax(0, 1fr) auto; }
    .ss-cours .ss-quoi { grid-column: 1 / -1; grid-row: 2; }
    .ss-cours .ss-autoforma { grid-row: 3; }
    .ss-entete { display: none; }
}
.ss-etape-fil[hidden], .ss-mois[hidden], .ss-manquants[hidden], .sa-etape[hidden], .sa-bloc[hidden], .sa-bloc label[hidden], .sa-erreur[hidden] { display: none; }
.ss-bloc-periode[hidden] { display: none; }
.ss-periode-texte { margin: 0 0 .4rem; }
.ss-pilote { display: grid; grid-template-columns: minmax(0, 1.4fr) 10rem 9.5rem 8.5rem; align-items: center; gap: var(--esp-m); padding: .6rem .4rem; border-bottom: 1px solid #eef1f6; font-size: var(--txt-m); }
.ss-nb-bas { color: #c0352b; } .ss-nb-moyen { color: #9a6200; } .ss-nb-ok { color: #1f7a4a; }
.ss-manquants { display: grid; gap: .35rem; padding: .5rem .4rem .8rem 3rem; border-bottom: 1px solid #eef1f6; font-size: var(--txt-s); }
.ss-manquants > div { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.ss-fiche { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--esp-m); align-items: start; }
.ss-section { margin-bottom: var(--esp-m); }
.ss-section:last-child { margin-bottom: 0; }
.ss-section h2 { margin: 0 0 .45rem; color: #7b8699; font-size: var(--txt-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ss-texte { margin: 0; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.ss-remarque { padding: .6rem .8rem; border-left: 3px solid #e0a030; border-radius: 10px; background: #fff8e8; font-size: var(--txt-s); white-space: pre-line; overflow-wrap: anywhere; }
.ss-competences { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.ss-competences li { display: flex; align-items: flex-start; gap: .45rem; font-size: var(--txt-s); }
.ss-competences .material-symbols-outlined { color: #1f7a4a; font-size: 1.1rem; }
.ss-validees .ss-promo { margin-left: .3rem; }
.ss-cote { display: grid; gap: var(--esp-s); }
.ss-cote .rd-info small { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ss-docs { display: flex; flex-wrap: wrap; gap: .4rem; }
.ss-doc { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border: 1px solid #d7deea; border-radius: 8px; color: var(--u-accent); font-size: var(--txt-xs); font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.ss-doc:hover { border-color: var(--u-accent); background: var(--u-soft); }
.ss-puces { margin-bottom: var(--esp-m); }
.ss-puces .ss-pastille { display: inline-block; margin-right: .3rem; }
.ss-fil { position: relative; display: grid; gap: var(--esp-s); padding-left: 1.4rem; }
.ss-fil::before { content: ''; position: absolute; left: .45rem; top: .3rem; bottom: .3rem; width: 2px; background: #e3e8f1; }
.ss-mois { margin: .4rem 0 0 -1.4rem; color: #7b8699; font-size: var(--txt-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ss-etape-fil { position: relative; padding: .9rem 1rem; border: 1px solid #e3e8f1; border-radius: 12px; background: #fff; }
.ss-etape-fil::before { content: ''; position: absolute; left: -1.25rem; top: 1.1rem; width: .75rem; aspect-ratio: 1; border: 2px solid #fff; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--c); }
.ss-etape-fil header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-bottom: .4rem; font-size: var(--txt-s); }
.ss-etape-fil h3 { margin: 0; font-size: var(--txt-m); font-weight: 750; color: #1d2b44; }
.ss-etape-fil > p { margin: 0 0 .5rem; color: #44516a; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.ss-voir { display: inline-block; margin-top: .4rem; }
.sa-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .3rem; margin: 0 0 var(--esp-l); padding: 0; list-style: none; }
.sa-nav li { position: relative; }
.sa-nav li + li::before { content: ''; position: absolute; top: 1.1rem; right: calc(50% + 1.2rem); left: calc(-50% + 1.2rem); height: 2px; background: #e3e8f1; }
.sa-nav button { position: relative; display: grid; justify-items: center; gap: .25rem; width: 100%; padding: 0; border: 0; background: none; color: #7b8699; font-size: var(--txt-xs); text-align: center; }
.sa-num { display: grid; place-items: center; width: 2.2rem; aspect-ratio: 1; border: 2px solid #d7deea; border-radius: 50%; background: #fff; font-size: var(--txt-s); font-weight: 800; }
.sa-nav small { color: #9aa3b2; font-size: .68rem; }
.sa-nav button[aria-current] { color: var(--u-accent); font-weight: 700; }
.sa-nav button[aria-current] .sa-num { border-color: var(--u-accent); background: var(--u-accent); color: #fff; }
.sa-nav button.sa-fait .sa-num { border-color: #1f7a4a; background: #1f7a4a; color: #fff; }
.sa-etape h3 { margin: 0 0 .2rem; font-size: var(--txt-l); font-weight: 750; color: #1d2b44; }
.sa-aide { margin: 0 0 var(--esp-m); color: #7b8699; font-size: var(--txt-s); }
.sa-label { display: block; margin: var(--esp-m) 0 .3rem; font-size: var(--txt-s); font-weight: 650; }
.sa-outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; font-size: var(--txt-s); }
.sa-filtre { margin: 0; flex: 0 1 18rem; }
.sa-competences { display: grid; gap: .7rem; max-height: 24rem; overflow: auto; padding-right: .2rem; }
.sa-bloc { overflow: hidden; border: 1px solid #e3e8f1; border-radius: 12px; }
.sa-bloc > b { display: block; padding: .5rem .8rem; background: #f8f9fc; font-size: var(--txt-s); }
.sa-bloc label { display: flex; align-items: flex-start; gap: .6rem; margin: 0; padding: .5rem .8rem; border-top: 1px solid #eef1f6; font-size: var(--txt-s); cursor: pointer; }
.sa-bloc > b + label, .sa-bloc > label:first-child { border-top: 0; }
.sa-bloc label:has(input:checked) { background: var(--u-soft); }
.sa-bloc input, .sa-pv input { margin-top: .2rem; accent-color: var(--u-accent); }
.sa-depot { margin-bottom: .6rem; }
.sa-fichiers, .sa-nouveaux { display: grid; gap: .35rem; }
.sa-fichiers .rd-fichier small { margin-left: auto; }
.sa-vigilance { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: .4rem; max-height: 24rem; overflow: auto; }
.sa-eleve { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem .7rem; border: 1px solid #e3e8f1; border-radius: 10px; font-size: var(--txt-s); }
.sa-pv { display: flex; gap: .3rem; }
.sa-pv label { display: inline-flex; align-items: center; gap: .25rem; margin: 0; padding: .15rem .45rem; border: 1px solid #d7deea; border-radius: 6px; color: #7b8699; font-size: var(--txt-xs); font-weight: 700; cursor: pointer; }
.sa-pv input { margin: 0; }
.sa-pv-t:has(input:checked) { border-color: #e0a030; background: #fff1d6; color: #9a6200; }
.sa-pv-c:has(input:checked) { border-color: #c0352b; background: #fbe3ea; color: #c0352b; }
.sa-erreur { margin-top: var(--esp-m); padding: .6rem .8rem; border-radius: 10px; background: #fbe3ea; color: #c0352b; font-size: var(--txt-s); font-weight: 650; }
.sa-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: var(--esp-m); padding-top: var(--esp-m); border-top: 1px solid #eef1f6; }
.sa-droite { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
@media (max-width: 52em) {
    .ss-fiche { grid-template-columns: 1fr; }
    .ss-pilote { grid-template-columns: minmax(0, 1fr) auto; }
    .ss-pilote > span:nth-child(3) { display: none; }
    .sa-lib, .sa-nav small { display: none; }
}

/* Dashboard Vie scolaire : absents du jour et derniers suivis */
.vs-absent[hidden], .vs-absents-vide[hidden] { display: none; }
.vs-absents-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: var(--esp-m); }
.vs-absents-tete .vs-card-title { margin: 0; }
.vs-absent { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 13rem; align-items: center; gap: var(--esp-m); padding: .65rem .3rem; border-bottom: 1px solid #eef1f6; }
.vs-absent-nom { display: grid; justify-items: start; gap: .15rem; min-width: 0; }
.vs-absent-sources { display: flex; flex-wrap: wrap; gap: .35rem; }
.vs-source { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .55rem; border-radius: 8px; font-size: var(--txt-xs); font-weight: 650; }
.vs-source .material-symbols-outlined { font-size: 1.05rem; }
.vs-source-ticket { background: #e8effb; color: #2b5fb4; }
.vs-source-retard { background: #fff1d6; color: #9a6200; }
.vs-source-emarg { background: #fbe3ea; color: #c0352b; }
.vs-source-prevue { background: #dcefea; color: #287d70; }
.vs-absent-actions { flex-wrap: wrap; }
.vs-suivi { display: grid; grid-template-columns: 6rem minmax(0, 1fr) auto; align-items: start; gap: var(--esp-m); padding: .65rem .3rem; border-bottom: 1px solid #eef1f6; }
.vs-suivi-corps { min-width: 0; }
.vs-suivi-corps .ss-resume { margin: .25rem 0 0; }
.vs-suivi-corps .rd-echeance { margin-top: .35rem; }
.vs-note { font-size: var(--txt-m); font-weight: 750; white-space: nowrap; }
.vs-note small { color: #7b8699; font-weight: 600; }
.vs-cat { display: inline-flex; margin-left: .3rem; padding: .1rem .5rem; border-radius: 999px; background: #e8effb; color: #2b5fb4; font-size: var(--txt-xs); font-weight: 700; }
.vs-cat-alerte { background: #fbe3ea; color: #c0352b; }
.vs-cat-ok { background: #e6f4ec; color: #1f7a4a; }
@media (max-width: 52em) {
    .vs-absent { grid-template-columns: minmax(0, 1fr) auto; }
    .vs-absent-sources { grid-column: 1 / -1; grid-row: 2; }
    .vs-suivi { grid-template-columns: minmax(0, 1fr) auto; }
    .vs-suivi .ss-quand { grid-column: 1 / -1; }
}
.vs-outils { display: grid; gap: .5rem; }
.vs-outil { display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border: 1px solid #e3e8f1; border-radius: 12px; color: #1d2b44; text-decoration: none; }
.vs-outil:hover, .vs-outil:focus-visible { border-color: var(--u-accent); background: var(--u-soft); color: #1d2b44; }
.vs-outil > span:nth-child(2) { display: grid; min-width: 0; }
.vs-outil b { font-size: var(--txt-m); }
.vs-outil small { color: #7b8699; font-size: var(--txt-xs); }
.vs-outil-ico { display: grid; place-items: center; flex-shrink: 0; width: 2.4rem; aspect-ratio: 1; border-radius: 10px; background: var(--u-soft); color: var(--u-accent); }
.vs-outil-fleche { margin-left: auto; color: #9aa3b2; }

/* Suivi individuel */
.si-visite[hidden] { display: none; }
.si-cat { display: inline-flex; align-items: center; padding: .15rem .55rem; border-radius: 999px; font-size: var(--txt-xs); font-weight: 700; white-space: nowrap; }
.si-c-alerte { background: #fbe3ea; color: #c0352b; }
.si-c-vigil { background: #fff1d6; color: #9a6200; }
.si-c-visite { background: #e6f4ec; color: #1f7a4a; }
.si-c-sco { background: #e8effb; color: #2b5fb4; }
.si-c-autre { background: #eef1f6; color: #5b6577; }
.si-qui { display: grid; justify-items: start; gap: .15rem; min-width: 0; }
.si-corps { min-width: 0; }
.si-corps .ss-resume { margin-top: .25rem; }
.si-indic { display: inline-flex; align-items: center; gap: .15em; margin-left: .35rem; color: #7b8699; font-size: var(--txt-xs); }
.si-indic .material-symbols-outlined { font-size: 1.05rem; }
.si-prive { color: #9a6200; }
.si-fil { display: grid; gap: var(--esp-s); }
.si-carte { padding: .9rem 1rem; border: 1px solid #e3e8f1; border-left: 4px solid var(--c); border-radius: 12px; }
.si-carte header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; font-size: var(--txt-s); }
.si-carte p { margin: 0 0 .4rem; color: #44516a; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.si-visite { margin-top: var(--esp-m); padding: .9rem; border: 1px solid #cfe9db; border-radius: 12px; background: #f3faf6; }
.si-visite-titre { display: flex; align-items: center; gap: .35rem; margin-bottom: .6rem; color: #1f7a4a; font-weight: 700; }
.si-visibilite { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-bottom: var(--esp-m); }
.si-visibilite label { display: grid; gap: .2rem; margin: 0; padding: .7rem .8rem; border: 1px solid #d7deea; border-radius: 10px; cursor: pointer; }
.si-visibilite input { position: absolute; opacity: 0; }
.si-visibilite label:has(input:checked) { border-color: var(--u-accent); background: var(--u-soft); }
.si-visibilite b { display: flex; align-items: center; gap: .35rem; font-size: var(--txt-s); }
.si-visibilite small { color: #7b8699; font-size: var(--txt-xs); }
.si-hero-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-self: end; }
.si-bloc-visite { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.si-bloc-visite > div { display: grid; gap: .2rem; padding: .7rem .85rem; border-radius: 10px; background: #f3faf6; }
.si-bloc-visite small { color: #1f7a4a; font-size: var(--txt-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 52em) {
    .si-visibilite, .si-bloc-visite { grid-template-columns: 1fr; }
}
.si-par-page { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }
.si-par-page .form-select { width: auto; }

/* Devoirs */
.dv-quoi { display: grid; gap: .15rem; min-width: 0; }
.dv-quoi b { overflow-wrap: anywhere; }
.dv-quoi small { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; color: #5b6577; font-size: var(--txt-xs); }
.dv-cat { display: inline-flex; padding: .12rem .5rem; border-radius: 999px; background: #eef1f6; color: #5b6577; font-size: var(--txt-xs); font-weight: 700; white-space: nowrap; }
.dv-c-partiel { background: #ece6f6; color: #6b3fa8; }
.dv-c-oral { background: #e6f4ec; color: #1f7a4a; }
.dv-c-pratique { background: #fff1d6; color: #9a6200; }
.dv-c-theo { background: #e8effb; color: #2b5fb4; }
.dv-moy { font-weight: 800; white-space: nowrap; }
.dv-moy small { color: #7b8699; font-weight: 400; }
.dv-moy-centre { display: grid; justify-items: center; gap: .1rem; width: fit-content; margin: 0 auto var(--esp-l); padding: var(--esp-m) var(--esp-xl); border-radius: 14px; background: var(--u-soft); text-align: center; }
.dv-moy-centre b { color: var(--u-accent); font-size: 2.2rem; line-height: 1.1; }
.dv-moy-centre b small { color: #7b8699; font-size: 1rem; font-weight: 400; }
.dv-moy-centre .dv-sans { font-size: var(--txt-l); }
.dv-accordeon { display: grid; gap: .5rem; }
.dv-accordeon { gap: 0; }
.dv-accordeon details { border-bottom: 1px solid #eef1f6; }
.dv-accordeon summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: .8rem; padding: .9rem .3rem; cursor: pointer; list-style: none; }
.dv-accordeon summary::-webkit-details-marker { display: none; }
.dv-accordeon summary:hover .dv-intitule { color: var(--u-accent); }
.dv-accordeon details[open] .dv-chevron { transform: rotate(180deg); }
.dv-chevron { align-self: center; color: #9aa3b2; transition: transform .2s; }
.dv-intitule { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.dv-intitule small { color: #7b8699; font-size: var(--txt-xs); font-weight: 400; }
.dv-moy { font-size: var(--txt-m); font-weight: 800; white-space: nowrap; }
.dv-moy small { color: #7b8699; font-size: .8em; font-weight: 400; }
.dv-n-bien { color: #1f7a4a; }
.dv-n-bas { color: #c0352b; }
.dv-table { width: 100%; margin: 0 0 .8rem; border-collapse: collapse; font-size: var(--txt-s); }
.dv-table th { padding: .35rem .5rem; color: #7b8699; font-size: var(--txt-xs); font-weight: 700; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.dv-table td { padding: .5rem; border-top: 1px solid #eef1f6; vertical-align: top; overflow-wrap: anywhere; }
.dv-table tbody tr:nth-child(odd) { background: var(--u-zebre); }
.dv-table tbody tr:hover { background: var(--u-survol); }
.dv-table .ss-docs { margin-top: .3rem; }
.dv-droite { text-align: right; white-space: nowrap; }
.dv-table td.dv-droite b { font-size: var(--txt-m); }
.dv-voir { color: #9aa3b2; }
.dv-voir:hover { color: var(--u-accent); }

/* Listes Select2 dans les barres de filtres */
.vs-select-filtre { display: inline-block; flex: 0 1 14rem; min-width: min(100%, 11rem); }
.vs-select-court { display: inline-block; width: 5.5rem; }
@media (max-width: 40em) {
    .dv-table th:nth-child(2), .dv-table td:nth-child(2), .dv-table th:nth-child(3), .dv-table td:nth-child(3) { display: none; }
}
/* Titre de colonne aligné sur le texte du badge, pas sur son fond */

/* Tableaux DataTables de la refonte : zébrés, en-têtes discrets, pagination aux couleurs de l'univers */
.vs-table.dataTable { width: 100% !important; margin: 0 !important; border-collapse: collapse; font-size: var(--txt-m); }
.vs-table.dataTable > thead > tr > th { padding: .55rem .75rem; border-bottom: 1px solid #e3e8f1; background: #fff; color: #6b7588; font-size: var(--txt-s); font-weight: 600; white-space: nowrap; }
.vs-table.dataTable > tbody > tr > td { padding: .6rem .75rem; border-bottom: 1px solid #eef1f6; color: #44516a; font-size: var(--txt-s); vertical-align: top; box-shadow: none; }
/* Zèbre compté sans les lignes de détail mobile, que l'on colore comme leur ligne parente */
.vs-table.dataTable > tbody > tr:nth-child(odd of :not(.child)) > td, .vs-table.dataTable > tbody > tr:nth-child(odd of :not(.child)) + tr.child > td { background: var(--u-zebre); }
.vs-table.dataTable > tbody > tr:not(.child):hover > td { background: var(--u-survol); }
.vs-table.dataTable th.dt-type-date, .vs-table.dataTable td.dt-type-date, .vs-table.dataTable th.dt-type-numeric, .vs-table.dataTable td.dt-type-numeric { text-align: left; }
.vs-table .vs-table-actions { width: 7.5rem; text-align: right; }
#ab-table th:nth-child(1) { width: 20%; }
#ab-table th:nth-child(2) { width: 7.5rem; }
#ab-table th:nth-child(3) { width: 11rem; }
#ab-table th:nth-child(4) { width: 6rem; }
#dv-table th:nth-child(1) { width: 7rem; }
#dv-table th:nth-child(2) { width: 40%; }
#dv-table th:nth-child(3) { width: 9rem; }
#dv-table th:nth-child(4) { width: 5rem; }
#dv-table .vs-table-actions { width: 10rem; }
#si-table th:nth-child(1) { width: 6.5rem; }
#si-table th:nth-child(2) { width: 24%; }
#si-table .vs-table-actions { width: 10rem; }
#ss-table th:nth-child(1) { width: 6.5rem; }
#ss-table th:nth-child(2) { width: 22%; }
/* Colonnes de filtre : jamais affichées, même avant le démarrage de DataTables */
.vs-table .vs-col-filtre { display: none; }
.vs-table td.dt-empty { padding: var(--esp-l); color: #7b8699; text-align: center; }
.vs-table.dataTable > thead > tr > th.dt-orderable-asc:hover, .vs-table.dataTable > thead > tr > th.dt-orderable-desc:hover { outline: none; color: var(--u-accent); }
.vs-table.dataTable > thead > tr > th.dt-ordering-asc, .vs-table.dataTable > thead > tr > th.dt-ordering-desc { color: var(--u-accent); }
.vs-card .dt-container > .row:last-child { row-gap: var(--esp-s); margin-top: var(--esp-s) !important; }
.vs-card .dt-container .dt-layout-start { flex-wrap: wrap; gap: var(--esp-m); }
.vs-card .dt-container .dt-info { padding: 0; color: #7b8699; font-size: var(--txt-s); }
.vs-card .dt-container .pagination { margin: 0; gap: .25rem; }
.vs-card .dt-container .page-link { border: 1px solid #d7deea; border-radius: 8px; color: #44516a; font-size: var(--txt-s); box-shadow: none; }
.vs-card .dt-container .page-item.active .page-link { border-color: var(--u-accent); background: var(--u-accent); color: #fff; }
.vs-card .dt-container .page-item.disabled .page-link { color: #b5bdcb; background: #fff; }
.vs-card .dt-container .page-link:hover { border-color: var(--u-accent); color: var(--u-accent); }
.vs-table.dtr-inline.collapsed > tbody > tr > td.dtr-control::before { margin-right: .5rem; border-left-color: var(--u-accent); }
.vs-table.dtr-inline.collapsed > tbody > tr.dtr-expanded > td.dtr-control::before { border-top-color: var(--u-accent); border-left-color: transparent; }
.vs-table td.dtr-control > * { display: inline-flex; vertical-align: top; }
.vs-table td.dtr-control > :is(.ss-quand, .ab-date, .dv-quoi, .ss-quoi, .vg-qui) { display: inline-grid; }
.vs-table li[data-dtr-index] { padding: .3rem 0; }
@media (max-width: 40em) {
    .vs-table.dataTable .vs-table-actions { width: 5rem !important; }
    .vs-table.dataTable > thead > tr > th:not(.vs-table-actions) { width: auto !important; }
    .vs-table .ab-actions { flex-wrap: wrap; }
}

/* Contenu des tableaux : sobre. Une info principale en graisse moyenne, le reste en petit gris, aucune pastille ni couleur */
.vs-table .dt-column-order { opacity: 0; }
.vs-table th:hover .dt-column-order { opacity: .4; }
.vs-table th:is(.dt-ordering-asc, .dt-ordering-desc) .dt-column-order { opacity: 1; }
.vs-table b, .vs-table .ab-eleve, .vs-table .ss-matiere { color: #1d2b44; font-weight: 500; }
.vs-table :is(.ss-quand, .ab-date, .dv-quoi, .ss-quoi) { display: grid; gap: .1rem; }
.vs-table :is(.ss-quand, .ab-date, .dv-quoi, .ss-quoi) small { display: block; color: #8a93a3; font-size: var(--txt-xs); }
.vs-table :is(.ss-promo, .ab-type, .dv-cat, .si-cat, .ab-suivi) { display: inline; padding: 0; border-radius: 0; background: none; color: inherit; font-size: inherit; font-weight: inherit; white-space: normal; }
.vs-table :is(.ab-type, .dv-cat, .si-cat) { color: #1d2b44; font-weight: 500; }
.vs-table .ss-promo + .ss-promo::before { content: " · "; }
.vs-table .ss-promo:not(:last-child) { margin-right: .25rem; }
.vs-table :is(.ss-pastille, .rd-avatar) { display: none; }
.vs-table .dv-moy { color: #1d2b44; font-size: inherit; font-weight: 500; }
.vs-table .ss-resume { display: block; margin-top: .1rem; color: #8a93a3; font-size: var(--txt-xs); }
.vs-table .ss-quand .ss-resume { display: -webkit-box; margin: 0; }
.vs-table td.ab-remarque { color: #8a93a3; font-size: var(--txt-xs); }
.vs-table :is(.si-indic, .si-prive, .ab-pj, .ss-indic) { color: #8a93a3; font-weight: 400; }
.vs-table .ab-pj { text-decoration: underline; }
.vs-table .ab-ico-btn, .em-liste .ab-ico-btn { width: 1.9rem; border: 0; border-radius: 6px; background: none; color: #8a93a3; }
.vs-table .ab-ico-btn:hover, .vs-table .ab-ico-btn:focus-visible, .em-liste .ab-ico-btn:hover, .em-liste .ab-ico-btn:focus-visible { border: 0; background: #fff; color: var(--u-accent); }
.vs-table .ab-danger:hover, .vs-table .ab-danger:focus-visible { background: #fff; color: #c0352b; }
.vs-table .ab-actions { gap: .1rem; }
.vs-table .rd-fichier { align-items: baseline; }
.vs-table .dr-type { padding: 0; border: 0; background: none; color: #8a93a3; font-size: var(--txt-xs); font-weight: 400; }
.vs-table :is(.rd-fichier a, .rd-obs a) { color: #44516a; font-weight: 400; text-decoration: underline; }
.vs-table .rd-sans { font-style: normal; }
#rd-table th:nth-child(1) { width: 40%; }
#rd-depots th:nth-child(2) { width: 9rem; }

/* Devoirs : création, modification, fiche, saisie des notes */
.dv-deux-champs, .dv-trois-champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--esp-m); }
.dv-trois-champs { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
.dv-sous-champ { margin: .4rem 0 0; }
.dv-lecture { background: #f1f3f7; color: #6b7588; }
.dv-promo { margin-top: var(--esp-m); border: 1px solid #e3e8f1; border-radius: 12px; }
.dv-promo-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .65rem 1rem; border-bottom: 1px solid #e3e8f1; }
.dv-promo-tete b { font-weight: 600; }
.dv-promo-corps { padding: 0 1rem 1rem; }
.dv-compte { color: #8a93a3; font-size: var(--txt-xs); }
.dv-parent { background: #f8f9fc; font-weight: 500; }
.dv-enfant { padding-left: 2.2rem !important; color: #44516a; }
.dv-enfant.dv-n3 { padding-left: 3.4rem !important; }
.dv-enfant.dv-n4 { padding-left: 4.6rem !important; }
.dv-fiche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--esp-m); }
.dv-liste { margin: 0; padding: 0; list-style: none; }
.dv-liste li { padding: .45rem 0; border-bottom: 1px solid #eef1f6; color: #44516a; font-size: var(--txt-s); }
.dv-liste li:last-child { border-bottom: 0; }
.dv-infos .rd-info b { font-size: var(--txt-m); font-weight: 500; }
.dv-absents { font-size: var(--txt-xs); font-weight: 400; }
.dv-barre-notes { justify-content: space-between; }
.dv-petit { font-size: var(--txt-xs); }
.dv-legende { margin: .6rem 0 0; }
.dv-defile { overflow-x: auto; contain: inline-size; }
.dv-note { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.dv-note-champ { flex: none; width: 4.5rem; min-width: 4.5rem; padding-inline: .5rem; text-align: center; appearance: textfield; }
.dv-note-champ::-webkit-inner-spin-button, .dv-note-champ::-webkit-outer-spin-button { margin: 0; appearance: none; }
.dv-note-champ { transition: border-color .3s, box-shadow .3s; }
.dv-note-champ.dv-ok { border-color: #1f7a4a; box-shadow: 0 0 0 2px rgba(31, 122, 74, .15); }
.dv-absent { display: inline-flex; justify-content: center; margin: 0; padding: 0; }
.dv-absent .form-check-input { margin: 0; float: none; }
/* Saisie des notes : tout centré sur la ligne, colonnes courtes centrées (l'id passe devant l'alignement numérique de DataTables) */
#dv-notes > thead > tr > th, #dv-notes > tbody > tr > td { vertical-align: middle; }
#dv-notes .dv-hist, #dv-notes th:nth-child(3), #dv-notes td:nth-child(3) { text-align: center; }
#dv-notes .dv-hist { color: #8a93a3; font-weight: 400; white-space: nowrap; }
#dv-notes th:nth-child(2), #dv-notes td:nth-child(2) { padding-right: 1.5rem; }
@media (max-width: 40em) {
    .dv-deux-champs, .dv-trois-champs, .dv-fiche { grid-template-columns: 1fr; }
}

/* Missions */
.mi-texte { margin: 0; color: #44516a; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }

/* Supports */
.su-bulletins { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--esp-s); }
.su-bulletins b { display: block; font-weight: 600; }
.su-recherche { display: flex; max-width: 24rem; margin: 0 0 var(--esp-s); }
.su-categorie { margin-bottom: var(--esp-s); overflow: hidden; border-radius: 12px; background: #fff; }
.su-categorie[hidden], .su-table tr[hidden] { display: none; }
.su-categorie > summary { display: flex; align-items: center; gap: .7rem; padding: .85rem 1.2rem; cursor: pointer; list-style: none; }
.su-categorie > summary::-webkit-details-marker { display: none; }
.su-categorie[open] > summary { border-bottom: 1px solid #eef1f6; }
.su-nom { flex: 1; font-weight: 500; color: #1d2b44; }
.su-nb { font-size: var(--txt-xs); }
.su-chevron { color: #8a93a3; transition: transform .2s; }
.su-categorie[open] .su-chevron { transform: rotate(180deg); }
.su-vide { padding: .8rem 1.2rem; font-size: var(--txt-s); }
/* Petit tableau sans DataTables : on reprend le style des tableaux de la refonte */
.su-table { width: 100%; border-collapse: collapse; font-size: var(--txt-s); }
.su-table th { padding: .5rem 1.2rem; border-bottom: 1px solid #e3e8f1; color: #6b7588; font-size: var(--txt-s); font-weight: 600; text-align: left; }
.su-table td { padding: .55rem 1.2rem; border-bottom: 1px solid #eef1f6; color: #44516a; vertical-align: middle; }
.su-table tbody tr:last-child td { border-bottom: 0; }
.su-table tbody tr:nth-child(odd) td { background: var(--u-zebre); }
.su-table tbody tr:hover td { background: var(--u-survol); }
.su-table td b { color: #1d2b44; font-weight: 500; overflow-wrap: anywhere; }
.su-remarque { overflow-wrap: anywhere; }
.su-vu { display: block; color: #8a93a3; font-size: var(--txt-xs); }
.su-table .vs-table-actions { width: 1%; white-space: nowrap; }

/* FAQ */
.fq-intro { display: flex; align-items: flex-start; gap: .5rem; margin: 0 0 var(--esp-m); color: #44516a; font-size: var(--txt-s); }
.fq-intro .material-symbols-outlined { color: var(--u-accent); }
.fq-intro a { color: var(--u-accent); }
.fq-liste { overflow: hidden; border-radius: 14px; background: #fff; }
.fq-article { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--esp-m); padding: .85rem 1.3rem; border-bottom: 1px solid #eef1f6; }
.fq-article[hidden] { display: none; }
.fq-article:nth-child(odd) { background: var(--u-zebre); }
.fq-article:hover { background: var(--u-survol); }
.fq-article:last-child { border-bottom: 0; }
.fq-lien { display: grid; gap: .1rem; min-width: 0; color: inherit; text-decoration: none; }
.fq-lien b { color: #1d2b44; font-weight: 500; overflow-wrap: anywhere; }
.fq-bio { color: #44516a; font-size: var(--txt-s); }
.fq-meta { color: #8a93a3; font-size: var(--txt-xs); }
.fq-archive .fq-lien b { color: #8a93a3; text-decoration: line-through; }
.fq-chevron { color: #8a93a3; }
.fq-sous-titre { color: rgba(255, 255, 255, .8); font-size: var(--txt-s); }
.fq-contenu { color: #2b3445; line-height: 1.6; overflow-wrap: anywhere; }
.fq-contenu img { max-width: 100%; height: auto; border-radius: 8px; }
.fq-pied { margin-top: var(--esp-m); padding-top: var(--esp-s); border-top: 1px solid #eef1f6; color: #8a93a3; font-size: var(--txt-xs); }
.fq-miniature { margin-top: var(--esp-m); }
.fq-archive-switch { margin-top: var(--esp-m); }

/* Émargements (modale « Mon cours » et pages admin) */
.em-pane { color: #1d2b44; }
.em-puces { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--esp-m); }
.em-puce { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .7rem; border-radius: 999px; background: #f3f5f9; color: #44516a; font-size: var(--txt-s); }
.em-deux { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--esp-m); align-items: start; }
.em-deux-suivi { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.em-bloc { padding: var(--esp-m); border: 1px solid #e3e8f1; border-radius: 12px; background: #fff; }
.em-bloc h3 { margin: 0 0 .7rem; color: #6b7588; font-size: var(--txt-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.em-trombi { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: .6rem; max-height: 18rem; overflow: auto; }
.em-trombi div { color: #44516a; font-size: var(--txt-xs); text-align: center; overflow-wrap: anywhere; }
.em-trombi .vs-tag { display: block; margin-top: .2rem; padding: .1em .3em; }
.em-trombi img { display: block; width: 3.2rem; aspect-ratio: 1; margin: 0 auto .25rem; border-radius: 50%; object-fit: cover; background: #e3e8f1; }
.em-ouvrir { text-align: center; }
.em-aide { display: block; margin: 0; color: #8a93a3; font-size: var(--txt-xs); }
.em-compteur { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: .5rem 0; }
.em-compteur button { width: 2.4rem; aspect-ratio: 1; border: 1px solid #d7deea; border-radius: 50%; background: #fff; color: #44516a; font-size: 1.2rem; }
.em-compteur input { width: 5rem; border: 0; color: #1d2b44; font-size: 2rem; font-weight: 600; text-align: center; appearance: textfield; }
.em-compteur input::-webkit-inner-spin-button { appearance: none; }
.em-large { justify-content: center; width: 100%; margin-top: var(--esp-m); }
.em-code { text-align: center; }
.em-code small { display: block; color: #8a93a3; font-size: var(--txt-xs); }
.em-code strong { display: block; margin: .2rem 0 .4rem; color: var(--u-accent); font-size: 2.6rem; font-weight: 600; letter-spacing: .25em; }
.em-jauge { height: .45rem; margin: .5rem 0 .3rem; overflow: hidden; border-radius: 999px; background: #eef1f6; }
.em-jauge i { display: block; height: 100%; background: var(--u-accent); }
.em-carte { margin-top: var(--esp-s); font-size: var(--txt-xs); text-align: left; }
.em-carte summary { color: var(--u-accent); cursor: pointer; }
.cv-competences .dropdown-menu { width: min(36rem, 90vw); max-height: 50vh; overflow-y: auto; }
.cv-competences .dropdown-item-text { font-size: .85rem; white-space: normal; }
.cv-competences .dropdown-item-text:nth-child(even) { background: color-mix(in srgb, var(--u-accent) 4%, white); }
.em-carte table { width: 100%; margin-top: .5rem; border-collapse: collapse; text-align: center; }
.em-carte th, .em-carte td { padding: .25rem; border: 1px solid #eef1f6; color: #44516a; }
.em-carte td.em-actuel { background: var(--u-accent); color: #fff; font-weight: 600; }
.em-deja { margin-top: var(--esp-s); padding: .7rem .9rem; border-radius: 10px; background: #f8f9fc; font-size: var(--txt-s); }
.em-deja b { display: block; margin-bottom: .3rem; font-weight: 600; }
.em-deja div { display: flex; justify-content: space-between; gap: .5rem; color: #44516a; }
.em-deja small { color: #8a93a3; }
.em-titre-liste { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.em-titre-liste h3 { margin: 0; }
.em-liste { width: 100%; border-collapse: collapse; font-size: var(--txt-s); }
.em-liste th { padding: .5rem .7rem; border-bottom: 1px solid #e3e8f1; color: #6b7588; font-weight: 600; text-align: left; }
.em-liste td { padding: .5rem .7rem; border-bottom: 1px solid #eef1f6; color: #44516a; vertical-align: middle; }
.em-liste tbody tr:nth-child(odd) td { background: var(--u-zebre); }
.em-liste tbody tr:hover td { background: var(--u-survol); }
.em-liste td b { color: #1d2b44; font-weight: 500; }
.em-liste td small { display: block; color: #8a93a3; font-size: var(--txt-xs); }
.em-liste .em-centre, .em-centre { text-align: center; }
.em-liste tr.em-couverte td { opacity: .45; }
.em-choix { display: inline-flex; overflow: hidden; border: 1px solid #d7deea; border-radius: 8px; }
.em-choix button { padding: .25rem .6rem; border: 0; border-left: 1px solid #d7deea; background: #fff; color: #44516a; font-size: var(--txt-xs); }
.em-choix button:first-child { border-left: 0; }
.em-choix button.em-on { background: var(--u-accent); color: #fff; }
.em-attente { margin: var(--esp-s) 0 0; color: #8a93a3; font-size: var(--txt-s); }
.em-attente b { color: #44516a; font-weight: 600; }
.em-signer { text-align: center; }
.em-signer p { margin: 0 0 var(--esp-m); color: #44516a; }
.em-cases { display: flex; justify-content: center; gap: .5rem; margin-bottom: .6rem; }
.em-cases input { width: 3rem; height: 3.5rem; border: 1px solid #d7deea; border-radius: 10px; color: #1d2b44; font-size: 1.6rem; font-weight: 600; text-align: center; text-transform: uppercase; }
.em-cases input:focus { border-color: var(--u-accent); outline: none; box-shadow: 0 0 0 3px var(--u-soft); }
.em-resultat { padding: var(--esp-m) 0 .4rem; text-align: center; }
.em-resultat .material-symbols-outlined { color: var(--u-accent); font-size: 3rem; }
.em-resultat p { margin: .6rem 0 0; color: #44516a; }
.em-resultat.em-alerte .material-symbols-outlined { color: #9a6200; }
.em-hero-droite { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; justify-self: end; }
.em-vide { margin: 0; }
.em-liens { display: flex; gap: var(--esp-m); margin: var(--esp-s) 0 0; font-size: var(--txt-s); }
.em-liens a { color: var(--u-accent); }
.em-groupe { margin: var(--esp-m) 0 var(--esp-s); }
.em-cours summary .su-nom b { display: block; font-weight: 500; }
.em-cours summary .su-nom small { color: #8a93a3; font-size: var(--txt-xs); font-weight: 400; }
.em-select { display: inline-block; width: 12rem; }
.em-switch { display: inline-flex; justify-content: center; margin: 0; padding: 0; }
.em-switch .form-check-input { float: none; margin: 0; }
.em-pied-cours { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--esp-s); padding: .8rem 1.2rem; border-top: 1px solid #eef1f6; }
.em-pied-cours .em-aide { flex: 1 1 18rem; }
.em-ligne-switch { margin: 0 0 var(--esp-s); }
.em-champ { margin-bottom: var(--esp-s); }
.em-champ[hidden] { display: none; }
.em-filtres { display: flex; flex-wrap: wrap; align-items: center; gap: var(--esp-s); margin-bottom: var(--esp-m); }
.em-filtres [hidden] { display: none; }
.em-filtres .em-date { flex: 0 0 auto; width: auto; }
@media (max-width: 52em) {
    .em-deux, .em-deux-suivi { grid-template-columns: 1fr; }
}

/* Utilisateurs : listes et fiche */
.us-lien { padding: 0; border: 0; background: none; color: var(--u-accent); text-decoration: underline; }
.us-menu { min-width: 15rem; padding: .3rem; }
.us-menu .dropdown-item { display: flex; align-items: center; gap: .5rem; border-radius: 6px; color: #44516a; font-size: var(--txt-s); }
.us-menu .material-symbols-outlined { color: #8a93a3; }
.us-cv { width: 100%; height: 70vh; border: 0; }
.us-avatar { flex-shrink: 0; width: 3.4rem; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, .25); }
.us-fiche { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: var(--esp-m); align-items: start; }
.us-sommaire { position: sticky; top: 5rem; display: grid; gap: .1rem; padding: .6rem; border-radius: 14px; background: #fff; }
.us-sommaire a { padding: .4rem .6rem; border-radius: 8px; color: #44516a; font-size: var(--txt-s); text-decoration: none; }
.us-sommaire a:hover { background: #f3f5f9; }
.us-sommaire a.actif { background: var(--u-soft); color: var(--u-accent); font-weight: 600; }
.us-section { scroll-margin-top: 5rem; }
.us-corps { padding: .9rem 1.2rem 1.1rem; }
.us-promo { margin: var(--esp-s) 0 .3rem; color: #1d2b44; font-weight: 600; }
.us-competences { margin: 0; padding: 0; list-style: none; }
.us-competences li { padding: .2rem 0; color: #1d2b44; font-size: var(--txt-s); }
.us-competences li.us-enfant { padding-left: 1.2rem; color: #6b7588; }
@media (max-width: 52em) {
    .us-fiche { grid-template-columns: 1fr; }
    .us-sommaire { position: static; display: flex; flex-wrap: wrap; }
}
@media (max-width: 40em) {
    #us-table.dataTable .vs-table-actions { width: 6.4rem !important; }
    #us-table .ab-actions { flex-wrap: nowrap; }
}
.us-defile { max-height: 28rem; overflow-y: auto; }
.us-defile thead th { position: sticky; top: 0; z-index: 1; background: #fff; }

/* Récap élève */
.rc-initiales { display: grid; place-items: center; color: #fff; font-weight: 600; }
.vs-btn-action.rc-btn-voile { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
.rc-chiffres { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--esp-s); margin-bottom: var(--esp-m); }
.rc-chiffre { padding: .9rem 1.1rem; border: 1px solid #e3e8f1; border-radius: 14px; background: #fff; }
.rc-chiffre small { display: block; color: #6b7588; font-size: var(--txt-s); }
.rc-chiffre b { display: block; margin: .15rem 0; color: #1d2b44; font-size: var(--txt-xl); font-weight: 600; }
.rc-chiffre b span { color: #8a93a3; font-size: var(--txt-m); font-weight: 400; }
.rc-chiffre em { color: #8a93a3; font-size: var(--txt-xs); font-style: normal; }
.rc-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: var(--esp-m); color: #1d2b44; font-size: var(--txt-l); font-weight: 600; }
.rc-titre small { color: #8a93a3; font-size: var(--txt-s); font-weight: 400; }
.rc-sous-titre { margin: 0 0 .6rem; color: #6b7588; font-size: var(--txt-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.rc-deux { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.6rem; }
.rc-deux-egal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rc-bloc { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid #eef1f6; }
.rc-n { text-align: right !important; white-space: nowrap; }
.rc-lien { color: #1d2b44; font-weight: 500; text-decoration: none; }
.rc-lien:hover { color: var(--u-accent); text-decoration: underline; }
.rc-legende { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .6rem; color: #8a93a3; font-size: var(--txt-xs); }
.rc-legende i { display: inline-block; width: .9rem; height: .55rem; margin-right: .3rem; border-radius: 2px; background: var(--u-accent); }
.rc-legende i.rc-l-classe { width: 3px; height: .8rem; background: #fff; box-shadow: 0 0 0 1px #1d2b44; }
.rc-legende i.rc-l-pale { background: #b5bdcb; }
.rc-matieres { display: grid; gap: .65rem; }
.rc-matiere { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) 5.6rem; gap: .8rem; align-items: center; font-size: var(--txt-s); }
.rc-nom { color: #44516a; line-height: 1.3; }
.rc-piste { position: relative; height: .7rem; border-radius: 999px; background: #eef1f6; }
.rc-barre { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--u-accent); }
.rc-classe { position: absolute; top: -.3rem; bottom: -.3rem; width: 3px; margin-left: -1px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1px #1d2b44; }
.rc-dix { position: absolute; top: -.35rem; bottom: -.35rem; left: 50%; border-left: 1px dashed #c9d1df; }
.rc-val { text-align: right; }
.rc-val b { display: block; color: #1d2b44; font-weight: 500; }
.rc-val small { color: #8a93a3; font-size: var(--txt-xs); white-space: nowrap; }
.rc-classement { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; font-size: var(--txt-s); }
.rc-classement li { display: flex; justify-content: space-between; gap: .8rem; padding: .45rem .7rem; border-radius: 8px; background: #f8f9fc; color: #44516a; }
.rc-classement b { color: #1d2b44; font-weight: 500; white-space: nowrap; }
.rc-radar { display: block; width: 100%; max-width: 22rem; margin: 0 auto; }
.rc-courbe { display: block; width: 100%; max-width: 32rem; }
#rc-recap svg text { fill: #8a93a3; font-size: 11px; }
.rc-grille { fill: none; stroke: #eef1f6; }
.rc-poly-classe { fill: none; stroke: #8a93a3; stroke-width: 1.5; stroke-dasharray: 4 3; }
.rc-poly-eleve { fill: color-mix(in srgb, var(--u-accent) 14%, transparent); stroke: var(--u-accent); stroke-width: 2; }
.rc-point { fill: var(--u-accent); }
.rc-ligne-eleve { fill: none; stroke: var(--u-accent); stroke-width: 2.5; }
.rc-ligne-classe { fill: none; stroke: #b5bdcb; stroke-width: 2; stroke-dasharray: 5 4; }
.rc-multiples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.rc-multiple { padding: .7rem .8rem; border-radius: 10px; background: #f8f9fc; }
.rc-multiple svg { display: block; width: 100%; height: 2.8rem; }
.rc-multiple-t { display: flex; justify-content: space-between; gap: .5rem; font-size: var(--txt-s); }
.rc-multiple-t span { overflow: hidden; color: #44516a; text-overflow: ellipsis; white-space: nowrap; }
.rc-multiple-t b { color: #1d2b44; font-weight: 500; }
.rc-multiple-v { display: flex; justify-content: space-between; color: #8a93a3; font-size: var(--txt-xs); }
.rc-acc { border-top: 1px solid #eef1f6; }
.rc-acc:last-child { border-bottom: 1px solid #eef1f6; }
.rc-bloc > .rc-acc { border: 0; }
.rc-acc > summary { display: flex; align-items: center; gap: .8rem; padding: .7rem .2rem; cursor: pointer; list-style: none; font-size: var(--txt-m); }
.rc-acc > summary::-webkit-details-marker { display: none; }
.rc-acc-nom { flex: 1; color: #1d2b44; font-weight: 500; }
.rc-acc > summary small { color: #8a93a3; font-size: var(--txt-xs); }
.rc-acc > summary b { color: #1d2b44; font-weight: 500; }
.rc-acc[open] .su-chevron { transform: rotate(180deg); }
.rc-acc > div { padding-bottom: .9rem; }
.rc-barres { display: grid; gap: .5rem; max-width: 40rem; font-size: var(--txt-s); }
.rc-barre-h { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) 3.5rem; gap: .7rem; align-items: center; color: #44516a; }
.rc-barre-h .rc-piste { height: .55rem; }
.rc-barre-h b { color: #1d2b44; font-weight: 500; text-align: right; }
.rc-couverture { max-width: none; }
.rc-couverture .rc-barre-h { grid-template-columns: minmax(0, 1fr) 8rem 4.5rem; }
.rc-annees { display: flex; align-items: flex-end; gap: 1.2rem; min-height: 8rem; padding-bottom: .2rem; border-bottom: 1px solid #e3e8f1; }
.rc-annee { display: grid; justify-items: center; gap: .3rem; color: #8a93a3; font-size: var(--txt-xs); }
.rc-annee b { color: #1d2b44; font-weight: 500; }
.rc-pile { display: flex; flex-direction: column-reverse; width: 2.4rem; min-height: .3rem; border-radius: 4px 4px 0 0; overflow: hidden; }
.rc-p-inj { background: var(--u-accent); }
.rc-p-just { background: color-mix(in srgb, var(--u-accent) 45%, white); }
.rc-p-ret { background: #b5bdcb; }
.rc-legende i.rc-p-inj { background: var(--u-accent); }
.rc-legende i.rc-p-just { background: color-mix(in srgb, var(--u-accent) 45%, white); }
.rc-legende i.rc-p-ret { background: #b5bdcb; }
.rc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1.2rem; }
.rc-kpi { padding: .7rem .9rem; border-radius: 10px; background: #f8f9fc; }
.rc-kpi b { display: block; color: #1d2b44; font-size: var(--txt-l); font-weight: 600; }
.rc-kpi small { color: #8a93a3; font-size: var(--txt-xs); }
.rc-test { margin: .6rem 0 .4rem; font-size: var(--txt-s); }
.rc-test b { color: #1d2b44; font-weight: 500; }
.rc-test small { color: #8a93a3; }
.rc-liste, .rc-journal { margin: 0; padding: 0; list-style: none; font-size: var(--txt-s); }
.rc-liste li { padding: .3rem 0; color: #1d2b44; }
.rc-liste small { display: block; color: #8a93a3; font-size: var(--txt-xs); }
.rc-journal li { display: flex; gap: .8rem; padding: .35rem 0; border-bottom: 1px solid #f1f3f8; color: #44516a; }
.rc-journal small { flex: none; width: 5.5rem; color: #8a93a3; }
/* Les colonnes suivent la place réellement disponible (menu de l'application ouvert ou non) */
#rc-recap .us-sections { container-type: inline-size; }
@container (max-width: 56rem) {
    .rc-deux { grid-template-columns: 1fr; }
    .rc-multiples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 34rem) {
    .rc-deux-egal, .rc-multiples, .rc-kpis { grid-template-columns: 1fr; }
    .rc-matiere { grid-template-columns: minmax(0, 1fr) 5rem; }
    .rc-matiere .rc-piste { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 60em) {
    .rc-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Fiche apprenti côté tuteur (reprend les blocs du récap) */
#tu-fiche { container-type: inline-size; }
.tu-chiffres { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tu-periode { grid-template-columns: 6.5rem minmax(0, 1fr) 5rem; }
.tu-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: .9rem; }
.tu-position { margin: 0 0 .9rem; color: #44516a; font-size: var(--txt-s); }
.tu-btn-ligne { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .9rem; border: 1px solid #d7deea; border-radius: 999px; color: var(--u-accent); font-size: var(--txt-s); font-weight: 600; text-decoration: none; }
.tu-btn-ligne:hover { border-color: var(--u-accent); color: var(--u-accent); }
.tu-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--esp-m); align-items: start; }
.tu-grille .vs-card { margin-bottom: 0; }
.tu-suite { display: inline-flex; align-items: center; gap: .2rem; margin-top: .8rem; color: var(--u-accent); font-size: var(--txt-s); font-weight: 600; text-decoration: none; }
.tu-liens { display: grid; gap: .4rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #eef1f6; }
.tu-lien { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; border-radius: 10px; background: #f8f9fc; color: #1d2b44; font-size: var(--txt-s); text-decoration: none; }
.tu-lien:hover { background: var(--u-soft); color: var(--u-accent); }
.tu-lien > span:last-child { display: inline-flex; align-items: center; color: #8a93a3; }
@container (max-width: 62rem) {
    .tu-chiffres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tu-grille { grid-template-columns: 1fr; }
}
@container (max-width: 34rem) {
    .tu-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Disponibilité des salles : planning d'une journée, une ligne par salle */
.ds-barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.1rem; }
.ds-jour { display: flex; align-items: center; gap: .4rem; }
.ds-jour b { min-width: 14rem; color: #1d2b44; font-size: var(--txt-l); font-weight: 600; text-align: center; }
.ds-rond { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border: 1px solid #d7deea; border-radius: 50%; color: #44516a; text-decoration: none; }
.ds-rond:hover { border-color: var(--u-accent); color: var(--u-accent); }
.ds-pilule { padding: .38rem .85rem; border: 1px solid #d7deea; border-radius: 999px; color: #44516a; font-size: var(--txt-s); font-weight: 600; text-decoration: none; }
.ds-pilule:hover { border-color: var(--u-accent); color: var(--u-accent); }
.ds-outils { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; }
.ds-date { display: flex; align-items: center; gap: .4rem; margin: 0; padding: .3rem .6rem; border: 1px solid #d7deea; border-radius: 8px; color: #44516a; }
.ds-date input { border: 0; background: none; color: #1d2b44; font-size: var(--txt-s); }
.ds-ligne { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1rem; align-items: center; }
.ds-entete { padding-bottom: .4rem; border-bottom: 1px solid #e3e8f1; }
.ds-heures { position: relative; height: 1.2rem; }
.ds-heures span { position: absolute; transform: translateX(-50%); color: #8a93a3; font-size: var(--txt-xs); white-space: nowrap; }
.ds-groupe[hidden] { display: none; }
.ds-groupe-titre { margin: 1rem 0 .3rem; color: #6b7588; font-size: var(--txt-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ds-salle { padding: .35rem 0; border-bottom: 1px solid #f1f3f8; }
.ds-salle:hover { background: #fafbfd; }
.ds-nom b { display: block; color: #1d2b44; font-size: var(--txt-m); font-weight: 500; }
.ds-nom small { color: #8a93a3; font-size: var(--txt-xs); }
/* Libre en vert, occupé en rouge : repérage d'un coup d'œil comme sur l'ancienne page */
#ds-salles { --ds-libre: #e6f4ea; --ds-libre-trait: #cfe8d6; --ds-occupe: #fbe4e4; --ds-occupe-fort: #fad3d3; --ds-occupe-bord: #c0392b; }
.ds-piste { position: relative; height: 3rem; border-radius: 8px; background: var(--ds-libre); }
.ds-h { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ds-libre-trait); }
.ds-maintenant { position: absolute; top: -.3rem; bottom: -.3rem; z-index: 1; width: 2px; background: #1d2b44; }
.ds-cours { position: absolute; top: .2rem; bottom: .2rem; overflow: hidden; padding: .2rem .45rem; border-left: 3px solid var(--ds-occupe-bord); border-radius: 6px; background: var(--ds-occupe); font-size: var(--txt-xs); line-height: 1.25; outline: 0; }
.ds-cours:hover, .ds-cours:focus-visible { background: var(--ds-occupe-fort); }
.ds-cours b { display: block; overflow: hidden; color: #1d2b44; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.ds-cours span { display: block; overflow: hidden; color: #44516a; text-overflow: ellipsis; white-space: nowrap; }
.ds-libre { position: absolute; inset: 0; display: flex; align-items: center; padding-left: .8rem; color: #2e7d4f; font-size: var(--txt-s); font-weight: 500; }
.ds-legende { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1rem; color: #8a93a3; font-size: var(--txt-xs); }
.ds-legende i { display: inline-block; width: 1rem; height: .7rem; margin-right: .35rem; border-left: 3px solid var(--ds-occupe-bord); border-radius: 3px; background: var(--ds-occupe); vertical-align: -.05rem; }
.ds-legende i.ds-l-libre { border: 0; background: var(--ds-libre); box-shadow: inset 0 0 0 1px var(--ds-libre-trait); }
.ds-legende i.ds-l-maintenant { width: 2px; border: 0; background: #1d2b44; }
.ds-bulle { position: fixed; z-index: 1080; width: 17rem; padding: .7rem .85rem; border: 1px solid #e3e8f1; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(20, 35, 70, .12); font-size: var(--txt-s); pointer-events: none; }
.ds-bulle[hidden] { display: none; }
.ds-bulle b { display: block; color: #1d2b44; font-weight: 600; }
.ds-bulle small { display: block; color: #8a93a3; }
.ds-bulle span { display: block; margin-top: .4rem; color: #44516a; }
@media (max-width: 52em) {
    .ds-defile { overflow-x: auto; }
    .ds-planning { min-width: 44rem; }
    .ds-ligne { grid-template-columns: 8rem minmax(0, 1fr); gap: .6rem; }
    .ds-jour b { min-width: 0; }
}

/* Reprographie */
.rp-n { text-align: right !important; white-space: nowrap; }
.vs-table .rp-retard, .rp-retard { color: #b23a2e; font-weight: 500; }
.rp-fichier { display: flex; align-items: center; gap: .3rem; color: #1d2b44; text-decoration: underline; text-decoration-color: #c9d1df; overflow-wrap: anywhere; }
.rp-fichier:hover { color: var(--u-accent); }
.rp-fichier .material-symbols-outlined { flex: none; color: #8a93a3; font-size: 1rem; }
.rp-bloc .ab-filtres { margin-bottom: .9rem; }
.rp-form { display: grid; gap: 1.1rem; }
.rp-label { display: block; margin-bottom: .35rem; color: #1d2b44; font-size: var(--txt-m); font-weight: 600; }
.rp-champ small { display: block; margin-top: .3rem; }
.rp-champ .form-error-message, .rp-champ .invalid-feedback { display: block; }
.rp-deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.rp-fichiers { display: grid; gap: .3rem; margin: .6rem 0 0; padding: 0; list-style: none; font-size: var(--txt-s); }
.rp-fichiers li { display: flex; align-items: center; gap: .4rem; padding: .4rem .6rem; border-radius: 8px; background: #f8f9fc; color: #1d2b44; }
.rp-fichiers li .material-symbols-outlined { color: #8a93a3; font-size: 1rem; }
.rp-fichiers li small { margin-left: auto; color: #8a93a3; }
.rp-options { display: grid; gap: .5rem; }
.rp-bascule { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: .6rem .8rem; border: 1px solid #e3e8f1; border-radius: 10px; color: #1d2b44; font-size: var(--txt-m); cursor: pointer; }
.rp-bascule:hover { border-color: color-mix(in srgb, var(--u-accent) 35%, white); }
.rp-bascule .form-check-input { cursor: pointer; }
.rp-bascule .form-check-input:checked { border-color: var(--u-accent); background-color: var(--u-accent); }
@media (max-width: 36em) { .rp-deux { grid-template-columns: 1fr; } }
.vs-table th.rp-col-fichiers { width: 32%; }

/* Enquêtes */
.eq-n { text-align: right !important; white-space: nowrap; }
.vs-table .eq-off, .eq-off { opacity: .35; cursor: not-allowed; }
.eq-form { display: grid; gap: 0; }
.eq-intro { margin: 0 0 1rem; color: #44516a; font-size: var(--txt-m); }
.eq-progres { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; color: #8a93a3; font-size: var(--txt-s); }
.eq-piste { flex: 1; height: .4rem; border-radius: 999px; background: #eef1f6; }
.eq-piste i { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--u-accent); transition: width .2s; }
.eq-question { margin: 0; padding: 1rem 0; border: 0; }
/* Séparateur en ombre : une bordure de fieldset passerait derrière la légende */
.eq-question + .eq-question { box-shadow: inset 0 1px 0 #eef1f6; }
.eq-question:first-of-type { padding-top: 0; }
.eq-question legend { display: flex; gap: .6rem; float: none; width: auto; margin-bottom: .7rem; padding: 0; color: #1d2b44; font-size: var(--txt-m); font-weight: 500; }
.eq-num { display: inline-grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--u-soft); color: var(--u-accent); font-size: var(--txt-s); font-weight: 600; }
.eq-notes { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: .3rem; margin-left: 2.2rem; }
.eq-notes label { margin: 0; }
.eq-notes input { position: absolute; opacity: 0; pointer-events: none; }
.eq-notes span { display: grid; place-items: center; height: 2.2rem; border: 1px solid #d7deea; border-radius: 8px; color: #44516a; font-size: var(--txt-m); font-weight: 600; cursor: pointer; }
.eq-notes label:hover span { border-color: var(--u-accent); color: var(--u-accent); }
.eq-notes input:focus-visible + span { outline: 2px solid var(--u-accent); outline-offset: 2px; }
.eq-notes input:checked + span { border-color: var(--u-accent); background: var(--u-accent); color: #fff; }
.eq-echelle { display: flex; justify-content: space-between; margin: .3rem 0 0 2.2rem; color: #8a93a3; font-size: var(--txt-xs); }
.eq-question .invalid-feedback, .eq-question .form-error-message { display: block; margin-left: 2.2rem; }
.eq-remarque { margin: .6rem 0 0 2.2rem; }
.eq-remarque summary { color: var(--u-accent); font-size: var(--txt-s); font-weight: 600; cursor: pointer; list-style: none; }
.eq-remarque summary::-webkit-details-marker { display: none; }
.eq-remarque textarea { margin-top: .4rem; }
.eq-obligatoire summary { color: #b42318; cursor: default; }
.eq-chiffres { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.eq-ligne { display: grid; grid-template-columns: minmax(0, 1fr) 14rem 4rem; gap: 1rem; align-items: center; padding: .7rem 0; border-top: 1px solid #eef1f6; font-size: var(--txt-m); }
.eq-ligne:first-of-type { border-top: 0; }
.eq-ligne b { display: block; color: #1d2b44; font-weight: 500; }
.eq-ligne small { display: block; color: #8a93a3; font-size: var(--txt-xs); }
.eq-barres { display: flex; align-items: flex-end; gap: 2px; height: 2.2rem; }
.eq-barres i { flex: 1; border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--u-accent) 55%, white); }
.eq-repart-l { display: flex; justify-content: space-between; color: #8a93a3; font-size: .68rem; }
.eq-moy { text-align: right; }
.eq-moy b { font-size: var(--txt-l); font-weight: 600; }
.eq-moy small { display: inline; }
.eq-deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--esp-m); align-items: start; }
.eq-deux .vs-card { margin-bottom: 0; }
.eq-deux + .vs-card { margin-top: var(--esp-m); }
.eq-remarques { display: grid; gap: .5rem; }
.eq-rq { padding: .6rem .8rem; border-left: 3px solid var(--u-soft); border-radius: 0 8px 8px 0; background: #f8f9fc; color: #44516a; font-size: var(--txt-s); }
.eq-rq small { display: block; margin-top: .2rem; color: #8a93a3; font-size: var(--txt-xs); }
.eq-ia { display: grid; justify-items: start; gap: .6rem; padding: 1rem; border: 1px dashed #c9d1df; border-radius: 12px; color: #44516a; font-size: var(--txt-s); }
.eq-ia p { margin: 0; }
.eq-ia-texte { width: 100%; color: #1d2b44; font-size: var(--txt-s); }
.eq-ia-texte h3 { margin: .6rem 0 .3rem; font-size: var(--txt-m); font-weight: 600; }
.eq-edition { display: grid; gap: 1.1rem; }
.eq-deux-champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.eq-aide { font-weight: 400; }
.eq-questions { display: grid; gap: .5rem; }
.eq-q { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; gap: .6rem; align-items: center; }
.eq-verrou { display: inline-flex; align-items: center; gap: .2rem; color: #8a93a3; font-size: var(--txt-xs); white-space: nowrap; }
.eq-ajout { display: inline-flex; align-items: center; gap: .3rem; margin-top: .6rem; padding: 0; border: 0; background: none; color: var(--u-accent); font-size: var(--txt-m); font-weight: 600; }
@media (max-width: 52em) {
    .eq-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eq-deux, .eq-deux-champs { grid-template-columns: 1fr; }
    .eq-ligne { grid-template-columns: minmax(0, 1fr) 4rem; }
    .eq-ligne .eq-repart { grid-column: 1 / -1; grid-row: 2; }
    .eq-notes { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-left: 0; }
    .eq-echelle, .eq-remarque, .eq-question .invalid-feedback { margin-left: 0; }
}
.rp-bascule small { display: block; font-size: var(--txt-xs); font-weight: 400; }

/* Tickets : visuel neutre, le même dans tous les univers */
.vs-page.tk-page { --u-accent: #2f3b52; background: #f3f5f9; }
.tk-entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--esp-m); margin-bottom: var(--esp-l); padding: var(--esp-m) var(--esp-l); border: 1px solid #e3e8f1; border-radius: 14px; background: #fff; }
.tk-entete-g { display: flex; align-items: center; gap: .8rem; }
.tk-entete-ic { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: #eceef3; color: var(--u-accent); }
.tk-entete-ic .material-symbols-outlined { font-size: var(--ico-m); }
.tk-retour { display: inline-flex; align-items: center; gap: .2rem; margin-bottom: .2rem; color: #6b7588; font-size: var(--txt-s); text-decoration: none; }
.tk-retour:hover { color: var(--u-accent); }
.tk-retour .material-symbols-outlined { font-size: 1rem; }
.tk-kicker { color: #8a93a3; font-size: var(--txt-s); }
.tk-titre { margin: 0; color: #1d2b44; font-size: var(--txt-xl); font-weight: 600; }
.tk-entete-d { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.tk-stat { min-width: 6.5rem; padding: .3rem .8rem; border-left: 1px solid #e3e8f1; color: #6b7588; font-size: var(--txt-xs); }
.tk-stat b { display: block; color: #1d2b44; font-size: var(--txt-l); font-weight: 600; }
.tk-rappel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: var(--esp-l); padding: .8rem 1rem; border: 1px solid #e3e8f1; border-radius: 12px; background: #fff; color: #1d2b44; font-size: var(--txt-m); }
.tk-bloc .ab-filtres { margin-bottom: .9rem; }
.vs-table th.tk-col-demande { width: auto; }
#tk-a-traiter th:nth-child(1), #tk-traites th:nth-child(1) { width: 5.5rem; }
.tk-page .vs-table th[data-col-l="demandeur"] { width: 8rem; }
.tk-page .vs-table th[data-col-l="etat"] { width: 8.5rem; }
.tk-page .vs-table .vs-table-actions { width: 7rem; }
.tk-categorie { display: block; color: #8a93a3; font-size: var(--txt-xs); }
.tk-coupe { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #1d2b44; overflow-wrap: anywhere; }
.tk-pj { display: inline-flex; align-items: center; gap: .15rem; color: #8a93a3; font-size: var(--txt-xs); overflow-wrap: anywhere; }
.tk-pj .material-symbols-outlined { font-size: .95rem; }
.tk-etat { display: inline-flex; align-items: center; gap: .3rem; width: fit-content; padding: .05rem .55rem; border-radius: 999px; font-size: var(--txt-xs); font-weight: 500; white-space: nowrap; }
.tk-etat::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.ss-quand small .tk-etat { margin-right: .2rem; }
.tk-e-cree { background: #eef0f4; color: #4b5568; }
.tk-e-cours { background: #e6eefb; color: #1f4fa3; }
.tk-e-attente { background: #fbf1e0; color: #95600b; }
.tk-e-resolu { background: #e5f4ea; color: #1d7a3e; }
.tk-e-ferme { background: #e4e7ed; color: #3c4658; }
.tk-e-rejete { background: #fbe9e7; color: #b23a2e; }
.tk-dates { padding: .9rem 1rem .2rem; border-radius: 10px; background: #f6f7fa; }
.tk-dates[hidden] { display: none; }
.tk-fiche { display: grid; grid-template-columns: minmax(0, 1fr) clamp(16rem, 22vw, 20rem); gap: var(--esp-m); align-items: start; }
.tk-fiche > div > .vs-card + .vs-card { margin-top: var(--esp-m); }
.tk-message { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .8rem; }
.tk-message + .tk-message { margin-top: 1.2rem; padding-top: 1.2rem; box-shadow: inset 0 1px 0 #eef1f6; }
.tk-avatar { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #eceef3; color: var(--u-accent); font-size: var(--txt-s); font-weight: 600; }
.tk-message header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; margin-bottom: .35rem; }
.tk-message header b { color: #1d2b44; font-weight: 500; }
.tk-message header span { color: #8a93a3; font-size: var(--txt-s); }
.tk-message p { margin: 0; color: #1d2b44; white-space: pre-line; overflow-wrap: anywhere; }
.tk-attente { display: flex; align-items: center; gap: .4rem; margin: 1.2rem 0 0; padding-top: 1rem; box-shadow: inset 0 1px 0 #eef1f6; color: #6b7588; font-size: var(--txt-m); }
.tk-piece { display: flex; align-items: center; gap: .7rem; width: fit-content; max-width: 100%; margin-top: .8rem; padding: .5rem .7rem; border: 1px solid #e3e8f1; border-radius: 10px; color: #1d2b44; font-size: var(--txt-s); text-decoration: none; overflow-wrap: anywhere; }
.tk-piece:hover { border-color: #c9d1df; color: var(--u-accent); }
.tk-piece img, .tk-vignette { flex: none; display: grid; place-items: center; width: 4.5rem; height: 3.2rem; border-radius: 6px; background: #eceef3; color: #8a93a3; object-fit: cover; }
.tk-piece small { display: block; color: #8a93a3; font-size: var(--txt-xs); }
.tk-infos { margin: 0; font-size: var(--txt-s); }
.tk-infos > div { display: flex; justify-content: space-between; gap: .8rem; padding: .45rem 0; box-shadow: inset 0 -1px 0 #eef1f6; }
.tk-infos > div:last-child { box-shadow: none; }
.tk-infos dt { color: #6b7588; font-weight: 400; }
.tk-infos dd { margin: 0; color: #1d2b44; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.tk-infos dd small { display: block; color: #8a93a3; font-size: var(--txt-xs); font-weight: 400; }
.tk-cote .dr-btn { justify-content: center; width: 100%; margin-top: .6rem; }
.tk-supprimer { color: #b23a2e; }
.tk-prise { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem .9rem; border-radius: 10px; background: #f6f7fa; color: #1d2b44; font-size: var(--txt-m); }
.tk-prise small { display: block; color: #8a93a3; font-size: var(--txt-xs); }
.tk-actions { flex-wrap: wrap; justify-content: space-between; align-items: center; }
.tk-actions > span { display: inline-flex; align-items: center; gap: .4rem; }
.tk-actions .material-symbols-outlined { font-size: 1rem; }
.tk-chiffres { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: var(--esp-m); }
.tk-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) clamp(18rem, 26vw, 24rem); gap: var(--esp-m); align-items: start; }
.tk-colonne { display: grid; gap: var(--esp-m); grid-row: span 2; }
.tk-graph { display: flex; align-items: flex-end; gap: .4rem; height: 11rem; box-shadow: inset 0 -1px 0 #e3e8f1; }
.tk-graph span { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.tk-graph b { color: #6b7588; font-size: var(--txt-xs); font-weight: 500; }
.tk-graph i { width: 100%; border-radius: 4px 4px 0 0; background: #8b97ad; }
.tk-graph-l { display: flex; gap: .4rem; margin-top: .3rem; color: #8a93a3; font-size: var(--txt-xs); }
.tk-graph-l span { flex: 1; min-width: 0; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-barres-h { display: grid; gap: .55rem; font-size: var(--txt-s); }
.tk-barres-h div { display: grid; grid-template-columns: 7rem minmax(0, 1fr) 2.5rem; gap: .5rem; align-items: center; }
.tk-barres-h i { display: block; min-width: 2px; height: .55rem; border-radius: 4px; background: #8b97ad; }
.tk-barres-h b { color: #1d2b44; font-weight: 500; text-align: right; }
.tk-table-simple { width: 100%; border-collapse: collapse; }
.tk-table-simple th { padding: .5rem .6rem; border-bottom: 1px solid #e3e8f1; color: #6b7588; font-size: var(--txt-xs); font-weight: 600; }
.tk-table-simple td { padding: .55rem .6rem; border-bottom: 1px solid #eef1f6; color: #44516a; font-size: var(--txt-s); line-height: 1.3; vertical-align: top; }
.tk-table-simple tbody tr:nth-child(odd) td { background: var(--u-zebre); }
.tk-table-simple tbody tr:hover td { background: var(--u-survol); }
.tk-table-simple .rp-n { width: 1%; padding-left: 1rem; }
.tk-barres-h div:nth-child(1) i { background: #2f6fb7; }
.tk-barres-h div:nth-child(2) i { background: #d9822b; }
.tk-barres-h div:nth-child(3) i { background: #7a5bb5; }
.tk-barres-h div:nth-child(4) i { background: #2e8b6f; }
.tk-barres-h div:nth-child(5) i { background: #1f9ab0; }
.tk-barres-h div:nth-child(6) i { background: #c8434f; }
.tk-graph-delai span:nth-child(1) i { background: #2e8b6f; }
.tk-graph-delai span:nth-child(2) i { background: #7fa650; }
.tk-graph-delai span:nth-child(3) i { background: #d9a62b; }
.tk-graph-delai span:nth-child(4) i { background: #d9822b; }
.tk-graph-delai span:nth-child(5) i { background: #c8434f; }
.tk-graph-mois i { background: #2f6fb7; }
.tk-graph-semaine i { background: #1f9ab0; }
.tk-sous-titre { margin: .9rem 0 .2rem; color: #6b7588; font-size: var(--txt-xs); font-weight: 600; }
@media (max-width: 64em) { .tk-fiche, .tk-grille { grid-template-columns: 1fr; } .tk-colonne { grid-row: auto; } .tk-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Inscriptions aux événements (outil admin) */
#ev-admin .dv-accordeon summary.ev-ligne { grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; }
.ev-date { display: grid; justify-items: center; width: 3.2rem; padding: .3rem 0; border-radius: 10px; background: var(--u-soft); color: var(--u-accent); line-height: 1.1; }
.ev-date b { font-size: var(--txt-l); }
.ev-date small { font-size: var(--txt-xs); }
.ev-infos { display: block; width: 100%; }
.ev-compte { display: grid; justify-items: end; color: #44516a; font-size: var(--txt-s); white-space: nowrap; }
.ev-compte b { color: #1d2b44; font-size: var(--txt-m); }
.ev-compte small { color: #8a93a3; font-size: var(--txt-xs); }
.ev-inscrits, .ev-vide { margin: 0 0 1rem 4rem; }
.ev-inscrits { width: calc(100% - 4rem); }
@media (max-width: 36em) { .ev-inscrits, .ev-vide { margin-left: 0; } .ev-inscrits { width: 100%; } }


/* Administration CFA : écrans en tuiles par famille, sommaire des familles à droite */
.ac-main > .vs-col-side > .vs-card { flex: 0 0 auto; position: sticky; top: var(--esp-m); }
.ac-famille { scroll-margin-top: var(--esp-m); }
.ac-famille:first-of-type .vs-groupe-titre { margin-top: 0; }
.ac-nb { margin-left: .5em; letter-spacing: 0; }
.ac-sommaire { display: grid; }
.ac-sommaire .vs-raccourci:nth-child(odd) { background: var(--u-zebre); }
.ac-sommaire .vs-raccourci:hover { background: var(--u-soft); }
.ac-sommaire .vs-raccourci.ac-estompe { opacity: .4; }
.vs-module[hidden], .ac-famille[hidden] { display: none; }
.ac-vide { margin: var(--esp-m) 0 0; }
@media (max-width: 56em) { .ac-main > .vs-col-side { order: -1; } .ac-main > .vs-col-side > .vs-card { position: static; } }
/* Liens « Tout déplier / Tout replier », repris par CFAcile */
.cf-liens { display: flex; justify-content: flex-end; gap: 1rem; margin-bottom: .3rem; }
.cf-liens button { padding: 0; border: 0; background: none; color: color-mix(in srgb, var(--u-accent) 60%, black); font-size: var(--txt-s); font-weight: 600; }
/* Bilan · dashboard */
.bi-main > .vs-col-side > .vs-card { flex: 0 0 auto; }
.bi-bulletin { display: grid; grid-template-columns: minmax(0, 1fr) clamp(9rem, 14vw, 13rem) auto; gap: var(--esp-m); align-items: center; padding: var(--esp-s) 0; border-bottom: 1px solid #eef1f6; font-size: var(--txt-m); }
.bi-bulletin:last-child { border-bottom: 0; }
.bi-bulletin .vs-periode-barre, .bi-avancement summary .vs-periode-barre { margin-top: .3rem; }
.bi-ok > span { background: #1f7a4a; }
.bi-btn { display: inline-flex; align-items: center; gap: .35em; padding: .45em 1em; border: 1px solid var(--u-accent); border-radius: 999px; background: var(--u-accent); color: var(--u-texte, #fff); font-size: var(--txt-s); font-weight: 650; text-decoration: none; white-space: nowrap; }
.bi-btn:hover { color: var(--u-texte, #fff); filter: brightness(.95); }
.bi-btn-discret { border-color: #d7deea; background: #fff; color: #44516a; }
.bi-btn-discret:hover { color: var(--u-accent); }
.bi-btn .material-symbols-outlined { font-size: var(--ico-s); }
.bi-avancement { border-bottom: 1px solid #eef1f6; }
.bi-avancement:last-child { border-bottom: 0; }
.bi-avancement summary { display: grid; grid-template-columns: minmax(0, 1fr) clamp(8rem, 14vw, 14rem) 5rem 1.5rem; gap: var(--esp-m); align-items: center; padding: var(--esp-s) 0; font-size: var(--txt-m); cursor: pointer; list-style: none; }
.bi-avancement summary::-webkit-details-marker { display: none; }
.bi-avancement summary > .vs-muted, .bi-avancement summary > .vs-tag { justify-self: end; margin: 0; }
.bi-chevron { color: #9aa3b2; transition: transform .2s; }
.bi-avancement[open] .bi-chevron { transform: rotate(180deg); }
.bi-profs { margin: 0 0 var(--esp-s) var(--esp-m); }
.bi-prof { display: grid; grid-template-columns: minmax(0, 1fr) clamp(6rem, 10vw, 10rem) 4.5rem; gap: var(--esp-m); align-items: center; padding: .4rem .6rem; border-radius: 6px; font-size: var(--txt-s); }
.bi-prof:nth-child(odd) { background: var(--u-zebre); }
.bi-prof > .vs-muted:last-child { text-align: right; }
.bi-label { display: block; margin: var(--esp-s) 0 .3rem; font-size: var(--txt-s); font-weight: 650; color: #44516a; }
.bi-recaps .vs-card-title + .bi-label { margin-top: 0; }
@media (max-width: 52em) { .bi-bulletin { grid-template-columns: minmax(0, 1fr); } .bi-avancement summary { grid-template-columns: minmax(0, 1fr) auto 1.5rem; } .bi-avancement summary > .vs-periode-barre { grid-column: 1 / -1; grid-row: 2; } .bi-prof { grid-template-columns: minmax(0, 1fr) auto; } .bi-prof .vs-periode-barre { grid-column: 1 / -1; } }

/* Bilan · saisie des appréciations */
.bu-stats { align-items: center; }
.bu-stats .material-symbols-outlined { font-size: var(--ico-m); }
.bu-barre { display: flex; flex-wrap: wrap; align-items: center; gap: var(--esp-s) var(--esp-m); margin-bottom: var(--esp-m); }
.bu-promo { width: clamp(9rem, 16vw, 13rem); }
.bu-barre .vs-filtre { text-decoration: none; }
/* Barre posée sur le fond de page (et non dans une carte) : fond blanc, onglet actif plein */
.bu-barre .rd-filtres { background: #fff; border: 1px solid #e3e8f1; }
.bu-barre .rd-filtres a { color: #44516a; }
.bu-barre .rd-filtres a:hover { background: var(--u-soft, #f1f4f9); color: #1d2b44; }
.bu-barre .rd-filtres a.actif { background: var(--u-accent); color: var(--u-texte, #fff); box-shadow: none; }
.bu-cadenas { font-size: 1em; vertical-align: -.15em; }
.bu-saisie { display: grid; grid-template-columns: clamp(13rem, 18vw, 16rem) minmax(0, 1fr); gap: var(--esp-m); align-items: start; }
.bu-eleves { position: sticky; top: var(--esp-m); max-height: calc(100vh - 6rem); padding: var(--esp-s); overflow-y: auto; }
.bu-eleve { display: flex; align-items: center; gap: var(--esp-s); padding: .45rem .55rem; border-radius: 8px; color: #1d2b44; font-size: var(--txt-m); text-decoration: none; }
.bu-eleve:hover { background: var(--u-zebre); color: #1d2b44; }
.bu-eleve.actif { background: var(--u-soft); font-weight: 650; }
.bu-eleve-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bu-etat { margin-left: auto; color: #c9d1df; font-size: var(--ico-m); }
.bu-etat-fait { color: #1f7a4a; }
.bu-etat-partiel { color: #c27c0e; }
.bu-avatar { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: #eceef3; color: #44516a; font-size: var(--txt-xs); font-weight: 650; }
.bu-avatar-grand { width: clamp(4.5rem, 7vw, 6rem); height: auto; aspect-ratio: 1; font-size: var(--txt-l); }
img.bu-avatar { object-fit: cover; }
.bu-fiche { margin-bottom: 0; }
.bu-fiche-tete { display: flex; flex-wrap: wrap; align-items: center; gap: var(--esp-s) var(--esp-m); margin-bottom: var(--esp-m); }
.bu-fiche-tete h2 { margin: 0; font-size: var(--txt-l); font-weight: 700; }
.bu-moyenne { padding: .3rem .7rem; border-radius: 8px; background: #f6f7fa; color: #6b7588; font-size: var(--txt-s); }
.bu-moyenne b { color: #1d2b44; font-size: var(--txt-m); }
.bu-nav { display: flex; gap: var(--esp-xs); margin-left: auto; }
.bu-info { display: flex; align-items: center; gap: var(--esp-s); padding: var(--esp-s) var(--esp-m); border-radius: 10px; background: #f6f7fa; color: #44516a; font-size: var(--txt-s); }
.bu-intitule { padding: var(--esp-m); border: 1px solid #e3e8f1; border-radius: 12px; margin-bottom: var(--esp-s); }
.bu-intitule-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--esp-xs) var(--esp-s); margin-bottom: var(--esp-s); font-size: var(--txt-m); }
.bu-enregistre { margin-left: auto; color: #1f7a4a; font-size: var(--txt-s); }
.bu-enregistre .material-symbols-outlined { font-size: 1em; vertical-align: -.15em; }
.bu-generale { border-color: var(--u-line); background: var(--u-zebre); }
.bu-label { display: block; margin: var(--esp-s) 0 .3rem; color: #44516a; font-size: var(--txt-s); font-weight: 650; }
.bu-form > .bu-label:first-child { margin-top: 0; }
.bu-slider { display: flex; align-items: center; gap: var(--esp-m); }
.bu-niveau { flex: 1; max-width: 22rem; accent-color: var(--u-accent); }
.bu-niveau-libelle { min-width: 9rem; font-size: var(--txt-s); font-weight: 650; color: #8a93a3; }
.bu-niveau-1 { color: #b23a2e; }
.bu-niveau-2 { color: #a85a06; }
.bu-niveau-3, .bu-niveau-4 { color: #44516a; }
.bu-niveau-5, .bu-niveau-6 { color: #1f7a4a; }
.bu-compteur { display: block; margin-top: .2rem; color: #8a93a3; font-size: var(--txt-xs); text-align: right; }
.bu-autre { padding: var(--esp-s) var(--esp-m); border-radius: 10px; background: #f6f7fa; font-size: var(--txt-m); }
.bu-autre + .bu-autre { margin-top: var(--esp-s); }
.bu-autre-tete { display: flex; flex-wrap: wrap; align-items: center; gap: var(--esp-s); margin-bottom: var(--esp-xs); }
.bu-autre-tete .vs-tag { margin: 0; }
.bu-retenue { display: inline-flex; align-items: center; gap: .3rem; margin: 0 0 0 auto; color: #44516a; font-size: var(--txt-s); }
.bu-lecture { margin: 0 0 var(--esp-xs); }
.bu-correction { margin-top: var(--esp-s); }
@media (max-width: 52em) { .bu-saisie { grid-template-columns: minmax(0, 1fr); } .bu-eleves { position: static; max-height: 14rem; } .bu-nav { margin-left: 0; } }

/* Bilan · récap promotion */
.rp-choix { width: clamp(10rem, 18vw, 14rem); justify-self: end; }
.rp-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--esp-m); align-items: start; }
.rp-ligne { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 3.5rem; gap: var(--esp-m); align-items: center; padding: .45rem 0; font-size: var(--txt-s); }
.rp-n { text-align: right; font-weight: 650; color: #1d2b44; }
.rp-bas { color: #b23a2e; font-weight: 650; }
.rp-piste { position: relative; height: .6rem; border-radius: 999px; background: #eef1f6; }
.rp-piste i { position: absolute; top: 0; bottom: 0; min-width: 4px; border-radius: 999px; background: color-mix(in srgb, var(--u-accent) 35%, white); }
.rp-piste b { position: absolute; top: -.2rem; width: 2px; height: 1rem; background: var(--u-accent); }
.rp-duo { position: relative; height: .6rem; border-radius: 999px; background: #eef1f6; overflow: hidden; }
.rp-duo i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; }
.rp-t { background: color-mix(in srgb, var(--u-accent) 35%, white); }
.rp-v { background: #1f7a4a; }
.rp-leg { display: inline-block; width: .8rem; height: .5rem; border-radius: 3px; vertical-align: middle; }
.rp-legende { margin: var(--esp-s) 0 0; }
.rp-bloc { border-bottom: 1px solid #eef1f6; }
.rp-bloc:last-of-type { border-bottom: 0; }
.rp-bloc summary { cursor: pointer; list-style: none; }
.rp-bloc summary::-webkit-details-marker { display: none; }
.rp-competences { margin: 0 0 var(--esp-s); padding: 0; list-style: none; font-size: var(--txt-s); }
.rp-competences li { padding: .3rem .5rem; border-radius: 6px; }
.rp-competences li:nth-child(odd) { background: var(--u-zebre); }
.rp-competences .vs-tag { margin: 0 .4rem 0 0; }
@media (max-width: 60em) { .rp-grille { grid-template-columns: minmax(0, 1fr); } .rp-choix { justify-self: stretch; width: 100%; } }
.rp-promos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: var(--esp-s); }
.rp-promo-lien { display: flex; flex-direction: column; gap: .15rem; padding: var(--esp-s) var(--esp-m); border: 1px solid #e3e8f1; border-radius: 10px; color: #1d2b44; text-decoration: none; }
.rp-promo-lien:hover { border-color: var(--u-accent); background: var(--u-zebre); color: #1d2b44; }
.rp-promo-lien small { color: #7b8699; font-size: var(--txt-s); }

/* Récap formateur */
.rf-pieces { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: .35rem; }
.rf-piece { display: flex; align-items: center; gap: .35rem; padding: .35rem .6rem; border-radius: 8px; font-size: var(--txt-s); text-decoration: none; }
.rf-piece .material-symbols-outlined { font-size: var(--ico-s); }
.rf-piece small { margin-left: auto; opacity: .75; white-space: nowrap; }
.rf-ok { background: #e3f3ea; color: #1f7a4a; }
a.rf-ok:hover { color: #155c37; text-decoration: underline; }
.rf-manque { background: #fff; color: #b23a2e; box-shadow: inset 0 0 0 1px #f0c7c2; }
.rf-groupe { margin: var(--esp-s) 0 .2rem; color: #44516a; font-size: var(--txt-s); font-weight: 650; }

/* Bilan · vigilances */
.vg-qui { display: grid; }
.vg-filtres { display: flex; flex-wrap: wrap; align-items: center; gap: var(--esp-s) var(--esp-m); margin-bottom: var(--esp-m); }
.vg-recherche { width: clamp(12rem, 22vw, 18rem); font-size: var(--txt-m); }
.vg-select { width: clamp(11rem, 16vw, 14rem); }
.vg-pieces { display: flex; flex-wrap: wrap; gap: .25rem; max-width: 46rem; }
.vg-piece { display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .55rem; border-radius: 999px; font-size: var(--txt-xs); white-space: nowrap; text-decoration: none; }
.vg-piece a { color: inherit; text-decoration: none; }
.vg-piece a:hover, a.vg-piece:hover { color: inherit; text-decoration: underline; }
.vg-piece small { color: inherit; opacity: .75; }
.vg-ok { background: #e3f3ea; color: #1f7a4a; }
.vg-manque { background: #fff; color: #b23a2e; box-shadow: inset 0 0 0 1px #f0c7c2; }
.vg-valider { background: #f8ecdc; color: #95600b; }
.vg-refuse { background: #f8e2e0; color: #b23a2e; }
.vg-piece button { display: grid; place-items: center; width: 1.2rem; height: 1.2rem; padding: 0; border: 0; border-radius: 50%; background: #fff; color: inherit; cursor: pointer; }
.vg-piece button .material-symbols-outlined { font-size: .85rem; }

/* Bulletins · téléchargement */
.bt-grille { display: grid; grid-template-columns: minmax(0, 1fr) clamp(16rem, 24vw, 20rem); gap: var(--esp-m); align-items: start; }
.bt-resume { position: sticky; top: var(--esp-m); }
.bt-titre { display: flex; align-items: center; gap: var(--esp-s); margin-bottom: var(--esp-m); color: var(--u-accent); font-size: var(--txt-s); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bt-titre .vs-muted { margin-left: auto; letter-spacing: 0; text-transform: none; font-weight: 400; }
.bt-num { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--u-accent); color: var(--u-texte, #fff); font-size: var(--txt-xs); letter-spacing: 0; }
.bt-recherche { max-width: 22rem; margin-bottom: var(--esp-m); }
.bt-promos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: .4rem; }
.bt-promo { display: flex; align-items: center; gap: .6rem; margin: 0; padding: .55rem .7rem; border: 1px solid #e3e8f1; border-radius: 10px; font-size: var(--txt-m); cursor: pointer; }
.bt-promo small { display: block; color: #7b8699; font-size: var(--txt-xs); }
.bt-promo.actif { border-color: var(--u-accent); background: var(--u-soft); }
.bt-promo input, .bt-eleve input, .bt-puce input, .bt-option input { accent-color: var(--u-accent); }
.bt-bloc { padding: var(--esp-m); border: 1px solid #e3e8f1; border-radius: 12px; margin-bottom: var(--esp-s); }
.bt-bloc-tete { display: flex; flex-wrap: wrap; align-items: center; gap: var(--esp-s); margin-bottom: var(--esp-s); }
.bt-bloc-tete .vs-tag { margin: 0; }
.bt-lien { margin-left: auto; padding: 0; border: 0; background: none; color: var(--u-accent); font-size: var(--txt-s); font-weight: 650; cursor: pointer; }
.bt-label-eleves .bt-lien { margin-left: .4rem; }
.bt-puces { display: flex; flex-wrap: wrap; gap: .3rem; }
.bt-puce { display: inline-flex; align-items: center; gap: .3rem; margin: 0; padding: .3rem .75rem; border: 1px solid #d7deea; border-radius: 999px; background: #fff; color: #44516a; font-size: var(--txt-s); cursor: pointer; }
.bt-puce.actif { border-color: var(--u-accent); background: var(--u-soft); color: #1d2b44; font-weight: 650; }
.bt-puce .material-symbols-outlined { font-size: var(--ico-s); }
.bt-puce small { color: #8a93a3; }
.bt-eleves { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: .2rem .6rem; }
.bt-eleve { display: flex; align-items: center; gap: .45rem; margin: 0; padding: .3rem .45rem; border-radius: 8px; font-size: var(--txt-s); cursor: pointer; }
.bt-eleve:nth-child(odd) { background: var(--u-zebre); }
.bt-option { display: flex; gap: .55rem; align-items: flex-start; margin: var(--esp-m) 0; color: #44516a; font-size: var(--txt-s); }
.bt-option input { margin-top: .2rem; }
.bt-telecharger { justify-content: center; width: 100%; padding: .65em 1em; font-size: var(--txt-m); }
.bt-telecharger:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.bt-aide { margin: var(--esp-s) 0 0; font-size: var(--txt-xs); text-align: center; }
.bt-erreur { display: flex; gap: .5rem; margin: var(--esp-s) 0 0; padding: .6rem .8rem; border-radius: 10px; background: #f8e2e0; color: #b23a2e; font-size: var(--txt-s); }
.bt-erreur[hidden] { display: none; }
@media (max-width: 60em) { .bt-grille { grid-template-columns: minmax(0, 1fr); } .bt-resume { position: static; } }

/* Prof'Admin · dashboard */
.pa-main > .vs-col-side > .vs-card { flex: 0 0 auto; }
.pa-plein { grid-template-columns: minmax(0, 1fr); }
.pa-plein > .vs-col-side:empty { display: none; }
.pa-stats { align-items: center; }
.pa-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--esp-m); align-items: center; padding: var(--esp-s) 0; border-bottom: 1px solid #eef1f6; font-size: var(--txt-m); }
.pa-ligne:last-of-type { border-bottom: 0; }
.pa-ligne[hidden] { display: none; }
.pa-ligne > .vs-tag { margin: 0; }
.pa-actions { display: flex; gap: .35rem; justify-content: flex-end; }
.pa-avant { margin-bottom: var(--esp-s); padding: var(--esp-s) var(--esp-m); border: 1px solid var(--u-line); border-radius: 12px; background: var(--u-soft); }
.pa-avant .pa-ligne { border-bottom-color: var(--u-line); }
.pa-retard { color: #b23a2e; font-weight: 650; }
.pa-tag-traitement { background: #e7eefb; color: #2c4f8f; }
.pa-texte { margin: 0 0 var(--esp-s); color: #44516a; font-size: var(--txt-s); }
.pa-chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--esp-s); }
.pa-chiffre { padding: var(--esp-s) var(--esp-m); border-radius: 10px; background: #f6f7fa; }
.pa-chiffre small { display: block; color: #6b7588; font-size: var(--txt-xs); }
.pa-chiffre b { font-size: var(--txt-l); }
@media (max-width: 52em) { .pa-ligne { grid-template-columns: minmax(0, 1fr) auto; } .pa-actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* Prof'Admin · factures */
.fa-grille { display: grid; grid-template-columns: minmax(0, 1fr) clamp(16rem, 26vw, 22rem); gap: var(--esp-m); align-items: start; }
.fa-deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--esp-m); }
.fa-trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--esp-m); align-items: start; }
/* Matières : pastille aux couleurs du planning ; Intitulés : carte des filtres */
.mt-apercu { display: inline-block; padding: .3em .8em; border-radius: 8px; font-weight: 650; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(20, 35, 70, .08); }
.mt-apercu:hover { filter: brightness(.96); }
.it-filtres { margin-bottom: var(--esp-l); }
.it-filtres .vs-filtres { margin-left: 0; }
.pc-statuts { margin-left: 0; }
/* Choix Select2 très longs (blocs de compétences) : retour à la ligne au lieu d'élargir la page */
.vs-card .select2-selection__choice, .vs-card .select2-selection__choice__display { white-space: normal; max-width: 100%; }
/* Sessions : périodes d'examen (cartes générées par lazy_form_collection.js) */
.sf-periodes .card { border: 1px solid #e3e8f1; border-radius: 10px; box-shadow: none; }
.sf-periodes .card-body { display: flex; flex-wrap: wrap; align-items: end; gap: var(--esp-s); }
.sf-periodes .card-body > div, .sf-periodes .card-body fieldset { flex: 1 1 18rem; margin: 0; }
.sf-periodes .card-body .btn-danger { margin-top: 0 !important; }
.fa-champ { margin-bottom: var(--esp-m); }
.fa-champ .bu-label, .fa-champ > label.bu-label { margin-top: 0; }
/* Mon compte : champ pleine largeur, photo de profil */
.mc-large { grid-column: 1 / -1; }
.mc-photo { text-align: center; }
.mc-photo .bu-label, .mc-photo input { text-align: left; }
.mc-avatar { display: grid; place-items: center; width: clamp(5rem, 8vw, 6.5rem); aspect-ratio: 1; margin: 0 auto var(--esp-m); border-radius: 50%; object-fit: cover; }
.mc-initiales { background: color-mix(in srgb, var(--u-accent, #1e3a7b) 10%, white); color: var(--u-accent, #1e3a7b); font-size: var(--txt-xl, 1.6rem); font-weight: 900; }
/* Veille perso : filtres, textes longs, pièces jointes */
.vp-filtres { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--esp-s); }
.vp-filtres .select2-container { width: min(100%, 16rem) !important; }
.vp-description { min-width: 16rem; max-width: 34rem; }
.vp-exploitation { max-width: 22rem; }
.vp-texte { white-space: pre-line; }
.vp-pieces { list-style: none; margin: 0 0 var(--esp-m); padding: 0; }
.vp-pieces li { display: flex; align-items: center; justify-content: space-between; gap: var(--esp-s); padding: var(--esp-xs) 0; border-bottom: 1px solid #eef1f6; }
.fa-champ .vs-muted { display: block; margin-top: .25rem; }
.fa-puces { display: flex; flex-wrap: wrap; gap: .3rem; }
.fa-puce { display: inline-flex; align-items: center; gap: .35rem; margin: 0; padding: .3rem .8rem; border: 1px solid #d7deea; border-radius: 999px; background: #fff; color: #44516a; font-size: var(--txt-s); cursor: pointer; }
.fa-puce:has(input:checked) { border-color: var(--u-accent); background: var(--u-soft); color: #1d2b44; font-weight: 650; }
.fa-puce input { accent-color: var(--u-accent); }
.fa-depot { position: relative; display: grid; place-items: center; gap: .25rem; width: 100%; margin: 0; padding: var(--esp-l); border: 2px dashed #d7deea; border-radius: 12px; color: #7b8699; text-align: center; font-size: var(--txt-s); cursor: pointer; }
.fa-depot:hover, .fa-depot:focus-within { border-color: var(--u-accent); }
.fa-depot .material-symbols-outlined { font-size: var(--ico-l); color: var(--u-accent); }
.fa-depot b { color: #1d2b44; }
.fa-depot u { color: var(--u-accent); font-weight: 650; text-decoration: none; }
.fa-depot .fa-input-fichier { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fa-depot .fa-fichier { color: #1d2b44; font-weight: 650; }
.fa-bascule { display: flex; align-items: center; gap: .5rem; margin: var(--esp-s) 0; padding-left: 2.5em; font-size: var(--txt-s); }
.fa-bascule .form-check-input:checked { background-color: var(--u-accent); border-color: var(--u-accent); }
.fa-envoyer { justify-content: center; width: 100%; margin-top: var(--esp-s); padding: .7em 1em; font-size: var(--txt-m); }
.fa-envoyer:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.fa-message { padding: var(--esp-s) var(--esp-m); border-radius: 10px; font-size: var(--txt-s); }
.fa-message p { display: flex; gap: .4rem; margin: 0; }
.fa-message ul { margin: var(--esp-s) 0 0; padding-left: 1.1rem; }
.fa-message li + li { margin-top: .35rem; }
.fa-ko { background: #f8e2e0; color: #b23a2e; }
.fa-ko a { color: #b23a2e; font-weight: 650; }
.fa-ok { background: #e3f3ea; color: #1f7a4a; }
.fa-info { background: #f6f7fa; color: #44516a; }
.fa-etapes { display: flex; margin: 0 0 var(--esp-m); padding: 0; list-style: none; counter-reset: etape; }
.fa-etapes li { position: relative; flex: 1; padding-top: 1.5rem; color: #8a93a3; font-size: var(--txt-s); text-align: center; }
.fa-etapes li::before { content: ""; position: absolute; top: .45rem; left: 0; right: 0; height: 3px; background: #eceef3; }
.fa-etapes li::after { content: ""; position: absolute; top: .12rem; left: 50%; width: .9rem; height: .9rem; margin-left: -.45rem; border-radius: 50%; background: #d7deea; }
.fa-etapes li.fait { color: #1d2b44; font-weight: 650; }
.fa-etapes li.fait::before, .fa-etapes li.fait::after { background: var(--u-accent); }
.fa-etapes small { display: block; color: #8a93a3; font-weight: 400; }
.fa-remarque { margin: 0 0 var(--esp-s); padding: var(--esp-s) var(--esp-m); border-radius: 10px; background: #f6f7fa; font-size: var(--txt-m); }
.fa-lien { color: var(--u-accent); font-weight: 650; }
@media (max-width: 60em) { .fa-grille, .fa-deux, .fa-trois { grid-template-columns: minmax(0, 1fr); } }

/* Prof'Admin · conventions */
.cv-actions-detail { display: grid; gap: .4rem; }
.cv-actions-detail .bi-btn { justify-content: center; padding: .55em 1em; }
.cv-danger { color: #b23a2e; }
.cv-danger:hover { color: #b23a2e; border-color: #f0c7c2; }
.cv-code { max-width: 60%; overflow-wrap: anywhere; text-align: right; }
.cv-periode b { white-space: nowrap; }

/* Prof'Admin · reporting */
.rf-filtres { display: grid; grid-template-columns: 11rem minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: var(--esp-m); align-items: end; }
.rf-filtres .bu-label { margin-top: 0; }
.rf-filtres .bi-btn { padding: .6em 1.1em; }
.rf-grille { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.rf-colonnes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; align-items: end; height: 12rem; padding-top: 1.5rem; border-bottom: 1px solid #c9d1df; }
.rf-col { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 100%; outline: none; }
.rf-col i { display: block; width: 62%; border-radius: 4px 4px 0 0; background: var(--u-accent); }
.rf-col:hover i, .rf-col:focus i { background: color-mix(in srgb, var(--u-accent) 80%, black); }
.rf-bulle { position: absolute; bottom: calc(var(--h) + .35rem); left: 50%; z-index: 2; padding: .3rem .55rem; border-radius: 8px; background: #1d2b44; color: #fff; font-size: var(--txt-xs); white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity .1s; }
.rf-col:first-child .rf-bulle { left: 0; transform: none; }
.rf-col:last-child .rf-bulle { left: auto; right: 0; transform: none; }
.rf-col:hover .rf-bulle, .rf-col:focus .rf-bulle { opacity: 1; }
.rf-mois { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; margin-top: .35rem; color: #8a93a3; font-size: var(--txt-xs); text-align: center; }
.rf-empile { display: flex; gap: 2px; height: .9rem; margin: .3rem 0 var(--esp-m); }
.rf-empile i { display: block; height: 100%; }
.rf-empile i:first-child { border-radius: 4px 0 0 4px; }
.rf-empile i:last-child { border-radius: 0 4px 4px 0; }
.rf-att { background: #e09a3e; }
.rf-trait { background: #4f74b8; }
.rf-ferme { background: #2e9460; }
.rf-legende { display: grid; gap: .4rem; font-size: var(--txt-s); }
.rf-legende div { display: flex; align-items: center; gap: .5rem; }
.rf-legende b { margin-left: auto; }
.rf-carre { flex: none; width: .7rem; height: .7rem; border-radius: 3px; }
.rf-separe { margin-top: var(--esp-m); padding-top: var(--esp-m); border-top: 1px solid #eef1f6; }
.rf-barres { display: grid; gap: .45rem; }
.rf-barre { display: grid; grid-template-columns: clamp(9rem, 16vw, 13rem) minmax(0, 1fr) 4.5rem; gap: var(--esp-m); align-items: center; font-size: var(--txt-s); }
.rf-barre > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-barre > b { text-align: right; }
.rf-piste { height: .7rem; border-radius: 4px; background: #f1f3f7; overflow: hidden; }
.rf-piste i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--u-accent); }
.rf-barre:hover .rf-piste i { background: color-mix(in srgb, var(--u-accent) 80%, black); }
.rf-recherche { margin-bottom: var(--esp-m); }
@media (max-width: 60em) { .rf-filtres, .rf-grille { grid-template-columns: minmax(0, 1fr); } }

/* CFAcile */
.cf-outils { display: flex; flex-wrap: wrap; align-items: center; gap: var(--esp-s) var(--esp-m); margin-bottom: var(--esp-m); }
.cf-outils .vg-recherche { width: clamp(12rem, 20vw, 16rem); }
.cf-liens { display: flex; gap: var(--esp-m); margin-left: auto; font-size: var(--txt-s); }
.cf-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 1fr); gap: var(--esp-m); overflow-x: auto; align-items: start; padding-bottom: var(--esp-s); }
.cf-colonne { padding: var(--esp-s); border-radius: 12px; background: color-mix(in srgb, var(--u-accent) 6%, #eef1f6); outline: 2px dashed transparent; transition: outline-color .15s; }
.cf-colonne.cf-cible { outline-color: var(--u-accent); }
.cf-col-tete { display: flex; align-items: center; gap: .5rem; margin-bottom: var(--esp-s); padding: .2rem .2rem 0; color: #44516a; font-size: var(--txt-xs); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.cf-col-tete b { margin-left: auto; padding: .05rem .45rem; border-radius: 999px; background: #fff; }
.cf-pastille { display: inline-block; flex: none; width: .7rem; height: .7rem; border-radius: 50%; }
.cf-tache { position: relative; margin-bottom: var(--esp-s); padding: .7rem .8rem; border: 1px solid #e3e8f1; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(20, 35, 70, .05); cursor: pointer; }
.cf-tache:hover, .cf-tache:focus { border-color: var(--u-line); outline: none; box-shadow: 0 2px 8px rgba(20, 35, 70, .1); }
.cf-tache[draggable="true"] { cursor: grab; }
.cf-tache.cf-retard { border-left: 3px solid #b23a2e; }
.cf-tache.cf-deplace { opacity: .4; }
.cf-tache[hidden] { display: none; }
.cf-tache b { display: block; font-size: var(--txt-m); }
.cf-tache p { margin: .2rem 0 .45rem; color: #6b7588; font-size: var(--txt-s); }
.cf-pied { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; color: #8a93a3; font-size: var(--txt-xs); }
.cf-pied .material-symbols-outlined { font-size: 1em; vertical-align: -.1em; }
.cf-en-retard { color: #b23a2e; font-weight: 650; }
.cf-indic { display: inline-block; padding: .05rem .4rem; border-radius: 6px; background: var(--u-soft); color: var(--u-accent); font-size: var(--txt-xs); font-weight: 650; }
.cf-avatars { display: flex; margin-left: auto; }
.cf-av { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; margin-left: -.3rem; border: 2px solid #fff; border-radius: 50%; background: #eceef3; color: #44516a; font-size: .6rem; font-weight: 700; }
.cf-archiver.fa-lien { margin-top: .35rem; padding: 0; border: 0; background: none; font-size: var(--txt-xs); cursor: pointer; }
.cf-ajouter { display: block; width: 100%; padding: .45rem; border: 1px dashed #c9d1df; border-radius: 10px; background: transparent; color: #6b7588; font-size: var(--txt-s); cursor: pointer; }
.cf-ajouter:hover { border-color: var(--u-accent); color: var(--u-accent); }
.cf-modale .modal-header { border-bottom-color: #eef1f6; }
.cf-modale .modal-title { font-size: var(--txt-l, 1.05rem); font-weight: 700; }
.cf-modale-pied { gap: .4rem; }
.cf-gauche { display: flex; gap: .4rem; margin-right: auto; }
.cf-champ { margin-bottom: .85rem; }
.cf-champ .bu-label { margin-top: 0; }
.cf-form .fa-puce .cf-pastille { width: .6rem; height: .6rem; }
.cf-page-form { max-width: 52rem; }
.cf-modale .select2-selection__choice { max-width: 100%; white-space: normal; text-align: left; }
.cf-etat { display: inline-block; padding: .1rem .5rem; border-radius: 999px; background: #f1f3f7; color: #6b7588; font-size: var(--txt-xs); font-weight: 650; }
.cf-etat-ok { background: var(--u-soft); color: var(--u-accent); }
.cf-pied-form { display: flex; justify-content: flex-end; gap: .5rem; margin-top: var(--esp-s); }
.cf-pied-form .cf-supprimer-reunion { margin-right: auto; }
.cf-reunion { display: grid; grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr); gap: var(--esp-m); align-items: start; }
.cf-reunion-principal { display: grid; gap: var(--esp-m); }
.cf-reunion .vs-card-title { display: flex; align-items: center; gap: .4rem; }
.cf-onglets { margin: var(--esp-s) 0; }
.cf-statut-cr { margin-left: auto; font-weight: 500; }
.cf-texte { white-space: normal; margin: 0; }
.cf-participant { display: flex; align-items: center; gap: .55rem; padding: .5rem 0; border-bottom: 1px solid #eef1f6; font-size: var(--txt-s); }
.cf-participant .cf-av { width: 2rem; height: 2rem; margin: 0; border: 0; background: var(--u-soft); color: var(--u-accent); font-size: var(--txt-xs); }
.cf-participant-nom { flex: 1; min-width: 0; }
.cf-presence { color: #8a93a3; font-size: var(--txt-xs); white-space: nowrap; }
.cf-presence.cf-present { color: #2e7d4f; font-weight: 650; }
.cf-participants > small { display: block; margin-top: var(--esp-s); }
@media (max-width: 62rem) { .cf-reunion { grid-template-columns: 1fr; } }
.cf-pied-form .fa-envoyer { flex: none; width: auto; margin: 0; }
.cf-couleur { width: 4rem; height: 2.4rem; padding: .2rem; }
.cf-champ-case { display: flex; flex-direction: column; justify-content: center; }
.cf-case { display: flex; align-items: center; gap: .5rem; margin: 0; font-weight: 600; cursor: pointer; }
.cf-case input { width: 1.1rem; height: 1.1rem; accent-color: var(--u-accent); }
.rf-etendue { position: relative; display: block; width: clamp(5rem, 9vw, 8rem); height: .5rem; border-radius: 4px; background: #f1f3f7; }
.rf-etendue i { position: absolute; top: 0; bottom: 0; min-width: 2px; border-radius: 4px; background: color-mix(in srgb, var(--u-accent) 35%, white); }
.rf-etendue b { position: absolute; top: -.2rem; width: 2px; height: .9rem; margin-left: -1px; background: var(--u-accent); }
.rf-devoir > * { max-width: clamp(12rem, 22vw, 20rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Centre de notifications */
.nt-grille { display: grid; grid-template-columns: minmax(0, 1fr) clamp(18rem, 28vw, 26rem); gap: var(--esp-m); align-items: start; }
.nt-grille [hidden] { display: none !important; }
.nt-grille .vs-filtres { margin-left: 0; }
.nt-tout-lu { margin-left: auto; }
.nt-jour { margin: var(--esp-m) 0 var(--esp-xs); color: #7b8699; font-size: var(--txt-xs); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.nt-liste > .nt-jour:first-child { margin-top: 0; }
.nt-rafraichir { margin: 0 0 var(--esp-xs); }
.nt-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--esp-m); align-items: start; width: 100%; padding: var(--esp-s) var(--esp-m); border: 0; border-radius: 10px; background: transparent; color: inherit; text-align: left; }
.nt-liste .nt-item:nth-child(odd of .nt-item:not([hidden])) { background: color-mix(in srgb, var(--u-accent) 4%, white); }
.nt-liste .nt-item:hover, .nt-liste .nt-item.nt-sel { background: var(--u-soft); }
.nt-item.nt-sel { box-shadow: inset 3px 0 0 var(--u-accent); }
.nt-item:focus-visible { outline: 2px solid var(--u-accent); outline-offset: -2px; }
.nt-corps { display: grid; gap: .15em; min-width: 0; }
.nt-msg { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #44516a; font-size: var(--txt-m); }
.nt-non-lue .nt-msg { color: #1d2b44; font-weight: 650; }
.nt-heure { display: flex; align-items: center; gap: .4em; color: #8a93a3; font-size: var(--txt-xs); white-space: nowrap; }
.nt-point { display: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--u-accent); }
.nt-non-lue .nt-point { display: inline-block; }
.nt-detail { position: sticky; top: var(--esp-m); }
.nt-detail-cat { display: flex; align-items: center; gap: var(--esp-s); margin-bottom: var(--esp-m); }
.nt-detail-msg { margin: 0 0 var(--esp-m); font-size: var(--txt-l); line-height: 1.55; overflow-wrap: anywhere; }
.nt-detail-texte { margin: var(--esp-m) 0 0; font-size: var(--txt-m); color: #44516a; white-space: pre-line; }
.nt-detail-corps .nt-si-lue, .nt-detail-corps.nt-lue .nt-si-non-lue { display: none !important; }
.nt-detail-corps.nt-lue .nt-si-lue { display: inline-block !important; }
.nt-actions { display: grid; gap: var(--esp-xs); margin-top: var(--esp-m); }
.nt-btn { display: inline-flex; align-items: center; justify-content: center; gap: .35em; padding: .45em 1em; border: 1px solid #d7deea; border-radius: 999px; background: #fff; color: #44516a; font-size: var(--txt-s); font-weight: 650; text-decoration: none; }
.nt-btn:hover { border-color: var(--u-accent); color: var(--u-accent); }
.nt-btn:disabled { opacity: .6; }
.nt-btn .material-symbols-outlined { font-size: var(--ico-s); }
.nt-btn-plein, .nt-btn-plein:hover { border-color: var(--u-accent); background: var(--u-accent); color: var(--u-texte, #fff); }
.nt-btn-danger { color: #b23a2e; }
.nt-plus { width: 100%; margin-top: var(--esp-m); }
@media (max-width: 62rem) { .nt-grille { grid-template-columns: 1fr; } .nt-detail { position: static; } }
.nt-form-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--esp-l); align-items: start; }
.nt-form .vs-card-title { margin-bottom: var(--esp-s); }
.nt-form .sa-erreur { margin: 0 0 var(--esp-s); }
@media (max-width: 56em) { .nt-form-grille { grid-template-columns: 1fr; } }
.nt-form-categorie { max-width: 40rem; }
.nt-aide-table { margin: var(--esp-s) 0 0; }

/* En-tête : univers actif (à gauche) et métier actif (à droite, avant les accès rapides) */
.hu-bouton { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid color-mix(in srgb, var(--hu-c) 30%, white); border-radius: 999px; background: color-mix(in srgb, var(--hu-c) 8%, white); color: var(--hu-c); padding: .3rem .6rem .3rem .9rem; font-size: .9rem; font-weight: 700; }
.hu-bouton:hover, .hu-bouton[aria-expanded="true"] { background: color-mix(in srgb, var(--hu-c) 14%, white); }
.hu-bouton.hu-seul { padding-right: .9rem; }
.hu-bouton .material-symbols-outlined { font-size: 1.2rem; transition: transform .15s; }
.hu-bouton[aria-expanded="true"] .material-symbols-outlined { transform: rotate(180deg); }
.hu-libelle { color: #66748a; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hu-menu { min-width: 17rem; padding: .35rem; border: 1px solid #e3e8f1; border-radius: 12px; }
.hu-univers { display: block; padding: .5rem .7rem .5rem .9rem; border-left: 4px solid var(--hu-c); border-radius: 4px 8px 8px 4px; color: #1d2b44; text-decoration: none; }
.hu-univers + .hu-univers, li + li .hu-univers { margin-top: .15rem; }
.hu-univers:hover, .hu-univers:focus-visible { background: #f4f6f9; color: #1d2b44; text-decoration: none; }
.hu-univers b { display: block; font-size: .9rem; }
.hu-univers span { display: block; color: #66748a; font-size: .76rem; line-height: 1.3; }
.hu-univers.actif { background: color-mix(in srgb, var(--hu-c) 9%, white); }
.hu-univers.actif b { color: var(--hu-c); }
.btn.hm-bouton { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid #e3e8f1; border-radius: 999px; background: #fff; color: #44516a; font-weight: 600; }
.btn.hm-bouton:hover, .btn.hm-bouton[aria-expanded="true"] { border-color: #c9d2e0; background: #f4f6f9; color: #1d2b44; }
.hm-bouton .material-symbols-outlined { font-size: 1.1rem; }
.hm-menu { padding: .35rem; border: 1px solid #e3e8f1; border-radius: 12px; }
.hm-menu .dropdown-item { border-radius: 8px; color: #44516a; }
.hm-menu .dropdown-item:hover, .hm-menu .dropdown-item:focus-visible { background: #f4f6f9; color: #1d2b44; }
.hm-menu .dropdown-item.active, .hm-menu .dropdown-item:active { background: #eef1f6; color: #1d2b44; font-weight: 600; cursor: default; }

/* Menu profil : en-tête pastel à la couleur de l'univers actif */
.dropdown-menu-header .mp-entete { background: color-mix(in srgb, var(--mp-c) 10%, white); border-bottom: 3px solid var(--mp-c); color: #1d2b44; }
.mp-entete .widget-heading { color: #1d2b44; }
.mp-entete .mp-metier { color: var(--mp-c); font-weight: 600; }
.mp-entete .mp-deconnexion { color: var(--mp-c); }
.dropdown-menu:has(> .dropdown-menu-header .mp-entete) { overflow: hidden; border: 1px solid #e3e8f1; box-shadow: 0 14px 36px rgba(29, 43, 68, .26), 0 3px 8px rgba(29, 43, 68, .12); }

/* Mes compétences (formateur, lecture seule) */
.mc-aide { margin: 0; font-size: var(--txt-xs); }
.mc-formation { display: block; font-weight: 400; font-size: var(--txt-xs); }
.mc-corps { display: grid; gap: var(--esp-s); padding: var(--esp-m) var(--esp-l); }
.mc-noeud[hidden] { display: none; }
.mc-bloc { padding: var(--esp-s) var(--esp-m); border: 1px solid #e3e8f1; border-radius: 10px; }
.mc-bloc.mc-mien { border-left: 3px solid var(--u-accent); }
.mc-bloc-tete, .mc-ligne { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; }
.mc-bloc-tete .mc-texte { color: #1d2b44; font-weight: 650; }
.mc-ordre { flex: 0 0 auto; min-width: 1.6rem; color: #8a93a3; font-size: var(--txt-xs); font-weight: 700; font-variant-numeric: tabular-nums; }
.mc-texte { flex: 1 1 18rem; min-width: 0; color: #8a93a3; font-size: var(--txt-s); }
.mc-mien > .mc-ligne > .mc-texte { color: #1d2b44; font-weight: 600; }
.mc-arbre { margin: .35rem 0 0; padding: 0 0 0 1rem; list-style: none; border-left: 1px solid #eef1f6; }
.mc-arbre > li { padding: .3rem 0 .3rem .6rem; }
.mc-arbre > li:nth-child(even) { background: var(--u-zebre); border-radius: 0 6px 6px 0; }
.mc-tag { background: var(--u-soft); color: var(--u-accent); font-size: var(--txt-xs); }
.mc-resp { background: #eef1f6; color: #44516a; font-size: var(--txt-xs); }

/* Fiche devoir : notes en lecture */
.dv-notes-lecture { width: 100%; }
.dv-notes-lecture tbody tr:nth-child(odd) td { background: var(--u-zebre); }
.dv-notes-lecture tbody tr:hover td { background: var(--u-survol, var(--u-soft)); }
.dv-tag-absent { background: #eef1f6; color: #44516a; }

/* QG RH */
.qg-ensemble { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: var(--esp-l); margin-bottom: var(--esp-l); }
.qg-ensemble > .vs-card { margin-bottom: 0; }
.qg-outil > span:first-child { display: grid; min-width: 0; }
.qg-outils-large .vs-outils { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.qg-droite { margin-left: auto; }
.qg-type { display: inline-flex; align-items: center; gap: .45em; }
.qg-form { gap: var(--esp-xl); }
.qg-date { display: flex; flex-wrap: wrap; gap: var(--esp-s); align-items: center; }
.qg-date > input { flex: 1 1 10rem; width: auto; }
.qg-demi { display: inline-flex; padding: .2rem; border-radius: 10px; background: #eef1f6; }
.qg-demi label { margin: 0; cursor: pointer; }
.qg-demi input { position: absolute; opacity: 0; }
.qg-demi span { display: block; padding: .35rem .8rem; border-radius: 8px; font-size: var(--txt-s); }
.qg-demi input:checked + span { background: #fff; color: var(--u-accent); font-weight: 700; box-shadow: 0 1px 3px rgba(20, 35, 70, .15); }
.qg-demi input:focus-visible + span { outline: 2px solid var(--u-accent); }
.qg-duree { display: flex; justify-content: space-between; gap: var(--esp-m); margin-top: var(--esp-m); padding: var(--esp-s) var(--esp-m); border-radius: 10px; background: var(--u-soft); font-size: var(--txt-m); }
.qg-duree[hidden] { display: none; }
.qg-delai { margin: var(--esp-m) 0 0; padding: var(--esp-s) var(--esp-m); border-left: 3px solid #a85a06; border-radius: 6px; background: #f8ecdc; color: #7a4204; font-size: var(--txt-m); }
.qg-ligne { padding: var(--esp-s) 0; border-bottom: 1px solid #e3e8f1; }
.qg-ligne:last-of-type { border-bottom: 0; }
.qg-ligne-tete { display: flex; justify-content: space-between; gap: var(--esp-s); color: #7b8699; font-size: var(--txt-s); }
.qg-ligne small { display: block; color: #7b8699; font-size: var(--txt-xs); }
.qg-lien { display: inline-block; margin-top: var(--esp-s); color: var(--u-accent); font-size: var(--txt-s); font-weight: 600; }
@media (max-width: 48rem) { .qg-form { grid-template-columns: minmax(0, 1fr); } }
.qg-traiter { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 2.5fr) minmax(9rem, 1fr) auto; gap: var(--esp-m); align-items: center; padding: var(--esp-s) 0; border-top: 1px solid #e3e8f1; font-size: var(--txt-m); }
.qg-traiter > div:first-child { display: grid; gap: .15rem; }
.qg-traiter small { display: block; color: #7b8699; font-size: var(--txt-xs); }
.vs-card small.qg-alerte, .qg-ligne small.qg-alerte, .qg-traiter small.qg-alerte { color: #a85a06; font-weight: 600; }
.qg-filtres { display: flex; flex-wrap: wrap; gap: var(--esp-s); }
@media (max-width: 48rem) { .qg-traiter { grid-template-columns: minmax(0, 1fr); } }
.qg-jours { display: flex; flex-wrap: wrap; width: fit-content; }
.qg-cal-mois { display: flex; align-items: center; gap: var(--esp-s); margin-bottom: var(--esp-s); }
.qg-cal-mois a { display: inline-flex; color: var(--u-accent); }
.qg-cal-mois b { min-width: 9rem; text-align: center; font-size: var(--txt-m); }
.qg-cal-defil { overflow-x: auto; }
.qg-cal { display: grid; min-width: 46rem; font-size: .8rem; }
.qg-cal-coin, .qg-cal-j { border-bottom: 1px solid #d9e0e8; }
.qg-cal-j { padding: .2rem 0 .35rem; color: #7b8699; font-size: .68rem; line-height: 1.2; text-align: center; }
.qg-cal-j b { display: block; color: #1d2b44; font-size: .78rem; }
.qg-cal-j.off b { color: #a9b2c1; }
.qg-cal-j.auj { border-radius: 6px 6px 0 0; background: var(--u-accent); color: var(--u-texte); }
.qg-cal-j.auj b { color: var(--u-texte); }
.qg-cal-nom { display: flex; align-items: center; min-width: 0; padding: 0 .6rem; border-left: 3px solid transparent; border-bottom: 1px solid #edf0f5; font-weight: 650; }
.qg-cal-nom span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qg-cal-nom.moi { border-left-color: var(--u-accent); }
.qg-cal-c { display: flex; gap: 1px; height: 2.1rem; padding: 2px .5px; border-bottom: 1px solid #edf0f5; }
.qg-cal-zebre { background: #f8f9fb; }
.qg-cal-c.off { background: #e9ecf1; }
.qg-cal-c.ferie { background: color-mix(in srgb, var(--u-accent) 30%, white); }
.qg-cal-c.auj { box-shadow: inset 1px 0 0 var(--u-accent), inset -1px 0 0 var(--u-accent); }
.qg-cal-p { flex: 1; display: grid; place-items: center; min-width: 0; overflow: hidden; border-radius: 2px; background: var(--c); color: var(--t); font-size: .62rem; font-weight: 750; }
.qg-cal-p.attente { outline: 1px dashed var(--c); outline-offset: -1px; background: color-mix(in srgb, var(--c) 16%, white); color: #1d2b44; }
.qg-cal-p.cours { background: color-mix(in srgb, var(--u-accent) 60%, white); color: white; }
.qg-cal-p.eteint { visibility: hidden; }
.qg-cal-v { flex: 1; }
.qg-cal-total-nom { display: flex; align-items: center; padding-left: .6rem; color: #7b8699; font-size: .74rem; font-weight: 650; }
.qg-cal-total { display: flex; align-items: center; justify-content: center; height: 1.6rem; color: #7b8699; font-size: .72rem; font-weight: 650; }
.qg-cal-total.fort { color: #96610b; font-weight: 800; }
.qg-cal-legende { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; margin-top: .75rem; color: #7b8699; font-size: .76rem; }
.qg-cal-legende button { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .5rem; border: 1px solid transparent; border-radius: 6px; background: none; color: #44516a; font: inherit; cursor: pointer; }
.qg-cal-legende button:hover { border-color: #d7deea; }
.qg-cal-legende button.eteint { opacity: .4; text-decoration: line-through; }
.qg-cal-legende span { display: inline-flex; align-items: center; gap: .35rem; margin-left: .4rem; }
.qg-cal-legende i { width: 1.05rem; height: .8rem; border-radius: 2px; background: var(--c); }
.qg-cal-legende i.cours { background: color-mix(in srgb, var(--u-accent) 60%, white); }
.qg-cal-legende i.attente { outline: 1px dashed #6b7588; outline-offset: -1px; background: color-mix(in srgb, #6b7588 16%, white); }
.qg-cal-legende i.off { background: #e9ecf1; }
.qg-cal-legende i.ferie { background: color-mix(in srgb, var(--u-accent) 30%, white); }
.qg-filtre-auto { margin-bottom: var(--esp-m); }
.vs-table .qg-n { text-align: right; white-space: nowrap; }
.vs-table .qg-negatif { color: #b23a2e; font-weight: 700; }
.qg-mini { display: flex; align-items: center; justify-content: space-between; gap: var(--esp-s); padding: .32rem 0; font-size: var(--txt-s); }
.qg-mini b { font-variant-numeric: tabular-nums; }
.qg-mini.qg-negatif { color: #b23a2e; }
.qg-cpt-valeur { margin: var(--esp-s) 0 .4rem; font-size: 2rem; font-weight: 750; line-height: 1.15; }
.qg-cpt-valeur small { color: #7b8699; font-size: .85rem; font-weight: 500; }
.qg-cpt-barre { display: flex; gap: 2px; height: .55rem; }
.qg-cpt-barre i { display: block; }
.qg-cpt-barre .pris { background: var(--c); }
.qg-cpt-barre .attente { outline: 1px dashed var(--c); outline-offset: -1px; background: color-mix(in srgb, var(--c) 30%, white); }
.qg-cpt-barre .reste { background: #e9edf3; }
.qg-cpt-lignes { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: .6rem; margin-top: .7rem; }
.qg-cpt-lignes span { display: block; color: #7b8699; font-size: .76rem; }
.qg-cpt-lignes b { font-size: .95rem; }
.rd-barre .qg-lk-recherche { width: min(18rem, 100%); }
.qg-lk-section { margin-top: var(--esp-l); }
.qg-lk-section[hidden], .qg-lk-carte[hidden] { display: none; }
.qg-lk-titre { margin-bottom: .6rem; padding-bottom: .35rem; border-bottom: 1px solid #e3e8f1; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.qg-lk-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: .7rem; }
.qg-lk-carte { position: relative; border: 1px solid #e3e8f1; border-radius: 10px; background: #fff; }
.qg-lk-carte:hover { border-color: color-mix(in srgb, var(--u-accent) 40%, white); }
.qg-lk-lien { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: .8rem; padding: .8rem .9rem; color: #1d2b44; text-decoration: none; }
.qg-lk-logo { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; overflow: hidden; border: 1px solid #e3e8f1; border-radius: 8px; background: #f6f7f9; color: #9aa3b2; font-size: 1.1rem; font-weight: 700; }
.qg-lk-logo img { width: 100%; height: 100%; object-fit: contain; }
.qg-lk-corps { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.qg-lk-corps b { font-size: .92rem; }
.qg-lk-corps small { display: -webkit-box; overflow: hidden; color: #7b8699; font-size: .78rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.qg-lk-domaine { display: inline-flex; align-items: center; gap: .2rem; margin-right: 3.5rem; color: var(--u-accent); font-size: .74rem; font-weight: 600; }
.qg-lk-domaine .material-symbols-outlined { font-size: .85rem; }
.qg-lk-modifier { position: absolute; right: .8rem; bottom: .55rem; color: #9aa3b2; font-size: .72rem; text-decoration: none; }
.qg-lk-modifier:hover { color: var(--u-accent); }
.qg-lk-depot { display: flex; align-items: flex-end; gap: var(--esp-m); }
.qg-lk-depot > div { flex: 1; min-width: 0; }
.ap-apercu { margin-top: var(--esp-m); padding: .7rem .85rem; border-left: .25rem solid var(--u-accent); border-radius: .4rem; background: var(--u-soft); }
.ap-apercu[hidden] { display: none; }
.ap-apercu b { display: block; margin-bottom: .15rem; }
.ap-statut { display: inline-block; padding: .12rem .5rem; border-radius: 999px; font-size: var(--txt-xs); font-weight: 650; white-space: nowrap; }
.ap-en_attente { background: #fbf0dc; color: #a86a12; }
.ap-validee { background: #dcefea; color: #287d70; }
.ap-refusee { background: #f8e1e3; color: #b3383f; }
.ap-annulee { background: #eef1f6; color: #6b7588; }

/* Formateurs : candidats et formateurs en poste (entretien_rh) */
.er-proposer { background: #eef1f6; color: #44516a; }
.er-propose { background: #fbf0dc; color: #a86a12; }
.er-valide { background: #dcefea; color: #287d70; }
.er-refuse { background: #f8e1e3; color: #b3383f; }
.er-table-simple { width: 100%; }
.er-table-simple tfoot th { padding: .6rem .7rem; border-top: 2px solid #e3e8f1; }
.er-tag-long { white-space: normal; }
.er-question { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.er-etapes { list-style: none; margin: 0; padding: 0; }
.er-etapes li { position: relative; padding: 0 0 var(--esp-m) 1.4rem; font-size: var(--txt-m); }
.er-etapes li::before { content: ''; position: absolute; left: 0; top: .25rem; width: .7rem; height: .7rem; border: 2px solid var(--u-accent); border-radius: 50%; background: #fff; }
.er-etapes li.fait::before { background: var(--u-accent); }
.er-etapes li:not(:last-child)::after { content: ''; position: absolute; left: .32rem; top: 1.05rem; bottom: .1rem; border-left: 2px solid #e3e8f1; }
.er-etapes small { display: block; color: #7b8699; font-size: var(--txt-xs); }
.er-lignes { display: grid; gap: .5rem; margin-bottom: .5rem; }
.er-lignes:empty { display: none; }
.er-ligne { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: .5rem; align-items: center; }
.er-unite { display: flex; align-items: center; gap: .4rem; }
.er-unite span { color: #7b8699; font-size: var(--txt-s); white-space: nowrap; }
.er-theme { margin-top: var(--esp-m); font-size: var(--txt-s); font-weight: 750; }
.er-question-saisie { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .3rem var(--esp-l); padding: .45rem 0; border-bottom: 1px solid #eef1f6; }
@media (max-width: 48em) { .er-ligne, .er-question, .er-question-saisie { grid-template-columns: 1fr; } }
/* Choix multiples des modales : la liste Select2 (ul) gardait le retrait de Bootstrap avant la première personne */
.cf-modale .select2-container .select2-selection--multiple .select2-selection__rendered { margin: 0; padding-left: .3rem; }

/* Parcours de formation (Administration CFA) : filtre, cases des années, modale « Voir la timeline » */
.ep-filtre { width: min(100%, 24rem); }
.ep-cases { display: flex; flex-wrap: wrap; gap: var(--esp-s) var(--esp-l); padding: .3rem 0; }
.ep-case { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--txt-m); margin: 0; cursor: pointer; }
.ep-case[hidden] { display: none; }
.ep-case input { width: 1rem; height: 1rem; accent-color: var(--u-accent); margin: 0; }
.ep-choix { display: flex; align-items: flex-end; gap: var(--esp-l); flex-wrap: wrap; margin-bottom: var(--esp-l); }
.ep-choix-champ { width: min(100%, 24rem); }
.ep-choix .ep-resume { font-size: var(--txt-s); padding-bottom: .5rem; }
/* Timeline verticale (modales admin et élève) : une colonne par année, côte à côte si la place le permet */
.ep-annees { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: var(--esp-l); align-items: start; }
.ep-annee { border: 1px solid #e3e7ee; border-radius: 8px; padding: .6rem .8rem .4rem; }
.ep-annee-tete { display: flex; flex-direction: column; margin-bottom: .5rem; }
.ep-annee-tete b { font-size: var(--txt-m); font-weight: 800; }
.ep-annee-tete span { font-size: var(--txt-xs); color: #7b8699; }
.ep-vide { margin: 0 0 .4rem; font-size: var(--txt-s); color: #7b8699; }
.ep-mois { position: relative; margin-left: .35rem; padding-left: 1.1rem; border-left: 2px solid #e3e7ee; }
.ep-col:not(.plein) { display: none; }
.ep-col { position: relative; padding-bottom: .6rem; }
.ep-col-tete { position: relative; font-size: var(--txt-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #1f2a3c; }
.ep-col-tete::before { content: ''; position: absolute; left: -1.53rem; top: .15rem; width: .65rem; height: .65rem; border-radius: 50%; background: var(--u-accent); box-shadow: 0 0 0 2px #fff; }
.ep-evt { margin-top: .3rem; padding: .4rem .55rem; border: 1px solid #e3e7ee; border-left: 3px solid var(--u-accent); border-radius: 6px; background: #fff; font-size: var(--txt-s); line-height: 1.3; }
.ep-evt b { display: block; font-weight: 700; }
.ep-evt small { display: block; margin-top: .15rem; color: #7b8699; font-size: var(--txt-xs); }
.ep-col.aujourdhui .ep-col-tete { color: var(--u-accent); }
.ep-evt.passe { border-left-color: #b3bccb; color: #7b8699; }
.ep-col.passe .ep-col-tete { color: #9aa3b2; }
.ep-col.passe .ep-col-tete::before { background: #c4cbd6; }

/* Tiroir « Mon parcours » (Vie scolaire) : timeline verticale par année */
.pv-formation { display: flex; flex-direction: column; margin-bottom: var(--esp-s); }
.pv-formation span { font-size: var(--txt-xs); }
.pv-annee { border: 1px solid #e3e7ee; border-radius: 8px; margin-bottom: var(--esp-s); }
.pv-annee summary { display: flex; flex-direction: column; padding: .5rem .7rem; cursor: pointer; }
.pv-annee summary b { font-size: var(--txt-m); }
.pv-annee summary span { font-size: var(--txt-xs); color: #7b8699; }
.pv-vide { padding: 0 .7rem .6rem; margin: 0; font-size: var(--txt-s); }
.pv-liste { list-style: none; position: relative; margin: 0; padding: .2rem .7rem .7rem 1.6rem; }
.pv-liste::before { content: ''; position: absolute; left: .85rem; top: .5rem; bottom: 1rem; border-left: 2px solid #e3e7ee; }
.pv-etape { position: relative; padding: .3rem 0; }
.pv-etape::before { content: ''; position: absolute; left: -1rem; top: .6rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--u-accent); box-shadow: 0 0 0 2px #fff; }
.pv-etape.passe { color: #9aa3b2; }
.pv-etape.passe::before { background: #c4cbd6; }
.pv-quand { font-size: var(--txt-xs); color: #7b8699; }
.pv-nom { font-size: var(--txt-s); font-weight: 700; }
.pv-etape.passe .pv-nom { font-weight: 500; }
.pv-desc { font-size: var(--txt-xs); color: #5b6577; }
.pv-repere { display: inline-block; margin-left: .4rem; padding: 0 .5rem; border-radius: 999px; background: var(--u-soft); color: var(--u-accent); font-weight: 650; }
.pv-grand { width: 100%; justify-content: center; }
.modal.pv-modale { z-index: 1070; }
body.pv-grand-ouvert .modal-backdrop { z-index: 1060; }
.ep-col-tete .pv-repere { letter-spacing: 0; text-transform: none; }
/* Émargement, ouverture : trombinoscope regroupé par session, le défilement porte sur l'ensemble */
.em-trombi-sessions { max-height: 18rem; overflow: auto; }
.em-trombi-sessions .em-trombi { max-height: none; overflow: visible; }
.em-trombi-session { margin: .2rem 0 .5rem; padding-bottom: .2rem; border-bottom: 1px solid #eef1f6; color: #44516a; font-size: var(--txt-xs); font-weight: 650; }
.em-trombi + .em-trombi-session { margin-top: .9rem; }

/* Visites d'entreprise : états de compétence (A, ECA, NT, CFA, NR ; un état ajouté au référentiel garde le style neutre) */
.ve-etat { display: inline-block; padding: .2em .65em; border-radius: 999px; font-size: var(--txt-xs); font-weight: 700; white-space: nowrap; background: #eef1f6; color: #44516a; }
.ve-etat-A { background: #dcefea; color: #1f6b5f; }
.ve-etat-ECA { background: #fbf0dc; color: #7a4f0e; }
.ve-etat-CFA { background: #e3ebf7; color: #2d4f86; }
.ve-etat-NR { background: transparent; color: #7b8699; border: 1px dashed #c9d1de; }
.ve-code { font-family: ui-monospace, Menlo, monospace; font-size: var(--txt-xs); color: #7b8699; white-space: nowrap; }
.ve-sous { display: block; color: #7b8699; font-size: var(--txt-xs); }
.ve-texte { white-space: pre-line; }
.ve-remarque { width: 100%; min-height: 6rem; }

/* Visites d'entreprise, progression : barre de répartition des états par visite */
.ve-barre { display: flex; gap: 2px; height: .65rem; min-width: 8rem; border-radius: 4px; overflow: hidden; background: #eef1f6; }
.ve-barre span { display: block; height: 100%; background: #6b7a90; }
.ve-barre .ve-b-A { background: #287d70; }
.ve-barre .ve-b-ECA { background: #d29a3a; }
.ve-barre .ve-b-NT { background: #aab3c2; }
.ve-barre .ve-b-CFA { background: #3a62a0; }
.ve-legende { display: flex; flex-wrap: wrap; gap: var(--esp-s) var(--esp-m); margin-top: var(--esp-m); color: #44516a; font-size: var(--txt-xs); }
.ve-legende i { display: inline-block; width: .75rem; aspect-ratio: 1; margin-right: .35em; border-radius: 2px; vertical-align: -.1em; background: #6b7a90; }
.ve-legende .ve-b-A { background: #287d70; } .ve-legende .ve-b-ECA { background: #d29a3a; } .ve-legende .ve-b-NT { background: #aab3c2; } .ve-legende .ve-b-CFA { background: #3a62a0; }
.ve-legende .ve-b-NR { background: #eef1f6; border: 1px solid #c9d1de; }
.ve-defile { overflow-x: auto; }
.ve-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ve-col-visite { text-align: center; white-space: nowrap; }

/* Émargement, admin : case « Traiter » par élève, seules les lignes cochées sont enregistrées */
.em-coche { display: inline-flex; justify-content: center; min-height: 0; margin: 0; padding: 0; }
.em-coche .form-check-input { float: none; margin: 0; cursor: pointer; }
.em-enregistrer:disabled { opacity: .5; cursor: not-allowed; }
