/* e-vision RSE 360° learning — charte « Cristal »
   Thème clair futuriste : fond givré traversé de halos (malachite, manganèse), surfaces en verre dépoli,
   menus et titres portés par le dégradé de la marque, formulaires à effet miroir (reflet scindé et éclat au focus).
   Le spectre des niveaux reste le code couleur des strates. Les documents (attestation, PV, impression) restent sur papier. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  /* Givre */
  --nuit: #eaf0f4; --nuit-2: #e1e9ef; --nuit-3: #d4dee6;
  --surface: #ffffff; --surface-2: #ffffff; --surface-3: #eef3f6;
  --kaolin: #e1e8ed; --kaolin-2: #c9d4dc;
  /* Encre */
  --encre: #17252f; --encre-2: #1f2a33; --encre-3: #2b3843; --encre-fort: #0c1a24;
  --ligne: rgba(20, 45, 65, .12); --ligne-forte: rgba(20, 45, 65, .2);
  /* Titres et menus */
  --titre: #0f4357;
  --titre-degrade: linear-gradient(100deg, #07795c 0%, #0b8a8f 42%, #4a45bd 100%);
  --menu: linear-gradient(172deg, #075c4b 0%, #0b6f6c 36%, #20457f 72%, #3a2f88 100%);
  /* Spectre des strates */
  --strate-0: #dcdfd6; --strate-1: #58c198; --strate-2: #0ea874; --strate-3: #6b5adf; --strate-4: #d6922a;
  --spectre: linear-gradient(90deg, var(--strate-1), var(--strate-2) 35%, var(--strate-3) 70%, var(--strate-4));
  /* Rôles */
  --malachite: #078a60; --malachite-vif: #07905f; --malachite-clair: #58c198;
  --malachite-pale: rgba(7, 144, 95, .10); --malachite-encre: #05684a;
  --laterite: #d6502f; --laterite-pale: rgba(214, 80, 47, .10); --laterite-encre: #a3361b;
  --ocre: #cf8d1e; --ocre-pale: rgba(207, 141, 30, .12); --ocre-encre: #85570a;
  --cuivre: #b8703c; --cuivre-pale: rgba(184, 112, 60, .11);
  --manganese: #6a58d8; --manganese-2: #2a2366; --manganese-pale: rgba(106, 88, 216, .11);
  --schiste-2: #5d6b76; --schiste-3: #dfe6eb;
  /* Alias conservés par les écrans */
  --fond: var(--nuit); --papier: var(--nuit); --basalte: var(--nuit-2); --feuille: var(--nuit);
  --sur-sombre: var(--encre); --sur-sombre-2: var(--encre-2);
  /* Verre (désormais surfaces nettes et opaques, flou allégé réservé aux barres fixes) */
  --verre: #ffffff; --verre-bord: var(--ligne);
  --flou: saturate(118%) blur(8px);
  /* Géométrie */
  --r-s: 6px; --r: 10px; --r-l: 14px; --r-xl: 20px;
  --ombre-2: 0 18px 40px -20px rgba(25, 55, 85, .28);
  --ombre-3: 0 30px 70px -24px rgba(25, 55, 85, .35);
  --ombre: var(--ombre-2);
  --lueur: 0 0 0 1px rgba(7, 144, 95, .45), 0 10px 26px -10px rgba(7, 144, 95, .45);
  --anneau-focus: 0 0 0 4px rgba(7, 144, 95, .16);
  --reflet: 0 0 0 1px var(--ligne), 0 1px 2px rgba(25, 55, 85, .05), 0 14px 32px -20px rgba(25, 55, 85, .26);
  /* Coins de visée */
  --coin: rgba(7, 144, 95, .55);
  --coins:
    linear-gradient(var(--coin), var(--coin)) left top / 12px 1px no-repeat, linear-gradient(var(--coin), var(--coin)) left top / 1px 12px no-repeat,
    linear-gradient(var(--coin), var(--coin)) right top / 12px 1px no-repeat, linear-gradient(var(--coin), var(--coin)) right top / 1px 12px no-repeat,
    linear-gradient(var(--coin), var(--coin)) left bottom / 12px 1px no-repeat, linear-gradient(var(--coin), var(--coin)) left bottom / 1px 12px no-repeat,
    linear-gradient(var(--coin), var(--coin)) right bottom / 12px 1px no-repeat, linear-gradient(var(--coin), var(--coin)) right bottom / 1px 12px no-repeat;
  /* Mouvement */
  --courbe: cubic-bezier(.22, 1, .36, 1); --courbe-sortie: cubic-bezier(.4, 0, 1, 1);
  --m-tap: .16s; --m-ui: .32s; --m-sortie: .16s; --ease: var(--courbe);
  /* Typographie */
  --sans: "Archivo", "Segoe UI", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --large: 118%;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--kaolin-2) transparent; background: var(--nuit); }
body { margin: 0; min-height: 100dvh; color: var(--encre); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  background-color: var(--nuit);
  background-image:
    radial-gradient(900px 600px at 8% -10%, rgba(14, 168, 116, .22), transparent 60%),
    radial-gradient(1000px 620px at 96% -6%, rgba(106, 88, 216, .2), transparent 62%),
    radial-gradient(800px 520px at 60% 112%, rgba(11, 138, 143, .17), transparent 60%),
    linear-gradient(rgba(20, 45, 65, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 45, 65, .022) 1px, transparent 1px);
  background-size: auto, auto, auto, 48px 48px, 48px 48px; background-attachment: fixed; }
img, svg { display: block; max-width: 100%; }
a { color: var(--malachite-vif); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--m-tap); }
a:hover { color: var(--malachite-encre); }
h1, h2, h3, h4 { margin: 0; color: var(--titre); font-weight: 620; font-stretch: var(--large); letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(28px, 2.6vw, 38px); font-weight: 640; font-stretch: 122%; letter-spacing: -.035em; }
h2 { font-size: 19px; }
h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 .8em; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(52, 224, 161, .3); color: var(--encre-fort); }
:focus-visible { outline: 2px solid var(--malachite-vif); outline-offset: 2px; border-radius: 4px; }
#contenu:focus { outline: none; }
.mono, .num { font-variant-numeric: tabular-nums; }
.code { font-family: var(--mono); font-feature-settings: "zero"; letter-spacing: -.01em; }
.muet { color: var(--encre-3); } .discret { color: var(--encre-2); }
.petit { font-size: 13.5px; } .tpetit { font-size: 12px; } .gras { font-weight: 600; }
.centre { text-align: center; } .droite { text-align: right; } .nowrap { white-space: nowrap; }
.cache { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ico { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; }
.ico svg { width: 100%; height: 100%; }
.sur { font: 550 12.5px/1.25 var(--sans); color: var(--encre-3); }
.sur.ocre { color: var(--ocre-encre); } .sur.vert { color: var(--malachite-vif); }
.contexte { margin: 0; font-size: 13.5px; color: var(--encre-2); }
.absent { font-weight: 300; font-stretch: 100%; color: var(--encre-3); letter-spacing: 0; }

/* ------------------------------------------------------------------ Mouvement */
@keyframes entre { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes sortFondu { to { opacity: 0; } }
@keyframes ouvre { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ferme { to { opacity: 0; transform: translateY(6px) scale(.985); } }
@keyframes remplir { from { transform: scaleX(0); } }
@keyframes pousse { from { transform: scaleY(0); } }
@keyframes pulse { 50% { opacity: .5; } }
@keyframes onde { 0% { box-shadow: 0 0 0 0 currentColor; } 100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes progression { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes balayage { 0% { top: -4%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: 104%; opacity: 0; } }
@keyframes lire { to { transform: scaleX(1); } }
@keyframes monteDoux { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes zoomDoux { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

#contenu { view-transition-name: contenu; }
.lateral a.lien .indic { view-transition-name: menu-actif; }
.nav-h a .indic { view-transition-name: nav-actif; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-group(contenu) { animation: none; }
::view-transition-old(contenu) { animation: sortFondu .12s var(--courbe-sortie) both; }
::view-transition-new(contenu) { animation: entre .34s var(--courbe) both; }
::view-transition-group(menu-actif), ::view-transition-group(nav-actif) { animation-duration: .34s; animation-timing-function: var(--courbe); }

.progression { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 450; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .2s; }
.progression::before { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--malachite-vif), transparent); animation: progression 1s var(--courbe) infinite; }
.progression.actif { opacity: 1; }

/* Ligne de lecture du scanner (signature) */
.balaye { position: relative; overflow: hidden; }
.balaye::after { content: ""; position: absolute; left: -10%; right: -10%; height: 2px; top: -4%; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(7, 160, 110, .85), transparent); box-shadow: 0 0 18px 4px rgba(52, 224, 161, .45);
  animation: balayage 2.4s var(--courbe) .5s both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .balaye::after, .forage .carotte::after { display: none; }
}

/* ------------------------------------------------------------------ Mise en page */
.page { max-width: 1240px; margin: 0 auto; padding: 32px 36px 88px; }
.page.etroite { max-width: 880px; }
.rangee { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rangee.espace { justify-content: space-between; }
.pile > * + * { margin-top: 16px; }
.pile-l > * + * { margin-top: 28px; }
.pile > .cache:first-child + *, .pile-l > .cache:first-child + * { margin-top: 0; }
.grille { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.flex1 { flex: 1; min-width: 0; }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } .page { padding: 22px 16px 72px; } }

.entete-page { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px 28px; flex-wrap: wrap; margin-bottom: 28px; }
.entete-page .titres { min-width: 0; max-width: 72ch; }
.entete-page .contexte { margin-bottom: 8px; }
.entete-page .sur { display: block; margin-bottom: 8px; }
.entete-page p { margin: 10px 0 0; color: var(--encre-2); font-size: 15px; }
.entete-page .actions { gap: 8px; }

.retour { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 13.5px; font-weight: 550; color: var(--encre-2); text-decoration: none; }
.retour .ico { width: 16px; height: 16px; transform: rotate(180deg); transition: transform var(--m-ui) var(--courbe); }
.retour:hover { color: var(--encre); }
.retour:hover .ico { transform: rotate(180deg) translateX(3px); }

/* En-têtes à relevé (module, briefing) */
.entete-module { padding-bottom: 12px; }
.entete-module-corps, .briefing-tete { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; padding-bottom: 28px; border-bottom: 1px solid var(--ligne); }
.entete-module h1, .briefing-tete h1 { font-size: clamp(28px, 3vw, 42px); line-height: 1.04; margin-top: 10px; max-width: 26ch; }
.chapeau { margin: 14px 0 0; max-width: 64ch; font-size: 16px; color: var(--encre-2); }
.dd-texte { font: 500 14px var(--sans) !important; letter-spacing: 0 !important; padding-top: 8px; }
.page.suite { padding-top: 16px; }
@media (max-width: 860px) { .entete-module-corps, .briefing-tete { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ Surfaces */
.panneau { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--reflet); }
.panneau > .tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 4px; }
.panneau > .tete h3 { font-size: 15px; font-weight: 620; font-stretch: 110%; }
.panneau > .corps { padding: 14px 20px 20px; }
.panneau > .corps:first-child { padding-top: 20px; }
.panneau > .corps.serre { padding: 8px 0 0; }
.panneau > .corps.serre:first-child { padding-top: 0; }
.panneau.sombre { background: var(--nuit-2); color: var(--sur-sombre); }
.panneau.accent, .panneau.alerte, .panneau.signal { position: relative; }
.panneau.accent::before, .panneau.alerte::before, .panneau.signal::before { content: ""; position: absolute; left: 0; top: 18px; width: 2px; height: 24px; border-radius: 0 2px 2px 0; background: var(--malachite-vif); box-shadow: 0 0 12px var(--malachite-vif); }
.panneau.alerte::before { background: var(--laterite); box-shadow: 0 0 12px var(--laterite); }
.panneau.signal::before { background: var(--ocre); box-shadow: 0 0 12px var(--ocre); }
details.panneau > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary.sur::before { content: "▸ "; display: inline-block; transition: transform var(--m-ui) var(--courbe); }
details[open] > summary.sur::before { transform: rotate(90deg); }

.vide { display: flex; align-items: center; gap: 12px; padding: 14px 0; color: var(--encre-2); font-size: 14px; text-align: left; }
.panneau .corps.serre > .vide { padding: 16px 20px 20px; }
.vide-ico { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23767089' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M4 13h4l2 3h4l2-3h4'/%3E%3Cpath d='M5.5 6.5 4 13v5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5l-1.5-6.5A2 2 0 0 0 16.6 5H7.4a2 2 0 0 0-1.9 1.5z'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* Indicateurs : une bande d'instrument, coins de visée */
.grille:has(> .kpi) { gap: 0; background: var(--coins), var(--surface); border: 1px solid var(--ligne); border-radius: 4px; overflow: hidden; box-shadow: var(--reflet); }
.kpi { position: relative; padding: 20px 22px 18px; background: transparent; }
.grille > .kpi + .kpi { box-shadow: inset 1px 0 var(--ligne); }
.kpi .sur { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 550; color: var(--encre-2); }
.kpi .val { font: 600 40px/1 var(--sans); font-stretch: 122%; letter-spacing: -.035em; margin-top: 14px; color: var(--encre-fort); font-variant-numeric: tabular-nums; }
.kpi .val small { font-size: 15px; color: var(--encre-3); font-weight: 500; margin-left: 3px; letter-spacing: 0; font-stretch: 100%; }
.kpi .pied { font-size: 12.5px; color: var(--encre-3); margin-top: 10px; }
.kpi::after { content: ""; position: absolute; left: 22px; bottom: 0; width: 28px; height: 2px; background: var(--k, var(--ligne-forte)); box-shadow: 0 0 10px var(--k, transparent); }
@media (max-width: 960px) { .grille > .kpi:nth-child(3) { box-shadow: inset 0 1px var(--ligne); } .grille > .kpi:nth-child(4) { box-shadow: inset 1px 0 var(--ligne), inset 0 1px var(--ligne); } }
@media (max-width: 640px) { .grille:has(> .kpi) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi { padding: 16px 16px 14px; } .kpi::after { left: 16px; } .kpi .val { font-size: 30px; margin-top: 10px; } .kpi .pied { font-size: 12px; } }

/* ------------------------------------------------------------------ Boutons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 17px; border-radius: var(--r); border: 1px solid transparent;
  background: linear-gradient(180deg, #2fd29a, #17a877); color: #fff; font-weight: 650; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 0 0 1px rgba(52, 224, 161, .2);
  transition: transform var(--m-tap) var(--courbe), background var(--m-tap), border-color var(--m-tap), color var(--m-tap), box-shadow var(--m-ui) var(--courbe); }
.btn:hover { color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 1px rgba(52, 224, 161, .55), 0 8px 26px -6px rgba(52, 224, 161, .5); }
.btn:active { transform: scale(.97); transition-duration: .06s; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.sec { background: rgba(20, 45, 65, .03); color: var(--encre); border-color: var(--ligne-forte); box-shadow: none; }
.btn.sec:hover { background: rgba(20, 45, 65, .07); border-color: rgba(20, 45, 65, .3); color: var(--encre-fort); }
.btn.fantome { background: transparent; color: var(--encre-2); box-shadow: none; }
.btn.fantome:hover { background: rgba(20, 45, 65, .06); color: var(--encre); box-shadow: none; }
.btn.danger { background: linear-gradient(180deg, #f5866a, #e0603f); color: #1e0802; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.danger:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 26px -6px rgba(240, 112, 79, .55); color: #1e0802; }
.btn.danger.sec { background: transparent; color: var(--laterite-encre); border-color: rgba(240, 112, 79, .38); }
.btn.danger.sec:hover { background: var(--laterite-pale); }
.btn.ocre { background: linear-gradient(180deg, #f0bd5e, #d99a2f); color: #1e1404; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn.ocre:hover { color: #1e1404; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 26px -6px rgba(232, 172, 69, .5); }
.btn.sombre { background: var(--surface-3); color: var(--encre); box-shadow: inset 0 1px 0 rgba(20, 45, 65, .06); }
.btn.sombre:hover { background: var(--schiste-3); color: var(--encre-fort); }
.btn.mini { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.grand { height: 52px; padding: 0 26px; font-size: 15.5px; border-radius: 12px; }
.btn.bloc { width: 100%; }
.btn .fl { transition: transform var(--m-ui) var(--courbe); }
.btn:hover .fl { transform: translateX(3px); }
.btn-ico { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--encre-2); cursor: pointer; transition: background var(--m-tap), color var(--m-tap), transform var(--m-tap) var(--courbe); }
.btn-ico:hover { background: rgba(20, 45, 65, .06); color: var(--encre); }
.btn-ico:active { transform: scale(.94); }

/* ------------------------------------------------------------------ Formulaires */
.champ { display: block; }
.champ > span { display: block; font-size: 13px; font-weight: 600; color: var(--encre); margin-bottom: 7px; }
.champ > small { display: block; color: var(--encre-3); font-size: 12.5px; margin-top: 6px; }
.saisie, .champ input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .champ select, .champ textarea {
  width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--ligne-forte); border-radius: var(--r); background: rgba(5, 4, 9, .45); color: var(--encre);
  transition: border-color var(--m-tap), box-shadow var(--m-ui) var(--courbe), background var(--m-tap); }
.saisie::placeholder, .champ input::placeholder, .champ textarea::placeholder { color: var(--encre-3); }
.saisie:hover, .champ input:hover, .champ select:hover, .champ textarea:hover { border-color: rgba(20, 45, 65, .28); }
.champ textarea, textarea.saisie { height: auto; min-height: 96px; padding: 11px 13px; line-height: 1.55; resize: vertical; }
.saisie:focus, .champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--malachite-vif); box-shadow: var(--anneau-focus); }
select.saisie, .champ select { appearance: none; padding-right: 34px; background: rgba(5, 4, 9, .45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23aba6bc' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 13px center; }
select option { background: var(--surface-2); color: var(--encre); }
select[multiple].saisie, .champ select[multiple] { height: auto; padding: 6px; background-image: none; }
.saisie.mini { height: 34px; font-size: 13.5px; border-radius: 8px; }
.code-pin { font: 600 26px var(--mono) !important; letter-spacing: .4em; text-align: center; max-width: 240px; height: 54px !important; }
input[type="file"] { font-size: 13px; color: var(--encre-2); }
input[type="file"]::file-selector-button { height: 32px; padding: 0 13px; margin-right: 10px; border: 1px solid var(--ligne-forte); border-radius: 8px; background: rgba(20, 45, 65, .04); font: 600 13px var(--sans); color: var(--encre); cursor: pointer; }
.case { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; }
.case input, input[type="checkbox"], input[type="radio"] { accent-color: var(--malachite-vif); }
.case input { width: 17px; height: 17px; margin: 2px 0 0; flex: none; }
.form-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px 18px; }
.form-grille .large { grid-column: 1 / -1; }
fieldset { border: 1px solid var(--ligne); border-radius: var(--r); padding: 18px; margin: 0; background: rgba(20, 45, 65, .015); }
legend { padding: 0 8px; font: 600 13px var(--sans); color: var(--encre-2); }
.erreur-form { background: var(--laterite-pale); color: var(--laterite-encre); border: 1px solid rgba(240, 112, 79, .3); padding: 11px 14px; font-size: 14px; border-radius: var(--r); animation: entre var(--m-ui) var(--courbe); }

/* ------------------------------------------------------------------ Tableaux */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
table.t th { text-align: left; font: 550 12.5px/1.2 var(--sans); color: var(--encre-3); padding: 12px 14px; border-bottom: 1px solid var(--ligne); background: var(--surface); white-space: nowrap; position: sticky; top: 0; z-index: 1; }
table.t td { padding: 13px 14px; border-bottom: 1px solid var(--ligne); vertical-align: middle; transition: background var(--m-tap); }
table.t th:first-child, table.t td:first-child { padding-left: 20px; }
table.t th:last-child, table.t td:last-child { padding-right: 20px; }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: rgba(20, 45, 65, .025); }
table.t tr.cliquable { cursor: pointer; }
table.t tr.cliquable:hover td:first-child { box-shadow: inset 2px 0 var(--malachite-vif); }
table.t tr.cliquable:active td { background: rgba(20, 45, 65, .05); }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.t td.actions { text-align: right; white-space: nowrap; }
table.t tfoot td { border-top: 1px solid var(--ligne-forte); border-bottom: 0; }
table.t.compacte td { padding: 8px 12px; }
table.t.compacte th:first-child, table.t.compacte td:first-child { padding-left: 16px; }

.pastille { display: inline-flex; align-items: center; gap: 6px; height: 23px; padding: 0 8px; border-radius: 5px; font: 600 12px/1 var(--sans); background: rgba(20, 45, 65, .06); color: var(--encre-2); white-space: nowrap; }
.pastille::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pastille.ok { background: var(--malachite-pale); color: var(--malachite-encre); }
.pastille.attention { background: var(--ocre-pale); color: var(--ocre-encre); }
.pastille.danger { background: var(--laterite-pale); color: var(--laterite-encre); }
.pastille.neutre::before, .pastille.sans::before { display: none; }
.pastille.cuivre { background: var(--cuivre-pale); color: #94511f; }
.pastille.mg { background: var(--manganese-pale); color: #5545c4; }
.etiq { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 6px; background: rgba(20, 45, 65, .05); border: 1px solid var(--ligne); font: 500 12.5px var(--sans); color: var(--encre-2); margin: 0 4px 4px 0; text-decoration: none; transition: background var(--m-tap), color var(--m-tap); }
a.etiq:hover { background: var(--malachite-pale); color: var(--malachite-encre); }

.jauge { height: 6px; background: rgba(20, 45, 65, .07); border-radius: 99px; overflow: hidden; }
.jauge > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--strate-1), var(--malachite-vif)); box-shadow: 0 0 10px rgba(52, 224, 161, .5); transform-origin: left; animation: remplir .8s var(--courbe) both; transition: width .5s var(--courbe); }
.jauge.ocre > i { background: var(--ocre); } .jauge.laterite > i { background: var(--laterite); }
.jauge.epaisse { height: 10px; }
.jauge-fine { display: block; width: 120px; height: 3px; border-radius: 3px; background: rgba(20, 45, 65, .08); overflow: hidden; }
.jauge-fine i { display: block; height: 100%; background: var(--malachite-vif); border-radius: 3px; box-shadow: 0 0 8px var(--malachite-vif); }

/* ------------------------------------------------------------------ Marque et personnes */
.marque { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--encre); }
.marque:hover { color: var(--encre); }
.marque .tuile { width: 34px; height: 34px; flex: none; transition: transform var(--m-ui) var(--courbe); filter: drop-shadow(0 0 10px rgba(52, 224, 161, .2)); }
.marque:hover .tuile { transform: rotate(-4deg); }
.marque .tuile svg { width: 100%; height: 100%; }
.marque .mots { display: flex; flex-direction: column; line-height: 1.05; }
.marque .sigle { font: 650 15.5px/1.1 var(--sans); font-stretch: 114%; letter-spacing: -.02em; white-space: nowrap; color: var(--encre-fort); }
.marque .sigle em { font-style: normal; }
.marque .deg { font: 500 12px var(--sans); color: var(--encre-3); margin-top: 3px; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 10px; background: var(--manganese-pale); color: #5545c4; font: 650 12px var(--sans); font-stretch: 112%; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(139, 124, 240, .3); }
.puce-user { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 12px; text-decoration: none; color: var(--encre); transition: background var(--m-tap); min-width: 0; }
.puce-user:hover { background: rgba(20, 45, 65, .05); color: var(--encre); }

/* ------------------------------------------------------------------ Espace apprenant : barre supérieure */
.coque-apprenant { min-height: 100dvh; }
.barre { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(130%) blur(8px); -webkit-backdrop-filter: saturate(130%) blur(8px); border-bottom: 1px solid var(--ligne); }
.barre .int { max-width: 1240px; margin: 0 auto; padding: 0 36px; height: 64px; display: flex; align-items: center; gap: 32px; }
.nav-h { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(20, 45, 65, .04); border: 1px solid var(--ligne); }
.nav-h a { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 9px; color: var(--encre-2); text-decoration: none; font-weight: 550; font-size: 14px; transition: color var(--m-tap); }
.nav-h a .ico { width: 17px; height: 17px; color: var(--encre-3); transition: color var(--m-tap); }
.nav-h a:hover { color: var(--encre); }
.nav-h a.actif { color: var(--encre-fort); }
.nav-h a.actif .ico { color: var(--malachite-vif); }
.nav-h a .indic { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--malachite-pale); box-shadow: inset 0 0 0 1px rgba(52, 224, 161, .3); }
.utilisateur { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 550; }
@media (max-width: 820px) { .barre .int { padding: 0 14px; gap: 10px; } .barre .marque .mots, .utilisateur .nom { display: none; } .nav-h a { padding: 0 12px; } .nav-h a span:not(.indic):not(.ico) { display: none; } }

/* ------------------------------------------------------------------ Accueil apprenant : la carotte du parcours */
.accueil { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.accueil-gauche { position: sticky; top: 96px; }
.accueil-gauche > * + * { margin-top: 28px; }
.accueil .salut { margin: 12px 0 8px; font-size: clamp(40px, 4.6vw, 66px); font-weight: 650; font-stretch: 125%; letter-spacing: -.045em; line-height: .95; color: var(--encre-fort); }
.releve { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 0; }
.releve > div { padding: 0 22px; border-left: 1px solid var(--ligne-forte); }
.releve > div:first-child { padding-left: 0; border-left: 0; }
.releve dt { font-size: 13px; color: var(--encre-2); }
.releve dd { margin: 6px 0 0; font: 600 30px/1 var(--sans); font-stretch: 120%; letter-spacing: -.035em; color: var(--encre-fort); font-variant-numeric: tabular-nums; }
.releve dd small { font-size: 14px; font-weight: 500; color: var(--encre-3); margin-left: 2px; letter-spacing: 0; font-stretch: 100%; }
.releve.instrument { padding: 16px 22px; background: var(--coins), rgba(20, 45, 65, .02); border-radius: 3px; }
.etape { position: relative; display: grid; gap: 6px; justify-items: start; padding: 20px 22px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--ligne); box-shadow: var(--reflet); overflow: hidden; }
.etape::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 1px; background: var(--spectre); opacity: .8; }
.etape .etiquette { font-size: 13px; color: var(--malachite-vif); font-weight: 600; }
.etape b { font-size: 18px; font-weight: 620; font-stretch: 112%; letter-spacing: -.015em; line-height: 1.25; color: var(--encre-fort); }
.etape .discret { font-size: 14px; }
.etape .btn { margin-top: 10px; }
.etape.urgente { background: linear-gradient(180deg, var(--ocre-pale), transparent 80%), var(--surface); border-color: rgba(232, 172, 69, .35); }
.etape.urgente .etiquette { color: var(--ocre-encre); }

