/* ================================================================
   KEHITAA FORMATION — feuille de style de l'application
   Reprend les jetons et le langage du site vitrine KEHITAA (navy, rouge,
   jaune, police Inter, bandeau navy à trame de points, cartes à couverture,
   boutons à lueur dorée) et l'organisation des plateformes de cours en ligne :
   une navigation fixe dans l'en-tête, un bandeau qui dit où l'on est, des cartes illustrées,
   un sommaire latéral pour suivre sa progression.

   Sommaire
    1 Jetons            7 Cartes de cours        13 Aperçu d'onglet
    2 Base              8 Méta, statuts          14 Étapes, consignes
    3 En-tête           9 Progression            15 Tableaux, formulaires
    4 Bandeau, onglets 10 Encadrés, objectifs    16 Rapport de correction
    5 Mise en page     11 Plan de cours          17 Vidéo, divers
    6 Boutons          12 Sommaire latéral       18 Pied de page, responsive
   ================================================================ */

@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }

/* 1. JETONS ------------------------------------------------------- */
:root {
  --navy: #1B2A4A; --navy-clair: #2C4470; --navy-fonce: #16223C;
  --rouge: #B5162B; --rouge-fonce: #8C1122; --rouge-clair: #FCECEF; --rouge-bord: rgba(181, 22, 43, .22);
  --jaune: #F2B632; --jaune-clair: #FFF7DF; --jaune-texte: #856000;
  --vert: #1B8A5A; --vert-clair: #EAF7F1;
  --prune: #3A2E63;
  --fond: #FFFFFF; --fond-doux: #F6F8FB; --fond-gris: #EEF2F6;
  --texte: #1B2A4A; --texte-secondaire: #5F6B7A; --texte-doux: #6B7688; --nav-texte: #2B3444;
  --voile-navy: rgba(27, 42, 74, .06);
  --trait: #E3E8EF; --trait-clair: #EEF1F5; --trait-fort: #C9D3E2;
  --largeur: none; --gouttiere: 24px; --marge-page: clamp(16px, 3vw, 56px); --hauteur-entete: 72px;
  --rayon-sm: 8px; --rayon: 12px; --rayon-lg: 16px; --rayon-xl: 24px;
  --ombre-sm: 0 2px 8px rgba(27, 42, 74, .05);
  --ombre: 0 10px 30px rgba(27, 42, 74, .08);
  --ombre-lg: 0 20px 60px rgba(27, 42, 74, .12);
  --lueur: 0 0 0 1px rgba(242, 182, 50, .45), 0 8px 28px rgba(242, 182, 50, .28);
  --transition: .2s cubic-bezier(.22, 1, .36, 1);
  --cellule-jaune: #FFF2CC;
}

/* 2. BASE --------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hauteur-entete) + 70px); -webkit-font-smoothing: antialiased; }
body { background: var(--fond); color: var(--texte); font: 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.011em; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--navy); letter-spacing: -.03em; text-wrap: balance; line-height: 1.2; }
h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { color: var(--texte-secondaire); text-wrap: pretty; }
strong { color: var(--texte); }
code { font: 600 .88em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--fond-gris); padding: .1em .4em; border-radius: 5px; color: var(--navy); }
.icone { width: 16px; height: 16px; flex: none; stroke-width: 2; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }
.lien { color: var(--rouge); font-weight: 600; }
.lien:hover { text-decoration: underline; text-underline-offset: 3px; }
.texte-doux { color: var(--texte-doux); font-size: 14px; }

/* 3. EN-TÊTE ------------------------------------------------------ */
.entete { position: sticky; top: 0; z-index: 100; height: var(--hauteur-entete); background: var(--fond); border-bottom: 1px solid var(--trait); }
.entete__barre { display: flex; align-items: center; gap: 32px; height: 100%; }
.nav-principale { display: flex; align-items: stretch; gap: 2px; height: 100%; }
.nav-item { position: relative; display: flex; }
.nav-lien { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 14px; color: var(--nav-texte); font-size: 15px; font-weight: 600; white-space: nowrap; transition: color var(--transition); }
.nav-lien:hover, .nav-item:hover > .nav-lien, .nav-item:focus-within > .nav-lien { color: var(--rouge); }
.nav-lien::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--rouge); transform: scaleX(0); transition: transform var(--transition); }
.nav-lien[aria-current="page"] { color: var(--navy); }
.nav-lien[aria-current="page"]::after { transform: scaleX(1); }
.nav-chevron { width: 14px; height: 14px; transform: rotate(90deg); transition: transform var(--transition); opacity: .6; }
.nav-item:hover .nav-chevron, .nav-item:focus-within .nav-chevron { transform: rotate(-90deg); }
.sous-menu { position: absolute; top: 100%; left: 0; z-index: 200; min-width: 330px; padding: 12px; background: #fff; border: 1px solid var(--trait);
  border-radius: 0 0 var(--rayon-lg) var(--rayon-lg); box-shadow: var(--ombre-lg); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition); }
