/* DJIL, feuille de style de l'application.
 *
 * Fond clair teinté de vert, vert du drapeau pour la structure, rouge en
 * touche rare. Des filets plutôt que des ombres, des tableaux quand il y a
 * des données, des libellés courts. Toutes les marges sont logiques
 * (inline-start / inline-end) : l'arabe retourne la page sans règle en plus.
 */
@import url("/fonts/polices.css");

:root {
  color-scheme: light;
  --fond: #F4F8F5;
  --surface: #FFFFFF;
  --surface-2: #EEF4F0;
  --surface-3: #E4EEE8;
  --ligne: #D8E4DC;
  --ligne-2: #E8F0EA;
  --encre: #0E281D;
  --texte: #30453A;
  --discret: #62776B;
  --v9: #07301F; --v8: #0A4430; --v7: #006233; --v6: #0B7A45; --v5: #1B9660; --v3: #9BD3B6; --v2: #CFEBDC; --v1: #E6F4EC;
  --r7: #A10D2A; --r6: #D21034; --r2: #F4C6D0; --r1: #FCEBEF;
  --a7: #8A5A0E; --a2: #F0DDB6; --a1: #FCF4E4;
  --b7: #1D5A86; --b2: #C9DDEC; --b1: #EAF2F8;
  --drapeau: linear-gradient(90deg, #006233 0%, #1B9660 86%, #fff 86%, #fff 87.5%, #D21034 87.5%);
  --f-titre: 'Bricolage Grotesque', 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-corps: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-ar: 'Noto Sans Arabic', 'Figtree', 'Segoe UI', Tahoma, sans-serif;
  --f-kufi: 'Reem Kufi', 'Noto Sans Arabic', sans-serif;
  --f-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --rayon: 9px;
  --rayon-petit: 6px;
  --largeur-laterale: 252px;
  --hauteur-entete: 64px;
  --ombre-flottante: 0 12px 32px rgba(7, 48, 31, .14), 0 2px 6px rgba(7, 48, 31, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--fond); color: var(--encre); font-family: var(--f-corps);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[dir="rtl"] body { font-family: var(--f-ar); font-size: 15.5px; }
img, video { max-width: 100%; }
a { color: var(--v6); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-titre); color: var(--v9); margin: 0; line-height: 1.2; text-wrap: balance; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { font-family: var(--f-ar); font-weight: 700; line-height: 1.45; }
h1 { font-size: 26px; font-weight: 700; letter-spacing: -.3px; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15.5px; font-weight: 700; }
p { margin: 0 0 10px; }
b, strong { font-weight: 650; color: var(--encre); }
:focus-visible { outline: 2px solid var(--v5); outline-offset: 2px; border-radius: 4px; }
.num, .tab { font-variant-numeric: tabular-nums; }
.discret { color: var(--discret); }
.petit { font-size: 13px; }
.mini { font-size: 12px; }
.gras { font-weight: 650; }
.pre { white-space: pre-wrap; }
.masque { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.lien-bouton { background: none; border: 0; padding: 0; color: var(--v6); cursor: pointer; font-weight: 600; }
.lien-bouton:hover { text-decoration: underline; }

/* ------------------------------------------------------------ marque */
.marque { display: flex; align-items: center; gap: 10px; color: var(--v9); text-decoration: none; }
.marque:hover { text-decoration: none; }
.marque svg { width: 30px; height: 30px; flex: none; }
.marque .nom { font-family: var(--f-titre); font-weight: 700; font-size: 21px; letter-spacing: .2px; line-height: 1; }
.marque .sep { width: 1.5px; height: 18px; background: var(--v2); }
.marque .ar { font-family: var(--f-kufi); font-weight: 700; font-size: 19px; color: var(--v6); line-height: 1; }
.marque .sous { display: block; font-family: var(--f-corps); font-size: 10.5px; font-weight: 600; color: var(--discret); letter-spacing: .3px; margin-top: 3px; }
[dir="rtl"] .marque .sous { font-family: var(--f-ar); letter-spacing: 0; }

.surtitre { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--v6); margin-bottom: 6px; }
.surtitre::before { content: ""; width: 6px; height: 6px; background: var(--r6); transform: rotate(45deg); flex: none; }
[dir="rtl"] .surtitre { letter-spacing: 0; text-transform: none; font-size: 12.5px; }

/* ------------------------------------------------------------ chargement */
#demarrage { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--fond); z-index: 100; }
#demarrage .marque svg { width: 46px; height: 46px; animation: tourne 2.4s linear infinite; }
@keyframes tourne { to { transform: rotate(45deg); } }
.ligne-chargement { display: block; height: 3px; width: 120px; margin: 18px auto; background: linear-gradient(90deg, transparent, var(--v5), transparent); background-size: 200% 100%; animation: glisse 1.1s linear infinite; border-radius: 2px; }
@keyframes glisse { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { #demarrage .marque svg, .ligne-chargement { animation: none; } }

/* ------------------------------------------------------------ coque */
.coque { display: grid; grid-template-columns: var(--largeur-laterale) minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(90deg, var(--surface-2) 0 calc(var(--largeur-laterale) - 1px), var(--ligne) calc(var(--largeur-laterale) - 1px) var(--largeur-laterale), transparent var(--largeur-laterale)); }
[dir="rtl"] .coque { background: linear-gradient(270deg, var(--surface-2) 0 calc(var(--largeur-laterale) - 1px), var(--ligne) calc(var(--largeur-laterale) - 1px) var(--largeur-laterale), transparent var(--largeur-laterale)); }
.laterale {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface-2);
  border-inline-end: 1px solid var(--ligne); display: flex; flex-direction: column; padding: 18px 14px 14px;
}
.laterale::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--drapeau); }
[dir="rtl"] .laterale::before { transform: scaleX(-1); }
.laterale .marque { padding: 8px 10px 18px; }
.nav-groupe { margin-top: 10px; }
.nav-titre { font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--discret); padding: 8px 12px 6px; }
[dir="rtl"] .nav-titre { letter-spacing: 0; font-size: 11.5px; }
.nav-lien {
  display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 7px; color: var(--texte);
  font-weight: 550; font-size: 14.5px; position: relative; text-decoration: none; margin-bottom: 1px;
}
.nav-lien svg { width: 19px; height: 19px; flex: none; color: var(--discret); }
.nav-lien:hover { background: var(--surface-3); text-decoration: none; }
.nav-lien.actif { background: var(--surface); color: var(--v9); box-shadow: inset 0 0 0 1px var(--ligne); }
.nav-lien.actif svg { color: var(--v6); }
.nav-lien.actif::before { content: ""; position: absolute; inset-inline-start: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--v6); }
[dir="rtl"] .nav-lien.actif::before { border-radius: 3px 0 0 3px; }
.nav-lien .compte { margin-inline-start: auto; }
.laterale-pied { margin-top: auto; padding: 14px 10px 4px; font-size: 11.5px; color: var(--discret); line-height: 1.45; border-top: 1px solid var(--ligne); }
.laterale-pied b { color: var(--v8); font-weight: 650; }

