/* IMMO-FORMATION — une seule feuille, un seul jeu de variables.
   Espacements : multiples de 4 px. Une seule famille de police. Couleurs de sens fixes :
   rouge = erreur/danger, orange = avertissement, vert = succès, bleu = information/lien. */

:root {
  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --t-petit: 14px;
  --t-base: 16px;
  --t-moyen: 20px;
  --t-grand: 28px;
  --t-titre: 44px;

  --encre: #0f2740;
  --encre-survol: #1a3a5e;
  --texte: #17212b;
  --texte-doux: #4b5866;
  --fond: #ffffff;
  --fond-doux: #f4f6f8;
  --fond-encre-doux: #e8eef5;
  --bord: #d5dbe1;
  --bord-champ: #6f7c89;
  --lien: #1f4fd1;
  --focus: #1f4fd1;

  --succes: #146c2e;
  --succes-fond: #eaf6ee;
  --erreur: #b3261e;
  --erreur-fond: #fdeeed;
  --avert: #8a4600;
  --avert-fond: #fff4e5;
  --info: #1f4fd1;
  --info-fond: #edf2fd;
  --erreur-texte: #7a1a14;
  --succes-texte: #0e4a20;
  --info-texte: #173a99;
  --avert-bord: #e9b877;
  --avert-bord-doux: #f0d3ad;
  --texte-sur-encre: #d6e0ec;
  --blanc: #ffffff;
  --noir: #000000;
  --haut-collant: 88px;
  --mesure: 60ch;

  --e1: 4px; --e2: 8px; --e3: 12px; --e4: 16px; --e5: 24px; --e6: 32px; --e7: 48px; --e8: 64px; --e9: 96px;
  --rayon: 8px;
  --rayon-grand: 12px;
  --largeur: 1200px;
  --ombre: 0 1px 2px rgba(15, 39, 64, .06), 0 4px 16px rgba(15, 39, 64, .06);
  --ombre-forte: 0 8px 32px rgba(15, 39, 64, .24);
  --place-assistant: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--police); font-size: var(--t-base); line-height: 1.6; color: var(--texte);
  background: var(--fond); font-variant-numeric: normal;
}
img, video { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; color: var(--encre); margin: 0 0 var(--e4); letter-spacing: -0.01em; }
h1 { font-size: var(--t-grand); font-weight: 700; }
h2 { font-size: var(--t-moyen); font-weight: 700; margin-top: var(--e7); }
h3 { font-size: var(--t-base); font-weight: 700; }
p { margin: 0 0 var(--e4); }
a { color: var(--lien); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }
.nombre, .num, .chiffre, .carte-prix, .boite-prix, progress { font-variant-numeric: tabular-nums; }
.lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: var(--e4); top: -64px; background: var(--encre); color: var(--blanc); padding: var(--e2) var(--e4); z-index: 10; border-radius: var(--rayon); }
.evitement:focus { top: var(--e2); }
[hidden] { display: none !important; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--e5); }
.conteneur.etroit { max-width: 760px; }
main > .conteneur:first-child, main > .fil + .conteneur { padding-top: var(--e6); }
main { padding-bottom: var(--e8); min-height: 60vh; }

/* ---------- Bandeaux ---------- */

/* ---------- En-tête ---------- */
.entete { border-bottom: 1px solid var(--bord); background: var(--fond); position: sticky; top: 0; z-index: 5; }
.entete-interieur { max-width: var(--largeur); margin: 0 auto; padding: var(--e3) var(--e5); display: flex; align-items: center; justify-content: space-between; gap: var(--e4); flex-wrap: wrap; }
.marque { font-weight: 800; font-size: var(--t-moyen); letter-spacing: .04em; color: var(--encre); text-decoration: none; white-space: nowrap; }
.marque span { color: var(--texte-doux); }
.menu { display: flex; align-items: center; gap: var(--e1); flex-wrap: wrap; }
.menu a:not(.bouton) { color: var(--texte); text-decoration: none; padding: var(--e2) var(--e3); border-radius: var(--rayon); font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.menu a:not(.bouton):hover { background: var(--fond-doux); }
.menu a[aria-current="page"]:not(.bouton) { color: var(--encre); box-shadow: inset 0 -3px 0 var(--encre); border-radius: 0; font-weight: 700; }
.menu .bouton { margin-left: var(--e2); }
.menu-bouton { font: inherit; font-weight: 600; min-height: 44px; min-width: 44px; padding: var(--e2) var(--e4); border: 1px solid var(--bord-champ); background: var(--fond); color: var(--encre); border-radius: var(--rayon); cursor: pointer; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--e2); font: inherit; font-weight: 600; line-height: 1.2;
  min-height: 44px; padding: var(--e3) var(--e5); border-radius: var(--rayon); border: 2px solid transparent; cursor: pointer;
  text-decoration: none; text-align: center; transition: background-color .15s, border-color .15s, color .15s;
}
.bouton-principal { background: var(--encre); color: var(--blanc); }
.bouton-principal:hover { background: var(--encre-survol); }
.bouton-secondaire { background: var(--fond); color: var(--encre); border-color: var(--encre); }
.bouton-secondaire:hover { background: var(--fond-encre-doux); }
.bouton-tertiaire { background: none; color: var(--lien); text-decoration: underline; padding-left: var(--e3); padding-right: var(--e3); }
.bouton-danger { background: var(--fond); color: var(--erreur); border-color: var(--erreur); }
.bouton-danger:hover { background: var(--erreur-fond); }
.bouton-clair { background: var(--blanc); color: var(--encre); }
.bouton-clair:hover { background: var(--fond-encre-doux); }
.bouton-petit { min-height: 36px; padding: var(--e2) var(--e4); font-size: var(--t-petit); }
.bouton-grand { min-height: 52px; padding: var(--e4) var(--e6); font-size: var(--t-base); }
.bouton-large { width: 100%; }
.bouton[disabled], .bouton[aria-disabled="true"], .bouton.envoi-en-cours { opacity: .6; cursor: progress; }
.bouton:active { transform: translateY(1px); }
.bouton-icone { font: inherit; font-size: var(--t-petit); font-weight: 600; padding: 0 var(--e2); min-width: 36px; min-height: 36px; border: 1px solid var(--bord-champ); background: var(--fond); color: var(--encre); border-radius: var(--rayon); cursor: pointer; }
.bouton-icone[disabled] { opacity: .35; cursor: not-allowed; }
.bouton-lien { font: inherit; background: none; border: 0; color: var(--lien); text-decoration: underline; cursor: pointer; padding: var(--e1); min-height: 32px; }
.bouton-lien-danger { color: var(--erreur); }
.heros .bouton-clair:focus-visible, .heros a:focus-visible { outline-color: var(--blanc); }
.actions-ligne { display: flex; flex-wrap: wrap; gap: var(--e3); align-items: center; margin-top: var(--e5); }