.carotte-parcours > header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.legende { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--encre-3); }
.legende i { width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.couches { position: relative; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--reflet); }
.couches::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; top: -4%; pointer-events: none; z-index: 2; background: linear-gradient(90deg, rgba(7, 160, 110, .85), rgba(7, 160, 110, .15) 40%, transparent 70%); box-shadow: 0 0 18px 3px rgba(52, 224, 161, .35); animation: balayage 2.2s var(--courbe) .4s both; }
.couche-module { --carotte: 64px; position: relative; display: grid; grid-template-columns: var(--carotte) 54px minmax(0, 1fr) auto; align-items: center; gap: 0 18px; padding: 0 22px 0 0; min-height: 112px; text-decoration: none; color: inherit; border-top: 1px solid var(--ligne); transition: background var(--m-tap); }
.couche-module:first-child { border-top: 0; }
.couche-module:hover { background: rgba(20, 45, 65, .025); color: inherit; }
.couche-module:hover .code-mod { color: var(--malachite-vif); }
.couche-module:active { background: rgba(20, 45, 65, .05); }
.carotte-seg { align-self: stretch; display: grid; grid-template-rows: repeat(3, 1fr); margin-left: 22px; width: calc(var(--carotte) - 22px); background: var(--kaolin); box-shadow: inset 1px 0 rgba(20, 45, 65, .05), inset -1px 0 rgba(20, 45, 65, .05); }
.couches .couche-module:first-child .carotte-seg { border-radius: 14px 14px 0 0; margin-top: 14px; }
.couches .couche-module:last-child .carotte-seg { border-radius: 0 0 14px 14px; margin-bottom: 14px; }
.carotte-seg i { display: block; transform-origin: left; animation: remplir .7s var(--courbe) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
.carotte-seg i.valide:nth-child(1) { background: var(--strate-1); }
.carotte-seg i.valide:nth-child(2) { background: var(--strate-2); box-shadow: 0 0 14px rgba(52, 224, 161, .4); }
.carotte-seg i.valide:nth-child(3) { background: var(--strate-3); box-shadow: 0 0 14px rgba(139, 124, 240, .45); }
.carotte-seg i.ouvert, .legende i.ouvert { background: repeating-linear-gradient(135deg, rgba(52, 224, 161, .35) 0 2px, transparent 2px 7px); }
.carotte-seg i.verrou, .legende i.verrou { background: radial-gradient(rgba(20, 45, 65, .14) 1px, transparent 1.5px) 0 0 / 6px 6px; }
.legende i.valide { background: var(--malachite-vif); box-shadow: 0 0 8px var(--malachite-vif); }
.code-mod { font: 650 22px/1 var(--sans); font-stretch: 122%; letter-spacing: -.03em; color: var(--encre-3); transition: color var(--m-tap); }
.corps-mod { display: grid; gap: 7px; padding: 18px 0; min-width: 0; }
.corps-mod > b { font-size: 16px; font-weight: 620; font-stretch: 108%; letter-spacing: -.012em; line-height: 1.3; color: var(--encre-fort); }
.niveaux { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--encre-3); }
.niv::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 6px; background: var(--kaolin-2); vertical-align: 1px; }
.niv.valide { color: var(--malachite-encre); } .niv.valide::before { background: var(--malachite-vif); box-shadow: 0 0 6px var(--malachite-vif); }
.niv.ouvert { color: var(--encre-2); } .niv.ouvert::before { background: var(--strate-1); }
.avance { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--encre-3); }
.note-mod { display: grid; justify-items: end; gap: 6px; font: 600 30px/1 var(--sans); font-stretch: 120%; letter-spacing: -.04em; color: var(--encre-fort); font-variant-numeric: tabular-nums; text-align: right; }
.note-mod small { font-size: 12px; font-weight: 500; color: var(--encre-3); letter-spacing: 0; font-stretch: 100%; }
.note-mod .sans-note { font-size: 12.5px; }
.note-mod .pastille { letter-spacing: 0; font-stretch: 100%; }
.badge-niveau { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--ligne-forte); }
.badge-niveau.n1 { color: var(--strate-1); } .badge-niveau.n2 { color: var(--strate-2); border-color: rgba(52, 224, 161, .35); } .badge-niveau.n3 { color: #5545c4; border-color: rgba(139, 124, 240, .4); }
@media (max-width: 1000px) { .accueil { grid-template-columns: 1fr; gap: 32px; } .accueil-gauche { position: static; } }
@media (max-width: 640px) {
  .couche-module { --carotte: 40px; grid-template-columns: var(--carotte) minmax(0, 1fr) auto; gap: 0 12px; padding-right: 14px; }
  .carotte-seg { margin-left: 14px; width: calc(var(--carotte) - 14px); }
  .couche-module > .code-mod { display: none; }
  .note-mod { font-size: 24px; }
  .releve dd { font-size: 24px; } .releve > div { padding: 0 14px; }
}

/* Blocs et listes sobres */
.bloc-sobre > header, .bloc-sobre > h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bloc-sobre h2 { font-size: 16px; font-stretch: 110%; }
.bloc-sobre .compte { min-width: 22px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 6px; background: rgba(20, 45, 65, .06); font: 650 12px var(--sans); color: var(--encre-2); }
.liste-sobre { list-style: none; margin: 0; padding: 0; }
.liste-sobre > li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--ligne); }
.liste-sobre > li:last-child { border-bottom: 1px solid var(--ligne); }
.liste-sobre b { display: block; font-size: 14px; font-weight: 600; color: var(--encre-fort); }
.liste-sobre .flex1 > span { display: block; font-size: 12.5px; color: var(--encre-3); margin-top: 2px; }
.liste-sobre .date-courte { width: 56px; flex: none; font-size: 12.5px; color: var(--encre-3); font-variant-numeric: tabular-nums; }
.liste-sobre.cliquable > li { padding: 0; }
.liste-sobre.cliquable a { flex: 1; display: flex; align-items: center; gap: 14px; padding: 11px 10px; margin: 0 -10px; border-radius: 8px; color: inherit; text-decoration: none; transition: background var(--m-tap); min-width: 0; }
.liste-sobre.cliquable a:hover { background: rgba(20, 45, 65, .04); }
.liste-sobre.cliquable a:active { background: rgba(20, 45, 65, .07); }
.repere { width: 8px; height: 8px; border-radius: 2px; flex: none; background: var(--encre-3); }
.repere.danger { background: var(--laterite); box-shadow: 0 0 10px var(--laterite); } .repere.signal { background: var(--ocre); box-shadow: 0 0 10px var(--ocre); } .repere.neutre { background: var(--kaolin-2); }
.quand { font-size: 12.5px; color: var(--encre-3); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Tableau de bord formateur */
.tableau-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px; align-items: start; }
@media (max-width: 1000px) { .tableau-grille { grid-template-columns: 1fr; } }
.barres-modules { display: grid; gap: 4px; }
.barre-module { display: grid; grid-template-columns: 48px minmax(0, 1fr) 56px minmax(150px, auto); align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--ligne); }
.barre-module b { font-stretch: 118%; font-weight: 650; color: var(--encre-fort); }
.barre-module .piste { height: 10px; border-radius: 2px; background: rgba(20, 45, 65, .06); overflow: hidden; }
.barre-module .piste i { display: block; height: 100%; background: linear-gradient(90deg, var(--strate-1), var(--malachite-vif)); box-shadow: 0 0 14px rgba(52, 224, 161, .45); border-radius: 2px; transform-origin: left; animation: remplir .8s var(--courbe) both; }
.barre-module .chiffre-mod { font: 600 17px var(--sans); font-stretch: 114%; text-align: right; color: var(--encre-fort); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .barre-module { grid-template-columns: 40px minmax(0, 1fr) 48px; } .barre-module > :last-child { grid-column: 2 / -1; } }