.zone-principale { min-width: 0; display: flex; flex-direction: column; }
.entete {
  position: sticky; top: 0; z-index: 20; height: var(--hauteur-entete); display: flex; align-items: center; gap: 14px;
  padding: 0 28px; background: rgba(244, 248, 245, .92); backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--ligne-2);
}
.entete .titre-page { font-family: var(--f-titre); font-size: 15px; font-weight: 650; color: var(--v9); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[dir="rtl"] .entete .titre-page { font-family: var(--f-ar); }
.entete .fil { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--discret); min-width: 0; }
.entete .fil a { color: var(--discret); }
.entete .actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.entete .marque-mobile { display: none; }
.bouton-icone {
  position: relative; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid transparent; background: none; cursor: pointer; color: var(--texte);
}
.bouton-icone:hover { background: var(--surface-3); }
.bouton-icone svg { width: 20px; height: 20px; }
.bouton-icone .compte { position: absolute; top: 3px; inset-inline-end: 2px; }
.langues { display: inline-flex; border: 1px solid var(--ligne); border-radius: 8px; overflow: hidden; background: var(--surface); }
.langues button { border: 0; background: none; padding: 6px 10px; font-size: 12.5px; font-weight: 650; cursor: pointer; color: var(--discret); }
.langues button + button { border-inline-start: 1px solid var(--ligne); }
.langues button.actif { background: var(--v1); color: var(--v8); }
.langues button[lang="ar"] { font-family: var(--f-ar); }
.moi-bouton { display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 4px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--surface); cursor: pointer; }
[dir="rtl"] .moi-bouton { padding: 4px 4px 4px 8px; }
.moi-bouton .qui { font-size: 13px; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.contenu { width: 100%; max-width: 1180px; margin: 0 auto; padding: 26px 28px 60px; }
.contenu.large { max-width: 1400px; }
.bandeau-demo { background: var(--a1); border-bottom: 1px solid var(--a2); color: var(--a7); font-size: 13px; padding: 7px 28px; display: flex; gap: 10px; align-items: center; }
.bandeau-demo svg { width: 16px; height: 16px; flex: none; }

/* Mobile : barre du bas */
.barre-bas { display: none; }

/* ------------------------------------------------------------ tête de page */
.tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.tete .gauche { min-width: 0; flex: 1 1 380px; }
.tete h1 { margin-bottom: 4px; }
.tete .desc { color: var(--discret); max-width: 70ch; margin: 0; }
.tete .droite { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------ blocs */
.bloc { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 20px 22px; }
.bloc + .bloc { margin-top: 16px; }
.bloc > h2, .bloc-tete h2 { font-size: 16px; }
.bloc-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -2px 0 14px; }
.bloc-tete .lien { font-size: 13.5px; font-weight: 600; }
.bloc.serre { padding: 14px 16px; }
.bloc.plat { background: var(--surface-2); border-color: var(--ligne-2); }
.bloc.alerte { background: var(--a1); border-color: var(--a2); }
.bloc.info { background: var(--b1); border-color: var(--b2); }
.bloc.succes { background: var(--v1); border-color: var(--v2); }
.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-principal { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.pile { display: flex; flex-direction: column; gap: 16px; }
.ligne { display: flex; align-items: center; gap: 10px; }
.ligne.espace { justify-content: space-between; }
.ligne.haut { align-items: flex-start; }
.ligne.env { flex-wrap: wrap; }
.sep-h { height: 1px; background: var(--ligne-2); margin: 16px 0; border: 0; }

/* chiffres clés */
.chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--surface); overflow: hidden; }
.chiffre { padding: 16px 18px; border-inline-start: 1px solid var(--ligne-2); }
.chiffre:first-child { border-inline-start: 0; }
.chiffre .valeur { font-family: var(--f-titre); font-size: 28px; font-weight: 700; color: var(--v9); font-variant-numeric: tabular-nums; line-height: 1.1; }
.chiffre .lib { font-size: 12.5px; color: var(--discret); margin-top: 3px; }
.chiffre .sous { font-size: 12px; color: var(--v6); font-weight: 600; margin-top: 6px; }