/* ---------- Étiquettes et statuts ---------- */
.etiquette { display: inline-block; font-size: var(--t-petit); font-weight: 600; line-height: 1.7; padding: 0 var(--e2); border-radius: 999px; border: 1px solid var(--bord-champ); color: var(--encre); background: var(--fond); }
.etiquette-ch, .etiquette-fr, .etiquette-chfr { border-color: var(--encre); }
.etiquette-offerte { border-color: var(--info); color: var(--info-texte); background: var(--info-fond); }
.statut { font-size: var(--t-petit); font-weight: 600; white-space: nowrap; }
.statut-publiee, .statut-paye { color: var(--succes); }
.statut-brouillon { color: var(--texte-doux); }
.statut-rembourse, .statut-attente, .statut-conteste { color: var(--avert); }
.verrou { font-size: var(--t-petit); color: var(--texte-doux); white-space: nowrap; }

/* ---------- Alertes ---------- */
.alerte { border-radius: var(--rayon); padding: var(--e3) var(--e4); margin: 0 0 var(--e5); border: 1px solid; }
.alerte-erreur { background: var(--erreur-fond); border-color: var(--erreur); color: var(--erreur-texte); }
.alerte-succes { background: var(--succes-fond); border-color: var(--succes); color: var(--succes-texte); }
.alerte-info { background: var(--info-fond); border-color: var(--info); color: var(--info-texte); }

/* ---------- Héros (accueil) ---------- */
.heros { background: var(--encre); color: var(--blanc); }
.heros-interieur { max-width: var(--largeur); margin: 0 auto; padding: var(--e9) var(--e5) var(--e8); }
.heros h1 { color: var(--blanc); font-size: var(--t-titre); max-width: 18ch; line-height: 1.1; margin-bottom: var(--e5); }
.heros-texte { font-size: var(--t-moyen); max-width: var(--mesure); color: var(--texte-sur-encre); margin-bottom: var(--e6); }
.heros-actions { display: flex; flex-wrap: wrap; gap: var(--e3); }
.heros-note { margin-top: var(--e5); color: var(--texte-sur-encre); font-size: var(--t-petit); }

/* ---------- Deux droits ---------- */
.section-droits { padding-top: var(--e8); }
.section-droits h2 { margin-top: 0; }
.deux-droits { display: grid; grid-template-columns: 1fr 1fr; gap: var(--e5); }
.entree-droit {
  display: flex; flex-direction: column; gap: var(--e2); padding: var(--e6); border: 1px solid var(--bord); border-radius: var(--rayon-grand);
  text-decoration: none; color: var(--texte); background: var(--fond); box-shadow: var(--ombre); transition: border-color .15s, transform .15s;
}
.entree-droit:hover { border-color: var(--encre); }
.entree-pays { font-size: var(--t-petit); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-doux); }
.entree-titre { font-size: var(--t-grand); font-weight: 700; color: var(--encre); line-height: 1.2; }
.entree-texte { color: var(--texte-doux); }
.entree-appel { margin-top: auto; padding-top: var(--e3); font-weight: 700; color: var(--lien); }

/* ---------- Cartes formation ---------- */
.entete-section { display: flex; justify-content: space-between; align-items: baseline; gap: var(--e4); margin-top: var(--e8); margin-bottom: var(--e4); flex-wrap: wrap; }
.entete-section h2 { margin: 0; }
.grille-formations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--e5); }
.carte-formation { display: flex; }
.carte-lien {
  display: flex; flex-direction: column; gap: var(--e3); width: 100%; padding: var(--e5); border: 1px solid var(--bord); border-radius: var(--rayon-grand);
  text-decoration: none; color: var(--texte); background: var(--fond); box-shadow: var(--ombre); transition: border-color .15s;
}
.carte-lien:hover { border-color: var(--encre); }
.carte-lien h3 { font-size: var(--t-moyen); margin: 0; }
.carte-haut { display: flex; justify-content: space-between; align-items: center; gap: var(--e2); flex-wrap: wrap; }
.carte-meta { font-size: var(--t-petit); color: var(--texte-doux); }
.carte-accroche { color: var(--texte-doux); margin: 0; }
.carte-bas { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--e3); border-top: 1px solid var(--bord); }
.carte-prix { font-size: var(--t-moyen); font-weight: 700; color: var(--encre); }
.carte-lecons { font-size: var(--t-petit); color: var(--texte-doux); }
.carte-appel { font-weight: 700; color: var(--lien); }

.bande-douce { background: var(--fond-doux); margin-top: var(--e8); padding: var(--e7) 0; }
.trois-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--e6); }
.trois-points h3 { font-size: var(--t-moyen); }
.trois-points p { color: var(--texte-doux); margin: 0; }
.section-auteur { padding-top: var(--e7); }
.appel-final { text-align: center; padding-top: var(--e7); }
.appel-final h2 { margin-top: 0; font-size: var(--t-grand); }

/* ---------- Catalogue ---------- */
.onglets-droit { display: flex; gap: var(--e2); flex-wrap: wrap; margin-bottom: var(--e5); }
.onglets-droit a { padding: var(--e2) var(--e5); min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--bord-champ); color: var(--encre); text-decoration: none; font-weight: 600; }
.onglets-droit a[aria-current="page"] { background: var(--encre); color: var(--blanc); border-color: var(--encre); }
.filtres { display: flex; gap: var(--e4); flex-wrap: wrap; align-items: flex-end; margin-bottom: var(--e4); }
.resultats-entete { display: flex; gap: var(--e4); align-items: center; flex-wrap: wrap; margin-bottom: var(--e5); }
.compteur { color: var(--texte-doux); margin: 0; }
.filtres-actifs { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--e2); flex-wrap: wrap; }
.filtres-actifs a { display: inline-flex; align-items: center; gap: var(--e1); min-height: 32px; padding: var(--e1) var(--e3); border-radius: 999px; background: var(--fond-encre-doux); color: var(--encre); text-decoration: none; font-size: var(--t-petit); font-weight: 600; }
.filtres-actifs a.tout-effacer { background: none; text-decoration: underline; color: var(--lien); }
.js .sans-js { display: none; }
.vide-utile { border: 1px dashed var(--bord-champ); border-radius: var(--rayon-grand); padding: var(--e6); text-align: center; }

/* ---------- Fil d'Ariane ---------- */
.fil { font-size: var(--t-petit); color: var(--texte-doux); padding-top: var(--e4); display: flex; gap: var(--e2); flex-wrap: wrap; }
.fil a { color: var(--texte-doux); }
.fil [aria-current] { color: var(--texte); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }

