/*
 * Suivi des formations : charte du Club Subaquatique Annecy
 * Bleu et rouge du logo, titres en Montserrat (hébergée localement).
 * Aucun JavaScript.
 */

@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/montserrat-medium.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/montserrat-semibold.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/montserrat-bold.woff2") format("woff2"); }

:root {
	/* Couleurs du club */
	--bleu: #1962a1;
	--bleu-fonce: #0e2f52;
	--bleu-clair: #e8f0f8;
	--rouge: #f02d37;
	--rouge-texte: #c41f2a;

	/* Neutres */
	--fond: #f4f6f9;
	--surface: #ffffff;
	--texte: #24303c;
	--texte-2: #5d6874;
	--ligne: #dfe5eb;

	/* États d'un critère */
	--acquis: #1f7a3d;
	--acquis-clair: #e4f3e9;
	--encours: #f2a12e;
	--encours-texte: #5a3500;
	--encours-clair: #fdf1df;
	--nonaborde: #dde3e9;
	--nonaborde-texte: #4b5763;

	--rayon: 8px;
	--ombre: 0 1px 2px rgba(14, 47, 82, .06), 0 2px 8px rgba(14, 47, 82, .05);
	--titres: "Montserrat", "Segoe UI", Arial, sans-serif;
	color-scheme: light;
}