/* ------------------------------------------------------------ pastilles */
.pastille { display: inline-flex; align-items: center; gap: 6px; height: 23px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--surface-3); color: var(--texte); border: 1px solid transparent; }
.pastille::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.pastille.sans-point::before { display: none; }
.pastille.vert { background: var(--v1); color: var(--v7); border-color: var(--v2); }
.pastille.rouge { background: var(--r1); color: var(--r7); border-color: var(--r2); }
.pastille.ambre { background: var(--a1); color: var(--a7); border-color: var(--a2); }
.pastille.bleu { background: var(--b1); color: var(--b7); border-color: var(--b2); }
.pastille.gris { background: var(--surface-2); color: var(--discret); border-color: var(--ligne); }
.pastille.plein { background: var(--v7); color: #fff; }
.compte { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--r6); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.etiquette { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--ligne); font-size: 12px; color: var(--texte); white-space: nowrap; }

/* ------------------------------------------------------------ boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 15px;
  border-radius: 7px; border: 1px solid var(--ligne); background: var(--surface); color: var(--v9); font-weight: 600;
  font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--surface-2); border-color: #C6D6CC; text-decoration: none; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.principal { background: var(--v7); border-color: var(--v7); color: #fff; }
.btn.principal:hover { background: var(--v8); border-color: var(--v8); }
.btn.danger { color: var(--r7); border-color: var(--r2); }
.btn.danger:hover { background: var(--r1); }
.btn.discret { border-color: transparent; background: none; color: var(--v6); }
.btn.discret:hover { background: var(--v1); }
.btn.petit { height: 32px; padding: 0 11px; font-size: 13px; }
.btn.bloc-entier { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------ formulaires */
.champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.champ label, .champ .lib { font-size: 13px; font-weight: 650; color: var(--texte); }
.champ .aide { font-size: 12.5px; color: var(--discret); }
.champ .facultatif { font-weight: 500; color: var(--discret); }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="date"],
input[type="datetime-local"], input[type="search"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 14.5px; color: var(--encre); background: var(--surface); border: 1px solid #CCDAD1;
  border-radius: 7px; padding: 9px 11px; min-height: 40px; transition: border-color .12s, box-shadow .12s;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--v5); box-shadow: 0 0 0 3px rgba(27, 150, 96, .16); }
