/* ==========================================================================
   FUN — couche de style « ludique 2026 » (inspirée des applis type Duolingo).
   Chargée EN DERNIER : elle redéfinit les couleurs, la typographie et l'aspect
   des composants (boutons 3D, cartes plates à grands arrondis, menu clair coloré),
   et ajoute les éléments de jeu : tuiles de missions, série 🔥, XP, classement, confettis.
   Pour revenir au style précédent, il suffit de retirer ce fichier de index.html.
   ========================================================================== */

/* ---------------------------------------------------------------- Couleurs & typo */
:root {
  --font: 'Nunito', 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --brand-50:  #f0edff;
  --brand-100: #e2dcff;
  --brand-200: #c9bfff;
  --brand-500: #7b61ff;
  --brand-600: #6a4cff;
  --brand-700: #5235e0;
  --brand-shadow: #4a2fd0;
  --grad-brand: linear-gradient(135deg, #7b61ff 0%, #a35bff 100%);
  --grad-soft:  linear-gradient(135deg, rgba(123, 97, 255, .10), rgba(28, 176, 246, .08));

  --bg:        #f6f6fb;
  --surface:   #ffffff;
  --surface-2: #f3f3f9;
  --surface-3: #e8e8f2;
  --border:    #e5e5ef;
  --border-2:  #d6d6e4;

  --text:   #262838;
  --text-2: #5d6075;
  --text-3: #9a9db2;

  /* Couleurs « jeu » vives + leur ombre (effet 3D) */
  --green:  #58cc02;  --green-d:  #46a302;  --green-bg:  #eafbdc;
  --blue:   #1cb0f6;  --blue-d:   #1899d6;  --blue-bg:   #e1f5fe;
  --orange: #ff9600;  --orange-d: #e08500;  --orange-bg: #fff2df;
  --red:    #ff4b4b;  --red-d:    #ea2b2b;  --red-bg:    #ffe5e5;
  --yellow: #ffc800;  --yellow-d: #e5b400;  --yellow-bg: #fff8d9;
  --pink:   #ff6fae;  --pink-d:   #e84f93;  --pink-bg:   #ffe6f1;
  --purple: #ce82ff;  --purple-d: #a560e8;  --purple-bg: #f6eaff;

  --success: #45a302; --success-bg: var(--green-bg);
  --warning: #d97c00; --warning-bg: var(--orange-bg);
  --danger:  #e53935; --danger-bg:  var(--red-bg);
  --info:    #6a4cff; --info-bg:    var(--brand-50);
  --violet:  #9b4dff; --violet-bg:  var(--purple-bg);
  --sky:     #0a96d6; --sky-bg:     var(--blue-bg);

  --r-xs: 10px; --r-sm: 12px; --r-md: 16px; --r-lg: 20px; --r-xl: 26px;
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow-md: 0 10px 30px -12px rgba(38, 40, 56, .18);
  --shadow-lg: 0 28px 70px -20px rgba(38, 40, 56, .35);
  --shadow-brand: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11131c; --surface: #1a1d2b; --surface-2: #222639; --surface-3: #2c3149; --border: #2e3350; --border-2: #3b4166;
    --text: #f1f2f8; --text-2: #b4b8cf; --text-3: #7c809b;
    --brand-50: #26214d; --brand-100: #2f2862; --brand-200: #3d3480;
    --green-bg: #1d3313; --blue-bg: #11304a; --orange-bg: #3a2a12; --red-bg: #3d1c1f; --yellow-bg: #3a3313; --pink-bg: #3d1f30; --purple-bg: #2f2147;
    --success: #7bdc32; --warning: #ffb547; --danger: #ff7070; --info: #a493ff; --violet: #d6a3ff; --sky: #5cc8fa;
  }
}
:root[data-theme="dark"] {
  --bg: #11131c; --surface: #1a1d2b; --surface-2: #222639; --surface-3: #2c3149; --border: #2e3350; --border-2: #3b4166;
  --text: #f1f2f8; --text-2: #b4b8cf; --text-3: #7c809b;
  --brand-50: #26214d; --brand-100: #2f2862; --brand-200: #3d3480;
  --green-bg: #1d3313; --blue-bg: #11304a; --orange-bg: #3a2a12; --red-bg: #3d1c1f; --yellow-bg: #3a3313; --pink-bg: #3d1f30; --purple-bg: #2f2147;
  --success: #7bdc32; --warning: #ffb547; --danger: #ff7070; --info: #a493ff; --violet: #d6a3ff; --sky: #5cc8fa;
}

body { font-weight: 600; letter-spacing: .005em; }
h1, h2, h3, .page-head h1, .card__title, .modal__title { font-weight: 900; letter-spacing: -.02em; }