/* ---------- Fiche formation ---------- */
.fiche { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "entete achat" "corps achat"; grid-template-rows: auto 1fr; column-gap: var(--e7); align-items: start; padding-top: var(--e5); }
.fiche h1 { font-size: var(--t-titre); margin-top: var(--e3); line-height: 1.1; }
.fiche-accroche { font-size: var(--t-moyen); color: var(--texte-doux); max-width: var(--mesure); }
.fiche-faits { list-style: none; padding: 0; margin: var(--e5) 0 0; display: flex; flex-wrap: wrap; gap: var(--e2) var(--e6); }
.fiche-faits li { display: flex; flex-direction: column; font-weight: 600; }
.fait-libelle { font-size: var(--t-petit); color: var(--texte-doux); font-weight: 400; }
.texte-riche { max-width: var(--mesure); }
.texte-riche h3 { font-size: var(--t-moyen); margin-top: var(--e6); }
.texte-riche ul, .texte-riche ol { padding-left: var(--e5); }
.texte-riche li + li { margin-top: var(--e1); }
.programme { list-style: none; padding: 0; margin: 0; border: 1px solid var(--bord); border-radius: var(--rayon-grand); }
.programme li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: var(--e3); align-items: center; padding: var(--e3) var(--e4); border-top: 1px solid var(--bord); }
.programme li:first-child { border-top: 0; }
.programme-num { font-weight: 700; color: var(--texte-doux); font-variant-numeric: tabular-nums; }
.programme-etat { display: flex; gap: var(--e3); align-items: center; }
.programme-duree { font-size: var(--t-petit); color: var(--texte-doux); font-variant-numeric: tabular-nums; }
/* Fichiers d'une formation entière (e-book, simulateur) : fiche, sommaire d'une leçon. */
.fichiers-formation { list-style: none; margin: 0; padding: 0; border: 1px solid var(--bord); border-radius: var(--rayon-grand); }
/* Même disposition pour chaque ligne : nom (et état, à droite) sur la 1re ligne, description et taille dessous. */
.fichiers-formation li { display: flex; flex-direction: column; gap: var(--e1); min-height: 48px; padding: var(--e2) var(--e4); border-top: 1px solid var(--bord); }
.fichiers-formation li:first-child { border-top: 0; }
.fichier-ligne { display: flex; align-items: center; gap: var(--e3); }
.fichiers-formation a { font-weight: 600; min-height: 24px; display: inline-flex; align-items: center; }
.fichiers-formation .verrou { margin-left: auto; flex: none; }
/* form.… : « .en-ligne { display: inline } », plus bas dans la feuille, l'emporterait sinon. */
form.description-fichier { display: flex; flex-wrap: wrap; gap: var(--e1) var(--e2); align-items: center; width: 100%; }
form.description-fichier input { flex: 1 1 100%; }
.description-fichier .etat-modif { flex-basis: 100%; font-size: var(--t-petit); color: var(--avert); font-weight: 600; }
.description-fichier.modifie input { border-color: var(--avert); }
.programme-titre a { display: inline-flex; align-items: center; min-height: 24px; }
.description-fichier input { flex: 1 1 auto; min-width: 0; min-height: 36px; padding: var(--e1) var(--e2); font: inherit; border: 1px solid var(--bord-champ); border-radius: var(--rayon); }
.lecon-sommaire .fichiers-formation li { padding: var(--e2) var(--e3); }
.sommaire-fichiers { margin-top: var(--e5); }
.fiche-achat { grid-area: achat; align-self: start; position: sticky; top: var(--haut-collant); }
.fiche-entete { grid-area: entete; }
.fiche-corps { grid-area: corps; }
.boite-achat { border: 1px solid var(--bord); border-radius: var(--rayon-grand); padding: var(--e5); box-shadow: var(--ombre); display: flex; flex-direction: column; gap: var(--e3); background: var(--fond); }
.boite-prix { font-size: var(--t-titre); font-weight: 800; color: var(--encre); margin: 0; line-height: 1.1; }
.boite-prix-note, .boite-note { font-size: var(--t-petit); color: var(--texte-doux); margin: 0; }
.boite-possede { font-weight: 700; color: var(--succes); margin: 0; }
.boite-possede::before { content: "✓ "; }
.formulaire-achat { display: flex; flex-direction: column; gap: var(--e3); }
.case { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--e3); align-items: start; }
.case input { width: 20px; height: 20px; margin: var(--e1) 0 0; accent-color: var(--encre); }
.case label { font-size: var(--t-petit); line-height: 1.5; }
.case.champ-erreur label { color: var(--erreur); }
.liste-avis { list-style: none; padding: 0; display: grid; gap: var(--e4); }
.liste-avis blockquote { margin: 0; font-style: italic; }
.avis-auteur { color: var(--texte-doux); font-size: var(--t-petit); }

/* ---------- Leçon ---------- */
.lecon { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--e7); align-items: start; padding-top: var(--e5); }
.lecon-surtitre { color: var(--texte-doux); font-size: var(--t-petit); margin-bottom: var(--e2); font-variant-numeric: tabular-nums; }
.video-cadre { background: var(--noir); border-radius: var(--rayon-grand); overflow: hidden; margin-bottom: var(--e5); aspect-ratio: 16 / 9; }
.video-cadre video { width: 100%; height: 100%; }
.support-pdf { display: flex; gap: var(--e4); align-items: center; flex-wrap: wrap; margin-top: var(--e5); }
.lecon-vide { color: var(--texte-doux); }
.lecon-nav { display: flex; justify-content: space-between; gap: var(--e3); margin-top: var(--e7); padding-top: var(--e5); border-top: 1px solid var(--bord); flex-wrap: wrap; }
.bandeau-essai { display: flex; justify-content: space-between; align-items: center; gap: var(--e4); background: var(--info-fond); border: 1px solid var(--info); border-radius: var(--rayon); padding: var(--e3) var(--e4); margin-bottom: var(--e5); flex-wrap: wrap; }
.bandeau-essai p { margin: 0; }
.verrou-lecon { border: 1px solid var(--bord); border-radius: var(--rayon-grand); padding: var(--e6); background: var(--fond-doux); }
.verrou-lecon h2 { margin-top: 0; }
.lecon-sommaire { position: sticky; top: var(--haut-collant); border: 1px solid var(--bord); border-radius: var(--rayon-grand); padding: var(--e4); }
.sommaire-titre { font-weight: 700; color: var(--encre); margin-bottom: var(--e1); }
.sommaire { list-style: none; margin: var(--e3) 0 0; padding: 0; }
.sommaire a, .sommaire li > span { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--e2); padding: var(--e2); border-radius: var(--rayon); text-decoration: none; color: var(--texte); min-height: 44px; align-items: center; }
.sommaire a:hover { background: var(--fond-doux); }
.sommaire a[aria-current="page"] { background: var(--fond-encre-doux); font-weight: 700; color: var(--encre); }
.sommaire-num { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; font-size: var(--t-petit); border: 1px solid var(--bord-champ); font-variant-numeric: tabular-nums; }
.sommaire-vue .sommaire-num { background: var(--succes); border-color: var(--succes); color: var(--blanc); }
.sommaire-fermee > span { color: var(--texte-doux); }
.sommaire-texte { overflow-wrap: anywhere; }