/* Examens : matrice modules × niveaux */
.matrice-niveaux { display: grid; gap: 10px; }
.mat-ligne { display: grid; grid-template-columns: minmax(170px, 1.1fr) repeat(3, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.mat-module { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 6px; }
.mat-module b { font: 650 26px/1 var(--sans); font-stretch: 124%; letter-spacing: -.03em; color: var(--encre-fort); }
.mat-module span { font-size: 12.5px; color: var(--encre-3); line-height: 1.3; }
.cellule-niv { --n: var(--strate-1); position: relative; display: grid; gap: 12px; padding: 14px 16px 13px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--ligne); color: inherit; text-decoration: none; overflow: hidden; box-shadow: var(--reflet); transition: border-color var(--m-tap), box-shadow var(--m-ui) var(--courbe), background var(--m-tap), transform var(--m-tap) var(--courbe); }
.cellule-niv[data-n="2"] { --n: var(--strate-2); } .cellule-niv[data-n="3"] { --n: var(--strate-3); }
.cellule-niv::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: var(--n); box-shadow: 0 0 12px var(--n); }
a.cellule-niv:hover { color: inherit; background: var(--surface-2); border-color: color-mix(in srgb, var(--n) 45%, transparent); box-shadow: 0 0 30px -12px var(--n); }
a.cellule-niv:active { transform: scale(.99); }
.cel-tete { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cel-tete b { font-size: 13.5px; font-weight: 620; color: var(--encre); }
.cel-mesures { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; color: var(--encre-3); }
.cel-mesures b { display: block; font: 600 24px/1 var(--sans); font-stretch: 120%; letter-spacing: -.03em; color: var(--encre-fort); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.cel-ok { font-size: 12px; color: var(--encre-3); }
.cel-pied { font-size: 12px; color: var(--encre-3); padding-top: 9px; border-top: 1px dashed var(--ligne-forte); }
.vide-cel { place-items: center; font-size: 12.5px; color: var(--encre-3); border-style: dashed; background: transparent; box-shadow: none; }
.vide-cel::before { opacity: .25; }
@media (max-width: 900px) { .mat-ligne { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mat-module { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 12px; padding: 8px 0 0; } }
@media (max-width: 560px) { .mat-ligne { grid-template-columns: 1fr; } }

/* Cours (formateur) : registre des modules */
.registre-cours { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--reflet); }
.ligne-cours { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto 190px; align-items: center; gap: 24px; padding: 20px 24px; border-top: 1px solid var(--ligne); color: inherit; text-decoration: none; transition: background var(--m-tap); }
.ligne-cours:first-child { border-top: 0; }
.ligne-cours:hover { background: rgba(20, 45, 65, .025); color: inherit; }
.ligne-cours:hover .code-mod { color: var(--malachite-vif); }
.ligne-cours .corps-mod { padding: 0; gap: 10px; }
.chapitres-seg { display: flex; gap: 3px; height: 6px; max-width: 420px; }
.chapitres-seg i { flex-basis: 0; border-radius: 2px; background: var(--strate-1); opacity: .9; }
.chapitres-seg i:nth-child(4n + 2) { background: var(--strate-2); } .chapitres-seg i:nth-child(4n + 3) { background: var(--strate-3); } .chapitres-seg i:nth-child(4n) { background: var(--strate-4); }
.mesures { display: flex; gap: 22px; font-size: 12px; color: var(--encre-3); }
.mesures b { display: block; font: 600 20px/1 var(--sans); font-stretch: 118%; color: var(--encre-fort); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.suivi-cours { display: grid; gap: 4px; font-size: 12px; color: var(--encre-3); }
.suivi-cours b { font: 600 20px/1 var(--sans); font-stretch: 118%; color: var(--malachite-vif); }
.suivi-cours .jauge-fine { width: 100%; margin-top: 4px; }
@media (max-width: 1000px) { .ligne-cours { grid-template-columns: 56px minmax(0, 1fr); } .mesures, .suivi-cours { grid-column: 2; } }

/* ------------------------------------------------------------------ Bandeau en relief */
.relief { position: relative; color: var(--sur-sombre); overflow: hidden; background: linear-gradient(180deg, rgba(139, 124, 240, .09), rgba(52, 224, 161, .03)), var(--nuit-2); border-bottom: 1px solid var(--ligne); }
.relief::before { content: ""; position: absolute; inset: 0; background: url("../assets/topo.svg") center / cover no-repeat; opacity: .04; pointer-events: none; }
.relief > * { position: relative; }
.relief .sur { color: var(--sur-sombre-2); }
.relief h1 { color: var(--encre-fort); }

/* ------------------------------------------------------------------ Connexion */
.connexion { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); }
.connexion .visuel { position: relative; padding: 40px 52px 36px; color: var(--sur-sombre); display: flex; flex-direction: column; gap: 32px; overflow: hidden; }
.connexion .visuel::before { content: ""; position: absolute; inset: 0; background: url("../assets/topo.svg") center / cover no-repeat; opacity: .03; pointer-events: none; }
.connexion .visuel > * { position: relative; }
.connexion .logos { display: flex; gap: 28px; align-items: center; }
.connexion .logos img { height: 38px; width: auto; opacity: .9; }
.connexion .scene { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 40px; align-items: center; }
.connexion .contexte { color: var(--sur-sombre-2); font-size: 14px; }
.connexion .titre-geant { font: 680 clamp(52px, 6.6vw, 106px)/.88 var(--sans); font-stretch: 125%; letter-spacing: -.05em; margin: 16px 0 0;
  background: var(--titre-degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.connexion .accroche { max-width: 44ch; font-size: 16px; line-height: 1.6; color: var(--sur-sombre-2); margin-top: 26px; }
.connexion .pied-visuel { margin: 0; font-size: 12.5px; color: var(--encre-3); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.connexion .pied-visuel p { margin: 0; }
.forage { position: relative; height: min(64vh, 560px); display: grid; grid-template-columns: 52px 1fr; }
.forage .echelle { position: relative; }
.forage .echelle span { position: absolute; right: 10px; top: var(--y); transform: translateY(-50%); font: 500 11px var(--mono); color: var(--encre-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.forage .echelle span::after { content: ""; position: absolute; right: -10px; top: 50%; width: 6px; height: 1px; background: var(--ligne-forte); }
.forage .carotte { position: relative; display: flex; flex-direction: column; border-radius: 60px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(20, 45, 65, .1), 0 0 80px -10px rgba(52, 224, 161, .28), 0 30px 60px -20px rgba(25, 55, 85, .2); transform-origin: top; animation: pousse 1.1s var(--courbe) both .15s; }
.forage .carotte::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; top: -4%; z-index: 2; background: linear-gradient(90deg, transparent, #19c38a, transparent); box-shadow: 0 0 22px 6px rgba(52, 224, 161, .5); animation: balayage 2.6s var(--courbe) 1.1s both; }
.forage .couche { position: relative; flex: var(--h) 1 0; display: flex; align-items: flex-start; padding: 12px 16px; }
.forage .couche + .couche { box-shadow: inset 0 1px rgba(0, 0, 0, .3); }
.forage .couche.sol { background: linear-gradient(180deg, #e3e6dd, #c9cdc1); }
.forage .couche.n1 { background: repeating-linear-gradient(172deg, rgba(20, 45, 65, .1) 0 3px, transparent 3px 11px), var(--strate-1); }
.forage .couche.n2 { background: repeating-linear-gradient(168deg, rgba(20, 45, 65, .08) 0 2px, transparent 2px 9px), #17b07c; }
.forage .couche.n3 { background: repeating-linear-gradient(176deg, rgba(232, 172, 69, .3) 0 2px, transparent 2px 13px), #5b4bc4; }
.forage .couche span { font: 500 11.5px/1.25 var(--sans); color: rgba(255, 255, 255, .8); }
.forage .couche span b { display: block; font-weight: 650; font-size: 13px; font-stretch: 114%; color: var(--encre-fort); }
.forage .couche.n1 span { color: rgba(8, 24, 17, .72); } .forage .couche.n1 span b { color: #06150f; }
.connexion .formulaire { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(28px, 5vw, 76px); position: relative; background: rgba(255, 255, 255, .5); border-left: 1px solid var(--ligne); }
.connexion .formulaire form { width: 100%; max-width: 380px; animation: ouvre .5s var(--courbe) both .1s; }
.connexion .formulaire h2 { font-size: 30px; font-weight: 650; font-stretch: 120%; letter-spacing: -.035em; margin: 0 0 10px; }
.connexion .lien-discret { margin-top: 32px; font-size: 13px; color: var(--encre-3); }
.connexion .lien-discret a { color: var(--encre-2); text-decoration: none; border-bottom: 1px solid var(--ligne-forte); }
.connexion .lien-discret a:hover { color: var(--malachite-vif); border-color: var(--malachite-vif); }
@media (max-width: 1100px) { .connexion .scene { grid-template-columns: minmax(0, 1fr) 130px; gap: 24px; } .forage { grid-template-columns: 40px 1fr; } .forage .couche span { display: none; } }
@media (max-width: 900px) {
  .connexion { grid-template-columns: 1fr; }
  .connexion .visuel { padding: 24px 20px 28px; gap: 20px; }
  .connexion .scene { grid-template-columns: 1fr; }
  .connexion .titre-geant { font-size: 48px; }
  .forage, .connexion .pied-visuel { display: none; }
  .connexion .formulaire { padding: 32px 20px 48px; border-left: 0; border-top: 1px solid var(--ligne); }
}

/* ------------------------------------------------------------------ Strates d'un module */
.strates { display: flex; flex-direction: column; border: 1px solid var(--ligne); border-radius: var(--r-xl); overflow: hidden; background: var(--surface); box-shadow: var(--reflet); }
.strate { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 22px 24px 22px 30px; border-top: 1px solid var(--ligne); position: relative; transition: background var(--m-tap); }
.strate:hover { background: rgba(20, 45, 65, .02); }
.strate:first-child { border-top: 0; }
.strate::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--strate, var(--kaolin)); box-shadow: 0 0 16px var(--strate, transparent); }
.strate[data-n="1"] { --strate: var(--strate-1); } .strate[data-n="2"] { --strate: var(--strate-2); } .strate[data-n="3"] { --strate: var(--strate-3); }
.strate .prof { font: 500 12.5px var(--sans); color: var(--encre-3); }
.strate .prof b { display: block; font: 650 19px var(--sans); font-stretch: 118%; color: var(--encre-fort); letter-spacing: -.02em; margin-top: 4px; }
.strate h3 { font-size: 16px; }
.strate .meta { font-size: 13px; color: var(--encre-2); margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }
.strate.verrou { background: radial-gradient(rgba(20, 45, 65, .05) 1px, transparent 1.5px) 0 0 / 7px 7px; }
.strate.verrou::before { background: var(--kaolin-2); box-shadow: none; }
.strate.verrou h3, .strate.verrou .meta { color: var(--encre-3); }
.strate .score { font: 600 30px var(--sans); font-stretch: 120%; text-align: right; letter-spacing: -.04em; color: var(--encre-fort); font-variant-numeric: tabular-nums; }
.strate .score small { display: block; font: 500 12px var(--sans); color: var(--encre-3); letter-spacing: 0; font-stretch: 100%; }
@media (max-width: 640px) { .strate { grid-template-columns: 1fr; gap: 10px; } .strate .score { text-align: left; } }
.module-grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
@media (max-width: 1000px) { .module-grille { grid-template-columns: minmax(0, 1fr); } }

.carte-module { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r-l); text-decoration: none; color: inherit; overflow: hidden; box-shadow: var(--reflet); transition: border-color var(--m-tap), box-shadow var(--m-ui) var(--courbe); }
.carte-module::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--spectre); opacity: .7; }
.carte-module:hover { color: inherit; border-color: rgba(52, 224, 161, .35); box-shadow: 0 0 34px -14px rgba(52, 224, 161, .5); }
.carte-module .haut { padding: 18px 20px 16px; display: flex; justify-content: space-between; gap: 12px; }
.carte-module .code { font: 650 13px var(--sans); font-stretch: 118%; color: var(--malachite-vif); }
.carte-module h3 { margin-top: 8px; font-size: 16.5px; line-height: 1.28; }
.carte-module .note { font: 600 26px var(--sans); font-stretch: 118%; letter-spacing: -.04em; text-align: right; color: var(--encre-fort); font-variant-numeric: tabular-nums; }
.carte-module .note small { display: block; font-size: 11px; color: var(--encre-3); font-weight: 500; letter-spacing: 0; }
.carte-module .colonne-strates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 14px 14px; }
.carte-module .colonne-strates div { padding: 10px 12px; border-radius: 8px; background: rgba(20, 45, 65, .03); border: 1px solid var(--ligne); font: 500 11.5px var(--sans); color: var(--encre-3); }
.carte-module .colonne-strates b { display: block; color: var(--encre-fort); font-size: 15px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.carte-module .colonne-strates .ok { background: var(--malachite-pale); border-color: rgba(52, 224, 161, .2); }
.carte-module .pied-carte { margin-top: auto; padding: 12px 20px; border-top: 1px solid var(--ligne); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--encre-2); }

.maitrise { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; }
.maitrise .barres { display: inline-flex; gap: 3px; align-items: flex-end; }
.maitrise .barres i { width: 5px; border-radius: 1px; background: rgba(20, 45, 65, .08); }
.maitrise .barres i:nth-child(1) { height: 7px; } .maitrise .barres i:nth-child(2) { height: 10px; } .maitrise .barres i:nth-child(3) { height: 13px; } .maitrise .barres i:nth-child(4) { height: 16px; }
.maitrise .barres i.on { background: var(--m, var(--malachite-vif)); box-shadow: 0 0 8px var(--m, var(--malachite-vif)); }

/* ------------------------------------------------------------------ Cours : lecture */
.cours-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 48px; align-items: start; }
.cours-layout.edit { grid-template-columns: 340px minmax(0, 1fr); gap: 32px; }
@media (max-width: 960px) { .cours-layout, .cours-layout.edit { grid-template-columns: 1fr; gap: 28px; } }
/* Sommaire autonome (éditeur) */
.sommaire { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r-l); max-height: calc(100dvh - 112px); overflow: auto; padding: 6px 0; }
.sommaire .chap { position: relative; border-top: 1px solid var(--ligne); padding-bottom: 6px; }
.sommaire .chap:first-child { border-top: 0; }
.sommaire .chap > div { padding: 14px 18px 6px; font: 600 12.5px var(--sans); color: var(--encre-3); display: flex; justify-content: space-between; gap: 8px; }
.sommaire a { position: relative; display: flex; gap: 10px; align-items: flex-start; margin: 1px 8px; padding: 8px 10px; border-radius: 8px; color: var(--encre-2); text-decoration: none; font-size: 14px; line-height: 1.38; transition: background var(--m-tap), color var(--m-tap); }
.sommaire a:hover { background: rgba(20, 45, 65, .04); color: var(--encre); }
.sommaire a.actif { background: var(--malachite-pale); color: var(--encre-fort); font-weight: 600; }
.sommaire a .coche { flex: none; width: 13px; height: 13px; margin-top: 3px; border: 1.5px solid var(--ligne-forte); border-radius: 50%; background: var(--nuit); transition: background var(--m-ui) var(--courbe), border-color var(--m-ui), box-shadow var(--m-ui); }
.sommaire a.fait .coche { border-color: var(--malachite-vif); background: var(--malachite-vif); box-shadow: 0 0 10px rgba(52, 224, 161, .6); }
.sommaire a.actif .coche { border-color: var(--malachite-vif); box-shadow: 0 0 0 3px rgba(52, 224, 161, .2); }
.sommaire .verrouille { padding: 7px 18px 12px; font-size: 12.5px; color: var(--encre-3); }
@media (max-width: 960px) { .sommaire { position: static; max-height: none; } }
/* Rail de lecture : les leçons enfilées sur une ligne de forage */
.rail { position: sticky; top: 88px; max-height: calc(100dvh - 108px); overflow: auto; scrollbar-width: thin; padding-right: 6px; }
.rail .retour { margin-bottom: 22px; }
.rail-avance { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 10px; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--ligne); }
.rail-avance b { font: 600 32px/1 var(--sans); font-stretch: 122%; letter-spacing: -.04em; color: var(--encre-fort); }
.rail-avance b small { font-size: 15px; color: var(--encre-3); font-weight: 500; letter-spacing: 0; font-stretch: 100%; }
.rail-avance > span:not(.jauge-fine) { font-size: 13px; color: var(--encre-2); }
.rail-avance .jauge-fine { grid-column: 1 / -1; width: 100%; margin-top: 10px; }
.rail .sommaire { position: static; max-height: none; overflow: visible; background: none; border: 0; padding: 0; }
.rail .sommaire .chap { border-top: 0; padding-bottom: 10px; }
.rail .sommaire .chap > div { padding: 16px 0 8px; color: var(--encre-2); }
.rail .sommaire .chap::before { content: ""; position: absolute; left: 6px; top: 46px; bottom: 18px; width: 1px; background: linear-gradient(var(--ligne-forte), var(--ligne)); }
.rail .sommaire a { margin: 0; padding: 7px 10px 7px 24px; }
.rail .sommaire a .coche { position: absolute; left: 0; top: 10px; margin: 0; z-index: 1; }
.rail .sommaire a.actif { background: linear-gradient(90deg, var(--malachite-pale), transparent); }
.rail .sommaire .verrouille { padding: 4px 0 8px 24px; }
@media (max-width: 960px) { .rail { position: static; max-height: none; } }
/* Fil de lecture (suit le défilement, si le navigateur le permet) */
.fil-lecture { position: fixed; left: 0; right: 0; top: 64px; height: 2px; z-index: 29; background: var(--spectre); box-shadow: 0 0 12px rgba(52, 224, 161, .5); transform-origin: left; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) { .fil-lecture { animation: lire linear both; animation-timeline: scroll(root); } }
@supports not (animation-timeline: scroll()) { .fil-lecture { display: none; } }
.lecon { min-width: 0; max-width: 760px; }
.lecon > * + * { margin-top: 32px; }
.lecon-tete { padding-bottom: 24px; border-bottom: 1px solid var(--ligne); }
.lecon-tete h1 { margin-top: 10px; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.04; }
.lecon-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 16px; }
.lecon-meta .etiq { margin: 0; }
.lecon-etat { font-size: 13px; color: var(--encre-2); margin-right: 6px; }
.lecon-etat:empty { display: none; }
.prose { font-size: 17px; line-height: 1.8; max-width: 68ch; color: #2a3944; }
.prose h2 { font-size: 23px; margin: 1.8em 0 .6em; padding-top: 1.1em; border-top: 1px solid var(--ligne); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 18px; margin: 1.5em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--malachite-vif); font-weight: 700; }
.prose blockquote { margin: 1.4em 0; padding: 16px 20px; border-radius: var(--r); background: var(--ocre-pale); border-left: 2px solid var(--ocre); color: var(--ocre-encre); }
.prose code { font: 14px var(--mono); background: rgba(20, 45, 65, .07); padding: 2px 6px; border-radius: 5px; color: var(--encre-fort); }
.prose table { border-collapse: separate; border-spacing: 0; margin: 1.4em 0; font-size: 14.5px; border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; }
.prose th, .prose td { border-bottom: 1px solid var(--ligne); padding: 10px 14px; text-align: left; }
.prose th { background: rgba(20, 45, 65, .04); font-weight: 650; color: var(--encre-fort); }
.prose strong { font-weight: 650; color: var(--encre-fort); }
.prose a { color: var(--malachite-vif); }
.supports h2 { font-size: 17px; margin-bottom: 14px; }
.lecon-suite { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 28px; border-top: 1px solid var(--ligne); }
.suite { display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--r-l); border: 1px solid var(--ligne); background: var(--surface); color: inherit; text-decoration: none; box-shadow: var(--reflet); transition: border-color var(--m-tap), box-shadow var(--m-ui) var(--courbe), transform var(--m-tap) var(--courbe); }
.suite span { font-size: 12.5px; color: var(--encre-3); }
.suite b { font-size: 15px; font-weight: 600; color: var(--encre-fort); line-height: 1.35; }
.suite.suiv { text-align: right; border-color: rgba(52, 224, 161, .3); }
.suite.suiv span { color: var(--malachite-vif); }
.suite:hover { color: inherit; border-color: rgba(52, 224, 161, .5); box-shadow: 0 0 30px -12px rgba(52, 224, 161, .6); }
.suite:active { transform: scale(.99); }
@media (max-width: 640px) { .lecon-suite { grid-template-columns: 1fr; } }

.support { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--ligne); border-radius: var(--r); background: var(--surface); text-decoration: none; color: inherit; transition: border-color var(--m-tap), background var(--m-tap); }
.support:hover { color: inherit; border-color: rgba(52, 224, 161, .35); background: var(--surface-2); }
.support:active { background: var(--surface-3); }
.support .ext { width: 44px; height: 44px; display: grid; place-items: center; font: 650 11px var(--sans); font-stretch: 118%; color: var(--encre-fort); background: var(--schiste-2); border-radius: 10px; }
.support .ext.pdf { background: #c4482a; } .support .ext.pptx, .support .ext.ppt { background: #b06a36; } .support .ext.xlsx { background: #12865f; } .support .ext.docx { background: #3d5f96; }
.visionneuse { width: 100%; height: 72vh; border: 1px solid var(--ligne); border-radius: var(--r-l); background: #fff; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-l); overflow: hidden; box-shadow: 0 0 0 1px var(--ligne), 0 30px 60px -30px rgba(25, 55, 85, .2); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------------------ Épreuve : briefing */
.briefing-grille { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; margin-top: 32px; }
@media (max-width: 960px) { .briefing-grille { grid-template-columns: minmax(0, 1fr); } }
.deroule { list-style: none; margin: 0; padding: 0; counter-reset: bloc; }
.deroule li { counter-increment: bloc; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--ligne); font-size: 14px; }
.deroule li:last-child { border-bottom: 1px solid var(--ligne); }
.deroule li::before { content: "Bloc " counter(bloc); font-size: 12.5px; color: var(--malachite-vif); font-weight: 600; }
.deroule b { color: var(--encre-fort); font-weight: 600; }
.deroule span { color: var(--encre-2); font-size: 13px; }
.regles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); border-radius: var(--r-l); overflow: hidden; }
.regles li { padding: 18px 20px; background: var(--surface); }
.regles b { display: block; font-size: 14px; color: var(--encre-fort); margin-bottom: 6px; }
.regles p { margin: 0; font-size: 13.5px; color: var(--encre-2); line-height: 1.55; }
@media (max-width: 640px) { .regles { grid-template-columns: 1fr; } }
.bareme { margin-top: 14px; }
.bareme summary { cursor: pointer; font-size: 13px; color: var(--encre-2); }
.bareme summary::before { content: "▸ "; display: inline-block; transition: transform var(--m-ui) var(--courbe); }
.bareme[open] summary::before { transform: rotate(90deg); }
.bareme .rangee { gap: 6px; margin-top: 12px; }
.console { position: sticky; top: 96px; padding: 24px; border-radius: 4px; background: var(--coins), linear-gradient(180deg, rgba(52, 224, 161, .06), transparent 50%), var(--surface); border: 1px solid rgba(52, 224, 161, .22); box-shadow: 0 0 60px -24px rgba(52, 224, 161, .45); }
.console h2 { font-size: 20px; }
.console .case { padding: 12px 14px; border-radius: var(--r); background: rgba(20, 45, 65, .03); border: 1px solid var(--ligne); }
@media (max-width: 960px) { .console { position: static; } }