input::placeholder, textarea::placeholder { color: #93A59A; }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; margin-bottom: 10px; cursor: pointer; }
.case input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--v6); flex: none; }
.bascule { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--ligne-2); }
.bascule:last-child { border-bottom: 0; }
.bascule .txt { min-width: 0; }
.bascule .txt b { display: block; font-size: 14px; }
.bascule .txt span { font-size: 12.5px; color: var(--discret); }
.interrupteur { position: relative; width: 40px; height: 23px; flex: none; }
.interrupteur input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; z-index: 1; }
.interrupteur span { position: absolute; inset: 0; border-radius: 12px; background: #C9D6CE; transition: background .15s; }
.interrupteur span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.interrupteur input:checked + span { background: var(--v6); }
.interrupteur input:checked + span::after { transform: translateX(17px); }
[dir="rtl"] .interrupteur input:checked + span::after { transform: translateX(-17px); }
.erreur-champ { color: var(--r7); font-size: 13px; margin: -6px 0 12px; }
.choix-cartes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choix-carte { display: block; border: 1.5px solid var(--ligne); border-radius: var(--rayon); padding: 16px; cursor: pointer; background: var(--surface); text-align: start; }
.choix-carte:hover { border-color: var(--v3); }
.choix-carte.actif { border-color: var(--v6); background: var(--v1); }
.choix-carte b { display: block; font-size: 15px; margin-bottom: 4px; color: var(--v9); }
.choix-carte span { font-size: 13px; color: var(--discret); }
.segments { display: inline-flex; border: 1px solid var(--ligne); border-radius: 8px; background: var(--surface); padding: 3px; gap: 2px; flex-wrap: wrap; }
.segments button { border: 0; background: none; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--discret); cursor: pointer; }
.segments button.actif { background: var(--v1); color: var(--v8); }
.recherche { position: relative; }
.recherche svg { position: absolute; inset-inline-start: 11px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--discret); }
.recherche input { padding-inline-start: 36px; }
.filtres { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filtres .recherche { flex: 1 1 260px; }
.filtres select { width: auto; min-width: 170px; }

/* ------------------------------------------------------------ avatars */
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--v2); color: var(--v8); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; flex: none; position: relative; letter-spacing: .3px; }
.avatar.m { background: #DCE9F2; color: var(--b7); }
.avatar.g { background: var(--r1); color: var(--r7); }
.avatar.petit { width: 28px; height: 28px; font-size: 11px; }
.avatar.grand { width: 56px; height: 56px; font-size: 19px; }
.avatar.tres-grand { width: 76px; height: 76px; font-size: 25px; }
.avatar .en-ligne { position: absolute; bottom: 0; inset-inline-end: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--v5); box-shadow: 0 0 0 2px var(--surface); }
.personne { display: flex; align-items: center; gap: 10px; min-width: 0; }
.personne .qui { min-width: 0; }
.personne .qui b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.personne .qui span { display: block; font-size: 12.5px; color: var(--discret); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pile-avatars { display: flex; }
.pile-avatars .avatar { box-shadow: 0 0 0 2px var(--surface); }
.pile-avatars .avatar + .avatar { margin-inline-start: -8px; }

/* ------------------------------------------------------------ listes */
.liste { display: flex; flex-direction: column; }
.liste > .item { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--ligne-2); }
.liste > .item:last-child { border-bottom: 0; }
.liste > a.item { color: inherit; text-decoration: none; }
.liste > a.item:hover .item-titre { color: var(--v6); }
.item-corps { min-width: 0; flex: 1; }
.item-titre { font-weight: 650; font-size: 14.5px; color: var(--encre); }
.item-meta { font-size: 12.5px; color: var(--discret); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.item-fin { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.vide { text-align: center; padding: 38px 18px; color: var(--discret); }
.vide svg { width: 30px; height: 30px; color: var(--v3); margin-bottom: 8px; }
.vide b { display: block; color: var(--texte); margin-bottom: 4px; }

/* cartes de projet */
.projets { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.carte-projet { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 18px 18px 16px; color: inherit; text-decoration: none; transition: border-color .12s; }
.carte-projet:hover { border-color: #B9CFC1; text-decoration: none; }
.carte-projet .haut { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.carte-projet .benef { font-size: 12px; font-weight: 650; color: var(--v6); text-transform: uppercase; letter-spacing: .8px; }
[dir="rtl"] .carte-projet .benef { letter-spacing: 0; text-transform: none; }
.carte-projet h3 { font-size: 17px; margin-bottom: 6px; }
.carte-projet .resume { font-size: 14px; color: var(--texte); margin-bottom: 12px; flex: 1; }
.carte-projet .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.carte-projet .pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--ligne-2); padding-top: 12px; font-size: 12.5px; color: var(--discret); }
.jauge { height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; width: 70px; }
.jauge i { display: block; height: 100%; background: var(--v5); border-radius: 3px; }
.jauge.large { width: 100%; height: 7px; }

/* tableaux */
.tableau-conteneur { overflow-x: auto; border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--surface); }
table.tableau { width: 100%; border-collapse: collapse; font-size: 14px; }
.tableau th { text-align: start; font-size: 11.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--discret); background: var(--surface-2); padding: 10px 14px; border-bottom: 1px solid var(--ligne); white-space: nowrap; }
[dir="rtl"] .tableau th { letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.tableau td { padding: 11px 14px; border-bottom: 1px solid var(--ligne-2); vertical-align: middle; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau tr.cliquable { cursor: pointer; }
.tableau tr.cliquable:hover td { background: #F8FBF9; }
.tableau .num { text-align: end; }
dl.fiche { display: grid; grid-template-columns: minmax(110px, 34%) minmax(0, 1fr); margin: 0; }
dl.fiche dt, dl.fiche dd { padding: 9px 0; border-bottom: 1px solid var(--ligne-2); margin: 0; font-size: 14px; }
dl.fiche dt { color: var(--discret); padding-inline-end: 12px; }
dl.fiche dd { font-weight: 550; overflow-wrap: anywhere; }
dl.fiche dt:last-of-type, dl.fiche dd:last-of-type { border-bottom: 0; }

/* étapes (dossier mentor, cycle du stage) */
.etapes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); counter-reset: etape; }
.etape { position: relative; padding-top: 34px; font-size: 12.5px; color: var(--discret); text-align: center; padding-inline: 4px; }
.etape::before { counter-increment: etape; content: counter(etape); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--ligne); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: var(--discret); z-index: 1; }
.etape::after { content: ""; position: absolute; top: 12.5px; left: 0; right: 0; height: 1.5px; background: var(--ligne); }
.etape:first-child::after { left: 50%; }
.etape:last-child::after { right: 50%; }
[dir="rtl"] .etape:first-child::after { left: 0; right: 50%; }
[dir="rtl"] .etape:last-child::after { right: 0; left: 50%; }
.etape.fait { color: var(--v8); }
.etape.fait::before { content: "✓"; background: var(--v6); border-color: var(--v6); color: #fff; }
.etape.fait::after { background: var(--v5); }
.etape.courant { color: var(--v9); font-weight: 700; }
.etape.courant::before { border-color: var(--v6); color: var(--v7); box-shadow: 0 0 0 4px var(--v1); }

/* ------------------------------------------------------------ fil de rapports */
.rapport { border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 16px 18px; background: var(--surface); }
.rapport + .rapport { margin-top: 12px; }
.rapport .semaine { font-family: var(--f-titre); font-weight: 700; color: var(--v9); }
.rapport .rubrique { margin-top: 10px; }
.rapport .rubrique b { display: block; font-size: 11.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--discret); margin-bottom: 2px; }
[dir="rtl"] .rapport .rubrique b { letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.rapport .commentaire { margin-top: 12px; background: var(--v1); border-inline-start: 3px solid var(--v5); padding: 10px 12px; border-radius: 0 6px 6px 0; font-size: 14px; }
[dir="rtl"] .rapport .commentaire { border-radius: 6px 0 0 6px; }
.rapport .blocage { background: var(--a1); border-inline-start: 3px solid #D9A441; padding: 8px 12px; border-radius: 0 6px 6px 0; }

/* ------------------------------------------------------------ agenda */
.agenda-jour { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--ligne-2); }
.agenda-jour:last-child { border-bottom: 0; }
.date-bloc { text-align: center; border: 1px solid var(--ligne); border-radius: 8px; overflow: hidden; background: var(--surface); height: fit-content; }
.date-bloc .m { background: var(--v7); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 0; }
[dir="rtl"] .date-bloc .m { letter-spacing: 0; }
.date-bloc .j { font-family: var(--f-titre); font-size: 24px; font-weight: 700; color: var(--v9); line-height: 1.15; padding-top: 4px; }
.date-bloc .s { font-size: 11px; color: var(--discret); padding-bottom: 5px; }
.creneau { display: flex; gap: 14px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--ligne-2); background: var(--surface); color: inherit; text-decoration: none; }
.creneau + .creneau { margin-top: 8px; }
.creneau:hover { border-color: var(--v3); text-decoration: none; }
.creneau .h { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--v8); min-width: 48px; }
.creneau.annulee { opacity: .6; }
.creneau.annulee .t { text-decoration: line-through; }