/* ---------- Comptes ---------- */
.compte { max-width: 1000px; width: calc(100% - 2 * var(--e5)); margin: var(--e7) auto 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--e5); align-items: start; }
.compte-carte { padding: var(--e7) var(--e6); background: var(--fond); border: 1px solid var(--bord); border-radius: var(--rayon-grand); box-shadow: var(--ombre); }
.compte-carte h1 { margin-bottom: var(--e2); }
.compte-intro { color: var(--texte-doux); margin-bottom: var(--e5); }
.compte-atouts { background: var(--encre); color: var(--blanc); padding: var(--e6); border-radius: var(--rayon-grand); }
.compte-atouts-titre { font-size: var(--t-moyen); font-weight: 700; line-height: 1.3; }
.compte-atouts ul { padding: 0; margin: 0; list-style: none; display: grid; gap: var(--e4); color: var(--texte-sur-encre); }
.compte-atouts li { padding-left: var(--e6); position: relative; }
.compte-atouts li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--blanc); }
.compte-note { font-size: var(--t-petit); color: var(--texte-doux); margin-top: var(--e4); }
.compte-bascule { margin-top: var(--e5); padding-top: var(--e4); border-top: 1px solid var(--bord); margin-bottom: 0; }
.lien-secondaire { margin: calc(-1 * var(--e2)) 0 0; font-size: var(--t-petit); }

/* ---------- Formulaires ---------- */
.formulaire { display: flex; flex-direction: column; gap: var(--e4); }
.champ { display: flex; flex-direction: column; gap: var(--e1); min-width: 0; }
.champ label, .champ legend { font-weight: 600; font-size: var(--t-base); }
.facultatif { font-weight: 400; color: var(--texte-doux); font-size: var(--t-petit); }
.aide { font-size: var(--t-petit); color: var(--texte-doux); margin: 0; max-width: var(--mesure); }
.champ input, .champ select, .champ textarea {
  font: inherit; color: var(--texte); background: var(--fond); border: 1px solid var(--bord-champ); border-radius: var(--rayon);
  padding: var(--e3); min-height: 44px; width: 100%;
}
.champ textarea { resize: vertical; line-height: 1.5; }
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.champ-erreur input, .champ-erreur textarea { border-color: var(--erreur); border-width: 2px; }
.message-erreur { color: var(--erreur); font-size: var(--t-petit); margin: 0; font-weight: 600; }
.message-erreur::before { content: "⚠ "; }
.champ-compact { min-width: 200px; }
.champ-court { max-width: 160px; }
.champ-moyen { max-width: 320px; }
.groupe-radios { border: 0; padding: 0; margin: 0; }
.radios { display: flex; flex-wrap: wrap; gap: var(--e2) var(--e5); margin-top: var(--e1); }
.radio { display: inline-flex; align-items: center; gap: var(--e2); min-height: 44px; font-weight: 400; }
.radio input { width: 20px; height: 20px; accent-color: var(--encre); margin: 0; }
.ligne-champs { display: flex; gap: var(--e5); flex-wrap: wrap; align-items: flex-start; }

/* ---------- Espace client ---------- */
.entete-page { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--e4); flex-wrap: wrap; margin-bottom: var(--e4); }
.entete-page h1 { margin-bottom: var(--e1); }
.sous-titre { color: var(--texte-doux); margin: 0; }
.liste-mes-formations { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--e4); }
.carte-mienne { display: flex; justify-content: space-between; align-items: center; gap: var(--e5); border: 1px solid var(--bord); border-radius: var(--rayon-grand); padding: var(--e5); flex-wrap: wrap; }
.carte-mienne-texte { flex: 1 1 320px; min-width: 0; }
.carte-mienne-texte h3 { font-size: var(--t-moyen); margin: var(--e2) 0; }
.carte-mienne-actions { display: flex; flex-direction: column; gap: var(--e2); align-items: stretch; }
.progression-texte { font-size: var(--t-petit); color: var(--texte-doux); margin-bottom: var(--e2); font-variant-numeric: tabular-nums; }
progress { width: 100%; max-width: 360px; height: 8px; appearance: none; border: 0; border-radius: 999px; background: var(--fond-encre-doux); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--fond-encre-doux); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--succes); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--succes); border-radius: 999px; }

/* ---------- Messages, attente ---------- */
.bloc-message { padding-top: var(--e8); }
.attente { display: flex; gap: var(--e3); align-items: flex-start; }
.indicateur { flex: none; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%; border: 3px solid var(--fond-encre-doux); border-top-color: var(--encre); animation: tourner .9s linear infinite; }
@keyframes tourner { to { transform: rotate(360deg); } }

/* ---------- Pages légales ---------- */
.page-legale h2 { font-size: var(--t-moyen); margin-top: var(--e6); }
.page-legale p, .page-legale li { max-width: var(--mesure); }

/* ---------- Admin ---------- */
.admin-onglets { display: flex; gap: var(--e1); flex-wrap: wrap; border-bottom: 1px solid var(--bord); margin: var(--e4) 0 var(--e5); }
.admin-onglets a { padding: var(--e3) var(--e4); color: var(--texte); text-decoration: none; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.admin-onglets a[aria-current="page"] { color: var(--encre); font-weight: 700; box-shadow: inset 0 -3px 0 var(--encre); }
.admin h1 { margin-top: 0; }
.chiffres { list-style: none; padding: 0; margin: 0 0 var(--e5); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--e4); }
.chiffres li { border: 1px solid var(--bord); border-radius: var(--rayon-grand); padding: var(--e4) var(--e5); display: flex; flex-direction: column; }
.chiffre { font-size: var(--t-grand); font-weight: 700; color: var(--encre); }
.chiffre-libelle { color: var(--texte-doux); font-size: var(--t-petit); }
.section-admin { margin-top: var(--e7); padding-top: var(--e5); border-top: 1px solid var(--bord); }
.section-admin > h2:first-child { margin-top: 0; }
.section-form { border: 1px solid var(--bord); border-radius: var(--rayon-grand); padding: var(--e5); display: flex; flex-direction: column; gap: var(--e4); }
.section-form > h2 { margin: 0; }
.formulaire-admin { max-width: 880px; }
.actions-formulaire { display: flex; gap: var(--e3); align-items: center; flex-wrap: wrap; }
.zone-danger h2 { color: var(--erreur); }
.ligne-ajout { flex-direction: row; align-items: flex-end; flex-wrap: wrap; max-width: 880px; margin-top: var(--e4); }
.ligne-ajout .champ { flex: 1 1 320px; }
.recherche { display: flex; gap: var(--e3); align-items: flex-end; flex-wrap: wrap; margin-bottom: var(--e3); max-width: 640px; }
.recherche .champ { flex: 1 1 280px; }
.en-ligne { display: inline; }
.actions-cellule { white-space: nowrap; }
.actions-cellule > * + * { margin-left: var(--e2); }
.apercu-video { max-width: 480px; border-radius: var(--rayon); background: var(--noir); margin-bottom: var(--e3); }
.envoi-fichier { max-width: 640px; margin-top: var(--e4); }
.etat-envoi { margin: 0; font-size: var(--t-petit); font-variant-numeric: tabular-nums; }
.etat-envoi:empty { display: none; }
.barre-envoi { max-width: 640px; height: 12px; }
.liste-avis-admin { list-style: none; padding: 0; display: grid; gap: var(--e4); }
.liste-avis-admin blockquote { margin: 0 0 var(--e1); }
.code-promo { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 600; }