/* ---------------------------------------------------------------- Boutons 3D */
.btn {
  border: 2px solid var(--border); border-bottom-width: 4px; border-radius: 14px;
  font-weight: 800; letter-spacing: .01em; box-shadow: none; min-height: 44px;
  transition: transform .08s, border-color .15s, background .15s, filter .15s;
}
.btn:hover { background: var(--surface-2); border-color: var(--border-2); }
.btn:active { transform: translateY(2px); border-bottom-width: 2px; margin-bottom: 2px; }
.btn--sm { min-height: 36px; border-radius: 12px; border-bottom-width: 3px; }
.btn--sm:active { border-bottom-width: 1px; }
.btn--lg { min-height: 54px; font-size: 16px; border-radius: 16px; }
.btn--primary { background: var(--brand-600); border-color: var(--brand-shadow); color: #fff; box-shadow: none; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.btn--primary:hover { background: var(--brand-500); border-color: var(--brand-shadow); filter: none; }
.btn--success { background: var(--green); border-color: var(--green-d); color: #fff; }
.btn--success:hover { background: #61da06; border-color: var(--green-d); }
.btn--danger { color: var(--red); }
.btn--danger:hover { background: var(--red-bg); border-color: var(--red); }
.btn--solid-danger { background: var(--red); border-color: var(--red-d); color: #fff; box-shadow: none; }
.btn--violet { background: var(--purple-bg); color: #8b3ddb; border-color: var(--purple); }
.btn--white { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .35); border-bottom-color: rgba(0, 0, 0, .18); }
.icon-btn { border-radius: 12px; }
.icon-btn:hover { background: var(--surface-2); }

/* ---------------------------------------------------------------- Cartes & champs */
.card { border: 2px solid var(--border); border-radius: var(--r-xl); box-shadow: none; }
.card__head { border-bottom: 2px solid var(--border); padding: 16px 22px; }
.card__title-icon { border-radius: 12px; }
.input, .select, .textarea { border: 2px solid var(--border); background: var(--surface-2); border-radius: 14px; font-weight: 600; }
.input:focus, .select:focus, .textarea:focus { background: var(--surface); border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.form-section { color: var(--text-3); }
.badge { font-weight: 800; padding: 4px 11px 4px 10px; }
.chip { border-width: 2px; font-weight: 800; }
.chip[aria-pressed="true"] { background: var(--blue-bg); border-color: var(--blue); color: var(--blue-d); }
.chip[aria-pressed="true"] b { background: var(--blue); color: #fff; }
.table th { background: transparent; border-bottom: 2px solid var(--border); font-weight: 800; }
.table td { border-bottom: 2px solid var(--surface-2); }
.kpi { border: 2px solid var(--border); box-shadow: none; border-radius: var(--r-xl); }
.kpi::after { display: none; }
.kpi:hover { transform: none; box-shadow: none; }
.kpi__icon { border-radius: 14px; }
.modal { border: 2px solid var(--border); }
.modal__icon { background: var(--brand-600); box-shadow: 0 4px 0 var(--brand-shadow); border-radius: 14px; }
.modal__foot { border-top: 2px solid var(--border); background: var(--surface); }
.toast { border: 2px solid var(--border); border-radius: 18px; }
.empty__icon { border-radius: 22px; }

/* ---------------------------------------------------------------- Menu latéral clair & coloré */
.sidebar { background: var(--surface); color: var(--text); border-right: 2px solid var(--border); }
.sidebar::before { display: none; }
.sidebar__brand strong { color: var(--text); font-weight: 900; }
.sidebar__brand small, .nav-group__label { color: var(--text-3); }
.nav-group__label { font-weight: 900; }
.nav-link {
  --c: var(--brand-600);
  color: var(--text-2); font-weight: 800; font-size: 14px; padding: 7px 10px; border: 2px solid transparent; border-radius: 14px; gap: 12px;
}
.nav-link .i {
  width: 32px; height: 32px; padding: 7px; border-radius: 10px; opacity: 1;
  background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c);
}
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link[aria-current="page"] { background: color-mix(in srgb, var(--c) 10%, var(--surface)); border-color: color-mix(in srgb, var(--c) 55%, transparent); color: var(--c); box-shadow: none; }
.nav-link[aria-current="page"] .i { background: var(--c); color: #fff; }
.nav-link[aria-current="page"]::before { display: none; }
.nav-link__badge { background: var(--red); color: #fff; }
.sidebar__user { background: var(--surface-2); border: 2px solid var(--border); }
.sidebar__user-info strong { color: var(--text); }
.sidebar__user-info span { color: var(--text-3); }
.sidebar__user .icon-btn { color: var(--text-2); }
.sidebar__user .icon-btn:hover { background: var(--surface-3); color: var(--text); }
.online-strip { background: var(--green-bg); border: 2px solid color-mix(in srgb, var(--green) 35%, transparent); }
.online-strip__label { color: var(--success); }

.topbar { background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 2px solid var(--border); }
.search-trigger, .sync { border-width: 2px; border-radius: 14px; }
.brand-mark { background: var(--brand-600); box-shadow: 0 4px 0 var(--brand-shadow); }
.brand-mark::after { display: none; }

@media (max-width: 960px) {
  .bottom-nav { border-top: 2px solid var(--border); background: var(--surface); }
  .bottom-nav__item { font-weight: 800; }
  .bottom-nav__item[aria-current="page"] { color: var(--brand-600); }
  .bottom-nav__item[aria-current="page"] .i { background: var(--brand-50); border-radius: 12px; padding: 3px; width: 34px; height: 30px; }
  .bottom-nav__item[aria-current="page"]::before { display: none; }
  .fab { background: var(--brand-600); box-shadow: 0 5px 0 var(--brand-shadow), 0 10px 22px -6px rgba(74, 47, 208, .5); border-radius: 20px; }
}

/* ==========================================================================
   ÉLÉMENTS DE JEU
   ========================================================================== */

/* ---- Accueil ---- */
.welcome {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px;
  padding: 24px 26px; margin-bottom: 20px; border-radius: var(--r-xl);
  background: var(--surface); border: 2px solid var(--border);
}
.welcome__avatar .avatar { width: 64px; height: 64px; border-radius: 22px; font-size: 22px; }
.welcome h1 { font-size: 28px; line-height: 1.1; }
.welcome p { color: var(--text-2); margin-top: 4px; font-size: 15px; }
.welcome__stats { display: flex; gap: 10px; }
@media (max-width: 760px) {
  .welcome { grid-template-columns: auto minmax(0, 1fr); padding: 18px; gap: 14px; }
  .welcome__stats { grid-column: 1 / -1; }
  .welcome h1 { font-size: 22px; }
  .welcome__avatar .avatar { width: 52px; height: 52px; border-radius: 18px; font-size: 18px; }
}

.pill-stat {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px; border: 2px solid var(--border);
  font-weight: 900; font-size: 18px; background: var(--surface); white-space: nowrap;
}
.pill-stat small { display: block; font-size: 11px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; line-height: 1; }
.pill-stat__emoji { font-size: 24px; line-height: 1; }
.pill-stat--fire { border-color: color-mix(in srgb, var(--orange) 45%, transparent); background: var(--orange-bg); color: var(--orange-d); }
.pill-stat--xp { border-color: color-mix(in srgb, var(--yellow) 60%, transparent); background: var(--yellow-bg); color: #b98a00; }
.pill-stat--fire.is-off { filter: grayscale(1); opacity: .7; }

/* ---- Barre de progression chunky ---- */
.bigbar { height: 18px; border-radius: 99px; background: var(--surface-3); overflow: hidden; position: relative; }
.bigbar > span { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .6s cubic-bezier(.34, 1.56, .64, 1); position: relative; }
.bigbar > span::after { content: ''; position: absolute; left: 10px; right: 10px; top: 4px; height: 4px; border-radius: 9px; background: rgba(255, 255, 255, .35); }
.bigbar--blue > span { background: var(--blue); }
.bigbar--orange > span { background: var(--orange); }

/* ---- Ma journée ---- */
.day-card { padding: 22px; border-radius: var(--r-xl); border: 2px solid var(--border); background: var(--surface); margin-bottom: 20px; }
.day-card__top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.day-card__top h2 { font-size: 22px; flex: 1; min-width: 180px; }
.day-card__top h2 small { display: block; font-size: 14px; font-weight: 700; color: var(--text-3); letter-spacing: 0; }
.day-card__count { font-weight: 900; font-size: 15px; color: var(--text-2); }
.day-card__bar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.day-card__bar .bigbar { flex: 1; }
.day-card__xp { font-weight: 900; color: #b98a00; white-space: nowrap; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tile {
  --c: var(--brand-600); --cbg: var(--brand-50); --cd: var(--brand-shadow);
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 16px; border-radius: 20px; border: 2px solid var(--border); border-bottom-width: 5px;
  background: var(--surface); color: var(--text); cursor: pointer;
  transition: transform .1s, border-color .15s, background .15s;
}
.tile:hover:not(:disabled) { border-color: color-mix(in srgb, var(--c) 50%, var(--border)); background: color-mix(in srgb, var(--cbg) 50%, var(--surface)); }
.tile:active:not(:disabled) { transform: translateY(3px); border-bottom-width: 2px; margin-bottom: 3px; }
.tile__emoji { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--cbg); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.tile b { display: block; font-size: 15.5px; font-weight: 900; line-height: 1.25; }
.tile small { display: block; font-size: 12.5px; color: var(--text-3); font-weight: 700; margin-top: 2px; }
.tile__check { width: 30px; height: 30px; flex: none; margin-left: auto; border-radius: 50%; border: 3px solid var(--border-2); display: grid; place-items: center; color: #fff; transition: all .25s cubic-bezier(.34, 1.56, .64, 1); }
.tile__check .i { width: 16px; height: 16px; stroke-width: 3.5; opacity: 0; }
.tile.is-done { background: var(--green-bg); border-color: color-mix(in srgb, var(--green) 45%, transparent); border-bottom-color: var(--green); cursor: default; }
.tile.is-done .tile__emoji { background: var(--surface); transform: rotate(-8deg); }
.tile.is-done .tile__check { background: var(--green); border-color: var(--green); transform: scale(1.1); }
.tile.is-done .tile__check .i { opacity: 1; }
.tile.is-done b { color: var(--success); }
.tile.is-pending { background: var(--green-bg); border-color: var(--green); }
.tile.is-pending .tile__check { background: var(--green); border-color: var(--green); animation: boing .5s cubic-bezier(.34, 1.56, .64, 1); }
.tile.is-pending .tile__check .i { opacity: 1; }
.tile.is-pending .tile__emoji { animation: wiggle .6s ease; }
.tile__tag { position: absolute; top: -10px; right: 14px; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 900; background: var(--purple); color: #fff; }
.tile__lock { font-size: 11.5px; font-weight: 800; color: var(--success); }
.tile:disabled:not(.is-done) { opacity: .55; cursor: not-allowed; }
@keyframes boing { 0% { transform: scale(.4); } 70% { transform: scale(1.25); } 100% { transform: scale(1.1); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg) scale(1.1); } 50% { transform: rotate(10deg) scale(1.1); } 75% { transform: rotate(-6deg); } }

.day-card__foot { display: flex; justify-content: center; margin-top: 18px; }
.day-card__foot .btn { min-width: 260px; }
.done-banner { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: var(--green-bg); border: 2px solid color-mix(in srgb, var(--green) 45%, transparent); color: var(--success); font-weight: 800; }
.done-banner span:first-child { font-size: 30px; }

/* ---- Classement de l'équipe ---- */
.leader { display: grid; gap: 10px; }
.leader__row { display: grid; grid-template-columns: 34px auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px; border: 2px solid var(--border); background: var(--surface); cursor: pointer; text-align: left; width: 100%; color: inherit; }
.leader__row:hover { border-color: var(--border-2); background: var(--surface-2); }
.leader__row.is-me { border-color: color-mix(in srgb, var(--blue) 55%, transparent); background: var(--blue-bg); }
.leader__rank { font-size: 22px; text-align: center; font-weight: 900; color: var(--text-3); }
.leader__name b { display: block; font-size: 15px; }
.leader__name small { display: block; font-size: 12px; color: var(--text-3); font-weight: 700; }
.leader__bar { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.leader__bar .bigbar { height: 12px; flex: 1; }
.leader__bar .bigbar > span::after { display: none; }
.leader__bar em { font-style: normal; font-weight: 900; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.leader__side { display: flex; align-items: center; gap: 8px; }
.mini-fire { font-weight: 900; color: var(--orange-d); white-space: nowrap; }
.leader__detail { grid-column: 1 / -1; display: grid; gap: 4px; padding-top: 8px; border-top: 2px dashed var(--border); margin-top: 4px; }
@media (max-width: 600px) { .leader__row { grid-template-columns: 26px auto minmax(0, 1fr); } .leader__side { grid-column: 2 / -1; } }

/* ---- Semaine (pastilles) ---- */
.week { display: flex; gap: 8px; }
.week__day { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: var(--text-3); }
.week__dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: var(--surface-3); color: #fff; border: 2px solid transparent; }
.week__dot--full { background: var(--green); }
.week__dot--part { background: var(--orange); }
.week__dot--none { background: var(--red); }
.week__dot--off { background: var(--surface-2); border-color: var(--border); color: var(--text-3); }
.week__dot--today { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--blue); }

/* ---- Raccourcis ---- */
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
@media (max-width: 900px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quick__tile {
  --c: var(--blue); --cbg: var(--blue-bg); --cd: var(--blue-d);
  display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 22px; text-decoration: none; color: var(--text);
  border: 2px solid var(--border); border-bottom-width: 5px; background: var(--surface); transition: transform .1s, border-color .15s, background .15s; cursor: pointer; text-align: left;
}
.quick__tile:hover { border-color: var(--c); background: color-mix(in srgb, var(--cbg) 60%, var(--surface)); text-decoration: none; }
.quick__tile:active { transform: translateY(3px); border-bottom-width: 2px; margin-bottom: 3px; }
.quick__emoji { font-size: 30px; line-height: 1; }
.quick__tile b { font-size: 16px; font-weight: 900; }
.quick__tile small { font-size: 12.5px; color: var(--text-3); font-weight: 700; margin-top: -6px; }
.quick__count { align-self: flex-start; padding: 2px 10px; border-radius: 99px; font-weight: 900; font-size: 12px; color: #fff; background: var(--c); }

/* ---- Chiffres clés compacts ---- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 16px 18px; border-radius: 20px; border: 2px solid var(--border); background: var(--surface); }
.stat__label { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.stat__value { font-size: 26px; font-weight: 900; letter-spacing: -.03em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat__emoji { float: right; font-size: 22px; }

/* ---- Statistiques repliables ---- */
details.more { border: 2px solid var(--border); border-radius: var(--r-xl); background: var(--surface); margin-top: 20px; }
details.more > summary { list-style: none; cursor: pointer; padding: 16px 22px; font-weight: 900; font-size: 15px; display: flex; align-items: center; gap: 10px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: '▾'; margin-left: auto; color: var(--text-3); transition: transform .2s; }
details.more[open] > summary::after { transform: rotate(180deg); }
details.more > .more__body { padding: 0 20px 20px; }
details.more .card { border-width: 2px; }

.section-title { font-weight: 900; font-size: 18px; }
.section-title::after { height: 2px; }

/* ---- Confettis ---- */
.confetti { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.xp-pop { position: fixed; z-index: 301; pointer-events: none; font-weight: 900; font-size: 20px; color: #b98a00; text-shadow: 0 2px 0 #fff; animation: xp-up 1.1s ease-out forwards; }
@keyframes xp-up { 0% { opacity: 0; transform: translate(-50%, 0) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -14px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -70px) scale(1); } }

/* ---- Fenêtre de célébration ---- */
.celebrate { text-align: center; padding: 10px 4px; }
.celebrate__emoji { font-size: 72px; line-height: 1; animation: boing .6s cubic-bezier(.34, 1.56, .64, 1); }
.celebrate h2 { font-size: 28px; margin: 14px 0 6px; }
.celebrate p { color: var(--text-2); font-size: 15.5px; }
.celebrate__stats { display: flex; justify-content: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* ---- Accueil : deux colonnes (classement + à faire) ---- */
.dash-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; align-items: start; }
.dash-two .section-title { margin: 0 0 12px; }
.quick__tile { position: relative; }
.quick__tile .quick__count { position: absolute; top: 14px; right: 14px; }

/* ==========================================================================
   EXAMENS — barre de progression, sessions CMA, saisie des résultats, suivi
   ========================================================================== */
.pg { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin: 14px 0; position: relative; }
.pg__etape { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; padding: 0 2px; }
.pg__etape::before { content: ''; position: absolute; top: 17px; left: -50%; right: 50%; height: 6px; background: var(--surface-3); z-index: 0; }
.pg__etape:first-child::before { display: none; }
.pg__etape.is-fait::before, .pg__etape.is-encours::before, .pg__etape.is-echec::before { background: var(--green); }
.pg__pastille { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; font-weight: 900;
  background: var(--surface-2); border: 3px solid var(--border-2); color: var(--text-3); }
.pg__etape.is-fait .pg__pastille { background: var(--green); border-color: var(--green-d); color: #fff; }
.pg__etape.is-encours .pg__pastille { background: var(--blue-bg); border-color: var(--blue); box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue) 18%, transparent); animation: pg-pulse 1.8s ease-in-out infinite; }
.pg__etape.is-echec .pg__pastille { background: var(--red); border-color: var(--red-d); color: #fff; }
.pg__etape b { font-size: 12.5px; font-weight: 900; line-height: 1.2; }
.pg__etape small { font-size: 11px; color: var(--text-3); font-weight: 700; line-height: 1.2; }
.pg__etape.is-echec b, .pg__etape.is-echec small { color: var(--red-d, #c62828); }
.pg__etape.is-avenir b { color: var(--text-3); }
@keyframes pg-pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--blue) 8%, transparent); } }
.pg--mini { margin: 0 0 4px; max-width: 170px; }
.pg--mini .pg__pastille { width: 20px; height: 20px; font-size: 10px; border-width: 2px; }
.pg--mini .pg__etape::before { top: 8px; height: 4px; }
.pg-cell { display: block; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.pg-cell:hover .pg__pastille { filter: brightness(1.05); }
.pg-cell__txt { display: block; }
@media (max-width: 600px) { .pg__etape b { font-size: 10.5px; } .pg__etape small { display: none; } .pg__pastille { width: 32px; height: 32px; font-size: 15px; } .pg__etape::before { top: 13px; } }
.chip--alerte { border-color: color-mix(in srgb, var(--red) 50%, transparent); color: var(--red-d, #c62828); }

.ex-session { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 16px; border-radius: 18px; border: 2px solid var(--border); background: var(--surface); }
.ex-session.is-passee { opacity: .85; }
.ex-session > .grow { min-width: 220px; }
.ex-session b { display: block; }
.ex-session small { color: var(--text-3); font-weight: 700; }
.ex-session__date { width: 64px; flex: none; text-align: center; border-radius: 16px; padding: 8px 4px; background: var(--brand-600); color: #fff; box-shadow: 0 4px 0 var(--brand-shadow); }
.ex-session.is-passee .ex-session__date { background: var(--text-3); box-shadow: none; }
.ex-session__date b { font-size: 24px; line-height: 1; }
.ex-session__date span { display: block; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.ex-session__date small { color: rgba(255,255,255,.85); font-size: 11px; }
.ex-session__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ex-tag { padding: 3px 10px; border-radius: 99px; background: var(--surface-2); font-size: 12px; font-weight: 800; }
.ex-tag--urgent { background: var(--orange-bg); color: var(--orange-d); }
.ex-tag--ok { background: var(--green-bg); color: var(--green-d); }
.ex-session__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ex-saisie, .ex-coches { display: grid; gap: 8px; max-height: 60vh; overflow: auto; }
.ex-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto 100px; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--border); }
@media (max-width: 640px) { .ex-ligne { grid-template-columns: 1fr; } }
.ex-choix { display: flex; gap: 6px; }
.ex-btn { padding: 8px 12px; border-radius: 12px; border: 2px solid var(--border); border-bottom-width: 4px; background: var(--surface); font-weight: 900; font-size: 13px; cursor: pointer; }
.ex-btn--ok.is-on { background: var(--green); border-color: var(--green-d); color: #fff; }
.ex-btn--ko.is-on { background: var(--red); border-color: var(--red-d); color: #fff; }
.ex-btn--abs.is-on { background: var(--text-3); border-color: var(--text-2); color: #fff; }
.ex-coche { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--border); cursor: pointer; }
.ex-coche.is-on, .ex-coche:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50, #f5f3ff); }
.ex-coche b { display: block; } .ex-coche small { color: var(--text-3); font-weight: 700; }
.ex-coche input { width: 20px; height: 20px; accent-color: var(--brand-600); }
.ex-etat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface-2); }
.ex-etat__emoji { font-size: 30px; }
.ex-etat b { display: block; font-size: 17px; } .ex-etat small { color: var(--text-3); font-weight: 700; }
.ex-etat--danger { background: var(--red-bg); } .ex-etat--success { background: var(--green-bg); } .ex-etat--info, .ex-etat--violet { background: var(--blue-bg); } .ex-etat--warning { background: var(--orange-bg); }
.ex-blocs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.ex-bloc { padding: 14px; border-radius: 16px; border: 2px solid var(--border); display: grid; gap: 8px; align-content: start; }
.ex-bloc h4 { font-size: 14px; }
.ex-histo { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.ex-eleve { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.ex-eleve:last-child { border-bottom: 0; }
.ex-eleve__nom { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; min-width: 0; }
@media (max-width: 600px) { .hide-sm { display: none; } }
.reminder--examen { background: linear-gradient(135deg, var(--brand-600), #4a2fe0); }
.reminder__plus-tard { color: #fff; opacity: .8; }

/* ---- Calendrier des examens CMA (page Sessions) ---- */
.cal-cma { margin-bottom: 18px; }
.cal-cma__liste { display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 12px; overflow-x: auto; padding: 4px 18px 18px; scroll-snap-type: x mandatory; }
.cal-cma__item { scroll-snap-align: start; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; padding: 12px; border-radius: 16px; border: 2px solid var(--border); background: var(--surface); }
.cal-cma__item.is-urgent { border-color: var(--orange); background: var(--orange-bg); }
.cal-cma__item .btn { grid-column: 1 / -1; justify-content: center; }
.cal-cma__date { width: 58px; text-align: center; border-radius: 14px; padding: 6px 2px; background: var(--brand-600); color: #fff; box-shadow: 0 4px 0 var(--brand-shadow); }
.cal-cma__date b { display: block; font-size: 22px; line-height: 1; }
.cal-cma__date span { font-size: 10.5px; font-weight: 900; text-transform: uppercase; }
.cal-cma__infos b { display: block; font-size: 16px; }
.cal-cma__infos small { display: block; font-size: 12px; color: var(--text-3); font-weight: 700; }
.cal-cma__item.is-urgent .cal-cma__infos small:first-of-type { color: var(--orange-d); }

/* ---- Import EDOF ---- */
.edof-liste { display: grid; gap: 6px; max-height: 42vh; overflow: auto; margin-top: 10px; }
.edof-session { border: 2px solid var(--border); border-radius: 14px; }
.edof-session summary { display: flex; gap: 8px; align-items: center; padding: 10px 12px; cursor: pointer; font-size: 13.5px; }
.edof-eleve { padding: 6px 14px; border-top: 1px solid var(--border); font-size: 13.5px; }

/* ==========================================================================
   FINANCES — mois, encaissements
   ========================================================================== */
.mois-nav { display: flex; align-items: center; gap: 4px; }
.mois-nav .select { min-width: 190px; font-weight: 800; }
.stats--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .stats--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fin-stat .stat__value { font-size: 22px; }
.fin-stat__sous { font-size: 12px; color: var(--text-3); font-weight: 700; margin-top: 2px; }
.fin-stat--ok { border-color: color-mix(in srgb, var(--green) 45%, var(--border)); background: color-mix(in srgb, var(--green-bg) 55%, var(--surface)); }
.fin-stat--att { border-color: color-mix(in srgb, var(--orange) 45%, var(--border)); background: color-mix(in srgb, var(--orange-bg) 55%, var(--surface)); }
.fin-stat--cash { border-color: color-mix(in srgb, var(--blue) 45%, var(--border)); background: color-mix(in srgb, var(--blue-bg) 55%, var(--surface)); }
.fin-maj { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); margin-bottom: 14px; font-size: 13.5px; }
.fin-cash__ligne { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.fin-cash__ligne:last-child { border-bottom: 0; }
.fin-cash__ligne b { display: block; } .fin-cash__ligne small { color: var(--text-3); font-weight: 700; }
.fin-cash__date { width: 46px; flex: none; text-align: center; border-radius: 12px; padding: 4px 2px; background: var(--blue-bg); color: var(--blue-d); }
.fin-cash__date b { font-size: 18px; line-height: 1; } .fin-cash__date span { font-size: 11px; font-weight: 900; text-transform: uppercase; }
.fin-barres { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; }
.fin-barre { display: grid; justify-items: center; gap: 4px; text-align: center; }
.fin-barre b { font-size: 12px; } .fin-barre small { font-size: 11.5px; color: var(--text-3); font-weight: 800; text-transform: capitalize; }
.fin-barre__col { width: 100%; max-width: 54px; height: 140px; display: flex; align-items: flex-end; border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.fin-barre__tot { width: 100%; display: flex; align-items: flex-end; background: color-mix(in srgb, var(--green) 35%, transparent); border-radius: 12px 12px 0 0; }
.fin-barre__sur { width: 100%; background: var(--green); }
.dash-mois { margin-bottom: 20px; }
.dash-mois .card__head { flex-wrap: wrap; gap: 10px; }
.dash-mois__bas { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.dash-mois__an { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); min-width: 220px; }
.dash-mois__an b { font-size: 24px; font-weight: 900; } .dash-mois__an small { color: var(--text-3); font-weight: 700; }
.dash-mois__titre { display: block; margin-bottom: 6px; }
.dash-mois .stats { margin-bottom: 14px; }

/* ---- Répartition du CA par formation ---- */
.repart { display: grid; gap: 10px; }
.dash-mois .repart { margin-bottom: 16px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); }
.repart__tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.repart__titre { font-weight: 900; }
.repart__barre { display: flex; height: 22px; border-radius: 99px; overflow: hidden; background: var(--surface-3); }
.repart__barre span { display: block; height: 100%; min-width: 3px; transition: width .6s cubic-bezier(.34, 1.56, .64, 1); }
.repart__barre span + span { border-left: 2px solid var(--surface); }
.repart__legende { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 18px; }
.repart__item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.repart__item i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.repart__item b { font-weight: 900; }
.repart__mt { color: var(--text-3); font-weight: 700; font-size: 12px; white-space: nowrap; }

.dash-two--repart { margin-bottom: 22px; }

/* ---- Filtres par famille de formation ---- */
.chips--familles { width: 100%; padding-top: 10px; margin-top: 4px; border-top: 1px dashed var(--border); }

/* ---- Sessions : vue par mois ---- */
.sess-periode { display: grid; gap: 10px; padding: 16px 18px; margin-bottom: 14px; border-radius: var(--r-xl); border: 2px solid var(--border); background: var(--surface); }
.sess-periode .mois-nav { gap: 10px; }
.sess-periode__titre { font-size: 22px; min-width: 0; }
.sess-periode__resume { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--text-2); }
.sess-pastille { white-space: nowrap; }

.sess-periode .repart { padding-top: 10px; border-top: 1px dashed var(--border); }

.sess-masque { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: var(--yellow-bg); border: 2px solid color-mix(in srgb, var(--yellow) 60%, transparent); font-weight: 700; }
.sess-masque span { flex: 1; min-width: 200px; }

/* ==========================================================================
   MAILS AUTOMATIQUES
   ========================================================================== */
.relance { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.relance:last-child { border-bottom: 0; }
.relance > .grow { min-width: 240px; }
.relance__type { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--yellow-bg); }
.relance__type--suivi { background: var(--blue-bg); } .relance__type--besoins { background: var(--purple-bg, #f3e8ff); }
.relance__tete { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.relance small { display: block; color: var(--text-3); font-weight: 700; margin-top: 2px; }
.relance__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mail-apercu { width: 100%; height: 62vh; border: 2px solid var(--border); border-radius: 14px; background: #eaf3f9; }
.dash-relances { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; margin-bottom: 20px; border-color: color-mix(in srgb, var(--blue) 45%, var(--border)); background: color-mix(in srgb, var(--blue-bg) 60%, var(--surface)); }
.dash-relances__icone { font-size: 30px; }
.dash-relances b { display: block; font-size: 16px; }
.dash-relances small { color: var(--text-3); font-weight: 700; }

.relance__type--taxi { background: var(--yellow-bg); }
.stats--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .stats--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .stats--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Installer le logiciel sur le PC ---- */
.btn-install { font-size: 18px; }
.carte-install-pc { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 20px; }
.carte-install-pc img { width: 48px; height: 48px; border-radius: 14px; }
.carte-install-pc b { display: block; } .carte-install-pc small { color: var(--text-3); font-weight: 700; }
.carte-install-pc > .grow { min-width: 220px; }
.inst-pc { display: grid; justify-items: center; gap: 12px; }
.inst-pc__icone { width: 72px; height: 72px; border-radius: 20px; }
.inst-pc__etapes { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; width: 100%; }
.inst-pc__etapes li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--surface-2); font-size: 14px; }
.inst-pc__etapes li > span { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand-600); color: #fff; font-weight: 900; }

/* ---- Accès e-learning : mail de bienvenue ---- */
.acces-tete { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.acces-tete .creds { margin: 0; }
.mail-apercu--acces { height: 52vh; }

.acces-tete .creds { min-width: 280px; }
.acces-tete .creds span { margin-right: 10px; }

.dash-relances__icone { position: relative; }
.dash-relances__pastille { position: absolute; top: -6px; right: -12px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font-size: 12px; font-style: normal; font-weight: 900; display: grid; place-items: center; border: 2px solid var(--surface); }
.dash-relances--suivi { border-color: color-mix(in srgb, var(--red) 40%, var(--border)); background: color-mix(in srgb, var(--red-bg) 45%, var(--surface)); }

/* ---------- Résultats ---------- */
.res-recap td, .res-recap th { vertical-align: middle; }
.res-recap .center { text-align: center; }
.res-ligne { cursor: pointer; transition: background .15s; }
.res-ligne:hover { background: var(--surface-2, rgba(0,0,0,.03)); }
.res-ligne.is-sel { background: color-mix(in srgb, var(--violet, #7c5cff) 10%, transparent); }
.res-pastille { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.res-ok { color: var(--success); font-weight: 800; }
.res-ko { color: var(--danger); font-weight: 800; }
.res-taux { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.res-taux__barre { flex: 1; height: 10px; border-radius: 99px; background: var(--neutral-bg); overflow: hidden; }
.res-taux__barre span { display: block; height: 100%; border-radius: 99px; background: var(--neutral); }
.res-taux--ok .res-taux__barre span { background: var(--success); }
.res-taux--moyen .res-taux__barre span { background: var(--warning); }
.res-taux--bas .res-taux__barre span { background: var(--danger); }
.res-taux b { min-width: 42px; text-align: right; }
.ex-ligne--certif { flex-wrap: wrap; }
.ex-note-bareme { display: flex; gap: 6px; align-items: center; }
.ex-note-bareme .input { width: 90px; }
.ex-note-bareme .select { width: 120px; }


.res-attente__fam { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.res-attente__fam .chip b { margin-left: 4px; }
.res-total td { border-top: 2px solid var(--border); background: var(--surface-2, rgba(0,0,0,.03)); }

/* Bandeau rouge : élèves en échec à recontacter */
.reminder--echec { background: linear-gradient(135deg, #ff5a5a, #d63a3a); }
/* Activité de la semaine (accueil) */
.sem-nav { display: flex; align-items: center; gap: 8px; }
.sem-nav span { display: flex; flex-direction: column; align-items: center; line-height: 1.2; min-width: 150px; text-align: center; }
.sem-nav small { font-size: 11.5px; color: var(--text-3, var(--text-2)); font-weight: 600; }
.dash-semaine .fin-stat__sous b { font-weight: 800; }
@media (max-width: 640px) { .dash-semaine .card__head { flex-wrap: wrap; } .sem-nav { width: 100%; justify-content: space-between; } }

/* Aide après « Envoyer » (Gmail) */
.envoi-aide { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9999; max-width: min(560px, calc(100vw - 32px)); background: #1d2b3a; color: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: 0 12px 34px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.45; cursor: pointer; animation: envoi-in .3s ease; transition: opacity .4s, transform .4s; }
.envoi-aide b { font-size: 15px; }
.envoi-aide kbd { display: inline-block; background: #fff; color: #1d2b3a; border-radius: 6px; padding: 0 6px; font: 700 12px/1.6 Arial, sans-serif; box-shadow: 0 2px 0 #9fb3c5; }
.envoi-aide.is-out { opacity: 0; transform: translateX(-50%) translateY(10px); }
@keyframes envoi-in { from { opacity: 0; transform: translateX(-50%) translateY(14px); } }

/* Assistant « Brancher ma boîte Gmail » */
.gmail-etapes { margin-top: 14px; background: var(--sky-bg, #eef7fd); border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.55; }
.gmail-etapes ol { margin: 8px 0 8px 20px; }
.gmail-etapes li { margin: 4px 0; }
.gmail-etapes a { color: var(--brand-600, #1aa3dc); }
.gmail-etapes p { margin: 6px 0 0; color: var(--text-2); font-size: 13px; }

/* Élèves décrocheurs (E-learning) */
.decro__tete { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); flex-wrap: wrap; }
.decro__ligne { display: flex; gap: 14px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.decro__ligne:last-child { border-bottom: 0; }
.decro__ligne .person { flex: 1 1 220px; min-width: 0; }
.decro__info { flex: 0 1 200px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.decro__info small { color: var(--text-2); }
/* Objectifs de CA (accueil) */
.objectifs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 14px 0 6px; position: relative; }
.objectif { background: var(--surface-2, rgba(0,0,0,.03)); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.objectif__tete { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; flex-wrap: wrap; }
.objectif__barre { height: 12px; border-radius: 99px; background: var(--neutral-bg); overflow: hidden; }
.objectif__barre span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1cb0f6, #7c5cff); transition: width .6s; }
.objectif__barre span.is-presque { background: linear-gradient(90deg, #ffb020, #ff8a00); }
.objectif__barre span.is-ok { background: linear-gradient(90deg, #58cc02, #3fa301); }
.objectif small { color: var(--text-2); font-size: 12.5px; }
.objectif--vide { width: 100%; margin: 14px 0 6px; border-style: dashed; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.objectifs__modif { grid-column: 1 / -1; justify-self: end; background: none; border: 0; cursor: pointer; font: inherit; }

/* Inscriptions CMA */
.cma-session { margin-bottom: 14px; }
.cma-session__tete { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.cma-session__tete small { display: block; color: var(--text-2); font-size: 12.5px; margin-top: 2px; }
.cma-ligne { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.cma-ligne:last-child { border-bottom: 0; }
.cma-ligne .person { flex: 1 1 200px; min-width: 0; }
.cma-ligne__pieces { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; }
.cma-ligne__pieces small { color: var(--text-2); font-size: 12px; }
.cma-num-ligne { width: 128px; flex: 0 0 auto; height: 32px; padding: 4px 8px; font-size: 13px; letter-spacing: .03em; }
.cma-pastilles { display: flex; gap: 4px; }
.cma-pastille { width: 22px; height: 8px; border-radius: 99px; background: var(--neutral-bg); }
.cma-pastille.is-valide { background: var(--success); }
.cma-pastille.is-avalider { background: var(--warning); }
.cma-pastille.is-refuse { background: var(--danger); }
.cma-pastille.is-importee { background: var(--info); }
/* Pièces jointes rangées dans chaque pièce du dossier CMA */
.cma-fichiers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px; }
.cma-fichier { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; font-size: 12.5px; background: var(--neutral-bg); border: 1px solid var(--border); border-radius: 99px; padding: 2px 4px 2px 10px; }
.cma-fichier a, .cma-fichier > span { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; text-decoration: none; }
.cma-fichier a:hover { text-decoration: underline; }
.cma-fichier button { border: 0; background: none; color: var(--text-2); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 5px; border-radius: 99px; }
.cma-fichier button:hover { color: var(--danger); }
.cma-importer { padding: 3px 10px; font-size: 12.5px; }
.cma-drop.is-drag { border-color: var(--sky, #38bdf8); border-style: solid; background: var(--info-bg); }
.el-cma-aide { font-size: 13px; color: var(--text-2); margin: 8px 0 12px; }

/* Heures formateurs : formulaire de session, éditeur de planning, espace formateur, page de contrôle */
.sess-heures { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; }
.sess-heures__l { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sess-heures__l span { flex: 1; min-width: 0; }
.sess-heures__l .input { width: 90px; }
.hf-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 6px 0 10px; }
.hf-table th { text-align: left; font-size: 12px; color: var(--text-2); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.hf-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.hf-table .input { width: 90px; padding: 6px 8px; }
.hf-table tr.hf-total td { font-weight: 800; border-bottom: 0; }
.hf-table--large tr.is-ko td { background: color-mix(in srgb, var(--danger) 7%, transparent); }
.hf-ko { color: var(--danger); font-weight: 700; }
.hf-ok { color: var(--success); font-weight: 700; }
.hf-note { color: var(--text-2); }
.hf-outils { margin: 4px 0 10px; }
.hf-jour { border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; }
.hf-jour__tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; text-transform: capitalize; }
.hf-slot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 4px 0; }
.hf-slot .input[type="time"] { width: 105px; }
.hf-slot .select { width: 190px; }
.hf-slot .input[data-f="matiere"] { flex: 1; min-width: 150px; }
.hf-vide { margin: 2px 0; font-size: 13px; }
.hf-publie { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--info-bg); }
.hf-esp { margin-bottom: 14px; }
/* Espace formateur : encadré « Facture à déposer » (tout en haut de la page) */
.hf-afaire { margin-bottom: 14px; border-color: var(--danger); background: color-mix(in srgb, var(--danger) 6%, transparent); }
.hf-afaire__titre { margin: 0 0 6px; font-size: 18px; color: var(--danger); }
.hf-afaire__txt { margin: 0 0 10px; }
.hf-afaire__ligne { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--border); }
.hf-afaire__ligne small { display: block; color: var(--text-2); margin-top: 2px; }
.hf-afaire__aide { margin: 8px 0 0; font-size: 13.5px; color: var(--text-2); }
/* Nouveau look verre (css/verre.css force bordure et fond des .card) : l'encadré reste rouge, comme annoncé dans le mail */
.page .card.hf-afaire { border-color: var(--danger) !important; background-color: color-mix(in srgb, var(--danger) 9%, var(--v-card, transparent)) !important; }
.hf-esp .link-more, .hf-table .link-more { background: none; border: 0; box-shadow: none; padding: 6px 0; font: inherit; font-weight: 700; color: var(--sky, #1aa3dc); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hf-esp__kpis { display: flex; gap: 10px; margin-bottom: 12px; }
.hf-esp__kpis div { flex: 1; background: var(--neutral-bg); border-radius: 12px; padding: 10px 12px; text-align: center; }
.hf-esp__kpis b { display: block; font-size: 22px; }
.hf-esp__kpis small { color: var(--text-2); }
.hf-esp__go { width: 100%; justify-content: center; padding: 14px; font-size: 16px; }
.hf-esp__encours { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--success) 12%, transparent); }
.hf-esp__encours .btn { margin-left: auto; }
.hf-esp__h { margin: 16px 0 6px; font-size: 14.5px; }
.hf-esp__liste { margin: 0; padding-left: 18px; font-size: 14px; }
.hf-esp__liste li { margin: 3px 0; }
.hf-esp__liste b { text-transform: capitalize; }
.hf-sess { margin-bottom: 12px; }
.hf-sess--vide { border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
/* Vue 3D de l'activité */
.c3d { display: flex; flex-direction: column; gap: 10px; }
.c3d-barre { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.c3d-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.c3d-periode { min-width: 160px; text-align: center; font-size: 15px; }
.c3d-resume { flex: 1; text-align: right; font-size: 13px; }
.c3d-scene { position: relative; height: calc(100vh - 200px); min-height: 480px; border-radius: 22px; overflow: hidden; border: 1px solid rgba(20,30,45,.08);
  background: radial-gradient(120% 90% at 50% 18%, #fbfcfd 0%, #eef2f5 45%, #dde4ea 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); font-family: Inter, system-ui, sans-serif; }
.c3d-scene canvas { position: relative; z-index: 0; display: block; width: 100% !important; height: 100% !important; cursor: grab; touch-action: none; }
.c3d-scene canvas:active { cursor: grabbing; }
.c3d-chargement, .c3d-message { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #3c4a5a; font-weight: 600; }
/* Étiquettes HTML posées sur la maquette */
.c3d-tags { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.c3d-tag { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 6px 11px 6px 8px; border-radius: 999px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4); color: #18212c;
  box-shadow: 0 6px 18px rgba(16,24,40,.12), 0 0 0 1px rgba(16,24,40,.05); font-size: 13px; letter-spacing: -.01em; will-change: transform; }
.c3d-tag i { font-style: normal; font-size: 15px; }
.c3d-tag b { font-weight: 650; }
.c3d-tag span { padding: 2px 8px; border-radius: 999px; background: rgba(24,33,44,.07); color: #4a5868; font-size: 11.5px; font-weight: 600; }
.c3d-tag--clic { pointer-events: auto; cursor: pointer; transition: box-shadow .15s, background .15s; }
.c3d-tag--clic:hover { background: #fff; box-shadow: 0 8px 24px rgba(16,24,40,.18), 0 0 0 1px rgba(16,24,40,.08); }
.c3d-tag--n2 { padding: 4px 9px; font-size: 11.5px; background: rgba(255,255,255,.9); }
.c3d-tag--n2 span { font-size: 10.5px; padding: 1px 6px; }
.c3d-tag--bleu b { color: #1f5fbf; } .c3d-tag--rouge b { color: #b8322a; } .c3d-tag--vert b { color: #2c7a57; } .c3d-tag--orange b { color: #b4651a; }
.c3d-tag--violet b { color: #5b3fc4; } .c3d-tag--or b { color: #94701c; } .c3d-tag--gris { opacity: .8; }
.c3d-tag--sombre { background: rgba(24,33,44,.86); color: #fff; } .c3d-tag--sombre span { background: rgba(255,255,255,.15); color: #fff; }
/* Nom au-dessus d'un bonhomme : discret, net quand on survole ou qu'on clique */
.c3d-tag--nom { padding: 2px 8px; gap: 0; font-size: 11px; background: rgba(255,255,255,.86); box-shadow: 0 2px 8px rgba(16,24,40,.10), 0 0 0 1px rgba(16,24,40,.05); }
.c3d-tag--nom b { font-weight: 600; }
.c3d-tag--survol { background: #fff; box-shadow: 0 6px 18px rgba(16,24,40,.18), 0 0 0 1px rgba(16,24,40,.08); font-size: 12px; }
.c3d-tag--choisi { background: #18212c; color: #fff; font-size: 12.5px; padding: 4px 10px; box-shadow: 0 8px 22px rgba(16,24,40,.28); }
/* Barre du parcours */
.c3d-parcours { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; gap: 6px; align-items: center; max-width: calc(100% - 120px); }
.c3d-ligne { display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 16px; background: rgba(255,255,255,.72); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 8px 26px rgba(16,24,40,.10), 0 0 0 1px rgba(16,24,40,.05); overflow-x: auto; max-width: 100%; }
.c3d-ligne small { padding: 0 8px 0 6px; color: #6b7a8a; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.c3d-ligne em { font-style: normal; color: #a3adb9; font-size: 15px; }
.c3d-etape { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 11px; background: transparent; color: #18212c; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.c3d-etape:hover { background: rgba(24,33,44,.06); }
.c3d-etape i { font-style: normal; }
.c3d-etape b { min-width: 22px; padding: 2px 7px; border-radius: 999px; background: #18212c; color: #fff; font-size: 11.5px; text-align: center; }
.c3d-zoom { position: absolute; right: 14px; top: 14px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.c3d-zoom button { width: 38px; height: 38px; border-radius: 12px; border: 0; background: rgba(255,255,255,.85); backdrop-filter: blur(10px); color: #18212c; font-size: 20px; font-weight: 600; box-shadow: 0 6px 18px rgba(16,24,40,.12), 0 0 0 1px rgba(16,24,40,.05); cursor: pointer; }
.c3d-panneau { position: absolute; left: 14px; top: 104px; z-index: 3; width: min(340px, calc(100% - 80px)); max-height: calc(100% - 170px); overflow: auto; background: rgba(255,255,255,.9); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  color: #18212c; border-radius: 18px; padding: 16px 18px; box-shadow: 0 18px 50px rgba(16,24,40,.18), 0 0 0 1px rgba(16,24,40,.06); }
.c3d-panneau > b { display: block; font-size: 16px; margin: 0 26px 10px 0; letter-spacing: -.01em; }
.c3d-fermer { position: absolute; right: 10px; top: 8px; border: 0; background: none; font-size: 22px; color: #6b7a8a; cursor: pointer; }
.c3d-lignes div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(24,33,44,.07); font-size: 13.5px; }
.c3d-lignes span { color: #6b7a8a; }
.c3d-lignes b { text-align: right; font-weight: 600; }
.c3d-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.c3d-legende { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px 12px; max-width: calc(100% - 330px); padding: 8px 12px; border-radius: 14px; background: rgba(255,255,255,.75); backdrop-filter: blur(10px); color: #2a3644; font-size: 12px; box-shadow: 0 0 0 1px rgba(16,24,40,.05); }
.c3d-legende i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.c3d-aide { position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: 7px 11px; border-radius: 12px; background: rgba(24,33,44,.72); backdrop-filter: blur(8px); color: #fff; font-size: 11.5px; }
.c3d-scene { container-type: size; }
@container (max-width: 900px) { .c3d-aide { display: none; } .c3d-legende { max-width: calc(100% - 28px); } }
@media (max-width: 900px) { .c3d-parcours { left: 12px; right: 60px; transform: none; max-width: none; align-items: stretch; } .c3d-aide { display: none; } .c3d-legende { max-width: calc(100% - 28px); } }
@media (max-width: 640px) { .c3d-resume { text-align: left; } .c3d-legende { display: none; } .c3d-scene { height: calc(100vh - 250px); } .c3d-ligne small { display: none; } .c3d-etape span { display: none; } .c3d-panneau { top: 110px; } .c3d-tag { font-size: 11.5px; padding: 4px 9px 4px 7px; } .c3d-tag span { font-size: 10.5px; } }
.hf-recherche { display: flex; align-items: center; gap: 8px; }
.hf-recherche svg { flex: none; width: 18px; height: 18px; color: var(--text-2); }
.hf-recherche .input { flex: 1; min-width: 0; }
.hf-resultat { margin: 6px 0 12px; font-size: 14px; color: var(--text-2); }
.hf-sess--ok { border: 1px solid color-mix(in srgb, var(--success) 40%, transparent); background: color-mix(in srgb, var(--success) 6%, var(--surface, #fff)); }
.hf-sess__tete .btn + .btn { margin-left: 6px; }
.hf-filtres { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface, transparent); }
.hf-sess__tete { display: flex; align-items: center; gap: 10px; padding: 12px 14px 0; }
.hf-sess__tete small { display: block; color: var(--text-2); }
.hf-sess .table-wrap { padding: 0 14px 8px; overflow-x: auto; }
.hf-corr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.hf-corr small { display: block; color: var(--text-2); }
@media (max-width: 640px) { .hf-slot .select, .hf-slot .input[data-f="matiere"] { width: 100%; } }
.cma-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cma-tete small { display: block; color: var(--text-2); }
.cma-h { margin: 0 0 8px; font-size: 14px; }
.cma-champs { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.cma-champ { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.cma-champ:last-child { border-bottom: 0; }
.cma-champ span { width: 130px; color: var(--text-2); flex: none; }
.cma-champ b { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cma-pieces { display: flex; flex-direction: column; gap: 8px; }
.cma-piece { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 9px 11px; }
.cma-piece small { display: block; color: var(--text-2); font-size: 12px; line-height: 1.35; }
.cma-piece em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--violet, #7c5cff); text-transform: uppercase; margin-left: 4px; }
.cma-piece.is-facultatif { opacity: .8; border-style: dashed; }
.cma-piece .select { width: 150px; flex: none; }
@media (max-width: 640px) { .cma-piece { flex-wrap: wrap; } .cma-piece .select { width: 100%; } .cma-champ span { width: 105px; } }

/* Page Automatismes */
.auto-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 8px; }
.auto-carte { background: var(--surface); border: 2px solid var(--border); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, opacity .2s; opacity: .75; }
.auto-carte.is-on { border-color: color-mix(in srgb, var(--success) 45%, var(--border)); opacity: 1; }
.auto-carte__tete { display: flex; align-items: center; gap: 10px; }
.auto-carte__emoji { font-size: 24px; }
.auto-carte p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.auto-carte .link-more { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; font-size: 12.5px; }
.interrupteur { width: 48px; height: 28px; border-radius: 99px; border: 0; background: var(--neutral-bg); position: relative; cursor: pointer; flex: none; transition: background .2s; }
.interrupteur span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.25); transition: transform .2s; }
.interrupteur.is-on { background: var(--success); }
.interrupteur.is-on span { transform: translateX(20px); }

/* ========== Guide ========== */
.btn-aide { font-size: 18px; }
.gd-hero { background: linear-gradient(135deg, color-mix(in srgb, #7c5cff 14%, var(--surface)), color-mix(in srgb, #1cb0f6 12%, var(--surface))); border: 1px solid var(--border); border-radius: 22px; padding: 22px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 14px; }
.gd-hero__titre { display: flex; gap: 14px; align-items: center; }
.gd-hero__titre > span { font-size: 46px; }
.gd-hero h1 { margin: 0 0 4px; font-size: 26px; }
.gd-hero p { margin: 0; color: var(--text-2); }
.gd-recherche { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 2px solid var(--border); border-radius: 16px; padding: 0 14px; }
.gd-recherche:focus-within { border-color: #7c5cff; box-shadow: 0 0 0 4px color-mix(in srgb, #7c5cff 18%, transparent); }
.gd-recherche input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 16px; padding: 14px 0; color: inherit; outline: none; min-width: 0; }
.gd-themes { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-astuce { margin: 0 !important; font-size: 13px; }
.gd-compte { color: var(--text-2); margin: 0 0 10px; font-weight: 600; }
.gd-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin-bottom: 18px; }
.gd-carte { display: flex; gap: 12px; align-items: flex-start; text-align: left; background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--c, #7c5cff); border-radius: 14px; padding: 12px 14px; cursor: pointer; font: inherit; color: inherit; transition: transform .15s, box-shadow .15s; position: relative; }
.gd-carte:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.gd-carte__emoji { font-size: 26px; line-height: 1; }
.gd-carte b { display: block; margin-bottom: 3px; }
.gd-carte small { display: block; color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
.gd-carte mark, .gd-fiche mark { background: #ffe58a; color: #3b2f14; border-radius: 3px; padding: 0 2px; }
.gd-carte__theme { position: absolute; top: 8px; right: 10px; font-size: 10.5px; font-weight: 800; color: var(--text-3, var(--text-2)); opacity: .8; }
.gd-carte .grow { padding-right: 60px; }
.gd-retour { background: none; border: 0; cursor: pointer; font: inherit; padding: 0; margin-bottom: 10px; }
.gd-fiche { max-width: 880px; }
.gd-fiche__tete { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.gd-fiche__emoji { font-size: 44px; width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, var(--surface)); }
.gd-fiche__tete small { color: var(--text-2); font-weight: 700; }
.gd-fiche__tete h1 { margin: 2px 0 0; font-size: 26px; }
.gd-objectif { background: color-mix(in srgb, var(--c, #7c5cff) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c, #7c5cff) 35%, var(--border)); border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; }
.gd-objectif p { margin: 6px 0 0; }
.gd-acces { font-size: 13.5px; color: var(--text-2); }
.gd-section { margin: 0 0 14px; }
.gd-section h2, .gd-h2 { font-size: 18px; margin: 20px 0 8px; }
.gd-section p, .gd-faq p { margin: 0 0 8px; line-height: 1.6; }
.gd-section ul, .gd-section ol, .gd-astuces ul { margin: 6px 0 10px 22px; line-height: 1.6; }
.gd-proc { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 8px; overflow: hidden; }
.gd-proc summary, .gd-faq summary { cursor: pointer; padding: 12px 14px; font-weight: 800; list-style: none; }
.gd-proc summary::before { content: '▸ '; color: var(--c, #7c5cff); }
.gd-proc[open] summary::before { content: '▾ '; }
.gd-proc ol { margin: 0; padding: 4px 16px 14px 42px; counter-reset: etape; }
.gd-proc li { margin: 6px 0; line-height: 1.55; }
.gd-proc li::marker { font-weight: 900; color: var(--c, #7c5cff); }
.gd-astuces { background: color-mix(in srgb, #ffc800 14%, var(--surface)); border-radius: 14px; padding: 12px 16px; margin: 16px 0; }
.gd-faq { border-bottom: 1px solid var(--border); }
.gd-faq summary::before { content: '❓ '; }
.gd-faq > :not(summary) { padding: 0 14px 10px 36px; }
.gd-fiche--modale .gd-objectif { --c: #7c5cff; }
@media (max-width: 640px) { .gd-liste { grid-template-columns: 1fr; } .gd-hero h1, .gd-fiche__tete h1 { font-size: 21px; } .gd-carte .grow { padding-right: 0; } .gd-carte__theme { display: none; } }

/* ========== Centre des tâches (Accueil) ========== */
.taches { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 14px; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.taches__tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 0 2px 4px; }
.taches__tete > b { font-size: 17px; }
.taches__compte { display: flex; gap: 6px; flex-wrap: wrap; }
.taches__pastille { font-size: 12px; font-weight: 800; border-radius: 99px; padding: 3px 10px; }
.taches__pastille.is-urgent { background: #ffe1e1; color: #c62828; }
.taches__pastille.is-important { background: #fff0d6; color: #b45309; }
.taches__pastille.is-afaire { background: #e3f2fd; color: #1565c0; }
.tache { display: flex; align-items: center; gap: 12px; border-radius: 14px; padding: 11px 12px; border: 1px solid var(--border); border-left: 6px solid; flex-wrap: wrap; }
.tache.is-urgent { border-left-color: #ff4b4b; background: color-mix(in srgb, #ff4b4b 9%, var(--surface)); }
.tache.is-important { border-left-color: #ff9600; background: color-mix(in srgb, #ff9600 8%, var(--surface)); }
.tache.is-afaire { border-left-color: #1cb0f6; background: color-mix(in srgb, #1cb0f6 6%, var(--surface)); }
.tache__emoji { font-size: 24px; flex: none; }
.tache .grow { min-width: 200px; flex: 1; }
.tache b { display: block; font-size: 14.5px; }
.tache small { display: block; color: var(--text-2); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.tache__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.btn--danger.btn--sm, .tache .btn--danger { background: #ff4b4b; color: #fff; border-color: #ff4b4b; }
@media (max-width: 640px) { .tache__actions { width: 100%; justify-content: flex-end; } }
/* ========== Journal d'activité ========== */
.jr-auj { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.jr-pers { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; }
.jr-pers small { display: block; color: var(--text-2); font-size: 12px; }
.jr-filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.jr-filtres .select, .jr-filtres .input { width: auto; min-width: 170px; flex: 1 1 170px; }
.jr-jour { padding: 4px 0; }
.jr-ligne { display: flex; align-items: flex-start; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.jr-ligne:last-child { border-bottom: 0; }
.jr-ligne small { display: block; color: var(--text-2); font-size: 12.5px; margin-top: 2px; }
.jr-heure { font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 700; width: 42px; flex: none; padding-top: 4px; }
.jr-type { color: var(--text-2); font-size: 12.5px; }
/* Organisation de la pratique */
.pr-cta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.pr-choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 14px; max-height: 300px; overflow: auto; padding: 4px 2px; }
.pr-choix small { font-size: 11.5px; }
.pr-apercu { width: 100%; height: 62vh; min-height: 420px; border: 0; border-radius: 14px; background: #eaf3f9; }
.pr-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pr-carte { text-align: left; cursor: pointer; border: 1px solid var(--border); font: inherit; color: inherit; }
.pr-carte .card__body { display: flex; flex-direction: column; gap: 6px; }
.pr-carte small { color: var(--text-2); }
.pr-jauge { height: 8px; border-radius: 99px; background: var(--surface-2, #eef2f6); overflow: hidden; }
.pr-jauge i { display: block; height: 100%; background: var(--success, #3bb273); border-radius: 99px; }
.pr-retour { margin: 0 0 10px; }
.pr-tete h2 { margin: 0 0 8px; font-size: 19px; }
.pr-infos { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--text-2); }
.pr-infos b { color: var(--text); }
.pr-boutons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pr-kpis { margin: 14px 0 6px; }
.pr-h { margin: 18px 0 8px; font-size: 16px; }
.pr-grille-wrap { overflow-x: auto; }
.pr-grille { border-collapse: separate; border-spacing: 6px; min-width: 620px; width: 100%; }
.pr-grille th { font-size: 12.5px; color: var(--text-2); font-weight: 600; text-transform: capitalize; padding: 2px 4px; white-space: nowrap; }
.pr-grille td { vertical-align: top; border-radius: 12px; padding: 8px; min-width: 110px; height: 58px; font-size: 13px; }
.pr-grille td span { display: block; font-weight: 600; }
.pr-grille td small { display: block; font-size: 11.5px; color: var(--text-2); margin-top: 2px; }
.pr-libre { background: var(--surface-2, #f2f5f8); }
.pr-partiel { background: color-mix(in srgb, var(--warning, #ff9600) 14%, transparent); }
.pr-plein { background: color-mix(in srgb, var(--success, #3bb273) 18%, transparent); }
.pr-table td { vertical-align: middle; }
.pr-table { min-width: 780px; }
.pr-table td { white-space: nowrap; }
.pr-act { display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; justify-content: flex-end; }
.pr-sel { width: auto; min-width: 140px; padding-top: 4px; padding-bottom: 4px; font-size: 13px; }
.pr-retrait { margin: 0; padding-left: 20px; line-height: 1.7; }

/* ---------- Formation au logiciel (vidéos équipe) ---------- */
.fo-grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 980px) { .fo-grille { grid-template-columns: 1fr; } }
.fo-lecteur { overflow: hidden; }
.fo-lecteur video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #061226; }
.fo-titre { margin: 0 0 4px; font-size: 18px; }
.fo-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 8px; }
.fo-astuce { margin: 6px 0 0; font-size: 13px; color: var(--text-3, #6b7a8a); }
.fo-liste { display: flex; flex-direction: column; gap: 4px; padding: 8px; }
.fo-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px; border-radius: 12px; border: 1px solid transparent; background: none; color: inherit; font: inherit; cursor: pointer; }
.fo-item:hover { background: var(--surface-2, #f2f6fa); }
.fo-item.is-on { border-color: #1b8ef2; background: rgba(27, 142, 242, .08); }
.fo-item__t { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; }
.fo-item small { color: var(--text-3, #6b7a8a); font-size: 12px; }
.fo-num { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3, #e8eef4); font-size: 13px; }
.fo-item.is-vu .fo-num { background: #1fa463; color: #fff; }
.fo-prog { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.fo-prog__barre { flex: 1; max-width: 360px; height: 8px; border-radius: 9px; background: var(--surface-3, #e8eef4); overflow: hidden; }
.fo-prog__barre i { display: block; height: 100%; background: linear-gradient(90deg, #1b8ef2, #2fb4ff); }
.fo-bandeau { display: flex; align-items: center; gap: 14px; width: 100%; margin: 14px 0; padding: 14px 18px; border: 0; border-radius: 16px; cursor: pointer; text-align: left; font: inherit; color: #fff; background: linear-gradient(135deg, #061226, #0b2a52 60%, #1b8ef2); }
.fo-bandeau > span:first-child { font-size: 28px; }
.fo-bandeau small { display: block; color: #cfe3f7; font-size: 13px; }
.pr-sms-liste { display: flex; flex-direction: column; gap: 8px; }
.pr-sms { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--border, #e3e8ee); border-radius: 12px; }
.pr-sms__qui { display: flex; flex-direction: column; min-width: 0; }
.pr-sms__qui small { color: var(--muted, #6b7a8a); }
.pr-sms__qui .pr-sms__etat { color: #1a7f4b; font-weight: 600; }
.pr-sms__etat:empty { display: none; }
.pr-sms__btns { display: flex; gap: 6px; flex-wrap: wrap; }
.cma-session--fermee { opacity: .75; }
.cma-voir { margin: 4px 0 12px; }
/* La cigogne JARVIS (mascotte) */
.cig { position: fixed; right: 14px; bottom: 10px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; font-family: Inter, system-ui, sans-serif; }
.cig > * { pointer-events: auto; }
.cig-bouton { position: relative; width: 96px; height: 90px; touch-action: none; -webkit-touch-callout: none; user-select: none; padding: 0; border: 0; background: none; cursor: pointer; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s; filter: drop-shadow(0 10px 14px rgba(16,24,40,.18)); }
.cig.is-prete .cig-bouton { opacity: 1; transform: none; }
.cig.is-sans3d .cig-bouton { opacity: 1; transform: none; width: 64px; height: 64px; border-radius: 50%; background: #fff; }
.cig.is-sans3d .cig-bouton::after { content: '🐦'; font-size: 34px; }
.cig-taxi { width: 96px; height: 90px; display: block; overflow: visible; pointer-events: none; }
.cig-bouton:hover { filter: drop-shadow(0 12px 18px rgba(26,163,220,.35)); }
.cig-bulle { position: absolute; right: 84px; top: 18px; padding: 6px 10px; border-radius: 12px 12px 2px 12px; background: #fff; color: #18212c; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 18px rgba(16,24,40,.14); opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; pointer-events: none; }
.cig-bouton:hover .cig-bulle { opacity: 1; transform: none; }
.cig.is-ouvert .cig-bulle { display: none; }
.cig-rappel { display: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 6px 18px rgba(16,24,40,.18); font-size: 20px; cursor: pointer; }
.cig.is-masquee .cig-bouton, .cig.is-masquee .cig-panneau { display: none; }
.cig.is-masquee .cig-rappel { display: block; }
.cig-panneau { display: none; flex-direction: column; width: min(400px, calc(100vw - 28px)); height: min(560px, calc(100vh - 200px)); margin-bottom: -8px; border-radius: 20px; overflow: hidden; background: var(--surface, #fff); color: var(--text, #18212c); border: 1px solid var(--border, rgba(16,24,40,.08)); box-shadow: 0 24px 60px rgba(16,24,40,.28); }
.cig.is-ouvert .cig-panneau { display: flex; animation: cig-ouvre .22s ease-out; }
@keyframes cig-ouvre { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.cig-tete { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--border, rgba(16,24,40,.08)); background: linear-gradient(135deg, rgba(26,163,220,.12), rgba(26,163,220,0)); }
.cig-tete b { font-size: 15px; }
.cig-tete span { flex: 1; font-size: 12px; color: var(--text-2, #6b7a8a); }
.cig-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.cig-accueil p { margin: 6px 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--text-2, #4a5868); }
.cig-sugg { display: block; width: 100%; text-align: left; margin: 0 0 6px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--border, #dde5ec); background: var(--surface-2, #f6f9fb); color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.cig-sugg:hover { border-color: #1aa3dc; }
.cig-msg { max-width: 88%; padding: 9px 12px; border-radius: 16px; font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.cig-msg p { margin: 0 0 6px; } .cig-msg p:last-child { margin-bottom: 0; }
.cig-msg ul { margin: 4px 0 6px; padding-left: 18px; }
.cig-msg--moi { align-self: flex-end; background: #1aa3dc; color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.cig-msg--jarvis { align-self: flex-start; background: var(--surface-2, #f2f6f9); border-bottom-left-radius: 4px; }
.cig-msg a { color: #1a8cc0; }
.cig-carte { margin-top: 8px; padding: 9px 10px; border-radius: 12px; background: var(--surface, #fff); border: 1px solid var(--border, #e3eaf0); }
.cig-carte > b { display: block; margin-bottom: 4px; }
.cig-kpis { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cig-kpis span { padding: 5px 9px; border-radius: 10px; background: var(--surface-2, #f2f6f9); font-size: 12px; }
.cig-kpis i { display: block; font-style: normal; font-weight: 700; font-size: 15px; }
.cig-tab { overflow-x: auto; margin-top: 6px; }
.cig-tab table { border-collapse: collapse; font-size: 12px; width: 100%; }
.cig-tab th, .cig-tab td { padding: 4px 6px; border-bottom: 1px solid var(--border, #e3eaf0); text-align: left; white-space: nowrap; }
.cig-liens { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; font-size: 12.5px; }
.cig-action { margin-top: 8px; padding: 9px 10px; border-radius: 12px; background: color-mix(in srgb, #ff9600 12%, transparent); }
.cig-valider, .cig-extras { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cig-note { font-size: 12px; color: var(--text-2, #6b7a8a); }
.cig-reflechit { display: flex; gap: 4px; padding: 12px 14px; }
.cig-reflechit i { width: 7px; height: 7px; border-radius: 50%; background: #1aa3dc; animation: cig-point 1s infinite ease-in-out; }
.cig-reflechit i:nth-child(2) { animation-delay: .15s; } .cig-reflechit i:nth-child(3) { animation-delay: .3s; }
@keyframes cig-point { 0%, 80%, 100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.cig-saisie { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--border, rgba(16,24,40,.08)); }
.cig-saisie textarea { flex: 1; resize: none; min-height: 38px; max-height: 120px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--border, #dde5ec); background: var(--surface-2, #f6f9fb); color: inherit; font: inherit; font-size: 13.5px; }

@media print { .cig { display: none !important; } }

/* JARVIS le petit taxi : animations kawaii */
.cig-corps { animation: cig-rebond 2.6s ease-in-out infinite; transform-origin: 60px 100px; }
@keyframes cig-rebond { 0%, 100% { transform: translateY(0) scale(1, 1); } 45% { transform: translateY(-4px) scale(.99, 1.015); } 55% { transform: translateY(-4px); } 92% { transform: translateY(0) scale(1.02, .98); } }
.cig-ombre { animation: cig-ombre 2.6s ease-in-out infinite; transform-origin: 60px 104px; }
@keyframes cig-ombre { 0%, 100% { transform: scale(1); opacity: .16; } 50% { transform: scale(.85); opacity: .1; } }
.cig-oeil { animation: cig-cligne 4.2s infinite; }
@keyframes cig-cligne { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.08); } }
.cig-pupille { transition: transform .25s ease-out; }
.cig-etoile { animation: cig-scintille 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.cig-etoile--2 { animation-delay: 1.1s; }
@keyframes cig-scintille { 0%, 100% { transform: scale(.5) rotate(0); opacity: .2; } 50% { transform: scale(1.1) rotate(25deg); opacity: 1; } }
.cig.is-reflechit .cig-corps { animation: cig-vibre .35s ease-in-out infinite; }
@keyframes cig-vibre { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-3px) rotate(1.5deg); } }
.cig.is-reflechit .cig-roue { animation: cig-tourne .6s linear infinite; }
@keyframes cig-tourne { to { transform: rotate(360deg); } }
.cig.is-saut .cig-taxi { animation: cig-saut .55s cubic-bezier(.3,1.6,.5,1); }
@keyframes cig-saut { 0% { transform: translateY(0); } 40% { transform: translateY(-14px) rotate(-3deg); } 100% { transform: translateY(0); } }
.cig-bouton:hover .cig-bouche { d: path("M54 50.5 q6 6 12 0"); }
.cig-bouton:hover .cig-corps { animation-duration: 1.4s; }
@media (prefers-reduced-motion: reduce) { .cig-corps, .cig-ombre, .cig-etoile, .cig-oeil { animation: none; } }
/* JARVIS : déplaçable, place par défaut qui ne gêne pas */
.cig-bulle small { display: block; font-weight: 500; font-size: 10.5px; color: #6b7a8a; margin-top: 1px; }
.cig-astuce { font-size: 12px !important; color: var(--text-2, #6b7a8a); }
.cig.is-gauche { align-items: flex-start; }
.cig.is-gauche .cig-bulle { right: auto; left: 78px; border-radius: 12px 12px 12px 2px; }
.cig.is-haut { flex-direction: column-reverse; }
.cig.is-haut .cig-panneau { margin: -8px 0 0; }
.cig.is-glisse .cig-bouton { cursor: grabbing; transform: scale(1.12); filter: drop-shadow(0 16px 22px rgba(26,163,220,.4)); transition: none; }
.cig.is-glisse .cig-bulle { display: none; }
.cig-bouton { cursor: grab; }
.cig-bulle { right: 78px; }
/* Téléphone / tablette : en bas à GAUCHE, au-dessus de la barre d'onglets (le bouton « + » est à droite), plus petit ;
   la discussion s'ouvre en plein largeur au-dessus de la barre. */
@media (max-width: 960px) {
  .cig:not(.is-place) { right: auto; left: 8px; bottom: calc(var(--bottom-nav-h, 64px) + var(--safe-bottom, 0px) + 10px); align-items: flex-start; }
  .cig-bouton, .cig-taxi { width: 64px; height: 60px; }
  .cig-bulle { display: none; }
  .cig-panneau { position: fixed; left: 8px; right: 8px; width: auto; bottom: calc(var(--bottom-nav-h, 64px) + var(--safe-bottom, 0px) + 8px); height: min(72vh, calc(100vh - 150px)); margin: 0; z-index: 2; }
  .cig.is-ouvert .cig-bouton { visibility: hidden; }
}.cig-masquer { border: 0; background: none; color: var(--text-2, #6b7a8a); font: inherit; font-size: 12px; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.cig-masquer:hover { background: var(--surface-2, #eef3f7); }

/* JARVIS en tout petit (demande de Bilal) */
.cig-bouton, .cig-taxi { width: 58px !important; height: 54px !important; }
.cig-bulle { right: 54px; top: 2px; font-size: 11px; }
.cig.is-gauche .cig-bulle { left: 54px; }
.cig-etoile { display: none; }
@media (max-width: 960px) { .cig-bouton, .cig-taxi { width: 44px !important; height: 41px !important; } }
/* ---------- Import du PDF de résultats de la CMA (js/cma-resultats.js) ---------- */
.cr-depot { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 26px 18px; border: 2px dashed var(--border); border-radius: 16px; background: var(--surface-2, #f6f9fb); transition: border-color .15s, background .15s; }
.cr-depot small { color: var(--text-2); font-size: 12.5px; line-height: 1.5; max-width: 520px; }
.cr-depot .btn { margin-top: 6px; }
.cr-depot__icone { font-size: 38px; line-height: 1; }
.cr-depot.is-survol { border-color: var(--primary, #1aa3dc); background: rgba(26,163,220,.07); }
.cr-depot.is-compact { flex-direction: row; justify-content: flex-start; padding: 10px 14px; text-align: left; gap: 10px; }
.cr-depot.is-compact .cr-depot__icone, .cr-depot.is-compact small { display: none; }
.cr-depot.is-compact b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-depot.is-compact .btn { margin: 0; }
.cr-tete { margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px; background: rgba(26,163,220,.08); }
.cr-tete b { font-size: 15px; }
.cr-tete small { display: block; color: var(--text-2); font-size: 12.5px; margin-top: 2px; }
.cr-h { margin: 16px 0 8px; font-size: 14px; }
.cr-liste { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.cr-ligne { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.cr-ligne:last-child { border-bottom: 0; }
.cr-ligne input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--primary, #1aa3dc); }
.cr-ligne .grow { min-width: 0; }
.cr-ligne small { display: block; color: var(--text-2); font-size: 12px; margin-top: 1px; }
.cr-ligne.is-deja { opacity: .6; cursor: default; }
.cr-ligne.is-attendu { cursor: default; background: rgba(255,150,0,.06); }
.cr-num { width: 120px; height: 32px; padding: 4px 8px; font-size: 13px; flex: 0 0 auto; }
.cr-deja { margin-top: 12px; }
.cr-deja summary { cursor: pointer; color: var(--text-2); font-size: 13px; margin-bottom: 6px; }
@media (max-width: 600px) { .cr-ligne { flex-wrap: wrap; } .cr-num { width: 100%; } }
/* ---------- Visionneuse de la base de cours (formateurs : consultation sans téléchargement) ---------- */
.bib-vue { height: 100%; min-height: 62vh; display: flex; flex-direction: column; user-select: none; -webkit-user-select: none; }
.bib-vue iframe { flex: 1; width: 100%; min-height: 62vh; border: 0; border-radius: 12px; background: #fff; }
.bib-vue__pdf { flex: 1; overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px; background: var(--surface-2, #eef2f5); border-radius: 12px; }
.bib-vue__pdf canvas, .bib-vue__pdf img { max-width: 100%; height: auto; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.12); border-radius: 4px; pointer-events: none; }

/* ---------- Propositions de modification des cours e-learning (formateurs → équipe) ---------- */
.prop-liste { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.prop { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.prop__tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prop__tete small { color: var(--text-2); font-size: 12.5px; }
.prop__texte { margin: 8px 0 0; white-space: pre-wrap; font-size: 14px; line-height: 1.5; }
.prop__fichiers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.prop__actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
/* ---------- Mode « Présenter » de la base de cours (plein écran, diapo par diapo) ---------- */
.bib-show { position: fixed; inset: 0; z-index: 10000; background: #000; color: #fff; cursor: none; outline: none; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.bib-show.is-barre { cursor: default; }
.bib-show__scene { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.bib-show__scene canvas { display: block; pointer-events: none; }
.bib-show__msg { color: #cfd8e3; font-size: 16px; padding: 20px; text-align: center; }
.bib-show__noir { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .2s; }
.bib-show__noir.is-on { opacity: 1; pointer-events: auto; }
.bib-show__barre { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 999px; background: rgba(20,24,30,.78); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.bib-show.is-barre .bib-show__barre, .bib-show:hover .bib-show__barre:hover { opacity: 1; }
.bib-show__barre button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.bib-show__barre button:hover { background: rgba(255,255,255,.25); }
.bib-show__num { min-width: 70px; text-align: center; font: 600 14px/1 Inter, system-ui, sans-serif; color: #e6edf3; }
@media (hover: none) { .bib-show__barre { opacity: .85; } }