/* ------------------------------------------------------------ messagerie */
.messagerie { display: grid; grid-template-columns: 320px minmax(0, 1fr); border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--surface); height: calc(100vh - var(--hauteur-entete) - 120px); min-height: 480px; overflow: hidden; }
.conv-liste { border-inline-end: 1px solid var(--ligne); overflow-y: auto; background: #FBFDFC; }
.conv-liste .tete-liste { padding: 14px 16px; border-bottom: 1px solid var(--ligne-2); display: flex; justify-content: space-between; align-items: center; }
.conv { display: flex; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--ligne-2); cursor: pointer; color: inherit; text-decoration: none; }
.conv:hover { background: var(--surface-2); text-decoration: none; }
.conv.actif { background: var(--v1); }
.conv .corps { min-width: 0; flex: 1; }
.conv .l1 { display: flex; justify-content: space-between; gap: 8px; }
.conv .l1 b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .l1 time { font-size: 11.5px; color: var(--discret); flex: none; }
.conv .l2 { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--discret); }
.conv .l2 span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv.non-lu .l2 span { color: var(--encre); font-weight: 600; }
.escouade-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--v7); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.escouade-ic svg { width: 18px; height: 18px; }
.fil-discussion { display: flex; flex-direction: column; min-height: 0; }
.fil-tete { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--ligne-2); }
.fil-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 4px; background: linear-gradient(180deg, #FBFDFC, #F6FAF7); }
.jour-sep { align-self: center; font-size: 11.5px; color: var(--discret); background: var(--surface); border: 1px solid var(--ligne-2); padding: 2px 10px; border-radius: 999px; margin: 10px 0; }
.bulle { max-width: min(76%, 560px); padding: 8px 12px 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--ligne-2); align-self: flex-start; font-size: 14.5px; position: relative; overflow-wrap: anywhere; }
.bulle.moi { align-self: flex-end; background: var(--v1); border-color: var(--v2); }
.bulle .auteur { font-size: 12px; font-weight: 700; color: var(--v6); margin-bottom: 1px; }
.bulle .heure { font-size: 10.5px; color: var(--discret); text-align: end; margin-top: 2px; font-variant-numeric: tabular-nums; }
.bulle.suite { margin-top: -2px; }
.saisie-message { display: flex; gap: 10px; align-items: flex-end; padding: 12px 14px; border-top: 1px solid var(--ligne-2); background: var(--surface); }
.saisie-message textarea { min-height: 42px; max-height: 160px; resize: none; }
.saisie-message .btn { height: 42px; }
.ecrit { font-size: 12px; color: var(--discret); padding: 0 18px 6px; height: 18px; }