/* ---------- Tableaux ---------- */
.cadre-tableau { overflow-x: auto; border: 1px solid var(--bord); border-radius: var(--rayon-grand); max-height: 70vh; }
.tableau { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 720px; }
.tableau th, .tableau td { padding: 0 var(--e3); height: 48px; text-align: left; border-bottom: 1px solid var(--bord); vertical-align: middle; }
.tableau thead th { position: sticky; top: 0; background: var(--fond-doux); font-size: var(--t-petit); font-weight: 700; color: var(--texte-doux); z-index: 1; }
.tableau tbody tr:last-child td { border-bottom: 0; }
.tableau tbody tr:hover { background: var(--fond-doux); }
.tableau .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tableau .centre { text-align: center; }
.tableau td.nombre { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tableau .coupe { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-date { width: 120px; } .col-montant { width: 120px; } .col-devise { width: 80px; } .col-nombre { width: 88px; }
.col-statut { width: 176px; } .col-actions { width: 120px; } .col-droit { width: 96px; }
.col-piece { width: 88px; } .col-code { width: 112px; }

/* ---------- Pied ---------- */
.pied { background: var(--fond-doux); border-top: 1px solid var(--bord); }
.pied-interieur { max-width: var(--largeur); margin: 0 auto; padding: var(--e7) var(--e5); display: flex; justify-content: space-between; gap: var(--e6); flex-wrap: wrap; }
.marque-pied { font-size: var(--t-base); }
.pied-note { font-size: var(--t-petit); color: var(--texte-doux); max-width: 52ch; margin: 0; }
.pied-liens { display: flex; flex-direction: column; gap: var(--e1); }
.pied-liens a { color: var(--texte); font-size: var(--t-petit); min-height: 32px; display: inline-flex; align-items: center; }

/* ---------- Téléphone et tablette ---------- */
@media (max-width: 1000px) {
  .grille-formations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lecon { grid-template-columns: minmax(0, 1fr); gap: var(--e6); }
  .fiche { grid-template-columns: minmax(0, 1fr); grid-template-areas: "entete" "achat" "corps"; grid-template-rows: auto; row-gap: var(--e5); }
  .fiche-achat, .lecon-sommaire { position: static; }
}
@media (max-width: 760px) {
  :root { --t-titre: 32px; }
  .conteneur, .entete-interieur, .heros-interieur, .pied-interieur { padding-left: var(--e4); padding-right: var(--e4); }
  .heros-interieur { padding-top: var(--e7); padding-bottom: var(--e7); }
  .heros-texte { font-size: var(--t-base); }
  .deux-droits, .grille-formations, .trois-points { grid-template-columns: minmax(0, 1fr); }
  .entree-droit { padding: var(--e5); }
  .compte { grid-template-columns: minmax(0, 1fr); width: calc(100% - 2 * var(--e4)); margin-top: var(--e4); }
  .compte-carte, .compte-atouts { padding: var(--e6) var(--e4); }
  .js .menu-bouton { display: inline-flex; align-items: center; }
  .js .menu { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: var(--e3); }
  .js .menu.ouvert { display: flex; }
  .js .menu .bouton { margin: var(--e2) 0 0; }
  .menu a[aria-current="page"]:not(.bouton) { box-shadow: inset 3px 0 0 var(--encre); }
  .programme li { grid-template-columns: 28px minmax(0, 1fr); }
  .programme-etat { grid-column: 2; }
  .carte-mienne-actions { width: 100%; }
  .bouton-grand { width: 100%; }
  .fil [aria-current] { max-width: 24ch; }
}
@media (min-width: 761px) { .menu-bouton { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .indicateur { border-top-color: var(--encre); }
}

/* ---------- Corrections d'ergonomie (contrôle du 22.09.2026) ---------- */
/* NAV-01 : l'entrée « Créer un compte » est marquée active sur sa propre page. */
.menu .bouton[aria-current="page"] { outline: 2px solid var(--encre); outline-offset: 3px; }
/* NAV-01 : la leçon affichée est marquée, verrouillée ou non. */
.sommaire-courante > span { background: var(--fond-encre-doux); font-weight: 700; color: var(--encre); }
/* TYP-06 : une leçon fermée le dit en toutes lettres. */
.sommaire-verrou { display: block; font-size: var(--t-petit); color: var(--texte-doux); font-weight: 400; }
/* ACT-04 : zones cliquables d'au moins 24 px (44 px au téléphone, plus bas). */
.fil a { display: inline-flex; align-items: center; min-height: 24px; }
.tableau td a, .tableau th a { display: inline-flex; align-items: center; min-height: 24px; }
/* COH-01 : un bouton de formulaire garde la largeur de son texte, sauf « bouton-large ». */
.formulaire > .bouton:not(.bouton-large), .formulaire > button.bouton:not(.bouton-large) { align-self: flex-start; }
/* VIS-02 : la légende d'un groupe s'aligne sur les libellés. */
.champ legend, .groupe-filtre legend { padding: 0; }
/* VIS-08 : l'aide d'un écran se détache du formulaire qui suit. */
.admin > .aide, .admin > .compteur { margin-bottom: var(--e5); }
.raccourci { font-size: var(--t-petit); color: var(--texte-doux); }
/* Filtres du catalogue en boutons radio (FRM-07). La pastille choisie est pleine ET cochée (TYP-06). */
.groupe-filtre { border: 0; padding: 0; margin: 0; }
.groupe-filtre legend { font-weight: 600; margin-bottom: var(--e1); }
.pastilles { display: flex; flex-wrap: wrap; gap: var(--e2); }
.pastille { position: relative; }
.pastille input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pastille span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--e4); border: 1px solid var(--bord-champ); border-radius: 999px; cursor: pointer; font-weight: 500; }
.pastille input:checked + span { background: var(--encre); border-color: var(--encre); color: var(--blanc); font-weight: 600; }
.pastille input:checked + span::before { content: "✓ "; white-space: pre; }
.pastille input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Tableaux triés et paginés. */
.col-nom { width: 15%; } .col-email { width: 18%; } .col-actions-lecons { width: 320px; }
.tri { color: inherit; text-decoration: none; }
.tri:hover { text-decoration: underline; }
.tri-actif { color: var(--encre); }
.pagination { display: flex; gap: var(--e4); align-items: center; flex-wrap: wrap; margin-top: var(--e4); }
@media (max-width: 760px) {
  .fil a, .pied-liens a, .filtres-actifs a { min-height: 44px; }
}

/* ---------- Accueil : quiz et guide ---------- */
.deux-outils { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--e5); margin-top: var(--e8); }
.outil { border: 1px solid var(--bord); border-radius: var(--rayon-grand); padding: var(--e6); display: flex; flex-direction: column; align-items: flex-start; }
.outil h2 { margin-top: 0; }
.outil p { color: var(--texte-doux); max-width: var(--mesure); }
.outil .bouton { margin-top: auto; }

