/* MaliOrientationSup — feuille de style unique.
   Identité : vert profond, bleu nuit, fond crème, cartes blanches arrondies. */

@font-face {
  font-family: "Baloo 2";
  src: url("fonts/baloo-2.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --vert: #0e7a63;
  --vert-fonce: #0a5f4d;
  --vert-clair: #e3f1ec;
  --vert-pale: #f1f8f5;
  --nuit: #0f2a3a;
  --encre: #14242f;
  --texte-couleur: #33424d;
  --gris: #66737c;
  --creme: #f8f6f0;
  --papier: #ffffff;
  --trait: #e9e5da;
  --trait-fort: #c9c4b6;
  --or: #b9871c;
  --or-clair: #fbefd5;
  --ok: #0e7a63;
  --ok-fond: #e3f1ec;
  --erreur: #b3261e;
  --erreur-fond: #fdecea;
  --info-fond: #e8eef6;
  --attente: #8a4a00;
  --attente-fond: #fdebd2;

  --titres: "Baloo 2", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --texte: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;

  --gouttiere: 1rem;
  --largeur: 76rem;
  --rayon: 10px;
  --rayon-carte: 16px;
  --ombre: 0 1px 2px rgba(20, 36, 47, 0.04), 0 8px 24px rgba(20, 36, 47, 0.06);
  --hauteur-onglets: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: var(--creme); color: var(--texte-couleur);
  font: 1rem/1.55 var(--texte);
}
h1, h2, h3 { font-family: var(--titres); color: var(--encre); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(1.75rem, 5vw, 2.4rem); font-weight: 700; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--vert-fonce); text-underline-offset: 0.15em; }
a:hover { color: var(--nuit); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 2px; border-radius: 4px; }

[hidden] { display: none !important; }
.icone { flex: none; vertical-align: -0.2em; }
.evitement { position: absolute; left: -999px; top: 0; background: var(--papier); padding: 0.75rem 1rem; z-index: 50; }
.evitement:focus { left: 0; }
.discret { color: var(--gris); }
.petit { font-size: 0.875rem; }
.masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Logo ---------- */

.logo { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; flex: none; }
.logo-nom { font-family: var(--titres); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; color: var(--nuit); line-height: 1; }
.logo-nom span { color: var(--vert); }
.logo-dessin { flex: none; }

/* ---------- En-tête public ---------- */