/* ------------------------------------------------------------ visio */
.salle { background: #0C1E16; border-radius: 12px; padding: 12px; }
.grille-pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.vignette { position: relative; aspect-ratio: 16 / 10; width: 100%; background: #15302A; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; max-width: 100%; }
.vignette video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vignette video.cachee { opacity: 0; }
.vignette .avatar { width: 74px; height: 74px; font-size: 24px; background: #23463B; color: #CFEBDC; }
.vignette .nom { position: absolute; bottom: 8px; inset-inline-start: 8px; background: rgba(8, 22, 16, .72); color: #fff; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 6px; display: flex; gap: 6px; align-items: center; }
.vignette .nom svg { width: 14px; height: 14px; }
.vignette.parle { box-shadow: 0 0 0 3px var(--v5); }
.vignette .main { position: absolute; top: 8px; inset-inline-end: 8px; background: #F5C542; color: #3B2A00; border-radius: 6px; padding: 3px 6px; font-size: 12px; font-weight: 700; }
.commandes { display: flex; justify-content: center; gap: 10px; padding: 14px 0 4px; flex-wrap: wrap; }
.commande { width: 50px; height: 50px; border-radius: 50%; border: 0; background: #23463B; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.commande svg { width: 22px; height: 22px; }
.commande.coupe { background: #F2F5F3; color: #A10D2A; }
.commande.actif { background: var(--v5); }
.commande.raccrocher { background: var(--r6); width: 64px; border-radius: 25px; }
.salle-info { display: flex; justify-content: space-between; color: #A9C9B8; font-size: 12.5px; padding: 0 4px 10px; }
.salle-discussion { max-height: 260px; overflow-y: auto; font-size: 13.5px; }
.salle-discussion .l { padding: 5px 0; border-bottom: 1px solid var(--ligne-2); }
.salle-discussion .l b { margin-inline-end: 6px; }

/* ------------------------------------------------------------ notifications */
.notif { display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--ligne-2); color: inherit; text-decoration: none; }
.notif:hover { background: var(--surface-2); text-decoration: none; }
.notif.non-lue { background: #F4FAF6; }
.notif.non-lue .t::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--r6); margin-inline-start: 7px; vertical-align: middle; }
.notif .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--v1); color: var(--v6); display: flex; align-items: center; justify-content: center; flex: none; }
.notif .ic svg { width: 18px; height: 18px; }
.notif .t { font-weight: 650; font-size: 14px; }
.notif .c { font-size: 13.5px; color: var(--texte); }
.notif time { font-size: 12px; color: var(--discret); }
.panneau-notifs { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; width: 380px; max-width: calc(100vw - 24px); max-height: 70vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--ligne); border-radius: 12px; box-shadow: var(--ombre-flottante); z-index: 40; }
.panneau-notifs .tete-panneau { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--ligne); position: sticky; top: 0; background: var(--surface); }

/* ------------------------------------------------------------ parcours */
.module { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--surface); color: inherit; text-decoration: none; }
.module + .module { margin-top: 10px; }
.module:hover { border-color: var(--v3); text-decoration: none; }
.module .no { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-family: var(--f-titre); font-weight: 700; font-size: 17px; color: var(--v8); }
.module.fait .no { background: var(--v7); color: #fff; }

/* ------------------------------------------------------------ idées */
.idee { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--ligne-2); }
.idee:last-child { border-bottom: 0; }
.vote { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 56px; height: 62px; border: 1px solid var(--ligne); border-radius: 9px; background: var(--surface); cursor: pointer; }
.vote svg { width: 18px; height: 18px; color: var(--discret); }
.vote b { font-family: var(--f-titre); font-size: 17px; font-variant-numeric: tabular-nums; }
.vote.actif { border-color: var(--v6); background: var(--v1); }
.vote.actif svg { color: var(--v6); }

/* ------------------------------------------------------------ modale, fugace */
.voile { position: fixed; inset: 0; background: rgba(7, 32, 22, .38); z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; overflow-y: auto; }
.modale { width: 100%; max-width: 560px; background: var(--surface); border-radius: 12px; box-shadow: var(--ombre-flottante); border: 1px solid var(--ligne); }
.modale.large { max-width: 760px; }
.modale-tete { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--ligne-2); }
.modale-corps { padding: 18px 20px; }
.modale-pied { padding: 14px 20px; border-top: 1px solid var(--ligne-2); display: flex; justify-content: flex-end; gap: 8px; background: var(--surface-2); border-radius: 0 0 12px 12px; }
#fugaces { position: fixed; bottom: 20px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
[dir="rtl"] #fugaces { transform: translateX(50%); }
.fugace { background: var(--v9); color: #fff; padding: 10px 16px; border-radius: 9px; font-size: 14px; box-shadow: var(--ombre-flottante); max-width: 90vw; display: flex; gap: 8px; align-items: center; }
.fugace.erreur { background: var(--r7); }
.fugace svg { width: 17px; height: 17px; flex: none; }
.menu-flottant { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 230px; background: var(--surface); border: 1px solid var(--ligne); border-radius: 10px; box-shadow: var(--ombre-flottante); z-index: 40; padding: 6px; }
.menu-flottant a, .menu-flottant button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 7px; border: 0; background: none; color: var(--texte); cursor: pointer; font-size: 14px; text-align: start; text-decoration: none; }
.menu-flottant a:hover, .menu-flottant button:hover { background: var(--surface-2); text-decoration: none; }
.menu-flottant svg { width: 17px; height: 17px; color: var(--discret); }
.menu-flottant .qui { padding: 10px; border-bottom: 1px solid var(--ligne-2); margin-bottom: 4px; }
.relatif { position: relative; }