/* ---------- Quiz ---------- */
.quiz-formulaire { max-width: 760px; gap: var(--e6); }
.quiz-question { border: 0; padding: 0; margin: 0; }
.quiz-question legend { font-weight: 700; font-size: var(--t-moyen); color: var(--encre); padding: 0; margin-bottom: var(--e3); }
.quiz-resultat { margin-top: var(--e7); }
.grille-une { grid-template-columns: minmax(0, 420px); }

/* ---------- Guide ---------- */
.guide .formulaire { max-width: 520px; margin-top: var(--e5); }
.liste-guides { margin: 0 0 var(--e5); padding-left: var(--e5); display: grid; gap: var(--e2); }
.liste-telechargements { margin-top: var(--e5); }
.emplacement-guide { padding: var(--e4) 0; border-top: 1px solid var(--bord); }
.emplacement-guide:first-of-type { border-top: 0; }
.emplacement-guide h3 { font-size: var(--t-base); margin: 0 0 var(--e2); }

/* ---------- Assistant ---------- */
.assistant { display: none; }
.js .assistant { display: block; position: fixed; right: var(--e5); bottom: var(--e5); z-index: 20; }
.assistant-bouton { font: inherit; font-weight: 600; min-height: 48px; padding: var(--e3) var(--e5); border: 2px solid var(--blanc); border-radius: 999px; background: var(--encre); color: var(--blanc); box-shadow: var(--ombre); cursor: pointer; }
.assistant-bouton:hover { background: var(--encre-survol); }
.assistant.ouvert .assistant-bouton { display: none; }
.assistant-panneau { width: min(400px, calc(100vw - 2 * var(--e4))); max-height: min(640px, calc(100vh - 2 * var(--e5))); display: flex; flex-direction: column; background: var(--fond); border: 1px solid var(--bord); border-radius: var(--rayon-grand); box-shadow: var(--ombre-forte); overflow: hidden; }
.assistant-panneau[hidden] { display: none; }
.assistant-entete { display: flex; justify-content: space-between; align-items: center; padding: var(--e3) var(--e4); background: var(--encre); color: var(--blanc); }
.assistant-titre { margin: 0; font-weight: 700; }
.assistant-fermer { padding: 0; font: inherit; font-size: var(--t-moyen); line-height: 1; width: 44px; height: 44px; border: 0; background: none; color: var(--blanc); cursor: pointer; border-radius: var(--rayon); }
.assistant-fermer:focus-visible { outline-color: var(--blanc); }
.assistant-fil { list-style: none; margin: 0; padding: var(--e4); overflow-y: auto; flex: 1 1 auto; display: flex; flex-direction: column; gap: var(--e3); min-height: 120px; }
.assistant-message { max-width: 88%; padding: var(--e2) var(--e3); border-radius: var(--rayon); overflow-wrap: anywhere; }
.assistant-message p { margin: 0 0 var(--e2); }
.assistant-message p:last-child { margin-bottom: 0; }
.assistant-user { align-self: flex-end; background: var(--encre); color: var(--blanc); }
.assistant-assistant { align-self: flex-start; background: var(--fond-doux); }
.assistant-erreur { background: var(--erreur-fond); color: var(--erreur-texte); border: 1px solid var(--erreur); }
.assistant-attente { display: flex; gap: var(--e2); align-items: center; color: var(--texte-doux); }
.assistant-formulaire { display: flex; gap: var(--e2); padding: var(--e3) var(--e4); border-top: 1px solid var(--bord); align-items: flex-end; }
.assistant-formulaire textarea { flex: 1 1 auto; font: inherit; border: 1px solid var(--bord-champ); border-radius: var(--rayon); padding: var(--e2) var(--e3); resize: none; min-height: 44px; }
.assistant-formulaire textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; }
.assistant-restants { margin: 0; padding: 0 var(--e4) var(--e3); font-size: var(--t-petit); color: var(--texte-doux); }
.assistant-restants:empty { display: none; }
@media (max-width: 760px) {
  .deux-outils { grid-template-columns: minmax(0, 1fr); }
  .js .assistant { right: var(--e4); bottom: var(--e4); }
  .assistant-panneau { max-height: calc(100vh - 2 * var(--e4)); }
  .grille-une { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Corrections d'ergonomie, passe 2 (22.09.2026) ---------- */
/* ACT-04 : le bas de page laisse la place au bouton de l'assistant, qui ne couvre jamais un lien. */
.js .pied-interieur { padding-bottom: calc(var(--e7) + var(--place-assistant)); }
/* Point 5 de Lenny (22.09.2026) : au téléphone, une pastille ronde « ? » de 48 px, plus discrète ; le nom complet reste
   lu par les lecteurs d'écran et affiché en infobulle. */
.assistant-bouton-icone { display: none; }
@media (max-width: 760px) {
  .assistant-bouton { width: 48px; height: 48px; min-height: 48px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
  .assistant-bouton-texte { display: none; }
  .assistant-bouton-icone { display: inline; font-size: var(--t-moyen); font-weight: 700; line-height: 1; }
  :root { --place-assistant: 64px; }
}
/* ACC-01 : une ancre ou un élément qui reçoit le focus s'affiche sous l'en-tête collant, pas dessous. */
[id] { scroll-margin-top: calc(var(--haut-collant) + var(--e4)); }
/* COH-01 : le lien de cadre légal actif porte la même marque que les pastilles choisies. */
.onglets-droit a[aria-current="page"]::before { content: "✓ "; white-space: pre; }
/* NAV-01 : entrée active du pied de page. */
.pied-liens a[aria-current="page"] { font-weight: 700; color: var(--encre); text-decoration-thickness: 3px; }
/* FRM-01 : libellé visible du champ de l'assistant. */
.assistant-libelle { display: block; font-size: var(--t-petit); font-weight: 600; margin-bottom: var(--e1); }
.assistant-formulaire { flex-wrap: wrap; }
.assistant-formulaire .assistant-libelle { flex: 1 1 100%; margin-bottom: 0; }
/* VIS-02 : séparateurs du fil centrés sur le texte ; champ et bouton d'une même rangée à la même hauteur. */
.fil { align-items: center; }
.recherche .champ input, .ligne-ajout .champ input { height: 48px; padding-top: 0; padding-bottom: 0; }
.recherche .bouton, .ligne-ajout .bouton { height: 48px; }
/* VIS-05 : 60 caractères environ pour tout paragraphe courant. */
main p { max-width: var(--mesure); }
.appel-final p { margin-left: auto; margin-right: auto; }
/* VIS-08 : l'écart entre groupes est au moins double de l'écart intérieur. */
.quiz .sous-titre, .guide .sous-titre { margin-bottom: var(--e6); }
.cadre-tableau + .aide, .cadre-tableau + .pagination + .aide { margin-top: var(--e5); }
.section-admin > h2 + .aide { margin-bottom: var(--e5); }

/* ACT-02 : l'action principale d'une leçon reste à droite, qu'il y ait ou non « Leçon précédente » (téléphone compris). */
.lecon-nav > :last-child { margin-left: auto; }

/* VIS-08 : le message d'attente longue est un bloc à part, sous le bouton (qui ne bouge pas). */
.attente-longue { margin-top: var(--e5); }

/* ---------- Communauté (05.10.2026) ---------- */
.compteur-notif { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 var(--e2); margin-left: var(--e1); border-radius: 999px; background: var(--encre); color: var(--blanc); font-size: var(--t-petit); font-weight: 700; font-variant-numeric: tabular-nums; }
.communaute { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--e7); align-items: start; }
.communaute-nav { position: sticky; top: var(--haut-collant); display: flex; flex-direction: column; gap: var(--e5); }
.communaute-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--e1); }
.communaute-nav ul + ul { border-top: 1px solid var(--bord); padding-top: var(--e4); }
.communaute-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--e3); border-radius: var(--rayon); color: var(--texte); text-decoration: none; font-weight: 500; }
.communaute-nav a:hover { background: var(--fond-doux); }
.communaute-nav a[aria-current="page"] { background: var(--fond-encre-doux); color: var(--encre); font-weight: 700; box-shadow: inset 3px 0 0 var(--encre); }
.communaute-principal { min-width: 0; }
.communaute-principal > .fil { padding-top: 0; margin-bottom: var(--e4); }