/* ------------------------------------------------------------------ */
/* Base                                                                 */
/* ------------------------------------------------------------------ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--fond);
	color: var(--texte);
	font: 16.5px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--bleu); text-underline-offset: 3px; }
a:hover { color: var(--bleu-fonce); }
h1, h2, h3 { font-family: var(--titres); line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.9rem; font-weight: 700; color: var(--bleu); }
h2 { font-size: 1.3rem; font-weight: 700; color: var(--bleu-fonce); }
h3 { font-size: 1.05rem; font-weight: 600; color: var(--bleu-fonce); }
p { margin: 0 0 .75rem; }
.muted { color: var(--texte-2); }
.fin { font-family: inherit; font-weight: 400; font-size: .95rem; color: var(--texte-2); }
.petit { font-size: .875rem; }
:focus-visible { outline: 3px solid #8fb8de; outline-offset: 2px; border-radius: 3px; }


/* ------------------------------------------------------------------ */
/* En-tête : bandeau bleu + barre blanche avec logo, comme le site     */
/* ------------------------------------------------------------------ */
.bandeau { background: var(--bleu); color: #fff; font-size: .85rem; }
.bandeau-in { max-width: 1200px; margin: 0 auto; padding: .35rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.bandeau .moi { display: flex; align-items: center; gap: 1rem; }
.bandeau a, .bandeau .lien { color: #fff; }

.haut { background: var(--surface); border-bottom: 1px solid var(--ligne); }
.haut-in { max-width: 1200px; margin: 0 auto; padding: .6rem 1.25rem; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.marque { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.marque img { display: block; height: 55px; width: auto; }
.marque .app { font-family: var(--titres); font-weight: 700; font-size: 1.1rem; color: var(--bleu-fonce); line-height: 1.2; }
@media (max-width: 1280px) { .marque .app { display: none; } }
.menu { display: flex; gap: .1rem; flex: 1; justify-content: flex-end; flex-wrap: wrap; }
.menu a {
	font-family: var(--titres); font-weight: 500; font-size: .98rem;
	color: var(--bleu-fonce); text-decoration: none; white-space: nowrap;
	padding: .55rem .65rem; border-bottom: 3px solid transparent;
}
.menu a:hover { color: var(--bleu); }
.menu a[aria-current] { color: var(--bleu); border-bottom-color: var(--rouge); }
@media (max-width: 820px) {
	.haut-in { gap: .4rem; }
	.marque img { height: 44px; }
	.menu { flex-basis: 100%; justify-content: flex-start; margin: 0 -.6rem; flex-wrap: nowrap; overflow-x: auto; }
}


/* ------------------------------------------------------------------ */
/* Mise en page                                                         */
/* ------------------------------------------------------------------ */
.page { max-width: 1200px; margin: 0 auto; padding: 1.75rem 1.25rem 4rem; }
.entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.entete h1 { margin-bottom: .2rem; }
.entete-bloc { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.entete-bloc h2 { margin: 0; }
.entete-bloc .jauge { flex: 0 1 340px; }
.fil { margin: 0 0 .3rem; font-size: .9rem; }
.fil a { text-decoration: none; }
.fil a::before { content: "← "; }

.bloc { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.4rem 1.5rem; margin-bottom: 1.5rem; }
.bloc.alerte { background: var(--encours-clair); box-shadow: none; border-left: 5px solid var(--encours); }
.bloc.alerte h2 { color: var(--encours-texte); }
.carte { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.bloc .carte { background: var(--fond); border-color: transparent; }
.grille-2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.5rem; align-items: start; }
.grille-2 > .bloc, .grille-2 > .carte { margin-bottom: 0; }
.grille-2 + .grille-2 { margin-top: 1.5rem; }
@media (max-width: 900px) { .grille-2 { grid-template-columns: 1fr; } }
.vide { color: var(--texte-2); padding: .4rem 0; }


/* ------------------------------------------------------------------ */
/* Formulaires et boutons                                               */
/* ------------------------------------------------------------------ */
label { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; font-weight: 600; color: var(--bleu-fonce); flex: 1; min-width: 0; }
input, select, textarea {
	font: inherit; font-weight: 400; color: var(--texte); background: var(--surface);
	border: 1px solid #c9d3dd; border-radius: 6px; padding: .55rem .7rem; width: 100%; min-height: 2.6rem;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(25, 98, 161, .18); }
input::placeholder, textarea::placeholder { color: #8b96a2; }
label.case { flex-direction: row; align-items: center; gap: .55rem; font-weight: 400; color: var(--texte); }
label.case input { width: 1.2rem; height: 1.2rem; min-height: 0; flex: none; accent-color: var(--bleu); }
.pile { display: flex; flex-direction: column; gap: .9rem; }
.ligne { display: flex; gap: .9rem; flex-wrap: wrap; }
.ligne > label { flex: 1 1 190px; }
.ligne > label.court, label.court { flex: 0 0 110px; }
.etroit { max-width: 480px; }
form { margin: 0; }

.btn {
	font-family: var(--titres); font-weight: 600; font-size: .92rem;
	display: inline-flex; align-items: center; justify-content: center; align-self: flex-start;
	min-height: 2.6rem; padding: .55rem 1.2rem; border-radius: 6px; cursor: pointer; text-decoration: none;
	background: var(--bleu); color: #fff; border: 2px solid var(--bleu);
}
.btn:hover { background: var(--bleu-fonce); border-color: var(--bleu-fonce); color: #fff; }
.btn.second { background: var(--surface); color: var(--bleu); }
.btn.second:hover { background: var(--bleu-clair); color: var(--bleu-fonce); }
.btn.danger { background: var(--surface); color: var(--rouge-texte); border-color: var(--rouge-texte); }
.btn.danger:hover { background: #fdecee; }
.btn.petit { min-height: 2.2rem; padding: .3rem .8rem; font-size: .85rem; }
.lien { font: inherit; background: none; border: 0; padding: 0; color: var(--bleu); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.flash { padding: .8rem 1.1rem; border-radius: var(--rayon); margin-bottom: 1.2rem; border-left: 5px solid; background: var(--surface); box-shadow: var(--ombre); }
.flash.ok { border-color: var(--acquis); }
.flash.err { border-color: var(--rouge); color: var(--rouge-texte); }
.flash.info { border-color: var(--bleu); }
code.mdp { font-size: 1.15rem; padding: .1rem .45rem; background: var(--bleu-clair); border-radius: 4px; user-select: all; }

.filtres { display: flex; gap: .9rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1.2rem; }
.filtres label { flex: 0 1 210px; }
.filtres .btn { align-self: flex-end; }

details.replie > summary { cursor: pointer; font-family: var(--titres); font-weight: 600; color: var(--bleu); padding: .2rem 0; }
details.replie[open] > summary { margin-bottom: .9rem; }
.zone-danger { border: 1px solid #f3c2c5 !important; background: #fff7f7 !important; }


/* ------------------------------------------------------------------ */
/* Tableaux                                                             */
/* ------------------------------------------------------------------ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
	text-align: left; font-family: var(--titres); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em;
	color: var(--texte-2); border-bottom: 2px solid var(--ligne); padding: .55rem .7rem; white-space: nowrap;
}
td { border-bottom: 1px solid var(--ligne); padding: .7rem; vertical-align: middle; }
tbody tr:hover td { background: #f8fafc; }
tr:last-child td { border-bottom: 0; }
td.nom { white-space: nowrap; }
td.nom a { font-weight: 600; text-decoration: none; }
td.nom a:hover { text-decoration: underline; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.col-jauge { min-width: 170px; width: 38%; }
tr.archive, li.archive, a.archive { opacity: .55; }
table.journal td { font-size: .93rem; }


/* ------------------------------------------------------------------ */
/* États : Non abordé / En cours / Acquis                               */
/* ------------------------------------------------------------------ */
.icone { display: inline-block; width: 1.1em; text-align: center; margin-right: .3rem; font-weight: 700; }

.etat { display: inline-flex; align-items: center; font-size: .8rem; font-weight: 600; padding: .12rem .5rem; border-radius: 99px; white-space: nowrap; }
.etat.e0 { background: var(--nonaborde); color: var(--nonaborde-texte); }
.etat.e1 { background: var(--encours); color: var(--encours-texte); }
.etat.e2 { background: var(--acquis); color: #fff; }
.fleche { color: var(--texte-2); margin: 0 .15rem; }

/* Jauge : une case par critère */
.jauge { display: flex; gap: 2px; height: 16px; width: 100%; }
.jauge i { flex: 1 1 0; min-width: 4px; border-radius: 2px; background: var(--nonaborde); }
.jauge i.e1 { background: var(--encours); }
.jauge i.e2 { background: var(--acquis); }

/* Frise : évolution d'un critère */
.frise { display: inline-flex; gap: 2px; vertical-align: middle; margin-right: .4rem; }
.frise i { width: 9px; height: 9px; border-radius: 2px; background: var(--nonaborde); }
.frise i.e1 { background: var(--encours); }
.frise i.e2 { background: var(--acquis); }

.legende { display: flex; gap: 1.2rem; align-items: center; font-size: .875rem; color: var(--texte-2); flex-wrap: wrap; }
.legende span { display: inline-flex; align-items: center; gap: .4rem; }
.legende i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }
.legende i.e0 { background: var(--nonaborde); }
.legende i.e1 { background: var(--encours); }
.legende i.e2 { background: var(--acquis); }

/* Choix de l'état (boutons radio) */
.choix { display: inline-flex; border: 1px solid #c9d3dd; border-radius: 6px; overflow: hidden; flex: none; background: var(--surface); }
.choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix label {
	flex: none; min-width: auto; flex-direction: row; align-items: center;
	font-weight: 500; font-size: .88rem; color: var(--texte);
	padding: .5rem .8rem; min-height: 2.6rem; cursor: pointer; white-space: nowrap;
	border-left: 1px solid #c9d3dd;
}
.choix label:first-of-type { border-left: 0; }
.choix label:hover { background: var(--fond); }
.choix input:focus-visible + label { outline: 3px solid #8fb8de; outline-offset: -3px; }
.choix input:checked + label.e0 { background: var(--nonaborde); color: var(--nonaborde-texte); font-weight: 700; }
.choix input:checked + label.e1 { background: var(--encours); color: var(--encours-texte); font-weight: 700; }
.choix input:checked + label.e2 { background: var(--acquis); color: #fff; font-weight: 700; }

.score { text-align: right; }
.score strong { display: block; font-family: var(--titres); font-size: 2.2rem; line-height: 1; color: var(--acquis); font-variant-numeric: tabular-nums; }
.score span { font-size: .875rem; color: var(--texte-2); }
@media (max-width: 680px) { .score { text-align: left; } }

.pastille { display: inline-block; min-width: 1.6rem; text-align: center; background: var(--encours); color: var(--encours-texte); border-radius: 99px; font-weight: 700; font-size: .8rem; padding: .1rem .45rem; }
.code { display: inline-block; font-family: var(--titres); font-weight: 700; color: var(--bleu); min-width: 2.1rem; white-space: nowrap; margin-right: .2rem; }

/* Reculs */
.regression-marque { display: inline-block; margin-left: .35rem; font-size: .75rem; font-weight: 700; color: var(--rouge-texte); border: 1px solid var(--rouge-texte); border-radius: 99px; padding: 0 .45rem; }
li.regression, tr.regression td { background: #fdecee; }
.histo li.regression { padding: .15rem .4rem; border-radius: 4px; }


/* ------------------------------------------------------------------ */
/* Grille d'évaluation                                                  */
/* ------------------------------------------------------------------ */
.competence { border: 0; padding: 0; margin: 0 0 1.6rem; }
.competence legend { font-family: var(--titres); font-weight: 700; font-size: 1.05rem; color: var(--bleu-fonce); padding: 0 0 .5rem; }
.critere { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem 1.2rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--ligne); }
.critere-txt { display: flex; flex-direction: column; gap: .15rem; }
.critere-txt > span:first-child { font-weight: 500; }
.critere .histo { grid-column: 1 / -1; }
@media (max-width: 680px) {
	.critere { grid-template-columns: 1fr; }
	.choix { width: 100%; }
	.choix label { flex: 1; justify-content: center; padding: .5rem .3rem; }
}
.histo > summary { cursor: pointer; font-size: .85rem; color: var(--bleu); }
.histo[open] > summary { margin-bottom: .5rem; }
.histo input { margin-bottom: .5rem; }
.histo ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; }
.histo li { margin: .3rem 0; }

.barre-action { position: sticky; bottom: 0; padding: 1rem 0 .8rem; background: linear-gradient(rgba(244, 246, 249, 0), var(--fond) 40%); }
.bloc .barre-action { background: linear-gradient(rgba(255, 255, 255, 0), var(--surface) 40%); }


/* ------------------------------------------------------------------ */
/* Listes                                                               */
/* ------------------------------------------------------------------ */
.liste-seances { list-style: none; margin: 0; padding: 0; }
.liste-seances li { border-top: 1px solid var(--ligne); }
.liste-seances li:first-child { border-top: 0; }
.liste-seances a { display: grid; grid-template-columns: 15.5rem 1fr auto; gap: 1rem; padding: .75rem .3rem; color: var(--texte); text-decoration: none; align-items: baseline; border-radius: 6px; }
.liste-seances a:hover { background: var(--bleu-clair); }
.liste-seances strong { color: var(--bleu-fonce); }
.liste-seances.compacte a { grid-template-columns: 6.5rem 1fr; }
.liste-seances.compacte a .muted { grid-column: 2; }
@media (max-width: 680px) {
	.liste-seances a { grid-template-columns: 1fr; gap: 0; }
	.liste-seances.compacte a .muted { grid-column: 1; }
}
.liste-noms { margin: 0; padding-left: 1.2rem; columns: 2 16rem; }
.moins-acquis { margin: 0; padding: 0; list-style: none; }
.moins-acquis li { display: grid; grid-template-columns: 2.3rem 1fr auto; gap: .5rem; padding: .5rem 0; border-top: 1px solid var(--ligne); font-size: .94rem; }
.moins-acquis .compte { font-variant-numeric: tabular-nums; color: var(--texte-2); font-weight: 600; }
.themes { list-style: none; margin: 0; padding: 0; columns: 2 20rem; }
.themes li { padding: .25rem 0; break-inside: avoid; }
.objectifs { background: var(--bleu-clair); border-left: 5px solid var(--bleu); padding: .8rem 1.1rem; border-radius: 0 var(--rayon) var(--rayon) 0; }

.observations { list-style: none; margin: 1rem 0 0; padding: 0; }
.observations li { border-top: 1px solid var(--ligne); padding: .7rem 0; }
.observations li p { margin: 0 0 .2rem; }
.alerte .observations { margin-top: .4rem; }
.alerte .observations li { border-color: #f1d5a8; }
.observation-pied { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .875rem; }
.observation-saisie { margin-top: .4rem; }

.onglets { display: flex; gap: .3rem; border-bottom: 2px solid var(--ligne); margin-bottom: 1.4rem; overflow-x: auto; overflow-y: hidden; }
.onglets a { font-family: var(--titres); font-weight: 600; font-size: .92rem; padding: .6rem .9rem; text-decoration: none; color: var(--texte-2); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.onglets a:hover { color: var(--bleu); }
.onglets a[aria-current] { color: var(--bleu); border-color: var(--bleu); }

.ligne-form { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.ligne-form > span { flex: 1 1 10rem; }
.ligne-form select { width: auto; flex: 0 1 auto; }
.ligne-participant { display: flex; gap: .9rem; align-items: center; justify-content: space-between; padding: .3rem 0; }
.ligne-participant select { max-width: 14rem; }
h3.sous-titre { margin: .8rem 0 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--texte-2); }
.choix-themes { border-top: 1px solid var(--ligne); padding: .6rem 0; }
.choix-themes > summary { cursor: pointer; font-family: var(--titres); font-weight: 600; color: var(--bleu-fonce); }
.choix-themes fieldset { border: 0; padding: .5rem 0 0 .2rem; margin: 0; }
.choix-themes legend { font-weight: 600; font-size: .92rem; }
.choix-themes .case { padding: .25rem 0; }


/* ------------------------------------------------------------------ */
/* Séance : une carte par stagiaire                                     */
/* ------------------------------------------------------------------ */
.cartes-stagiaires { display: grid; align-items: start; grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); gap: 1.2rem; }
.carte-stagiaire { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); border-top: 4px solid var(--bleu); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; }
.carte-stagiaire header { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.carte-stagiaire h3 { margin: 0; font-size: 1.1rem; }
.carte-stagiaire h3 a { text-decoration: none; }
.carte-stagiaire .critere { grid-template-columns: 1fr; }
.carte-stagiaire .choix { width: 100%; }
.carte-stagiaire .choix label { flex: 1; justify-content: center; }
.a-revoir { background: var(--encours-clair); border-left: 4px solid var(--encours); padding: .55rem .8rem; border-radius: 0 6px 6px 0; font-size: .94rem; }
.a-revoir strong { color: var(--encours-texte); }
.a-revoir ul { margin: .25rem 0 0; padding-left: 1.1rem; }


/* ------------------------------------------------------------------ */
/* Référentiel                                                          */
/* ------------------------------------------------------------------ */
.referentiel { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .referentiel { grid-template-columns: 1fr; } }
.ref-niveaux { display: flex; flex-direction: column; gap: .25rem; }
.ref-niveaux > a { display: flex; gap: .7rem; align-items: baseline; padding: .6rem .8rem; border-radius: 6px; text-decoration: none; color: var(--texte); background: var(--surface); }
.ref-niveaux > a strong { font-family: var(--titres); color: var(--bleu); }
.ref-niveaux > a span { color: var(--texte-2); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-niveaux > a:hover { background: var(--bleu-clair); }
.ref-niveaux > a[aria-current] { background: var(--bleu); }
.ref-niveaux > a[aria-current] strong, .ref-niveaux > a[aria-current] span { color: #fff; }
.ref-niveaux details { margin-top: .9rem; }
.ref-contenu { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.4rem 1.5rem; }
.ref-competence { border-top: 1px solid var(--ligne); padding: 1.1rem 0; }
.ref-competence h3 { margin-bottom: .3rem; }
.ref-criteres { list-style: none; margin: .4rem 0 .5rem 2.3rem; padding: 0; }
.ref-criteres li { padding: .3rem 0; }
.ref-ligne { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.ref-ligne > input:not(.court) { flex: 1 1 14rem; }
.ref-ligne .court { flex: 0 0 5.5rem; width: 5.5rem; }
.ref-ligne.competence-ligne input[name="libelle"] { font-weight: 700; }
.ref-ligne.ajout { margin-left: 2.3rem; }


/* ------------------------------------------------------------------ */
/* Connexion                                                            */
/* ------------------------------------------------------------------ */
body.nue { min-height: 100vh; background: var(--fond) linear-gradient(var(--bleu), var(--bleu)) no-repeat top / 100% 320px; }
.login { max-width: 420px; margin: 6vh auto 0; }
.login-tete { color: #fff; margin-bottom: 1.3rem; text-align: center; }
.login-tete img { display: block; margin: 0 auto .8rem; background: #fff; padding: 6px; border-radius: 6px; }
.login-tete .club { margin: 0; opacity: .9; }
.login-tete h1 { color: #fff; font-size: 1.8rem; }
.login .carte { box-shadow: var(--ombre); border: 0; padding: 1.5rem; }


/* ------------------------------------------------------------------ */
/* Impression                                                           */
/* ------------------------------------------------------------------ */
@media print {
	.bandeau, .haut, .barre-action, .zone-danger, details.replie, .onglets { display: none; }
	.bloc { box-shadow: none; padding: 0; }
	body { background: #fff; }
}


/* ------------------------------------------------------------------ */
/* Suivi des saisies, validations, droits                               */
/* ------------------------------------------------------------------ */
.a-remplir { display: inline-block; margin-right: .4rem; font-size: .75rem; font-weight: 700; color: #fff; background: var(--rouge-texte); border-radius: 99px; padding: .05rem .5rem; vertical-align: middle; }
.bloc.validation { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--acquis-clair); box-shadow: none; border-left: 5px solid var(--acquis); }
.bloc.validation h2 { color: var(--acquis); margin-bottom: .2rem; }
.bloc.validation p { margin: 0; }
.info-lecture { background: var(--bleu-clair); border-left: 4px solid var(--bleu); padding: .6rem .9rem; border-radius: 0 6px 6px 0; font-size: .92rem; }
.carte-stagiaire.lecture { border-top-color: var(--nonaborde); }
.carte-stagiaire.lecture .critere { grid-template-columns: minmax(0, 1fr) auto; }
.note-seance { margin-top: 1.5rem; }
.notes-seance { margin-top: .3rem; }

.statut { display: inline-block; font-size: .8rem; font-weight: 600; padding: .1rem .55rem; border-radius: 99px; background: var(--nonaborde); color: var(--nonaborde-texte); }
.statut-valide { background: var(--acquis-clair); color: var(--acquis); }
.statut-en_cours { background: var(--bleu-clair); color: var(--bleu); }
.ligne-candidat { padding: .5rem 0; border-top: 1px solid var(--ligne); }
.bloc .table-wrap + .grille-2 { margin-top: 1.2rem; }

/* Formations */
.cartes-formations { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1.2rem; align-items: start; }
.carte-formation { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); border-top: 4px solid var(--bleu); padding: 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .8rem; }
.carte-formation header { display: flex; align-items: baseline; gap: .6rem; }
.carte-formation h2 { margin: 0; color: var(--bleu); font-size: 1.5rem; }
.carte-formation p { margin: 0; }
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; text-align: center; background: var(--fond); border-radius: 6px; padding: .6rem .3rem; }
.chiffres strong { display: block; font-family: var(--titres); font-size: 1.5rem; color: var(--bleu-fonce); line-height: 1.1; }
.chiffres span { font-size: .8rem; color: var(--texte-2); }
.moyenne .barre { height: 10px; background: var(--nonaborde); border-radius: 99px; overflow: hidden; margin-bottom: .3rem; }
.moyenne .barre i { display: block; height: 100%; background: var(--acquis); }
.liens-formation { display: flex; flex-wrap: wrap; gap: .4rem; border-top: 1px solid var(--ligne); padding-top: .8rem; }
.liens-formation a { font-family: var(--titres); font-weight: 600; font-size: .85rem; text-decoration: none; padding: .35rem .7rem; border-radius: 6px; background: var(--bleu-clair); }
.liens-formation a:hover { background: var(--bleu); color: #fff; }

/* Formations (sessions) */
.espace-haut { margin-top: 1.2rem; }
.statut-a_venir { background: var(--encours-clair); color: var(--encours-texte); }
.statut-terminee { background: var(--nonaborde); color: var(--nonaborde-texte); }
.entete .statut { margin-left: .4rem; vertical-align: middle; }
.carte-formation h2 a { text-decoration: none; }
.carte-formation h2 { font-size: 1.25rem; }
.liste-equipe { list-style: none; margin: 0; padding: 0; }
.liste-equipe li { display: flex; gap: .8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: .55rem 0; border-top: 1px solid var(--ligne); }
.liste-equipe li:first-child { border-top: 0; }
.liste-equipe li > span:first-child { flex: 1 1 12rem; }
.cartes-formations + .carte { margin-top: 1.5rem; }
.grille-2 + .carte, .grille-2 + .bloc { margin-top: 1.5rem; }