/* ------------------------------------------------------------------ Épreuve : passage */
.epreuve { min-height: 100dvh; display: flex; flex-direction: column; }
.epreuve-barre { background: rgba(255, 255, 255, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--sur-sombre); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--ligne); }
.epreuve-barre::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--spectre); opacity: .6; }
.epreuve-barre .int { max-width: 1240px; margin: 0 auto; padding: 0 24px; min-height: 74px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.epreuve-barre .titre { flex: 1; min-width: 200px; }
.epreuve-barre .titre b { display: block; font-size: 15.5px; color: var(--encre-fort); font-stretch: 112%; }
.epreuve-barre .titre span { font: 500 12.5px var(--sans); color: var(--sur-sombre-2); }
.chrono { text-align: right; min-width: 104px; }
.chrono .lib { font: 500 12px var(--sans); color: var(--sur-sombre-2); }
.chrono .val { font: 600 28px/1.1 var(--mono); color: var(--encre-fort); letter-spacing: -.03em; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(52, 224, 161, .45); }
.chrono.alerte .val { color: var(--ocre-encre); text-shadow: 0 0 18px rgba(232, 172, 69, .55); }
.chrono.critique .val { color: var(--laterite-encre); text-shadow: 0 0 18px rgba(240, 112, 79, .7); animation: pulse 1s ease-in-out infinite; }
.chrono .fil { height: 2px; border-radius: 2px; background: rgba(20, 45, 65, .1); margin-top: 6px; overflow: hidden; }
.chrono .fil i { display: block; height: 100%; background: var(--malachite-vif); box-shadow: 0 0 10px var(--malachite-vif); transition: width 1s linear; }
.chrono.alerte .fil i { background: var(--ocre); box-shadow: 0 0 10px var(--ocre); } .chrono.critique .fil i { background: var(--laterite); box-shadow: 0 0 10px var(--laterite); }
.vigilance { display: flex; align-items: center; gap: 10px; padding-left: 20px; border-left: 1px solid var(--ligne-forte); }
.vigilance .lib { font: 500 12px var(--sans); color: var(--sur-sombre-2); }
.vigilance .segments { display: flex; gap: 3px; margin-top: 6px; }
.vigilance .segments i { width: 9px; height: 10px; border-radius: 1px; background: rgba(20, 45, 65, .1); transition: background var(--m-ui); }
.vigilance .segments i.on { background: var(--malachite-vif); box-shadow: 0 0 8px var(--malachite-vif); }
.vigilance.orange .segments i.on { background: var(--ocre); box-shadow: 0 0 8px var(--ocre); }
.vigilance.rouge .segments i.on { background: var(--laterite); box-shadow: 0 0 8px var(--laterite); }
.blocs-fil { display: flex; gap: 2px; background: rgba(255, 255, 255, .55); }
.blocs-fil div { flex: 1; padding: 8px 24px; font: 500 12px var(--sans); color: var(--sur-sombre-2); border-top: 2px solid rgba(20, 45, 65, .1); }
.blocs-fil div.en_cours { color: var(--encre-fort); border-top-color: var(--malachite-vif); background: var(--malachite-pale); }
.blocs-fil div.clos { color: var(--encre-3); text-decoration: line-through; }
.epreuve-corps { flex: 1; max-width: 1240px; width: 100%; margin: 0 auto; padding: 30px 24px 120px; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .epreuve-corps { grid-template-columns: 1fr; } .vigilance { border: 0; padding: 0; } }
.cas { background: linear-gradient(180deg, var(--manganese-pale), rgba(139, 124, 240, .04)); border: 1px solid rgba(139, 124, 240, .28); color: #2f2a5a; padding: 22px 24px; border-radius: var(--r-l); margin-bottom: 20px; }
.cas .sur { color: #5545c4; }
.cas p { margin: 10px 0 0; line-height: 1.75; }
.question { position: relative; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r-l); padding: 26px 28px; margin-bottom: 16px; scroll-margin-top: 140px; box-shadow: var(--reflet); }
.question .ent { display: flex; gap: 16px; align-items: baseline; margin-bottom: 18px; }
.question .no { display: inline-grid; place-items: center; min-width: 38px; height: 28px; padding: 0 6px; border-radius: 6px; border: 1px solid rgba(52, 224, 161, .4); color: var(--malachite-vif); font: 600 13px var(--mono); flex: none; font-variant-numeric: tabular-nums; }
.question .enonce { font-size: 17.5px; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; color: var(--encre-fort); }
.question .consigne { font: 500 12.5px var(--sans); color: var(--encre-3); margin: -8px 0 14px 54px; }
.question.invalide { border-color: rgba(240, 112, 79, .45); background: linear-gradient(var(--laterite-pale), var(--laterite-pale)), var(--surface); }
.choix { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--ligne-forte); border-radius: var(--r); margin-top: 8px; cursor: pointer; background: rgba(20, 45, 65, .015);
  transition: border-color var(--m-tap), background var(--m-tap), box-shadow var(--m-ui) var(--courbe), transform var(--m-tap) var(--courbe); user-select: none; }
.choix:hover { border-color: rgba(52, 224, 161, .45); background: rgba(52, 224, 161, .04); }
.choix:active { transform: scale(.992); transition-duration: .06s; }
.choix input { position: absolute; opacity: 0; pointer-events: none; }
.choix .marq { flex: none; width: 24px; height: 24px; border: 1.5px solid var(--ligne-forte); border-radius: 6px; display: grid; place-items: center; font: 600 11.5px var(--mono); color: var(--encre-3); transition: background var(--m-tap), border-color var(--m-tap), color var(--m-tap), box-shadow var(--m-ui); }
.choix.radio .marq { border-radius: 50%; }
.choix.coche { border-color: var(--malachite-vif); background: var(--malachite-pale); box-shadow: var(--lueur); }
.choix.coche .marq { background: var(--malachite-vif); border-color: var(--malachite-vif); color: #fff; box-shadow: 0 0 12px rgba(52, 224, 161, .7); }
.choix input:focus-visible + .marq { outline: 2px solid var(--malachite-vif); outline-offset: 2px; }
.trou { display: inline-block; width: 150px; height: 34px; margin: 0 4px; padding: 0 10px; border: 0; border-bottom: 2px solid var(--malachite-vif); border-radius: 6px 6px 0 0; background: var(--malachite-pale); color: var(--encre-fort); font: 500 15px var(--sans); transition: box-shadow var(--m-ui), background var(--m-tap); }
.trou:focus { outline: none; box-shadow: 0 6px 16px -8px rgba(52, 224, 161, .8); background: rgba(52, 224, 161, .18); }
.navigateur { position: sticky; top: 100px; }
.navigateur .grille-q { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 14px; }
.navigateur .grille-q a { height: 36px; display: grid; place-items: center; border: 1px solid var(--ligne-forte); font: 600 12.5px var(--mono); color: var(--encre-2); text-decoration: none; border-radius: 7px; transition: background var(--m-tap), border-color var(--m-tap), color var(--m-tap), box-shadow var(--m-ui); font-variant-numeric: tabular-nums; }
.navigateur .grille-q a:hover { border-color: var(--malachite-vif); color: var(--malachite-vif); }
.navigateur .grille-q a.rep { background: var(--malachite-vif); color: #fff; border-color: var(--malachite-vif); box-shadow: 0 0 12px -2px rgba(52, 224, 161, .6); }
.navigateur .grille-q a.inv { background: var(--laterite); border-color: var(--laterite); color: #1e0802; }
.voile { position: fixed; inset: 0; z-index: 100; background: rgba(232, 240, 245, .9); color: var(--sur-sombre); display: grid; place-items: center; padding: 24px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fondu .25s; }
.voile .boite { max-width: 520px; text-align: center; animation: ouvre var(--m-ui) var(--courbe); }
.voile h2 { color: var(--encre-fort); font-size: 27px; margin: 12px 0; }
.alerte-triche { position: fixed; left: 50%; top: 90px; transform: translateX(-50%); z-index: 90; background: var(--laterite); color: #1e0802; padding: 13px 18px; border-radius: var(--r); font-weight: 650; font-size: 14px; box-shadow: 0 0 40px -6px rgba(240, 112, 79, .7); max-width: min(560px, calc(100vw - 32px)); animation: fondu .25s; }
.message-surv { position: fixed; right: 20px; bottom: 20px; z-index: 95; width: min(380px, calc(100vw - 40px)); background: var(--ocre); color: #1e1404; border-radius: var(--r-l); padding: 16px 18px; box-shadow: 0 0 50px -10px rgba(232, 172, 69, .7); animation: ouvre var(--m-ui) var(--courbe); }

/* Correction et résultat */
.corr .choix { cursor: default; }
.corr .choix:hover { background: rgba(20, 45, 65, .015); border-color: var(--ligne-forte); }
.corr .choix.juste { border-color: var(--malachite-vif); background: var(--malachite-pale); }
.corr .choix.faux { border-color: rgba(240, 112, 79, .5); background: var(--laterite-pale); }
.corr .choix.attendu { border-style: dashed; border-color: var(--malachite-vif); }
.explication { margin-top: 14px; padding: 13px 16px; background: var(--cuivre-pale); border-left: 2px solid var(--cuivre); border-radius: var(--r-s); font-size: 14.5px; color: #7a4418; }
.anneau { --p: 0; --c: var(--malachite-vif); width: 176px; height: 176px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(20, 45, 65, .08) 0); display: grid; place-items: center; flex: none; filter: drop-shadow(0 0 22px color-mix(in srgb, var(--c) 45%, transparent)); animation: ouvre .6s var(--courbe) both; }
.anneau > div { width: 148px; height: 148px; border-radius: 50%; background: var(--nuit-2); display: grid; place-items: center; text-align: center; box-shadow: inset 0 0 0 1px var(--ligne); }
.anneau b { font: 600 44px/1 var(--sans); font-stretch: 120%; color: var(--encre-fort); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.anneau span { display: block; font: 500 12px var(--sans); color: var(--sur-sombre-2); margin-top: 5px; }

/* ------------------------------------------------------------------ Espace formateur */
.coque { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100dvh; }
.lateral { position: sticky; top: 0; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; background: rgba(8, 7, 13, .55); border-right: 1px solid var(--ligne); }
.lateral-tete { padding: 20px 20px 18px; }
.lateral nav { padding: 0 12px 12px; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.lateral nav:hover { scrollbar-color: var(--ligne-forte) transparent; }
.lateral .bloc-nav + .bloc-nav { margin-top: 10px; }
.lateral .groupe { font: 550 12px var(--sans); color: var(--encre-3); padding: 6px 12px 4px; }
.lateral a.lien { position: relative; isolation: isolate; display: flex; align-items: center; gap: 11px; height: 35px; padding: 0 12px; margin: 1px 0; color: var(--encre-2); text-decoration: none; font-size: 14px; font-weight: 550; border-radius: 8px; transition: color var(--m-tap), background var(--m-tap); }
.lateral a.lien .ico { color: var(--encre-3); transition: color var(--m-tap); }
.lateral a.lien .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lateral a.lien:hover { color: var(--encre); background: rgba(20, 45, 65, .04); }
.lateral a.lien:active { background: rgba(20, 45, 65, .07); }
.lateral a.lien.actif { color: var(--encre-fort); font-weight: 620; }
.lateral a.lien.actif .ico { color: var(--malachite-vif); filter: drop-shadow(0 0 6px rgba(52, 224, 161, .6)); }
.lateral a.lien .indic { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(90deg, rgba(52, 224, 161, .14), rgba(52, 224, 161, .03)); box-shadow: inset 2px 0 0 var(--malachite-vif), inset 0 0 0 1px rgba(52, 224, 161, .14); }
.lateral a.lien .badge { margin-left: auto; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; font: 650 11px var(--sans); background: var(--laterite); color: #1e0802; border-radius: 6px; box-shadow: 0 0 10px rgba(240, 112, 79, .5); }
.lateral a.lien .badge.vert { background: var(--malachite-vif); color: #fff; box-shadow: 0 0 10px rgba(52, 224, 161, .5); }
.lateral .pied { padding: 12px 12px 14px; display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--ligne); }
.lateral .pied .puce-user { flex: 1; }
.lateral .pied .flex1 { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.lateral .pied .flex1 b { font-size: 13.5px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--encre-fort); }
.lateral .pied .flex1 span { font-size: 12px; color: var(--encre-3); }
.coque .contenu { min-width: 0; min-height: 100dvh; overflow: clip; }
.coque .page { max-width: 1320px; }
.barre-haut { position: sticky; top: 0; z-index: 25; height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 36px; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(130%) blur(8px); -webkit-backdrop-filter: saturate(130%) blur(8px); border-bottom: 1px solid var(--ligne); }
.barre-haut .fil { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--encre-3); min-width: 0; }
.barre-haut .fil b { color: var(--encre); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre-haut .fil .sep { color: var(--ligne-forte); }
.barre-haut .date-jour { margin-left: auto; font: 500 13px var(--sans); color: var(--encre-3); white-space: nowrap; }
.barre-haut .date-jour::first-letter { text-transform: uppercase; }
.burger { display: none !important; }
.voile-nav { display: none; }
@media (max-width: 1000px) {
  .coque { grid-template-columns: 1fr; }
  .lateral { position: fixed; z-index: 60; left: 0; top: 0; width: 280px; background: var(--nuit-2); transform: translateX(-104%); transition: transform var(--m-ui) var(--courbe); box-shadow: var(--ombre-3); }
  .lateral.ouvert { transform: none; }
  .voile-nav { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(15, 35, 55, .35); opacity: 0; pointer-events: none; transition: opacity var(--m-ui); }
  .voile-nav.ouvert { opacity: 1; pointer-events: auto; }
  .burger { display: inline-grid !important; margin-left: -8px; }
  .barre-haut { padding: 0 16px; }
  .barre-haut .date-jour { display: none; }
}

.onglets { display: inline-flex; gap: 2px; padding: 3px; background: rgba(20, 45, 65, .04); border: 1px solid var(--ligne); border-radius: 11px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.onglets a, .onglets button { height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: var(--encre-2); font-weight: 600; font-size: 13.5px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background var(--m-ui) var(--courbe), color var(--m-tap), box-shadow var(--m-ui); display: inline-flex; align-items: center; }
.onglets a:hover, .onglets button:hover { color: var(--encre); }
.onglets .actif { background: var(--malachite-pale); color: var(--encre-fort); box-shadow: inset 0 0 0 1px rgba(52, 224, 161, .3); }

/* Surveillance en direct */
.mur { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.vignette { position: relative; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r-l); padding: 15px 16px 14px 19px; overflow: hidden; transition: border-color var(--m-tap); box-shadow: var(--reflet); }
.vignette::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--etat, var(--malachite-vif)); box-shadow: 0 0 14px var(--etat, var(--malachite-vif)); }
.vignette:hover { border-color: var(--ligne-forte); }
.vignette.orange { --etat: var(--ocre); } .vignette.rouge { --etat: var(--laterite); background: linear-gradient(var(--laterite-pale), var(--laterite-pale)), var(--surface); } .vignette.pause { --etat: var(--manganese); background: linear-gradient(var(--manganese-pale), var(--manganese-pale)), var(--surface); }
.vignette .nom { font-weight: 650; font-size: 14.5px; color: var(--encre-fort); }
.vignette .ex { font-size: 12.5px; color: var(--encre-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vignette .chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 10px; font: 500 11.5px var(--sans); color: var(--encre-3); }
.vignette .chiffres > div { background: rgba(20, 45, 65, .03); border: 1px solid var(--ligne); border-radius: 8px; padding: 7px 9px; }
.vignette .chiffres b { display: block; font: 600 16px var(--mono); color: var(--encre-fort); margin-top: 2px; font-variant-numeric: tabular-nums; }
.vignette .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.direct { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border-radius: 6px; background: var(--laterite-pale); font: 650 12px var(--sans); color: var(--laterite-encre); }
.direct::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--laterite); color: rgba(240, 112, 79, .5); animation: onde 1.4s ease-out infinite; }

/* Calendrier */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r-l); overflow: hidden; }
.cal .jn { padding: 10px; font: 550 12.5px var(--sans); color: var(--encre-3); border-bottom: 1px solid var(--ligne); }
.cal .j { min-height: 108px; padding: 8px; border-right: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); font-size: 12px; transition: background var(--m-tap); }
.cal .j:nth-child(7n) { border-right: 0; }
.cal .j:hover { background: rgba(20, 45, 65, .02); }
.cal .j.hors { background: rgba(20, 45, 65, .04); color: var(--encre-3); }
.cal .j.auj .d { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 6px; background: var(--malachite-vif); color: #fff; box-shadow: 0 0 12px rgba(52, 224, 161, .6); }
.cal .j .d { font: 600 12.5px var(--mono); margin-bottom: 5px; font-variant-numeric: tabular-nums; }
.cal .ev { display: block; padding: 3px 7px; margin-bottom: 3px; border-radius: 5px; border-left: 2px solid var(--malachite-vif); background: var(--malachite-pale); font-size: 11.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--encre); text-decoration: none; }
.cal .ev:hover { color: var(--encre-fort); background: rgba(52, 224, 161, .2); }
.cal .ev.cloture, .cal .ev.devoir { border-color: var(--laterite); background: var(--laterite-pale); }
.cal .ev.soutenance { border-color: var(--manganese); background: var(--manganese-pale); }
.cal .ev.cours, .cal .ev.reunion, .cal .ev.autre { border-color: var(--cuivre); background: var(--cuivre-pale); }
@media (max-width: 700px) { .cal .j { min-height: 64px; padding: 4px; } .cal .ev { font-size: 0; height: 6px; padding: 0; } }

.chaleur td.v { text-align: center; font: 600 12.5px var(--mono); color: var(--encre-fort); font-variant-numeric: tabular-nums; border-left: 2px solid var(--surface); }
.lecteur-pdf { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(330px, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1100px) { .lecteur-pdf { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Fenêtres et notifications */
.modale-fond { position: fixed; inset: 0; z-index: 200; background: rgba(15, 35, 55, .32); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px; overflow-y: auto; animation: fondu .2s var(--courbe); }
.modale { width: 100%; max-width: 580px; background: var(--surface); border: 1px solid var(--ligne-forte); border-radius: var(--r-xl); box-shadow: var(--reflet), 0 40px 90px -24px rgba(25, 55, 85, .2); animation: ouvre var(--m-ui) var(--courbe); overflow: hidden; position: relative; }
.modale::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--spectre); opacity: .7; }
.modale-fond.sortie { animation: sortFondu var(--m-sortie) var(--courbe-sortie) both; }
.modale-fond.sortie .modale { animation: ferme var(--m-sortie) var(--courbe-sortie) both; }
.modale.large { max-width: 940px; }
.modale.danger .tete h2 { color: var(--laterite-encre); }
.modale .tete { padding: 22px 24px 4px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modale .tete h2 { font-size: 20px; font-weight: 640; }
.modale .corps { padding: 14px 24px 22px; }
.modale .pied { padding: 14px 24px; background: rgba(20, 45, 65, .02); border-top: 1px solid var(--ligne); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.modale form > .rangee:last-child { margin: 8px -24px -22px; padding: 14px 24px; background: rgba(20, 45, 65, .02); border-top: 1px solid var(--ligne); }
.fermer { display: grid; place-items: center; width: 34px; height: 34px; margin: -4px -8px 0 0; background: none; border: 0; border-radius: 9px; font-size: 22px; line-height: 1; cursor: pointer; color: var(--encre-3); transition: background var(--m-tap), color var(--m-tap), transform var(--m-tap) var(--courbe); }
.fermer:hover { background: rgba(20, 45, 65, .06); color: var(--encre); }
.fermer:active { transform: scale(.92); }
.notifs { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.notif { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--ligne-forte); color: var(--encre-fort); padding: 12px 18px 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: 0 20px 50px -14px rgba(25, 55, 85, .2); pointer-events: auto; animation: ouvre var(--m-ui) var(--courbe); max-width: calc(100vw - 32px); }
.notif::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--malachite-vif) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2303170f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 8.3 2.3 2.2 4.7-5'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: 0 0 12px rgba(52, 224, 161, .6); }
.notif.erreur::before { background: var(--laterite) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231e0802' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M8 4.5v4.5M8 11.6v.1'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: 0 0 12px rgba(240, 112, 79, .6); }

.secret { font: 600 18px var(--mono); letter-spacing: .05em; background: rgba(255, 255, 255, .75); border: 1px solid rgba(52, 224, 161, .3); color: var(--malachite-encre); padding: 14px 18px; border-radius: var(--r); user-select: all; word-break: break-all; text-shadow: 0 0 12px rgba(52, 224, 161, .4); }
.chargement { position: relative; height: 320px; color: transparent; font-size: 0; overflow: hidden; border-radius: var(--r-l);
  background:
    linear-gradient(var(--surface-3) 0 0) 0 0 / 34% 30px no-repeat,
    linear-gradient(var(--surface-3) 0 0) 0 48px / 52% 14px no-repeat,
    linear-gradient(var(--surface) 0 0) 0 96px / 100% 96px no-repeat,
    linear-gradient(var(--surface) 0 0) 0 216px / 100% 104px no-repeat; }
.chargement::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(52, 224, 161, .07), transparent); animation: progression 1.4s ease-in-out infinite; }
.demarrage { min-height: 100dvh; display: grid; place-items: center; }
.demarrage img { width: 44px; height: 44px; animation: pulse 1.6s ease-in-out infinite; filter: drop-shadow(0 0 16px rgba(52, 224, 161, .4)); }
.evitement { position: fixed; left: 16px; top: -60px; z-index: 500; padding: 10px 16px; border-radius: 10px; background: var(--malachite-vif); color: #fff; font-weight: 650; text-decoration: none; transition: top var(--m-ui) var(--courbe); }
.evitement:focus { top: 16px; color: #fff; }

/* ------------------------------------------------------------------ Documents sur papier clair (attestation, procès-verbal, impression) */
.papier-clair, .attestation {
  --surface: #fff; --surface-2: #f7f8f5; --surface-3: #eef0eb;
  --encre: #17211c; --encre-2: #232b26; --encre-3: #2f3730;
  --ligne: rgba(23, 33, 28, .1); --ligne-forte: rgba(23, 33, 28, .2); --reflet: none;
  --malachite: #0b7353; --malachite-vif: #0b7353; --malachite-pale: #e3f2eb; --malachite-encre: #075a41;
  --laterite: #b4462b; --laterite-pale: #f8e8e3; --laterite-encre: #8e3119;
  --ocre: #c4861c; --ocre-pale: #f8efdd; --ocre-encre: #865a0e;
  color: var(--encre); color-scheme: light;
}
.papier-clair body { background: #fff; color: #17211c; }
.papier-clair h1, .papier-clair h2, .papier-clair h3, .attestation h1, .attestation h2, .attestation h3 { color: #17211c; }
.papier-clair table.t td, .papier-clair .petit, .papier-clair p { color: #17211c; }
.papier-clair .btn { color: var(--encre-fort); background: #0b7353; box-shadow: none; }
.attestation { background: #fff; max-width: 900px; margin: 0 auto; border-radius: var(--r-l); position: relative; overflow: hidden; box-shadow: 0 0 0 1px var(--ligne), 0 40px 90px -30px rgba(25, 55, 85, .2); }
.attestation .bande { background: #1a1626; color: var(--encre-fort); padding: 28px 40px; display: flex; justify-content: space-between; align-items: center; position: relative; }
.attestation .bande::before { content: ""; position: absolute; inset: 0; background: url("../assets/topo.svg") center / cover; opacity: .12; filter: invert(1); }
.attestation .bande > * { position: relative; }
.attestation .bande img { height: 44px; width: auto; }
.attestation .corps-att { padding: 40px 48px 36px; }
.attestation .nom-tit { font: 650 42px/1.05 var(--sans); font-stretch: 122%; letter-spacing: -.035em; margin: 12px 0 6px; color: #17211c; }
.attestation .grille-att { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ligne-forte); border-bottom: 1px solid var(--ligne-forte); margin: 28px 0; }
.attestation .grille-att div { padding: 14px 16px; border-left: 1px solid var(--ligne); }
.attestation .grille-att div:first-child { border-left: 0; padding-left: 0; }
.attestation .grille-att b { display: block; font: 600 21px var(--sans); font-stretch: 114%; margin-top: 4px; font-variant-numeric: tabular-nums; }
.attestation .verif { display: flex; gap: 20px; align-items: center; }
.attestation .verif img { width: 108px; height: 108px; }
.attestation .liseré { height: 6px; background: linear-gradient(90deg, #8fc3ab 0 25%, #0b7353 25% 55%, #3a3350 55% 85%, #c4861c 85%); }

@media print {
  :root {
    --surface: #fff; --surface-2: #f7f8f5; --surface-3: #eef0eb; --encre: #17211c; --encre-2: #232b26; --encre-3: #2f3730;
    --ligne: rgba(23, 33, 28, .12); --ligne-forte: rgba(23, 33, 28, .22); --malachite-vif: #0b7353; color-scheme: light;
  }
  html, body { background: #fff !important; color: #17211c; }
  h1, h2, h3, .prose, .prose strong { color: #17211c !important; }
  .barre, .barre-haut, .lateral, .voile-nav, .non-imprime, .notifs, .progression, .fil-lecture { display: none !important; }
  * { animation: none !important; box-shadow: none !important; text-shadow: none !important; }
  .coque { display: block; }
  .page { padding: 0; max-width: none; }
  .panneau, .kpi { break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Ajustements de lecture */
.supports .grille.g2 { grid-template-columns: minmax(0, 1fr); }
.rail .sommaire .chap:not(:has(a))::before { display: none; }
.bareme summary { list-style: none; }
.bareme summary::-webkit-details-marker { display: none; }
table.t td a:not(.btn) { color: var(--encre); text-decoration: none; font-weight: 550; }
table.t td a:not(.btn):hover { color: var(--malachite-vif); }
@media (max-width: 960px) { .rail .sommaire { display: none; } .rail-avance { padding-bottom: 14px; } .rail-avance b { font-size: 24px; } }
@media (max-width: 640px) { .releve.instrument { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px 16px; } .releve.instrument > div { padding: 0 12px; } .releve.instrument dd { font-size: 22px; } .regles li { padding: 16px; } }
.panneau > .corps.serre { overflow-x: auto; }
@media (max-width: 640px) { .strate { padding: 18px 16px 18px 22px; } .accueil, .tableau-grille, .lecteur-pdf, .cours-layout { grid-template-columns: minmax(0, 1fr); } }

/* ================================================================== Couche « Cristal » */
/* Titres : dégradé de marque */
h2, h3, h4 { color: var(--titre); }
#contenu h1, #contenu .salut, .connexion .formulaire h2 { background: var(--titre-degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.papier-clair h1, .attestation h1, .papier-clair h2, .attestation h2 { background: none; color: #17211c; }

/* Surfaces nettes : panneaux blancs opaques, bord fin, ombre franche (plus de verre dépoli granulé) */
.panneau, .couches, .registre-cours, .strates, .question, .etape, .cellule-niv, .suite, .support, .carte-module, .vignette, .cal,
.grille:has(> .kpi), .sommaire, .console, .regles, fieldset, .modale, .notif, .releve.instrument {
  background-color: #ffffff; border-color: var(--ligne); box-shadow: var(--reflet); }
.regles li { background: var(--surface-3); }
.regles { background: var(--ligne); }
table.t th { background: #f4f8fa; }
select option { background: #fff; color: var(--encre); }

/* Menu latéral (formateur) : dégradé de marque, verre en surimpression */
.lateral { background: var(--menu); border-right: 0; color: #fff; box-shadow: 8px 0 40px -20px rgba(15, 60, 80, .5); }
.lateral::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), transparent 30%), radial-gradient(420px 300px at 0% 100%, rgba(127, 240, 196, .16), transparent 70%); }
.lateral > * { position: relative; }
.lateral .marque, .lateral .marque:hover, .lateral .marque .sigle { color: #fff; }
.lateral .marque .deg, .lateral .groupe { color: rgba(255, 255, 255, .6); }
.lateral a.lien { color: rgba(255, 255, 255, .82); }
.lateral a.lien .ico { color: rgba(255, 255, 255, .62); }
.lateral a.lien:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.lateral a.lien.actif, .lateral a.lien.actif .ico { color: #fff; filter: none; }
.lateral a.lien .indic { background: linear-gradient(90deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .1)); box-shadow: inset 3px 0 0 #7ff0c4, inset 0 1px 0 rgba(255, 255, 255, .35); }
.lateral .pied { border-top-color: rgba(255, 255, 255, .14); }
.lateral .pied .flex1 b { color: #fff; } .lateral .pied .flex1 span { color: rgba(255, 255, 255, .62); }
.lateral .puce-user { color: #fff; } .lateral .puce-user:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.lateral .avatar { background: rgba(255, 255, 255, .18); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.lateral .btn-ico { color: rgba(255, 255, 255, .75); } .lateral .btn-ico:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* Barre apprenant : verre, entrée active en dégradé */
.barre, .barre-haut { background: rgba(255, 255, 255, .9); border-bottom-color: var(--ligne); box-shadow: 0 8px 24px -20px rgba(25, 55, 85, .4); }
.nav-h { background: var(--surface-3); border-color: var(--ligne); box-shadow: inset 0 1px 2px rgba(25, 55, 85, .05); }
.nav-h a.actif, .nav-h a.actif .ico { color: #fff; }
.nav-h a .indic { background: var(--menu); box-shadow: 0 6px 16px -6px rgba(11, 111, 108, .6), inset 0 1px 0 rgba(255, 255, 255, .3); }
.onglets { background: var(--surface-3); border-color: var(--ligne); }
.onglets .actif { background: var(--menu); color: #fff; box-shadow: 0 6px 16px -8px rgba(11, 111, 108, .6); }

/* Boutons : verre teinté, reflet scindé et éclat au survol */
.btn { overflow: hidden; isolation: isolate; color: #fff; background: linear-gradient(180deg, #13a877, #07805a); box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 8px 20px -10px rgba(7, 128, 90, .7); }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .1) 50%, transparent 51%); }
.btn::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%); transform: translateX(-140%); transition: transform .7s var(--courbe); }
.btn:hover::before { transform: translateX(240%); }
.btn:hover { color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 12px 26px -10px rgba(7, 128, 90, .75); }
.btn.sec { color: var(--encre); background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(238, 244, 247, .85)); border-color: var(--verre-bord);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--ligne), 0 6px 16px -10px rgba(25, 55, 85, .35); }
.btn.sec::after { background: linear-gradient(180deg, rgba(255, 255, 255, .7), transparent 50%); }
.btn.sec::before { background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, .95) 50%, transparent 80%); }
.btn.sec:hover { color: var(--encre-fort); background: linear-gradient(180deg, #fff, rgba(244, 248, 250, .95)); border-color: #fff; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(7, 144, 95, .35), 0 10px 22px -12px rgba(25, 55, 85, .4); }
.btn.fantome::before, .btn.fantome::after { display: none; }
.btn.danger.sec { background: rgba(255, 255, 255, .8); }
.btn.sombre { color: var(--encre); background: linear-gradient(180deg, #fff, #e9eff3); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--ligne); }
.papier-clair .btn { color: #fff; }

/* Formulaires : effet miroir (reflet scindé, éclat qui traverse le champ au focus) */
.saisie, .champ input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .champ textarea {
  border: 1px solid rgba(255, 255, 255, .95);
  background-color: transparent;
  background-image:
    linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .95) 47%, transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .78) 49%, rgba(236, 243, 247, .82) 50%, rgba(250, 252, 253, .94) 100%);
  background-size: 260% 100%, 100% 100%; background-position: 140% 0, 0 0; background-repeat: no-repeat;
  box-shadow: inset 0 1px 2px rgba(25, 55, 85, .08), 0 0 0 1px var(--ligne), 0 4px 14px -10px rgba(25, 55, 85, .35);
  transition: background-position .8s var(--courbe), box-shadow var(--m-ui) var(--courbe), border-color var(--m-tap); }
.saisie:hover, .champ input:hover, .champ textarea:hover { border-color: #fff; box-shadow: inset 0 1px 2px rgba(25, 55, 85, .08), 0 0 0 1px var(--ligne-forte), 0 6px 16px -10px rgba(25, 55, 85, .4); }
.saisie:focus, .champ input:focus, .champ textarea:focus {
  border-color: #fff; background-position: -40% 0, 0 0;
  box-shadow: inset 0 1px 2px rgba(25, 55, 85, .06), 0 0 0 1px var(--malachite-vif), var(--anneau-focus), 0 10px 24px -12px rgba(7, 144, 95, .45); }
select.saisie, .champ select {
  border: 1px solid rgba(255, 255, 255, .95);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234b5b67' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 13px center,
    linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .78) 49%, rgba(236, 243, 247, .82) 50%, rgba(250, 252, 253, .94) 100%);
  box-shadow: inset 0 1px 2px rgba(25, 55, 85, .08), 0 0 0 1px var(--ligne), 0 4px 14px -10px rgba(25, 55, 85, .35); }
select.saisie:focus, .champ select:focus { box-shadow: 0 0 0 1px var(--malachite-vif), var(--anneau-focus); }
select[multiple].saisie, .champ select[multiple] { background: rgba(255, 255, 255, .85); }
.champ > span { color: var(--titre); }
.case { color: var(--encre); }
.console .case, .connexion .case { background: rgba(255, 255, 255, .55); border-color: var(--verre-bord); }
.trou { background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(225, 244, 236, .9)); color: var(--encre-fort); }
.code-pin { color: var(--titre) !important; }

/* Connexion : carte de verre et son reflet */
.connexion .formulaire { background: rgba(255, 255, 255, .22); border-left: 1px solid var(--verre-bord); }
.connexion .formulaire form { padding: 36px 34px 30px; border-radius: 22px; background: #ffffff;
  border: 1px solid var(--ligne);
  box-shadow: 0 30px 60px -32px rgba(25, 55, 85, .4), 0 0 0 1px rgba(20, 45, 65, .05); }
.connexion .titre-geant { filter: drop-shadow(0 12px 24px rgba(11, 111, 108, .18)); }
.connexion .logos img { opacity: 1; }
.forage .couche span b, .support .ext, .attestation .bande { color: #fff; }
.forage .couche.n1 span b { color: #06150f; }

/* Accents de lecture */
.relief { background: linear-gradient(120deg, rgba(7, 144, 95, .1), rgba(106, 88, 216, .1)), rgba(255, 255, 255, .45); border-bottom-color: var(--verre-bord); }
.epreuve-barre { box-shadow: 0 10px 30px -22px rgba(25, 55, 85, .35); }
.chrono .val { color: var(--titre); text-shadow: 0 6px 18px rgba(7, 144, 95, .25); }
.cas h3 { color: var(--manganese-2) !important; }
.anneau > div { background: rgba(255, 255, 255, .9); }
.kpi::after { box-shadow: none; }
.modale-fond { backdrop-filter: blur(3px) saturate(115%); -webkit-backdrop-filter: blur(3px) saturate(115%); }
.modale { background: #ffffff; }
.modale .pied, .modale form > .rangee:last-child { background: var(--surface-3); }
.secret { color: var(--malachite-encre); text-shadow: none; }
@media (max-width: 1000px) { .lateral { background: var(--menu); } }

/* Calendrier : jours cliquables, événements sur période */
.cal .j { cursor: pointer; position: relative; }
.cal .j:hover { background: rgba(7, 144, 95, .05); }
.cal .j:hover .d::after { content: "+"; position: absolute; right: 10px; top: 8px; font: 600 15px var(--sans); color: var(--malachite-vif); }
.cal .j:focus-visible { outline: 2px solid var(--malachite-vif); outline-offset: -2px; }
button.ev { width: 100%; text-align: left; border-top: 0; border-right: 0; border-bottom: 0; font: inherit; font-size: 11.5px; cursor: pointer; }
.cal .ev.debut-p { width: calc(100% + 9px); margin-right: -9px; border-radius: 5px 0 0 5px; }
.cal .ev.milieu-p { width: calc(100% + 18px); margin-left: -9px; margin-right: -9px; border-radius: 0; border-left-color: transparent; }
.cal .ev.fin-p { width: calc(100% + 9px); margin-left: -9px; border-radius: 0 5px 5px 0; border-left-color: transparent; }
.cal .ev.milieu-p, .cal .ev.fin-p { padding-left: 16px; }
span.cal { background: none !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-radius: 3px; overflow: hidden; vertical-align: middle; }
span.cal > span.ev { display: block; border-left-width: 4px; }
.cal .j.passe { cursor: default; background: repeating-linear-gradient(135deg, rgba(20, 45, 65, .035) 0 6px, transparent 6px 12px), rgba(20, 45, 65, .045); }
.cal .j.passe:hover { background: repeating-linear-gradient(135deg, rgba(20, 45, 65, .035) 0 6px, transparent 6px 12px), rgba(20, 45, 65, .045); }
.cal .j.passe:hover .d::after { content: none; }
.cal .j.passe .d { color: var(--encre-3); opacity: .6; }
.cal .j.passe .ev { opacity: .6; }

/* Surveillance par webcam : vérification avant l'épreuve, vignette pendant la composition, calibration */
.regard-verif { position: relative; border-radius: var(--r); overflow: hidden; background: #0d1512; aspect-ratio: 4 / 3; outline: 3px solid var(--ocre); outline-offset: -3px; }
.regard-verif.ok { outline-color: var(--malachite); }
.regard-verif video, .regard-cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.regard-verif .regard-point { position: absolute; top: 10px; right: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--laterite); box-shadow: 0 0 0 3px rgba(0, 0, 0, .35); animation: pouls 1.4s infinite; }
.regard-cam { position: fixed; right: 16px; bottom: 16px; z-index: 92; width: 176px; border-radius: var(--r); overflow: hidden; background: #0d1512; color: #e8f0ec; box-shadow: 0 8px 30px -10px rgba(0, 0, 0, .55); border: 2px solid var(--malachite); transition: border-color .2s; }
.regard-cam video { aspect-ratio: 4 / 3; height: auto; }
.regard-cam .info { padding: 7px 9px 8px; font-size: 11.5px; line-height: 1.35; }
.regard-cam .lib { font-weight: 650; }
.regard-cam .chiffre { font-family: var(--mono, monospace); font-size: 10.5px; opacity: .8; margin-top: 3px; }
.regard-cam .jauge { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .15); margin-top: 5px; overflow: hidden; }
.regard-cam .jauge i { display: block; height: 100%; width: 0; background: var(--malachite); transition: width .3s; }
.regard-cam .jauge.alerte i { background: var(--laterite); }
.regard-cam.hors { border-color: var(--laterite); }
.regard-cam.hors .lib { color: #ffb4a0; }
.regard-cam.coupee { border-color: var(--ocre); }
.regard-cible { width: 22px; height: 22px; margin: 22px auto; border-radius: 50%; background: var(--laterite); box-shadow: 0 0 0 8px rgba(240, 112, 79, .25); animation: pouls 1.2s infinite; }
@keyframes pouls { 50% { transform: scale(.82); opacity: .75; } }
@media (max-width: 640px) { .regard-cam { width: 128px; right: 10px; bottom: 10px; } .regard-cam .chiffre { display: none; } }
@media print { .regard-cam { display: none !important; } }

/* Visages en direct (formateur) */
.mur-visages { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.visage { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--reflet); display: flex; flex-direction: column; }
.visage.alerte { border-color: var(--laterite); box-shadow: 0 0 0 1px var(--laterite), var(--reflet); }
.visage.close { opacity: .7; }
.visage.grand { grid-column: span 2; grid-row: span 2; }
.visage .cadre { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: #0d1512; cursor: zoom-in; }
.visage.grand .cadre { cursor: zoom-out; }
.visage .cadre img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scaleX(-1); }
.visage .cadre .sans { position: absolute; inset: 0; display: grid; place-items: center; color: #9fb3aa; font-size: 12.5px; }
.visage .cadre .figee { position: absolute; left: 8px; bottom: 8px; background: rgba(0, 0, 0, .65); color: #ffd9a0; font: 500 11px var(--mono); padding: 3px 7px; border-radius: 6px; }
.visage-legende { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 7px; }
.visage .nom { font-weight: 650; font-size: 14px; color: var(--encre-fort); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visage .ex { font-size: 12px; color: var(--encre-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visage .chiffres-v { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--encre-3); }
.visage .chiffres-v b { font: 600 12px var(--mono); color: var(--encre-fort); font-variant-numeric: tabular-nums; }
.visage .jauge-v { height: 4px; border-radius: 2px; background: rgba(20, 45, 65, .08); overflow: hidden; }
.visage .jauge-v i { display: block; height: 100%; background: var(--ocre); }
.visage-legende .btn { align-self: flex-start; }
@media (max-width: 640px) { .mur-visages { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } .visage.grand { grid-column: 1 / -1; grid-row: auto; } }
/* Message du surveillant au-dessus de la vignette caméra */
body.avec-camera .message-surv { bottom: 230px; }
@media (max-width: 640px) { body.avec-camera .message-surv { bottom: 170px; } }

/* ------------------------------------------------------------------ Académia 360° : espace académique */
.page.etroite-l { max-width: 1000px; }
.filtres-ac { gap: 10px; flex-wrap: wrap; align-items: center; }
.imprime-seul { display: none; }

/* Barres horizontales (pilotage) */
.barres-ac { display: grid; gap: 9px; }
.barre-ac { display: grid; grid-template-columns: minmax(90px, 34%) minmax(0, 1fr) 64px; gap: 12px; align-items: center; font-size: 13px; }
.barre-ac .lib { color: var(--encre-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre-ac .piste { height: 9px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.barre-ac .piste i { display: block; height: 100%; border-radius: 99px; background: var(--malachite); transition: width .6s var(--courbe); }
.barre-ac .val { text-align: right; font: 550 12.5px var(--mono); color: var(--encre); }

/* Maquettes et résultats par UE */
.t tr.ligne-ue td { background: var(--surface-3); }
.t.maquette td.actions { white-space: nowrap; }
.ue-a { color: var(--malachite-encre); font-weight: 600; }
.ue-c { color: var(--ocre-encre); font-weight: 600; }
.ue-na { color: var(--laterite-encre); font-weight: 600; }

/* Emploi du temps : grille hebdomadaire */
.nav-semaine { gap: 8px; align-items: center; }
.edt-cadre { overflow-x: auto; }
.edt { display: grid; grid-template-columns: 46px repeat(var(--jours, 5), minmax(128px, 1fr)); min-width: 720px; }
.edt-tete { height: 46px; display: flex; flex-direction: column; justify-content: center; align-items: center; border-bottom: 1px solid var(--ligne); font-size: 13px; }
.edt-tete span { font-size: 11.5px; color: var(--encre-3); }
.edt-corps { position: relative; height: 640px; }
.edt-heures .edt-corps span { position: absolute; right: 8px; transform: translateY(-50%); font: 500 11px var(--mono); color: var(--encre-3); }
.edt-jour { border-left: 1px solid var(--ligne); }
.edt-jour.auj .edt-tete { color: var(--malachite-encre); }
.edt-jour.auj .edt-tete b::after { content: " · aujourd'hui"; font-weight: 500; font-size: 11px; }
.edt-jour.auj .edt-corps { background: var(--malachite-pale); }
.edt-jour .edt-corps { cursor: cell; }
.edt .ligne-h { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--ligne); pointer-events: none; }
.seance { --c: var(--malachite); position: absolute; left: 4px; right: 4px; display: flex; flex-direction: column; gap: 1px; padding: 5px 7px; overflow: hidden; text-align: left; font: inherit; font-size: 12px; line-height: 1.25;
  color: var(--encre); background: color-mix(in srgb, var(--c) 13%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); border-left: 3px solid var(--c); border-radius: 7px; cursor: pointer; transition: box-shadow var(--m-tap), transform var(--m-tap); }
.seance:hover { box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--c) 70%, transparent); z-index: 2; }
.seance:focus-visible { outline: 2px solid var(--c); outline-offset: 1px; }
.seance .h { font: 500 10.5px var(--mono); color: var(--encre-2); display: flex; justify-content: space-between; gap: 4px; }
.seance .h em { font-style: normal; color: var(--c); font-weight: 650; }
.seance b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.seance .st { color: var(--encre-2); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seance.faite::after { content: "✓"; position: absolute; right: 6px; bottom: 4px; color: var(--malachite-encre); font-weight: 700; font-size: 12px; }
.seance.annulee, .seance-l.annulee { opacity: .5; text-decoration: line-through; }
.t-cm { --c: var(--malachite); } .t-td { --c: var(--manganese); } .t-tp { --c: var(--cuivre); }
.t-examen { --c: var(--laterite); } .t-rattrapage { --c: var(--ocre); } .t-autre { --c: var(--encre-3); }
.legende-edt { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--encre-2); }
.legende-edt span { display: inline-flex; align-items: center; gap: 6px; }
.legende-edt i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.edt-liste { display: none; padding: 14px 14px 16px; }
.edt-liste-jour + .edt-liste-jour { margin-top: 14px; }
.seance-l { --c: var(--malachite); display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 2px 10px; width: 100%; margin-top: 6px; padding: 8px 10px; text-align: left; font: inherit; font-size: 13px;
  background: var(--surface-2); border: 1px solid var(--ligne); border-left: 3px solid var(--c); border-radius: 8px; color: var(--encre); cursor: pointer; }
.seance-l .petit { grid-column: 2; }
@media (max-width: 760px) { .edt { display: none; } .edt-liste { display: block; } }

/* Notes : épreuves et saisie */
.epreuves { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.epreuve-carte { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--ligne); border-radius: var(--r); background: var(--surface-2); }
.epreuve-carte.active { border-color: var(--malachite); box-shadow: var(--lueur); }
.epreuve-carte a { display: flex; flex-direction: column; gap: 3px; color: inherit; text-decoration: none; }
.note-saisie { width: 84px; text-align: right; font-family: var(--mono); }

/* Feuille d'appel */
.appel { display: grid; gap: 6px; }
.ligne-appel { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--ligne); border-radius: 9px; background: var(--surface-2); }
.segments { display: inline-flex; border: 1px solid var(--ligne-forte); border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.segments button { border: 0; background: transparent; padding: 6px 11px; font: 550 12.5px var(--sans); color: var(--encre-2); cursor: pointer; }
.segments button + button { border-left: 1px solid var(--ligne); }
.segments button.actif.s-present { background: var(--malachite); color: #fff; }
.segments button.actif.s-absent { background: var(--laterite); color: #fff; }
.segments button.actif.s-retard { background: var(--ocre); color: #fff; }
.segments button.actif.s-excuse { background: var(--manganese); color: #fff; }
@media (max-width: 640px) { .ligne-appel { flex-direction: column; align-items: stretch; } .segments button { flex: 1; padding: 8px 4px; } }

@media print {
  .page-edt .entete-page .actions, .page-edt .filtres-ac, .page-edt .nav-semaine { display: none !important; }
  .imprime-seul { display: block; font-size: 16px; margin: 0 0 10px; }
  .edt { min-width: 0; } .edt-corps { height: 560px; } .edt-cadre { overflow: visible; }
  .edt-liste { display: none !important; } .edt { display: grid !important; }
}

/* Mention de l'éditeur (VISION RSE 360°) en pied de page */
.editeur { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 22px 16px 28px; font-size: 12px; color: var(--encre-3); }
.editeur img { height: 22px; width: auto; opacity: .75; transition: opacity var(--m-tap); }
.editeur:hover img { opacity: 1; }
.editeur.sur-visuel { padding: 0; justify-content: flex-end; }
#contenu > .editeur { margin-top: -56px; }
@media print { .editeur { display: none !important; } }

/* Titre « Académia 360° » de la page de connexion : mot plus long que la marque d'origine */
.connexion .titre-geant { font-size: clamp(46px, 5.6vw, 92px); }

/* Header de l'espace du personnel : utilisateur connecté et déconnexion à droite */
.barre-haut .barre-droite { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.barre-haut .barre-droite .date-jour { margin-left: 0; padding-right: 8px; border-right: 1px solid var(--ligne); }
.barre-haut .puce-user { padding: 3px 10px 3px 3px; }
.barre-haut .puce-user .avatar { width: 32px; height: 32px; font-size: 12px; }
.barre-haut .qui { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.barre-haut .qui b { font-size: 13px; font-weight: 620; color: var(--encre-fort); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.barre-haut .qui span { font-size: 11.5px; color: var(--encre-3); white-space: nowrap; }
@media (max-width: 720px) { .barre-haut .qui { display: none; } .barre-haut .puce-user { padding: 3px; } }

/* Vacations : colonnes de chiffres et de dates sur une ligne */
.vac-liste td { white-space: nowrap; }
.vac-liste td:nth-last-child(8) { white-space: normal; min-width: 170px; }

/* Disponibilités des enseignants : grille des créneaux, créneaux indisponibles dans l'emploi du temps */
.grille-dispo-cadre { overflow-x: auto; }
.grille-dispo { border-collapse: separate; border-spacing: 4px; min-width: 560px; width: 100%; }
.grille-dispo th { font: 600 12px var(--sans); color: var(--encre-2); padding: 2px 4px; white-space: nowrap; }
.grille-dispo tbody th { text-align: right; font-family: var(--mono); font-weight: 500; }
.grille-dispo .lien-jour { background: none; border: 0; padding: 2px 4px; font: inherit; color: inherit; cursor: pointer; border-radius: 6px; }
.grille-dispo .lien-jour:hover { background: rgba(20, 45, 65, .06); }
.case-dispo { position: relative; width: 100%; height: 40px; border-radius: 10px; border: 1px dashed var(--ligne-forte); background: rgba(20, 45, 65, .03); color: var(--encre-3); font: 500 12px var(--sans); cursor: pointer; transition: background var(--m-tap), border-color var(--m-tap); }
.case-dispo.dispo { border: 1px solid rgba(7, 121, 92, .35); background: var(--malachite-pale); color: var(--malachite-encre); font-weight: 600; }
.case-dispo:disabled { cursor: default; }
.case-dispo:not(:disabled):hover { border-color: var(--malachite); }
.marque-prop { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--manganese); }
.case-dispo .marque-prop { position: absolute; top: 5px; right: 6px; }
.edt-corps .indispo { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, rgba(20, 45, 65, .05) 0 6px, rgba(20, 45, 65, .11) 6px 12px); pointer-events: none; }

/* Champ actif : fond vert clair, texte bleu foncé en gras (toutes les zones de saisie) */
.saisie:focus, .champ input:focus:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .champ textarea:focus, .champ select:focus, select.saisie:focus,
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):focus, textarea:focus {
  background-color: #e6f5ee; background-image: none; color: var(--titre); font-weight: 600; }
select.saisie:focus, .champ select:focus {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230f4357' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 13px center, #e6f5ee; }

/* Menu latéral : entrée active en verre translucide (le dégradé du menu reste visible), texte blanc en gras */
.lateral a.lien.actif, .lateral a.lien.actif:hover { color: #fff; font-weight: 700; background: transparent; }
.lateral a.lien.actif .ico { color: #7ff0c4; filter: drop-shadow(0 0 6px rgba(127, 240, 196, .55)); }
.lateral a.lien.actif .indic { background: linear-gradient(90deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .08)); -webkit-backdrop-filter: blur(6px) saturate(140%); backdrop-filter: blur(6px) saturate(140%);
  box-shadow: inset 3px 0 0 #7ff0c4, inset 0 0 0 1px rgba(255, 255, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 20px -12px rgba(5, 30, 45, .6); }

/* Bascule de langue FR / EN */
.langue { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--ligne); border-radius: 999px; background: var(--surface, #fff); cursor: pointer; font: 600 11.5px var(--sans); letter-spacing: .04em; }
.langue span { padding: 4px 9px; border-radius: 999px; color: var(--encre-3); transition: background .15s, color .15s; }
.langue span.on { background: #12324a; color: #fff; }
.langue:hover span:not(.on) { color: var(--encre); }
.langue:focus-visible { outline: 2px solid #12324a; outline-offset: 2px; }
.section.formulaire, .formulaire { position: relative; }
.langue-coin { position: absolute; top: 18px; right: 18px; }

/* Tableau de bord : indicateurs et barres cliquables */
.kpi.cliquable, .barre-ac.cliquable { cursor: pointer; transition: background .15s ease; }
.kpi.cliquable:hover { background: rgba(18, 50, 74, .045); }
.kpi.cliquable::after { content: "→"; position: absolute; top: 18px; right: 18px; font: 600 14px var(--sans); color: var(--encre-3); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.kpi.cliquable:hover::after, .kpi.cliquable:focus-visible::after { opacity: 1; transform: none; }
.kpi.cliquable:focus-visible, .barre-ac.cliquable:focus-visible { outline: 2px solid #12324a; outline-offset: -2px; }
.barre-ac.cliquable { border-radius: 6px; margin: 0 -6px; padding-left: 6px; padding-right: 6px; }
.barre-ac.cliquable:hover { background: rgba(18, 50, 74, .05); }
.barre-ac.cliquable:hover .lib { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- Qualité : évaluation des enseignements, indicateurs */
.indic-qualite { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--ligne); }
.indic-qualite:last-child { border-bottom: 0; }
.ref-qualite { font-size: 11px; color: var(--encre-3); white-space: nowrap; }
.val-qualite { font-size: 17px; color: var(--titre); text-align: right; min-width: 82px; white-space: nowrap; }
.info-qualite { background: var(--manganese-pale); }
.question-qualite { display: grid; gap: 4px; }
.distribution { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--kaolin); }
.distribution i, .legende-distribution i { display: block; height: 100%; }
.d1 { background: #c8452a; } .d2 { background: #e39a5c; } .d3 { background: #c9d1d6; } .d4 { background: #58c198; } .d5 { background: #078a60; }
.legende-distribution { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--encre-2); }
.legende-distribution span { display: inline-flex; align-items: center; gap: 6px; }
.legende-distribution i { width: 12px; height: 12px; border-radius: 3px; }
.commentaires-qualite { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.commentaires-qualite li { padding: 8px 12px; border-radius: var(--r); background: var(--surface-2); border-left: 3px solid var(--malachite); }
.commentaires-qualite li.moins { border-left-color: var(--ocre); }
.likert { display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; align-items: center; }
.likert .echelle { display: flex; gap: 6px; }
.likert label { position: relative; }
.likert input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.likert label span { display: inline-grid; place-items: center; width: 40px; height: 36px; border-radius: var(--r); border: 1px solid var(--ligne-forte); background: var(--surface-2); font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.likert label:hover span { border-color: var(--malachite); }
.likert input:checked + span { background: var(--malachite); border-color: var(--malachite); color: #fff; }
.likert input:focus-visible + span { box-shadow: var(--anneau-focus); }
.legende-likert { display: flex; justify-content: space-between; }
.carte-eval { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-l); background: var(--surface-2); border: 1px solid var(--ligne); }
.carte-eval.faite { opacity: .78; }
b.ok { color: var(--malachite-encre); } b.attention { color: var(--ocre-encre); } b.danger { color: var(--laterite-encre); }
@media (max-width: 720px) {
  .likert { grid-template-columns: 1fr; gap: 6px; }
  .likert .echelle { margin-bottom: 8px; }
  .indic-qualite { grid-template-columns: 1fr auto; }
  .ref-qualite { display: none; }
}

/* Bulletins de notes */
.bulletin-table tr.ligne-semestre td { background: var(--malachite-pale); color: var(--malachite-encre); font-weight: 700; }
.bulletin-table tr.ligne-ue td { background: color-mix(in srgb, var(--malachite-pale) 45%, transparent); font-weight: 600; }
.bulletin-table td .saisie.mini { width: 100%; }

/* Admissions en ligne : pièces, étapes du dossier, historique */
.piece-ligne { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 6px 16px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--ligne); }
.piece-ligne:last-child { border-bottom: 0; }
.piece-ligne input[type=file] { font-size: 13px; max-width: 100%; }
@media (max-width: 640px) { .piece-ligne { grid-template-columns: 1fr; } }
.etapes-candidature { display: flex; gap: 6px; list-style: none; margin: 4px 0 0; padding: 0; flex-wrap: wrap; }
.etapes-candidature li { flex: 1 1 110px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: 13px; color: var(--encre-3); background: rgba(127, 140, 150, .08); }
.etapes-candidature li span { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 650; background: rgba(127, 140, 150, .18); }
.etapes-candidature li.fait { color: var(--encre-2); }
.etapes-candidature li.fait span { background: var(--malachite); color: #fff; }
.etapes-candidature li.courant { color: var(--encre-fort); font-weight: 600; background: rgba(7, 144, 95, .1); box-shadow: inset 0 0 0 1px rgba(7, 144, 95, .35); }
.etapes-candidature li.courant span { background: var(--manganese, #6a58d8); color: #fff; }
.historique-candidature { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--ligne); display: grid; gap: 12px; }
.historique-candidature li { position: relative; display: flex; flex-direction: column; gap: 2px; }
.historique-candidature li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--malachite); box-shadow: 0 0 0 3px var(--fond, #fff); }
.grille > .panneau.large { grid-column: 1 / -1; }

/* KPI & Reporting : filtres communs, cartes de rapports */
.rp-filtres { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.rp-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.rp-carte { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 12px; border: 1px solid var(--ligne); border-left: 3px solid var(--malachite);
  border-radius: var(--r); background: var(--surface-2); transition: border-color var(--m-tap) var(--courbe), box-shadow var(--m-ui) var(--courbe); }
.rp-carte:hover { border-color: var(--ligne-forte); border-left-color: var(--malachite); box-shadow: 0 8px 22px -16px rgba(20, 45, 65, .45); }
.rp-carte h4 { margin: 0; font-size: 14.5px; color: var(--titre); }
.rp-carte p { margin: 0; font-size: 12.5px; color: var(--encre-2); line-height: 1.45; flex: 1; }
.rp-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.rp-chip { font-size: 10.5px; padding: 2px 7px; border-radius: 999px; background: var(--malachite-pale); color: var(--malachite-encre); }
.rp-xlsx { color: #1d6f42; } .rp-pdf { color: #b4362b; }
.rp-apercu .table-wrap { max-height: 52vh; overflow: auto; }
.rp-cam { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.rp-cam-svg svg { display: block; }
.rp-legende { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 240px; display: grid; gap: 6px; }
.rp-legende li { display: grid; grid-template-columns: 12px 1fr auto 64px; align-items: center; gap: 10px; font-size: 13px; }
.rp-legende i { width: 12px; height: 12px; border-radius: 3px; }
.rp-legende b { text-align: right; font-variant-numeric: tabular-nums; }
.rp-legende .muet { font-variant-numeric: tabular-nums; }

/* Mode hors connexion et application installable */
.etat-reseau { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border: 1px solid var(--ligne); border-radius: 999px; background: var(--surface-2); color: var(--encre-2); font: 600 12px var(--sans); white-space: nowrap; cursor: pointer; }
.etat-reseau i { width: 8px; height: 8px; border-radius: 50%; background: var(--malachite-vif); box-shadow: 0 0 0 3px var(--malachite-pale); }
.etat-reseau.ok span { display: none; }
.etat-reseau.ok { padding: 0 10px; }
.etat-reseau.attente { color: var(--ocre-encre); border-color: var(--ocre); background: var(--ocre-pale); }
.etat-reseau.attente i { background: var(--ocre); box-shadow: 0 0 0 3px var(--ocre-pale); animation: pulse-reseau 1.4s ease-in-out infinite; }
.etat-reseau.hors { color: #fff; border-color: var(--encre-2); background: var(--encre-2); }
.etat-reseau.hors i { background: #fff; box-shadow: none; opacity: .8; }
.etat-reseau.rejet { color: var(--laterite-encre); border-color: var(--laterite); background: var(--laterite-pale); }
.etat-reseau.rejet i { background: var(--laterite); box-shadow: 0 0 0 3px var(--laterite-pale); }
.etat-reseau:focus-visible, .btn-installer:focus-visible { outline: 2px solid #12324a; outline-offset: 2px; }
@keyframes pulse-reseau { 50% { opacity: .35; } }
.btn-installer { height: 30px; padding: 0 12px; border: 1px solid var(--malachite); border-radius: 999px; background: var(--malachite-pale); color: var(--malachite-encre); font: 600 12px var(--sans); cursor: pointer; white-space: nowrap; }
#bandeau-horsligne { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 250; width: min(760px, calc(100vw - 32px)); padding: 11px 16px; border-radius: 12px; background: #23313b; color: #f1f5f7; font-size: 13px; line-height: 1.45; box-shadow: 0 20px 50px -14px rgba(10, 25, 40, .45); }
#bandeau-horsligne b { color: #ffd27a; }
body:has(#bandeau-horsligne) .notifs { bottom: 96px; }
@media (max-width: 640px) { .etat-reseau span { display: none; } .etat-reseau { padding: 0 10px; } .btn-installer { display: none; } }
@media (prefers-reduced-motion: reduce) { .etat-reseau.attente i { animation: none; } }

/* Connexion : choix de l'espace (étudiant / administration) et mot de passe visible à la demande */
.choix-espace { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 16px; background: rgba(20, 45, 65, .07); border: 1px solid var(--ligne); }
.choix-espace .espace { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--encre-2); border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.choix-espace .espace svg { flex: none; width: 22px; height: 22px; }
.choix-espace .espace span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.choix-espace .espace b { font-size: 14px; font-weight: 650; }
.choix-espace .espace small { font-size: 11.5px; color: var(--encre-3); }
.choix-espace .espace:hover:not(.actif) { background: rgba(255, 255, 255, .6); color: var(--encre); }
.choix-espace .espace.actif { background: #fff; color: var(--malachite-encre); border-color: var(--malachite-vif); box-shadow: 0 8px 20px -12px rgba(7, 144, 95, .55); }
.connexion.staff .choix-espace .espace.actif { color: var(--manganese-2); border-color: var(--manganese); box-shadow: 0 8px 20px -12px rgba(106, 88, 216, .6); }
.choix-espace .espace.actif small { color: inherit; opacity: .75; }
.choix-espace .espace:focus-visible { outline: 2px solid #12324a; outline-offset: 2px; }
.badge-espace { display: inline-block; margin: 4px 0 10px; padding: 4px 10px; border-radius: 999px; font: 700 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--malachite-encre); background: var(--malachite-pale); }
.badge-espace.staff { color: var(--manganese-2); background: var(--manganese-pale); }
.mdp-oeil { position: relative; }
.champ .mdp-oeil input { padding-right: 46px; }
.voir-mdp { position: absolute; top: 50%; right: 5px; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--encre-3); cursor: pointer; }
.voir-mdp svg { width: 20px; height: 20px; }
.voir-mdp:hover { color: var(--encre); background: rgba(20, 45, 65, .07); }
.voir-mdp:focus-visible { outline: 2px solid #12324a; outline-offset: 1px; }
.voir-mdp[aria-pressed="true"] { color: var(--malachite-encre); }
@media (max-width: 420px) { .choix-espace .espace small { display: none; } .choix-espace .espace { padding: 10px; gap: 8px; } }
.choix-espace .espace span, .choix-espace .espace b, .choix-espace .espace small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) { .connexion .formulaire { padding-top: 64px; } }

/* Liens de candidature mis en avant sous le titre, sur le visuel de gauche */
.connexion .liens-candidature { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 30px; align-items: center; }
.connexion .liens-candidature a { display: inline-flex; align-items: center; text-decoration: none; font-weight: 600; font-size: 14.5px; transition: transform var(--m-tap), box-shadow var(--m-tap), background var(--m-tap); }
.connexion .liens-candidature .candidater { padding: 11px 20px; border-radius: 999px; color: #fff; background: var(--malachite-vif); box-shadow: 0 12px 26px -12px rgba(7, 144, 95, .6); }
.connexion .liens-candidature .candidater::after { content: "→"; margin-left: 9px; font-weight: 700; }
.connexion .liens-candidature .candidater:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(7, 144, 95, .7); }
.connexion .liens-candidature .suivi { color: var(--malachite-encre); padding: 11px 8px; border-bottom: 1px solid transparent; border-radius: 0; }
.connexion .liens-candidature .suivi:hover { border-color: var(--malachite-vif); }
.connexion .liens-candidature a:focus-visible { outline: 2px solid var(--malachite-vif); outline-offset: 3px; }
@media (max-width: 860px) { .connexion .liens-candidature { margin-top: 20px; } }

/* ================================================================== Annonces */
.annonces-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.annonces-liste { display: flex; flex-direction: column; gap: 10px; }
.annonce { position: relative; display: flex; gap: 14px; padding: 16px 18px 16px 16px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--ligne); box-shadow: var(--reflet); overflow: hidden; }
.annonce::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--malachite-vif); }
.annonce.cible-etudiants::before { background: var(--manganese); }
.annonce.cible-personnel::before { background: var(--cuivre); }
.annonce.cible-classe::before { background: var(--ocre); }
.annonce.importante { background: var(--ocre-pale); border-color: rgba(207, 141, 30, .4); }
.annonce.importante::before { background: linear-gradient(180deg, var(--laterite), var(--ocre)); width: 5px; }
.annonce-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--malachite-pale); color: var(--malachite-encre); }
.annonce-ico svg { width: 22px; height: 22px; }
.annonce.cible-etudiants .annonce-ico { background: var(--manganese-pale); color: var(--manganese-2); }
.annonce.cible-personnel .annonce-ico { background: var(--cuivre-pale); color: #7a461f; }
.annonce.cible-classe .annonce-ico { background: var(--ocre-pale); color: var(--ocre-encre); }
.annonce.importante .annonce-ico { background: #fff; color: var(--laterite-encre); box-shadow: inset 0 0 0 1px rgba(214, 80, 47, .3); }
.annonce-corps { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 7px; }
.annonce-tete { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.annonce-titre { margin: 0; font-size: 15.5px; font-weight: 640; color: var(--titre); letter-spacing: -.01em; }
.annonce-texte { margin: 0; white-space: pre-wrap; color: var(--encre-2); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.annonce-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12.5px; color: var(--encre-3); }
.annonce-meta .marqueur { display: inline-flex; align-items: center; }
.annonce-meta .marqueur svg { width: 14px; height: 14px; margin-right: 4px; }
.annonce-meta .sep { opacity: .5; }
.annonce-suppr { margin-left: auto; }
.annonce.compacte { padding: 12px 14px; gap: 11px; box-shadow: none; border-color: var(--ligne); }
.annonce.compacte .annonce-ico { width: 34px; height: 34px; border-radius: 10px; }
.annonce.compacte .annonce-ico svg { width: 18px; height: 18px; }
.annonce.compacte .annonce-titre { font-size: 14px; }
.annonce.compacte .annonce-texte { font-size: 13px; }
@media (max-width: 640px) { .annonces-grille { grid-template-columns: 1fr; } }

/* ================================================================== Annonces : fil animé (bas -> haut) + effets */
.annonces-fil { position: relative; max-width: 780px; margin: 4px auto 0; height: min(68vh, 680px); overflow: hidden; border-radius: var(--r-xl);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
.annonces-fil:focus-visible { outline: 2px solid var(--malachite-vif); outline-offset: 3px; }
.annonces-piste { display: flex; flex-direction: column; padding: 0 6px; will-change: transform; animation: annonces-monte var(--duree, 40s) linear infinite; }
.annonces-piste > .annonce { margin-bottom: 16px; }
.annonces-fil:hover .annonces-piste, .annonces-fil:focus-within .annonces-piste { animation-play-state: paused; }
@keyframes annonces-monte { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* Apparition et survol des cartes */
.annonce { transition: transform .22s var(--courbe), box-shadow .22s var(--courbe), border-color .22s var(--courbe); }
.annonce::before { transition: width .22s var(--courbe); }
.annonces-grille .annonce { animation: annonce-entre .5s var(--courbe) both; }
.annonce:hover { transform: translateY(-3px) scale(1.008); box-shadow: 0 22px 46px -22px rgba(25, 55, 85, .42); border-color: var(--ligne-forte); z-index: 2; }
.annonce:hover::before { width: 6px; }
@keyframes annonce-entre { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Reflet qui balaie la carte au survol */
.annonce::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 66%);
  background-size: 250% 100%; background-position: 180% 0; opacity: 0; transition: opacity .2s; }
.annonce:hover::after { opacity: 1; animation: annonce-reflet .9s var(--courbe); }
@keyframes annonce-reflet { from { background-position: 180% 0; } to { background-position: -80% 0; } }

/* Annonces importantes : lueur pulsée et cloche animée */
.annonce.importante { box-shadow: var(--reflet), 0 0 0 1px rgba(214, 80, 47, .18); }
.annonce.importante::before { animation: annonce-pulse 2.6s ease-in-out infinite; }
@keyframes annonce-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(214, 80, 47, 0); } 50% { box-shadow: 0 0 16px 1px rgba(214, 80, 47, .55); } }
.annonce.importante .annonce-ico { animation: annonce-cloche 3.4s ease-in-out infinite; transform-origin: 50% 20%; }
@keyframes annonce-cloche { 0%, 88%, 100% { transform: rotate(0); } 90% { transform: rotate(-13deg); } 93% { transform: rotate(10deg); } 96% { transform: rotate(-6deg); } }

/* Respect de « animations réduites » : fil statique et défilable, sans mouvement */
@media (prefers-reduced-motion: reduce) {
  .annonces-fil { height: auto; max-height: 680px; overflow-y: auto; -webkit-mask-image: none; mask-image: none; }
  .annonces-piste { animation: none; }
  .annonces-piste > .annonce.clone { display: none; }
  .annonce, .annonce::before, .annonce::after, .annonce.importante::before, .annonce.importante .annonce-ico { animation: none !important; transition: none; }
}
@media (max-width: 640px) { .annonces-fil { height: auto; max-height: 72vh; } }

/* Constitution du jury : lignes membres et programme de soutenance */
.pile-s { display: flex; flex-direction: column; gap: 8px; }
.jury-membre { display: grid; grid-template-columns: 136px 1fr 1fr 1fr auto; gap: 6px; align-items: center; }
.jury-prog { display: grid; grid-template-columns: 92px 1fr 1.6fr auto; gap: 6px; align-items: center; }
.jury-membre .saisie.mini, .jury-prog .saisie.mini { width: 100%; min-width: 0; }
@media (max-width: 680px) { .jury-membre { grid-template-columns: 1fr 1fr; } .jury-prog { grid-template-columns: 70px 1fr auto; } }

/* Fiche étudiant : cadre photo d'identité (photo réelle ou silhouette ombrée selon le sexe) */
.fiche-tete { display: flex; justify-content: space-between; align-items: center; gap: 16px 20px; flex-wrap: wrap; margin-bottom: 2px; }
.fiche-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fiche-tete .fiche-photo { order: 2; }
.fiche-photo { position: relative; width: 104px; height: 132px; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--surface-3), #dde6ec); border: 1px solid var(--ligne); box-shadow: var(--reflet); }
.fiche-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fiche-silhouette { width: 64%; color: #9aabb8; line-height: 0; }
.fiche-silhouette svg { width: 100%; height: auto; display: block; fill: currentColor; }
.fiche-photo.femme .fiche-silhouette { color: #c79ab4; }
.fiche-photo.homme .fiche-silhouette { color: #8ea7c0; }
@media (max-width: 640px) { .fiche-tete { justify-content: center; } .fiche-actions { justify-content: center; width: 100%; } }

/* Aperçu de document dans un modal (attestation de pré-inscription) */
.apercu-doc { width: 100%; height: min(70vh, 820px); border: 1px solid var(--ligne); border-radius: 10px; background: var(--surface-3); }

/* Dépôt d'un support de cours (syllabus) */
.depot-support { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--ligne-forte); display: flex; flex-direction: column; gap: 10px; }
.depot-support input[type="file"] { padding: 8px; }

/* Bouton de génération assistée par IA */
.btn-ia { border-color: var(--manganese) !important; color: var(--manganese-2) !important; background: var(--manganese-pale) !important; }
.btn-ia::before { content: "\2728"; margin-right: 6px; }

/* Matrice de couverture des compétences */
.matrice-comp th.comp-col { text-align: center; font-size: 11px; white-space: nowrap; min-width: 42px; }
.matrice-comp td.centre { text-align: center; }
.matrice-comp td.centre input { cursor: pointer; width: 16px; height: 16px; }

/* Niveaux d'acquisition des compétences */
.niv-acquis { color: var(--malachite-encre) !important; border-color: var(--malachite) !important; }
.niv-en_cours { color: var(--ocre-encre) !important; border-color: var(--ocre) !important; }
.niv-non_acquis { color: var(--laterite-encre) !important; border-color: var(--laterite) !important; }
.pastille-niv { font: 600 11.5px var(--sans); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--ligne); }