.liste-publications { list-style: none; margin: var(--e5) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--e4); }
.publication-carte { border: 1px solid var(--bord); border-radius: var(--rayon-grand); padding: var(--e5); display: flex; flex-direction: column; gap: var(--e3); }
.publication-carte-haut { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--e3); flex-wrap: wrap; }
.publication-carte-espace { font-size: var(--t-petit); color: var(--texte-doux); }
.publication-carte-titre { font-size: var(--t-moyen); margin: 0; }
.publication-carte-titre a { color: var(--encre); text-decoration: none; }
.publication-carte-titre a:hover { text-decoration: underline; }
.publication-carte-extrait { color: var(--texte-doux); margin: 0; overflow-wrap: anywhere; }
.publication-carte-compteurs { font-size: var(--t-petit); color: var(--texte-doux); margin: 0; }

.signature { display: flex; align-items: center; gap: var(--e3); }
.signature-nom { font-weight: 700; color: var(--encre); text-decoration: none; }
a.signature-nom:hover { text-decoration: underline; }
.signature-date { display: block; font-size: var(--t-petit); color: var(--texte-doux); }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: var(--fond-encre-doux); color: var(--encre); font-weight: 700; font-size: var(--t-petit); }
.avatar-grand { width: 96px; height: 96px; font-size: var(--t-moyen); }
.avatar-assistant { background: var(--info-fond); color: var(--info-texte); border: 1px solid var(--info); }
.etiquette-assistant { border-color: var(--info); color: var(--info-texte); background: var(--info-fond); }
.etiquette-epinglee { border-color: var(--encre); background: var(--fond-encre-doux); }
.etiquette-nouveau { border-color: var(--encre); background: var(--encre); color: var(--blanc); }

.publication { display: flex; flex-direction: column; gap: var(--e4); padding-bottom: var(--e5); border-bottom: 1px solid var(--bord); }
.publication h1 { margin: 0; overflow-wrap: anywhere; }
.texte-membre { overflow-wrap: anywhere; }
.texte-membre p:last-child { margin-bottom: 0; }
.mention { font-weight: 600; }
.publication-actions, .commentaire-actions { display: flex; flex-wrap: wrap; gap: var(--e3) var(--e4); align-items: flex-start; }
.publication-actions form, .commentaire-actions form { margin: 0; }
.reactions { display: flex; flex-wrap: wrap; gap: var(--e2); }
.reaction { font: inherit; font-size: var(--t-petit); font-weight: 600; min-height: 44px; padding: 0 var(--e4); border-radius: 999px; border: 1px solid var(--bord-champ); background: var(--fond); color: var(--encre); cursor: pointer; }
.reaction:hover { background: var(--fond-encre-doux); }
.reaction[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: var(--blanc); }
.reaction[aria-pressed="true"]::before { content: "✓ "; }
.action-repliee > summary { cursor: pointer; color: var(--lien); text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; list-style: none; }
.action-repliee > summary::-webkit-details-marker { display: none; }
.action-repliee[open] { flex-basis: 100%; }
.formulaire-compact { gap: var(--e3); margin-top: var(--e2); max-width: 640px; }
.galerie { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--e3); }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); border: 1px solid var(--bord); }
.liste-documents { margin: 0; padding-left: var(--e5); }
.piece-taille { font-size: var(--t-petit); color: var(--texte-doux); }
.video-attente { border: 1px dashed var(--bord-champ); border-radius: var(--rayon-grand); padding: var(--e4); color: var(--texte-doux); }

.fil-reponses { padding-top: var(--e5); display: flex; flex-direction: column; gap: var(--e5); }
.fil-reponses h2 { margin: 0; }
.commentaires { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--e5); }
.commentaires-reponses { margin-top: var(--e4); padding-left: var(--e5); border-left: 2px solid var(--bord); }
.commentaire { display: flex; flex-direction: column; gap: var(--e3); }
.commentaire-assistant > .texte-membre, .commentaire-assistant > .note-assistant { padding-left: var(--e4); border-left: 3px solid var(--info); }
.note-assistant { font-size: var(--t-petit); color: var(--info-texte); margin: 0; }

.formulaire-publication { max-width: 760px; }
.champ-titre-faux { font-weight: 600; margin: 0 0 var(--e2); }
.liste-pieces { list-style: none; margin: 0 0 var(--e3); padding: 0; display: flex; flex-direction: column; gap: var(--e1); }
.liste-pieces:empty { display: none; }
.liste-pieces li { display: flex; gap: var(--e3); align-items: center; flex-wrap: wrap; }
.ajout-pieces { display: flex; gap: var(--e3); flex-wrap: wrap; margin-bottom: var(--e2); }
.ajout-pieces .bouton:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.etat-envoi .indicateur { display: inline-block; vertical-align: middle; margin: 0 var(--e1) 0 0; width: 16px; height: 16px; }

.liste-notifications { list-style: none; margin: 0; padding: 0; border: 1px solid var(--bord); border-radius: var(--rayon-grand); }
.liste-notifications li + li { border-top: 1px solid var(--bord); }
.liste-notifications form { margin: 0; }
.notification-lien { font: inherit; width: 100%; text-align: left; background: none; border: 0; padding: var(--e3) var(--e4); min-height: 56px; cursor: pointer; color: var(--texte); display: flex; flex-wrap: wrap; gap: var(--e1) var(--e3); align-items: center; }
.notification-lien:hover { background: var(--fond-doux); }
.non-lue .notification-lien { font-weight: 700; color: var(--encre); }
.notification-lien .signature-date { margin-left: auto; font-weight: 400; }