/* ------------------------------------------------------------ onglets */
.onglets { display: flex; gap: 2px; border-bottom: 1px solid var(--ligne); margin-bottom: 18px; overflow-x: auto; }
.onglets button, .onglets a { border: 0; background: none; padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--discret); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; display: flex; gap: 7px; align-items: center; }
.onglets .actif { color: var(--v8); border-bottom-color: var(--v6); }

/* ------------------------------------------------------------ authentification */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--surface); }
.auth-visuel { position: relative; overflow: hidden; background:
  radial-gradient(560px 460px at 82% 30%, rgba(27, 150, 96, .14), transparent 70%),
  radial-gradient(460px 380px at 0% 105%, rgba(210, 16, 52, .07), transparent 70%),
  linear-gradient(180deg, #FFFFFF 0%, #F0F7F3 100%); padding: 40px 48px; display: flex; flex-direction: column; border-inline-end: 1px solid var(--ligne-2); }
.auth-visuel::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 5px; background: var(--drapeau); }
.auth-visuel .motif { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 120 120'%3E%3Cpath d='M100 50L85.36 64.64L85.36 85.36L64.64 85.36L50 100L35.36 85.36L14.64 85.36L14.64 64.64L0 50L14.64 35.36L14.64 14.64L35.36 14.64L50 0L64.64 14.64L85.36 14.64L85.36 35.36Z' fill='none' stroke='%23006233' stroke-opacity='.08' stroke-width='2.2'/%3E%3C/svg%3E"); background-size: 56px 56px; -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 62%); mask-image: linear-gradient(200deg, #000 0%, transparent 62%); }
.auth-visuel > * { position: relative; }
.auth-etoile { width: min(340px, 70%); aspect-ratio: 1; margin: 40px auto 24px; position: relative; }
.auth-etoile .etoile-fond, .auth-etoile svg { width: 100%; height: 100%; display: block; }
.auth-etoile .mot { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.auth-etoile .mot .ar { font-family: var(--f-kufi); font-weight: 700; font-size: clamp(54px, 7vw, 84px); line-height: 1.1; color: var(--v7); }
.auth-etoile .mot .trait { width: 64px; height: 4px; border-radius: 2px; background: var(--drapeau); margin: 8px 0 10px; }
.auth-etoile .mot .lat { font-family: var(--f-titre); font-weight: 700; font-size: clamp(30px, 4vw, 44px); color: var(--v8); line-height: 1; }
.auth-visuel h2 { font-size: 24px; max-width: 460px; margin: 0 auto 10px; text-align: center; }
.auth-visuel .accroche { text-align: center; color: var(--texte); max-width: 470px; margin: 0 auto; }
.auth-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px auto 0; max-width: 560px; width: 100%; }
.auth-points div { border-top: 2px solid var(--v2); padding-top: 10px; font-size: 13px; color: var(--texte); }
.auth-points b { display: block; font-family: var(--f-titre); color: var(--v9); font-size: 20px; font-variant-numeric: tabular-nums; }
.auth-visuel .pied { margin-top: auto; padding-top: 24px; font-size: 12px; color: var(--discret); text-align: center; }
.auth-panneau { padding: 40px 48px; display: flex; flex-direction: column; overflow-y: auto; max-height: 100vh; }
.auth-panneau .haut { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.auth-form { width: 100%; max-width: 460px; margin: auto; padding: 12px 0; }
.auth-form h1 { font-size: 28px; margin-bottom: 6px; }
.auth-form .desc { color: var(--discret); margin-bottom: 24px; }
.essai { margin-top: 26px; border-top: 1px solid var(--ligne-2); padding-top: 18px; }
.essai .lib { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--discret); margin-bottom: 10px; }
[dir="rtl"] .essai .lib { letter-spacing: 0; text-transform: none; }
.essai .btns .btn { flex: 1 1 120px; }
.etapes-inscription { display: flex; gap: 6px; margin-bottom: 22px; }
.etapes-inscription i { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-3); }
.etapes-inscription i.fait { background: var(--v5); }

/* page publique (vérification, textes légaux) */
.publique { min-height: 100vh; background: var(--fond); }
.publique-tete { background: var(--surface); border-bottom: 1px solid var(--ligne); position: relative; }
.publique-tete::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--drapeau); }
.publique-tete .dedans { max-width: 920px; margin: 0 auto; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.publique-corps { max-width: 920px; margin: 0 auto; padding: 32px 24px 60px; }
.texte-legal { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 34px 40px; }
.texte-legal h1 { font-size: 28px; margin-bottom: 6px; }
.texte-legal h2 { font-size: 17px; margin: 26px 0 8px; }
.texte-legal p, .texte-legal li { color: var(--texte); max-width: 76ch; }
.texte-legal ul { padding-inline-start: 20px; }
.texte-legal .maj { color: var(--discret); font-size: 13px; margin-bottom: 20px; }
.certificat { background: var(--surface); border: 1px solid var(--ligne); border-radius: 12px; overflow: hidden; }
.certificat .bande { padding: 16px 22px; display: flex; align-items: center; gap: 12px; }
.certificat .bande.ok { background: var(--v1); color: var(--v8); border-bottom: 1px solid var(--v2); }
.certificat .bande.ko { background: var(--r1); color: var(--r7); border-bottom: 1px solid var(--r2); }
.certificat .bande svg { width: 26px; height: 26px; }

/* installation */
.feuille-install { position: fixed; bottom: 16px; inset-inline-end: 16px; z-index: 50; width: 360px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--ligne); border-radius: 12px; box-shadow: var(--ombre-flottante); padding: 16px; display: flex; gap: 14px; }
.feuille-install img { width: 48px; height: 48px; border-radius: 10px; flex: none; }

