/* =========================================================================
   Styles des vues : cahier journal, affichage élèves, rituels, programmation,
   accueil, à imprimer, notes, rendez-vous, projets, emploi du temps, administration.
   ========================================================================= */

/* ---------- Navigation de date commune ---------- */
.nav-date { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-date .date-courante { font-weight: 600; min-width: 0; padding: 0 6px; }
.nav-date input[type='date'] { width: auto; min-width: 150px; }

/* ---------- Cahier journal ---------- */
.cj-bandeau {
  font-family: var(--police-titre); font-style: italic; font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 2rem);
  text-align: center; background: #F5D3D3; background: linear-gradient(#F4CFCD, #EFC5C2); color: #3B3336;
  border: 2px solid #F8E4ED; border-radius: 999px; padding: 12px 24px; margin: 0 0 14px; box-shadow: 0 0 0 1px #F0C9C6;
}
.cj-infos { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 14px; color: var(--texte-doux); font-size: .9rem; }
.cj-infos .pastille { font-size: .8rem; }
.cj-evaluations { background: var(--jaune-clair); border: 1px solid #F4E4BC; border-radius: var(--rayon); padding: 8px 14px; font-size: .9rem; margin-bottom: 12px; }
.cj-liste { display: flex; flex-direction: column; gap: 9px; }
.cj-seance { display: grid; grid-template-columns: minmax(96px, 150px) 1fr; gap: 10px; align-items: stretch; }
.cj-bloc { background: var(--m-moy); border-radius: var(--rayon); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 6px; text-align: center; position: relative; }
.cj-bloc .duree { font-family: var(--police-titre); font-style: italic; font-weight: 600; font-size: 1.35rem; line-height: 1.1; }
.cj-bloc .heure { font-size: .78rem; font-weight: 600; color: rgba(59, 51, 54, .75); }
.cj-bloc .poignee { position: absolute; left: 0; top: 0; bottom: 0; width: 30px; min-height: 0; opacity: .55; }
.cj-carte { background: var(--m-clair); border-radius: var(--rayon); padding: 12px 14px 12px 16px; min-width: 0; position: relative; }
.cj-carte-tete { display: flex; gap: 8px; align-items: flex-start; }
.cj-carte h3 { font-family: var(--police-titre); font-style: italic; font-weight: 700; font-size: 1.22rem; margin: 2px 0 4px; flex: 1; min-width: 0; cursor: pointer; }
.cj-carte .resume { margin: 0 0 3px; font-size: .97rem; }
.cj-carte .materiel { font-size: .83rem; color: var(--texte-doux); margin: 0; }
.cj-carte .actions { display: flex; gap: 2px; flex: none; margin: -6px -8px 0 0; }
.cj-carte .actions .btn { min-height: 38px; width: 38px; }
.cj-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.cj-meta .pastille { background: rgba(255, 255, 255, .65); border-color: var(--m-bord); }
.cj-meta a.pastille { text-decoration: none; color: var(--texte); }
.cj-pause { display: grid; grid-template-columns: minmax(96px, 150px) 1fr; gap: 10px; align-items: center; }
.cj-pause .cj-bloc { padding: 4px 6px; border-radius: 999px; flex-direction: row; gap: 8px; }
.cj-pause .cj-bloc .duree { font-size: 1.05rem; }
.cj-pause .cj-carte { padding: 6px 14px; border-radius: 999px; display: flex; align-items: center; gap: 10px; }
.cj-pause .cj-carte h3 { font-size: .98rem; margin: 0; }
.cj-pause .cj-carte .actions { margin: -4px -8px -4px 0; }
.cj-suggestion { margin-top: 8px; background: rgba(255,255,255,.7); border: 1px dashed var(--m-bord); border-radius: 12px; padding: 8px 10px; font-size: .88rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cj-ajouter { display: flex; justify-content: center; margin: 12px 0 4px; }
.cj-bas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
@media (max-width: 860px) { .cj-bas { grid-template-columns: 1fr; } }
.cj-idees { background: #F7E4E6; border-radius: var(--rayon-l); padding: 14px 18px; }
.cj-idees h3, .cj-devoirs h3 { margin-bottom: 8px; }
.cj-idees ul { margin: 0; padding-left: 20px; }
.cj-idees li { margin: 3px 0; }
.cj-devoirs { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon-l); padding: 14px 18px; }
@media (max-width: 640px) {
  .cj-seance, .cj-pause { grid-template-columns: 78px 1fr; gap: 7px; }
  .cj-bloc .duree { font-size: 1.05rem; }
}

/* Fiche de préparation dépliée */
.cj-fiche { margin-top: 12px; background: rgba(255, 255, 255, .82); border: 1px solid var(--m-bord); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.cj-fiche h4 { font-family: var(--police-titre); font-style: italic; font-weight: 600; font-size: 1.02rem; margin: 0 0 6px; color: var(--m-fonce, var(--texte)); }
.cj-fiche .grille-refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.cj-deroule { display: flex; flex-direction: column; gap: 8px; }
.cj-etape { display: grid; grid-template-columns: 32px 74px 1fr auto; gap: 8px; align-items: start; background: var(--surface); border: 1px solid var(--ligne); border-radius: 12px; padding: 8px; }
.cj-etape .poignee { min-height: 40px; }
.cj-etape .duree-etape { display: flex; align-items: center; gap: 4px; }
.cj-etape .duree-etape input { padding: 6px; text-align: center; min-height: 40px; }
.cj-etape .champs-etape { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cj-etape .champs-etape .phase { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 150px; gap: 6px; }
.cj-etape textarea, .cj-etape input, .cj-etape select { min-height: 40px; padding: 7px 10px; font-size: 15px; }
.cj-etape textarea { min-height: 40px; }
@media (max-width: 760px) { .cj-etape { grid-template-columns: 28px 64px 1fr; } .cj-etape > .btn { grid-column: 3; justify-self: end; } .cj-etape .champs-etape { grid-template-columns: 1fr; } .cj-etape .champs-etape .phase { grid-template-columns: 1fr; } }
.cj-total { font-size: .85rem; color: var(--texte-doux); }
.cj-total.ecart { color: #A8661A; }
.cj-imprimer-item { display: grid; grid-template-columns: 1fr 150px 120px auto auto auto; gap: 6px; align-items: center; }
@media (max-width: 860px) { .cj-imprimer-item { grid-template-columns: 1fr 1fr; } }
.cj-checklist { display: flex; flex-direction: column; gap: 2px; background: var(--vert-clair); border-radius: 12px; padding: 8px 12px; }
.cj-checklist .case { min-height: 38px; font-size: .92rem; }
.cj-checklist .case input:checked + span { text-decoration: line-through; color: var(--texte-doux); }
.tag-verifier { display: inline-block; font-size: .72rem; font-weight: 600; color: #8E5A12; background: #FAF2E0; border: 1px solid #F4E4BC; border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }

/* Vue semaine */
.cj-semaine { display: grid; gap: 14px; grid-template-columns: repeat(var(--nb-jours, 2), minmax(0, 1fr)); }
@media (max-width: 900px) { .cj-semaine { grid-template-columns: 1fr; } }
.cj-colonne { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon-l); padding: 12px; min-width: 0; }
.cj-colonne h2 { font-size: 1.2rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.cj-colonne h2 a { color: inherit; text-decoration: none; }
.cj-mini { display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 12px; background: var(--m-clair); margin-bottom: 5px; text-decoration: none; color: var(--texte); min-height: var(--cible); }
.cj-mini.pause { background: transparent; border: 1px dashed var(--ligne-forte); min-height: 30px; padding: 3px 8px; font-size: .82rem; color: var(--texte-doux); }
.cj-mini .h { font-size: .78rem; font-weight: 600; color: var(--texte-doux); }
.cj-mini .t { font-family: var(--police-titre); font-style: italic; font-weight: 600; font-size: .98rem; line-height: 1.25; }
.cj-mini.pause .t { font-family: var(--police); font-style: normal; font-weight: 400; font-size: .82rem; }
.cj-colonne .vide { padding: 18px 10px; }

/* ---------- Affichage élèves ---------- */
.ae { min-height: calc(100dvh - 150px); border-radius: 26px; background: var(--surface); padding: clamp(14px, 2.5vw, 34px); position: relative; overflow: hidden; font-size: calc(1rem * var(--taille-affichage, 1)); }
body.projection .ae { min-height: calc(100dvh - 24px); border-radius: 18px; }
.ae-date { font-family: var(--police-titre); font-style: italic; font-weight: 600; word-spacing: -.04em; font-size: calc(max(6vw, 2.4rem) * var(--taille-affichage, 1)); line-height: 1.08; margin: 0 0 .15em; color: #3B3336; letter-spacing: -.035em; }
.ae-hier-demain { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em 1.6em; font-size: calc(max(2vw, 1rem) * var(--taille-affichage, 1)); color: var(--texte-doux); margin-bottom: .7em; }
.ae-hier-demain b { color: var(--texte); font-weight: 600; }
.ae-corps { display: flex; flex-direction: column; gap: 1em; }
.ae-colonnes { display: grid; grid-template-columns: minmax(0, 1fr); gap: .4em 1.2em; align-items: start; }
@media (min-width: 1000px) and (orientation: landscape) { .ae-colonnes.deux { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ae-col-titre { font-family: var(--police-titre); font-style: italic; font-weight: 600; color: var(--texte-doux); font-size: calc(max(1.7vw, .95rem) * var(--taille-affichage, 1)); margin: 0 0 .15em .4em; }
.ae-deroule { display: flex; flex-direction: column; gap: .4em; }
.ae-moment { display: grid; grid-template-columns: 2.2em 1.1em minmax(0, 1fr); gap: .4em; align-items: center; padding: .3em .6em; border-radius: 18px; background: var(--m-clair); border: 2px solid transparent; font-size: calc(max(3vw, 1.15rem) * var(--taille-affichage, 1)); line-height: 1.12; cursor: pointer; transition: transform .2s, background .2s, opacity .3s; position: relative; overflow: hidden; }
.ae-moment .ae-h { font-weight: 600; font-size: .7em; color: var(--texte-doux); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ae-moment .ae-picto { font-size: .9em; text-align: center; }
.ae-moment .ae-titre { font-family: var(--police-titre); font-style: italic; font-weight: 600; }
.ae-moment.pause { background: transparent; border: 2px dashed #E5E1DC; font-size: calc(max(2.2vw, 1rem) * var(--taille-affichage, 1)); padding: .12em .6em; grid-template-columns: 3em 1.5em minmax(0, 1fr); }
.ae-moment.passe { opacity: .38; filter: grayscale(.85); }
.ae-moment.suivant { border-color: var(--m-bord); border-style: solid; }
.ae-moment.suivant .ae-titre::after { content: ' · ensuite'; font-size: .5em; text-transform: uppercase; letter-spacing: .08em; color: var(--texte-doux); font-family: var(--police); font-style: normal; font-weight: 500; vertical-align: middle; }
.ae-moment.actuel { background: var(--m); color: #fff; transform: scale(1.02); margin: .15em 0; padding: .5em .7em .65em; box-shadow: 0 8px 30px rgba(0,0,0,.12); font-size: calc(max(3.4vw, 1.35rem) * var(--taille-affichage, 1)); }
.ae-moment.actuel .ae-h { color: rgba(255,255,255,.9); }
.ae-moment.actuel .ae-titre { font-weight: 700; }
.ae-progression { position: absolute; left: 0; bottom: 0; height: 7px; background: rgba(255,255,255,.75); border-radius: 0 4px 4px 0; }
.ae-reste { display: inline-block; font-family: var(--police); font-style: normal; font-size: .45em; font-weight: 600; background: rgba(255,255,255,.25); padding: .15em .6em; border-radius: 999px; margin-left: .5em; vertical-align: middle; white-space: nowrap; }
.ae-cote { display: grid; gap: 1em; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ae-cote.dans-colonne { grid-template-columns: 1fr; gap: .5em; margin-top: .5em; }
.ae-cote.dans-colonne .ae-encadre { font-size: calc(max(1.7vw, .95rem) * var(--taille-affichage, 1)); padding: .5em .9em; }
.ae-encadre { background: rgba(255,255,255,.88); border: 2px solid var(--rose-bord); border-radius: 22px; padding: .7em 1em; font-size: calc(max(2.1vw, 1rem) * var(--taille-affichage, 1)); }
.ae-encadre h3 { font-size: 1.15em; margin-bottom: .3em; }
.ae-encadre ol, .ae-encadre ul { margin: 0; padding-left: 1.2em; }
.ae-encadre li { margin: .2em 0; }
.ae-encadre .devoirs-texte { white-space: pre-line; }
.ae-hors-classe { text-align: center; padding: 6vh 2vw; }
.ae-hors-classe .grand { font-family: var(--police-titre); font-style: italic; font-weight: 700; font-size: max(7vw, 2.6rem); margin: .2em 0; }
.ae-hors-classe .moyen { font-size: max(2.4vw, 1.1rem); color: var(--texte-doux); }
.ae-outils { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.ae-horloge { margin-left: auto; font-weight: 700; color: var(--texte); font-variant-numeric: tabular-nums; background: rgba(255,255,255,.8); border-radius: 999px; padding: .05em .6em; }
body.projection .ae { padding: 1.2vw 1vw; }

/* ---------- Rituels ---------- */
.rit-onglets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.rit-onglets .btn[aria-pressed='true'] { background: var(--m-clair, var(--rose-clair)); border-color: var(--m, var(--rose)); }
.rit-scene { background: var(--surface); border-radius: 26px; padding: clamp(16px, 3vw, 40px); min-height: calc(100dvh - 230px); position: relative; display: flex; flex-direction: column; }
body.projection .rit-scene { min-height: calc(100dvh - 24px); }
.rit-geant { font-size: max(12vw, 4rem); font-weight: 700; line-height: 1.05; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: -.01em; margin: auto 0; }
.rit-geant.moyen { font-size: max(8vw, 3rem); }
.rit-barre { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 18px; }
.rit-compteur { position: absolute; left: clamp(16px, 3vw, 36px); top: clamp(14px, 2.5vw, 30px); font-size: max(2vw, 1rem); font-weight: 600; color: var(--texte-doux); }
.rit-verdict { text-align: center; font-size: max(4.5vw, 1.8rem); font-weight: 700; margin: 6px 0; min-height: 1.3em; }
.rit-verdict.juste { color: #3F7F4A; }
.rit-verdict.faux { color: #A9443F; }
.rit-reglages { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.rit-date-phrase { font-family: var(--police-titre); font-style: italic; font-weight: 700; font-size: max(5.5vw, 2.2rem); line-height: 1.15; margin-bottom: .4em; }
.rit-date-sous { font-size: max(2.6vw, 1.15rem); color: var(--texte-doux); }
.rit-meteo { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.rit-meteo button { font-size: max(2vw, 1rem); min-height: 64px; padding: 0 22px; border-radius: 22px; border: 2px solid var(--ligne); background: var(--surface); cursor: pointer; display: inline-flex; align-items: center; gap: 10px; }
.rit-meteo button .e { font-size: 1.7em; }
.rit-meteo button[aria-pressed='true'] { border-color: var(--rose); background: var(--rose-clair); font-weight: 600; }
.rit-pb-enonce { font-size: max(3.6vw, 1.5rem); line-height: 1.3; font-weight: 500; max-width: 60ch; margin: 0 auto; text-align: left; }
.rit-pb-enonce .question { display: block; margin-top: .5em; font-weight: 700; }
.rit-pb-zone { margin: 1.2em auto 0; max-width: 900px; width: 100%; text-align: center; font-size: max(2.6vw, 1.15rem); }
.rit-pb-zone .schema { width: 100%; max-height: 38vh; }
.rit-rappel { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; font-size: .9rem; color: var(--texte-doux); margin-top: 6px; }
.rit-mot { text-align: center; margin: auto 0; }
.rit-mot .mot { font-family: var(--police-titre); font-style: italic; font-weight: 700; font-size: max(9vw, 3.2rem); line-height: 1.05; }
.rit-mot .nature { font-size: max(2.2vw, 1.05rem); color: var(--texte-doux); margin: .3em 0 .9em; }
.rit-mot .definition { font-size: max(3vw, 1.3rem); max-width: 40ch; margin: 0 auto .5em; }
.rit-mot .exemple { font-size: max(2.6vw, 1.15rem); font-style: italic; color: var(--texte-doux); }
.rit-mot .famille { margin-top: 1em; font-size: max(2.2vw, 1rem); }
.rit-tirage { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 1em 0; }
.rit-tirage .num { width: max(9vw, 72px); height: max(9vw, 72px); border-radius: 26px; background: var(--rose-clair); border: 2px solid var(--rose-bord); display: grid; place-items: center; font-size: max(4.5vw, 2rem); font-weight: 700; }

/* Nombre mystère projeté */
.nm { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); font-size: max(1.6vw, 1rem); }
.nm-bloc { background: var(--surface-2); border: 1px solid var(--ligne); border-radius: 18px; padding: 12px 14px; }
.nm-bloc h3 { font-size: 1.05em; margin-bottom: 8px; }
.nm-cache { filter: blur(9px); cursor: pointer; transition: filter .25s; user-select: none; }
.nm-cache.vu { filter: none; }
.nm-tab { border-collapse: collapse; font-size: 1.8em; font-weight: 700; }
.nm-tab th, .nm-tab td { border: 2px solid #8C8C8C; width: 2.1em; text-align: center; padding: .1em; }
.nm-tab th { font-size: .5em; font-weight: 600; }
.nm-encadre { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 1.15em; font-weight: 600; }
.nm-encadre .case { min-width: 3em; padding: 4px 8px; border: 2px solid #999; border-radius: 10px; text-align: center; background: var(--surface); }
.nm-encadre .case.mystere { border-color: var(--rose-fonce); background: var(--rose-clair); }
.nm-geant { font-size: max(9vw, 3.5rem); font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.nm-indices { font-size: max(2.6vw, 1.2rem); display: flex; flex-direction: column; gap: 10px; max-width: 900px; margin: 0 auto; width: 100%; }
.nm-indice { background: var(--rose-clair); border: 2px solid var(--rose-bord); border-radius: 18px; padding: .5em .9em; }
.nm-pieces { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nm-billet { border: 2px solid #777; border-radius: 6px; padding: 3px 10px; font-weight: 700; background: #fff; }
.nm-piece { border: 2px solid #777; border-radius: 50%; width: 2.4em; height: 2.4em; display: grid; place-items: center; font-weight: 700; background: #fff; }

/* ---------- Programmation ---------- */
.prog-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 900px; font-size: .9rem; table-layout: fixed; }
.prog-table thead th:first-child { width: 200px; }
.prog-table th, .prog-table td { border-bottom: 1px solid var(--ligne); border-right: 1px solid var(--ligne); padding: 8px 10px; vertical-align: top; text-align: left; background: var(--surface); }
.prog-table thead th { position: sticky; top: 0; background: var(--surface-2); font-size: .82rem; z-index: 1; }
.prog-table th.ligne { width: 190px; background: var(--m-clair); border-left: 6px solid var(--m); font-weight: 600; font-size: .85rem; }
.prog-table td { cursor: pointer; min-width: 150px; }
.prog-table td:hover { background: var(--rose-clair); }
.prog-table td .vide-cellule { color: var(--texte-pale); font-style: italic; }
.prog-table tr.evaluations th.ligne { background: var(--jaune-clair); border-left-color: #D9A520; }
.prog-table td.actuelle, .prog-table th.actuelle { box-shadow: inset 0 0 0 2px var(--rose); }
.prog-table td .actions-cellule { display: flex; gap: 4px; margin-top: 6px; }
.prog-entete-semaine { display: flex; flex-direction: column; }
.prog-entete-semaine small { color: var(--texte-doux); font-weight: 500; }

/* ---------- Accueil ---------- */
.acc-grille { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.acc-jour { font-family: var(--police-titre); font-style: italic; font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.acc-liens { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.acc-ligne { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--ligne); }
.acc-ligne:last-child { border-bottom: 0; }
.acc-ligne .h { font-size: .8rem; color: var(--texte-doux); width: 46px; flex: none; font-weight: 600; }

/* ---------- À imprimer ---------- */
.imp-ligne { display: grid; grid-template-columns: 1fr auto auto auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--ligne); margin-bottom: 8px; }
.imp-ligne.fait { opacity: .55; }
.imp-ligne .titre-imp { font-weight: 500; }
.imp-ligne .source { font-size: .8rem; color: var(--texte-doux); }
@media (max-width: 760px) { .imp-ligne { grid-template-columns: 1fr 1fr; } }

/* ---------- Notes ---------- */
.note-jour { margin-bottom: 14px; }
.note-jour .entete { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.surligne { background: #FFF1A8; border-radius: 3px; }

/* ---------- Emploi du temps ---------- */
.edt-grille { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.edt-creneau { display: grid; grid-template-columns: 30px 88px 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 12px; background: var(--m-clair); margin-bottom: 5px; min-height: var(--cible); }
.edt-creneau .heures { font-size: .8rem; font-weight: 600; color: var(--texte-doux); font-variant-numeric: tabular-nums; }
.edt-creneau .titre-creneau { font-weight: 500; font-size: .93rem; }
.edt-volumes { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.edt-volume { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: var(--m-clair); font-size: .9rem; }
.edt-volume .barre-vol { flex: 1; height: 8px; background: rgba(255,255,255,.7); border-radius: 4px; overflow: hidden; }
.edt-volume .barre-vol span { display: block; height: 100%; background: var(--m); }

/* ---------- Projets et rendez-vous ---------- */
.proj-etape { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--ligne); }
.proj-etape:last-child { border-bottom: 0; }
.proj-etape.fait .titre-etape { text-decoration: line-through; color: var(--texte-doux); }
.proj-progres { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin: 8px 0; }
.proj-progres span { display: block; height: 100%; background: var(--m); border-radius: 4px; }
.rdv-ligne { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ligne); }
.rdv-ligne.fait { opacity: .55; }
.rdv-date { font-weight: 600; font-size: .9rem; }
.rdv-date small { display: block; color: var(--texte-doux); font-weight: 500; }
.cal-mois { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-mois .jour-cal { min-height: 64px; border-radius: 10px; background: var(--surface); border: 1px solid var(--ligne); padding: 4px 6px; font-size: .8rem; }
.cal-mois .jour-cal.hors { opacity: .35; }
.cal-mois .jour-cal.aujourdhui { border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose); }
.cal-mois .jour-cal .evt { display: block; background: var(--rose-clair); border-radius: 6px; padding: 1px 4px; margin-top: 2px; font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-mois .entete-cal { text-align: center; font-size: .75rem; color: var(--texte-doux); font-weight: 600; }

/* ---------- Administration ---------- */
.adm-sections { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.adm-matiere { display: grid; grid-template-columns: 32px 52px 1fr 70px auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 12px; background: var(--m-clair); margin-bottom: 6px; }
.adm-periode { display: grid; grid-template-columns: 70px repeat(2, minmax(130px, 1fr)) minmax(150px, 1.4fr) repeat(2, minmax(130px, 1fr)) auto; gap: 8px; align-items: end; margin-bottom: 10px; }
@media (max-width: 1000px) { .adm-periode { grid-template-columns: 1fr 1fr; } }
.jauge { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; border: 1px solid var(--ligne); }
.jauge span { display: block; height: 100%; background: var(--rose); }
.ref-domaine { border: 1px solid var(--ligne); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; background: var(--surface); }
.ref-competence { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 4px 0; }
.doc-ligne { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--ligne); }
.doc-numero { font-family: var(--police-titre); font-style: italic; font-weight: 700; font-size: 1.2rem; text-align: center; background: var(--rose-clair); border-radius: 10px; padding: 4px; }