.profil-photo, .profil-membre { display: flex; gap: var(--e5); align-items: center; flex-wrap: wrap; }
.profil-membre { margin-bottom: var(--e5); }
.profil-membre h1 { margin-bottom: var(--e1); }
.liste-simple { padding-left: var(--e5); display: flex; flex-direction: column; gap: var(--e2); }
.champ-moyen { max-width: 420px; }
.encart-communaute { display: flex; justify-content: space-between; align-items: center; gap: var(--e4); flex-wrap: wrap; border: 1px solid var(--bord); border-radius: var(--rayon-grand); padding: var(--e4) var(--e5); margin: var(--e5) 0; }
.encart-communaute h2 { margin: 0 0 var(--e1); font-size: var(--t-base); }
.encart-communaute p { margin: 0; }
.presentation-communaute .liste-espaces { display: flex; flex-direction: column; gap: var(--e2); }
.boite-abonnement { margin-top: var(--e6); max-width: 30rem; scroll-margin-top: var(--e9); }
.boite-abonnement h2 { margin: 0; }
.boite-prix-periode { font-size: var(--t-base); font-weight: 600; color: var(--texte-doux); }
.encart-abonnement { scroll-margin-top: var(--e9); }
.statut-acces-oui { color: var(--succes); }
.statut-acces-non { color: var(--texte-doux); }
.statut-acces-banni { color: var(--avert); }
.col-role { width: 120px; } .col-moyenne { width: 160px; } .col-actions-larges { width: 260px; }
.actions-cellule { white-space: nowrap; }
.actions-cellule form { display: inline; margin: 0 var(--e1); }

/* Contrôle d'ergonomie du 05.10.2026 */
.signature-nom { display: inline-flex; align-items: center; min-height: 24px; }
.col-actions-signalement { width: 340px; } .col-publications { width: 120px; }
.tableau td.coupe a.lien-coupe { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 44px; }
.champ.groupe-cases .case label { font-size: var(--t-petit); font-weight: 400; }
.champ.groupe-cases .case input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: var(--e1) 0 0; }
.communaute-principal .section-form + .section-form { margin-top: var(--e7); }
.compteur + .vide-utile { margin-top: var(--e5); }
/* Contrôle d'ergonomie du 05.10.2026, 2e passe (corrigé, non recontrôlé). Tableaux Membres et Signalements : une
   largeur minimale qui laisse aux colonnes Nom / E-mail la place qu'elles ont dans Clients et Ventes ; plus étroit,
   le tableau défile dans son cadre. */
.tableau-large .tableau { min-width: 1150px; }
/* Lecteur vidéo de la communauté (contrôle d'ergonomie de hls.js, 05.10.2026) : le contour de focus est porté par le
   cadre (le cadre rogne celui de la vidéo), et l'attente est dite sur l'image. */
.page-communaute .video-cadre { position: relative; }
/* Lecteur à nos contrôles (05.10.2026) : chaque contrôle porte son propre contour de focus, blanc sur la barre encre. */
/* « .lecteur » (sans suffixe) est la classe des textes réservés aux lecteurs d'écran : ne pas la réutiliser ici. */
.lecteur-video { margin: 0 0 var(--e5); border-radius: var(--rayon-grand); overflow: hidden; background: var(--noir); }
.lecteur-video .video-cadre { margin: 0; border-radius: 0; position: relative; }
.lecteur-video video { cursor: pointer; }
/* La barre de position est sur sa propre ligne, au-dessus des boutons, et la première au Tab (même ordre à l'écran
   et au clavier, à toutes les largeurs). Le temps pousse les boutons suivants à droite. */
.lecteur-controles { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--e2); padding: 0 var(--e2) var(--e1); background: var(--encre); color: var(--blanc); }
.lecteur-controles .lecteur-barre { flex: 1 1 100%; }
.lecteur-controles .lecteur-temps { margin-right: auto; }
.lecteur-bouton { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: none; border: 0; border-radius: var(--rayon); color: var(--blanc); cursor: pointer; }
.lecteur-bouton:hover { background: var(--encre-survol); }
.lecteur-controles :focus-visible { outline: 3px solid var(--blanc); outline-offset: 0; }
.lecteur-temps { flex: none; font-size: var(--t-petit); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lecteur-barre { flex: 1 1 auto; min-width: 64px; height: 44px; margin: 0; accent-color: var(--blanc); background: transparent; cursor: pointer; }
.lecteur-volume { flex: none; width: 88px; height: 44px; margin: 0; accent-color: var(--blanc); background: transparent; cursor: pointer; }
.lecteur-qualite[disabled] { opacity: .6; cursor: not-allowed; }
.lecteur-qualite { flex: none; width: 120px; min-height: 44px; padding: 0 var(--e2); font: inherit; font-size: var(--t-petit); color: var(--blanc); background: var(--encre); border: 1px solid var(--texte-sur-encre); border-radius: var(--rayon); cursor: pointer; }
.lecteur-video:fullscreen { display: flex; flex-direction: column; justify-content: center; border-radius: 0; }
.lecteur-video:fullscreen .video-cadre { flex: 1 1 auto; aspect-ratio: auto; }
/* Le curseur de volume n'est masqué que sur un écran tactile (le volume s'y règle par les boutons de l'appareil) :
   un ordinateur zoomé à 200 % le garde (ACC-03). */
@media (pointer: coarse) { .lecteur-volume { display: none; } }
@media (max-width: 760px) {
  .lecteur-controles { gap: var(--e1); padding: var(--e1); }
}
.video-chargement { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; display: inline-flex; align-items: center; gap: var(--e2); padding: var(--e2) var(--e4); border-radius: var(--rayon); background: var(--encre); color: var(--blanc); font-weight: 600; pointer-events: none; }
.video-chargement .indicateur { margin: 0; border-color: var(--texte-sur-encre); border-top-color: var(--blanc); }
.tableau-large .col-role { width: 104px; } .tableau-large .col-publications { width: 112px; } .tableau-large .col-actions-larges { width: 240px; }
.section-admin > .compteur { margin-bottom: var(--e5); }
.communaute-principal > .sous-titre { margin-bottom: var(--e5); }
@media (max-width: 760px) {
  a.marque { display: inline-flex; align-items: center; min-height: 44px; }
  .champ.groupe-cases .case { min-height: 44px; align-items: center; }
  .champ.groupe-cases .case input { margin: 0; }
}
@media (max-width: 760px) {
  .bouton-petit, .bouton-lien { min-height: 44px; }
  .signature-nom, .publication-carte-titre a { display: inline-flex; align-items: center; min-height: 44px; }
  /* ACT-04 : liens de téléchargement et de leçon, 44 px de haut au téléphone. */
  .fichiers-formation a, .programme-titre a, .description-fichier input { min-height: 44px; }
  .programme-titre a { display: inline-flex; align-items: center; }
}

@media (max-width: 1000px) {
  .communaute { grid-template-columns: minmax(0, 1fr); gap: var(--e5); }
  .communaute-nav { position: static; }
  .communaute-nav ul { flex-direction: row; flex-wrap: wrap; }
  .communaute-nav ul + ul { padding-top: var(--e3); }
}

/* Passage animé d'une page à l'autre (fondu court), en particulier du site vers l'application de la communauté, qui
   a sa propre entrée (communaute.css). Les deux pages doivent l'accepter ; coupé si l'on a demandé moins d'animations. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