/* ------------------------------------------------------------ mobile */
@media (max-width: 1100px) {
  .g-principal { grid-template-columns: minmax(0, 1fr); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chiffre:nth-child(3) { border-inline-start: 0; }
  .chiffre:nth-child(n+3) { border-top: 1px solid var(--ligne-2); }
}
@media (max-width: 900px) {
  :root { --hauteur-entete: 56px; }
  .coque { grid-template-columns: minmax(0, 1fr); background: none !important; }
  .laterale { display: none; }
  .laterale.ouverte { display: flex; position: fixed; inset-block: 0; inset-inline-start: 0; width: 86vw; max-width: 320px; z-index: 70; box-shadow: var(--ombre-flottante); }
  .voile-tiroir { position: fixed; inset: 0; background: rgba(7, 32, 22, .38); z-index: 65; }
  .entete { padding: 0 12px; gap: 8px; }
  .entete .marque-mobile { display: flex; }
  .entete .marque-mobile svg { width: 26px; height: 26px; }
  .entete .fil, .entete .titre-page, .moi-bouton .qui { display: none; }
  .entete .langues button { padding: 6px 8px; }
  .contenu { padding: 18px 16px 96px; }
  .bandeau-demo { padding: 7px 16px; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 22px; }
  .tete { margin-bottom: 16px; }
  .tete .droite { width: 100%; }
  .barre-bas {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--ligne); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    backdrop-filter: blur(8px);
  }
  .barre-bas a, .barre-bas button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--discret); text-decoration: none; position: relative; border: 0; background: none; padding: 4px 0; cursor: pointer; }
  .barre-bas svg { width: 22px; height: 22px; }
  .barre-bas .actif { color: var(--v7); }
  .barre-bas .compte { position: absolute; top: 0; inset-inline-start: 55%; }
  .messagerie { grid-template-columns: minmax(0, 1fr); height: calc(100vh - var(--hauteur-entete) - 150px); }
  .messagerie.sur-fil .conv-liste { display: none; }
  .messagerie:not(.sur-fil) .fil-discussion { display: none; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-visuel { padding: 22px 16px 26px; border-inline-end: 0; border-bottom: 1px solid var(--ligne-2); }
  .auth-etoile { width: 170px; margin: 18px auto 10px; }
  .auth-etoile .mot .ar { font-size: 44px; }
  .auth-etoile .mot .lat { font-size: 24px; }
  .auth-visuel h2 { font-size: 19px; }
  .auth-points, .auth-visuel .pied { display: none; }
  .auth-panneau { padding: 20px 16px 40px; max-height: none; }
  .choix-cartes { grid-template-columns: 1fr; }
  .etapes { grid-auto-flow: row; grid-auto-columns: auto; }
  .etape { padding: 0 0 12px 36px; text-align: start; min-height: 32px; }
  [dir="rtl"] .etape { padding: 0 36px 12px 0; }
  .etape::before { left: 0; transform: none; }
  [dir="rtl"] .etape::before { left: auto; right: 0; }
  .etape::after { display: none; }
  .texte-legal { padding: 22px 18px; }
  .agenda-jour { grid-template-columns: 58px minmax(0, 1fr); gap: 10px; }
  .panneau-notifs { position: fixed; top: 60px; inset-inline: 12px; width: auto; }
  .feuille-install { bottom: 84px; inset-inline: 12px; width: auto; }
  dl.fiche { grid-template-columns: minmax(0, 1fr); }
  dl.fiche dt { border-bottom: 0; padding-bottom: 0; }
  .grille-pairs { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .projets { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .laterale, .entete, .barre-bas, .bandeau-demo, .btn, .feuille-install { display: none !important; }
  .coque { display: block; }
  body { background: #fff; }
}

.retour-lien { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.retour-lien svg { width: 16px; height: 16px; }
.apercu-visio { width: min(440px, 100%); }
.vignette .en-ligne { display: none; }
.g-principal.en-salle { grid-template-columns: minmax(0, 1fr); }
.en-salle .grille-pairs { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
#salle-active { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 900px) { #salle-active { grid-template-columns: minmax(0, 1fr) !important; } }
.vers-le-haut { transform: rotate(180deg); }
.liste > .item .item-fin.btns { flex-wrap: wrap; justify-content: flex-end; }

.bandeau-test { display: flex; align-items: flex-start; gap: 10px; padding: 8px 28px; font-size: 13px; line-height: 1.45;
  background: var(--b1); color: var(--b7); border-bottom: 1px solid var(--b2); }
.bandeau-test p { margin: 0; flex: 1; min-width: 0; }
.bandeau-test svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.bandeau-test a { color: var(--b7); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
@media (max-width: 900px) { .bandeau-test { padding: 7px 16px; font-size: 12px; gap: 8px; } .bandeau-test svg { width: 14px; height: 14px; } }