.haut { background: var(--papier); border-bottom: 1px solid var(--trait); }
.haut-interieur {
  max-width: var(--largeur); margin: 0 auto; padding: 0.6rem var(--gouttiere);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem;
}
.haut-nav { display: flex; gap: 0.1rem; order: 3; flex-basis: 100%; overflow-x: auto; margin: 0 -0.5rem; font-size: 0.95rem; }
@media (max-width: 34rem) { .haut-actions .bouton { display: none; } .haut .logo-nom { font-size: 1.2rem; } .haut-nav { font-size: 0.9rem; } }
/* Sous le nom, les trois couleurs du Mali : la plateforme s'adresse aux lycéens maliens. */
.haut .logo-nom { position: relative; padding-bottom: 0.3rem; }
.haut .logo-nom::after { content: ""; position: absolute; left: 0; bottom: 0; width: 62%; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #14b53a 0 33.3%, #fcd116 33.3% 66.6%, #ce1126 66.6% 100%); }
.haut-nav a {
  padding: 0.5rem 0.6rem; color: var(--encre); text-decoration: none; font-weight: 500; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.haut-nav a:hover { color: var(--vert-fonce); }
.haut-nav a[aria-current="page"] { border-color: var(--vert); color: var(--vert-fonce); font-weight: 600; }
.haut-actions { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.haut-actions > a:not(.bouton) { color: var(--encre); text-decoration: none; font-weight: 500; }
.pastille {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--nuit); color: #fff; font-weight: 600; font-size: 0.85rem; flex: none;
}
.lien-espace { display: inline-flex; align-items: center; gap: 0.5rem; }
@media (min-width: 56rem) {
  .haut-interieur { flex-wrap: nowrap; padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .haut-nav { order: 0; flex-basis: auto; margin: 0 0 0 1.5rem; gap: 0.75rem; overflow: visible; }
  .haut-nav a { padding: 0.6rem 0.5rem; }
}

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.6rem 1.25rem;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  color: #fff; background: var(--vert); border: 1.5px solid var(--vert); border-radius: var(--rayon);
}
.bouton:hover { background: var(--vert-fonce); border-color: var(--vert-fonce); color: #fff; }
.bouton-nuit { background: var(--nuit); border-color: var(--nuit); }
.bouton-nuit:hover { background: #081b27; border-color: #081b27; }
.bouton-secondaire { background: var(--papier); color: var(--encre); border-color: var(--trait-fort); }
.bouton-secondaire:hover { background: var(--vert-pale); color: var(--vert-fonce); border-color: var(--vert); }
.bouton-danger { background: var(--papier); color: var(--erreur); border-color: var(--erreur); }
.bouton-danger:hover { background: var(--erreur-fond); color: var(--erreur); border-color: var(--erreur); }
.bouton-petit { min-height: 2.5rem; padding: 0.35rem 0.85rem; font-size: 0.925rem; }
.bouton[disabled] { opacity: 0.5; cursor: not-allowed; }
.bouton-icone { min-height: 2.5rem; width: 2.5rem; padding: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.actions form { margin: 0; }
@media (max-width: 30rem) { .pleine-largeur-mobile { width: 100%; } }

/* ---------- Corps des pages ---------- */

.contenu { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 1.5rem var(--gouttiere) 3rem; }
.contenu > :not(:first-child) { margin-top: 1.25rem; }
.etroit { max-width: 32rem; margin-left: auto; margin-right: auto; }
.etroit > :not(:first-child), .pile > :not(:first-child) { margin-top: 1.25rem; }
.intro { font-size: 1.05rem; color: var(--gris); max-width: 42rem; }
.contenu > h1 + .intro, .etroit > h1 + .intro { margin-top: 0.35rem; }

.bloc { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon-carte); padding: 1.15rem; box-shadow: var(--ombre); min-width: 0; }
.bloc > :not(:first-child) { margin-top: 0.85rem; }
.bloc-titre { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.bloc-titre a { font-weight: 600; text-decoration: none; }

.deux-colonnes { display: grid; gap: 1.25rem; }
.deux-colonnes > * { min-width: 0; }
@media (min-width: 56rem) {
  :root { --gouttiere: 1.75rem; }
  .deux-colonnes { grid-template-columns: 1fr 1fr; align-items: start; }
  .colonne-large { grid-template-columns: 5fr 3fr; }
}

/* ---------- Messages ---------- */

.message { padding: 0.8rem 1rem; border-radius: var(--rayon); border: 1px solid; background: var(--papier); }
.message-ok { background: var(--ok-fond); border-color: #b9dccf; color: #0a4a3b; }
.message-erreur { background: var(--erreur-fond); border-color: #f1bdb8; color: #7d1a14; }
.message-info { background: var(--info-fond); border-color: #c8d5e6; color: #1e3550; }
.message-code { border: 2px solid var(--nuit); }
.code-affiche {
  display: block; font-family: var(--titres); font-weight: 800; font-size: 1.9rem;
  letter-spacing: 0.12em; color: var(--nuit); user-select: all;
}

/* ---------- Formulaires ---------- */

.formulaire > :not(:first-child) { margin-top: 1rem; }
.champ label, .champ .libelle { display: block; font-weight: 600; color: var(--encre); margin-bottom: 0.3rem; }
.champ .aide { display: block; font-size: 0.875rem; color: var(--gris); margin-bottom: 0.3rem; font-weight: 400; }
input[type="text"], input[type="tel"], input[type="password"], input[type="email"], input[type="url"],
input[type="number"], input[type="search"], input[type="date"], input[type="file"], select, textarea {
  width: 100%; min-height: 3rem; padding: 0.55rem 0.75rem;
  font: inherit; font-size: 1rem; color: var(--encre);
  background: var(--papier); border: 1.5px solid var(--trait-fort); border-radius: var(--rayon);
}
textarea { min-height: 6.5rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--vert); outline-offset: 0; border-color: var(--vert); }
.champ-erreur input, .champ-erreur select, .champ-erreur textarea { border-color: var(--erreur); }
.erreur-texte { display: block; color: var(--erreur); font-size: 0.9rem; margin-top: 0.3rem; font-weight: 600; }
.date-trois { display: grid; grid-template-columns: 4.5rem 1fr 6rem; gap: 0.5rem; }
.rangee { display: grid; gap: 1rem; }
@media (min-width: 34rem) { .rangee { grid-template-columns: 1fr 1fr; } .rangee-trois { grid-template-columns: 1fr 1fr 1fr; } }
/* Coût de la vie : choisir un autre pays que ceux affichés ; le pays demandé ressort. */
.champ-bouton { align-self: end; }
.pays-autre { margin-bottom: 1rem; }
.pays-autre p { margin-top: 0; }
.bloc-demande { border-color: var(--vert); box-shadow: 0 0 0 2px var(--vert); }
.case { display: flex; gap: 0.6rem; align-items: flex-start; }
.case input { width: 1.3rem; height: 1.3rem; margin: 0.15rem 0 0; flex: none; accent-color: var(--vert); }
.case label { font-weight: 400; margin: 0; color: var(--texte-couleur); }
fieldset { border: 1px solid var(--trait); border-radius: var(--rayon); padding: 0.9rem 1rem 1rem; margin: 0; min-width: 0; background: var(--vert-pale); }
fieldset > :not(:first-child) { margin-top: 1rem; }
legend { font-family: var(--titres); font-weight: 600; color: var(--encre); padding: 0 0.4rem; font-size: 1.05rem; }

/* ---------- Listes, fiches, tableaux, étiquettes ---------- */

.fiche { display: grid; grid-template-columns: auto 1fr; gap: 0.45rem 1.25rem; margin: 0; }
.fiche dt { color: var(--gris); }
.fiche dd { margin: 0; font-weight: 600; color: var(--encre); overflow-wrap: break-word; min-width: 0; }

.liste { list-style: none; margin: 0; padding: 0; }
.liste li + li { border-top: 1px solid var(--trait); }
.liste a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.1rem 1rem; padding: 0.8rem 0.5rem; text-decoration: none; color: var(--encre); border-radius: 8px; }
.liste a:hover { background: var(--vert-pale); }
.liste .nom { font-weight: 600; }
.liste .detail { color: var(--gris); font-size: 0.925rem; }

.tableau-defilant { overflow-x: auto; position: relative; } /* relative : les textes masqués des boutons restent dans la zone qui défile */
.tableau-large { min-width: 44rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.65rem 0.9rem 0.65rem 0; border-bottom: 1px solid var(--trait); vertical-align: top; }
th { font-weight: 600; color: var(--gris); white-space: nowrap; font-size: 0.875rem; }
td form { margin: 0; }

.etat { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.6rem; border-radius: 99px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.etat::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.etat-actif { background: var(--ok-fond); color: var(--vert-fonce); }
.etat-inactif { background: var(--erreur-fond); color: var(--erreur); }
.etat-attente { background: var(--attente-fond); color: var(--attente); }
.etat-neutre { background: #e9edf2; color: #3c4a5c; }

.puce { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.75rem; border-radius: 99px; background: var(--vert-clair); color: var(--vert-fonce); font-weight: 500; font-size: 0.925rem; text-decoration: none; }
a.puce:hover { background: #cfe6de; color: var(--vert-fonce); }
.puce-blanche { background: var(--papier); border: 1px solid var(--trait); color: var(--encre); padding: 0.5rem 1.1rem; }
a.puce-blanche:hover { background: var(--vert-pale); border-color: var(--vert); }
.puces { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choix { display: inline-block; padding: 0.15rem 0.65rem; border-radius: 99px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.choix-1 { background: var(--vert-clair); color: var(--vert-fonce); }
.choix-2 { background: #dbe7f7; color: #1d4573; }
.choix-3 { background: var(--or-clair); color: #7a560c; }
.choix-autre { background: #eeebe3; color: var(--gris); }

.chiffres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin: 0; }
.chiffres div { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon-carte); padding: 0.9rem 1rem; box-shadow: var(--ombre); }
.chiffres dt { color: var(--gris); font-size: 0.925rem; }
.chiffres dd { margin: 0; font-family: var(--titres); font-weight: 700; font-size: 1.9rem; line-height: 1.1; color: var(--encre); }
@media (min-width: 48rem) { .chiffres { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 70rem) { .chiffres-six { grid-template-columns: repeat(6, 1fr); } }

.filtres { display: grid; gap: 0.6rem; }
@media (min-width: 40rem) { .filtres { grid-template-columns: 2fr 1fr auto; align-items: end; } }
.pagination { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.onglets-etat { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.onglets-etat a { text-decoration: none; }
.onglets-etat a[aria-current="page"] { background: var(--nuit); color: #fff; border-color: var(--nuit); }

/* ---------- Espaces connectés : barre latérale, barre du haut, onglets ---------- */

.espace { display: block; }
.lateral { display: none; }
.espace-corps { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.barre { background: var(--papier); border-bottom: 1px solid var(--trait); padding: 0.6rem var(--gouttiere); display: flex; align-items: center; gap: 0.75rem; }
.barre .logo-nom { font-size: 1.15rem; }
.barre .logo-dessin { width: 34px; height: 31px; }
.fil { display: none; align-items: center; gap: 0.5rem; color: var(--gris); font-size: 0.95rem; min-width: 0; }
.fil a { color: var(--vert-fonce); text-decoration: none; display: inline-flex; }
.fil strong { color: var(--encre); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre-recherche { display: none; position: relative; margin-left: auto; width: min(20rem, 40%); }
.barre-recherche input { min-height: 2.6rem; padding-left: 2.4rem; background: var(--creme); border-color: var(--trait); }
.barre-recherche .icone { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--gris); }
.barre-sortie { margin: 0 0 0 auto; }
.barre-sortie button { display: inline-flex; align-items: center; gap: 0.4rem; font: inherit; font-size: 0.9rem; color: var(--gris); background: none; border: 0; padding: 0.5rem; cursor: pointer; white-space: nowrap; }
@media (max-width: 26rem) { .barre-sortie button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
.espace-corps .contenu { flex: 1; }

.onglets {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; background: var(--papier); border-top: 1px solid var(--trait);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.onglets a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.1rem;
  padding: 0.5rem 0.25rem 0.45rem; font-size: 0.75rem; text-decoration: none; color: var(--gris);
}
.onglets a[aria-current="page"] { color: var(--vert-fonce); font-weight: 600; }
.avec-onglets { --hauteur-onglets: 3.75rem; padding-bottom: var(--hauteur-onglets); }

@media (min-width: 64rem) {
  .espace { display: grid; grid-template-columns: 16.5rem 1fr; }
  .lateral {
    display: flex; flex-direction: column; gap: 0.25rem;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    background: var(--papier); border-right: 1px solid var(--trait); padding: 1rem 0.85rem;
  }
  .lateral .logo { padding: 0.25rem 0.4rem 0.75rem; }
  .lateral-titre { font-size: 0.8rem; font-weight: 600; color: var(--gris); padding: 0.75rem 0.6rem 0.4rem; }
  .lateral nav { display: flex; flex-direction: column; gap: 0.2rem; }
  .lateral nav a {
    display: flex; align-items: center; gap: 0.85rem; padding: 0.7rem 0.85rem; border-radius: 12px;
    color: var(--encre); text-decoration: none; font-weight: 500;
  }
  .lateral nav a:hover { background: var(--vert-pale); }
  .lateral nav a[aria-current="page"] { background: var(--vert); color: #fff; box-shadow: 0 6px 14px rgba(14, 122, 99, 0.25); }
  .lateral-bas { margin-top: auto; display: flex; flex-direction: column; gap: 0.75rem; padding-top: 1rem; }
  .lateral-aide { background: var(--vert-pale); border: 1px solid #d5e9e1; border-radius: 14px; padding: 0.85rem; font-size: 0.9rem; }
  .lateral-aide strong { display: block; color: var(--encre); font-family: var(--titres); font-size: 1rem; }
  .lateral-moi { display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 0.4rem 0; border-top: 1px solid var(--trait); min-width: 0; }
  .lateral-moi div { min-width: 0; }
  .lateral-moi strong { display: block; color: var(--encre); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lateral-moi span:not(.pastille) { font-size: 0.85rem; color: var(--gris); }
  .lateral-sortie { margin: 0; }
  .lateral-sortie button { display: flex; align-items: center; gap: 0.6rem; width: 100%; font: inherit; font-size: 0.925rem; color: var(--gris); background: none; border: 0; padding: 0.4rem; cursor: pointer; border-radius: 8px; }
  .lateral-sortie button:hover { background: var(--creme); color: var(--encre); }
  .barre .logo, .barre-sortie { display: none; }
  .fil { display: flex; }
  .barre-recherche { display: block; }
  .barre { padding: 0.75rem 2rem; }
  .espace-corps .contenu { padding: 1.75rem 2rem 3rem; margin: 0; max-width: 78rem; }
  .espace ~ .onglets { display: none; }
  .espace-page.avec-onglets { padding-bottom: 0; }
}

/* ---------- Tableau de bord de l'élève ---------- */

.accueil-eleve { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.accueil-eleve h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.accueil-eleve p { font-size: 1.1rem; color: var(--gris); }
.trois-cartes { display: grid; gap: 1rem; }
@media (min-width: 52rem) { .trois-cartes { grid-template-columns: repeat(3, 1fr); } }
.carte-etat { display: flex; align-items: center; gap: 1rem; padding: 1.1rem; text-decoration: none; color: inherit; }
a.carte-etat:hover { border-color: var(--vert); }
.carte-etat h2 { font-size: 1.15rem; }
.carte-etat strong { display: block; font-family: var(--titres); font-size: 1.8rem; font-weight: 700; color: var(--encre); line-height: 1; }
.carte-etat p { color: var(--gris); font-size: 0.95rem; }
.carte-etat > div > :not(:first-child) { margin-top: 0.2rem; }
.rond { width: 4.25rem; height: 4.25rem; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--vert-clair); color: var(--vert-fonce); }
.rond-or { background: var(--or-clair); color: var(--or); }
.anneau { position: relative; width: 4.5rem; height: 4.5rem; flex: none; }
.anneau svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anneau-fond { stroke: #e3ece8; }
.anneau-trait { stroke: var(--vert); }
.anneau span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: var(--encre); font-size: 0.95rem; }

.choix-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.choix-ligne { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 0.9rem; align-items: center; border: 1px solid var(--trait); border-radius: 14px; padding: 0.75rem; }
.choix-ligne .couverture { width: 3.75rem; height: 3.75rem; border-radius: 10px; }
.choix-ligne .couverture-vide span { font-size: 1.1rem; }
.choix-texte { min-width: 0; }
.choix-texte strong { color: var(--encre); font-weight: 600; }
.choix-nom { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.5rem; color: var(--gris); }
.choix-texte p:not(.choix-nom) { color: var(--texte-couleur); font-size: 0.95rem; }
.choix-texte p.petit { color: var(--gris); }
.choix-faits { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; align-items: center; font-size: 0.9rem; color: var(--gris); border-top: 1px solid var(--trait); padding-top: 0.6rem; }
.choix-faits span { display: inline-flex; align-items: center; gap: 0.4rem; }
.choix-faits a { margin-left: auto; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
.choix-faits form { margin: 0; }
@media (min-width: 60rem) {
  .choix-ligne { grid-template-columns: auto 1fr auto; }
  .choix-faits { grid-column: auto; border-top: 0; padding-top: 0; }
}
.encart { display: flex; gap: 0.85rem; align-items: flex-start; background: var(--vert-pale); border: 1px solid #d5e9e1; border-radius: 12px; padding: 0.85rem 1rem; }
.encart .icone { color: var(--vert-fonce); margin-top: 0.15rem; }
.encart strong { color: var(--encre); }
.encart p { font-size: 0.925rem; color: var(--gris); }

.taches { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.taches li { border: 1px solid var(--trait); border-radius: 12px; }
.tache { display: grid; grid-template-columns: auto 1fr auto; gap: 0.85rem; align-items: center; padding: 0.8rem 0.9rem; text-decoration: none; color: inherit; border-radius: 12px; }
a.tache:hover { background: var(--vert-pale); }
.tache strong { display: block; color: var(--encre); font-weight: 600; }
.tache span.detail { font-size: 0.9rem; color: var(--gris); }
.coche-vide, .coche-faite { width: 1.5rem; height: 1.5rem; border-radius: 6px; border: 1.5px solid var(--trait-fort); display: grid; place-items: center; }
.coche-faite { background: var(--vert); border-color: var(--vert); color: #fff; }
.tache-faite strong { color: var(--gris); font-weight: 500; }
.carte-or { background: linear-gradient(135deg, #fdf3dc, #f8e3b8); border-color: #f0d9a6; }
.carte-or h2 { display: flex; align-items: center; gap: 0.6rem; }
.carte-or .icone { color: var(--or); }

/* ---------- Page d'accueil ---------- */

.hero { background: var(--papier); }
.hero-interieur { display: grid; }
.hero-texte { padding: 2rem var(--gouttiere) 1.5rem; }
.hero-texte > :not(:first-child) { margin-top: 1rem; }
.hero-texte h1 { font-size: clamp(2.2rem, 9vw, 3.1rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1.02; text-wrap: balance; }
.hero-texte .intro { font-size: 1.2rem; }
.hero-image { position: relative; min-height: 14rem; background: linear-gradient(135deg, #0e7a63, #0f2a3a); }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 25%; }
.hero-carte {
  display: none; position: absolute; right: 1rem; bottom: 1rem; max-width: 15rem;
  background: var(--papier); border-radius: 14px; padding: 0.9rem 1rem; box-shadow: 0 10px 30px rgba(15, 42, 58, 0.18);
}
.hero-carte strong { display: flex; gap: 0.6rem; align-items: center; color: var(--encre); font-family: var(--titres); font-size: 1.05rem; line-height: 1.2; }
.hero-carte .icone { color: var(--or); }
.hero-carte p { font-size: 0.875rem; color: var(--gris); margin-top: 0.4rem; }
@media (min-width: 60rem) {
  /* Le texte reste aligné sur la largeur du site ; la photo va jusqu'au bord droit de l'écran. */
  .hero-interieur {
    grid-template-columns: minmax(var(--gouttiere), 1fr) minmax(0, 37rem) minmax(0, calc(var(--largeur) - 37rem - 2 * var(--gouttiere))) minmax(var(--gouttiere), 1fr);
    align-items: stretch;
  }
  .hero-texte { grid-column: 2; padding: 3rem 1.5rem 5.5rem 0; align-self: center; }
  .hero-carte { display: block; }
  .hero-image { grid-column: 3 / 5; min-height: 27rem; border-top-left-radius: 2.75rem; overflow: hidden; }
  .hero-carte { right: max(var(--gouttiere), calc((100vw - var(--largeur)) / 2 + var(--gouttiere))); bottom: 4.75rem; }
}

.recherche-rapide {
  position: relative; z-index: 2; max-width: calc(var(--largeur) - 2 * var(--gouttiere)); margin: -1.25rem var(--gouttiere) 0;
  background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon-carte); box-shadow: var(--ombre);
  padding: 0.9rem; display: grid; gap: 0.75rem;
}
.recherche-rapide .champ label { font-size: 0.925rem; margin-bottom: 0.15rem; display: flex; align-items: center; gap: 0.5rem; }
.recherche-rapide select { border-color: var(--trait); }
@media (min-width: 60rem) {
  .recherche-rapide { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; margin: -3rem auto 0; padding: 1.1rem; }
}
.section-titre { text-align: center; }
.section-titre h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 700; }
.surtitre { display: inline-flex; align-items: center; gap: 0.85rem; color: var(--or); font-weight: 600; font-size: 0.95rem; }
.surtitre::before, .surtitre::after { content: ""; width: 2.75rem; height: 1.5px; background: var(--or); opacity: 0.7; }
.pas { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: pas; }
.pas li { counter-increment: pas; display: flex; gap: 1.1rem; align-items: flex-start; margin: 0; }
.pas li > div::before { content: counter(pas, decimal-leading-zero); display: block; font-family: var(--titres); font-weight: 700; color: var(--or); font-size: 1.25rem; line-height: 1; }
.pas li > div > :not(:first-child) { margin-top: 0.35rem; }
.pas h3 { font-size: 1.3rem; font-weight: 700; margin-top: 0.2rem; }
.pas p { color: var(--gris); }
@media (min-width: 56rem) { .pas { grid-template-columns: repeat(3, 1fr); } }
.independance { border-top: 1px solid var(--trait); padding-top: 1.5rem; max-width: 46rem; }
.independance > :not(:first-child) { margin-top: 0.5rem; }

/* ---------- Catalogue ---------- */

.bandeau { background: linear-gradient(120deg, #ffffff 0%, #f1f8f5 55%, #e3f1ec 100%); border-bottom: 1px solid var(--trait); }
.bandeau-interieur { max-width: var(--largeur); margin: 0 auto; padding: 1.75rem var(--gouttiere); }
.bandeau-interieur > :not(:first-child) { margin-top: 0.5rem; }
.bandeau h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.bandeau .intro { font-size: 1.1rem; }
.recherche-barre { display: flex; gap: 0.5rem; background: var(--papier); border: 1px solid var(--trait); border-radius: 14px; padding: 0.4rem; box-shadow: var(--ombre); max-width: 40rem; margin-top: 1.1rem !important; }
.recherche-barre .zone { position: relative; flex: 1; min-width: 0; }
.recherche-barre .icone { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--gris); }
.recherche-barre input { border: 0; padding-left: 2.6rem; background: transparent; }

.catalogue { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 60rem) { .catalogue { grid-template-columns: 17.5rem 1fr; } }
.filtres-panneau { padding: 0; }
/* Sur téléphone, les filtres se déplient en touchant l'en-tête (case à cocher masquée, sans script). */
.filtres-entete { display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.1rem; font-family: var(--titres); font-weight: 600; font-size: 1.15rem; color: var(--encre); cursor: pointer; margin: 0 !important; }
.filtres-entete .compte { font-family: var(--texte); font-size: 0.85rem; font-weight: 600; background: var(--vert); color: #fff; border-radius: 99px; padding: 0.05rem 0.55rem; }
.filtres-chevron { margin-left: auto; display: inline-flex; color: var(--gris); }
.filtres-interrupteur:checked ~ .filtres-entete .filtres-chevron { transform: rotate(180deg); }
.filtres-interrupteur:focus-visible ~ .filtres-entete { outline: 3px solid var(--vert); outline-offset: -3px; border-radius: var(--rayon-carte); }
.filtres-corps { display: none; padding: 0 1.1rem 1.1rem; margin: 0 !important; }
.filtres-interrupteur:checked ~ .filtres-corps { display: block; }
.filtres-corps > * + * { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--trait); }
.filtre-titre { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; color: var(--encre); margin-bottom: 0.5rem; }
.filtre-titre .icone { color: var(--gris); }
.filtre-cases { display: grid; gap: 0.45rem; }
.bascules { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bascule { position: relative; }
.bascule input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.bascule span { display: inline-block; padding: 0.4rem 0.8rem; font-size: 0.95rem; border: 1.5px solid var(--trait-fort); border-radius: var(--rayon); background: var(--papier); color: var(--encre); font-weight: 500; }
.bascule input:checked + span { background: var(--vert); border-color: var(--vert); color: #fff; }
.bascule input:focus-visible + span { outline: 3px solid var(--vert); outline-offset: 2px; }
input[type="range"] { width: 100%; accent-color: var(--vert); min-height: 2rem; }
.budget-valeur { font-weight: 600; color: var(--encre); }
@media (min-width: 60rem) {
  .filtres-entete { cursor: default; pointer-events: none; }
  .filtres-entete .compte, .filtres-chevron { display: none; }
  .filtres-corps { display: block; }
}

.resultats-entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem; }
.resultats-outils { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.resultats-outils select { min-height: 2.6rem; width: auto; padding-right: 2rem; }
.vues { display: inline-flex; border: 1px solid var(--trait); border-radius: 10px; overflow: hidden; background: var(--papier); }
.vues a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; color: var(--gris); }
.vues a[aria-current="true"] { background: var(--vert); color: #fff; }

.cartes { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .cartes { grid-template-columns: repeat(2, 1fr); } }
.cartes-liste { grid-template-columns: 1fr; }
.carte { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon-carte); box-shadow: var(--ombre); padding: 0.6rem; display: flex; flex-direction: column; min-width: 0; }
.carte .couverture { width: 100%; aspect-ratio: 3 / 1; border-radius: 11px; }
.carte-corps { padding: 0.75rem 0.5rem 0.4rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.carte h3 { font-size: 1.3rem; font-weight: 700; }
.carte h3 a { color: inherit; text-decoration: none; }
.carte h3 a:hover { color: var(--vert-fonce); }
.carte .lieu, .carte .ligne { display: flex; align-items: flex-start; gap: 0.5rem; color: var(--gris); }
.carte .lieu { padding-bottom: 0.5rem; border-bottom: 1px solid var(--trait); }
.carte .ligne-forte { color: var(--encre); font-weight: 500; }
.carte-pied { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: auto; padding-top: 0.6rem; flex-wrap: wrap; }
@media (min-width: 40rem) {
  .cartes-liste .carte { flex-direction: row; gap: 0.5rem; }
  .cartes-liste .carte .couverture { width: 11rem; aspect-ratio: auto; height: auto; min-height: 8rem; }
}

.couverture { display: block; object-fit: cover; background: #dfe7e4; }
.couverture-vide { display: grid; place-items: center; overflow: hidden; }
.couverture-vide span { font-family: var(--titres); font-weight: 800; color: rgba(255, 255, 255, 0.95); font-size: clamp(1.4rem, 5vw, 2.2rem); letter-spacing: 0.03em; }
.teinte-0 { background: linear-gradient(135deg, #0e7a63, #0a4f52); }
.teinte-1 { background: linear-gradient(135deg, #0f2a3a, #1f5673); }
.teinte-2 { background: linear-gradient(135deg, #b9871c, #8a5a12); }
.teinte-3 { background: linear-gradient(135deg, #9a4a2f, #6b2f24); }
.teinte-4 { background: linear-gradient(135deg, #2f6f7a, #16424f); }

/* Sur grand écran, la barre de comparaison reste visible en bas pendant le défilement.
   Sur téléphone, elle reste à la fin de la liste pour ne pas masquer les résultats. */
@media (min-width: 40rem) { .barre-comparer { position: sticky; bottom: 0.75rem; z-index: 20; } }
.barre-comparer {
  margin-top: 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
  background: var(--papier); border: 1px solid var(--trait); border-radius: 14px; padding: 0.6rem 0.75rem 0.6rem 1rem;
  box-shadow: 0 10px 30px rgba(15, 42, 58, 0.16);
}
.barre-comparer form { margin: 0; }

/* Fiche d'un établissement */
.fiche-entete { display: grid; gap: 1.25rem; }
.fiche-entete .couverture { width: 100%; aspect-ratio: 3 / 2; border-radius: var(--rayon-carte); max-height: 20rem; }
.fiche-entete-texte > :not(:first-child) { margin-top: 0.6rem; }
.fiche-entete .lieu { display: flex; gap: 0.5rem; align-items: center; color: var(--gris); font-size: 1.05rem; }
@media (min-width: 52rem) { .fiche-entete { grid-template-columns: 20rem 1fr; align-items: center; } }
.verifie { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.925rem; color: var(--gris); }
.verifie .icone { color: var(--vert-fonce); margin-top: 0.1rem; }
.formation { border: 1px solid var(--trait); border-radius: 14px; padding: 1rem; }
.formation + .formation { margin-top: 0.85rem; }
.formation > :not(:first-child) { margin-top: 0.7rem; }
.formation-tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; align-items: flex-start; }
.formation-tete form { margin: 0; }
.faits { display: grid; gap: 0.6rem 1.25rem; margin: 0; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 70rem) { .faits { grid-template-columns: repeat(3, 1fr); } }
.faits dt { font-size: 0.85rem; color: var(--gris); }
.faits dd { margin: 0; color: var(--encre); font-weight: 600; }
.faits dd small { display: block; font-weight: 400; color: var(--gris); font-size: 0.85rem; }

/* Comparaison */
.comparaison { min-width: 38rem; }
.comparaison th[scope="row"] { width: 11rem; white-space: normal; }
.comparaison thead th { font-family: var(--titres); font-size: 1.15rem; color: var(--encre); white-space: normal; vertical-align: bottom; }
.comparaison thead th span { display: block; font-family: var(--texte); font-size: 0.9rem; font-weight: 400; color: var(--gris); }
.comparaison td { color: var(--encre); }
.comparaison ul { margin: 0; padding-left: 1.1rem; }

/* Filières */
.filieres { display: grid; gap: 0.75rem; }
@media (min-width: 40rem) { .filieres { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .filieres { grid-template-columns: repeat(3, 1fr); } }
.filiere { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; text-decoration: none; }
.filiere strong { color: var(--encre); font-family: var(--titres); font-size: 1.1rem; font-weight: 600; }
.filiere span { color: var(--gris); font-size: 0.9rem; white-space: nowrap; }
a.filiere:hover { border-color: var(--vert); }
.filiere-vide { opacity: 0.6; box-shadow: none; }

/* Sélection de l'élève */
.selection-outils { display: flex; gap: 0.4rem; align-items: center; }
.selection-outils form { margin: 0; }

/* ---------- Pied de page ---------- */

.pied { border-top: 1px solid var(--trait); background: var(--papier); font-size: 0.9rem; color: var(--gris); }
.pied-interieur { max-width: var(--largeur); margin: 0 auto; padding: 1.1rem var(--gouttiere); }
.pied-interieur > :not(:first-child) { margin-top: 0.35rem; }
.espace-corps .pied-interieur { margin: 0; padding: 1.1rem 2rem; }
@media (max-width: 63.99rem) { .espace-corps .pied-interieur { padding: 1.1rem var(--gouttiere); } }

@media (prefers-reduced-motion: no-preference) {
  .bouton, .lateral nav a, .liste a, .carte, .bascule span { transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease; }
}
@media print {
  .haut, .lateral, .barre, .onglets, .pied, .actions, .barre-comparer, .filtres-panneau { display: none; }
  body { background: #fff; }
  .espace { display: block; }
}

.couverture-saisie { width: 100%; aspect-ratio: 3 / 2; border-radius: 12px; max-height: 13rem; }

/* ---------- Fiche de l'élève : notes et projet ---------- */

.barre-moi { margin-left: auto; text-decoration: none; display: inline-flex; border-radius: 50%; }
.barre-moi + .barre-sortie { margin-left: 0; }
.barre-moi[aria-current="page"] .pastille { outline: 2px solid var(--vert); outline-offset: 2px; }
@media (min-width: 64rem) { .barre-moi { display: none; } }

.formulaire-bulletin { max-width: 46rem; }
.notes-grille { display: grid; gap: 0.6rem 2rem; }
@media (min-width: 40rem) { .notes-grille { grid-template-columns: 1fr 1fr; } }
.note-ligne { display: grid; grid-template-columns: 1fr 5.5rem; gap: 0.15rem 0.75rem; align-items: center; }
.note-ligne label { font-weight: 500; color: var(--encre); }
.note-ligne input { text-align: right; font-variant-numeric: tabular-nums; }
.note-ligne .erreur-texte { grid-column: 1 / -1; margin-top: 0; text-align: right; }
.repli > summary, .repli-danger > summary { cursor: pointer; font-weight: 600; color: var(--vert-fonce); padding: 0.35rem 0; }
.repli[open] > summary { margin-bottom: 0.6rem; }
.repli-danger > summary { color: var(--erreur); font-size: 0.925rem; }
.repli-danger[open] { flex-basis: 100%; border: 1px solid #f1bdb8; border-radius: 10px; padding: 0.4rem 0.75rem 0.75rem; background: var(--erreur-fond); }
.repli-danger form > :not(:first-child) { margin-top: 0.5rem; }

.bulletins-classe + .bulletins-classe { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--trait); }
.bulletins-classe > :not(:first-child) { margin-top: 0.6rem; }
.bulletin-tableau th[scope="row"] { font-weight: 500; color: var(--encre); white-space: normal; font-size: 0.95rem; }
.bulletin-tableau .nombre { text-align: right; font-variant-numeric: tabular-nums; width: 4.75rem; padding-right: 0.25rem; }
.bulletin-tableau tfoot th, .bulletin-tableau tfoot td { font-weight: 700; color: var(--encre); border-bottom: 0; border-top: 2px solid var(--trait-fort); }
.bulletin-tableau abbr { text-decoration: none; }
.bulletins-etats { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.bulletins-etats li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; background: var(--creme); border-radius: 12px; padding: 0.6rem 0.85rem; }
.bulletins-etats li > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; }
.bulletins-etats strong { color: var(--encre); }

.bloc h2 .icone { color: var(--vert-fonce); margin-right: 0.25rem; }
.remarque { margin: 0; padding: 0.75rem 1rem; border-left: 3px solid var(--or); background: var(--creme); border-radius: 0 10px 10px 0; color: var(--encre); overflow-wrap: anywhere; }
.liste .suivi { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.15rem; }
.ligne-formulaire { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-end; }
.ligne-formulaire input[type="text"] { flex: 1 1 12rem; min-width: 0; }
.ligne-formulaire .champ { flex: 1 1 14rem; }
.message > :not(:first-child) { margin-top: 0.6rem; }
.repli-serie { border: 1px solid var(--trait); border-radius: 12px; padding: 0.35rem 0.9rem; }
.repli-serie[open] { padding-bottom: 0.9rem; }
.repli-serie > summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; color: var(--encre); font-family: var(--titres); font-size: 1.05rem; }
.repli-serie form > :not(:first-child) { margin-top: 0.75rem; }
.matieres-liste { list-style: none; margin: 0; padding: 0; }
.matieres-liste li { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; justify-content: space-between; padding: 0.7rem 0; border-top: 1px solid var(--trait); }
.matieres-liste .ligne-formulaire { flex: 1 1 18rem; align-items: center; }
.repli-serie > summary { list-style: none; }
.repli-serie > summary::-webkit-details-marker { display: none; }
.repli-serie > summary > span:first-child::before { content: "▸"; display: inline-block; width: 1.1rem; color: var(--vert-fonce); }
.repli-serie[open] > summary > span:first-child::before { content: "▾"; }
.repli-serie + .repli-serie { margin-top: 0.5rem; }
@media (max-width: 34rem) {
  .fiche-pile { grid-template-columns: 1fr; gap: 0; }
  .fiche-pile dt { font-size: 0.875rem; margin-top: 0.6rem; }
  .fiche-pile dt:first-child { margin-top: 0; }
}
@media (max-width: 26rem) {
  .bulletin-tableau .nombre { width: 3.3rem; }
  .bulletin-tableau th[scope="row"] { font-size: 0.9rem; }
}
.bulletins-etats .bouton { white-space: normal; text-align: left; }

/* ---------- Pistes et avis du conseiller ---------- */

.piste { border: 1px solid var(--trait); border-radius: 14px; padding: 0.9rem 1rem; }
.piste + .piste, .repli > .piste { margin-top: 0.75rem; }
.piste > :not(:first-child) { margin-top: 0.6rem; }
.piste-tete { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 0.85rem; align-items: center; }
.piste-tete .couverture { width: 3.25rem; height: 3.25rem; border-radius: 10px; }
.piste-tete .couverture-vide span { font-size: 1rem; }
.piste-titre { min-width: 0; }
.piste-nom { font-size: 1.05rem; font-weight: 600; }
.piste-nom a { color: inherit; text-decoration: none; }
.piste-nom a:hover { color: var(--vert-fonce); text-decoration: underline; }
.piste-tete .situation { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 40rem) {
  .piste-tete { grid-template-columns: auto 1fr auto; }
  .piste-tete .situation { grid-column: auto; }
}
.situation { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 99px; font-family: var(--texte); font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.situation-sur { background: var(--vert-clair); color: var(--vert-fonce); }
.situation-realiste { background: #dbe7f7; color: #1d4573; }
.situation-ambitieux { background: var(--or-clair); color: #7a560c; }
.situation-hors_portee, .situation-serie { background: var(--erreur-fond); color: var(--erreur); }
.situation-incomplet, .situation-sans_repere { background: #e9edf2; color: #3c4a5c; }
.piste-lignes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; font-size: 0.95rem; }
.piste-lignes li { display: flex; gap: 0.5rem; align-items: flex-start; }
.piste-lignes .icone { margin-top: 0.2rem; }
.ligne-oui .icone { color: var(--vert-fonce); }
.ligne-non .icone { color: var(--erreur); }
.ligne-inconnu .icone { color: var(--gris); }
.avis { border-left: 3px solid var(--vert); background: var(--vert-pale); border-radius: 0 10px 10px 0; padding: 0.6rem 0.85rem; overflow-wrap: anywhere; }
.avis strong { color: var(--encre); }
.avis p { margin-top: 0.25rem; }
.avis-ambitieux { border-color: var(--or); background: #fdf6e3; }
.avis-deconseille { border-color: var(--erreur); background: var(--erreur-fond); }
.avis-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.pistes-groupe + .pistes-groupe { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--trait); }
.pistes-groupe > :not(:first-child) { margin-top: 0.6rem; }
.pistes-groupe h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.puces-texte { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; }
.repere { display: flex; gap: 0.5rem; align-items: flex-start; background: var(--creme); border-radius: 10px; padding: 0.6rem 0.8rem; font-size: 0.95rem; }
.repere .icone { color: var(--vert-fonce); margin-top: 0.15rem; }
.repere-ligne { display: grid; grid-template-columns: 1fr 6rem; gap: 0.5rem; margin-top: 0.5rem; }
.liste .nom .icone { color: var(--vert-fonce); margin-right: 0.35rem; }
.piste-nom { margin: 0; font-family: var(--texte); color: var(--encre); line-height: 1.3; }
.choix-situes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.choix-situes li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; padding: 0.55rem 0.8rem; background: var(--creme); border-radius: 12px; }
.choix-situes a { font-weight: 600; }
.choix-situes .situation { margin-left: auto; }
.choix-situes + .piste { margin-top: 0.75rem; }
.lateral-aide { overflow-wrap: anywhere; }
.piste:target { border-color: var(--vert); box-shadow: 0 0 0 3px var(--vert-clair); }
.coupable { overflow-wrap: anywhere; }
.bloc-titre .bouton { white-space: normal; text-align: left; }
.avis-pied { display: block; margin-top: 0.3rem; font-size: 0.875rem; color: #4a4f57; }
.avis .repli { margin-top: 0.4rem; }
.avis form { margin-top: 0.5rem; }
.avis .formulaire { background: var(--papier); border-radius: 10px; padding: 0.75rem; }
.manques { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; font-size: 0.95rem; }
/* Sur un très petit écran, un bouton au libellé long passe à la ligne au lieu d'élargir la page. */
@media (max-width: 26rem) { .bouton { white-space: normal; text-align: left; } }
/* Barre du haut sur un écran de 320 px : logo, pastille de profil et sortie doivent tenir. */
.barre .logo { min-width: 0; }
@media (max-width: 22.5rem) {
  .barre { gap: 0.4rem; padding-left: 0.75rem; padding-right: 0.75rem; }
  .barre .logo-nom { font-size: 1rem; }
  .barre .logo-dessin { width: 30px; height: 27px; }
}

/* ---------- Démarches ---------- */

.demarches-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.demarche-carte { display: grid; gap: 0.35rem; padding: 0.9rem 1rem; border: 1px solid var(--trait); border-radius: 14px; text-decoration: none; color: var(--texte-couleur); }
a.demarche-carte:hover { border-color: var(--vert); background: var(--vert-pale); }
.demarche-carte strong { color: var(--encre); font-size: 1.05rem; }
.demarche-faits { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; }
.demarche-suite { display: flex; gap: 0.4rem; align-items: flex-start; font-size: 0.95rem; color: var(--encre); }
.demarche-suite .icone { color: var(--vert-fonce); margin-top: 0.2rem; }
.formulaire-etroit { max-width: 40rem; }
.case-modele { padding: 0.6rem 0.75rem; border: 1px solid var(--trait); border-radius: 12px; background: var(--papier); }
.case-modele label { display: grid; gap: 0.1rem; }
.case-modele strong { color: var(--encre); font-weight: 600; }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.etapes li { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem; align-items: stretch; border: 1px solid var(--trait); border-radius: 12px; overflow: hidden; }
.etapes form { margin: 0; display: flex; }
.etape-bouton { flex: 1; display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: center; width: 100%; padding: 0.7rem 0.8rem; font: inherit; text-align: left; color: var(--encre); background: none; border: 0; cursor: pointer; min-height: 3rem; }
.etape-bouton:hover { background: var(--vert-pale); }
.etape-faite .etape-texte { color: var(--gris); }
.etape-retirer { display: grid; place-items: center; width: 2.75rem; color: var(--gris); background: none; border: 0; border-left: 1px solid var(--trait); cursor: pointer; }
.etape-retirer:hover { background: var(--erreur-fond); color: var(--erreur); }
.etapes-lecture li { grid-template-columns: auto 1fr; gap: 0.75rem; align-items: center; padding: 0.5rem 0.7rem; border-radius: 10px; }
.demarche-lecture { border: 1px solid var(--trait); border-radius: 12px; padding: 0.5rem 0.9rem; }
.demarche-lecture[open] { padding-bottom: 0.9rem; }
.demarche-lecture > summary { display: grid; gap: 0.3rem; color: var(--encre); }
.demarche-lecture > :not(summary):not(:first-child) { margin-top: 0.5rem; }
.lien-demarche { margin-left: 0 !important; }
.modele-actions { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--trait); justify-content: space-between; }
.repli-serie .formulaire { margin-top: 0.75rem; }
.demarche-carte > *, .demarche-lecture > summary > * { min-width: 0; }
.demarche-faits .etat, .demarche-faits .puce { white-space: normal; }
@media (max-width: 22.5rem) { .onglets a { font-size: 0.6875rem; padding-left: 0.1rem; padding-right: 0.1rem; } }

/* ---------- Démarches : textes longs, repères visuels (relecture 0.5) ---------- */
.etape-texte, .demarche-carte strong, .demarche-carte span, .demarche-lecture summary strong, .demarche-suite,
.case-modele label, .repli-serie > summary span, .contenu > h1 { overflow-wrap: anywhere; min-width: 0; }
.etapes li { grid-template-columns: minmax(0, 1fr) auto; }
.etapes-lecture li { grid-template-columns: auto minmax(0, 1fr); }
.etape-bouton { min-width: 0; }
.coche-vide { border-color: #7d7868; }                      /* contour visible : 3:1 au moins sur fond blanc */
.repli-danger > summary { min-height: 2.75rem; display: flex; align-items: center; }
.demarche-lecture > summary { list-style: none; position: relative; padding-right: 1.75rem; cursor: pointer; }
.demarche-lecture > summary::-webkit-details-marker { display: none; }
.demarche-lecture > summary::after { content: "▸"; position: absolute; right: 0.1rem; top: 0.1rem; color: var(--vert-fonce); }
.demarche-lecture[open] > summary::after { content: "▾"; }
.bloc > .message { margin-bottom: 0.25rem; }
.repli-danger > summary { overflow-wrap: anywhere; min-width: 0; flex-wrap: wrap; }
.repli-danger { min-width: 0; max-width: 100%; }
.pile > * { min-width: 0; }

/* ---------- Tableau de bord du lycée, échéances, bourses (0.6) ---------- */
.tuiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (min-width: 48rem) { .tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 76rem) { .tuiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tuiles a { display: grid; gap: 0.15rem; height: 100%; align-content: start; padding: 0.85rem 1rem; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon-carte); box-shadow: var(--ombre); text-decoration: none; color: var(--gris); font-size: 0.925rem; line-height: 1.3; }
.tuiles a:hover { border-color: var(--vert); color: var(--encre); }
.tuiles strong { font-family: var(--titres); font-size: 1.9rem; line-height: 1.1; color: var(--encre); }
.tuiles .tuile-attente { border-color: #e9c48f; background: var(--attente-fond); color: var(--attente); }
.tuiles .tuile-attente strong { color: var(--attente); }
.tuiles .tuile-alerte { border-color: #f1bdb8; background: var(--erreur-fond); color: #7d1a14; }
.tuiles .tuile-alerte strong { color: var(--erreur); }

.echeances { list-style: none; margin: 0; padding: 0; }
.echeances li + li { border-top: 1px solid var(--trait); }
.echeances a { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; padding: 0.7rem 0.5rem; border-radius: 8px; text-decoration: none; color: var(--texte-couleur); }
.echeances a:hover { background: var(--vert-pale); }
.echeances a > * { min-width: 0; }
.echeances strong { color: var(--encre); overflow-wrap: anywhere; }
.echeance-date { white-space: normal; }
.echeance-titre { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; overflow-wrap: anywhere; }
.echeance-titre .puce { padding: 0.1rem 0.6rem; font-size: 0.8rem; }

.filtres-suivi { display: grid; gap: 0.6rem 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; padding: 0.85rem; background: var(--creme); border: 1px solid var(--trait); border-radius: 12px; }
.filtres-suivi .champ:first-child, .filtres-suivi .actions, .filtres-suivi .champ:nth-child(4), .filtres-suivi .champ:nth-child(5) { grid-column: 1 / -1; }
.filtres-suivi select, .filtres-suivi input { width: 100%; min-width: 0; }
@media (min-width: 46rem) {
  .filtres-suivi { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1.4fr); }
  .filtres-suivi .champ:nth-child(4), .filtres-suivi .champ:nth-child(5) { grid-column: auto; }
}
.liste-suivi a > *, .liste a > .suivi { min-width: 0; }
.liste-suivi .nom, .liste .nom { overflow-wrap: anywhere; }
.liste .suivi .etat { white-space: normal; }
.avancement { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; margin-top: 0.2rem; }
.avancement-barre { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; width: 8.5rem; max-width: 100%; }
.avancement-barre span { height: 0.5rem; border-radius: 3px; background: #dcd7ca; }
.avancement-barre .fait { background: var(--vert); }
.avancement-texte { color: var(--gris); font-size: 0.875rem; }

.bourse > h3, .bourse-tete h3 { overflow-wrap: anywhere; }
.bourse-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.35rem 0.75rem; }
.bourse-tete .situation { white-space: normal; }
.bourse-faits { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; }
.bourse-faits .etat { white-space: normal; }
.bourse-texte { overflow-wrap: anywhere; }
.bourse-manque { flex-basis: 100%; }
.bourse .liste { border-top: 1px solid var(--trait); }
.bourse h3 .discret { font-family: var(--texte); font-weight: 400; font-size: 0.9rem; }

/* Raccourcis du tableau de bord : utiles quand les deux colonnes passent l'une sous l'autre (téléphone, tablette). */
.raccourcis { display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; }
.raccourcis a { padding: 0.35rem 0.8rem; border: 1px solid var(--trait); border-radius: 99px; background: var(--papier); color: var(--encre); font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.raccourcis a:hover { border-color: var(--vert); background: var(--vert-pale); }
@media (min-width: 56rem) { .raccourcis { display: none; } }
#echeances h3 { margin-top: 1rem; }
/* Sur les petits écrans, deux pastilles tiennent sur une ligne : les lignes d'élèves restent courtes. */
@media (max-width: 22.5rem) {
  .liste-suivi .suivi { gap: 0.3rem; }
  .liste-suivi .suivi .etat { padding: 0.12rem 0.45rem; font-size: 0.75rem; gap: 0.25rem; }
}

/* Fiches préparées par la plateforme, pas encore vérifiées (0.7) */
.message-attente { background: var(--attente-fond); border-color: #e9c48f; color: #5c3200; }
.message-attente p + p { margin-top: 0.5rem; }
.fiche-entete-texte .message { font-size: 0.95rem; }

/* ---------- Barre latérale bleu nuit, en rubriques (0.7) ---------- */
.contact-nom { display: block; font-weight: 600; }
.contact-ligne { display: flex; align-items: flex-start; gap: 0.45rem; text-decoration: none; color: inherit; min-width: 0; }
.contact-ligne .icone { flex: none; margin-top: 0.2rem; opacity: 0.8; }
.contact-ligne span { min-width: 0; overflow-wrap: anywhere; }
a.contact-ligne:hover span { text-decoration: underline; }
.pied-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 1rem; }
.pied-contact .contact-nom { font-weight: 500; }
.pied-contact .contact-ligne { color: var(--vert-fonce); align-items: center; }
.pied-contact .contact-ligne .icone { margin-top: 0; }
.fil-espace { white-space: nowrap; }

@media (min-width: 64rem) {
  .espace { grid-template-columns: 17.5rem 1fr; }
  .lateral { background: var(--nuit); border-right: 0; color: #c9d6de; padding: 1.25rem 1rem 1rem; gap: 0; }
  .lateral .logo { padding: 0.25rem 0.5rem 1.25rem; }
  .lateral .logo-nom { color: #fff; }
  .lateral .logo-nom span { color: #4cc49f; }
  .lateral nav { gap: 0; }
  .lateral nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
  .lateral-rubrique { margin: 1.1rem 0 0.45rem; padding: 0 0.85rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #8fa4b1; }
  .lateral nav ul:first-of-type { margin-top: 0; }
  .lateral-separation { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); margin: 1rem 0.5rem 0.75rem; }
  .lateral nav a { color: #e4ecf1; padding: 0.65rem 0.85rem; }
  .lateral nav a .icone { color: #b7c7d1; }
  .lateral nav a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
  .lateral nav a[aria-current="page"] { background: var(--vert); color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); }
  .lateral nav a[aria-current="page"] .icone { color: #fff; }
  .lateral nav a:focus-visible { outline-color: #4cc49f; }
  .lateral-bas { gap: 0.6rem; padding-top: 1.25rem; }
  .lateral-aide { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: #dfe8ee; display: grid; gap: 0.3rem; padding: 0.85rem 0.9rem; }
  .lateral-aide strong { color: #fff; margin-bottom: 0.15rem; }
  .lateral-aide .contact-nom { color: #fff; }
  .lateral-aide .contact-ligne { color: #dfe8ee; font-size: 0.875rem; }
  .lateral-aide a.contact-ligne:hover { color: #fff; }
  .lateral-moi { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 0.85rem 0.5rem 0.25rem; text-decoration: none; color: #fff; border-radius: 0; }
  .lateral-moi:hover .lateral-moi-texte strong { text-decoration: underline; }
  .lateral-moi .pastille { background: var(--vert); width: 2.6rem; height: 2.6rem; font-size: 0.95rem; }
  .lateral-moi-texte { display: grid; min-width: 0; flex: 1; }
  .lateral-moi-texte strong { color: #fff; }
  .lateral-moi-texte span { font-size: 0.85rem; color: #8fa4b1; }
  .lateral-moi > .icone { color: #8fa4b1; flex: none; }
  .lateral-sortie button { color: #a9bac5; padding: 0.45rem 0.5rem; }
  .lateral-sortie button:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
  .lateral :focus-visible { outline-color: #4cc49f; }
  .barre-moi { display: inline-flex; }
  .barre-moi .pastille { background: var(--vert); width: 2.6rem; height: 2.6rem; }
  .barre-recherche { margin-left: auto; margin-right: 0.5rem; width: min(26rem, 40%); }
  .barre-moi { margin-left: 0.5rem; }
}

/* ---------- Synthèse de l'administrateur (0.7) ---------- */
.synthese-tete { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.synthese-tete .intro { margin-top: 0.35rem; }
.menu-ajouter { position: relative; }
.menu-ajouter > summary { list-style: none; cursor: pointer; }
.menu-ajouter > summary::-webkit-details-marker { display: none; }
.menu-ajouter ul { position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 30; list-style: none; margin: 0; padding: 0.4rem; min-width: 16rem;
  background: var(--papier); border: 1px solid var(--trait); border-radius: 12px; box-shadow: 0 12px 30px rgba(20, 36, 47, 0.14); }
.menu-ajouter a { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.6rem; padding: 0.6rem 0.7rem; border-radius: 8px; color: var(--encre); text-decoration: none; font-weight: 500; }
.menu-ajouter a span { flex-basis: 100%; padding-left: 1.75rem; font-size: 0.82rem; color: var(--gris); font-weight: 400; }
.menu-ajouter a:hover { background: var(--vert-pale); }
@media (max-width: 30rem) { .menu-ajouter ul { right: auto; left: 0; } }

.kpis { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); }
.kpis > li { display: flex; align-items: flex-start; gap: 1rem; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon-carte); padding: 1.1rem 1.15rem; box-shadow: var(--ombre); min-width: 0; }
.kpis > li > div { display: grid; gap: 0.15rem; min-width: 0; }
.kpi-titre { color: var(--gris); font-size: 0.95rem; }
.kpis strong { font-family: var(--titres); font-size: 2.1rem; line-height: 1.05; color: var(--encre); }
.kpi-detail { color: var(--gris); font-size: 0.9rem; }
.kpi-icone { display: grid; place-items: center; flex: none; width: 3.4rem; height: 3.4rem; border-radius: 50%; }
.kpi-vert { background: var(--vert-clair); color: var(--vert-fonce); }
.kpi-bleu { background: #e3ecf8; color: #1d4573; }
.kpi-or { background: var(--or-clair); color: #8a5a00; }
.kpi-violet { background: #ece8f8; color: #4b3a8f; }
.kpi-puces { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.2rem; }
.kpi-puce { padding: 0.15rem 0.6rem; border-radius: 99px; background: #eef0ee; color: #3c4a5c; font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.kpi-puce-vert { background: var(--vert-clair); color: var(--vert-fonce); }
.kpi-puce-or { background: var(--attente-fond); color: var(--attente); }
a.kpi-puce:hover { text-decoration: underline; }

.synthese-milieu { display: grid; gap: 1.25rem; }
@media (min-width: 70rem) { .synthese-milieu { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; } }
.preparer { background: linear-gradient(135deg, #f1f8f5, #e8f3ee); border-color: #d5e9e1; }
.preparer-tete { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem 1.25rem; align-items: start; }
.preparer-tete h2 { font-size: 1.55rem; }
.preparer-tete p { color: var(--gris); margin-top: 0.3rem; }
.preparer-avancement { display: grid; gap: 0.5rem; font-size: 0.9rem; color: var(--encre); white-space: nowrap; }
.preparer-points { display: flex; align-items: center; width: 9rem; }
.preparer-points span { flex: none; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: #b8c4c0; }
.preparer-points span + span { margin-left: auto; }
.preparer-points span.fait { background: var(--vert); }
.preparer-points { background: linear-gradient(#cdd8d4, #cdd8d4) center / 100% 3px no-repeat; }
.preparer-dessin { display: none; width: 7rem; height: auto; }
@media (min-width: 48rem) { .preparer-tete { grid-template-columns: 1fr auto auto; } .preparer-dessin { display: block; } }
.preparer-etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; counter-reset: none; }
@media (min-width: 40rem) { .preparer-etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.preparer-etapes li { display: flex; gap: 0.75rem; align-items: flex-start; background: var(--papier); border: 1px solid var(--trait); border-radius: 14px; padding: 1rem; min-width: 0; }
.preparer-etapes li.etape-suivante { border: 2px solid var(--vert); }
.preparer-etapes h3 { font-size: 1.02rem; }
.preparer-etapes p { color: var(--gris); font-size: 0.88rem; margin: 0.3rem 0 0.6rem; }
.preparer-etapes a { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.preparer-numero { display: grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #e3ecf8; color: #1d4573; font-weight: 700; }
.etape-faite .preparer-numero { background: var(--vert); color: #fff; }
.etape-suivante .preparer-numero { background: var(--vert-clair); color: var(--vert-fonce); }

.acces-rapides ul { list-style: none; margin: 0; padding: 0; }
.acces-rapides li + li { border-top: 1px solid var(--trait); }
.acces-rapides a { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 0.2rem; text-decoration: none; color: var(--encre); border-radius: 10px; }
.acces-rapides a:hover { background: var(--vert-pale); }
.acces-rapides a > span:nth-child(2) { display: grid; gap: 0.15rem; flex: 1; min-width: 0; }
.acces-rapides a > span:nth-child(2) span { color: var(--gris); font-size: 0.88rem; }
.acces-rapides .kpi-icone { width: 3rem; height: 3rem; border-radius: 12px; }
.acces-rapides > a .icone:last-child, .acces-rapides a > .icone { color: var(--gris); flex: none; }
.acces-rapides p.petit { display: flex; align-items: center; gap: 0.4rem; border-top: 1px solid var(--trait); padding-top: 0.75rem; }

.tableau-actions { min-width: 40rem; }
.tableau-actions td { vertical-align: middle; }
.nombre-date { white-space: nowrap; color: var(--encre); }
.qui { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--encre); }
.pastille-petite { width: 1.9rem; height: 1.9rem; font-size: 0.72rem; background: var(--vert); }
.etiquette { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 99px; font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.etiquette-bleu { background: #e3ecf8; color: #1d4573; }
.etiquette-vert { background: var(--vert-clair); color: var(--vert-fonce); }
.etiquette-violet { background: #ece8f8; color: #4b3a8f; }
.etiquette-or { background: var(--or-clair); color: #7a560c; }
.etiquette-rouge { background: var(--erreur-fond); color: #8c1d16; }
.etiquette-gris { background: #e9edf2; color: #3c4a5c; }
.dernieres-total { text-align: right; }
@media (max-width: 29.99rem) { .preparer-tete { grid-template-columns: 1fr; } .preparer-points { width: 7.5rem; } }
.preparer-etapes a { display: inline; }
.preparer-etapes a .icone { vertical-align: -0.2em; margin-left: 0.15rem; }
/* La colonne de la barre latérale reste bleu nuit sur toute la hauteur de la page. */
@media (min-width: 64rem) { .espace { background: linear-gradient(to right, var(--nuit) 17.5rem, transparent 17.5rem); } }
/* Sur téléphone, les dernières actions se lisent en fiches plutôt qu'en tableau à faire défiler. */
@media (max-width: 47.99rem) {
  .tableau-actions { min-width: 0; }
  .tableau-actions thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tableau-actions tr { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--trait); }
  .tableau-actions td { display: block; padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
  .tableau-actions td:nth-child(1) { grid-column: 1 / -1; font-size: 0.85rem; color: var(--gris); }
  .tableau-actions td:nth-child(4) { grid-column: 1 / -1; font-size: 0.875rem; }
  .tableau-actions .etiquette { white-space: normal; }
}

.ligne-formulaire .champ-court { flex: 0 1 7rem; }