.nav-item:hover .sous-menu, .nav-item:focus-within .sous-menu { opacity: 1; visibility: visible; transform: none; }
.sous-menu--large { display: grid; grid-template-columns: 300px 420px; gap: 12px; }
.sous-menu__lien { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: var(--rayon); transition: background var(--transition); }
.sous-menu__lien:hover { background: var(--fond-doux); }
.sous-menu__lien > .icone { width: 20px; height: 20px; margin-top: 2px; color: var(--rouge); }
.sous-menu__lien strong { display: block; color: var(--navy); font-size: 14.5px; }
.sous-menu__lien small { display: block; color: var(--texte-doux); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.sous-menu__titre { display: block; margin: 10px 12px 4px; padding-top: 10px; border-top: 1px solid var(--trait-clair); color: var(--texte-doux); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sous-menu--large .sous-menu__titre { border-top: 0; padding-top: 0; margin-top: 12px; }
.sous-menu__court { display: block; padding: 7px 12px; border-radius: var(--rayon-sm); color: var(--texte); font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.sous-menu__court small { color: var(--texte-doux); }
.sous-menu__court:hover { background: var(--fond-doux); color: var(--rouge); }
.sous-menu__metiers { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.sous-menu__metiers a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--rayon-sm); color: var(--texte); font-size: 14px; font-weight: 500; }
.sous-menu__metiers a:hover { background: var(--fond-doux); color: var(--rouge); }
.puce-metier { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; padding: 0; height: 28px; }
.puce-metier::before { content: none; }
.puce-metier { color: #fff; }
.puce-metier.couverture--jaune { color: var(--navy); }
.puce-metier .icone { width: 16px; height: 16px; }
.entete__lien { color: var(--texte-secondaire); font-size: 14px; font-weight: 600; white-space: nowrap; }
.entete__lien:hover, .entete__lien.actif { color: var(--rouge); }
.marque { display: flex; align-items: center; }
.marque img { height: 34px; width: auto; }
.entete__compte { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.entete__nom { display: inline-flex; align-items: center; gap: 8px; color: var(--nav-texte); font-size: 14px; font-weight: 700; white-space: nowrap; }
.entete__nom .icone { width: 18px; height: 18px; }
.entete__sortie { padding: 9px 16px; border: 1px solid var(--trait); border-radius: var(--rayon-sm); background: none; color: var(--nav-texte);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: background var(--transition); }
.entete__sortie:hover { background: var(--voile-navy); }
/* Sélecteur de langue FR | EN */
.langue { display: inline-flex; border: 1px solid var(--trait); border-radius: var(--rayon-sm); overflow: hidden; }
.langue__choix { padding: 6px 10px; border: 0; background: none; color: var(--texte-secondaire); font-size: 12px; font-weight: 700;
  letter-spacing: .04em; cursor: pointer; }
.langue__choix + .langue__choix { border-left: 1px solid var(--trait); }
.langue__choix:hover { color: var(--rouge); }
.langue__choix.actif { background: var(--navy); color: #fff; }

/* 4. BANDEAU ET ONGLETS ------------------------------------------- */
.bandeau { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-fonce); color: #fff; padding-top: 34px; }
.bandeau::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1.2px, transparent 1.6px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 100% 100%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 60% 90% at 100% 100%, #000 0%, transparent 70%); }
.bandeau__grille { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.bandeau__entete { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 44px; }
.fil-ariane { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; color: rgba(255, 255, 255, .55); font-size: 14px; font-weight: 500; }
.fil-ariane a { color: rgba(255, 255, 255, .8); transition: color var(--transition); }
.fil-ariane a:hover { color: #fff; }
.fil-ariane .icone { width: 14px; height: 14px; opacity: .6; }
.sur-titre { color: var(--jaune); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sur-titre:empty { display: none; }
.bandeau h1 { margin: 10px 0; color: #fff; font-size: clamp(30px, 3.2vw, 50px); font-weight: 800; line-height: 1.1; letter-spacing: -.04em; max-width: 1100px; }
.bandeau__texte { max-width: 900px; color: rgba(255, 255, 255, .74); font-size: 17px; line-height: 1.65; }
.bandeau__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 18px; color: rgba(255, 255, 255, .8); font-size: 14px; }
.bandeau__meta span { display: inline-flex; align-items: center; gap: 7px; }
.bandeau__meta .icone { color: var(--jaune); }
.bandeau__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.bandeau__visuel { align-self: end; }
.bandeau__visuel img.portrait { width: 240px; }
.bandeau__visuel .photo-ronde { width: 180px; height: 180px; margin-bottom: 36px; border-radius: 50%; object-fit: cover; border: 6px solid rgba(255, 255, 255, .12); }

/* Repérage du niveau : parcours (navy, photo), fiche (prune), exercice et rapport (clair, compact).
   Une étiquette « Parcours », « Fiche », « Exercice » ou « Rapport » précède le sur-titre. */
.bandeau__repere { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.bandeau__type { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.bandeau__type .icone { width: 15px; height: 15px; color: var(--jaune); }

.bandeau--fiche { background: var(--prune); }
.bandeau--fiche .bandeau__type { background: var(--jaune); color: var(--navy-fonce); }
.bandeau--fiche .bandeau__type .icone { color: var(--navy-fonce); }

.bandeau--exercice { background: var(--fond-gris); color: var(--texte); padding-top: 26px; border-bottom: 1px solid var(--trait); }
.bandeau--exercice::before { background-image: radial-gradient(rgba(27, 42, 74, .12) 1.2px, transparent 1.6px); }
.bandeau--exercice .bandeau__entete { padding-bottom: 30px; }
.bandeau--exercice .fil-ariane { color: var(--texte-doux); }
.bandeau--exercice .fil-ariane a { color: var(--texte-secondaire); }
.bandeau--exercice .fil-ariane a:hover { color: var(--rouge); }
.bandeau--exercice .sur-titre { color: var(--rouge); }
.bandeau--exercice h1 { color: var(--navy); font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -.03em; }
.bandeau--exercice .bandeau__texte { color: var(--texte-secondaire); font-size: 16px; }
.bandeau--exercice .bandeau__meta { color: var(--texte-secondaire); }
.bandeau--exercice .bandeau__meta .icone { color: var(--rouge); }
.bandeau--exercice .bandeau__type { background: var(--navy); color: #fff; }
.bandeau--exercice .bouton--transparent { color: var(--navy); border-color: var(--trait-fort); }
.bandeau--exercice .bouton--transparent:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Bandeau de cours : texte à gauche, carte-couverture à droite qui déborde sur le contenu */
.bandeau--cours { padding-bottom: 52px; }
.bandeau--cours .bandeau__entete { min-height: 0; padding-bottom: 0; }
.couverture-flottante { width: 360px; margin-bottom: -150px; border-radius: var(--rayon-lg); overflow: hidden; box-shadow: var(--ombre-lg); background: #fff; position: relative; z-index: 3; }
.couverture-flottante img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.couverture-flottante__corps { padding: 20px 22px 22px; }

/* 5. MISE EN PAGE ------------------------------------------------- */
.conteneur { width: 100%; padding: 0 var(--marge-page); }
.corps { padding-top: 44px; padding-bottom: 90px; min-height: 55vh; }
.section + .section { margin-top: 60px; }
.section__tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section__tete h2::before { content: ""; display: block; width: 34px; height: 4px; margin-bottom: 14px; border-radius: 50px; background: var(--rouge); }
.section__tete p { margin-top: 6px; max-width: 900px; }
.section__lien { display: inline-flex; align-items: center; gap: 6px; color: var(--rouge); font-weight: 700; font-size: 15px; white-space: nowrap; }
.section__lien .icone { transition: transform var(--transition); }
.section__lien:hover .icone { transform: translateX(3px); }
.grille { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.grille--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grille--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.colonnes { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) clamp(320px, 26vw, 460px); align-items: start; }
.colonnes--cours { grid-template-columns: minmax(0, 1fr) clamp(340px, 26vw, 460px); }
.collant { position: sticky; top: calc(var(--hauteur-entete) + 20px); }
.pile > * + * { margin-top: 20px; }

/* 6. BOUTONS ------------------------------------------------------ */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid transparent;
  border-radius: var(--rayon); font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition); }
.bouton:hover, .bouton:focus-visible { transform: translateY(-2px); box-shadow: var(--lueur); }
.bouton:active { transform: none; }
.bouton .icone { width: 18px; height: 18px; }
.bouton--principal { background: var(--rouge); color: #fff; box-shadow: 0 8px 20px rgba(181, 22, 43, .18); }
.bouton--principal:hover { background: var(--rouge-fonce); }
.bouton--clair { background: #fff; color: var(--navy); border-color: var(--trait); }
.bouton--clair:hover { background: var(--fond-doux); border-color: var(--jaune); }
.bouton--navy { background: var(--navy); color: #fff; }
.bouton--transparent { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.bouton--transparent:hover { background: #fff; color: var(--navy); border-color: var(--jaune); }
.bouton--petit { min-height: 40px; padding: 0 16px; font-size: 14px; }
.bouton--large { width: 100%; }
.bouton-texte { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--rouge); font-weight: 700; cursor: pointer; }
.bouton-texte:hover { text-decoration: underline; text-underline-offset: 3px; }
.bouton-texte--doux { color: var(--texte-doux); font-weight: 600; }

/* 7. CARTES DE COURS ---------------------------------------------- */
.carte { position: relative; background: var(--fond); border: 1px solid var(--trait); border-radius: var(--rayon-lg); box-shadow: var(--ombre-sm); padding: 28px; }
.carte--douce { background: var(--fond-doux); box-shadow: inset 0 1px 0 #fff, var(--ombre-sm); }
.carte--interactive { transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.carte--interactive:hover { transform: translateY(-4px); border-color: var(--rouge-bord); box-shadow: var(--ombre-lg); }
.carte h3 { margin-bottom: 8px; }
.carte > p { font-size: 15px; }
.carte__lien::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.cours { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--fond); border: 1px solid var(--trait);
  border-radius: var(--rayon-lg); box-shadow: var(--ombre-sm); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.cours:hover { transform: translateY(-5px); border-color: var(--rouge-bord); box-shadow: var(--ombre-lg); }
.cours__lien::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cours__lien:focus-visible { outline: none; }
.cours:has(.cours__lien:focus-visible) { outline: 2px solid var(--rouge); outline-offset: 3px; }
.cours__corps { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }
.cours__titre { font-size: 18px; line-height: 1.3; }
.cours__resume { font-size: 14.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cours__pied { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 12px; }
.cours__action { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); font-size: 14px; font-weight: 700; transition: color var(--transition); }
.cours__fleche { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1.5px solid rgba(27, 42, 74, .18);
  border-radius: 50%; transition: background var(--transition), border-color var(--transition), color var(--transition); }
.cours__fleche .icone { width: 17px; height: 17px; transition: transform var(--transition); }
.cours:hover .cours__action { color: var(--rouge); }
.cours:hover .cours__fleche { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.cours:hover .cours__fleche .icone { transform: translateX(3px); }
.cours--horizontal { flex-direction: row; }
.cours--horizontal .couverture { width: 40%; min-width: 280px; height: auto; min-height: 230px; }
.cours--horizontal .cours__corps { padding: 30px 34px; gap: 12px; }
.cours--horizontal .cours__titre { font-size: 24px; }
.cours--verrouille { opacity: .72; }
.cours--verrouille:hover { transform: none; box-shadow: var(--ombre-sm); border-color: var(--trait); }

/* Couverture : un aplat par métier, un motif estompé et un grand pictogramme rogné (comme les cartes du site vitrine) */
.couverture { position: relative; isolation: isolate; height: 150px; padding: 20px 24px; overflow: hidden; background: var(--navy); color: #fff; }
.couverture::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 80%); mask-image: linear-gradient(to left, #000 0%, transparent 80%); }
.couverture__categorie { position: relative; font-size: 13px; font-weight: 700; line-height: 1.3; }
.couverture__niveau { position: absolute; left: 24px; bottom: 18px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.couverture__motif { position: absolute; right: -22px; bottom: -34px; width: 160px; height: 160px; stroke-width: 1; opacity: .24;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.cours:hover .couverture__motif { transform: rotate(-8deg) scale(1.08); }
.couverture__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.couverture--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22, 34, 60, .1), rgba(22, 34, 60, .82)); }
.couverture--photo .couverture__motif { opacity: .35; color: var(--jaune); }
/* image de couverture choisie par le formateur : pas de motif par-dessus, voile léger pour lire les textes */
.couverture--choisie::before { display: none; }
.couverture--choisie::after { background: linear-gradient(180deg, rgba(22, 34, 60, .05) 30%, rgba(22, 34, 60, .72)); }
.couverture-choix { margin-top: 18px; }
.couverture-choix h3 { margin-bottom: 12px; }
.couverture-choix__apercu { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--rayon); margin-bottom: 14px; }
.couverture-choix__formulaire { display: grid; gap: 10px; margin-bottom: 8px; }
.couverture-choix__formulaire .aide { margin: 0; color: var(--texte-doux); font-size: 13px; }
.couverture-choix__formulaire .bouton { justify-self: start; }
.couverture--navy { background: var(--navy); }
.couverture--navy::before { background: linear-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px) 0 0 / 24px 24px; }
.couverture--ciel { background: var(--navy-clair); }
.couverture--ciel::before { background-image: radial-gradient(rgba(255, 255, 255, .22) 1.4px, transparent 1.8px); background-size: 18px 18px; }
.couverture--rouge { background: var(--rouge); }
.couverture--rouge::before { background: repeating-radial-gradient(circle at 100% 100%, transparent 0 22px, rgba(255, 255, 255, .14) 22px 23px); }
.couverture--jaune { background: var(--jaune); color: var(--navy); }
.couverture--jaune::before { background: repeating-linear-gradient(135deg, rgba(27, 42, 74, .13) 0 2px, transparent 2px 14px); }
.couverture--vert { background: var(--vert); }
.couverture--vert::before { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .12) 0 2px, transparent 2px 16px); }
.couverture--prune { background: var(--prune); }
.couverture--prune::before { background: linear-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px) 0 0 / 30px 30px; }
.couverture--grande .couverture__motif { width: 240px; height: 240px; right: -30px; bottom: -50px; }

/* 8. MÉTA ET STATUTS (texte et icônes, sans pastilles) ------------- */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--texte-doux); font-size: 13.5px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta .icone { width: 15px; height: 15px; color: var(--texte-doux); }
.etiquette-texte { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rouge); }
.statut { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.statut .icone { width: 17px; height: 17px; }
.statut--valide { color: var(--vert); }
.statut--encours { color: var(--jaune-texte); }
.statut--afaire { color: var(--rouge); }
.statut--verrou, .statut--neutre { color: var(--texte-doux); }
.score { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.score--ok { color: var(--vert); } .score--moyen { color: var(--jaune-texte); } .score--ko { color: var(--rouge); }

/* 9. PROGRESSION --------------------------------------------------- */
.progression { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--texte-secondaire); }
.progression__barre { flex: 1; height: 6px; border-radius: 99px; background: var(--fond-gris); overflow: hidden; }
.progression__barre span { display: block; height: 100%; border-radius: 99px; background: var(--vert); animation: barre-remplir 1.2s cubic-bezier(.22, 1, .36, 1) .25s both; }
@keyframes barre-remplir { from { width: 0; } }
.progression strong { color: var(--navy); white-space: nowrap; }
.anneau { --p: 0; --c: var(--vert); position: relative; width: 112px; height: 112px; flex: none; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--fond-gris) 0); display: grid; place-items: center; }
.anneau::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #fff; }
.anneau span { position: relative; font-size: 24px; font-weight: 800; color: var(--navy); letter-spacing: -.03em; text-align: center; line-height: 1.1; }
.anneau small { display: block; font-size: 12px; color: var(--texte-doux); font-weight: 600; letter-spacing: 0; }
.anneau { --cible: 0; animation: anneau-remplir 1.6s cubic-bezier(.22, 1, .36, 1) .2s both; }
@keyframes anneau-remplir { from { --p: 0; } to { --p: var(--cible); } }
.anneau--ok.anneau-fini { animation: anneau-remplir 1.6s cubic-bezier(.22, 1, .36, 1) .2s both, anneau-eclat .9s ease 1.8s; }
@keyframes anneau-eclat { 0% { box-shadow: 0 0 0 0 rgba(27, 138, 90, .45); } 100% { box-shadow: 0 0 0 18px rgba(27, 138, 90, 0); } }
.anneau--petit { width: 76px; height: 76px; }
.anneau--petit::before { inset: 7px; }
.anneau--petit span { font-size: 17px; }
.anneau--ok { --c: var(--vert); } .anneau--moyen { --c: var(--jaune); } .anneau--ko { --c: var(--rouge); }
.segments { display: flex; gap: 4px; min-width: 120px; }
.segments span { flex: 1; height: 8px; border-radius: 3px; background: var(--fond-gris); }
.segments .s-valide { background: var(--vert); } .segments .s-encours { background: var(--jaune); }

/* Chiffres clés (comme les encadrés « fiche-info » du site) */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.chiffre { padding: 20px 22px; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--fond-doux); }
.chiffre dt { display: flex; align-items: center; gap: 8px; color: var(--texte-doux); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.chiffre dt .icone { color: var(--rouge); }
.chiffre dd { margin-top: 8px; color: var(--navy); font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.chiffre dd small { display: block; margin-top: 4px; color: var(--texte-secondaire); font-size: 13px; font-weight: 500; letter-spacing: 0; }

/* 10. ENCADRÉS ET OBJECTIFS --------------------------------------- */
.encadre { padding: 28px 30px; border: 1px solid var(--trait); border-radius: var(--rayon-lg); background: var(--fond); }
.encadre--doux { background: var(--fond-doux); }
.encadre--jaune { background: var(--jaune-clair); border-color: rgba(242, 182, 50, .45); }
.encadre__titre { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 18px; }
.encadre__titre .icone { width: 22px; height: 22px; color: var(--rouge); }
.coches { list-style: none; display: grid; gap: 12px; }
.coches--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.coches li { position: relative; padding-left: 30px; color: var(--texte); font-size: 15px; line-height: 1.55; }
.coches li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2.5px solid var(--vert); border-bottom: 2.5px solid var(--vert); transform: rotate(-45deg); }
.objectif { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--rayon); background: var(--jaune-clair); border-left: 4px solid var(--jaune); }
.objectif .icone { width: 22px; height: 22px; color: var(--jaune-texte); margin-top: 2px; }
.objectif p { color: var(--texte); margin: 0; }
.objectif strong { display: block; color: var(--navy); }
.astuce { margin: 14px 0; padding: 14px 18px; border-radius: var(--rayon); background: var(--jaune-clair); color: var(--texte); border-left: 4px solid var(--jaune); max-width: 1000px; }
.lecon h3 { margin: 28px 0 10px; font-size: 20px; }
.lecon h3:first-child { margin-top: 0; }
.lecon p, .lecon li { color: var(--texte); font-size: 16px; line-height: 1.75; max-width: 1000px; }
.lecon p + p { margin-top: 10px; }
.lecon ul { margin: 8px 0 8px 22px; }
.lecon li { margin-bottom: 6px; }
.lecon li::marker { color: var(--rouge); }

/* 11. PLAN DE COURS (accordéon) ----------------------------------- */
.plan { border: 1px solid var(--trait); border-radius: var(--rayon-lg); overflow: hidden; background: #fff; }
.plan details + details { border-top: 1px solid var(--trait); }
.plan summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 20px; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.plan summary::-webkit-details-marker { display: none; }
.plan summary:hover { background: var(--fond-doux); }
.plan__numero { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--fond-gris); color: var(--navy); font-weight: 800; }
.plan__numero .icone { width: 20px; height: 20px; }
.plan__numero--valide { background: var(--vert-clair); color: var(--vert); }
.plan__numero--encours { background: var(--jaune-clair); color: var(--jaune-texte); }
.plan__numero--verrou { color: var(--texte-doux); }
.plan__titre { font-weight: 700; color: var(--navy); line-height: 1.35; }
.plan__titre small { display: block; margin-top: 3px; color: var(--texte-doux); font-weight: 500; font-size: 13.5px; }
.plan__chevron { width: 18px; height: 18px; color: var(--texte-doux); transition: transform var(--transition); }
.plan details[open] .plan__chevron { transform: rotate(90deg); }
.plan__contenu { padding: 0 22px 22px 82px; }
.plan__contenu ol { list-style: none; }
.plan__contenu li { display: flex; align-items: center; gap: 10px; padding: 9px 0; color: var(--texte-secondaire); font-size: 15px; border-bottom: 1px dashed var(--trait); }
.plan__contenu li:last-child { border-bottom: 0; }
.plan__contenu li .icone { color: var(--texte-doux); }
.plan__actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 14px; }

/* 12. SOMMAIRE LATÉRAL (pages de fiche et d'exercice) ------------- */
.lecteur { display: grid; grid-template-columns: clamp(270px, 20vw, 340px) minmax(0, 1fr); gap: 48px; align-items: start; }
.lecteur__cote { position: sticky; top: calc(var(--hauteur-entete) + 20px); max-height: calc(100vh - var(--hauteur-entete) - 40px); overflow: auto;
  display: grid; gap: 16px; align-content: start; scrollbar-width: thin; }
.sommaire { border: 1px solid var(--trait); border-radius: var(--rayon-lg); background: #fff; }
.panneau-classeur { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--trait); border-radius: var(--rayon-lg); background: var(--fond-doux); }
.panneau-classeur__tete { display: flex; align-items: center; gap: 14px; }
.panneau-classeur__tete strong { display: block; color: var(--navy); font-size: 15px; margin-top: 2px; }
.panneau-classeur__tete small { display: block; color: var(--texte-doux); font-size: 13px; }
.panneau-classeur .anneau--petit { width: 58px; height: 58px; }
.panneau-classeur .anneau--petit::before { inset: 6px; }
.panneau-classeur .anneau--petit span { font-size: 15px; }
.panneau-classeur__depot { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--trait); }
.panneau-classeur__depot label { margin: 0; font-size: 13.5px; }
.panneau-classeur__depot input[type=file] { font-size: 13px; }
.panneau-classeur__depot input[type=file]::file-selector-button { padding: 7px 12px; margin-right: 8px; }
/* Colonne étroite : rien ne doit élargir le panneau au-delà de sa piste, les libellés vont à la ligne. */
.panneau-classeur, .panneau-classeur > *, .classeur-local > div { min-width: 0; }
.panneau-classeur .bouton { white-space: normal; line-height: 1.25; padding-block: 8px; }
.panneau-classeur .bouton .icone { flex: none; }
.classeur-local { display: grid; gap: 8px; }
.classeur-local > div { display: grid; gap: 8px; }
.classeur-local [hidden] { display: none; }
.classeur-local__fichier { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--fond); }
.classeur-local__fichier .icone, .classeur-local__fichier svg { flex: none; width: 20px; height: 20px; color: var(--navy); }
.classeur-local__fichier span { min-width: 0; }
.classeur-local__fichier strong { display: block; color: var(--navy); font-size: 13.5px; overflow-wrap: anywhere; }
.classeur-local__fichier small { display: block; color: var(--texte-doux); font-size: 12.5px; }
.classeur-local small.texte-doux { font-size: 12.5px; }
.classeur-local__lien { justify-self: start; padding: 2px 0; border: 0; background: none; color: var(--rouge); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.classeur-local__lien:hover { text-decoration: underline; text-underline-offset: 3px; }
.classeur-local__etapes { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 13.5px; line-height: 1.4; color: var(--texte-secondaire); }
.classeur-local__etapes kbd { padding: 0 5px; border: 1px solid var(--trait-fort); border-radius: 4px; background: var(--fond); font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--navy); }
.panneau-classeur__classique { display: grid; gap: 12px; }
.panneau-classeur__classique [hidden] { display: none; }
.panneau-classeur__autre { padding-top: 12px; border-top: 1px solid var(--trait); }
.panneau-classeur .panneau-classeur__autre > summary, .panneau-classeur .panneau-classeur__versions > summary { font-size: 14px; font-weight: 600; }
.panneau-classeur__classique .classeur-local__lien { justify-self: start; }
.panneau-classeur__autre[open] > summary { margin-bottom: 12px; }
.panneau-classeur__autre .panneau-classeur__depot { padding-top: 0; border-top: 0; }
.classeur-local__message { margin: 0; padding: 10px 12px; border-radius: var(--rayon); background: var(--vert-clair); color: var(--vert); font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.classeur-local__message.erreur { background: var(--rouge-clair); color: var(--rouge); }
.panneau-classeur__liens { display: grid; gap: 4px; }
.panneau-classeur__liens:empty { display: none; }
.panneau-classeur__liens a { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--rouge); font-size: 14px; font-weight: 600; }
.panneau-classeur__liens a:hover { text-decoration: underline; text-underline-offset: 3px; }
.panneau-classeur__versions p { font-size: 13px; margin: 6px 0 8px; }
.panneau-classeur__versions ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.panneau-classeur__versions li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.panneau-classeur__versions a { display: flex; align-items: center; gap: 8px; padding: 5px 0; color: var(--rouge); font-size: 14px; font-weight: 600; }
.panneau-classeur__versions a:hover { text-decoration: underline; text-underline-offset: 3px; }
.attente--petite { padding: 12px 14px; font-size: 14px; }
.bloc-exercice__revoir { display: inline-flex; align-items: center; gap: 6px; margin: -2px 0 10px; font-size: 14px; }
.sommaire__tete { padding: 18px 20px; border-bottom: 1px solid var(--trait); background: var(--fond-doux); }
.sommaire__tete .etiquette-texte { display: block; margin-bottom: 4px; }
.sommaire__tete a { color: var(--navy); font-weight: 800; font-size: 15px; line-height: 1.35; display: block; }
.sommaire__tete .progression { margin-top: 10px; font-size: 13px; }
.sommaire ol { list-style: none; }
.sommaire__partie > a, .sommaire__partie > span { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 12px 18px; font-size: 14px; line-height: 1.4; color: var(--texte); border-left: 3px solid transparent; }
.sommaire__partie > a:hover { background: var(--fond-doux); }
.sommaire__partie.actif > a { background: var(--rouge-clair); border-left-color: var(--rouge); font-weight: 700; color: var(--navy); }
.sommaire__partie .icone { width: 18px; height: 18px; margin-top: 1px; }
.i-valide { color: var(--vert); } .i-verrou { color: var(--texte-doux); } .i-afaire { color: var(--trait-fort); } .i-encours { color: var(--jaune); }
.sommaire__partie > span { color: var(--texte-doux); cursor: not-allowed; }
.sommaire__chapitres { padding: 2px 0 10px; }
.sommaire__chapitres a { display: block; padding: 6px 18px 6px 51px; font-size: 13.5px; line-height: 1.4; color: var(--texte-secondaire); position: relative; }
.sommaire__chapitres a::before { content: ""; position: absolute; left: 30px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--trait-fort); }
.sommaire__chapitres a:hover { color: var(--navy); }
.sommaire__chapitres a.actif { color: var(--rouge); font-weight: 700; }
.sommaire__chapitres a.actif::before { background: var(--rouge); }
.sous-nav { position: sticky; top: var(--hauteur-entete); z-index: 50; display: flex; gap: 28px; margin-bottom: 34px; background: #fff; border-bottom: 1px solid var(--trait); }
.sous-nav a { padding: 16px 0 14px; color: var(--texte-secondaire); font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.sous-nav a:hover { color: var(--navy); border-bottom-color: var(--rouge); }
.suite { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--trait); }
.suite a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--trait); border-radius: var(--rayon); transition: border-color var(--transition), box-shadow var(--transition); }
.suite a:hover { border-color: var(--rouge-bord); box-shadow: var(--ombre); }
.suite small { color: var(--texte-doux); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.suite strong { color: var(--navy); }
.suite .suivant { text-align: right; align-items: flex-end; grid-column: 2; }

/* Ligne d'exercice dans une fiche : aperçu à gauche, texte à droite */
.chapitre { position: relative; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: center; padding: 18px;
  border: 1px solid var(--trait); border-radius: var(--rayon-lg); background: #fff; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
.chapitre + .chapitre { margin-top: 16px; }
.chapitre:hover { border-color: var(--rouge-bord); box-shadow: var(--ombre); transform: translateY(-2px); }
.chapitre h3 { margin: 4px 0 6px; font-size: 19px; }
.chapitre p { font-size: 14.5px; }
.chapitre .meta { margin-top: 10px; }
.chapitre .couverture { height: 140px; border-radius: 10px; }

/* 13. APERÇU D'ONGLET (mini-tableur) ------------------------------ */
.apercu { position: relative; border: 1px solid var(--trait-fort); border-radius: 10px; overflow: hidden; background: #fff; font-family: Calibri, "Segoe UI", Arial, sans-serif; letter-spacing: 0; }
.apercu__barre { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: #217346; color: #fff; font-size: 11.5px; font-weight: 600; }
.apercu__barre i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.apercu__barre span { margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apercu table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.apercu th, .apercu td { border: 1px solid #D9DDE3; padding: 3px 6px; height: 25px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; color: #1F2937; font-weight: 400; }
.apercu thead th { background: #F3F4F6; color: #6B7280; text-align: center; font-size: 10.5px; height: 20px; }
.apercu .num { width: 32px; background: #F3F4F6; color: #6B7280; text-align: center; font-size: 10.5px; }
.apercu .ent { background: #E5E7EB; font-weight: 700; }
.apercu .jaune { background: var(--cellule-jaune); }
.apercu::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: linear-gradient(transparent, #fff); pointer-events: none; }
.apercu--mini table { font-size: 9px; }
.apercu--mini th, .apercu--mini td { height: 17px; padding: 1px 4px; }
.apercu--mini thead th, .apercu--mini .num { font-size: 8px; height: 14px; }
.apercu--mini .num { width: 20px; }
.apercu--mini .apercu__barre { padding: 5px 8px; font-size: 10px; }
.apercu__legende { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: 13px; color: var(--texte-doux); }
.apercu__legende span { display: inline-flex; align-items: center; gap: 7px; }
.apercu__legende i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid #D9DDE3; background: var(--cellule-jaune); }
.apercu__legende i.gris { background: #E5E7EB; }

/* 14. ÉTAPES ET CONSIGNES ----------------------------------------- */
.etapes { list-style: none; counter-reset: etape; }
.etapes li { position: relative; counter-increment: etape; padding: 0 0 22px 54px; color: var(--texte); font-size: 15.5px; line-height: 1.65; }
.etapes li::before { content: counter(etape); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; font-weight: 800; }
.etapes li::after { content: ""; position: absolute; left: 16px; top: 36px; bottom: 4px; width: 2px; background: var(--trait); }
.etapes li:last-child::after { display: none; }
.etapes li[hidden] { display: none; }
.rappels { list-style: none; display: grid; gap: 8px; margin-top: 6px; }
.rappels li { padding: 10px 14px; border-radius: var(--rayon-sm); background: var(--fond-doux); color: var(--texte); font-size: 14.5px; }
.rappels li strong { color: var(--rouge); }
.verifie { list-style: none; display: grid; gap: 12px; }
.verifie li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; font-size: 15px; color: var(--texte); }
.verifie .icone { width: 18px; height: 18px; margin-top: 3px; color: var(--vert); }
.verifie small { color: var(--texte-doux); font-weight: 600; white-space: nowrap; }
.comment { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: c; }
.comment > div { position: relative; padding-top: 54px; }
.comment > div::before { counter-increment: c; content: counter(c); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--rouge-clair); color: var(--rouge); font-weight: 800; }
.comment strong { display: block; color: var(--navy); font-size: 16px; margin-bottom: 4px; }
.comment p { font-size: 14.5px; }

/* 15. TABLEAUX ET FORMULAIRES ------------------------------------- */
.tableau { width: 100%; border-collapse: collapse; background: #fff; font-size: 14.5px; }
.tableau th { padding: 12px 16px; text-align: left; color: var(--texte-doux); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--trait); background: var(--fond-doux); white-space: nowrap; }
.tableau td { padding: 14px 16px; border-bottom: 1px solid var(--trait-clair); vertical-align: middle; color: var(--texte); }
.tableau tr:last-child td { border-bottom: 0; }
.tableau tbody tr:hover { background: var(--fond-doux); }
.tableau .nombre { text-align: right; font-variant-numeric: tabular-nums; }
.tableau-cadre { border: 1px solid var(--trait); border-radius: var(--rayon-lg); overflow: auto; background: #fff; }
.matrice td { text-align: center; font-variant-numeric: tabular-nums; }
.matrice td:first-child, .matrice th:first-child { text-align: left; }
.matrice .c-ok { background: var(--vert-clair); color: var(--vert); font-weight: 700; }
.matrice .c-moyen { background: var(--jaune-clair); color: var(--jaune-texte); font-weight: 700; }
.matrice .c-ko { background: var(--rouge-clair); color: var(--rouge); font-weight: 700; }
.matrice .c-vide { color: var(--trait-fort); }
.personne { display: flex; align-items: center; gap: 12px; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; font-weight: 800; }
.avatar--grand { width: 64px; height: 64px; font-size: 21px; background: var(--jaune); color: var(--navy); }
.personne strong { display: block; color: var(--navy); font-size: 15px; }
.personne small { display: block; color: var(--texte-doux); font-size: 13px; }

label, .label { display: block; margin-bottom: 6px; color: var(--navy); font-size: 14px; font-weight: 700; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--trait-fort); border-radius: var(--rayon); background: #fff; color: var(--texte); font-size: 15px;
  transition: border-color var(--transition), box-shadow var(--transition); }
select[multiple] { min-height: 180px; }
textarea { min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(27, 42, 74, .08); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--rouge); vertical-align: -3px; margin-right: 6px; }
input[type=file] { width: 100%; font-size: 14px; color: var(--texte-secondaire); }
input[type=file]::file-selector-button { margin-right: 14px; padding: 10px 16px; border: 1px solid var(--trait); border-radius: var(--rayon-sm); background: #fff;
  color: var(--navy); font-weight: 700; cursor: pointer; }
.champ { margin-bottom: 18px; }
.champ .aide { margin-top: 6px; color: var(--texte-doux); font-size: 13px; }
.champ .erreur, .errorlist { margin-top: 6px; color: var(--rouge); font-size: 13.5px; list-style: none; }
.champ ul:not(.errorlist) { list-style: none; columns: 2; max-height: 340px; overflow: auto; padding: 12px; border: 1px solid var(--trait); border-radius: var(--rayon); }
.champ ul:not(.errorlist) label { font-weight: 500; color: var(--texte); font-size: 14px; }
.formulaire-ligne { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.formulaire-ligne > div { flex: 1; min-width: 200px; }
.recherche-barre { display: grid; grid-template-columns: minmax(0, 1fr) 240px 200px auto; gap: 12px; margin-bottom: 28px; }
.recherche-barre--2 { grid-template-columns: minmax(0, 1fr) 260px auto; }
.recherche-champ { position: relative; }
.recherche-champ .icone { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--texte-doux); }
.recherche-champ input { padding-left: 44px; }
.resultats-compte { margin: -14px 0 22px; color: var(--texte-doux); font-size: 14px; }
.messages { display: grid; gap: 10px; margin-bottom: 28px; }
.message { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--rayon); background: var(--vert-clair); color: var(--vert); font-weight: 600; }
.message--error { background: var(--rouge-clair); color: var(--rouge); }
.message--warning, .message--info { background: var(--jaune-clair); color: var(--jaune-texte); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 34px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--trait); border-radius: var(--rayon-sm); font-weight: 700; font-size: 14px; color: var(--navy); }
.pagination a:hover { border-color: var(--jaune); background: var(--fond-doux); }
.pagination .courante { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .rien { border: 0; color: var(--texte-doux); }

/* 16. RAPPORT DE CORRECTION --------------------------------------- */
.resultat { display: flex; gap: 28px; align-items: center; }
.resultat__texte h2 { font-size: 26px; margin-bottom: 4px; }
.critere { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--trait-clair); }
.critere:last-child { border-bottom: 0; }
.critere .icone { width: 20px; height: 20px; margin-top: 2px; }
.critere--valide .icone { color: var(--vert); } .critere--partiel .icone { color: var(--jaune-texte); } .critere--non_valide .icone, .critere--erreur .icone { color: var(--rouge); }
.critere__libelle { color: var(--texte); font-weight: 600; font-size: 15px; }
.critere__message { margin-top: 3px; color: var(--texte-secondaire); font-size: 14px; }
.critere__points { color: var(--texte-doux); font-size: 14px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bloc-exercice { padding: 22px 26px; border: 1px solid var(--trait); border-radius: var(--rayon-lg); background: #fff; }
.bloc-exercice + .bloc-exercice { margin-top: 16px; }
.bloc-exercice { animation: apparition .5s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--g, 0) * 180ms + 250ms); }
.bloc-exercice .critere { animation: apparition .45s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--g, 0) * 180ms + var(--i, 0) * 90ms + 450ms); }
.bloc-exercice .progression__barre span { animation-delay: calc(var(--g, 0) * 180ms + 400ms); }
@keyframes apparition { from { opacity: 0; transform: translateY(10px); } }
.correction-en-cours { display: flex; align-items: center; gap: 24px; padding: 28px 30px; border: 1px solid var(--trait); border-radius: var(--rayon-lg); background: var(--fond-doux); }
.correction-en-cours__anneau { position: relative; display: grid; place-items: center; width: 88px; height: 88px; flex: none; border-radius: 50%;
  background: conic-gradient(var(--rouge) 0 25%, var(--jaune) 25% 45%, var(--fond-gris) 45%); animation: tourne 1.1s linear infinite; }
.correction-en-cours__anneau::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.correction-en-cours__anneau span { position: relative; display: grid; place-items: center; color: var(--vert); animation: tourne 1.1s linear infinite reverse; }
.correction-en-cours__anneau .icone { width: 30px; height: 30px; }
.correction-en-cours__etapes { position: relative; height: 30px; margin: 4px 0; overflow: hidden; }
.correction-en-cours__etapes span { position: absolute; inset: 0; color: var(--navy); font-size: 20px; font-weight: 800; letter-spacing: -.02em; opacity: 0; animation: etape-defile 8s infinite both; }
.correction-en-cours__etapes span:nth-child(2) { animation-delay: 2s; } .correction-en-cours__etapes span:nth-child(3) { animation-delay: 4s; } .correction-en-cours__etapes span:nth-child(4) { animation-delay: 6s; }
@keyframes etape-defile { 0% { opacity: 0; transform: translateY(14px); } 4%, 20% { opacity: 1; transform: none; } 24%, 100% { opacity: 0; transform: translateY(-14px); } }
.correction-en-cours p { margin: 0; font-size: 14.5px; }
.confetti { position: fixed; top: -14px; z-index: 500; width: 10px; height: 14px; border-radius: 2px; pointer-events: none; animation: confetti-chute linear forwards; }
@keyframes confetti-chute { to { transform: translate3d(var(--dx), 105vh, 0) rotate(var(--rot)); opacity: .9; } }
.bloc-exercice__tete { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 10px; }
.bloc-exercice__tete h3 { font-size: 17px; }
.bloc-exercice .progression { margin-bottom: 8px; }
.attente { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border: 1px dashed var(--trait-fort); border-radius: var(--rayon-lg); background: var(--fond-doux); color: var(--navy); font-weight: 600; }
.attente::before { content: ""; width: 22px; height: 22px; flex: none; border: 3px solid var(--trait); border-top-color: var(--rouge); border-radius: 50%; animation: tourne 1s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* 17. VIDÉO ET DIVERS --------------------------------------------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--rayon-lg); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video--protegee { outline: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.video--protegee:focus-visible { box-shadow: 0 0 0 3px var(--jaune); }
.video__cible, .video__cible iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Le bouclier recouvre toute l'iframe : aucun lien ni menu YouTube n'est atteignable. */
.video__bouclier { position: absolute; inset: 0; z-index: 2; background: transparent; cursor: pointer; }
.video__filigrane { position: absolute; z-index: 3; pointer-events: none; max-width: 70%; padding: 2px 6px; color: rgba(255, 255, 255, .55); text-shadow: 0 0 3px rgba(0, 0, 0, .7); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: left 1.2s ease, top 1.2s ease; }
.video__lancer { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 10px; border: 0; background: var(--navy-fonce); color: #fff; font: inherit; font-weight: 600; cursor: pointer; padding: 20px; text-align: center; }
.video__lancer .icone { width: 64px; height: 64px; color: var(--jaune); stroke-width: 1.5; }
.video__lancer:disabled { cursor: progress; opacity: .8; }
.video--chargement .video__lancer span::after { content: " · chargement…"; }
/* En pause ou à la fin, on voile l'image : les suggestions et le titre YouTube ne s'affichent pas. */
.video--pause .video__bouclier, .video--fin .video__bouclier { background: rgba(10, 20, 40, .88); }
.video--pause .video__bouclier::after, .video--fin .video__bouclier::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--jaune); font-size: 54px; }
.video--fin .video__bouclier::after { content: "↻ Revoir"; font-size: 22px; font-weight: 700; }
.video__commandes { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); color: #fff; font-size: 13px; opacity: 0; transition: opacity .2s; }
.video__commandes[hidden] { display: none; }
.video--protegee:hover .video__commandes, .video--protegee:focus-within .video__commandes, .video--pause .video__commandes, .video--fin .video__commandes { opacity: 1; }
.video__btn { border: 0; background: transparent; color: #fff; font-size: 16px; line-height: 1; padding: 6px; cursor: pointer; min-width: 32px; }
.video__temps { white-space: nowrap; font-variant-numeric: tabular-nums; }
.video__barre { flex: 1; min-width: 40px; accent-color: var(--jaune); }
.video__vitesse { background: rgba(0, 0, 0, .5); color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: 4px; font-size: 12px; padding: 2px 4px; }
.video__erreur { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; margin: 0; padding: 20px; background: var(--navy-fonce); color: #fff; text-align: center; }
.video__erreur[hidden] { display: none; }
.video--protegee:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; }
@media (max-width: 520px) { .video__temps { display: none; } .video__vitesse { max-width: 58px; } }
.video-vide { position: relative; isolation: isolate; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--rayon-lg); overflow: hidden; background: var(--navy-fonce); color: #fff; text-align: center; padding: 20px; }
.video-vide img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.video-vide .icone { width: 54px; height: 54px; margin: 0 auto 12px; color: var(--jaune); stroke-width: 1.5; }
.video-vide strong { color: #fff; display: block; font-size: 17px; }
.video-vide p { color: rgba(255, 255, 255, .75); font-size: 14px; margin-top: 4px; }
.video-formulaire { display: flex; gap: 10px; margin-top: 12px; }
.video-formulaire input { flex: 1; }
.video-formulaire + .texte-doux { margin-top: 6px; }
.vide { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: center; padding: 28px; border: 1px dashed var(--trait-fort); border-radius: var(--rayon-lg); background: var(--fond-doux); }
.vide img { width: 200px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); }
.vide h3 { margin-bottom: 6px; }
.vide .bouton { margin-top: 16px; }
.encart-photo { display: grid; grid-template-columns: minmax(0, 1fr) 40%; overflow: hidden; border-radius: var(--rayon-lg); background: var(--navy-fonce); color: #fff; }
.encart-photo__texte { padding: 40px; }
.encart-photo__texte h2 { color: #fff; margin: 10px 0 12px; }
.encart-photo__texte p { color: rgba(255, 255, 255, .74); }
.encart-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.carte-action { display: flex; gap: 16px; align-items: flex-start; }
.carte-action .pastille-icone { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: var(--rayon); background: var(--rouge-clair); color: var(--rouge); }
.carte-action .pastille-icone .icone { width: 22px; height: 22px; }
.carte-action h3 { margin: 2px 0 4px; }
.carte-action p { font-size: 14.5px; }
.depot-zone { padding: 26px; border: 2px dashed var(--trait-fort); border-radius: var(--rayon-lg); background: var(--fond-doux); }
.repli > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; list-style: none; font-weight: 700; color: var(--navy); }
.repli > summary::-webkit-details-marker { display: none; }
.repli > summary .icone { transition: transform var(--transition); color: var(--texte-doux); }
.repli[open] > summary .icone { transform: rotate(90deg); }
.repli[open] > summary { margin-bottom: 18px; }
.separateur { height: 1px; background: var(--trait); margin: 28px 0; border: 0; }

/* Connexion */
.connexion { display: grid; grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - var(--hauteur-entete)); }
.connexion__visuel { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-fonce); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 60px 64px; }
.connexion__visuel::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .14) 1.2px, transparent 1.6px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 0% 100%, #000, transparent 70%); mask-image: radial-gradient(ellipse 80% 80% at 0% 100%, #000, transparent 70%); }
.connexion__visuel h1 { color: #fff; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.08; margin: 14px 0 18px; max-width: 470px; }
.connexion__visuel h1 span { background: linear-gradient(transparent 76%, var(--jaune) 76% 90%, transparent 90%); }
.connexion__visuel > p { color: rgba(255, 255, 255, .74); max-width: 430px; font-size: 17px; margin-bottom: 26px; }
.connexion__visuel .coches { max-width: 420px; }
.connexion__visuel .coches li { color: rgba(255, 255, 255, .9); }
.connexion__visuel .coches li::before { border-color: var(--jaune); }
.connexion__photo { position: absolute; right: 0; bottom: 0; width: 40%; max-width: 320px; z-index: -1; }
.connexion__formulaire { display: flex; align-items: center; justify-content: center; padding: 60px 40px; background: var(--fond-doux); }
.connexion__carte { width: min(440px, 100%); padding: 40px; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon-xl); box-shadow: var(--ombre); }
.connexion__carte h2 { margin-bottom: 6px; }
.connexion__carte > p { margin-bottom: 24px; }
.connexion__carte .bouton { width: 100%; margin-top: 6px; }

/* 18. PIED DE PAGE ET RESPONSIVE ---------------------------------- */
.pied { padding: 40px 0; background: var(--navy-fonce); color: rgba(255, 255, 255, .7); font-size: 14px; }
.pied__barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.pied img { height: 30px; width: auto; }
.pied a { color: rgba(255, 255, 255, .85); }
.pied a:hover { color: #fff; }
.pied p { color: rgba(255, 255, 255, .6); }
.pied__liens { display: flex; gap: 22px; }

@media (max-width: 1080px) {
  .grille--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .colonnes, .colonnes--cours, .lecteur { grid-template-columns: 1fr; }
  .lecteur__cote { position: static; max-height: none; }
  .bandeau__visuel, .couverture-flottante { display: none; }
  .comment { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collant { position: static; }
  .recherche-barre { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --gouttiere: 16px; }
  .grille, .grille--2, .grille--4, .chiffres, .comment, .coches--2, .recherche-barre, .recherche-barre--2 { grid-template-columns: 1fr; }
  .chapitre { grid-template-columns: 1fr; }
  .cours--horizontal { flex-direction: column; }
  .cours--horizontal .couverture { width: 100%; min-height: 150px; }
  .connexion { grid-template-columns: 1fr; }
  .connexion__visuel { display: none; }
  .entete__nom, .entete__lien { display: none; }
  .nav-principale { overflow-x: auto; scrollbar-width: none; }
  .sous-menu, .nav-chevron { display: none; }
  .entete__barre { gap: 12px; }
  .vide, .encart-photo { grid-template-columns: 1fr; }
  .section__tete { flex-direction: column; align-items: flex-start; }
  .suite { grid-template-columns: 1fr; }
  .suite .suivant { grid-column: 1; }
  .sous-nav { overflow-x: auto; }
  .resultat { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } .anneau { --p: var(--cible); } .confetti { display: none; } }

/* Mise en place d'une cohorte : trois étapes repliables, avec leur état */
.mise-en-place { display: grid; gap: 14px; }
.etape-cohorte { border: 1px solid var(--trait); border-radius: var(--rayon-lg); background: #fff; box-shadow: var(--ombre-sm); }
.etape-cohorte[open] { border-color: var(--trait-fort); box-shadow: var(--ombre); }
.etape-cohorte > summary { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 24px; cursor: pointer; list-style: none; }
.etape-cohorte > summary::-webkit-details-marker { display: none; }
.etape-cohorte__numero { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 17px; }
.etape-cohorte__numero .icone { width: 22px; height: 22px; }
.etape-cohorte--faite .etape-cohorte__numero { background: var(--vert-clair); color: var(--vert); }
.etape-cohorte--attente .etape-cohorte__numero, .etape-cohorte--option .etape-cohorte__numero { background: var(--fond-gris); color: var(--texte-doux); }
.etape-cohorte__titre strong { display: block; color: var(--navy); font-size: 17px; }
.etape-cohorte__titre em { margin-left: 8px; color: var(--texte-doux); font-size: 13px; font-style: normal; font-weight: 600; }
.etape-cohorte__titre small { display: block; margin-top: 2px; color: var(--texte-secondaire); font-size: 14px; }
.etape-cohorte--faite .etape-cohorte__titre small { color: var(--vert); font-weight: 600; }
.etape-cohorte__action { display: inline-flex; align-items: center; gap: 8px; color: var(--rouge); font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.etape-cohorte__action .icone { transition: transform var(--transition); }
.etape-cohorte[open] .etape-cohorte__action .icone { transform: rotate(90deg); }
.etape-cohorte__corps { padding: 4px 24px 24px 88px; }
.etape-cohorte__pourquoi { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; padding: 14px 18px; border-radius: var(--rayon); background: var(--fond-doux); color: var(--texte); font-size: 15px; max-width: 1000px; }
.etape-cohorte__pourquoi .icone { width: 20px; height: 20px; margin-top: 2px; color: var(--rouge); }
.choix-cible { border: 0; display: grid; gap: 10px; }
.choix-cible > label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; color: var(--texte); }
.choix-cible input[type=radio] { width: 18px; height: 18px; accent-color: var(--rouge); }
.choix-cible__personnes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; padding: 12px 14px; border: 1px solid var(--trait); border-radius: var(--rayon); max-height: 220px; overflow: auto; }
.choix-cible__personnes[hidden] { display: none; }
.choix-cible__personnes label { margin: 0; font-weight: 500; font-size: 14px; color: var(--texte); }
.choix-cible__personnes small { color: var(--texte-doux); }
.apercu-parcours { min-height: 100%; padding: 26px 28px; border: 1px dashed var(--trait-fort); border-radius: var(--rayon-lg); background: var(--fond-doux); }
.apercu-parcours h3 { margin: 6px 0 8px; font-size: 20px; }
.apercu-parcours p { font-size: 14.5px; margin-bottom: 10px; }
.apercu-parcours__fiches { margin: 8px 0 16px 20px; }
.apercu-parcours__fiches li { padding: 3px 0; color: var(--texte); font-weight: 600; font-size: 14.5px; }
.apercu-parcours__fiches li::marker { color: var(--rouge); font-weight: 800; }
.apercu-parcours__vide { display: grid; place-items: center; gap: 10px; height: 100%; min-height: 220px; text-align: center; color: var(--texte-doux); }
.apercu-parcours__vide .icone { width: 40px; height: 40px; color: var(--trait-fort); }
@media (max-width: 760px) {
  .etape-cohorte > summary { grid-template-columns: 40px minmax(0, 1fr); }
  .etape-cohorte__action { display: none; }
  .etape-cohorte__corps { padding: 4px 18px 20px; }
}
p .icone, .lien .icone, .texte-doux .icone { display: inline-block; vertical-align: -3px; }

.format-csv { margin: 14px 0; padding: 14px 16px; border: 1px dashed var(--trait-fort); border-radius: var(--rayon); background: var(--fond-doux); }
.format-csv__titre { display: block; margin-bottom: 8px; color: var(--texte-doux); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.format-csv__ligne { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 10px; padding: 6px 0; font-size: 14px; }
.format-csv__ligne--entete { font: 700 13.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--navy); border-bottom: 1px solid var(--trait); }
.format-csv__ligne:not(.format-csv__ligne--entete) span { color: var(--texte-doux); font-style: italic; }

.deja-affectes { margin-bottom: 18px; padding: 16px 18px; border: 1px solid var(--trait); border-left: 4px solid var(--vert); border-radius: var(--rayon); background: #fff; max-width: 1000px; }
.deja-affectes__ligne { padding: 8px 0; border-top: 1px solid var(--trait-clair); }
.deja-affectes__ligne:first-of-type { border-top: 0; }
.deja-affectes__ligne small { display: block; margin-top: 2px; color: var(--texte-doux); font-size: 13.5px; }
.etape-cohorte__titre small { overflow-wrap: anywhere; }

/* Fiches et essais (formateur) : fiches groupées par métier, une ligne par fiche */
.sauts-metiers { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.sauts-metiers a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--trait); border-radius: 999px; background: #fff; color: var(--texte); font-size: 14px; font-weight: 600; transition: border-color var(--transition), color var(--transition); }
.sauts-metiers a:hover { border-color: var(--rouge-bord); color: var(--rouge); }
.sauts-metiers small { color: var(--texte-doux); font-weight: 600; }
.groupe-fiches { margin-top: 36px; }
.groupe-fiches__tete { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.groupe-fiches__tete h2 { font-size: 21px; }
.groupe-fiches__compte { color: var(--texte-doux); font-size: 14px; font-weight: 600; }
.liste-fiches { list-style: none; border: 1px solid var(--trait); border-radius: var(--rayon-lg); background: #fff; overflow: hidden; }
.ligne-fiche { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto auto; align-items: center; gap: 8px 24px; padding: 14px 20px; border-top: 1px solid var(--trait-clair); transition: background var(--transition); }
.ligne-fiche:first-child { border-top: 0; }
.ligne-fiche:hover { background: var(--fond-doux); }
.ligne-fiche--inactive { opacity: .6; }
.ligne-fiche__titre { color: var(--navy); font-size: 16px; font-weight: 700; line-height: 1.35; }
.ligne-fiche__titre:hover { color: var(--rouge); }
.ligne-fiche__texte p { margin-top: 2px; font-size: 14px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne-fiche__meta { flex-wrap: nowrap; white-space: nowrap; }
.ligne-fiche__etat { color: var(--rouge); font-weight: 700; }
.ligne-fiche__actions { display: flex; align-items: center; gap: 18px; }
.ligne-fiche__actions .bouton .icone { width: 15px; height: 15px; }
.niveau { justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.niveau--debutant { background: var(--vert-clair); color: var(--vert); }
.niveau--intermediaire { background: var(--jaune-clair); color: var(--jaune-texte); }
.niveau--tcd { background: var(--rouge-clair); color: var(--rouge); }
@media (max-width: 900px) {
  .ligne-fiche { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 16px; }
  .ligne-fiche .niveau { grid-column: 1 / -1; }
  .ligne-fiche__texte { grid-column: 1 / -1; }
  .ligne-fiche__texte p { white-space: normal; }
  .ligne-fiche__meta { flex-wrap: wrap; white-space: normal; }
}
.sur-mesure { margin-top: 28px; padding: 16px 20px; border: 1px dashed var(--trait-fort); border-radius: var(--rayon); color: var(--texte-secondaire); font-size: 15px; }

/* Composer une fiche : choix des exercices à gauche, « Votre fiche » à droite */
.composer { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr) clamp(340px, 28vw, 430px); align-items: start; }
.composer__filtres { display: grid; grid-template-columns: minmax(0, 1fr) 210px 210px; gap: 12px; }
.composer__groupe { margin-top: 26px; }
.composer__groupe h2 { margin-bottom: 10px; font-size: 18px; }
.composer__groupe h2 small { margin-left: 6px; color: var(--texte-doux); font-size: 14px; font-weight: 600; }
.composer__liste { list-style: none; border: 1px solid var(--trait); border-radius: var(--rayon-lg); background: #fff; overflow: hidden; }
.exo { border-top: 1px solid var(--trait-clair); }
.exo:first-child { border-top: 0; }
.exo label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 64px; align-items: center; gap: 14px; margin: 0; padding: 12px 18px; cursor: pointer; font-weight: 400; transition: background var(--transition); }
.exo label:hover { background: var(--fond-doux); }
.exo input[type=checkbox] { margin: 0; }
.exo:has(input:checked) label { background: var(--rouge-clair); }
.exo__texte strong { color: var(--navy); font-size: 15px; }
.exo__texte small { display: block; margin-top: 2px; color: var(--texte-doux); font-size: 13.5px; line-height: 1.45; }
.exo__points { color: var(--texte-doux); font-size: 13.5px; font-weight: 600; text-align: right; white-space: nowrap; }
.composer__fiche .carte { padding: 24px; }
.composer__fiche h2 { font-size: 20px; }
.composer__resume { margin: 2px 0 14px; color: var(--texte-secondaire); font-size: 14.5px; font-weight: 600; }
.composer__selection { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: exo; max-height: 300px; overflow: auto; }
.composer__selection li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--trait-clair); counter-increment: exo; }
.composer__selection li::before { content: counter(exo); display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 999px; background: var(--fond-gris); color: var(--navy); font-size: 12.5px; font-weight: 800; }
.composer__nom { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; }
.composer__nom strong { display: block; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer__nom code { font-size: 12px; }
.composer__actions { display: flex; gap: 2px; flex: none; }
.composer__mini { width: 28px; height: 28px; border: 1px solid var(--trait); border-radius: var(--rayon-sm); background: #fff; color: var(--navy); font-size: 14px; line-height: 1; cursor: pointer; }
.composer__mini:hover:not(:disabled) { border-color: var(--navy); }
.composer__mini:disabled { opacity: .35; cursor: default; }
.composer__vide { margin-bottom: 18px; padding: 14px; border: 1px dashed var(--trait-fort); border-radius: var(--rayon); color: var(--texte-doux); font-size: 14px; text-align: center; }
.composer__vide[hidden] { display: none; }
.composer__deux { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.composer__options { margin: 4px 0 18px; padding-top: 12px; border-top: 1px solid var(--trait-clair); font-size: 14.5px; }
.composer__apres { margin-top: 10px; text-align: center; font-size: 13px; }
#creer:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
@media (max-width: 1000px) {
  .composer { grid-template-columns: 1fr; }
  .composer__fiche { position: static; order: -1; }
  .composer__filtres { grid-template-columns: 1fr; }
  .exo label { grid-template-columns: auto minmax(0, 1fr); }
  .exo .niveau, .exo__points { grid-column: 2; }
}
.composer .resultats-compte { margin: 14px 0 0; }

/* Panneau « Mon classeur » : un bouton, une ligne d'aide, le reste dans « Autres options » */
.classeur-local__aide { display: block; color: var(--texte-doux); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.classeur-local__aide kbd { padding: 0 4px; border: 1px solid var(--trait-fort); border-radius: 4px; background: var(--fond); font-family: inherit; font-size: 11.5px; font-weight: 600; }
.classeur-local__plus { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--trait); }
.panneau-classeur .classeur-local__plus > summary { font-size: 13.5px; font-weight: 600; color: var(--texte-secondaire); }
.classeur-local__plus[open] > summary { margin-bottom: 10px; }
.classeur-local__plus-liste { display: grid; gap: 8px; justify-items: start; }
.classeur-local__plus-liste [hidden] { display: none; }
.classeur-local__plus-liste .panneau-classeur__depot { width: 100%; padding-top: 0; border-top: 0; }
.bouton--attente { opacity: .7; pointer-events: none; }
