/* VRQ Gestion · rendu de la maquette du 27 octobre 2026. Licence EUPL 1.2. */
/* Police hébergée ici (licence SIL OFL) : aucun appel à un service tiers. */
@font-face { font-family: Archivo; font-style: normal; font-weight: 400; font-display: swap; src: url(/polices/archivo-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Archivo; font-style: normal; font-weight: 500; font-display: swap; src: url(/polices/archivo-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Archivo; font-style: normal; font-weight: 600; font-display: swap; src: url(/polices/archivo-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Archivo; font-style: normal; font-weight: 700; font-display: swap; src: url(/polices/archivo-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: Archivo; font-style: normal; font-weight: 800; font-display: swap; src: url(/polices/archivo-latin-800-normal.woff2) format('woff2'); }

:root {
  --encre: #141414; --encre-2: #4A4A45; --encre-3: #6E6E68; --gris: #A6A296;
  --or: #F6BD14; --or-fonce: #7A5600; --or-vif: #D99A00; --or-pale: #FDF0D2;
  --fond: #F5F4EF; --papier: #F5F4EF; --carte: #FFFFFF;
  --trait: #E6E3D9; --trait-fort: #D9D5C9; --trait-2: #EFECE3; --anneau: #CFCBBF;
  --vert: #2E6B3F; --vert-pale: #E4F0E6;
  --bleu: #1D5FA8; --bleu-pale: #E5EFFB;
  --rose: #A3315E; --rose-pale: #FBE6EE;
  --rouge: #9A2B1F; --rouge-pale: #F7E3DF;
  --violet: #6B3FA0; --violet-pale: #F0E9FA;
  --sarcelle: #0F6E6A; --sarcelle-pale: #DFF3F1;
  /* Une couleur par étape du parcours, comme sur la maquette. */
  --e-besoin: #2F6FB3; --e-positionnement: #7A4FB5; --e-contrat: #D99A00; --e-convocation: #1F8A84;
  --e-emargement: #3C8A52; --e-acquis: #D0652E; --e-satisfaction: #C2457A; --e-certificat: #3A3A36;
  --rayon: 14px; --rayon-btn: 10px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html, body { margin: 0; background: var(--fond); color: var(--encre); font: 15px/1.5 Archivo, system-ui, -apple-system, Segoe UI, sans-serif; }
a { color: var(--bleu); }
a:hover { color: #123F73; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: 34px; }
h2 { font-size: 19px; letter-spacing: -0.01em; }
h3 { font-size: 16px; font-weight: 700; letter-spacing: 0; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* --- Cadre : barre latérale, en-tête, contenu --- */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--encre) 0 236px, var(--fond) 236px); }
.nav { background: var(--encre); color: #E9E6DC; padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.marque { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.marque i { width: 36px; height: 36px; border-radius: 10px; background: var(--or); color: var(--encre); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; font-size: 12px; letter-spacing: .02em; flex: none; }
.marque span { display: flex; flex-direction: column; line-height: 1.25; font-weight: 700; font-size: 16px; }
.nav .marque span { color: #FFFFFF; }
.marque small { font-weight: 400; font-size: 12px; color: var(--gris); }
.nav .groupe { margin: 18px 12px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
.nav .groupe:first-of-type { margin-top: 10px; }
.nav a.lien { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--trait-fort); font-weight: 500; font-size: 14px; }
.nav a.lien:hover { background: #262626; color: #FFFFFF; }
.nav a.lien[aria-current="page"] { background: var(--or); color: var(--encre); font-weight: 700; }
.nav .compteur { margin-left: auto; font-size: 12px; font-weight: 700; background: var(--or); color: var(--encre); border-radius: 999px; padding: 1px 8px; }
.nav a.lien[aria-current="page"] .compteur { background: var(--encre); color: var(--or); }
.nav .pied { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.conseil { background: #1F1F1E; border: 1px solid #2E2E2C; border-radius: 12px; padding: 14px; }
.conseil p { margin: 0; font-size: 12px; line-height: 1.45; color: #BDB9AD; }
.conseil strong { display: block; font-size: 13px; color: #FFFFFF; margin-bottom: 4px; }
.conseil a { display: inline-flex; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--or); text-decoration: none; }
.qui { display: flex; align-items: center; gap: 10px; padding: 4px 8px; }
.qui .avatar { background: #3A3A36; color: #FFFFFF; }
.qui span.nomqui { display: flex; flex-direction: column; line-height: 1.25; font-size: 13px; font-weight: 600; color: #FFFFFF; min-width: 0; }
.qui small { font-size: 12px; font-weight: 400; color: var(--gris); }
.liens-pied { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0 8px; font-size: 12px; color: var(--gris); }
.lien-nav { background: none; border: 0; padding: 0; color: #D6D2C6; text-decoration: underline; cursor: pointer; font-size: 12px; }
.nav .pied a.lien-nav { color: var(--gris); }
.licence { padding: 0 8px; font-size: 11px; color: #8B887D; }
.choix-org { display: grid; gap: 4px; color: var(--gris); font-size: 12px; padding: 0 8px 12px; }
.choix-org select { background: #1D1D1D; color: #FFFFFF; border: 1px solid #333333; border-radius: 8px; padding: 6px 8px; }
/* Lot RA : repère discret de l'accès de contrôle du responsable sur l'organisme ouvert, dans la barre latérale. */
.acces-controle { display: grid; gap: 6px; color: var(--gris); font-size: 12px; padding: 0 8px 12px; }
.acces-controle .repere { display: grid; gap: 2px; margin: 0; color: #FFFFFF; font-weight: 600; }
.acces-controle .repere small { color: var(--gris); font-weight: 400; }
.acces-controle .btn { width: 100%; }
.contenu-nav { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; }
.menu-mobile { display: none; }

.zone { min-width: 0; display: flex; flex-direction: column; }
.barre { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 32px; background: var(--carte); border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 20; }
.recherche { position: relative; flex: 1 1 280px; }
.recherche label { display: flex; align-items: center; gap: 10px; background: var(--fond); border: 1px solid var(--trait); border-radius: 10px; padding: 0 14px; color: var(--encre-3); font-size: 14px; }
.recherche input { flex: 1; min-width: 0; height: 42px; border: 0; background: transparent; outline: none; padding: 0; }
.recherche label:focus-within { border-color: var(--encre-3); }
.resultats { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; box-shadow: 0 16px 40px rgba(20, 20, 20, .12); padding: 6px; z-index: 30; max-height: 70vh; overflow-y: auto; }
.resultats p.titre { margin: 8px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-3); }
.resultats a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--encre); text-decoration: none; }
.resultats a:hover, .resultats a:focus { background: var(--fond); outline: none; }
.resultats a small { display: block; color: var(--encre-3); font-size: 12px; }
.resultats .rien { padding: 10px; color: var(--encre-3); font-size: 14px; }
.bandeau-demo { background: var(--or-pale); color: var(--or-fonce); font-size: 13px; padding: 8px 32px; border-bottom: 1px solid #F1DFA6; }
main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 32px 32px 56px; }
main:focus { outline: none; }

/* --- Titres de page --- */
.entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.entete > div:first-child { min-width: 0; }
.entete p { margin: 8px 0 0; font-size: 16px; color: var(--encre-2); }
.entete p.source { font-size: 13px; color: var(--encre-3); }
.entete .actions-entete { display: flex; flex-wrap: wrap; gap: 8px; }
.surtitre { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--or-fonce); }
.surtitre a { color: inherit; text-decoration: none; }
.surtitre a:hover { text-decoration: underline; }
.fil { margin: 0 0 10px; font-size: 13px; color: var(--encre-3); }
.fil a { color: var(--encre-3); font-weight: 600; text-decoration: none; }
.fil a:hover { color: var(--encre); text-decoration: underline; }
.etiquettes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.etiquette { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--carte); border: 1px solid var(--trait-fort); color: var(--encre-2); }
.etiquette.or { background: var(--or-pale); border-color: transparent; color: var(--or-fonce); }

/* --- Cartes et grilles --- */
.grille { display: grid; gap: 16px; }
.grille > * { min-width: 0; }
.g2 { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Tableau large : il défile dans son cadre, la page ne déborde pas (lot LF). */
.tableau-defilant { overflow-x: auto; width: 0; min-width: 100%; }
.pile { display: flex; flex-direction: column; gap: 16px; }
.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 22px 24px; }
.carte + .carte { margin-top: 16px; }
.carte > h2, .carte > h3 { margin-bottom: 12px; }
.carte .titre-carte { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; }
.carte .titre-carte h2, .carte .titre-carte h3 { margin: 0; }
.carte .titre-carte .discret { font-size: 13px; color: var(--encre-3); }
.carte.pleine { padding: 22px 0 6px; }
.carte.pleine > .titre-carte, .carte.pleine .entre { padding-left: 24px; padding-right: 24px; }
.pile > .carte + .carte, .grille > .carte + .carte, .pile > * + .carte { margin-top: 0; }
fieldset { min-width: 0; }
summary.titre-carte, .carte summary.titre-carte { cursor: pointer; list-style: none; justify-content: flex-start; }
.carte summary.titre-carte .discret { margin-left: auto; }
summary.titre-carte::-webkit-details-marker { display: none; }
summary.titre-carte::before { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--encre-3); border-bottom: 2px solid var(--encre-3); transform: rotate(-45deg); margin-right: 4px; transition: transform .15s; }
details[open] > summary.titre-carte::before { transform: rotate(45deg); }
.carte.sombre { background: var(--encre); border-color: var(--encre); color: #FFFFFF; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.carte.sombre .surtitre { color: var(--or); margin: 0 0 6px; }
.carte.sombre h2 { color: #FFFFFF; font-size: 22px; }
.carte.sombre p { margin: 8px 0 0; color: #D6D2C6; max-width: 640px; font-size: 14px; }
.vide { color: var(--encre-3); padding: 10px 0; margin: 0; }
.section { margin-top: 16px; }

/* Indicateurs du jour */
.indicateurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 18px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--encre); }
a.kpi:hover { border-color: var(--trait-fort); color: var(--encre); }
.kpi .haut { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: var(--encre-2); }
.kpi .pastille { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.kpi .valeur { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.kpi .valeur b { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.kpi .valeur span { font-size: 13px; font-weight: 700; }
.kpi .bas { font-size: 13px; color: var(--encre-3); }
.ton-bleu .pastille { background: var(--bleu-pale); color: var(--bleu); } .ton-bleu .valeur span { color: var(--bleu); }
.ton-vert .pastille { background: var(--vert-pale); color: var(--vert); } .ton-vert .valeur span { color: var(--vert); }
.ton-or .pastille { background: var(--or-pale); color: var(--or-fonce); } .ton-or .valeur span { color: var(--or-fonce); }
.ton-rose .pastille { background: var(--rose-pale); color: var(--rose); } .ton-rose .valeur span { color: var(--rose); }

/* --- Boutons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--rayon-btn); border: 1px solid var(--trait-fort); background: var(--carte); color: var(--encre); font-weight: 600; font-size: 14px; line-height: 1.2; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--fond); color: var(--encre); }
.btn.principal { background: var(--encre); border-color: var(--encre); color: #FFFFFF; font-weight: 700; }
.btn.principal:hover { background: #2A2A2A; color: #FFFFFF; }
.btn.or { background: var(--or); border-color: var(--or); color: var(--encre); font-weight: 700; }
.btn.or:hover { filter: brightness(.95); background: var(--or); }
.btn.grand { min-height: 44px; padding: 0 18px; }
.btn.petit { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .ic { width: 17px; height: 17px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--or-vif); outline-offset: 2px; }
.lien-personne, .lien-texte { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.lien-personne { font-weight: 700; color: var(--encre); text-decoration: none; }
.lien-personne:hover { text-decoration: underline; }
.lien-texte { color: var(--bleu); text-decoration: underline; font-size: 14px; }
.lien-texte:disabled { color: var(--encre-3); text-decoration: none; cursor: default; }
.trou { background: var(--bleu-pale); color: var(--bleu); border-radius: 4px; padding: 0 5px; font-weight: 600; white-space: nowrap; }
/* Lot NB : au-dessus de 700 px, une pastille qui tient sur une ligne ne se coupe jamais (elle passe entière à la ligne suivante, comme avant) ; seule une pastille
   plus large que sa colonne se replie dans sa colonne (bloc en ligne, largeur au plus celle du conteneur). À 700 px et moins : la règle ci-dessous. */
@media (min-width: 701px) { .trou { display: inline-block; max-width: 100%; white-space: normal; line-height: 1.3; vertical-align: baseline; overflow-wrap: anywhere; } }
/* Une donnée au libellé long passe à la ligne sur un écran étroit, la pastille suivant chaque ligne. */
@media (max-width: 700px) { .trou { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; } }
/* Sur téléphone, un libellé de bouton trop long passe à la ligne au lieu de faire déborder la page. */
@media (max-width: 560px) { .btn { white-space: normal; max-width: 100%; padding-top: 6px; padding-bottom: 6px; text-align: left; } }
.lien-texte:hover { color: #123F73; }

/* --- Tableaux --- */
.tableau { overflow-x: auto; }
/* Ombre discrète sur le bord quand un tableau dépasse : on devine qu'il défile. */
.carte .tableau { background: linear-gradient(to right, #FFFFFF 30%, rgba(255, 255, 255, 0)) left center / 40px 100% no-repeat local, linear-gradient(to left, #FFFFFF 30%, rgba(255, 255, 255, 0)) right center / 40px 100% no-repeat local, radial-gradient(farthest-side at 0 50%, rgba(20, 20, 20, .14), rgba(20, 20, 20, 0)) left center / 12px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(20, 20, 20, .14), rgba(20, 20, 20, 0)) right center / 12px 100% no-repeat scroll; }
.financement-court { display: none; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 600; font-size: 12px; color: var(--encre-3); text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-bottom: 1px solid var(--trait); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--trait-2); vertical-align: middle; font-size: 14px; }
/* Lot NB : dans une fenêtre, un titre de colonne long passe à la ligne (comme dans .tableau-actions) au lieu d'élargir le tableau au-delà de la fenêtre. */
dialog .tableau th { white-space: normal; }
tr:last-child td { border-bottom: 0; }
.carte.pleine th:first-child, .carte.pleine td:first-child { padding-left: 24px; }
.carte.pleine th:last-child, .carte.pleine td:last-child { padding-right: 24px; }
.cliquable tbody tr { cursor: pointer; }
.cliquable tbody tr:hover { background: #FAFAF7; }
.num { font-variant-numeric: tabular-nums; }
td.num, td.presences { white-space: nowrap; }

/* --- Puces --- */
.puce { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--trait-2); color: var(--encre-2); white-space: nowrap; }
.puce.ok { background: var(--vert-pale); color: var(--vert); }
.puce.attente { background: var(--or-pale); color: var(--or-fonce); }
.puce.alerte, .puce.urgent { background: var(--rouge-pale); color: var(--rouge); }
/* Une pastille qui porte une phrase (un état long, une liste de noms) passe à la ligne au lieu de sortir de l'écran d'un
   téléphone. Un paragraphe entier mis en pastille le fait déjà (règle « p.puce », plus bas). */
.puce.puce-phrase { display: inline-block; white-space: normal; border-radius: 12px; line-height: 1.35; }
.puce.bleu { background: var(--bleu-pale); color: var(--bleu); }
p.puce { white-space: normal; border-radius: 14px; }
.page-publique .carte p, .page-publique .carte li { overflow-wrap: anywhere; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; background: var(--or-pale); color: var(--or-fonce); }
.avatar.grand { width: 56px; height: 56px; font-size: 18px; }
.avatar.t1 { background: var(--bleu-pale); color: var(--bleu); } .avatar.t2 { background: var(--violet-pale); color: var(--violet); }
.avatar.t3 { background: var(--sarcelle-pale); color: var(--sarcelle); } .avatar.t4 { background: var(--rose-pale); color: var(--rose); }
.avatar.t5 { background: var(--vert-pale); color: var(--vert); }
.personne-cellule { display: flex; align-items: center; gap: 10px; min-width: 0; }
.personne-cellule > span:last-child { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.personne-cellule small { color: var(--encre-3); font-size: 13px; }

/* --- Étapes du parcours --- */
.legende { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--encre-2); }
.legende li { display: flex; align-items: center; gap: 6px; }
.legende i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.e-besoin { --e: var(--e-besoin); --e-pale: var(--bleu-pale); --e-texte: var(--bleu); }
.e-positionnement { --e: var(--e-positionnement); --e-pale: var(--violet-pale); --e-texte: var(--violet); }
.e-contrat { --e: var(--e-contrat); --e-pale: var(--or-pale); --e-texte: var(--or-fonce); }
.e-convocation { --e: var(--e-convocation); --e-pale: var(--sarcelle-pale); --e-texte: var(--sarcelle); }
.e-emargement { --e: var(--e-emargement); --e-pale: var(--vert-pale); --e-texte: var(--vert); }
.e-acquis { --e: var(--e-acquis); --e-pale: #FBEBE2; --e-texte: #9A4A1F; }
.e-satisfaction { --e: var(--e-satisfaction); --e-pale: var(--rose-pale); --e-texte: var(--rose); }
.e-certificat { --e: var(--e-certificat); --e-pale: #EEEDE6; --e-texte: #3A3A36; }
.legende i { background: var(--e); }
.puce-etape { flex: none; display: inline-flex; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--e-pale, var(--trait-2)); color: var(--e-texte, var(--encre-2)); white-space: nowrap; }
/* Barre de huit segments d'une session */
.barres { display: grid; grid-template-columns: repeat(var(--n, 8), minmax(0, 1fr)); gap: 4px; }
.barres span { height: 10px; border-radius: 5px; background: var(--trait); }
.barres span.fait { background: var(--e); }
.barres span.a_faire { background: var(--or-pale); box-shadow: inset 0 0 0 1.5px var(--or-vif); }
.barres span.retard { background: var(--rouge-pale); box-shadow: inset 0 0 0 1.5px var(--rouge); }
/* Frise de la session : un rond par étape */
.frise { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 8px; }
.frise li { flex: 1 1 100px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.frise .rond { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--carte); box-shadow: inset 0 0 0 1.5px var(--anneau); color: var(--encre-3); }
.frise .rond .ic { width: 20px; height: 20px; }
.frise li.fait .rond { background: var(--e); box-shadow: none; color: #FFFFFF; }
.frise li.a_faire .rond { background: var(--or-pale); box-shadow: inset 0 0 0 2.5px var(--or-vif); color: var(--or-fonce); }
.frise li.retard .rond { background: var(--rouge-pale); box-shadow: inset 0 0 0 2.5px var(--rouge); color: var(--rouge); }
.frise b { font-size: 13px; font-weight: 700; }
.frise small { font-size: 12px; color: var(--encre-3); }
.frise li.fait small { color: var(--vert); font-weight: 600; }
.frise li.a_faire small { color: var(--or-fonce); font-weight: 600; }
.frise li.retard small { color: var(--rouge); font-weight: 600; }
.frise-pied { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--trait-2); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; color: var(--encre-2); }
.frise-pied strong { color: var(--encre); }
/* Case d'étape dans la grille des stagiaires */
.case-etape { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; white-space: nowrap; border: 0; background: none; padding: 0; text-align: left; font-family: inherit; }
button.case-etape { cursor: pointer; }
button.case-etape:hover { text-decoration: underline; }
button.case-etape:disabled { cursor: default; text-decoration: none; }
.case-etape .ic { width: 15px; height: 15px; }
.case-etape.fait { color: var(--vert); }
.case-etape.a_faire { color: var(--or-fonce); background: var(--or-pale); padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.case-etape.retard { color: var(--rouge); background: var(--rouge-pale); padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.case-etape.a_venir { color: var(--encre-3); font-weight: 500; }
.case-etape.sans_objet { color: var(--gris); font-weight: 500; }
.grille-stagiaires { min-width: 900px; }
.grille-stagiaires th, .grille-stagiaires td { padding-left: 8px; padding-right: 8px; }
.grille-stagiaires th { white-space: nowrap; font-size: 11px; letter-spacing: .03em; }
.grille-stagiaires td:first-child { min-width: 200px; }
.grille-stagiaires .case-etape { white-space: nowrap; line-height: 1.3; }
.grille-stagiaires .case-etape.a_faire, .grille-stagiaires .case-etape.retard { border-radius: 10px; }
td.avancement { min-width: 180px; }
td.actions-ligne { white-space: nowrap; text-align: right; }
.sous-actions { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; font-size: 12px; color: var(--encre-3); }
.sous-actions .lien-texte { font-size: 12px; }

/* Frise verticale de la fiche personne */
.chronologie { list-style: none; margin: 18px 0 0; padding: 0; }
.chronologie > li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; position: relative; padding-bottom: 22px; }
.chronologie > li::before { content: ''; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--trait); }
.chronologie > li:last-child { padding-bottom: 0; }
.chronologie > li:last-child::before { display: none; }
.chronologie .rond { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--carte); box-shadow: inset 0 0 0 1.5px var(--anneau); color: var(--encre-3); position: relative; z-index: 1; }
.chronologie .rond .ic { width: 16px; height: 16px; }
.chronologie li.fait .rond { background: var(--e); color: #FFFFFF; box-shadow: none; }
.chronologie li.a_faire .rond { background: var(--or-pale); box-shadow: inset 0 0 0 2.5px var(--or-vif); color: var(--or-fonce); }
.chronologie li.retard .rond { background: var(--rouge-pale); box-shadow: inset 0 0 0 2.5px var(--rouge); color: var(--rouge); }
.chronologie h3 { font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-top: 6px; }
.chronologie p { margin: 4px 0 0; font-size: 14px; color: var(--encre-2); }
.chronologie .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* --- Listes --- */
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--trait-2); }
.liste li:first-child { border-top: 0; }
.liste small { display: block; color: var(--encre-3); font-size: 13px; }
.taches { list-style: none; margin: 0; padding: 0; }
.taches li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 0; border-top: 1px solid var(--trait-2); }
.taches li:first-child { border-top: 0; padding-top: 4px; }
.taches .texte { flex: 1 1 260px; min-width: 0; }
.taches .texte p { margin: 0; font-weight: 700; font-size: 15px; }
.taches .texte small { display: block; margin-top: 2px; font-size: 13px; color: var(--encre-3); }
.taches .faire { flex: none; display: flex; flex-wrap: wrap; gap: 6px; }
.taches .puce-etape { min-width: 118px; justify-content: center; }
.taches .texte .puce.urgent { margin-left: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; vertical-align: 2px; }
.plus { margin-top: 6px; }
.lignes-sessions a { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 14px 0; border-top: 1px solid var(--trait-2); text-decoration: none; color: var(--encre); }
.lignes-sessions a:hover { color: var(--encre); background: #FAFAF7; }
.lignes-sessions .qui-quoi { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
.lignes-sessions .qui-quoi b { font-size: 15px; }
.lignes-sessions .qui-quoi small { font-size: 13px; color: var(--encre-3); }
.lignes-sessions .barres { flex: 2 1 300px; }
.lignes-sessions .etat-ligne { flex: 1 1 180px; font-size: 13px; font-weight: 600; color: var(--or-fonce); }
.lignes-sessions .etat-ligne.fait { color: var(--vert); }
.lignes-sessions .etat-ligne.retard { color: var(--rouge); }

/* En salle aujourd'hui */
.seance { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--trait-2); }
.seance:first-of-type { border-top: 0; padding-top: 4px; }
.heure { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.heure .source { font-size: 12px; font-weight: 500; letter-spacing: 0; }
a.titre-seance { font-weight: 700; color: var(--encre); text-decoration: none; }
a.titre-seance:hover { text-decoration: underline; color: var(--encre); }
.seance .faire { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.presences { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0; }
.presence { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--carte); box-shadow: inset 0 0 0 1px var(--trait-fort); color: var(--encre-3); }
.presence.oui { background: var(--vert-pale); box-shadow: none; color: var(--vert); }
.presence.non { background: var(--rouge-pale); box-shadow: none; color: var(--rouge); }
.jauge { height: 6px; background: var(--trait); border-radius: 9px; overflow: hidden; margin-top: 8px; width: 100%; max-width: 220px; }
.jauge b { display: block; height: 100%; background: var(--e-emargement); }

/* --- Formulaires --- */
form.formulaire { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
/* Une légende longue passe à la ligne au lieu d'élargir le formulaire (téléphone). */
form.formulaire legend { max-width: 100%; white-space: normal; }
.champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
/* Colonne étroite (bilan, cadre D) : un champ par ligne, pour que chaque libellé reste au-dessus de son champ. */
.champs.une-colonne { grid-template-columns: minmax(0, 1fr); }
label { display: grid; gap: 6px; align-content: start; font-size: 13px; color: var(--encre-2); font-weight: 600; }
input, select, textarea { border: 1px solid var(--trait-fort); border-radius: 10px; padding: 9px 12px; background: #FFFFFF; width: 100%; font-weight: 400; font-size: 15px; color: var(--encre); }
input:focus, select:focus, textarea:focus { border-color: var(--encre-3); outline: none; }
textarea { min-height: 76px; resize: vertical; }
.aide { font-size: 12px; color: var(--encre-3); font-weight: 400; }
/* Message d'erreur posé sous un champ, dans une fenêtre (la bulle habituelle passerait sous la fenêtre). */
.aide.erreur-champ { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--rouge); }
.manque input, .manque textarea { border-color: #E8C46B; background: #FFFCF2; }
label.case { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--encre); font-size: 14px; }
label.case input { width: auto; flex: none; margin-top: 3px; }
fieldset.choix-simple { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
fieldset.choix-simple legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 8px; }
fieldset.bloc-rs { border: 1px solid var(--trait); border-radius: 12px; padding: 14px 16px 6px; margin: 0; }
fieldset.bloc-rs legend { font-weight: 700; padding: 0 6px; font-size: 14px; }
.table-saisie td { padding: 6px 4px; }
.table-saisie input { padding: 7px 9px; }
.jours { display: flex; flex-wrap: wrap; gap: 6px 18px; }
details summary { cursor: pointer; }
/* Choix exclusifs présentés en cartes (ordre du parcours) */
.choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choix label { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--trait-fort); border-radius: 12px; background: var(--carte); cursor: pointer; font-weight: 400; color: var(--encre); }
.choix label:has(input:checked) { border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); background: #FFFDF6; }
.choix input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--encre); flex: none; }
.choix strong { font-size: 15px; }
.titre-choix { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.choix .aide { display: block; margin-top: 2px; font-size: 13px; }
.enchainement { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 10px; font-size: 12px; }
.enchainement span { padding: 3px 8px; border-radius: 999px; background: var(--fond); border: 1px solid var(--trait); font-weight: 600; color: var(--encre-2); }
.enchainement em { font-style: normal; color: var(--gris); }

/* --- Onglets --- */
.onglets { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; border-bottom: 1px solid var(--trait); }
.onglets a { display: inline-flex; padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--encre-2); font-weight: 600; font-size: 14px; text-decoration: none; }
.onglets a:hover { color: var(--encre); }
.onglets a[aria-current="page"] { color: var(--encre); border-bottom-color: var(--or-vif); }

/* --- Notes, sources, messages --- */
.note { border-left: 3px solid var(--or-vif); background: var(--or-pale); padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: 14px; margin: 0 0 12px; color: var(--encre); }
.note.rouge { border-color: var(--rouge); background: var(--rouge-pale); }
.carte.en-erreur { border-color: var(--rouge); background: var(--rouge-pale); }
.note small { display: block; color: var(--encre-3); margin-top: 4px; }
.note.rouge small, .note.rouge .aide { color: var(--encre-2); }
.liste small.note { color: var(--encre-2); }
.source { font-size: 13px; color: var(--encre-3); }
.mini { font-size: 12px; color: var(--encre-3); display: block; }
td.mini, th.mini { display: table-cell; }
.insecable { white-space: nowrap; }
.mini .lien-texte { font-size: inherit; }
.toast { position: fixed; bottom: 22px; right: 22px; background: var(--encre); color: #FFFFFF; padding: 12px 16px; border-radius: 10px; max-width: 420px; box-shadow: 0 8px 30px rgba(0, 0, 0, .2); z-index: 60; font-size: 14px; }
.toast.erreur { background: var(--rouge); }
.toast.avertissement { bottom: 84px; top: auto; left: auto; right: 22px; background: #FFF4D6; color: #3B2F00; border: 1px solid #C9A227; max-width: 440px; max-height: 60vh; overflow-y: auto; }
.toast.avertissement strong { display: block; margin-bottom: 4px; }
.toast.avertissement p { margin: 0 0 6px; overflow-wrap: anywhere; }
.toast.avertissement .fermer-avertissement { font: inherit; font-size: 13px; background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.toast.avertissement .source-avertissement { display: block; margin-top: 2px; font-size: 12px; opacity: .85; }
@media (max-width: 560px) { .toast.avertissement { left: 16px; right: 16px; bottom: 96px; max-width: none; max-height: calc(100vh - 220px); } }
/* Lot LH (F3) : dans une fenêtre ouverte, la bulle est une ligne en haut de la fenêtre dans le flux, au-dessus de la ligne des boutons d'action (revue LH, G2 et G3) ; jamais posée par-dessus un bouton ou un champ. */
dialog .toast { position: static; right: auto; bottom: auto; top: auto; left: auto; max-width: none; margin: 12px 0; box-shadow: none; }
dialog { border: 0; border-radius: 16px; padding: 26px; max-width: 480px; width: calc(100% - 32px); box-shadow: 0 24px 64px rgba(0, 0, 0, .25); color: var(--encre); }
dialog.large { max-width: 720px; }
dialog.tres-large { max-width: 980px; }
dialog h2 { margin-bottom: 10px; }
dialog::backdrop { background: rgba(20, 20, 20, .45); }
.qr svg { width: 100%; height: auto; display: block; }
/* Lot L2 : double authentification */
.etapes-activation { margin: 14px 0 6px; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; }
.qr-activation { width: 180px; margin: 10px 0 6px; }
.cle-totp { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; letter-spacing: .04em; color: var(--encre); overflow-wrap: anywhere; }
.codes-secours { columns: 2; margin: 12px 0; padding-left: 26px; }
.codes-secours code { font-size: 15px; letter-spacing: .04em; }
.codes-secours li { margin: 4px 0; }
.lien { font-size: 12px; word-break: break-all; color: var(--encre-3); }
.lien-invitation { display: flex; gap: 8px; align-items: center; }
.lien-invitation input { font-size: 12px; }
.calendrier { list-style: none; padding: 0; margin: 10px 0 0; columns: 2 280px; }
.calendrier li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--trait-2); font-size: 14px; }
.pieces li { padding: 10px 0; }
.pieces li > span:first-child { min-width: 0; }

/* Preuves rangées */
.indic { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--trait-2); }
.indic:first-of-type { border-top: 0; }
.indic b { font-size: 17px; font-weight: 800; color: var(--encre-3); }
.indic.hc { color: var(--encre-3); }
.indic.hc b { color: var(--encre-3); font-weight: 600; }
/* Lot L1 : repères officiels de chaque indicateur, édition du guide, nouvel entrant et profil d'audit */
.indic > span:last-child { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.reperes-indic { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.indic details ul + ul { margin-top: 4px; }
.filtres-indic { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.edition-guide { margin: -6px 0 16px; }
.edition-guide small { display: block; color: var(--encre-3); }
.qualite-audit { margin-bottom: 16px; }
.qualite-audit .liste li small { white-space: normal; }
@media (max-width: 560px) {
  .indic { grid-template-columns: 30px minmax(0, 1fr); }
  .indic > span:last-child { grid-column: 2; justify-content: flex-start; }
  label.en-ligne { white-space: normal; }
  /* Lot MJ : le quatrième sélecteur (libellés longs) passe à la ligne au lieu de déborder. */
  .filtres-indic label.en-ligne select { max-width: 55vw; text-overflow: ellipsis; }
}

/* Écrans d'accès */
.ecran-acces { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--fond); }
.ecran-acces .carte { width: 100%; max-width: 440px; padding: 30px; }
.ecran-acces .marque { padding: 0 0 20px; }
.ecran-acces .marque span { color: var(--encre); }
.ecran-acces .marque small { color: var(--encre-3); }
.ecran-acces h2 { font-size: 24px; margin-bottom: 6px; }
.ecran-acces .btn.principal { width: 100%; min-height: 44px; }

/* Certificat imprimable */
.certificat { background: #FFFFFF; max-width: 760px; margin: 0 auto; padding: 48px 56px; border: 1px solid var(--trait); border-radius: 4px; }
.certificat h1 { text-align: center; font-size: 26px; margin-bottom: 4px; }
.certificat .sous { text-align: center; color: var(--encre-3); margin-bottom: 30px; }
.certificat dl { display: grid; grid-template-columns: 220px 1fr; gap: 8px 16px; }
.certificat dt { color: var(--encre-3); }
.certificat dd { margin: 0; }
body.role-intervenant [data-gestion] { display: none !important; }
/* Lot L : « Mon espace », réservé aux comptes intervenants. */
body:not(.role-intervenant) [data-intervenant] { display: none !important; }
/* Lot L2 : auditeur en lecture seule : la qualité seule, sans formulaire ni bouton d'action. */
body.role-auditeur .nav a.lien:not([href="#/qualite"]):not([href="#/observation"]):not([href="#/mission"]), body.role-auditeur .nav .groupe, body.role-auditeur .barre,
body.role-auditeur #vue form, body.role-auditeur #fenetre form, body.role-auditeur #vue button:not([data-lecture]), body.role-auditeur #fenetre button:not([data-lecture]) { display: none !important; }
.preuves-indic li { margin: 4px 0; }
.preuves-indic .puce { margin-left: 6px; }
@media print { .dossier-audit h2 { break-before: auto; } .dossier-audit section { break-inside: avoid-page; } }
.app[hidden] { display: none; }

/* --- Lot B : demandes, de la demande à la signature --- */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.filtres button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--trait-fort); background: var(--carte); color: var(--encre); font-size: 13px; font-weight: 600; cursor: pointer; }
.filtres button:hover { border-color: var(--encre-3); }
.filtres button[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: #FFFFFF; }
.tableau-demandes { overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; }
.colonnes { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 14px; min-width: 1110px; align-items: start; }
.colonne { background: #EEEDE6; border-radius: var(--rayon); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 160px; }
.colonne .tete { display: flex; align-items: center; gap: 8px; padding: 2px 4px; }
.colonne .tete i { width: 10px; height: 10px; border-radius: 3px; background: var(--e); flex: none; }
.colonne h2 { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: 0; flex: 1; }
.colonne .tete span { font-size: 12px; font-weight: 700; color: var(--encre-2); }
.colonne .sous { margin: -4px 4px 2px; font-size: 12px; color: var(--encre-2); }
.colonne .rien { margin: 6px 4px; font-size: 13px; color: var(--encre-3); }
a.carte-demande { display: flex; flex-direction: column; gap: 10px; background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; padding: 14px; text-decoration: none; color: var(--encre); }
a.carte-demande:hover { border-color: #B9B4A6; color: var(--encre); }
a.carte-demande[aria-current="true"] { border: 2px solid var(--e-besoin); padding: 13px; }
.carte-demande .haut { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.carte-demande .haut b { display: block; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.carte-demande .formation-carte { display: block; font-size: 13px; color: var(--encre-2); margin-top: -6px; }
.etiq { flex: none; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--trait-fort); color: var(--encre-2); white-space: nowrap; }
.etat-demande { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--encre-3); line-height: 1.35; }
.etat-demande .ic { width: 15px; height: 15px; }
.etat-demande.bleu { color: var(--bleu); font-weight: 600; } .etat-demande.or { color: var(--or-fonce); font-weight: 600; }
.etat-demande.vert { color: var(--vert); font-weight: 600; } .etat-demande.violet { color: var(--violet); font-weight: 600; }
.etat-demande.rouge { color: var(--rouge); font-weight: 600; }
.etat-demande .jauge-pos { flex: 1; height: 6px; border-radius: 3px; background: var(--violet-pale); overflow: hidden; display: block; }
.etat-demande .jauge-pos b { display: block; height: 6px; background: var(--e-positionnement); }
.carte-demande .mention { font-size: 12px; color: var(--encre-3); margin-top: -4px; }
.carte-demande .bas { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--trait-2); padding-top: 9px; font-size: 13px; }
.carte-demande .bas span { color: var(--encre-3); }
/* Fiche « Analyse du besoin » d'une demande */
.analyse { scroll-margin-top: 90px; }
.analyse .entete-analyse { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.badge-analyse { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bleu-pale); color: var(--bleu); margin: 0; }
.badge-analyse.vert { background: var(--vert-pale); color: var(--vert); } .badge-analyse.or { background: var(--or-pale); color: var(--or-fonce); }
.badge-analyse.violet { background: var(--violet-pale); color: var(--violet); } .badge-analyse.gris { background: var(--trait-2); color: var(--encre-2); }
.analyse h2.titre-analyse { margin: 10px 0 0; font-size: 24px; letter-spacing: -0.01em; }
.analyse .par { margin: 4px 0 0; font-size: 14px; color: var(--encre-2); }
.analyse .actions-analyse { display: flex; flex-wrap: wrap; gap: 8px; }
.liens-analyse { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 14px 0 0; font-size: 13px; }
.rubriques { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.rubrique { background: #F8F7F3; border-radius: 12px; padding: 16px; min-width: 0; }
.rubrique h3 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--encre-3); }
.rubrique p { margin: 6px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.rubrique p + p { margin-top: 8px; }
.rubrique .manque { color: var(--encre-3); font-style: italic; }
.retenu { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.retenu > div { border: 1px solid var(--trait); border-radius: 12px; padding: 14px 16px; }
.retenu h3 { font-size: 13px; margin: 0 0 6px; }
.retenu p { margin: 0; font-size: 14px; color: var(--encre-2); white-space: pre-line; }
.preuve-ligne { margin: 16px 0 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--encre-2); }
.preuve-ligne .ic { width: 16px; height: 16px; color: var(--vert); }
.suivi-demande { list-style: none; margin: 0; padding: 0; }
.suivi-demande li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--trait-2); font-size: 14px; }
.suivi-demande li:first-child { border-top: 0; }
.suivi-demande li .ic { width: 15px; height: 15px; color: var(--vert); align-self: center; }
.suivi-demande li.attente .ic { color: var(--gris); }
.suivi-demande li small { color: var(--encre-3); font-size: 12px; white-space: nowrap; }
.reponses-q { margin: 0; }
.reponses-q dt { font-size: 13px; color: var(--encre-3); margin-top: 12px; }
.reponses-q dd { margin: 2px 0 0; font-size: 14px; white-space: pre-line; }
.lien-copie { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.lien-copie input { font-size: 12px; }
.choix-sessions { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; }
.choix-sessions label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--trait-fort); border-radius: 12px; cursor: pointer; font-weight: 500; color: var(--encre); }
.choix-sessions label:has(input:checked) { border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); background: #FFFDF6; }
.choix-sessions input { width: auto; accent-color: var(--encre); }
.choix-sessions small { display: block; color: var(--encre-3); font-size: 12px; }

/* --- Questionnaires : rendu des questions (outil et pages publiques) --- */
.bloc-q { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.bloc-q > legend { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--or-fonce); padding: 0; margin: 0 0 12px; }
.question { display: grid; gap: 6px; margin: 0 0 18px; min-width: 0; }
label.q-libelle { display: block; }
.question .q-libelle, .q-options > legend { font-size: 15px; font-weight: 700; color: var(--encre); padding: 0; line-height: 1.35; }
.question .aide { margin: 0; font-size: 13px; }
.q-options { border: 0; padding: 0; margin: 0; min-width: 0; }
.q-options .aide { margin-top: 4px; }
.q-options .options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.q-options label.option { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--trait-fort); border-radius: 999px; background: #FFFFFF; cursor: pointer; font-weight: 500; color: var(--encre); font-size: 14px; }
.q-options label.option:has(input:checked) { border-color: var(--encre); background: #FFFDF6; box-shadow: inset 0 0 0 1px var(--encre); }
.q-options label.option:has(input:disabled) { cursor: default; }
.q-options input { width: auto; margin: 0; accent-color: var(--encre); }
.q-info { margin: 0; padding: 12px 14px; background: var(--fond); border-radius: 10px; font-size: 14px; color: var(--encre-2); }
.q-attestation { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: 15px; color: var(--encre); }
.q-attestation input { width: auto; margin-top: 4px; accent-color: var(--encre); }
.requis { color: var(--rouge); }

/* --- Questionnaires : modèles de l'organisme --- */
.grille-questionnaires { display: grid; grid-template-columns: 272px minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.grille-questionnaires > .carte + .carte { margin-top: 0; }
.liste-modeles { padding: 18px 10px; }
.liste-modeles .groupe-modeles { margin: 4px 10px 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-3); }
.liste-modeles .groupe-modeles:not(:first-child) { margin-top: 18px; }
.liste-modeles a, .liste-modeles .a-venir { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--encre); font-size: 14px; }
.liste-modeles a:hover { background: var(--fond); color: var(--encre); }
.liste-modeles a[aria-current="page"] { background: var(--bleu-pale); font-weight: 700; }
.liste-modeles a[aria-current="page"] small { color: var(--encre-2); }
.liste-modeles i { width: 9px; height: 9px; border-radius: 2px; background: var(--e-besoin); flex: none; }
.liste-modeles .a-venir { color: var(--encre-3); }
.liste-modeles .a-venir i { background: var(--trait-fort); }
.liste-modeles small { margin-left: auto; font-size: 11px; color: var(--encre-3); }
.editeur-q .tete-modele h2 { font-size: 22px; }
.editeur-q .tete-modele p { margin: 4px 0 0; font-size: 13px; color: var(--encre-3); }
.carte-question { border: 1px solid var(--trait); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; background: var(--carte); }
.carte-question + .carte-question { margin-top: 10px; }
.carte-question.verrou { border-color: #E9D9A8; background: #FFFDF6; }
.carte-question.modifiee { border-color: var(--bleu); }
.carte-question .ligne-q { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.carte-question .ligne-q b { font-size: 15px; }
.carte-question .type-q { flex: none; font-size: 12px; color: var(--encre-3); white-space: nowrap; }
.carte-question .source-q { font-size: 12px; color: var(--or-fonce); }
.carte-question .options-q { display: flex; flex-wrap: wrap; gap: 6px; }
.carte-question .options-q span { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--trait-fort); color: var(--encre-2); }
.carte-question .outils-q { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.titre-bloc-q { margin: 18px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-3); }
.ajout-q { margin-top: 14px; border: 1px dashed var(--trait-fort); border-radius: 12px; padding: 14px 16px; }
.ajout-q p { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--encre-2); }
.ajout-q .puces-ajout { display: flex; flex-wrap: wrap; gap: 8px; }
.ajout-q .puces-ajout button { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--trait-fort); background: var(--carte); font-size: 13px; font-weight: 600; cursor: pointer; }
.ajout-q .puces-ajout button:hover { border-color: var(--encre-3); }
.apercu-q { border: 1px solid var(--trait); border-radius: 12px; padding: 18px 18px 4px; background: #FFFFFF; }
.bascules { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; font-size: 13px; }
.kpi-rose { background: var(--rose-pale); border-radius: var(--rayon); padding: 18px 20px; }
.kpi-rose .surtitre { color: var(--rose); }
.kpi-rose b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; }
.kpi-rose p { margin: 4px 0 0; font-size: 14px; color: var(--encre-2); }

/* --- Données de l'organisme --- */
.grille-donnees { display: grid; grid-template-columns: minmax(0, 1fr) 386px; gap: 16px; align-items: start; }
.panneau-import { border: 2px solid var(--encre); }
.etapes-import { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 16px; }
.etapes-import > li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
.etapes-import .rond-etape { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; box-shadow: inset 0 0 0 2px var(--trait-fort); color: var(--encre-3); }
.etapes-import li.fait .rond-etape { background: var(--vert); box-shadow: none; color: #FFFFFF; }
.etapes-import li.en-cours .rond-etape { box-shadow: inset 0 0 0 2px var(--or-vif); color: var(--or-fonce); background: var(--or-pale); }
.etapes-import h3 { font-size: 15px; margin: 3px 0 4px; }
.etapes-import p { margin: 0; font-size: 13px; color: var(--encre-2); }
.correspondance { display: grid; gap: 6px; margin-top: 8px; }
.correspondance label { display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1.2fr); align-items: center; gap: 8px; font-weight: 400; color: var(--encre-2); font-size: 13px; }
.correspondance label > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.correspondance select { padding: 5px 8px; font-size: 13px; border-radius: 8px; }
.verif-import p { margin: 4px 0 0; font-size: 13px; }
.verif-import .ok { color: var(--vert); font-weight: 700; }
.verif-import .attention { color: var(--or-fonce); font-weight: 700; }
.verif-import .erreur { color: var(--rouge); font-weight: 700; }
.verif-import label.case { margin-top: 6px; }
.lignes-import { max-height: 180px; overflow-y: auto; margin: 8px 0 0; padding: 0; list-style: none; font-size: 12px; }
.lignes-import li { padding: 4px 0; border-top: 1px solid var(--trait-2); }
.depot { display: block; border: 2px dashed var(--trait-fort); border-radius: 12px; padding: 18px; text-align: center; font-weight: 600; color: var(--encre-2); cursor: pointer; }
.depot:hover, .depot.survol { border-color: var(--encre-3); background: var(--fond); }
.depot input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.puce.champ { background: var(--sarcelle-pale); color: var(--sarcelle); font-size: 13px; padding: 6px 12px; }
.statut-ok { color: var(--vert); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.statut-ok .ic, .statut-attention .ic { width: 15px; height: 15px; }
.statut-attention { background: var(--or-pale); color: var(--or-fonce); font-weight: 600; padding: 2px 9px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.table-donnees td:first-child { min-width: 170px; }

/* --- Lot C : positionnement et évaluation des acquis --- */
.boutons-ligne { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.g2-egal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.table-grille th:first-child, .table-grille td:first-child { width: 40%; min-width: 260px; }
.table-grille td .commentaire { color: var(--encre-2); font-style: italic; }
.etiquette.vert { background: var(--vert-pale); border-color: transparent; color: var(--vert); }
fieldset.choix-methode { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.choix-methode > legend { font-weight: 700; font-size: 16px; padding: 0; margin: 0 0 12px; }
.ligne-grille { border-top: 1px solid var(--trait-2); padding: 18px 0 8px; margin: 0; min-width: 0; display: grid; gap: 10px; }
.titre-carte + .ligne-grille, .note + .ligne-grille, .ligne-grille:first-child { border-top: 0; padding-top: 4px; }
.ligne-grille > .titre-ligne { font-weight: 700; font-size: 15px; padding: 0; margin: 0; line-height: 1.35; }
.ligne-grille .mini { margin: 0; }
.reperes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.reperes span { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--fond); color: var(--encre-2); }
.niveaux { display: flex; flex-wrap: wrap; gap: 8px; }
.niveaux label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--trait-fort); border-radius: 999px; background: #FFFFFF; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--encre); }
.niveaux input { width: auto; margin: 0; accent-color: var(--encre); }
.niveaux label:has(input:focus-visible) { outline: 2px solid var(--or-vif); outline-offset: 2px; }
.niveaux label.n-atteint:has(input:checked) { border-color: var(--vert); background: var(--vert-pale); color: var(--vert); box-shadow: inset 0 0 0 1px var(--vert); }
.niveaux label.n-en_cours:has(input:checked) { border-color: var(--or-vif); background: var(--or-pale); color: var(--or-fonce); box-shadow: inset 0 0 0 1px var(--or-vif); }
.niveaux label.n-non_atteint:has(input:checked) { border-color: var(--rouge); background: var(--rouge-pale); color: var(--rouge); box-shadow: inset 0 0 0 1px var(--rouge); }
.boutons-grille { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin: 14px 0 0; }
.regles-grille .note { font-size: 13px; }
.texte-long { white-space: pre-line; margin: 0; }
.table-grille td .mini, .table-resultats td .mini, .attestation td .mini { display: block; margin-top: 3px; }
.repartition { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.niveaux-personne { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 300px; }
.niveaux-personne li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; font-size: 14px; }
.table-resultats td:first-child { min-width: 170px; }
.table-resultats td.actions-ligne .boutons-ligne { justify-content: flex-start; }
.parcours-niveau { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.parcours-niveau > span[aria-hidden] { color: var(--encre-3); }
.chiffres-eval { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 0; }
.chiffres-eval div { background: var(--fond); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--encre-2); }
.chiffres-eval b { font-size: 22px; color: var(--encre); }
.chiffres-eval span { display: block; font-size: 13px; margin-top: 2px; }
.boutons-carte { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.lignes-objectifs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ligne-objectif { border: 1px solid var(--trait); border-radius: 12px; padding: 14px 16px 8px; background: var(--carte); }
.ligne-objectif .pleine-largeur { grid-column: 1 / -1; }
.ligne-objectif .outils-ligne { margin: 8px 0 0; text-align: right; }
.couverture { list-style: none; margin: 6px 0 14px; padding: 0; display: grid; gap: 6px; }
.couverture li { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 14px; }
.banque { list-style: none; margin: 0; padding: 0; }
.carte-question.a-rattacher { border-color: var(--rouge); }
.options-q span.bonne { border-color: var(--vert); color: var(--vert); background: var(--vert-pale); font-weight: 600; }
.reponses-b { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.reponses-b legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 8px; }
.reponse-b { display: flex; gap: 10px; align-items: center; }
.reponse-b input[type=checkbox] { width: 20px; height: 20px; flex: none; accent-color: var(--vert); margin: 0; }
.lien-court { overflow-wrap: anywhere; }
.sous-titre-carte { font-size: 15px; margin: 16px 0 2px; }
.attestation table { width: 100%; }
.conseils-attestation { max-width: 760px; margin: 0 auto 16px; }
.reponses-q dd .puce { margin-left: 6px; vertical-align: 1px; }
.reponses-q dd .mini { display: block; margin-top: 2px; }
@media (max-width: 1100px) {
  .g2-egal { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .chiffres-eval { grid-template-columns: 1fr; }
  .table-grille th:first-child, .table-grille td:first-child { width: auto; min-width: 0; }
  .niveaux-personne { min-width: 0; width: 100%; }
  .niveaux-personne li { grid-template-columns: 1fr; text-align: left; }
  .empilable td .niveaux-personne { flex: 1; }
  /* Cellule à plusieurs éléments : un seul bloc, aligné à droite, qui passe à la ligne. */
  .empilable td > .cellule { min-width: 0; text-align: right; }
  .empilable td > .cellule .mini { display: block; }
  .circuit-reglage.empilable td > .cellule { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 0; }
  .circuit-reglage.empilable label.en-ligne { margin: 0 0 0 10px; }
  .boutons-grille { justify-content: stretch; }
  .boutons-grille .btn { flex: 1 1 auto; }
}

@media print {
  .nav, .barre, .bandeau-demo, .ne-pas-imprimer { display: none !important; }
  .app { display: block; background: none; } main { padding: 0; max-width: none; }
  .certificat { border: 0; }
  .grille-lecture { grid-template-columns: 1fr; }
  .grille-lecture .regles-grille, .grille-lecture .boutons-ligne { display: none; }
  .carte { break-inside: avoid; box-shadow: none; }
}

/* --- Tablette et téléphone --- */
@media (max-width: 1320px) {
  .grille-stagiaires .col-financement { display: none; }
  .grille-stagiaires .financement-court { display: block; }
  .grille-stagiaires { min-width: 760px; }
  .grille-stagiaires td:first-child { min-width: 176px; }
}
@media (max-width: 1100px) {
  .g3 { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frise { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; background: var(--fond); }
  .grille-stagiaires .financement-court { display: none; }
  .nav { position: sticky; top: 0; z-index: 40; height: auto; padding: 10px 16px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px; }
  .marque { padding: 2px 0; flex: 1; }
  .marque i { width: 32px; height: 32px; }
  .menu-mobile { display: inline-flex; align-items: center; gap: 8px; background: #262626; color: #FFFFFF; border: 0; border-radius: 10px; padding: 8px 12px; font-weight: 600; cursor: pointer; }
  .nav .contenu-nav { display: none; width: 100%; flex-direction: column; gap: 2px; padding: 8px 0 6px; }
  .nav.ouverte .contenu-nav { display: flex; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; }
  .nav .pied { padding-top: 12px; }
  .barre { position: static; padding: 12px 16px; }
  .barre .btn { flex: 1 1 auto; }
  .bandeau-demo { padding: 8px 16px; }
  main { padding: 22px 16px 48px; }
  h1 { font-size: 28px; }
  .g2, .champs, .choix { grid-template-columns: 1fr; }
  .carte { padding: 18px 16px; }
  .carte.pleine { padding: 18px 0 4px; }
  .carte.pleine > .titre-carte, .carte.pleine > .entre { padding: 0 16px; }
  .carte.pleine th:first-child, .carte.pleine td:first-child { padding-left: 16px; }
  .carte.pleine th:last-child, .carte.pleine td:last-child { padding-right: 16px; }
  .liste li { flex-wrap: wrap; }
  .frise li { flex: 1 1 72px; }
  .frise .rond { width: 38px; height: 38px; }
}
/* Lot LH (défaut 32) : la mise en page étroite est celle de l'écran. Une page A4 fait environ 673 px de large : sans « screen », ces règles
   jouaient sur le papier (chaque libellé au-dessus de sa valeur, tableaux empilés en fiches). */
@media screen and (max-width: 900px) {
  /* Tableaux empilés : une ligne devient une fiche, chaque cellule garde son intitulé. */
  .tableau table.empilable { min-width: 0; }
  table.empilable, .empilable tbody, .empilable tr, .empilable td { display: block; width: 100%; }
  .empilable thead { display: none; }
  .empilable tr { padding: 14px 16px; border-top: 1px solid var(--trait-2); }
  .empilable tbody tr:first-child { border-top: 0; }
  .carte.pleine .empilable td, .empilable td { border: 0; padding: 4px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; white-space: normal; text-align: right; min-width: 0; }
  .empilable td::before { content: attr(data-label); flex: none; font-size: 12px; font-weight: 600; color: var(--encre-3); text-align: left; }
  .carte.pleine .empilable td:first-child, .empilable td:first-child { display: block; text-align: left; padding-bottom: 8px; }
  .empilable td:first-child::before, .empilable td.actions-ligne::before { content: none; }
  .carte.pleine .empilable td.actions-ligne, .empilable td.actions-ligne { justify-content: flex-start; gap: 6px; padding-top: 8px; }
  .carte.pleine .empilable td:empty, .empilable td:empty { display: none; }
  .empilable td.avancement .barres { width: 60%; }
  .carte.pleine .empilable td:first-child, .carte.pleine .empilable td:last-child { padding-left: 0; padding-right: 0; }
  .tableau table { min-width: 560px; }
  .certificat { padding: 24px 18px; }
  .certificat dl { grid-template-columns: 1fr; }
}
.seulement-telephone { display: none; }
@media (max-width: 560px) {
  .barre > .btn { display: none; }
  .btn.seulement-telephone { display: inline-flex; }
  .frise { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .indicateurs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .valeur b { font-size: 26px; }
  .kpi .bas { display: none; }
  .entete .actions-entete, .entete .actions-entete .btn { width: 100%; }
}

/* Lot B : tablette et téléphone */
@media (max-width: 1240px) {
  .grille-questionnaires { grid-template-columns: 240px minmax(0, 1fr); }
  .grille-questionnaires > .colonne-droite { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
}
@media (max-width: 1100px) {
  .grille-donnees { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .grille-questionnaires { grid-template-columns: minmax(0, 1fr); }
  .tableau-demandes { overflow: visible; }
  .colonnes { grid-template-columns: 1fr; min-width: 0; }
  .colonne { min-height: 0; }
  .analyse h2.titre-analyse { font-size: 21px; }
  .correspondance label { grid-template-columns: 1fr; gap: 2px; }
  .correspondance label > span[aria-hidden] { display: none; }
}

/* --- Pages publiques : formulaire de demande et questionnaire en ligne --- */
.page-publique { max-width: 760px; margin: 0 auto; padding: 28px 16px 56px; }
.tete-publique { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; }
/* Rappel avant la signature d'un contrat payé par la personne : prix, formation, délais (L. 221-14). */
.engagement { border: 1px solid var(--or); background: var(--or-pale, #FBF4E2); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
.engagement p { margin: 0; }
.engagement p + p { margin-top: 6px; font-size: 14px; }
.tete-publique i { width: 42px; height: 42px; border-radius: 12px; background: var(--encre); color: var(--or); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; font-size: 14px; flex: none; }
.tete-publique span { display: flex; flex-direction: column; line-height: 1.25; font-weight: 700; font-size: 17px; }
.tete-publique small { font-weight: 400; font-size: 13px; color: var(--encre-3); }
.page-publique h1 { font-size: 30px; }
.page-publique .intro { font-size: 16px; color: var(--encre-2); margin: 10px 0 0; }
.page-publique .carte { padding: 26px 28px; }
.page-publique .carte + .carte { margin-top: 16px; }
.etapes-publiques { display: flex; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 13px; font-weight: 600; color: var(--encre-3); flex-wrap: wrap; }
.etapes-publiques li { display: flex; align-items: center; gap: 6px; }
.etapes-publiques li b { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1.5px var(--trait-fort); font-size: 12px; }
.etapes-publiques li[aria-current="step"] { color: var(--encre); }
.etapes-publiques li[aria-current="step"] b { background: var(--or); box-shadow: none; color: var(--encre); }
.etapes-publiques li.fait b { background: var(--vert); color: #FFFFFF; box-shadow: none; }
.fiche-offre { margin: 8px 0 0; padding: 12px 14px; background: var(--fond); border-radius: 10px; font-size: 14px; color: var(--encre-2); }
.fiche-offre p { margin: 0; } .fiche-offre p + p { margin-top: 4px; }
.piege { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.mentions { margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--trait); border-radius: 12px; font-size: 13px; color: var(--encre-2); line-height: 1.5; }
.mentions p { margin: 0; } .mentions p + p { margin-top: 6px; }
.pied-publique { margin-top: 24px; font-size: 12px; color: var(--encre-3); text-align: center; }
.page-publique .btn.principal.grand, .page-publique .btn.grand { min-height: 48px; padding: 8px 22px; font-size: 15px; white-space: normal; max-width: 100%; text-align: center; }
.merci { text-align: center; padding: 34px 28px !important; }
.merci .rond-merci { width: 56px; height: 56px; border-radius: 50%; background: var(--vert-pale); color: var(--vert); display: inline-flex; align-items: center; justify-content: center; }
.merci .rond-merci .ic { width: 28px; height: 28px; }
.merci h1 { margin-top: 14px; font-size: 26px; }
.merci p { color: var(--encre-2); max-width: 520px; margin: 10px auto 0; }
@media (max-width: 560px) {
  .page-publique .carte { padding: 20px 16px; }
  .page-publique h1 { font-size: 25px; }
}

/* --- Lot D : documents contractuels --- */
.document-vrq { font-size: 14.5px; line-height: 1.6; color: var(--encre); }
.document-vrq .doc-tete { text-align: center; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 2px solid var(--encre); }
.document-vrq .doc-org { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-3); }
.document-vrq h1 { font-size: 24px; margin: 6px 0 4px; letter-spacing: -0.01em; }
.document-vrq .doc-ref { margin: 0; font-size: 13px; color: var(--encre-3); }
.document-vrq .doc-article { margin: 0 0 16px; }
.document-vrq .doc-article h2 { font-size: 15.5px; font-weight: 800; margin: 0 0 6px; letter-spacing: 0; line-height: 1.3; }
.document-vrq .doc-numero { display: inline-block; margin-right: 6px; color: var(--or-fonce); }
.document-vrq .doc-annexe { border-top: 1px dashed var(--trait-fort); padding-top: 16px; margin-top: 24px; }
.document-vrq .doc-p { margin: 0 0 8px; }
.document-vrq .doc-p ul { margin: 4px 0 4px 20px; padding: 0; }
.document-vrq .doc-source { display: block; font-size: 11.5px; line-height: 1.4; color: var(--sarcelle); margin: 2px 0 6px; }
.document-vrq .doc-cles { display: grid; grid-template-columns: minmax(130px, 32%) minmax(0, 1fr); margin: 4px 0 10px; border: 1px solid var(--trait); border-radius: 10px; overflow: hidden; }
.document-vrq .doc-cles dt { padding: 8px 12px; background: var(--fond); font-weight: 600; font-size: 13px; color: var(--encre-2); border-top: 1px solid var(--trait); }
.document-vrq .doc-cles dd { margin: 0; padding: 8px 12px; border-top: 1px solid var(--trait); min-width: 0; overflow-wrap: anywhere; }
.document-vrq .doc-cles dt:first-of-type, .document-vrq .doc-cles dd:first-of-type { border-top: 0; }
.document-vrq .doc-cles dd ul { margin: 2px 0 2px 18px; padding: 0; }
.document-vrq .doc-tableau { overflow-x: auto; margin: 4px 0 10px; }
.document-vrq .doc-tableau table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.document-vrq .doc-tableau th, .document-vrq .doc-tableau td { border: 1px solid var(--trait); padding: 7px 10px; text-align: left; vertical-align: top; }
.document-vrq .doc-tableau thead th { background: var(--fond); font-size: 12.5px; }
.document-vrq .doc-tableau tbody th { font-weight: 600; }
.document-vrq .doc-tableau tr.total th, .document-vrq .doc-tableau tr.total td { font-weight: 800; background: var(--or-pale); }
.document-vrq .doc-cases { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 6px; }
.document-vrq .doc-cases li { display: flex; gap: 8px; align-items: flex-start; }
.document-vrq .doc-boite { font-size: 16px; line-height: 1.35; flex: none; }
.document-vrq .doc-signatures { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 10px 0; }
.document-vrq .doc-signataire { border: 1px solid var(--trait-fort); border-radius: 10px; padding: 12px 14px; min-height: 112px; }
.document-vrq .doc-signataire p { margin: 0 0 4px; }
.document-vrq .doc-role { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--encre-3); }
.document-vrq .doc-signe, .document-vrq .doc-refuse, .document-vrq .doc-attente { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700; }
.document-vrq .doc-signe { color: var(--vert); }
.document-vrq .doc-refuse { color: var(--rouge); }
.document-vrq .doc-attente { color: var(--or-fonce); }
.document-vrq .doc-ligne-signature { display: block; margin-top: 34px; padding-top: 6px; border-top: 1px solid var(--encre-3); font-size: 12px; color: var(--encre-3); }
.document-vrq .doc-reglement { border: 1px solid var(--trait); border-radius: 10px; padding: 12px 16px; background: #FFFEFA; font-size: 13.5px; }
.document-vrq .doc-reglement h4 { font-size: 14px; margin: 10px 0 4px; }
.document-vrq .doc-reglement-date { font-weight: 700; margin: 0 0 6px; }
.document-vrq .doc-formulaire { border: 1px solid var(--encre-3); border-radius: 6px; padding: 12px 16px; font-size: 13.5px; }
.document-vrq .doc-formulaire p { margin: 0 0 6px; }
.document-vrq .doc-pieces { margin: 4px 0 10px; padding-left: 20px; }
.document-vrq .doc-pieces span { font-size: 12px; color: var(--encre-3); }
mark.a-completer { background: var(--rouge-pale); color: var(--rouge); font-weight: 600; padding: 0 3px; border-radius: 3px; }

/* Éditeur de modèles */
.liste-documents small.rouge { color: var(--rouge); font-weight: 700; }
.editeur-doc .article-modele { border-top: 1px solid var(--trait); padding: 16px 0 6px; }
.editeur-doc #zone-onglet > .article-modele:first-child { border-top: 0; padding-top: 4px; }
.tete-article { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; margin-bottom: 6px; }
.tete-article h3 { font-size: 16px; }
.etiquette-annexe { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sarcelle); background: var(--sarcelle-pale); padding: 2px 8px; border-radius: 999px; vertical-align: 2px; }
.outils-q { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.outils-q .lien-texte { font-size: 13px; }
.carte-paragraphe { border: 1px solid var(--trait); border-left-width: 4px; border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; background: var(--carte); margin-top: 8px; }
.carte-paragraphe.n-obligatoire { border-left-color: var(--or-vif); }
.carte-paragraphe.n-recommande { border-left-color: var(--bleu); }
.carte-paragraphe.n-libre { border-left-color: var(--trait-fort); }
.carte-paragraphe.retire { background: var(--fond); }
.carte-paragraphe.retire .texte-p { color: var(--encre-3); text-decoration: line-through; }
.carte-paragraphe.ecart { border-color: var(--rouge); background: #FFFBFA; }
.carte-paragraphe .note { margin: 2px 0 0; font-size: 13px; }
.tete-p { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.niveau-p { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.niveau-p .ic { width: 13px; height: 13px; }
.niveau-p.n-obligatoire { background: var(--or-pale); color: var(--or-fonce); }
.niveau-p.n-recommande { background: var(--bleu-pale); color: var(--bleu); }
.niveau-p.n-libre { background: var(--trait-2); color: var(--encre-2); }
.origine-p { font-size: 12px; font-weight: 600; color: var(--violet); }
.origine-p.nouveau { color: var(--sarcelle); }
.texte-p { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.fixe-p { color: var(--encre-2); font-style: italic; }
.cases-modele { margin: 4px 0 0 18px; padding: 0; font-size: 13.5px; }
.source-p { font-size: 12px; color: var(--encre-3); }
.ajouts-article { margin: 10px 0 0; font-size: 13px; color: var(--encre-3); }
.ajouts-article .lien-texte { font-size: 13px; }
.barre-enregistrer { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: var(--encre); color: #FFFFFF; box-shadow: 0 10px 30px rgba(20, 20, 20, .18); font-size: 14px; }
.barre-enregistrer .btn { background: #FFFFFF; color: var(--encre); }
.barre-enregistrer .btn.principal { background: var(--or); border-color: var(--or); color: var(--encre); }
.champs-doc summary, .bloc-details summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--encre); }
/* Liste des données à insérer : défile dans la fenêtre, son titre reste visible. */
.champs-doc[open] { max-height: min(44vh, 420px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.champs-doc[open] summary { position: sticky; top: 0; z-index: 1; background: var(--carte); padding: 4px 0; }
.groupe-champs { margin: 12px 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-3); }
.puces-champs { display: flex; flex-wrap: wrap; gap: 6px; }
.puces-champs button { border: 1px solid var(--bleu-pale); background: var(--bleu-pale); color: var(--bleu); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: left; }
.puces-champs button:hover { border-color: var(--bleu); }
.texte-vrq { background: var(--fond); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; margin: 8px 0 0; }
.apercu-document { border: 1px solid var(--trait); border-radius: 12px; padding: 24px 26px; background: #FFFFFF; }
.comparaison { display: grid; gap: 10px; }
.ligne-comparaison { border: 1px solid var(--trait); border-left-width: 4px; border-radius: 10px; padding: 10px 12px; }
.ligne-comparaison.modifie { border-left-color: var(--violet); }
.ligne-comparaison.retire { border-left-color: var(--rouge); }
.ligne-comparaison.ajoute { border-left-color: var(--vert); }
.ligne-comparaison.nouveau_vrq { border-left-color: var(--sarcelle); }
.ligne-comparaison > .mini { margin: 0 0 6px; }
.deux-textes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.deux-textes.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 12px 0; }
.deux-textes p { margin: 4px 0 0; font-size: 13.5px; overflow-wrap: anywhere; }
.version-lecture h3 { margin: 16px 0 6px; }
.version-lecture .texte-p { margin-bottom: 8px; }
.niveaux-doc .niveau-p { margin-bottom: 4px; }
.recap-org { display: grid; grid-template-columns: minmax(130px, 38%) minmax(0, 1fr); gap: 4px 12px; margin: 4px 0; font-size: 13.5px; }
.recap-org dt { color: var(--encre-3); }
.recap-org dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.manque-valeur { color: var(--rouge); font-weight: 600; }
.formulaire fieldset.bloc-rs > :not(legend) + :not(legend) { margin-top: 12px; }
.bloc-details { border: 1px solid var(--trait); border-radius: 12px; padding: 12px 16px; }
.bloc-details[open] > summary { margin-bottom: 10px; }
.bloc-details > :not(summary) + :not(summary) { margin-top: 12px; }

/* Page d'un document, impression, préparation */
.grille-document { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
.carte-document { padding: 28px 32px; }
.carte-document.brouillon { border-style: dashed; border-color: var(--trait-fort); }
.tete-document-vue { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--trait-2); }
.tete-document-vue .source { margin: 0; }
.manquants-doc li { padding: 8px 0; }
.signatures-doc li { align-items: flex-start; flex-wrap: wrap; }
.signatures-doc li > span:first-child { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; justify-items: start; flex: 1 1 14rem; min-width: 0; }
.signatures-doc li > span:first-child, .signatures-doc li > span:first-child * { overflow-wrap: anywhere; }
/* Lot NA : les boutons d'un signataire (renvoyer, copier un lien) restent dans la carte : ils passent sous le texte quand la place manque, leurs mots à la ligne. */
.signatures-doc li > .boutons-ligne { flex: 0 1 auto; max-width: 100%; min-width: 0; }
.signatures-doc li > .boutons-ligne .btn { white-space: normal; max-width: 100%; text-align: center; }
.boutons-colonne { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 0 0 10px; }
.empreinte-texte { margin: 4px 0 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; color: var(--encre-2); }
.traces-doc { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.traces-doc li { display: grid; gap: 1px; padding-left: 12px; border-left: 2px solid var(--trait-fort); }
.traces-doc small { color: var(--encre-3); font-size: 12px; }
.choix-docs { display: grid; gap: 10px; margin-top: 12px; }
.choix-doc { display: grid; gap: 4px; text-align: left; padding: 14px 16px; border: 1px solid var(--trait-fort); border-radius: 12px; background: var(--carte); cursor: pointer; font: inherit; color: var(--encre); }
.choix-doc:hover { border-color: var(--encre); background: #FFFDF6; }
.choix-doc span { font-size: 13.5px; color: var(--encre-2); }
.puce-mini { width: 8px; height: 8px; border-radius: 50%; background: var(--gris); display: inline-block; flex: none; }
.puce-mini.ok { background: var(--vert); }
.puce-mini.attente { background: var(--or-vif); }
.puce-mini.alerte { background: var(--rouge); }
.barre-impression { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 16px; }
.barre-impression .source { flex-basis: 100%; margin: 0; }
.feuille { background: #FFFFFF; max-width: 820px; margin: 0 auto; padding: 40px 48px; border: 1px solid var(--trait); border-radius: 6px; box-shadow: 0 6px 24px rgba(20, 20, 20, .06); }
.empreinte-feuille { margin: 24px 0 0; padding-top: 10px; border-top: 1px solid var(--trait); font-size: 11px; color: var(--encre-3); overflow-wrap: anywhere; }

/* Page publique de signature */
.page-document { max-width: 880px; }
.page-publique .parties-doc { margin-top: 14px; }
.page-publique .parties-doc li { gap: 12px; }
.page-publique .carte-document { padding: 28px 30px; }
.empreinte-doc { margin: 20px 0 0; padding-top: 10px; border-top: 1px solid var(--trait-2); font-size: 12px; overflow-wrap: anywhere; }
.empreinte-doc span { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.cases-signature { border: 1px solid var(--trait); border-radius: 12px; padding: 12px 16px 14px; margin: 0; display: grid; gap: 10px; }
.cases-signature legend { font-weight: 700; padding: 0 6px; font-size: 14px; }
.etape-code { display: grid; gap: 4px; }
.refus-doc { margin-top: 18px; }
.refus-doc summary { cursor: pointer; font-size: 14px; color: var(--encre-2); }

@media (max-width: 1240px) {
  .grille-document { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 1100px) {
  .grille-document { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .deux-textes, .deux-textes.trois { grid-template-columns: 1fr; }
  .carte-document, .page-publique .carte-document { padding: 20px 16px; }
  .apercu-document { padding: 16px 14px; }
  .feuille { padding: 24px 18px; }
}
@media (max-width: 560px) {
  .document-vrq { font-size: 14px; }
  .document-vrq .doc-cles { grid-template-columns: 1fr; }
  .document-vrq .doc-cles dt { border-top: 1px solid var(--trait); }
  .document-vrq .doc-cles dd { border-top: 0; padding-top: 2px; }
  .document-vrq .doc-cles dt:first-of-type { border-top: 0; }
  .recap-org { grid-template-columns: 1fr; gap: 0; }
  .recap-org dd { margin-bottom: 6px; }
}
@media print {
  html, body { background: #FFFFFF; }
  main { padding: 0; }
  .feuille { border: 0; box-shadow: none; padding: 0; max-width: none; }
  .document-vrq { font-size: 10.5pt; }
  .document-vrq h2 { break-after: avoid; }
  .document-vrq .doc-signatures, .document-vrq .doc-signataire, .document-vrq .doc-tableau tr, .document-vrq .doc-cases li { break-inside: avoid; }
  .document-vrq .doc-annexe { break-before: page; border-top: 0; margin-top: 0; }
}

/* Saisie du prix et de l'échéancier d'un document */
.entetes-saisie, .ligne-saisie { display: grid; grid-template-columns: minmax(0, 1fr) 118px auto; gap: 8px; align-items: center; }
.entetes-saisie { font-size: 12px; font-weight: 600; color: var(--encre-3); margin-bottom: -4px; }
.ligne-saisie + .ligne-saisie { margin-top: 8px; }
.ligne-saisie input { padding: 7px 9px; min-width: 0; }
.document-vrq .doc-tableau th { text-transform: none; letter-spacing: 0; white-space: normal; color: var(--encre); font-size: 13px; }
.document-vrq .doc-tableau thead th { color: var(--encre-2); font-size: 12.5px; }
.document-vrq .doc-tableau td { font-size: 13.5px; vertical-align: top; }

/* Passages de l'organisme à relire avant l'envoi d'un document à une personne qui paie */
.liste-relire { margin: 0 0 10px; padding-left: 18px; font-size: 14px; color: var(--encre-2); }
.liste-relire li { margin: 4px 0; overflow-wrap: anywhere; }
fieldset.bloc-rs.clause-signalee { border-color: var(--rouge); background: var(--rouge-pale); }
fieldset.bloc-rs.clause-signalee .source { color: var(--encre-2); }
fieldset.bloc-rs.clause-signalee .aide { color: var(--encre-2); }
fieldset.bloc-rs.clause-signalee textarea { width: 100%; }

/* --- Lot E : envois automatiques, appréciations, registre, amélioration --- */
label.en-ligne { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--encre-2); white-space: nowrap; }
label.en-ligne select, label.en-ligne input { width: auto; padding: 6px 8px; }
label.en-ligne input[type="number"] { width: 64px; }
/* Filtres en liens (Configuration > Envois automatiques : un type d'action par onglet). */
.filtres a.filtre { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--trait-fort); background: var(--carte); color: var(--encre); font-size: 13px; font-weight: 600; text-decoration: none; }
.filtres a.filtre:hover { border-color: var(--encre-3); }
.filtres a.filtre.actif { background: var(--encre); border-color: var(--encre); color: #FFFFFF; }
/* Ce qui part tout seul : quand, quoi, où en est l'étape. */
.circuit { list-style: none; margin: 0; padding: 0; }
.circuit li { display: grid; grid-template-columns: minmax(140px, .9fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 4px 14px; align-items: start; padding: 11px 0; border-top: 1px solid var(--trait-2); font-size: 14px; }
.circuit li:first-child { border-top: 0; padding-top: 2px; }
.circuit .quand { color: var(--encre-2); font-size: 13px; }
.circuit .quoi b { display: block; }
.circuit .quoi small { display: block; color: var(--encre-3); font-size: 12.5px; margin-top: 2px; }
.circuit .ou { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; justify-content: flex-end; text-align: right; }
.circuit .ou .puce { white-space: normal; }
.circuit li.inactif .quand, .circuit li.inactif .quoi { color: var(--encre-3); }
.envois-jour b { font-size: 14px; }
pre.apercu-courriel { white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.55 Archivo, system-ui, sans-serif; background: var(--fond); border: 1px solid var(--trait); border-radius: 12px; padding: 16px 18px; margin: 12px 0; max-height: 52vh; overflow: auto; }
.circuit-reglage td { vertical-align: top; }
.circuit-reglage label.en-ligne { margin: 2px 10px 2px 0; }
.circuit-reglage input[type="time"] { width: 104px; }
.circuit-reglage input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--encre); }
/* Appréciations : moyennes question par question, verbatims. */
.notes-q li { display: grid; grid-template-columns: minmax(0, 1fr) 120px 34px; gap: 12px; align-items: center; }
.note-barre { display: block; height: 8px; border-radius: 999px; background: var(--trait-2); overflow: hidden; }
.note-barre i { display: block; height: 100%; border-radius: 999px; background: var(--e-satisfaction); }
.notes-q b.num { text-align: right; font-size: 15px; }
.verbatims { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.verbatims li { background: var(--fond); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.verbatims q { quotes: '« ' ' »'; }
.verbatims small { display: block; margin-top: 4px; font-size: 12px; color: var(--encre-3); }
.reponses-q dd.faible { color: var(--rouge); font-weight: 700; }
select.cote { width: auto; min-width: 52px; padding: 5px 6px; }
.avis-plateforme { text-align: left; margin: 18px auto 0 !important; max-width: 520px; }
/* Questionnaire public : l'échelle de 1 à 5. */
.q-note .options { gap: 6px; }
.q-note label.option { min-width: 52px; justify-content: center; }
.bornes-note { display: flex; justify-content: space-between; max-width: 316px; margin: 6px 0 0; font-size: 12px; color: var(--encre-3); }
@media (max-width: 900px) {
  .circuit li { grid-template-columns: 1fr; }
  .circuit .ou { justify-content: flex-start; text-align: left; }
  .notes-q li { grid-template-columns: minmax(0, 1fr) 80px 30px; }
}
@media (max-width: 560px) {
  .q-note label.option { min-width: 0; flex: 1 1 0; padding: 9px 0; }
  .bornes-note { max-width: none; }
}
@media print {
  .appreciations-session .boutons-carte, .actions-entete, .actions-ligne { display: none !important; }
  /* Dossier de preuves : l'état (Complet, Incomplet, En cours) est un texte de l'écran, il s'imprime ; seul le bouton « Ouvrir » reste caché. */
  #carte-dossier-preuves .actions-ligne { display: flex !important; }
  #carte-dossier-preuves .actions-ligne .btn { display: none !important; }
  .notes-q li { break-inside: avoid; }
  .note-barre { border: 1px solid var(--trait-fort); }
  .note-barre i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* --- Lot F : facture, facture d'acompte et avoir ; facturation d'une session --- */
.facture-vrq { font-size: 14px; line-height: 1.5; color: var(--encre); }
.facture-vrq p { margin: 0; }
.fac-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px 32px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 2px solid var(--encre); }
.fac-emetteur { flex: 1 1 260px; min-width: 0; font-size: 13px; color: var(--encre-2); overflow-wrap: anywhere; }
.fac-emetteur .fac-nom { font-size: 16px; font-weight: 800; color: var(--encre); margin-bottom: 2px; }
.fac-titre { flex: 0 1 auto; text-align: right; }
.facture-vrq .fac-titre h1 { font-size: 26px; line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.01em; }
.fac-numero { font-size: 15px; font-weight: 700; }
.fac-brouillon .fac-numero { color: var(--or-fonce); }
.fac-titre p + p { margin-top: 2px; font-size: 13px; color: var(--encre-2); }
.fac-parties { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 28px; margin-bottom: 20px; }
.fac-client { border: 1px solid var(--trait); border-radius: 10px; padding: 12px 16px; font-size: 13.5px; overflow-wrap: anywhere; }
.fac-client .fac-role { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-3); margin-bottom: 4px; }
.fac-nom-client { font-size: 15px; font-weight: 700; }
.fac-refs { display: grid; grid-template-columns: minmax(110px, 38%) minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 13px; align-content: start; }
.fac-refs dt { color: var(--encre-3); }
.fac-refs dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.fac-tableau { margin-bottom: 12px; }
.facture-vrq table { border-collapse: collapse; }
.fac-lignes { width: 100%; font-size: 13.5px; }
.facture-vrq .fac-lignes th { text-align: left; text-transform: none; letter-spacing: 0; white-space: normal; font-size: 12px; font-weight: 700; color: var(--encre-2); padding: 8px 10px; border-bottom: 1.5px solid var(--encre); }
.facture-vrq .fac-lignes td { padding: 10px; font-size: 13.5px; border-bottom: 1px solid var(--trait); vertical-align: top; }
.facture-vrq .fac-lignes th:first-child, .facture-vrq .fac-lignes td:first-child { padding-left: 0; }
.facture-vrq .fac-lignes th:last-child, .facture-vrq .fac-lignes td:last-child { padding-right: 0; }
.facture-vrq .fac-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fac-designation strong { display: block; font-weight: 700; }
.fac-designation span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--encre-2); }
.fac-totaux { width: auto; min-width: 320px; margin: 0 0 18px auto; font-size: 13.5px; }
.facture-vrq .fac-totaux th { text-align: left; text-transform: none; letter-spacing: 0; white-space: normal; font-size: 13.5px; font-weight: 500; color: var(--encre-2); padding: 5px 20px 5px 0; border: 0; }
.facture-vrq .fac-totaux td { text-align: right; white-space: nowrap; padding: 5px 0; border: 0; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.facture-vrq .fac-totaux tr.fac-final th, .facture-vrq .fac-totaux tr.fac-final td { font-weight: 800; font-size: 15px; color: var(--encre); border-top: 1.5px solid var(--encre); padding-top: 8px; }
.fac-mentions { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--trait); font-size: 12px; line-height: 1.5; color: var(--encre-2); }
.facture-vrq .fac-declaration { margin-top: 10px; font-size: 12px; color: var(--encre-3); }
@media screen and (max-width: 560px) {
  .fac-titre { text-align: left; }
  .fac-parties { grid-template-columns: 1fr; }
  .fac-refs { grid-template-columns: 1fr; gap: 0; }
  .fac-refs dd { margin-bottom: 6px; }
  .fac-lignes thead { display: none; }
  .fac-lignes, .fac-lignes tbody, .fac-lignes tr, .fac-lignes td { display: block; width: 100%; }
  .fac-lignes tr { padding: 10px 0; border-bottom: 1px solid var(--trait); }
  .facture-vrq .fac-lignes td { border: 0; padding: 2px 0; }
  .facture-vrq .fac-lignes td.fac-num { display: flex; justify-content: space-between; gap: 12px; }
  .facture-vrq .fac-lignes td.fac-num::before { content: attr(data-label); font-size: 12.5px; color: var(--encre-3); }
  .facture-vrq .fac-lignes td.fac-num:empty { display: none; }
  .fac-totaux { min-width: 0; width: 100%; }
}
@media print {
  /* Sur papier, le fond de l'application ne s'imprime pas, même quand la largeur de la page est celle d'une tablette. */
  .app, .zone, main { background: #FFFFFF !important; }
  .facture-vrq { font-size: 10pt; }
  .fac-lignes tr, .fac-totaux, .fac-mentions, .fac-parties { break-inside: avoid; }
}
/* Saisie des lignes ajoutées d'un brouillon : nature, désignation, quantité, prix unitaire. */
.ligne-ajout { display: grid; grid-template-columns: minmax(0, 1fr) 72px 104px auto; gap: 6px; align-items: center; }
.ligne-ajout select { grid-column: 1 / -1; }
.ligne-ajout input, .ligne-ajout select { min-width: 0; padding: 7px 9px; font-size: 14px; }
.ligne-ajout + .ligne-ajout { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--trait-fort); }
.ligne-ajout .btn .ic { width: 16px; height: 16px; }
#lignes-ajout:not(:empty) { margin-bottom: 4px; }
/* Facturation d'une session : parts par payeur, points bloquants. */
.parts { display: grid; gap: 3px; font-size: 13px; text-align: left; }
.rouge-texte { color: var(--rouge); font-weight: 600; }
/* Champ figé (série de numérotation ouverte) : il se lit, ne se modifie pas. */
input:disabled:not([type="checkbox"]):not([type="radio"]), select:disabled, textarea:disabled { background: var(--fond); color: var(--encre-3); cursor: not-allowed; }
.facture-vrq .fac-lignes th.fac-num { white-space: nowrap; }
.note ul { margin: 6px 0 0; padding-left: 18px; }
.note li + li { margin-top: 4px; }
@media (max-width: 900px) {
  .empilable td .parts { text-align: right; }
}
/* --- Lot G : bilan pédagogique et financier --- */
.table-bpf th[scope="row"] { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; color: var(--encre); white-space: normal; padding: 10px 12px; border-bottom: 1px solid var(--trait-2); }
.table-bpf th.num, .table-bpf td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-bpf td .mini { display: block; }
.table-bpf .piece-bpf { white-space: nowrap; }
.table-bpf td select { min-width: 240px; }
.table-bpf tr.vide-bpf th, .table-bpf tr.vide-bpf td { color: var(--encre-3); }
.table-bpf tr.groupe-bpf th { background: var(--fond); color: var(--encre-2); font-size: 12.5px; font-weight: 700; text-transform: none; letter-spacing: 0; white-space: normal; }
.table-bpf tr.sous-total-bpf th, .table-bpf tr.sous-total-bpf td { font-weight: 600; }
.table-bpf tr.total-bpf th, .table-bpf tr.total-bpf td { font-weight: 700; border-top: 1.5px solid var(--encre); }
.table-bpf tr:last-child th { border-bottom: 0; }
.carte.pleine .table-bpf th:first-child, .carte.pleine .table-bpf td:first-child { padding-left: 24px; }
.cle-bpf { display: inline-block; min-width: 28px; margin-right: 6px; font-size: 12px; font-weight: 700; color: var(--encre-3); font-variant-numeric: tabular-nums; }
.bpf-pied-c { margin-top: 12px; display: grid; gap: 10px; padding-bottom: 14px; }
.bpf-pied-c details .table-bpf th[scope="row"] { padding-left: 0; }
.points-bpf h3 { margin: 16px 0 4px; font-size: 15px; }
.points-bpf .liste select { max-width: 340px; }
.bpf-refs { grid-template-columns: minmax(130px, 42%) minmax(0, 1fr); }
.bpf-exercice form.formulaire { max-width: 520px; }
.ajouts-bpf { display: grid; gap: 10px; }
.ajout-bpf { display: grid; grid-template-columns: minmax(0, 1.3fr) 110px 120px minmax(0, 1.2fr); gap: 8px; align-items: center; padding-top: 10px; border-top: 1px solid var(--trait-2); }
.ajouts-bpf.un-champ .ajout-bpf { grid-template-columns: minmax(0, 1.4fr) 140px minmax(0, 1.2fr); }
.ajout-bpf:first-child { border-top: 0; padding-top: 0; }
.ajout-bpf .libelle-ajout { font-size: 13.5px; }
.ajout-bpf input, .ajout-bpf select { min-width: 0; padding: 7px 9px; font-size: 14px; }
/* En-têtes des colonnes de saisie : le libellé complet, que le champ, plus étroit, abrège. */
.ajout-bpf.tete-ajouts { align-items: end; font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--encre-3); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 900px) {
  .empilable.table-bpf th[scope="row"], .empilable.table-bpf th[scope="colgroup"] { display: block; padding: 0 0 6px; border: 0; background: none; }
  .carte.pleine .empilable.table-bpf th:first-child { padding-left: 0; }
  .empilable.table-bpf tr.groupe-bpf { padding-bottom: 0; }
}
@media (max-width: 700px) {
  .ajout-bpf, .ajouts-bpf.un-champ .ajout-bpf { grid-template-columns: 1fr 1fr; }
  .ajout-bpf .libelle-ajout, .ajout-bpf select, .ajout-bpf input[name^="motif"] { grid-column: 1 / -1; }
  .ajout-bpf.tete-ajouts { display: none; }
  .tete-ajouts + .ajout-bpf { border-top: 0; padding-top: 0; }
  .points-bpf .liste select { max-width: 100%; width: 100%; }
}
/* Produits à établir : une session et une ligne par rangée, ses heures pas encore facturées, puis la décision. */
.liste li.ae-bpf .ae-tete { display: flex; flex-direction: column; min-width: 0; }
.liste li.ae-bpf .ae-decision { margin-left: auto; text-align: right; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.liste li.ae-bpf .ae-decision small { font-weight: 400; }
.ae-form { display: grid; grid-template-columns: minmax(0, 1.3fr) 150px minmax(0, 1.2fr) auto; gap: 8px 12px; align-items: end; width: 100%; }
.ae-form label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--encre-2); }
.ae-form input, .ae-form select { min-width: 0; padding: 7px 9px; font-size: 14px; font-weight: 400; }
.ae-form .ae-tete { align-self: center; }
.ae-form .ae-actions { white-space: nowrap; }
.ae-form .ae-note { grid-column: 1 / -1; }
@media (max-width: 700px) {
  .ae-form { grid-template-columns: 1fr 1fr; }
  .ae-form .ae-tete, .ae-form .ae-actions { grid-column: 1 / -1; }
  .liste li.ae-bpf { flex-wrap: wrap; }
}
.bpf-feuille h1 { font-size: 26px; margin-bottom: 4px; }
.bpf-feuille h2 { font-size: 15px; margin: 22px 0 8px; }
.bpf-feuille .table-bpf th, .bpf-feuille .table-bpf td { padding: 5px 8px; font-size: 12.5px; }
@media print { .bpf-feuille h2 { break-after: avoid; } .bpf-feuille table { break-inside: avoid; } }
/* Lot LL : état au format du formulaire. Ses cadres, repères et intitulés reprennent ceux du formulaire ; ni logo, ni couleur, ni case
   du formulaire, ni en-tête ou pied de page de l'organisme. */
.bpf-formulaire h1 { font-size: 22px; line-height: 1.25; margin-bottom: 6px; }
.bpf-formulaire h2 { font-size: 14px; letter-spacing: .02em; line-height: 1.35; margin: 26px 0 8px; overflow-wrap: anywhere; }
.bpf-formulaire h3 { font-size: 13px; letter-spacing: .02em; line-height: 1.35; margin: 16px 0 6px; overflow-wrap: anywhere; }
.bpf-formulaire .tableau { overflow-x: visible; }
.bpf-formulaire .formulaire-bpf, .bpf-formulaire .tableau table.formulaire-bpf { width: 100%; min-width: 0; table-layout: auto; }
.bpf-formulaire .table-bpf th, .bpf-formulaire .table-bpf td { padding: 5px 8px; font-size: 12.5px; vertical-align: top; }
.bpf-formulaire .table-bpf thead th { white-space: normal; vertical-align: bottom; letter-spacing: 0; line-height: 1.3; text-transform: none; }
.bpf-formulaire .table-bpf th[scope="row"] { font-size: 12.5px; padding: 5px 8px; }
.bpf-formulaire .table-bpf td.repere { width: 2.6em; text-align: center; font-weight: 700; white-space: nowrap; color: var(--encre-2); padding-left: 4px; padding-right: 4px; }
.bpf-formulaire .table-bpf td.code-bpf { width: 4em; text-align: center; font-variant-numeric: tabular-nums; }
.bpf-formulaire .table-bpf th.num, .bpf-formulaire .table-bpf td.num { min-width: 5.5em; }
.bpf-formulaire .table-bpf tr.dont-bpf th[scope="row"] { padding-left: 26px; font-weight: 400; }
.bpf-formulaire .table-bpf tr.vide-bpf td { height: 2em; }
.bpf-formulaire .bpf-refs { grid-template-columns: minmax(130px, 46%) minmax(0, 1fr); }
.bpf-formulaire .bpf-refs dd { font-weight: 600; }
.origine-bpf { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 400; color: var(--encre-3); }
.mention-jour-bpf { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 400; font-style: italic; color: var(--encre-3); }
.bpf-formulaire .intro-bpf { margin: 0 0 8px; font-size: 13px; color: var(--encre-2); }
.bpf-formulaire .part-bpf { margin-top: 8px; }
.a-completer-bpf { font-weight: 400; color: var(--encre-3); font-style: italic; }
@media (max-width: 700px) {
  .bpf-formulaire .table-bpf th, .bpf-formulaire .table-bpf td { padding: 5px 4px; font-size: 12px; }
  .bpf-formulaire .table-bpf th.num, .bpf-formulaire .table-bpf td.num { min-width: 0; }
  .bpf-formulaire .formulaire-bpf, .bpf-formulaire .tableau table.formulaire-bpf { table-layout: fixed; }
  .bpf-formulaire .table-bpf thead th { font-size: 9px; letter-spacing: 0; padding: 4px 2px; overflow-wrap: normal; hyphens: none; }
  .bpf-formulaire .table-bpf thead th:first-child, .bpf-formulaire .table-bpf td.repere { width: 48px; }
  .bpf-formulaire .table-bpf thead th.num { width: 64px; }
  .bpf-formulaire .table-bpf td.code-bpf, .bpf-formulaire .table-bpf thead th:nth-child(3):not(.num) { width: 44px; }
  .bpf-formulaire .bpf-refs { grid-template-columns: 1fr; gap: 0; }
  .bpf-formulaire .bpf-refs dd { margin-bottom: 8px; }
}
@page bpf-formulaire { margin: 18mm 16mm 20mm; @bottom-center { content: "Page " counter(page) " sur " counter(pages); font-size: 9pt; color: #555; } }
@media print {
  .bpf-formulaire { page: bpf-formulaire; }
  .bpf-formulaire h2, .bpf-formulaire h3 { break-after: avoid; }
  .bpf-formulaire .cadre-bpf { break-inside: avoid; }
  .bpf-formulaire .cadre-bpf.cadre-long { break-inside: auto; }
  .bpf-formulaire .cadre-long > .source { break-before: avoid; }
  .bpf-formulaire .cadre-bpf .cadre-bpf { break-inside: avoid; }
  .bpf-formulaire thead { display: table-header-group; }
  .bpf-formulaire tr { break-inside: avoid; }
  .bpf-formulaire .table-bpf th, .bpf-formulaire .table-bpf td { padding: 2px 6px; font-size: 9pt; }
  .bpf-formulaire .table-bpf th[scope="row"] { font-size: 9pt; padding: 2px 6px; }
  .bpf-formulaire .table-bpf thead th { font-size: 7.5pt; padding-bottom: 3px; }
  .bpf-formulaire .table-bpf thead th.num { width: 12em; }
  .bpf-formulaire h1 { font-size: 15pt; }
  .bpf-formulaire h2 { font-size: 10pt; margin: 11px 0 4px; }
  .bpf-formulaire h3 { font-size: 9pt; margin: 8px 0 3px; }
  .bpf-formulaire .bpf-refs { font-size: 9pt; }
  .bpf-formulaire .source { margin: 4px 0; font-size: 8.5pt; }
  .bpf-formulaire .intro-bpf { font-size: 9pt; margin: 0 0 4px; }
  .bpf-formulaire .mention-jour-bpf { font-size: 8pt; }
}

/* --- Lot H : espace de formation du stagiaire (formation à distance) --- */
.note.ok { border-color: var(--vert); background: var(--vert-pale); }
.page-espace h2 { font-size: 19px; margin: 0 0 12px; }
.page-espace h3 { font-size: 15px; margin: 18px 0 8px; }
.progression-espace { margin: 18px 0 0; }
.progression-espace p { margin: 8px 0 0; font-size: 14px; color: var(--encre-2); }
.barre-prog { height: 10px; background: var(--trait-2); border-radius: 999px; overflow: hidden; }
.barre-prog b { display: block; height: 100%; background: var(--vert); border-radius: 999px; min-width: 4px; }
.sequence-espace { font-size: 13px !important; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--encre-3); margin: 20px 0 8px !important; }
.sequence-espace:first-of-type { margin-top: 4px !important; }
.activites-espace { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.activite-espace { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--trait); border-radius: 12px; background: var(--carte); color: var(--encre); text-align: left; font: inherit; cursor: pointer; }
.activite-espace:hover { border-color: var(--trait-fort); background: #FFFDF6; }
.activite-espace[aria-disabled="true"] { color: var(--encre-3); background: var(--fond); }
.activite-espace .texte-activite { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.activite-espace .texte-activite b { font-weight: 700; }
.activite-espace .texte-activite small { color: var(--encre-3); font-size: 13px; margin-top: 2px; }
.activite-espace .puce { flex: none; }
.pastille-type { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--bleu-pale); color: var(--bleu); }
.pastille-type .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.t-quiz .pastille-type, .t-acquis .pastille-type { background: var(--or-pale); color: var(--or-fonce); }
.t-devoir .pastille-type { background: var(--vert-pale); color: var(--vert); }
.fil-echanges { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fil-echanges li { padding: 12px 14px; border-radius: 12px; background: var(--fond); }
.fil-echanges li.de-moi { background: var(--bleu-pale); }
.fil-echanges .tete-echange { margin: 0; font-weight: 700; font-size: 14px; }
.fil-echanges .tete-echange small { display: block; font-weight: 400; color: var(--encre-3); font-size: 12.5px; }
.fil-echanges .de-moi .tete-echange small { color: var(--encre-2); }
.fil-echanges .corps { margin: 6px 0 0; white-space: pre-line; font-size: 14px; }
.fil-echanges .puce { margin-top: 8px; }
.liste-simple { margin: 0; padding-left: 18px; color: var(--encre-2); font-size: 14px; }
.liste-simple li + li { margin-top: 6px; }
.boutons-ligne { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: flex-end; }
dialog.dialogue-espace { max-width: 720px; max-height: calc(100vh - 32px); overflow-y: auto; }
.dialogue-espace .consigne { margin: 12px 0 16px; padding: 12px 14px; border-left: 3px solid var(--bleu); background: var(--bleu-pale); border-radius: 0 10px 10px 0; font-size: 14px; }
.dialogue-espace .fermer-fenetre { margin: 22px 0 0; text-align: right; }
/* Lot I : contenu hébergé (vidéo, document, module SCORM) dans un cadre isolé. */
dialog.dialogue-espace.tres-large { max-width: 980px; }
.cadre-contenu { margin: 12px 0 10px; }
.cadre-contenu iframe { display: block; width: 100%; height: min(72vh, 640px); border: 0; border-radius: 10px; background: #111111; }
.cadre-contenu.cadre-document iframe, .cadre-contenu.cadre-scorm iframe { background: #FFFFFF; border: 1px solid var(--trait-2); }
.envoi-contenu { margin: 6px 0 12px; }
.envoi-contenu progress { width: 100%; height: 10px; }
.contenu-heberge .texte-activite small + small { margin-top: 2px; }
/* Contenu hébergé : ses actions passent sous le texte (elles sont nombreuses), alignées sur lui. */
.activite-parcours.contenu-heberge { flex-wrap: wrap; align-items: flex-start; }
.contenu-heberge .texte-activite { flex-basis: calc(100% - 60px); }
.contenu-heberge .actions-activite { width: 100%; justify-content: flex-start; padding-left: 48px; }
.contenu-heberge .texte-activite small[title] { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.form-quiz .bloc-q { border: 0; padding: 0; margin: 0; }
.form-quiz .bloc-q > legend { display: none; }
.form-quiz .question { padding: 12px 0; border-top: 1px solid var(--trait-2); }
.form-quiz .question:first-of-type { border-top: 0; }
.form-quiz .question.juste .verdict { color: var(--vert); }
.form-quiz .question.faux .verdict { color: var(--rouge); }
.form-quiz .verdict { margin: 8px 0 0; font-size: 13px; font-weight: 700; }
.correction-quiz { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; }
.correction-quiz li.juste::marker { color: var(--vert); }
.correction-quiz li.faux::marker { color: var(--rouge); }
.correction-quiz p { margin: 2px 0; }
.zone-signature { width: 100%; height: 200px; background: #FFFFFF; border: 1px dashed var(--encre-3); border-radius: 10px; touch-action: none; display: block; }
@media (max-width: 560px) {
  dialog.dialogue-espace, dialog.dialogue-espace.tres-large { width: 100%; max-width: none; max-height: 100vh; height: 100vh; margin: 0; border-radius: 0; padding: 20px 16px; }
  .cadre-contenu iframe { height: 62vh; }
  .activite-espace { flex-wrap: wrap; row-gap: 6px; }
  .activite-espace .texte-activite { flex-basis: calc(100% - 60px); }
  .activite-espace .puce { margin-left: 48px; }
  .liste li .boutons-ligne { justify-content: flex-start; }
}
/* Lot H : parcours, suivi et relevé de la formation à distance (organisme) */
.sequence-parcours { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--encre-3); margin: 18px 0 8px; }
.sequence-parcours:first-of-type { margin-top: 2px; }
.sequence-parcours small { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.activites-parcours, .releve-activites { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.activite-parcours { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--trait); border-radius: 12px; }
.activite-parcours .texte-activite, .releve-activites .texte-activite { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.activite-parcours .texte-activite small, .releve-activites .texte-activite small { color: var(--encre-3); font-size: 13px; margin-top: 2px; }
.actions-activite { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.actions-activite .btn.petit { min-width: 32px; }
.releve-activites > li { padding: 10px 12px; border: 1px solid var(--trait); border-radius: 12px; }
.releve-activites .tete-act { display: flex; align-items: center; gap: 12px; }
.releve-activites .tete-act .puce, .releve-activites .tete-act .mini { flex: none; }
/* État d'une activité au relevé : la date de réalisation, puis la mention d'une déclaration du stagiaire, en colonne. */
.releve-activites .etat-act { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 230px; text-align: right; }
.releve-activites .etat-act .mini { white-space: normal; line-height: 1.35; }
.sous-releve { margin: 8px 0 0 48px; padding: 0; list-style: none; font-size: 13.5px; color: var(--encre-2); display: grid; gap: 4px; }
.sous-releve .mini { margin-top: 2px; }
.types-activite .options { gap: 6px; }
.question-quiz { border: 1px solid var(--trait); border-radius: 12px; padding: 12px 14px 4px; margin: 0 0 10px; display: grid; gap: 10px; min-width: 0; }
.question-quiz > legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.reponses-quiz { display: grid; gap: 6px; }
.reponse-quiz { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.reponse-quiz label.case { font-size: 13px; color: var(--encre-2); }
.boutons-quiz { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.lien-copie { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.liste li .lien-copie { max-width: 60%; }
blockquote.citation { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--trait-fort); background: var(--fond); border-radius: 0 10px 10px 0; white-space: pre-line; font-size: 14px; }
blockquote.citation small { display: block; color: var(--encre-3); margin-top: 4px; white-space: normal; }
.ligne-visio { display: flex; gap: 8px; align-items: center; min-width: 0; flex: 1; justify-content: flex-end; }
.ligne-visio input { max-width: 340px; min-width: 0; flex: 1; }
.jauge-distance { max-width: 140px; margin: 6px 0 2px; }
.jauge-distance b { background: var(--vert); }
.table-distance td { vertical-align: top; }
.table-distance .boutons-ligne { justify-content: flex-start; }
.boutons-ligne.gauche { justify-content: flex-start; }
@media (max-width: 700px) {
  .activite-parcours { flex-wrap: wrap; }
  .actions-activite { width: 100%; justify-content: flex-start; padding-left: 48px; }
  .sous-releve { margin-left: 0; }
  .releve-activites .tete-act { flex-wrap: wrap; }
  .ligne-visio { width: 100%; justify-content: flex-start; }
  .liste li .lien-copie { max-width: 100%; }
}
@media print {
  .page-releve .actions-entete, .ne-pas-imprimer { display: none !important; }
}

/* Lot H : empreintes SHA-256 (relevé figé, protocole annoncé, import) et texte de l'offre Mon Compte Formation. */
.empreinte { display: block; margin-top: 2px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; color: var(--encre-3); overflow-wrap: anywhere; }
.texte-offre { margin: 12px 0 0; padding: 14px 16px; background: var(--fond); border: 1px solid var(--trait); border-radius: 10px; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; color: var(--encre); }
.texte-offre p { margin: 0 0 8px; }
.texte-offre p:last-child { margin: 0; }
/* Validation d'une classe virtuelle : une ligne par présence signée, la case « connecté(e) » cochée d'avance. */
.presences-classe .case { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 0 6px; }
.presences-classe .case .mini { color: var(--encre-3); }
.presences-classe .aide { margin: 8px 0 6px; }
/* Relevé : signature retirée par le formateur, avec son motif, en colonne. */
.etat-seance { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 240px; text-align: right; }
.etat-seance .mini { white-space: normal; line-height: 1.35; }
/* Lot I : droits sur un contenu (formulaire d'activité, fenêtre « Droits »). */
fieldset.droits-contenu { border: 1px solid var(--trait); border-radius: 12px; padding: 14px 16px 12px; margin: 4px 0 2px; display: grid; gap: 12px; }
fieldset.droits-contenu > legend { font-weight: 700; padding: 0 6px; font-size: 14px; }
fieldset.droits-contenu .aide { margin: 0; }

/* --- Lot J : suivi commercial --- */
.e-commercial { --e: #4F6385; --e-pale: #E8EDF5; --e-texte: #34445F; }
.bande-pistes { background: #EEEDE6; border-radius: var(--rayon); padding: 12px; margin: 0 0 14px; }
.bande-pistes .tete { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 2px 4px; }
.bande-pistes .tete i { width: 10px; height: 10px; border-radius: 3px; background: var(--e); flex: none; }
.bande-pistes h2 { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: 0; }
.bande-pistes .tete span { font-size: 12px; font-weight: 700; color: var(--encre-2); }
.bande-pistes .sous { margin: 0 0 0 8px; font-size: 12px; color: var(--encre-2); }
.cartes-pistes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 10px; align-items: start; }
.bande-pistes .rien { margin: 6px 4px; font-size: 13px; color: var(--encre-2); }
.plus-pistes { margin: 10px 4px 0; font-size: 13px; }
.carte-demande .proba { margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--encre-3); }
.badge-analyse.commercial { background: #E8EDF5; color: #34445F; }
.faits { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 18px; margin: 4px 0 10px; }
.faits div { min-width: 0; }
.faits dt { font-size: 12px; font-weight: 700; color: var(--encre-3); }
.faits dd { margin: 2px 0 0; font-weight: 700; }
.faits dd small { display: block; font-weight: 400; font-size: 12px; color: var(--encre-3); }
.puces { margin: 8px 0 14px; padding-left: 20px; }
.puces li { margin: 4px 0; }
.periode-bilan { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 0 0 8px; }
.periode-bilan label { min-width: 170px; }
.periode-bilan #export-bilan { margin-left: auto; }
.jauge-objectif { height: 10px; border-radius: 5px; background: var(--trait-2); overflow: hidden; margin: 10px 0 8px; }
.jauge-objectif b { display: block; height: 100%; background: var(--vert); }
.prevision { list-style: none; margin: 0; padding: 0; }
.ligne-prevision { display: grid; grid-template-columns: 150px minmax(0, 1fr) 220px; align-items: center; gap: 14px; padding: 8px 0; border-top: 1px solid var(--trait-2); font-size: 13px; }
.ligne-prevision:first-child { border-top: 0; }
.ligne-prevision .mois { font-weight: 600; }
.barre-prevision { position: relative; height: 12px; border-radius: 6px; background: var(--trait-2); overflow: hidden; }
.barre-prevision i, .barre-prevision b { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 6px; }
.barre-prevision i { background: #C9D3E4; }
.barre-prevision b { background: #4F6385; }
.ligne-prevision .montants { font-weight: 700; text-align: right; }
.ligne-prevision .montants small { display: block; font-weight: 400; color: var(--encre-3); }
.legende-prevision { margin: 12px 0 0; }
.legende-prevision i { display: inline-block; width: 14px; height: 8px; border-radius: 2px; margin: 0 6px 0 14px; vertical-align: middle; }
.legende-prevision i:first-child { margin-left: 0; }
.legende-prevision .brut-l { background: #C9D3E4; }
.legende-prevision .pondere-l { background: #4F6385; }
tr.total td { font-weight: 700; border-top: 2px solid var(--trait-fort); }
.tableau table.compacte { min-width: 0; }
.compacte th, .compacte td { padding-left: 8px; padding-right: 8px; }
@media (max-width: 560px) {
  .ligne-prevision { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ligne-prevision .montants { text-align: left; }
  .periode-bilan #export-bilan { margin-left: 0; }
}

/* --- Lot K : planning et ressources --- */
.planning-outils { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin: 0 0 16px; }
.nav-periode { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nav-periode .periode { font-size: 18px; margin: 0 0 0 6px; }
.filtres-pl { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.filtres-pl label { min-width: 170px; }
.filtres-pl select { padding: 6px 10px; font-size: 14px; }
.carte.planning { padding: 0; overflow: hidden; }
/* Les libellés réservés aux lecteurs d'écran restent dans la grille qui défile (sinon la page déborde). */
.grille-pl { position: relative; }
.planning-semaine, .planning-mois { table-layout: fixed; }
.planning-semaine { min-width: 760px; }
.planning-semaine th, .planning-semaine td { border: 1px solid var(--trait-2); vertical-align: top; padding: 8px; }
.planning-semaine thead th { text-align: center; background: var(--fond); }
.planning-semaine tbody th { width: 104px; background: var(--fond); vertical-align: middle; }
.planning-semaine td.aujourdhui, .planning-mois td.aujourdhui { background: #FFFCF2; }
.planning-semaine th.aujourdhui { color: var(--or-fonce); }
.creneau { display: block; width: 100%; text-align: left; border: 1px solid var(--trait-fort); border-left: 4px solid var(--bleu); border-radius: 8px; background: var(--carte); padding: 6px 8px; margin: 0 0 6px; cursor: pointer; font-size: 12px; line-height: 1.35; color: var(--encre); }
.creneau:hover { background: var(--fond); }
.creneau .titre-cr { display: block; font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creneau small { display: block; color: var(--encre-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creneau.tenue { border-left-color: var(--vert); }
.creneau.conflit { border-left-color: var(--rouge); background: var(--rouge-pale); }
.badge-pl { display: block; margin-top: 3px; font-size: 11px; font-weight: 700; color: var(--encre-2); white-space: normal; }
.creneau .badge-pl { white-space: normal; }
.badge-pl.alerte { color: var(--rouge); }
.indispo { display: block; font-size: 12px; font-weight: 600; color: var(--encre-2); padding: 4px 8px; margin: 0 0 6px; border-radius: 8px; border: 1px dashed var(--trait-fort); background: repeating-linear-gradient(135deg, var(--trait-2) 0 5px, transparent 5px 10px); }
.agenda-pl { display: none; list-style: none; margin: 0; padding: 0; }
.agenda-pl > li { padding: 14px 16px; border-top: 1px solid var(--trait-2); }
.agenda-pl > li:first-child { border-top: 0; }
.agenda-pl h3 { font-size: 15px; margin: 0 0 8px; }
.agenda-pl h4 { font-size: 13px; margin: 10px 0 6px; color: var(--encre-2); font-weight: 600; }
.agenda-pl .creneau .titre-cr, .agenda-pl .creneau small { white-space: normal; }
.planning-mois { min-width: 560px; }
.planning-mois th { text-align: center; background: var(--fond); }
.planning-mois td { border: 1px solid var(--trait-2); padding: 0; vertical-align: top; height: 92px; }
.planning-mois td.hors { background: var(--fond); }
.jour-mois { display: block; min-height: 92px; padding: 6px 8px; text-decoration: none; color: var(--encre); }
.jour-mois:hover { background: var(--fond); color: var(--encre); }
.jour-mois b { display: block; font-size: 14px; }
.jour-mois small { display: block; font-size: 12px; color: var(--encre-2); }
.jour-mois.conflit { box-shadow: inset 3px 0 0 var(--rouge); }
.planning-mois td.aujourdhui b { color: var(--or-fonce); }
.liste li.urgent { box-shadow: inset 3px 0 0 var(--rouge); padding-left: 12px; }
.boutons-pl { display: inline-flex; align-items: center; gap: 8px; flex: none; }
#f-absence > .carte + .carte, #f-absence > .carte { margin-top: 16px; }
#f-absence label.case select { margin-top: 6px; }
#f-absence label.case input[type=date], #f-absence label.case input[type=time] { padding: 5px 8px; font-size: 14px; margin: 4px 2px 0; }
@media (max-width: 900px) {
  .semaine-pl { display: none; }
  .agenda-pl { display: block; }
  .filtres-pl { width: 100%; }
  .filtres-pl label { flex: 1 1 150px; min-width: 0; }
}
@media (max-width: 600px) {
  .tableau table.planning-mois { min-width: 0; }
  .planning-mois th { padding: 8px 2px; font-size: 11px; letter-spacing: 0; }
  .planning-mois td { height: 54px; }
  .jour-mois { min-height: 54px; padding: 6px 4px; text-align: center; }
  /* Sur téléphone, les comptes restent lus par les lecteurs d'écran ; des marques les remplacent à l'œil. */
  .jour-mois { position: relative; }
  .jour-mois small { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .jour-mois.occupe b::after { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--bleu); margin: 5px auto 0; }
  .jour-mois.conflit b::after { background: var(--rouge); }
  .jour-mois.conflit { box-shadow: inset 0 -3px 0 var(--rouge); }
  .jour-mois.a-indispo::before { content: ''; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 2px; border: 1px dashed var(--trait-fort);
    background: repeating-linear-gradient(135deg, var(--trait-2) 0 2px, transparent 2px 4px); }
  .planning .legende-mois { display: block; }
}
.legende-mois { display: none; margin: 10px 16px 14px; }
.pastille-mois { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; }
.pastille-mois.occupe { background: var(--bleu); }
.pastille-mois.conflit { background: var(--rouge); }
.pastille-mois.a-indispo { border-radius: 2px; border: 1px dashed var(--trait-fort); background: repeating-linear-gradient(135deg, var(--trait-2) 0 2px, transparent 2px 4px); }
#f-ress-s p { margin: 0; }
#zone-ressources > .note { margin: 14px 0 0; }
small.ref { display: block; margin-top: 4px; }

/* --- Lot L : portail de l'entreprise et de l'intervenant ponctuel (téléphone d'abord) --- */
.page-portail .certificat h1 { font-size: 26px; }
.page-portail h3 { font-size: 15px; margin: 20px 0 8px; }
.titre-portail { margin: 22px 0 6px !important; font-size: 16px !important; }
.chiffres-portail { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; padding: 0; }
.chiffres-portail li { background: var(--fond); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chiffres-portail b { font-size: 24px; font-weight: 800; line-height: 1.1; }
.chiffres-portail span { font-size: 13px; color: var(--encre-2); line-height: 1.3; }
.liste-portail { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ligne-portail { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--trait); border-radius: 12px; background: var(--carte); color: var(--encre); text-align: left; font: inherit; cursor: pointer; }
.ligne-portail:hover { border-color: var(--trait-fort); background: #FFFDF6; }
.ligne-portail .texte-ligne { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; line-height: 1.35; }
.ligne-portail .texte-ligne b { font-weight: 700; }
.ligne-portail .texte-ligne small { color: var(--encre-3); font-size: 13px; }
.ligne-portail .puce { flex: none; }
.taux-ligne { display: grid; gap: 4px; margin-top: 6px; max-width: 340px; }
.taux-ligne .barre-prog { height: 8px; }
.intro-fenetre { margin: 6px 0 0; color: var(--encre-2); font-size: 15px; }
.intro-fenetre .puce { margin-left: 6px; vertical-align: 1px; }
.cles-portail { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px 14px; margin: 14px 0 0; font-size: 14px; }
.cles-portail dt { color: var(--encre-3); }
.cles-portail dd { margin: 0; }
.table-portail { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-portail th, .table-portail td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--trait-2); vertical-align: top; }
.table-portail thead th { border-top: 0; font-size: 12px; color: var(--encre-3); font-weight: 600; }
.qr-portail { max-width: 280px; margin: 6px auto 10px; }
.boutons-impression { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.confirmer-envoi p { font-size: 14px; }
.dialogue-espace h3 { font-size: 15px; margin: 20px 0 8px; }
.dialogue-espace h3 .discret { font-size: 13px; font-weight: 500; color: var(--encre-3); margin-left: 6px; }
.barre-fenetre { margin: 12px 0 0; }
.barre-fenetre .barre-prog { display: block; }
.table-portail td small { display: block; color: var(--encre-3); font-size: 13px; margin-top: 2px; }
.table-portail td:last-child, .table-portail th:last-child { text-align: right; white-space: nowrap; }
@media (max-width: 560px) {
  .chiffres-portail { gap: 6px; }
  .chiffres-portail li { padding: 10px; }
  .chiffres-portail b { font-size: 20px; }
  .chiffres-portail span { font-size: 12px; }
  .ligne-portail { flex-wrap: wrap; row-gap: 8px; }
  .cles-portail { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cles-portail dd { margin-bottom: 8px; }
  .table-portail th, .table-portail td { padding: 7px 4px; }
}
@media print {
  .page-portail .tete-publique, .page-portail .pied-publique { display: none; }
}
.page-portail h3 .discret { font-size: 13px; font-weight: 500; color: var(--encre-3); margin-left: 6px; }

/* Lot L : étapes avant de montrer l'attestation à l'employeur ; mention de l'exemplaire consultable d'une facture. */
.etapes-att { margin: 8px 0 12px; padding-left: 22px; }
.etapes-att li { margin: 6px 0; }
.fac-exemplaire { font-size: 12px; margin-top: 6px; }
/* Lot L11 : ligne désignée par un lien de Ma journée. */
.liste li.surligne { background: var(--or-pale, #fff6dd); border-radius: 8px; }

/* Lot L3 : contenu d'une version figée de la fiche */
dl.details { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 6px 16px; margin: 0; }
dl.details dt { font-weight: 600; color: var(--encre-2); }
dl.details dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 600px) { dl.details { grid-template-columns: 1fr; } dl.details dd { margin-bottom: 8px; } }

/* Lot L4 : aperçu de la fiche publique, cases des financements, résultats publiés. */
dl.fiche-publique { margin: 8px 0 0; display: grid; gap: 8px; }
dl.fiche-publique dt { font-size: 12px; font-weight: 700; color: var(--encre-3); }
dl.fiche-publique dd { margin: 2px 0 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
fieldset.groupe-cases { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
fieldset.groupe-cases > legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 6px; }
fieldset.groupe-cases.manque > legend { color: var(--rouge); }
pre.texte-copie { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; background: var(--fond); padding: 10px; border-radius: 8px; }
.resultats-formules { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--encre-2); }
.resultats-formules li { margin: 3px 0; }
.serie-declarative { border-left: 3px solid var(--or); padding-left: 10px; }

/* --- Lot L5 : déroulement et accompagnement --- */
.signature-mini { display: block; max-width: 90px; height: 34px; }
.ligne-confirmation { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 6px 0; border-top: 1px solid var(--trait); }
.ligne-confirmation .case { min-width: 160px; }
.feuille-presence table td, .feuille-presence table th { vertical-align: top; }
.feuille-presence .mini { font-size: 12px; color: var(--encre-2); }
@media print {
  .feuille-presence { border: 0; box-shadow: none; padding: 0; }
  .feuille-presence table { font-size: 9pt; }
  .feuille-presence tr { break-inside: avoid; }
}
@media (max-width: 640px) { .ligne-confirmation { flex-direction: column; align-items: stretch; } }
/* Lot L6 : sous-traitance, équipe, veille et partenaires. */
.alerte-texte { display: block; color: var(--rouge); font-size: 13px; margin-top: 2px; }
.carte.retire { opacity: .75; }
.liste .actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
@media (max-width: 640px) { dl.details { grid-template-columns: 1fr; } .liste .actions select { max-width: 100%; } }
/* Lot L9 : dossier du bilan (déroulement, dossier de travail, attestations imprimables). */
.bloc-bilan + .bloc-bilan { border-top: 1px solid var(--trait); margin-top: 18px; padding-top: 12px; }
.bloc-bilan h3 { margin: 4px 0 10px; font-size: 16px; }
.bloc-bilan h4 { margin: 16px 0 8px; font-size: 14px; }
.encadre { border: 1px solid var(--trait); border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; background: var(--carte); }
.encadre h3, .encadre h4 { margin-top: 0; }
.texte-libre { display: block; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 4px; font-size: 14px; }
fieldset.cases { border: 0; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
fieldset.cases > legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 6px; }
.feuille-bilan { background: var(--carte); padding: 18px; border-radius: 10px; }
.feuille-bilan .confidentiel { font-weight: 700; letter-spacing: .02em; color: var(--rouge); }
.feuille-bilan [contenteditable] { min-height: 4em; border: 1px dashed var(--trait); border-radius: 8px; padding: 8px; }
@media print { .feuille-bilan [contenteditable] { border: 0; } .feuille-bilan { padding: 0; } }
@media (max-width: 640px) { fieldset.cases { flex-direction: column; } }

/* Lots LC et LD : texte de l'équipe VRQ à un emplacement (repère, conseil, modèle, questions). */
.texte-vrq { border-left: 3px solid var(--bleu); background: var(--bleu-pale); padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: 14px; margin: 0 0 12px; color: var(--encre); overflow-wrap: anywhere; }
.texte-vrq .tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--bleu); }
.texte-vrq .tete .mini { font-weight: 400; color: var(--encre-2); }
.texte-vrq p { margin: 0 0 8px; }
.texte-vrq ul, .texte-vrq ol { margin: 0 0 8px; padding-left: 20px; }
.texte-vrq li + li { margin-top: 3px; }
.texte-vrq a { color: var(--bleu); text-decoration: underline; }
.texte-vrq .corps-vrq > :last-child { margin-bottom: 0; }
.texte-vrq .pied-vrq { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 8px 0 0; }
.texte-vrq .pied-vrq .aide { color: var(--encre-2); }
details.texte-vrq.replie > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--bleu); }
details.texte-vrq.replie > summary .mini { font-weight: 400; color: var(--encre-2); margin-left: 10px; }
details.texte-vrq.replie[open] > summary { margin-bottom: 8px; }
details.texte-vrq.replie > summary:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; border-radius: 4px; }
details.repere-vrq { margin-top: 6px; }
details.repere-vrq > summary { cursor: pointer; }
details.repere-vrq .texte-vrq { margin: 6px 0 0; }
@media print { .texte-vrq { break-inside: avoid; background: none; border-left-color: var(--encre-3); } }

/* --- Lot LX : écrans allégés, bouton « i » qui ouvre sur place un texte d'accompagnement (public/repli.js) --- */
/* Zone tactile de 44 px, cercle visible de 22 px ; les marges négatives gardent la hauteur de la ligne. */
button.info { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; margin: -11px -6px -11px -4px; padding: 0 8px; border: 0; background: transparent; color: var(--bleu); font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0; line-height: 1; vertical-align: middle; cursor: pointer; border-radius: 999px; }
button.info .info-rond { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--bleu); background: var(--bleu-pale); font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 700; font-size: 14px; }
button.info:hover .info-rond { background: #D2E3F8; }
button.info[aria-expanded="true"] .info-rond { background: var(--bleu); color: #FFFFFF; }
button.info:focus-visible { outline: 2px solid var(--or-vif); outline-offset: -4px; }
button.info.info-legende { margin: -11px 0 -11px -8px; }
.repli-ligne { margin: 4px 0; line-height: 22px; }
span.repli-ligne { display: block; }
.libelle-info { display: block; }
.repli-panneau { display: block; margin: 6px 0 10px; padding: 10px 14px; border-left: 3px solid var(--bleu); background: var(--fond); border-radius: 0 8px 8px 0; font-size: 13.5px; font-weight: 400; color: var(--encre-2); }
.repli-panneau[hidden] { display: none; }
.repli-panneau > :first-child { margin-top: 0; }
.repli-panneau > :last-child { margin-bottom: 0; }
.repli-panneau.en-ligne { display: inline; margin: 0; padding: 0; border: 0; background: none; font-size: inherit; color: inherit; }
.repli-panneau.source-repliee { margin: 6px 0 0; padding: 6px 10px; }
.repli-panneau.source-repliee small { margin: 0; }
label > .aide.repli-panneau { margin: 0; }
.charte-partie { margin: 0 0 8px; }
.charte-titre { font-weight: 700; color: var(--encre); }
.charte-partie ol { margin: 4px 0 0; padding-left: 20px; }
.charte-partie li + li { margin-top: 2px; }
.charte-source { display: block; margin-top: 2px; }
.charte-exemple { margin: 4px 0 0; font-style: italic; }
.charte-sous { font-weight: 600; color: var(--encre); }
.charte-regle { margin-top: 6px; }
/* « Voir la règle complète » : bouton de texte, zone tactile de 44 px sans agrandir la ligne. */
button.voir-plus { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0 -12px 2px; padding: 0 4px; border: 0; background: transparent; color: var(--bleu); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; vertical-align: middle; }
button.voir-plus:focus-visible { outline: 2px solid var(--or-vif); outline-offset: -2px; border-radius: 4px; }
.regle-complete { display: block; margin: 6px 0 2px; padding: 6px 10px; border-left: 3px solid var(--bleu); background: #FFFFFF; border-radius: 0 6px 6px 0; }
.regle-complete[hidden] { display: none; }
.regle-complete small { display: block; margin-top: 4px; }
.charte-repere .corps-vrq { margin-top: 4px; }
.texte-vrq .tete button.info { margin-left: 2px; }
@media print {
  .repli-panneau[hidden] { display: block !important; }
  .repli-panneau.en-ligne[hidden] { display: inline !important; }
  .repli-panneau { border: 0; background: none; padding: 0; }
  button.info, button.voir-plus, .repli-ligne { display: none !important; }
  .regle-complete[hidden] { display: block !important; }
}
/* Ligne de donnée étiquetée (libellé, valeur, actions) : boutons et liens ne se coupent pas, donc pas de mot orphelin. */
.ligne-donnee { margin: 0 0 10px; line-height: 1.9; }
.ligne-donnee .btn, .ligne-donnee a, .ligne-donnee .puce { white-space: nowrap; }
.ligne-donnee .mini { display: block; line-height: 1.4; }
/* Règle d'une action de Ma journée : petits caractères ; sur grand écran, le panneau prend toute la largeur de la ligne
   tout en restant, dans le texte lu, juste après son bouton. */
.taches .regle-ligne { font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--encre-2); }
.taches .regle-ligne p, .taches .regle-ligne div { margin: 0 0 6px; font-size: 13px; font-weight: 400; }
.taches .regle-ligne .charte-titre { font-weight: 700; }
@media (min-width: 700px) {
  .taches li.a-regle { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 14px; align-items: center; }
  .taches li.a-regle > .texte { display: contents; }
  .taches li.a-regle > .puce-etape { grid-column: 1; grid-row: 1 / 5; }
  .taches li.a-regle > .faire { grid-column: 3; grid-row: 1 / 5; }
  .taches li.a-regle .texte > p, .taches li.a-regle .texte > small, .taches li.a-regle .texte > button { grid-column: 2; justify-self: start; }
  .taches li.a-regle .texte > .regle-ligne { grid-column: 1 / -1; grid-row: 5; justify-self: stretch; margin: 6px 0 0; }
}
/* Le panneau « i » d'un titre de carte passe sous le titre, sur toute la largeur. */
.carte .titre-carte > .repli-panneau { flex: 1 0 100%; order: 3; margin: 0; }
/* Encart VRQ : le « i » suit le titre, la date reste à droite. Sources fusionnées dans un panneau : une par ligne. */
.texte-vrq .tete button.info + .mini { margin-left: auto; }
/* Encart d'une carte qui a déjà son « i » : il s'ouvre par « Lire », à la suite de son titre ; son texte s'imprime ouvert. */
.texte-vrq .tete button.voir-plus + .mini { margin-left: auto; }
.texte-vrq.replie:has(> .corps-replie[hidden]) > .tete { margin-bottom: 0; }
@media print { .texte-vrq .corps-replie[hidden] { display: block !important; } }
.charte-partie > small { display: block; margin-top: 4px; }
.charte-partie small { margin-left: 4px; }
.charte-partie > small { margin-left: 0; }
/* --- Lot LS : fenêtre « Signer », registre et attestation de signature --- */
dialog.fenetre-signature { max-width: 640px; max-height: calc(100vh - 24px); overflow-y: auto; }
.fenetre-signature .sig-resume { margin: 12px 0; padding: 12px 14px; border-left: 3px solid var(--bleu); background: var(--bleu-pale); border-radius: 0 10px 10px 0; }
.fenetre-signature .sig-resume h3 { margin: 0 0 6px; }
.fenetre-signature .sig-resume ul { margin: 0 0 8px; padding-left: 18px; }
.fenetre-signature .sig-resume li { margin: 2px 0; overflow-wrap: anywhere; }
.fenetre-signature .sig-case { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; margin: 14px 0 10px; font-weight: 600; }
.fenetre-signature .sig-case input { width: 44px; height: 44px; flex: none; margin: 0; }
.fenetre-signature .sig-reference { margin: 6px 0 0; font-size: .8rem; color: var(--encre-2); }
.fenetre-signature .sig-reference code { font-size: .8rem; color: var(--encre-2); }
.fenetre-signature .sig-sous { margin-left: 18px; list-style: circle; }
.formulaire fieldset.corriges { border: 1px solid var(--trait-2, #d9d9d9); border-radius: 8px; padding: 10px 12px; margin: 12px 0; min-width: 0; }
.formulaire fieldset.corriges legend { font-weight: 600; padding: 0 6px; }
.formulaire fieldset.corriges small { color: var(--texte-2, #555); }
.formulaire fieldset.corriges input:disabled + span { opacity: .7; }
.fenetre-signature .sig-long summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--bleu); text-decoration: underline; }
.fenetre-signature .sig-long .sig-plein { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 40vh; overflow-y: auto; padding: 6px 8px; background: #fff; border-radius: 6px; }
.fenetre-signature canvas { display: block; width: 100%; aspect-ratio: 10 / 3; height: auto; background: #fff; border: 2px dashed var(--encre-3); border-radius: 10px; touch-action: none; cursor: crosshair; }
.fenetre-signature .sig-bouton { min-height: 44px; min-width: 44px; padding: 0 18px; }
.fenetre-signature .sig-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.fenetre-signature .sig-clavier { margin: 10px 0; }
.fenetre-signature .sig-clavier summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.fenetre-signature .sig-clavier label { display: block; font-weight: 600; }
.fenetre-signature .sig-clavier input { display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 0 12px; }
.fenetre-signature code, .attestation-signature code { font-size: 12px; overflow-wrap: anywhere; word-break: break-all; }
.attestation-signature h2 { margin: 18px 0 6px; }
.attestation-signature .cadre-trace-attestation { max-width: 520px; border: 1px solid var(--trait-fort); border-radius: 10px; background: #fff; padding: 6px; }
.attestation-signature .trace-signature { display: block; width: 100%; height: auto; }
.attestation-signature .empreintes dt { font-weight: 700; margin-top: 8px; }
.attestation-signature .empreintes dd { margin: 2px 0 0; }
@media (max-width: 560px) {
  dialog.fenetre-signature { width: 100%; max-width: none; max-height: 100vh; height: 100vh; margin: 0; border-radius: 0; padding: 18px 14px; }
  .fenetre-signature .sig-actions .btn { flex: 1; }
}
/* Lot LS : cadre de tracé des pages ouvertes (document signé par lien personnel). */
.sig-zone-ouverte { display: block; width: 100%; aspect-ratio: 10 / 3; min-height: 120px; border: 2px solid currentColor; border-radius: 8px; background: #fff; touch-action: none; }
/* Lot LS : filtres du registre des signatures sur une ligne qui passe à la ligne, boutons à leur largeur. */
#f-sig-filtre { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-bottom: 16px; }
#f-sig-filtre label { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 4px; margin: 0; }
#f-sig-filtre .btn { width: auto; min-height: 44px; }
#f-sig-filtre label { max-width: 100%; min-width: 0; }
#f-sig-filtre select, #f-sig-filtre input { max-width: 100%; box-sizing: border-box; }
/* Lot LE : historique des échanges. */
.echanges .echange { align-items: flex-start; }
.echange-corps { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.echange-tete small, .echange-corps > small { display: block; color: var(--encre-3); }
.echange-texte { white-space: pre-wrap; overflow-wrap: anywhere; }
.echange-texte.discret { color: var(--encre-3); font-style: italic; }
.rattachements { border: 1px solid var(--trait-2); border-radius: 10px; padding: 8px 14px 12px; margin: 0 0 14px; }
@media (max-width: 640px) { .echanges .echange { flex-direction: column; } }
.ligne-echanges { margin: 4px 0 12px; font-size: 0.95rem; }
.ligne-echanges a { color: var(--lien, inherit); text-decoration: underline; }
.lien-bouton { background: none; border: 0; padding: 0; font: inherit; color: var(--lien, inherit); text-decoration: underline; cursor: pointer; align-self: flex-start; min-height: 32px; }
.versions li { display: block; padding: 6px 0; }
.versions { border-left: 3px solid var(--trait-2); padding-left: 10px; margin-top: 4px; }
/* Lot LF : fiche officielle de France compétences (données affichées telles quelles). */
.fc-fiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 18px; margin: 10px 0 14px; }
.fc-fiche > div { min-width: 0; }
.fc-fiche dt { font-size: .8rem; color: var(--encre-3); }
.fc-fiche dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.fc-apercu { grid-column: 1 / -1; }
.fc-apercu .fc-note p { margin: 4px 0; }
button.voir-plus { min-width: 44px; justify-content: center; }
/* Débordement à 390 px (hérité d'avant le lot) : un texte réservé aux lecteurs d'écran, positionné dans un tableau qui
   défile, échappait au tableau et élargissait la page ; un bouton long ne peut plus dépasser son conteneur. */
.tableau { position: relative; }
@media (max-width: 480px) { .btn { max-width: 100%; white-space: normal; } }
@media print { details.plus > summary { display: none; } }

/* --- Lot LM : documents préparés d'après les modèles VRQ --- */
.modele-zone { margin: 0 0 14px; }
.modele-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 8px; }
.modele-actions .liste-docs { list-style: none; margin: 0; padding: 0; flex-basis: 100%; }
.modele-actions .liste-docs li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 4px 0; font-size: 13.5px; }
.docs-remplaces { flex-basis: 100%; font-size: 13px; color: var(--encre-2); }
.voir-modele > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--encre-2); margin: 0 0 6px; }
.modele-ligne { flex-basis: 100%; margin-top: 6px; }
.modele-prep { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 20px; align-items: start; margin: 12px 0; }
.modele-champs { display: flex; flex-direction: column; gap: 10px; max-height: 62vh; overflow: auto; padding-right: 6px; }
.champ-modele { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border: 1px solid var(--trait); border-radius: 10px; background: var(--carte); }
.champ-modele.a-saisir { border-color: #C9892B; background: #FFF8EC; }
.champ-modele label { font-size: 13px; font-weight: 600; }
.champ-modele input[type="text"], .champ-modele input[type="date"], .champ-modele select, .champ-modele textarea { width: 100%; box-sizing: border-box; }
.champ-modele .cases { display: flex; flex-direction: column; gap: 4px; }
.champ-modele .cases label { font-weight: 400; }
.a-saisir-mention { color: #8A5A10; font-weight: 700; font-size: 12px; }
.source-champ { color: var(--encre-3); font-size: 12px; }
.alerte-modele { background: #FFF1E6; border: 1px solid #E0A56B; border-radius: 8px; padding: 8px 12px; font-size: 13.5px; }
.choix-contexte { display: block; margin: 8px 0; font-weight: 600; font-size: 13.5px; }
.document-modele { font-family: Georgia, 'Times New Roman', serif; line-height: 1.5; color: #111; background: #FFFFFF; }
.document-modele.apercu { border: 1px solid var(--trait-fort); border-radius: 10px; padding: 18px 22px; max-height: 58vh; overflow: auto; }
.document-modele h1 { font-size: 20px; margin: 18px 0 12px; }
.document-modele h3 { font-size: 15px; margin: 16px 0 6px; }
.document-modele p, .document-modele li { font-size: 14px; margin: 0 0 8px; white-space: pre-line; }
.document-modele ul, .document-modele ol { padding-left: 22px; margin: 0 0 8px; }
.document-modele .rub { display: block; font-size: 13px; color: #333; }
.document-modele .rub span { display: block; }
.document-modele mark.manque { background: #FFE4A8; color: #5A3A00; padding: 0 4px; border-radius: 4px; cursor: pointer; font-family: system-ui, sans-serif; font-size: 12.5px; }
.entete-doc { display: flex; flex-direction: column; gap: 2px; border-bottom: 2px solid #111; padding-bottom: 8px; font-size: 13px; }
.entete-doc b { font-size: 16px; }
.signatures { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.signature { flex: 1 1 220px; min-height: 92px; border-top: 1px solid #111; padding-top: 4px; }
.signature p { margin: 0; font-size: 13px; }
.signature .mention { color: #555; font-size: 12px; }
.pied-doc { margin-top: 24px; border-top: 1px solid #999; padding-top: 6px; font-size: 11px; color: #555; font-family: system-ui, sans-serif; }
label.ajuster, .modele-droite label.ajuster { flex-direction: row; justify-content: flex-start; width: auto; display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; font-weight: 600; font-size: 13.5px; }
.texte-ajuste { width: 100%; box-sizing: border-box; font: inherit; }
@media (max-width: 900px) {
  .modele-prep { grid-template-columns: 1fr; }
  .modele-champs { max-height: none; }
  .document-modele.apercu { max-height: none; padding: 14px; }
}
#impression-modele { display: none; }
@page { margin: 18mm 16mm 20mm; @bottom-center { content: counter(page) " / " counter(pages); font-size: 9pt; color: #555; } }
@media print {
  body.impression-modele > *:not(#impression-modele) { display: none !important; }
  body.impression-modele #impression-modele { display: block; }
  body.impression-modele { background: #FFFFFF; }
  #impression-modele .document-modele { font-size: 11pt; }
  #impression-modele .signature { break-inside: avoid; }
  #impression-modele h1, #impression-modele h3 { break-after: avoid; }
  #impression-modele p, #impression-modele li { break-inside: avoid; orphans: 3; widows: 3; }
}

.champ-modele input[type="checkbox"], label.ajuster input { width: auto; flex: none; }

/* --- Lot LI : identité visuelle des documents contractuels (logo, couleur, en-tête, pied de page, trois styles) ---
   L'écran seulement : la feuille d'impression (pied répété, numéro de page, en-tête allégé, bandeau, filet) est fabriquée par
   public/identite-rendu.js et posée par la vue qui affiche le document. Sans identité, le rendu d'avant (.doc-tete) ne change pas. */
.document-vrq.avec-identite { --id-couleur: #1D5FA8; }
.document-vrq.avec-identite .id-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 2px solid var(--id-couleur); }
.document-vrq.avec-identite .id-marque { display: flex; align-items: center; gap: 12px; min-width: 0; }
.document-vrq.avec-identite .id-logo { display: block; flex: none; max-width: 100%; object-fit: contain; }
.document-vrq.avec-identite .id-nom { margin: 0; font-weight: 800; font-size: 17px; line-height: 1.15; overflow-wrap: anywhere; }
.document-vrq.avec-identite .id-coordonnees { margin: 0; flex: 0 0 auto; max-width: 55%; text-align: right; font-size: 12.5px; line-height: 1.5; color: var(--encre-2); overflow-wrap: break-word; }
.document-vrq.avec-identite .id-tete-centre { flex-direction: column; justify-content: center; text-align: center; gap: 8px; }
.document-vrq.avec-identite .id-tete-centre .id-nom { font-size: 18px; }
.document-vrq.avec-identite .id-tete-centre .id-coordonnees { text-align: center; max-width: 100%; }
.document-vrq.avec-identite .id-titre { display: flex; flex-direction: column; gap: 4px; margin: 0 0 20px; }
.document-vrq.avec-identite .id-titre .doc-ref { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--id-couleur); }
.document-vrq.avec-identite .id-titre h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; overflow-wrap: anywhere; }
.document-vrq.avec-identite .doc-article h2 { color: var(--id-couleur); }
.document-vrq.avec-identite .doc-numero { color: inherit; }
.document-vrq.avec-identite .id-pied { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--gris); display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; font-size: 12px; line-height: 1.45; color: var(--encre-2); }
.document-vrq.avec-identite .id-pied p { margin: 0; overflow-wrap: anywhere; }
.document-vrq.avec-identite .id-pied-gauche { min-width: 0; max-width: 500px; }
.document-vrq.avec-identite .id-pied-droite { text-align: right; white-space: nowrap; }
/* Bandeau : fond de la couleur, texte blanc, logo sur un carreau blanc. */
.document-vrq.avec-identite.id-style-bandeau .id-tete { background: var(--id-couleur); color: #FFFFFF; padding: 22px 28px; border: 0; border-radius: 10px; margin-bottom: 24px; }
.document-vrq.avec-identite.id-style-bandeau .id-coordonnees { color: #FFFFFF; }
.document-vrq.avec-identite .id-logo-carreau { display: flex; flex: none; background: #FFFFFF; border-radius: 10px; padding: 6px; }
.document-vrq.avec-identite.id-style-bandeau .id-pied { border-top: 3px solid var(--id-couleur); }
/* Filet : une bande de la couleur sur le bord gauche de la feuille ; en-tête sans trait, bloc de titre entre deux filets gris. */
.document-vrq.avec-identite.id-style-filet { border-left: 12px solid var(--id-couleur); padding-left: 24px; }
.document-vrq.avec-identite.id-style-filet .id-tete { border-bottom: 0; padding-bottom: 0; margin-bottom: 20px; }
.document-vrq.avec-identite.id-style-filet .id-titre { align-items: center; text-align: center; padding: 18px 0; border-top: 1px solid var(--gris); border-bottom: 1px solid var(--gris); margin-bottom: 24px; }
.document-vrq.avec-identite.id-style-filet .id-pied { flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.document-vrq.avec-identite.id-style-filet .id-pied-droite { text-align: center; white-space: normal; }
@media (max-width: 560px) {
  .document-vrq.avec-identite .id-tete { flex-direction: column; align-items: flex-start; }
  .document-vrq.avec-identite .id-coordonnees { text-align: left; }
  .document-vrq.avec-identite .id-pied { flex-direction: column; align-items: flex-start; }
  .document-vrq.avec-identite .id-pied-droite { text-align: left; white-space: normal; }
  .document-vrq.avec-identite .id-titre h1 { font-size: 23px; }
  .document-vrq.avec-identite.id-style-filet { border-left-width: 8px; padding-left: 14px; }
}
/* Lot LI : écran « Identité visuelle » (Documents). */
.id-ecran { min-width: 0; }
.id-ecran h2 { margin: 0 0 12px; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.id-ecran .tete-modele h2 { margin-bottom: 6px; }
.id-ligne-logo { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.id-logo-zone { width: 220px; min-height: 96px; border: 1px dashed var(--trait); border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 8px; background: var(--fond-doux, #FBFAF7); box-sizing: border-box; }
.id-logo-zone img { max-width: 100%; max-height: 80px; height: auto; object-fit: contain; }
.id-logo-actions { flex: 1 1 240px; min-width: 0; }
.id-logo-actions p { margin: 0 0 10px; }
.id-fichier { cursor: pointer; }
.id-couleur { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.id-couleur label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.id-couleur-champ { display: flex; align-items: center; gap: 10px; }
.id-couleur-champ input[type=color] { width: 44px; height: 44px; padding: 2px; border-radius: 10px; border: 1px solid var(--trait); background: #fff; cursor: pointer; }
.id-couleur-champ input[type=text] { width: 130px; min-height: 44px; font-variant-numeric: tabular-nums; text-transform: uppercase; }
.id-couleur .aide { flex: 1 1 260px; margin: 0; }
.id-raccourcis { display: flex; gap: 10px; margin: 12px 0 0; }
.id-pastille { width: 44px; height: 44px; border-radius: 10px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--trait); cursor: pointer; padding: 0; }
.id-pastille:hover, .id-pastille:focus-visible { box-shadow: 0 0 0 2px var(--encre, #141414); }
.id-verdict { margin: 12px 0 0; font-weight: 600; font-size: 14px; }
.id-verdict.ok { color: var(--vert); }
.id-verdict.rouge { color: var(--rouge); }
.id-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.id-cases .case, .id-ecran .case { min-height: 44px; display: flex; align-items: center; gap: 10px; }
.id-ecran .case input[type=checkbox], .id-ecran .case input[type=radio] { width: 20px; height: 20px; flex: none; }
.id-styles { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.id-styles legend { padding: 0; margin-bottom: 8px; font-size: 14px; color: var(--encre-2); }
.id-style { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--trait); border-radius: 12px; font-weight: 600; cursor: pointer; min-width: 0; }
.id-style.choisi { border: 2px solid var(--encre, #141414); padding: 11px; font-weight: 700; }
.id-vignette { display: flex; flex-direction: column; gap: 6px; height: 112px; border: 1px solid var(--trait); border-radius: 6px; background: #fff; padding: 10px; box-sizing: border-box; overflow: hidden; }
.id-vignette > span, .id-vignette .iv-colonne > span { display: block; border-radius: 3px; flex: none; }
.iv-ligne { display: flex !important; gap: 6px; align-items: center; background: none; }
.iv-logo { width: 14px; height: 14px; border-radius: 4px; }
.iv-nom { height: 5px; width: 48px; background: #A6A296; }
.iv-trait { height: 1px; }
.iv-t { height: 7px; width: 70%; background: #141414; }
.iv-l { height: 4px; background: #D9D5C9; }
.iv-l.c { width: 86%; }
.iv-bandeau { height: 26px; margin: -10px -10px 4px; border-radius: 0 !important; }
.iv-filet-ligne { flex-direction: row; gap: 8px; padding: 0; }
.iv-filet { width: 8px; flex: none; border-radius: 0 !important; align-self: stretch; }
.iv-colonne { flex: 1 1 0; padding: 10px 10px 10px 0; display: flex; flex-direction: column; gap: 6px; }
.id-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.id-actions .source { flex: 1 1 280px; margin: 0; }
@media (max-width: 560px) {
  .id-cases { grid-template-columns: 1fr; }
  .id-styles { grid-template-columns: 1fr; }
  .id-logo-zone { width: 100%; }
}
.id-vignette > .iv-colonne { display: flex !important; }
.id-ecran fieldset.choix-simple { display: flex; flex-wrap: wrap; gap: 0 24px; border: 0; padding: 0; margin: 14px 0 6px; }
.id-ecran fieldset.choix-simple legend { width: 100%; padding: 0; margin-bottom: 2px; font-size: 14px; font-weight: 600; }
/* Lot LI (revue D7) : le champ fichier du logo reste dans l'ordre de tabulation ; le bouton qui l'enveloppe porte le repère de focus. */
.id-fichier { position: relative; display: inline-flex; align-items: center; }
.id-fichier-champ { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.id-fichier:has(input:focus-visible) { outline: 2px solid var(--or-vif); outline-offset: 2px; }
/* Lot LI (seconde partie) : le formulaire de l'identité prend la place libre à droite (640 px au plus) ; aucun libellé rogné. */
@media (min-width: 764px) { .grille-documents > .id-ecran { grid-column: 2 / -1; max-width: 640px; } }
.id-ecran .case, .id-style .case { min-width: 0; overflow-wrap: anywhere; }
.id-ecran .carte { min-width: 0; }
/* Lot LI (seconde partie) : l'habillage des autres documents (facture, attestation, règlement, feuilles) reprend les règles de l'en-tête, du bandeau, du filet et du pied de la première partie. */
.habillage-id.avec-identite { --id-couleur: #1D5FA8; }
.habillage-id.avec-identite .id-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 2px solid var(--id-couleur); }
.habillage-id.avec-identite .id-marque { display: flex; align-items: center; gap: 12px; min-width: 0; }
.habillage-id.avec-identite .id-logo { display: block; flex: none; max-width: 100%; object-fit: contain; }
.habillage-id.avec-identite .id-nom { margin: 0; font-weight: 800; font-size: 17px; line-height: 1.15; overflow-wrap: anywhere; }
.habillage-id.avec-identite .id-coordonnees { margin: 0; flex: 0 0 auto; max-width: 55%; text-align: right; font-size: 12.5px; line-height: 1.5; color: var(--encre-2); overflow-wrap: break-word; }
.habillage-id.avec-identite .id-tete-centre { flex-direction: column; justify-content: center; text-align: center; gap: 8px; }
.habillage-id.avec-identite .id-tete-centre .id-nom { font-size: 18px; }
.habillage-id.avec-identite .id-tete-centre .id-coordonnees { text-align: center; max-width: 100%; }
.habillage-id.avec-identite .id-pied { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--gris); display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; font-size: 12px; line-height: 1.45; color: var(--encre-2); }
.habillage-id.avec-identite .id-pied p { margin: 0; overflow-wrap: anywhere; }
.habillage-id.avec-identite .id-pied-gauche { min-width: 0; max-width: 500px; }
.habillage-id.avec-identite .id-pied-droite { text-align: right; white-space: nowrap; }
.habillage-id.avec-identite.id-style-bandeau .id-tete { background: var(--id-couleur); color: #FFFFFF; padding: 22px 28px; border: 0; border-radius: 10px; margin-bottom: 24px; }
.habillage-id.avec-identite.id-style-bandeau .id-coordonnees { color: #FFFFFF; }
.habillage-id.avec-identite .id-logo-carreau { display: flex; flex: none; background: #FFFFFF; border-radius: 10px; padding: 6px; }
.habillage-id.avec-identite.id-style-bandeau .id-pied { border-top: 3px solid var(--id-couleur); }
.habillage-id.avec-identite.id-style-filet { border-left: 12px solid var(--id-couleur); padding-left: 24px; }
.habillage-id.avec-identite.id-style-filet .id-tete { border-bottom: 0; padding-bottom: 0; margin-bottom: 20px; }
.habillage-id.avec-identite.id-style-filet .id-pied { flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.habillage-id.avec-identite.id-style-filet .id-pied-droite { text-align: center; white-space: normal; }
@media (max-width: 560px) {
  .habillage-id.avec-identite .id-tete { flex-direction: column; align-items: flex-start; }
  .habillage-id.avec-identite .id-coordonnees { text-align: left; }
  .habillage-id.avec-identite .id-pied { flex-direction: column; align-items: flex-start; }
  .habillage-id.avec-identite .id-pied-droite { text-align: left; white-space: normal; }
  .habillage-id.avec-identite.id-style-filet { border-left-width: 8px; padding-left: 14px; }
}

/* Lot LI (seconde partie) : page publique des informations, avec l'identité de l'organisme (logo et couleur). */
.tete-publique.avec-identite { border-bottom: 3px solid var(--id-couleur); padding-bottom: 12px; }
.tete-publique .id-logo-public { height: 44px; width: auto; max-width: 180px; object-fit: contain; }

/* Lot LH (16) : cartes « Comptes » et gestionnaires : les boutons passent à la ligne, un libellé long aussi, sans défilement. */
.tableau-actions td.actions-ligne .boutons-ligne { justify-content: flex-start; }
.tableau-actions .boutons-ligne .btn { white-space: normal; text-align: left; }
/* Revue LH (F6) : la carte « Intervenants » aussi : e-mail et libellés longs passent à la ligne au lieu de faire défiler la carte. */
.tableau-actions th, .tableau-actions td { white-space: normal; overflow-wrap: normal; word-break: normal; }
@media (min-width: 1101px) and (max-width: 1240px) { .tableau-actions th, .tableau-actions td { padding-left: 8px; padding-right: 8px; } }
/* Revue LH (mots entiers) : une carte à boutons (Comptes, Gestionnaires, Intervenants) passe à la présentation empilée de l'outil (un compte sur toute la largeur :
   nom et adresse, rôle et état, puis boutons à la ligne) dès que SA zone est étroite, quelle que soit la largeur de l'écran. Aucun mot ne se coupe : seule une adresse
   de courriel peut passer à la ligne, après « @ » ou un point (`<wbr>`). */
.tableau:has(> table.tableau-actions) { container-type: inline-size; }
@container (max-width: 999px) {
  .tableau table.tableau-actions { min-width: 0; }
  table.tableau-actions, .tableau-actions tbody, .tableau-actions tr, .tableau-actions td { display: block; width: 100%; }
  .tableau-actions thead { display: none; }
  .tableau-actions tr { padding: 14px 16px; border-top: 1px solid var(--trait-2); }
  .tableau-actions tbody tr:first-child { border-top: 0; }
  .carte.pleine .tableau-actions td { border: 0; padding: 4px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; white-space: normal; text-align: right; min-width: 0; }
  .tableau-actions td::before { content: attr(data-label); flex: none; font-size: 12px; font-weight: 600; color: var(--encre-3); text-align: left; }
  .carte.pleine .tableau-actions td:first-child { display: block; text-align: left; padding-bottom: 8px; }
  .tableau-actions td:first-child::before, .tableau-actions td.actions-ligne::before { content: none; }
  .carte.pleine .tableau-actions td.actions-ligne { justify-content: flex-start; gap: 6px; padding-top: 8px; }
  .carte.pleine .tableau-actions td:empty { display: none; }
  .carte.pleine .tableau-actions td:first-child, .carte.pleine .tableau-actions td:last-child { padding-left: 0; padding-right: 0; }
}

/* Lot LI, dernières corrections : sur papier, la feuille de présence se coupe entre deux lignes (jamais en un bloc), ses colonnes tiennent dans la
   largeur de la page (en-têtes à la ligne, pas de défilement ni d'ombre), et la bulle de message ne s'imprime pas. */
@media print {
  .feuille-presence { break-inside: auto; }
  .feuille-presence .tableau { overflow: visible; background: none; }
  .feuille-presence table { width: 100%; table-layout: auto; }
  .feuille-presence th, .feuille-presence td { white-space: normal; padding: 6px 4px; }
  .feuille-presence td { overflow-wrap: anywhere; }
  .feuille-presence th { overflow-wrap: normal; word-break: normal; hyphens: none; }
  .feuille-presence thead { display: table-header-group; }
  .feuille-presence table:has(th:nth-child(5)) th { font-size: 7.5pt; letter-spacing: 0; }
  .feuille-presence table:has(th:nth-child(5)) td, .feuille-presence table:has(th:nth-child(5)) .mini { font-size: 7.5pt; }
  .toast { display: none !important; }
}

/* Lot LU : plusieurs modèles par document */
.choix-doc-modeles { cursor: default; }
.choix-doc-modeles:hover { background: var(--carte); border-color: var(--trait-fort); }
.choix-modele { border: 0; padding: 0; margin: 6px 0 4px; display: grid; gap: 6px; }
.choix-modele legend { font-weight: 600; font-size: 13.5px; padding: 0; margin-bottom: 4px; }
.liste-cartes { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 12px; }
.carte-modele { padding: 16px 18px; border: 1px solid var(--trait-fort); }
.carte-modele .tete-modele { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: space-between; align-items: baseline; }
.carte-modele h3 { margin: 0; font-size: 16px; }
.carte-modele .outils-q { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.carte-vrq { background: transparent; border-style: dashed; }
.modeles-retires { margin: 14px 0; }
.modeles-retires summary { cursor: pointer; }
.bloc-modele { border: 1px solid var(--trait-fort); border-radius: 10px; padding: 12px 14px; margin: 10px 0; }

/* Lot LH (F1, défaut 32) : sur papier, un tableau tient dans la largeur de la page. Les règles d'empilement ne jouent plus que sur l'écran
   (voir plus haut), donc chaque tableau reste un tableau : zone sans défilement ni rognage, largeur de la page, en-têtes et cellules à la
   ligne, en-tête répété sur chaque page, une ligne jamais coupée en deux. La feuille de présence garde ses propres règles (plus haut, celles de master) : elle est exclue de ce bloc. Les tableaux très larges (cinq colonnes et plus) passent en petit corps. */
@media print {
  .tableau:not(.feuille-presence .tableau), .carte.pleine .tableau:not(.feuille-presence .tableau), .tableau-demandes { overflow: visible !important; background: none; box-shadow: none; }
  .tableau:not(.feuille-presence .tableau) table, table.grille-stagiaires, .tableau:not(.feuille-presence .tableau) table.empilable { width: 100% !important; min-width: 0 !important; table-layout: auto; }
  .tableau:not(.feuille-presence .tableau) th, .tableau:not(.feuille-presence .tableau) td { white-space: normal !important; overflow-wrap: anywhere; padding: 6px 5px; }
  .tableau:not(.feuille-presence .tableau) th { overflow-wrap: normal; word-break: normal; hyphens: none; }
  .tableau:not(.feuille-presence .tableau) thead { display: table-header-group; }
  .tableau:not(.feuille-presence .tableau) tr { break-inside: avoid; }
  .tableau:not(.feuille-presence .tableau) table:has(th:nth-child(6)) th { font-size: 7.5pt; letter-spacing: 0; }
  .tableau:not(.feuille-presence .tableau) table:has(th:nth-child(6)) td, .tableau:not(.feuille-presence .tableau) table:has(th:nth-child(6)) .mini { font-size: 8pt; }
  .tableau:not(.feuille-presence .tableau) table:has(th:nth-child(5):not(:nth-child(6))) th, .tableau:not(.feuille-presence .tableau) table:has(th:nth-child(5):not(:nth-child(6))) td { font-size: 8.5pt; }
  .grille-stagiaires .col-financement { display: table-cell; }
  .grille-stagiaires td:first-child { min-width: 0; }
  .tableau:not(.feuille-presence .tableau) td *, .tableau:not(.feuille-presence .tableau) th * { white-space: normal; }
  .tableau:not(.feuille-presence .tableau) .puce { max-width: 100%; padding: 1px 5px; font-size: 7.5pt; line-height: 1.25; }
  .tableau:not(.feuille-presence .tableau) svg, .tableau:not(.feuille-presence .tableau) .icone { display: none; }
  .grille-stagiaires .financement-court { display: none; }
  /* La grille des stagiaires d'une session (douze colonnes) s'imprime comme à l'écran étroit : une fiche par ligne, chaque cellule sous son intitulé,
     au lieu de colonnes où les mots se coupent au milieu. */
  .tableau:not(.feuille-presence .tableau) table.grille-stagiaires, .tableau:not(.feuille-presence .tableau) .grille-stagiaires tbody, .tableau:not(.feuille-presence .tableau) .grille-stagiaires tr, .tableau:not(.feuille-presence .tableau) .grille-stagiaires td { display: block; width: 100% !important; }
  .tableau:not(.feuille-presence .tableau) .grille-stagiaires thead { display: none; }
  .tableau:not(.feuille-presence .tableau) .grille-stagiaires tr { padding: 8px 0; border-top: 1px solid var(--trait); }
  .tableau:not(.feuille-presence .tableau) .grille-stagiaires td { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 2px 16px; border: 0; text-align: right; font-size: 9pt; }
  .tableau:not(.feuille-presence .tableau) .grille-stagiaires td::before { content: attr(data-label); flex: none; font-size: 8pt; font-weight: 600; color: var(--encre-3); text-align: left; }
  .tableau:not(.feuille-presence .tableau) .grille-stagiaires td:first-child { display: block; text-align: left; padding: 0 16px 4px; }
  .tableau:not(.feuille-presence .tableau) .grille-stagiaires td:first-child::before, .tableau:not(.feuille-presence .tableau) .grille-stagiaires td:not([data-label])::before { content: none; }
  .tableau:not(.feuille-presence .tableau) .grille-stagiaires td:empty { display: none; }
}

/* Lot LJ (A1) : l'auditeur ne lit pas les règles de l'outil (texte, source, état) ; filet si un écran en laisse une. */
body.role-auditeur [data-accomp="regle"], body.role-auditeur .charte-regle, body.role-auditeur .puce.regle-etat { display: none !important; }

/* Lot LO-B : aperçu de la signature de courriel, trois lignes au plus, qui se replient à 320 px. */
.apercu-signature { border: 1px solid var(--trait); border-radius: 12px; background: var(--fond); padding: 12px 16px; margin: 12px 0; max-width: 520px; }
.apercu-signature h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.apercu-signature .lignes p { margin: 0; overflow-wrap: anywhere; line-height: 1.5; }
.apercu-signature .lignes p:first-child { font-weight: 600; }

/* Lot MF : deux objectifs du parcours restent distincts quand les champs s'empilent (petit écran). */
@media (max-width: 480px) { .objectif-parcours { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--trait); } .objectif-parcours:last-child { border-bottom: 0; margin-bottom: 0; } }

/* --- Lot MP : réglage des envois automatiques (Configuration). Le tableau des étapes a quatre colonnes (Étape, Quand, Relances, Active) et il lui faut
   près de 620 px : dans la colonne de gauche de la grille à deux colonnes (521 px à 1280), il défilait de côté et la case « Active », celle des étapes
   décochées par défaut, restait cachée. La carte du réglage prend donc toute la largeur ; les règles et les derniers envois passent dessous. ---
   Les cellules à plusieurs champs (nombre, heure) passent à la ligne plutôt que de pousser le tableau. */
.grille.g2:has(> #f-circuit) { grid-template-columns: minmax(0, 1fr); }
.circuit-reglage td > .cellule { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; min-width: 0; }
/* Un champ d'heure (« 10:00 AM » avec son icône) et un champ de nombre (trois chiffres) montrent tout leur texte, en français comme en anglais ;
   une indication (« À la moitié de la session ») ne touche pas le champ qui la suit. */
.circuit-reglage input[type="time"] { width: auto; min-width: 104px; }
.circuit-reglage label.en-ligne input[type="number"] { width: 76px; }
.circuit-reglage td > .cellule > .mini { margin-right: 10px; }

/* --- Lot NA : la feuille imprimée du calendrier détaillé pour Transitions Pro. Un état court (cinq séances) tient sur une page A4 ; un état long garde ses
   en-têtes à chaque page (règles du lot MT plus haut) ; la ligne « Source » et la phrase « État établi d'après le planning » ne partent jamais seules sur une
   page : elles restent avec la fin du tableau de répartition. Ne vaut que pour cet état (#calendrier-transition) et que pour l'impression. --- */
@media print {
  #calendrier-transition h1 { margin: 0 0 4pt; }
  #calendrier-transition h2 { margin: 8pt 0 3pt; break-after: avoid; }
  #calendrier-transition p { margin: 3pt 0; }
  #calendrier-transition .liste li { padding: 2pt 0; }
  #calendrier-transition th, #calendrier-transition td { padding-top: 3pt; padding-bottom: 3pt; }
  #calendrier-transition .tableau:last-of-type { break-after: avoid; }
  #calendrier-transition > p:nth-last-child(2), #calendrier-transition > p:last-child { break-before: avoid; orphans: 2; widows: 2; }
}

/* --- Lot PB (version 0.48.0) : « Mes documents » et « Mon suivi » de l'espace personnel, et la vue imprimable d'un document. --- */
.esp-liste li { flex-wrap: wrap; }
.esp-doc-texte { min-width: 0; flex: 1 1 220px; overflow-wrap: anywhere; }
.esp-liste .puce { white-space: normal; }
.esp-heures { font-size: 17px; margin: 0 0 4px; }
/* La liste « Information sur l'examen » de la carte « Mon examen » (libellé, valeur). Version 0.55.0 : elle a sa propre classe ; elle portait
   celle de la barre des rubriques (esp-rubriques), et chacune des deux règles atteignait l'autre élément (barre serrée dans 220 px, liste
   qui collait en haut de l'écran avec le fond de la barre). */
.esp-info-examen { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 6px 14px; margin: 8px 0 0; font-size: 14px; }
.esp-info-examen dt { color: var(--encre-3); }
.esp-info-examen dd { margin: 0; overflow-wrap: anywhere; }
.esp-vue .esp-boutons { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.esp-vue .certificat, .esp-vue .feuille { max-width: 100%; overflow-wrap: anywhere; }
.esp-vue .empreinte-doc span { overflow-wrap: anywhere; }
.esp-courriel { margin-top: 14px; line-height: 1.55; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .esp-info-examen { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .esp-info-examen dd { margin-bottom: 8px; }
  .esp-vue .certificat { padding: 20px 14px; }
  .esp-vue .certificat dl { grid-template-columns: minmax(0, 1fr); }
  .esp-vue .feuille { padding: 20px 14px; }
}
@media print {
  .esp-vue .pied-publique { display: none; }
  .esp-vue .certificat, .esp-vue .feuille { border: 0; box-shadow: none; padding: 0; }
}
/* --- Lot PA (version 0.48.0) : rubriques d'un espace personnel (onglets « À faire », « Mes documents », « Messages », « Mon suivi »). Style générique
   (classes esp-rubriques…), repris plus tard par les espaces de l'entreprise, du tuteur et de l'intervenant. Les quatre onglets tiennent à 360 px sans défilement
   horizontal : quatre colonnes égales, libellés qui passent à la ligne. La classe esp-rubriques ne désigne que la barre d'onglets (<nav>), dans tous les
   espaces : aucun espace n'a de règle à lui pour la barre (version 0.55.0).
   Version 0.55.0 : un libellé d'onglet ne se coupe jamais à l'intérieur d'un mot (à 320 px, « documents » se coupait en « document/s »). La barre est
   une rangée souple : quatre parts égales tant qu'il y a la place, un onglet jamais plus étroit que son plus long mot (avec sa pastille) ; si les
   quatre ne tiennent pas sur une ligne, les derniers passent à la ligne suivante, dans l'ordre, sans que la page déborde. --- */
.esp-rubriques { margin: 0 0 14px; position: sticky; top: 0; z-index: 2; background: var(--fond); padding: 6px 0; }
.esp-rubriques-onglets { display: flex; flex-wrap: wrap; gap: 4px; background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; padding: 4px; }
.esp-rubriques-onglet { position: relative; display: flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 6px 4px; border: 0; border-radius: 9px;
  background: transparent; color: var(--encre); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer;
  overflow-wrap: normal; word-break: normal; hyphens: manual; }
.esp-rubriques-onglet:hover { background: var(--fond); }
.esp-rubriques-onglet[aria-selected="true"] { background: var(--bleu); color: #fff; }
.esp-rubriques-onglet:focus-visible { outline: 3px solid var(--or-vif); outline-offset: 2px; }
.esp-rubriques-pastille { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--or); color: var(--encre); font-size: 12px; font-weight: 700; }
.esp-rubriques-panneau { margin: 0 0 18px; }
.esp-rubriques-panneau > .carte, .esp-rubriques-panneau > section { margin-top: 14px; }
/* Version 0.55.0 : le titre se place sous la barre collée en haut, quelle que soit sa hauteur (--esp-barre-hauteur, reportée par public/rubriques.js). */
.esp-rubriques-titre { margin: 6px 0 12px; font-size: 22px; scroll-margin-top: calc(var(--esp-barre-hauteur, 78px) + 12px); }
.esp-rubriques-titre:focus { outline: none; }
.esp-rubriques-titre:focus-visible { outline: 3px solid var(--or-vif); outline-offset: 3px; }
.esp-afaire li { flex-wrap: wrap; gap: 8px; }
.esp-liens-session { padding: 0 24px; margin: 0 0 12px; }
.esp-lien-etat { flex-wrap: wrap; }
@media (max-width: 420px) {
  .esp-rubriques-onglet { font-size: 12.5px; flex-direction: column; gap: 2px; padding: 4px 2px; }
}
/* --- Lot PC (version 0.48.0) : bloc « Vos données et vos droits » de l'espace de formation. --- */
.esp-droits .bloc-details { margin-top: 12px; }
.esp-droits h3 { margin-top: 16px; }

/* Lot QB (version 0.54.0) : pièces jointes de la messagerie. Un nom très long se coupe proprement ; rien ne déborde à 360 px. */
.piece-choix { margin: 8px 0; min-width: 0; }
.piece-ligne, .piece-choisie { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.piece-choisie[hidden], .piece-joindre[hidden] { display: none; }
.piece-joindre { cursor: pointer; }
.piece-joindre.inactif { opacity: .55; pointer-events: none; }
.piece-joindre:focus-within, .piece-joindre:focus { outline: 2px solid var(--bleu); outline-offset: 2px; }
.piece-nom { overflow-wrap: anywhere; word-break: break-word; min-width: 0; max-width: 100%; font-weight: 600; }
.piece-aide { margin: 6px 0 0; font-size: 13px; }
.piece-proposition, .piece-allegee { margin: 6px 0 0; overflow-wrap: break-word; }
.piece-proposition[hidden], .piece-allegee[hidden] { display: none; }
.pieces-message { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
.piece-message { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 10px; border: 1px solid var(--trait, #d9dde3); border-radius: 8px; background: var(--fond-2, #f7f8fa); min-width: 0; max-width: 100%; box-sizing: border-box; }
.piece-message .piece-type, .piece-message .piece-motif { color: var(--encre-3, #5b6573); }
.piece-motif { flex-basis: 100%; overflow-wrap: anywhere; }
.piece-retiree { font-style: italic; color: var(--encre-3, #5b6573); overflow-wrap: anywhere; }
.envoi-etat { margin-left: 6px; }

/* --- Lot QC (version 0.55.0) : l'espace de l'intervenant par son lien de créneau (quatre rubriques), la validation avec les présences
   confirmées sans signature et les absences qualifiées, le déroulé d'une session (lien de créneau et « Mon espace »). --- */
.portail-confirmations .ligne-confirmation > span, .portail-absences .ligne-confirmation > span { font-weight: 600; min-width: 160px; overflow-wrap: anywhere; }
.portail-confirmations .aide, .portail-absences .aide { margin: 0 0 6px; }
.esp-deroule-titre .discret { font-size: 13px; font-weight: 500; color: var(--encre-3); margin-left: 6px; }
.esp-deroule .liste li.esp-deroule-mien { box-shadow: inset 3px 0 0 var(--bleu); padding-left: 10px; }
.esp-deroule-page h2.esp-deroule-titre { font-size: 18px; margin: 22px 0 8px; }
.esp-deroule-page h2.esp-deroule-titre:first-of-type { margin-top: 14px; }
.esp-deroules-carte { margin-bottom: 16px; }
/* Le programme annoncé (socle, public/programme-rendu.js) dans le déroulé : libellé et texte côte à côte, l'un sous l'autre sur un téléphone. */
.esp-deroule .programme-formation { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: 14px; }
.esp-deroule .programme-formation dt { font-weight: 600; color: var(--encre-2); }
.esp-deroule .programme-formation dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .esp-deroule .programme-formation { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .esp-deroule .programme-formation dd { margin-bottom: 8px; }
}
/* --- Lot QE (version 0.55.0) : l'espace du tuteur en quatre rubriques (public/portail-tuteur.js). Textes saisis sur plusieurs
   lignes, listes et couples libellé-valeur qui passent à la ligne sans déborder à 360 px. --- */
.portail-tuteur-texte { white-space: pre-line; overflow-wrap: anywhere; }
.portail-tuteur-liste li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.portail-tuteur-liste li > .btn, .portail-tuteur-liste li > .puce { flex: none; }
.portail-tuteur-cles dd { overflow-wrap: anywhere; min-width: 0; }
.portail-tuteur-documents h3 { margin: 0 0 2px; }
.portail-tuteur-documents .liste + .liste { border-top: 1px solid var(--trait-2); }
.portail-tuteur-programme .programme-formation { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 8px 14px; margin: 14px 0 0; font-size: 14px; }
.portail-tuteur-programme .programme-formation dt { color: var(--encre-3); }
.portail-tuteur-programme .programme-formation dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
/* E3 : l'appréciation par compétence dans la part du tuteur ; un fieldset ne doit pas imposer sa largeur minimale à 360 px. */
.portail-tuteur-evaluation { min-width: 0; margin: 12px 0; padding: 10px 12px; border: 1px solid var(--trait-2); border-radius: 10px; }
.portail-tuteur-evaluation legend { padding: 0 4px; font-weight: 600; }
.portail-tuteur-competence { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--trait-2); min-width: 0; }
.portail-tuteur-competence:first-of-type { border-top: 0; }
.portail-tuteur-competence label { min-width: 0; overflow-wrap: anywhere; }
.portail-tuteur-competence select, .portail-tuteur-competence input { max-width: 100%; }
@media (max-width: 520px) {
  .portail-tuteur-programme .programme-formation { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .portail-tuteur-programme .programme-formation dd { margin-bottom: 8px; }
  .portail-tuteur-cles { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .portail-tuteur-cles dd { margin-bottom: 8px; }
  .portail-tuteur-liste li { flex-wrap: wrap; }
}
/* --- Lot QD (version 0.55.0) : l'espace de l'entreprise en quatre rubriques, la demande d'inscription de salariés nommés,
   le plan de formation ; côté gestionnaire, les établissements d'une entreprise. Rien ne déborde à 360 px. --- */
.esp-gestes { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.esp-gestes .btn { flex: 1 1 200px; }
.esp-entreprise .liste li { flex-wrap: wrap; gap: 6px 12px; }
.esp-entreprise .liste li > span:first-child { min-width: 0; flex: 1 1 220px; overflow-wrap: anywhere; }
.esp-entreprise .liste li small { display: block; }
.esp-entreprise .carte h3 { margin: 16px 0 8px; }
.esp-entreprise .carte > h3:first-child { margin-top: 0; }
.esp-entreprise .carte h4 { margin: 16px 0 6px; font-size: 15px; }
.esp-salarie-demande { border: 1px solid var(--trait); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; min-width: 0; }
.esp-salarie-demande legend { font-weight: 600; padding: 0 4px; }
.esp-champs-salarie { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 8px 12px; }
.esp-plan-annee { max-width: 220px; margin: 0 0 12px; }
.esp-plan-feuille h2 { font-size: 17px; margin: 18px 0 8px; }
.esp-plan-feuille .liste li { flex-wrap: wrap; }
.esp-plan-feuille .liste li > span { min-width: 0; overflow-wrap: anywhere; }
.esp-plan-feuille .liste li small { display: block; }
.bloc-etablissements { margin: 12px 0; padding: 12px 0 0; border-top: 1px solid var(--trait); }
.bloc-etablissements h3 { margin: 0 0 8px; font-size: 16px; }
.bloc-etablissements a { overflow-wrap: anywhere; }
.case-voit-tout { margin-top: 6px; font-size: 14px; }

/* --- Version 0.56.0 (socle du lot 2) : le composant commun de l'exemplaire (public/exemplaire.js), rendu minimal ; puis une zone
   par lot (SA, SB, SC, SD), chacun n'écrivant que dans la sienne. Classes préfixées exemplaire-, signature-, avenant- ou esp-. --- */
.exemplaire { margin: 8px 0 0; }
.exemplaire-depot input[type=file] { max-width: 100%; }
.exemplaire-etat { margin: 6px 0; overflow-wrap: break-word; }
/* Lot SA : début */
.exemplaire { display: grid; gap: 6px; min-width: 0; }
.exemplaire p { margin: 0; }
.exemplaire .btn { max-width: 100%; white-space: normal; }
.exemplaire-aide, .exemplaire-depot small { overflow-wrap: anywhere; }
.exemplaire-depot { display: grid; gap: 6px; margin: 4px 0 0; padding: 10px 0 0; border-top: 1px solid var(--trait); }
.exemplaire-depot label, .exemplaire-pdf label { font-weight: 600; }
.exemplaire-depot input[type=file], .exemplaire-pdf input { width: 100%; min-width: 0; }
.exemplaire-etat.rouge { color: var(--rouge, #a40000); }
.exemplaire :focus-visible, .carte-exemplaire :focus-visible { outline: 3px solid var(--focus, #1a5fb4); outline-offset: 2px; }
.exemplaires-listes .liste li.exemplaire-entree { display: grid; gap: 6px; }
.exemplaires-listes .liste li.exemplaire-entree > span { min-width: 0; overflow-wrap: anywhere; }
.exemplaires-listes .liste li.exemplaire-entree small { display: block; }
.exemplaire-portail { margin: 0 0 12px; }
.carte-exemplaire .liste.depots li { display: grid; gap: 8px; }
.carte-exemplaire .liste.depots li > span { min-width: 0; overflow-wrap: anywhere; }
.carte-exemplaire .liste.depots small { display: block; }
.carte-exemplaire .empreinte-doc span { word-break: break-all; }
.carte-exemplaire .depot-verifier { display: grid; gap: 6px; margin: 0; }
.carte-exemplaire .depot-verifier textarea { width: 100%; }
/* Lot SA : fin */

/* Lot SB : début */
/* Signature en ligne d'un document préparé (fenêtre de l'outil, page publique), espace de l'intervenant (heures, factures). */
.signature-modele { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--trait); }
.signature-modele h3 { margin: 0 0 6px; font-size: 16px; }
.signature-parties li, .ligne-sb { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; align-items: center; }
.signature-parties li > span, .ligne-sb > span { min-width: 0; overflow-wrap: break-word; }
.ligne-sb small, .ligne-sb b { display: block; }
.signature-partie { margin: 10px 0; padding: 8px 10px; border: 1px solid var(--trait); border-radius: 6px; min-width: 0; }
.signature-partie label { display: block; margin: 6px 0; }
.signature-partie select, .signature-partie input { width: 100%; max-width: 100%; box-sizing: border-box; }
.signature-modele-texte h3 { margin: 14px 0 6px; }
.signature-modele-texte p, .signature-modele-texte li, .empreinte-doc span { overflow-wrap: anywhere; }
.signature-modele-aller, .signature-modele-ligne { margin: 10px 0 0; }
.signature-modele-contact { text-align: center; }
.signature-modele-lecture h3 { margin: 12px 0 6px; }
.tableau-sb { width: 100%; max-width: 100%; border-collapse: collapse; margin: 8px 0; }
.tableau-sb caption { text-align: left; font-weight: 600; padding: 4px 0; }
.tableau-sb th, .tableau-sb td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--trait); overflow-wrap: anywhere; }
/* Lot SB : fin */

/* Lot SC : début */
/* L'avenant : carte de la fiche d'un document, fenêtre « Établir l'avenant ». */
.avenants .liste li small, .avenant-ecarts small, .avenant-changements small { white-space: normal; overflow-wrap: anywhere; }
.avenants .liste li > span { min-width: 0; }
.avenant-element { border: 1px solid var(--trait-2); border-radius: 8px; padding: 8px 12px 10px; margin: 0 0 10px; min-width: 0; }
.avenant-element legend { padding: 0 4px; }
.avenant-element .champs { margin-top: 4px; }
.avenant-element input[readonly] { background: transparent; border-style: dashed; }
#f-avenant-etablir input, #f-avenant-etablir textarea { max-width: 100%; box-sizing: border-box; }
/* Lot SC : fin */

/* Lot SD : début */
/* Version 0.56.0 (lot SD) : signature des personnes (tuteur, alternant, bilan, VAE) : texte signé, case, cadre du tracé. */
.sp-signature { margin-top: 12px; }
.sp-resume { max-width: 100%; overflow-wrap: anywhere; }
.sp-texte { white-space: pre-line; overflow-wrap: anywhere; }
.sp-empreinte code { overflow-wrap: anywhere; }
.sp-tableau { max-width: 100%; overflow-x: auto; }
.sp-tableau table { border-collapse: collapse; width: 100%; }
.sp-tableau th, .sp-tableau td { border: 1px solid #c9ccd1; padding: 4px 6px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.sp-trace { display: block; width: 100%; max-width: 640px; aspect-ratio: 10 / 3; border: 1px dashed #6b7280; border-radius: 6px; background: #fff; touch-action: none; }
.sp-signature :focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.sp-exemplaire:empty { display: none; }
.sp-exemplaire { flex-basis: 100%; }
/* Lot SD : fin */

/* --- Lot DB (version 0.56.0) : espace du tuteur ouvert au stage, à la période de reconversion et à l'Afest ; carte « Tuteur
   en entreprise » de la session. Un nom long sans espace se coupe plutôt que de déborder à 320 px. --- */
.portail-tuteur-liste .ligne-portail b, .liste-portail .ligne-portail b, #fenetre-titre { overflow-wrap: anywhere; }
.tutorat-liste li { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; }
.tutorat-liste li > span { min-width: 0; overflow-wrap: anywhere; }

/* --- Lot DA6 : état de la signature de chaque partie (contrat VAE, espaces de l'entreprise et du candidat). --- */
.liste-parties { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; }
.liste-parties li { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 14px; overflow-wrap: anywhere; }
.liste-parties small { color: var(--encre-2); }

/* --- Lot T0 (version 0.57.0) : formulaire commun d'ouverture d'une conversation par une personne extérieure
   (public/messagerie-ouvrir.js). Aucun champ ne déborde à 320 px. --- */
.ouverture-form { display: grid; gap: 10px; min-width: 0; }
.ouverture-form label { display: grid; gap: 4px; min-width: 0; }
.ouverture-form select, .ouverture-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; min-width: 0; }
.ouverture-form .ouverture-objet-seul { margin: 0; overflow-wrap: anywhere; }
.ouverture-form :focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.ouverture-autre > summary { cursor: pointer; padding: 6px 0; }

/* --- Lot U0 (version 0.58.0) : « Vos courriels », la boîte d'envoi de l'organisme (public/boite-envoi.js). Une adresse
   longue se coupe plutôt que de déborder à 320 px ; les boutons passent à la ligne. --- */
.boite-envoi { min-width: 0; }
.boite-etat { display: grid; gap: 6px; margin: 0 0 12px; }
.boite-etat > div { display: grid; grid-template-columns: minmax(0, 10em) minmax(0, 1fr); gap: 8px; }
.boite-etat dt { color: var(--encre-2); }
.boite-etat dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.boite-pastille { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 14px; }
.boite-pastille.ok { background: var(--vert-pale); color: var(--vert); }
.boite-pastille.alerte { background: var(--or-pale); color: var(--or-fonce); }
.boite-alerte { border-left: 4px solid var(--or-fonce); padding: 6px 10px; background: var(--or-pale); overflow-wrap: anywhere; }
.boite-issue { padding: 6px 10px; border-radius: 6px; overflow-wrap: anywhere; }
.boite-issue.ok { background: var(--vert-pale); } .boite-issue.alerte { background: var(--or-pale); }
.boite-envoi .rangee-boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.boite-envoi .rangee-boutons .btn { white-space: normal; max-width: 100%; }
.boite-envoi :focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.boite-droits > summary { cursor: pointer; padding: 6px 0; }
@media (max-width: 420px) { .boite-etat > div { grid-template-columns: minmax(0, 1fr); gap: 0; } }
/* Intégration 0.58.0 : les cartes des lots sous la boîte (aides Google et Microsoft, réception) ne sont pas sœurs l'une de
   l'autre (chaque lot monte la sienne dans son conteneur) : l'écart entre cartes vient de leur conteneur commun. */
#zone-courriels-lots { display: grid; gap: 16px; margin-top: 16px; min-width: 0; }
#zone-courriels-lots:empty { display: none; }

/* Version 0.58.0 (socle U0) : styles des lots UA, UB, UC, UD, chacun dans sa zone seulement. */
/* Lot UA : début */
/* Lot UA : fin */

/* Lot UB : début */
.boite-microsoft details > summary { cursor: pointer; padding: 6px 0; }
.boite-microsoft :focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.boite-microsoft .boite-ms-adresse code { display: block; overflow-wrap: anywhere; word-break: break-all; user-select: all; }
.boite-microsoft ol, .boite-microsoft ul { padding-left: 1.2em; }
/* Lot UB : fin */

/* Lot UC : début */
/* Envoi de la facture au payeur (fiche d'une facture, public/factures-envoi.js). */
.uc-envoi .uc-envoi-a { margin: 0 0 8px; overflow-wrap: anywhere; }
.uc-envoi .uc-envoi-a small, .uc-envoi .liste small { display: block; color: var(--gris); overflow-wrap: anywhere; }
.uc-envoi .uc-envoi-motif { color: var(--rouge); }
.uc-envoi .uc-envoi-boutons { justify-content: flex-start; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.uc-envoi-case { margin: 4px 0 12px; }
#f-emettre .uc-envoi-a small { display: block; overflow-wrap: anywhere; color: var(--gris); }
/* Lot UC : fin */

/* Lot UD : début */
/* Lot UD : la carte « Réponses par courriel » reprend les styles de la boîte d'envoi. */
.reception-reservee { min-width: 0; overflow-wrap: anywhere; }
.reception-reservee .rangee-boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.reception-reservee .rangee-boutons .btn { white-space: normal; max-width: 100%; }
.reception-reservee :focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
/* Lot UD : fin */

/* Version 0.57.0 (socle T0) : styles des lots TA, TB, TC, chacun dans sa zone seulement. */
/* Lot TA : début */
/* Version 0.57.0 : un nom d'organisme ou un objet sans espace ne fait pas déborder les messages à 320 px. */
#messagerie h2, #messagerie h3, #bilan-fil h3, #bilan-fil h4, .ouverture-form h3 { overflow-wrap: anywhere; }
/* Lot TA : fin */

/* Lot TB : début */
/* Lot TB : fin */

/* Lot TC : début */
/* Supports de cours d'une session (public/supports.js) : liste, gestes, barre d'avancement ; rien ne déborde à 320 px. */
.supports { margin: 12px 0; min-width: 0; }
.supports-liste { list-style: none; margin: 8px 0; padding: 0; }
.support-ligne { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #e5e7eb; min-width: 0; }
.support-texte { display: flex; flex-direction: column; min-width: 0; flex: 1 1 14em; overflow-wrap: anywhere; }
.support-texte small { color: #4b5563; }
.support-gestes { display: flex; flex-wrap: wrap; gap: 6px; }
.support-avancement { flex-basis: 100%; display: flex; flex-direction: column; gap: 4px; margin: 6px 0; }
.support-avancement progress { width: 100%; height: 14px; }
.support-depot input[type=file] { max-width: 100%; }
.support-session { margin: 10px 0 18px; min-width: 0; }
.support-session h4 { margin: 8px 0 4px; overflow-wrap: anywhere; }
.supports :focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
/* Lot TC : fin */

/* Lot TD : début */
/* Supports partagés (public/supports-stagiaire.js) : nom de fichier long coupé, bouton qui passe dessous sur un téléphone. */
.td-liste { list-style: none; padding: 0; margin: 8px 0 0; }
.td-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 0; border-top: 1px solid rgba(0, 0, 0, .08); }
.td-ligne:first-child { border-top: 0; }
.td-nom { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 14rem; overflow-wrap: anywhere; word-break: break-word; }
.td-nom .puce { align-self: flex-start; margin-top: 4px; }
.td-ligne .btn { flex: 0 0 auto; max-width: 100%; white-space: normal; }
.td-session { margin: 14px 0 4px; overflow-wrap: anywhere; }
/* Lot TD : fin */

/* --- Lot MD : aucun écran balayé ne déborde sur un petit téléphone (360 px, 320 px), ni sur une tablette étroite. ---
   Les causes : une colonne de grille qui se règle sur le plus large de ses contenus (1fr au lieu de minmax(0, 1fr)), une liste déroulante dont
   l'option la plus longue fixe la largeur, une rangée de boutons ou une pastille qui ne passe pas à la ligne, une chaîne sans coupure (courriel,
   adresse, empreinte). Aucune page ne cache son défilement : chaque cause est corrigée à sa source.
   Première partie, valable à toute largeur : ces règles ne changent rien tant qu'il y a la place (la liste du statut d'un intervenant et la
   rangée de boutons de « Intervenants et salles » débordaient de 601 à 722 px). */
label.en-ligne { max-width: 100%; }
label.en-ligne select { min-width: 0; max-width: 100%; }
.boutons-pl { flex-wrap: wrap; }
/* Seconde partie, sous 600 px seulement. Un mot ne se coupe en son milieu que s'il ne tient pas seul sur une ligne (`break-word`, jamais `anywhere`,
   qui réduit la largeur minimale d'un bouton à une lettre) ; les chaînes réellement longues sont les seules à garder `anywhere`. */
@media (max-width: 600px) {
  .grille-document { grid-template-columns: minmax(0, 1fr); }
  .grille-document > *, .pile > * { min-width: 0; }
  label.en-ligne { display: flex; flex-wrap: wrap; }
  label.en-ligne select { flex: 1 1 12em; }
  .carte-question { min-width: 0; }
  .carte-question .ligne-q { flex-wrap: wrap; }
  .carte-question .type-q { white-space: normal; }
  .puce, .puce-etape { white-space: normal; max-width: 100%; border-radius: 12px; line-height: 1.35; }
  .app { grid-template-columns: minmax(0, 1fr); }
  main { min-width: 0; }
  .liste li > span, .carte p, .carte dd, .empilable td, .document-vrq .doc-p { overflow-wrap: break-word; }
  /* Un bouton, une étiquette, une pastille gardent leurs mots entiers : ils passent à la ligne entre les mots. */
  .btn, button, label, .puce, .puce-etape, th, summary, legend { overflow-wrap: normal; }
  .empilable td.actions-ligne { flex-wrap: wrap; }
  .mini, .liste small, .liste li > span, .empilable td { min-width: 0; }
  /* Les chaînes sans espace : adresse de courriel ou de page, empreinte, référence. Seules à se couper n'importe où. */
  .mini, .liste small, td .mini, .carte p .mini,
  .empreinte, .empreinte-texte, .feuille-presence .mini, .lien-court, .cle-totp, .document-vrq .doc-p a, .document-vrq .doc-p .insecable { overflow-wrap: anywhere; }
}
