/* Feuille de style unique — conçue d'abord pour le téléphone.
   Identité : sans empattement géométrique et légère, gris anthracite, fonds clairs, un seul accent rouge, angles droits. */
/* Police Jost (licence libre SIL OFL, voir fonts/OFL.txt), hébergée avec le site : même rendu sur tous les appareils,
   sans appel à un service extérieur. Fichier à graisse variable, caractères latins (accents français compris). */
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}:root {
  --noir: #1a1a1a;
  --anthracite: #262626;
  --gris: #404040;
  --fond: #eeeeee;
  --carte: #ffffff;
  --texte: #2b2b2b;
  --doux: #6a6a6a;
  --trait: #d6d6d6;
  --rouge: #e30613;
  --rouge-fonce: #b3050f;
  --clair: #f0efef;
  --ok: #1f6b3a; --ok-fond: #e6f2ea;
  --ko: #a3121c; --ko-fond: #fbe7e8;
  --attente: #7a5200; --attente-fond: #fbf1d6;
  --info: #2f4a66; --info-fond: #e8eef4;
  /* Jost, puis des polices système de même esprit en secours si le fichier ne se charge pas */
  --sans: "Jost", "Avenir Next", Avenir, "Century Gothic", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  --titres: "Jost", "Avenir Next", Avenir, "Century Gothic", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--fond); color: var(--texte); font: 16px/1.55 var(--sans); }
a { color: var(--texte); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--rouge-fonce); }
h1, h2, h3 { font-family: var(--titres); font-weight: 300; color: var(--anthracite); }
h1 { font-size: 1.9rem; line-height: 1.15; margin: 0 0 .8rem; letter-spacing: .02em; }
h2 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 .6rem; letter-spacing: .01em; }
h3 { font-size: 1.05rem; margin: 0 0 .4rem; font-weight: 600; letter-spacing: .02em; }
p { margin: 0 0 .75rem; }
.doux { color: var(--doux); }
.petit { font-size: .875rem; }
.droite { text-align: right; }
.evitement { position: absolute; left: -999px; }
.evitement:focus { left: 8px; top: 8px; background: #fff; padding: .5rem; z-index: 50; }
code { font-size: .9em; background: #e4e4e4; padding: .05em .3em; }

/* En-tête : marque et actions, puis le menu dans un bandeau */
.haut { background: var(--gris); color: var(--clair); position: sticky; top: 0; z-index: 20; }
.haut-int { max-width: 1180px; margin: 0 auto; padding: .7rem 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.marque {
  color: #fff; text-decoration: none; font-family: var(--titres); font-size: 1.05rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  margin-right: auto; display: inline-flex; align-items: center; gap: .7rem; line-height: 1.2;
}
.marque:hover { color: #fff; }
.marque-trait { width: 4px; height: 1.6em; background: var(--rouge); flex: none; }
.haut-actions { display: flex; gap: .5rem; align-items: center; }
.haut-actions form { margin: 0; }
.recherche input { border: 0; padding: .45rem .8rem; width: 12rem; font-size: .9rem; min-height: 38px; }
.haut .btn { min-height: 38px; padding: .35rem .9rem; font-size: .8rem; }
.haut .btn:not(.btn-accent) { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.haut .btn:not(.btn-accent):hover { background: rgba(255,255,255,.12); }

.bandeau-menu { background: var(--noir); border-top: 1px solid rgba(255,255,255,.08); }
.nav-principale { max-width: 1180px; margin: 0 auto; padding: 0 .5rem; display: flex; overflow-x: auto; scrollbar-width: none; }
.nav-principale::-webkit-scrollbar { display: none; }
.nav-principale a {
  color: var(--clair); text-decoration: none; padding: .75rem .8rem .65rem; white-space: nowrap;
  font-family: var(--titres); font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; border-bottom: 3px solid transparent;
}
.nav-principale a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.35); }
.nav-principale a.actif { color: #fff; border-bottom-color: var(--rouge); }
.espace-admin .bandeau-menu, .espace-client .bandeau-menu { display: none; } /* sur téléphone : onglets en bas d'écran */

.contenu { max-width: 1180px; margin: 0 auto; padding: 1.25rem 1rem 6rem; }
.bas { text-align: center; background: var(--gris); color: var(--clair); padding: 2.5rem 1rem; font-family: var(--titres); font-size: .95rem; letter-spacing: .02em; }
.bas a { color: var(--clair); }
.bas a:hover { color: #fff; }
.bas strong { font-weight: 400; font-size: 1.05rem; letter-spacing: .2em; text-transform: uppercase; }
.espace-public .contenu { padding-bottom: 3rem; }

/* Barre d'onglets mobile */
.onglets {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: flex;
  background: var(--noir); padding-bottom: env(safe-area-inset-bottom);
}
.onglets a { flex: 1; text-align: center; padding: .5rem .2rem .5rem; text-decoration: none; color: #b9b9b9; font-size: .7rem; letter-spacing: .04em; display: flex; flex-direction: column; align-items: center; border-top: 3px solid transparent; }
.onglets .ico { font-size: 1.2rem; line-height: 1.3; }
.onglets a.actif { color: #fff; border-top-color: var(--rouge); }

/* Cartes et grilles */
.carte { background: var(--carte); border: 1px solid var(--trait); padding: 1.1rem; margin-bottom: 1rem; }
.carte > :last-child { margin-bottom: 0; }
.carte-alerte { border-left: 4px solid var(--rouge); }
a.carte:hover { border-color: var(--gris); color: inherit; }
.grille { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.titre-page { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.titre-page h1, .titre-page h2 { margin: 0; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }
/* Barres de filtres : champs côte à côte, y compris sur téléphone */
form.actions { align-items: flex-end; }
form.actions .champ { flex: 1 1 8.5rem; margin-bottom: 0; }
form.actions .case { margin-bottom: .6rem; }

/* Boutons : anthracite par défaut, rouge pour l'action mise en avant */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px;
  padding: .55rem 1.1rem; border-radius: 0; border: 1px solid var(--anthracite); background: var(--anthracite); color: #fff;
  font: 600 .84rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.btn:hover { background: #000; border-color: #000; color: #fff; }
.btn-accent, .btn-cuir { background: var(--rouge); border-color: var(--rouge); }
.btn-accent:hover, .btn-cuir:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); }
.btn-discret { background: transparent; color: var(--anthracite); }
.btn-discret:hover { background: var(--anthracite); color: #fff; }
.btn-danger { background: transparent; color: var(--ko); border-color: var(--ko); }
.btn-danger:hover { background: var(--ko); border-color: var(--ko); color: #fff; }
.btn-petit { min-height: 36px; padding: .3rem .7rem; font-size: .76rem; }
.btn-large { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
summary.btn { list-style: none; }
summary.btn::-webkit-details-marker { display: none; }

/* Formulaires */
form { margin: 0 0 1rem; }
.champ { display: block; margin-bottom: .8rem; }
.champ > span { display: block; font-weight: 600; font-size: .86rem; margin-bottom: .25rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date],
input[type=time], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: .6rem .7rem; border: 1px solid #b5b5b5; border-radius: 0; font: 1rem/1.4 var(--sans); background: #fff; color: var(--texte); min-height: 44px;
}
textarea { min-height: 5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--anthracite); outline-offset: 0; border-color: var(--anthracite); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--rouge); outline-offset: 2px; }
.haut a:focus-visible, .haut .btn:focus-visible, .onglets a:focus-visible { outline-color: #fff; }
input[type=checkbox], input[type=radio] { accent-color: var(--rouge); }
.case { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .6rem; }
.case input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; flex: none; }
.ligne-champs { display: grid; gap: 0 .8rem; grid-template-columns: 1fr; }
fieldset { border: 1px solid var(--trait); padding: .8rem 1rem; margin: 0 0 1rem; }
legend { font-family: var(--titres); font-weight: 600; letter-spacing: .02em; padding: 0 .4rem; }
.choix { display: block; border: 1px solid var(--trait); padding: .7rem .8rem; margin-bottom: .5rem; background: #fff; cursor: pointer; }
.choix:has(input:checked) { border-color: var(--anthracite); box-shadow: 0 0 0 1px var(--anthracite) inset; }
.choix input { margin-right: .5rem; }
.creneaux { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: .4rem; margin-bottom: .8rem; }
.creneaux .choix { text-align: center; margin: 0; padding: .55rem .2rem; font-variant-numeric: tabular-nums; }
.creneaux .choix input { position: absolute; opacity: 0; }
.creneaux .choix:has(input:checked) { background: var(--anthracite); color: #fff; }

/* Messages et statuts (toujours libellés en toutes lettres) */
.flash { padding: .7rem .9rem; margin-bottom: .8rem; border-left: 4px solid; background: #fff; }
.flash-ok { background: var(--ok-fond); color: var(--ok); }
.flash-ko { background: var(--ko-fond); color: var(--ko); }
.flash-alerte { background: var(--attente-fond); color: #5a3d00; border-color: #c08a00; }
.flash-info { background: var(--info-fond); color: var(--info); }
.badge { display: inline-block; padding: .14rem .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; border: 1px solid currentColor; }
.badge-ok { background: var(--ok-fond); color: var(--ok); }
.badge-ko { background: var(--ko-fond); color: var(--ko); }
.badge-attente { background: var(--attente-fond); color: var(--attente); }
.badge-info { background: var(--info-fond); color: var(--info); }
.badge-neutre { background: #ececec; color: #555; }

/* Listes */
.liste { list-style: none; margin: 0; padding: 0; }
.liste > li { padding: .7rem 0; border-top: 1px solid var(--trait); display: flex; gap: .75rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.liste > li:first-child { border-top: 0; padding-top: 0; }
.liste .principal { flex: 1 1 14rem; min-width: 0; }
.liste .principal a { font-weight: 600; }
.form-favori { margin: 0; }
.etoile { background: none; border: 0; padding: 0 .15rem; font-size: 1.35rem; line-height: 1; color: var(--doux); cursor: pointer; }
.etoile.active { color: #c58b00; }
.etoile:hover, .etoile:focus-visible { color: #c58b00; }
.saisie-participants input.majuscules { text-transform: uppercase; }
.vide { color: var(--doux); font-style: italic; }
.heure { font-variant-numeric: tabular-nums; font-weight: 700; }
dl.fiche { display: grid; grid-template-columns: minmax(7rem, 35%) 1fr; gap: .35rem .8rem; margin: 0 0 .75rem; }
dl.fiche dt { color: var(--doux); font-size: .9rem; }
dl.fiche dd { margin: 0; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .5rem .5rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
th { font-size: .74rem; color: var(--doux); text-transform: uppercase; letter-spacing: .08em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-def { overflow-x: auto; }

/* Tableau de bord */
.tuiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-bottom: 1rem; }
.tuile { background: #fff; border: 1px solid var(--trait); padding: .9rem; text-decoration: none; color: inherit; display: block; }
a.tuile:hover { border-color: var(--gris); color: inherit; }
.tuile strong { display: block; font-family: var(--titres); font-weight: 300; font-size: 1.8rem; line-height: 1.1; }
.tuile span { font-size: .8rem; color: var(--doux); letter-spacing: .02em; }
.tuile.a-traiter { border-top: 3px solid var(--rouge); }
.tuile.a-traiter strong { color: var(--rouge-fonce); }
.barre { background: #dedede; height: .5rem; overflow: hidden; }
.barre > i { display: block; height: 100%; background: var(--anthracite); }

/* Planning */
.semaine { display: grid; gap: .6rem; grid-template-columns: 1fr; }
.jour { background: #fff; border: 1px solid var(--trait); padding: .6rem; min-width: 0; }
.jour.aujourdhui { border-top: 3px solid var(--rouge); }
.jour h3 { display: flex; justify-content: space-between; gap: .4rem; font-size: .95rem; }
.jour h3 a { text-decoration: none; color: inherit; }
.bloc { display: block; border-left: 3px solid var(--anthracite); background: #f1f1f1; padding: .35rem .5rem; margin-bottom: .35rem; text-decoration: none; color: inherit; font-size: .86rem; }
a.bloc:hover { background: #e6e6e6; color: inherit; }
.bloc.collectif { border-left-color: var(--rouge); }
.bloc.inactif { border-left-color: #aaa; background: #f6f6f6; color: #777; text-decoration: line-through; }
.bloc.indispo { border-left-color: #777; background: repeating-linear-gradient(45deg, #f1f1f1, #f1f1f1 6px, #e2e2e2 6px, #e2e2e2 12px); }
.bloc.tenu { background: #fff; border: 1px dashed var(--gris); }
.trajet { font-size: .78rem; color: var(--doux); text-align: center; margin: .1rem 0 .35rem; }
.trajet.court { color: var(--ko); font-weight: 700; }
.mois { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mois .case-jour { background: #fff; border: 1px solid var(--trait); min-height: 3.6rem; padding: .25rem; font-size: .78rem; text-decoration: none; color: inherit; overflow: hidden; }
.mois .hors { opacity: .4; }
.mois .entete-jour { text-align: center; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--doux); }
.pastille { display: inline-block; background: var(--rouge); color: #fff; border-radius: 999px; padding: 0 .45rem; font-weight: 700; font-size: .8em; }

/* Grille horaire hebdomadaire (planning et semaine type) : jours en colonnes, heures en lignes */
.gh-defile { overflow-x: auto; background: #fff; border: 1px solid var(--trait); margin-bottom: 1rem; }
.grille-h { --ligne: 3.6rem; display: grid; grid-template-columns: 3.6rem repeat(var(--jours), minmax(7.5rem, 1fr)); min-width: max-content; }
.gh-coin, .gh-jour { position: sticky; top: 0; z-index: 3; background: #fff; border-bottom: 1px solid var(--trait); }
.gh-coin, .gh-heures { position: sticky; left: 0; z-index: 4; background: #f7f7f7; border-right: 1px solid var(--trait); }
.gh-coin { z-index: 5; }
.gh-jour { text-align: center; padding: .6rem .3rem; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); border-left: 1px solid #ececec; }
.gh-jour a { text-decoration: none; color: inherit; }
.gh-jour small { display: block; font-weight: 400; letter-spacing: .02em; text-transform: none; color: var(--doux); font-size: .72rem; }
.gh-jour.aujourdhui { box-shadow: inset 0 3px 0 var(--rouge); color: var(--noir); }
.gh-heures > div { height: var(--ligne); padding: .35rem .45rem 0 0; text-align: right; font-size: .78rem; font-weight: 600; color: var(--gris); font-variant-numeric: tabular-nums; border-top: 1px solid var(--trait); }
.gh-heures > div:first-child { border-top: 0; }
.gh-col {
  position: relative; height: calc(var(--heures) * var(--ligne)); border-left: 1px solid #ececec;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--ligne) - 1px), #e4e4e4 calc(var(--ligne) - 1px), #e4e4e4 var(--ligne));
}
.gh-col.aujourdhui { background-color: #fafafa; }
.gh-fond { position: absolute; left: 0; right: 0; overflow: hidden; border-left: 3px solid rgba(0,0,0,.18); }
.gh-fond span { position: absolute; right: .3rem; bottom: .15rem; font-size: .66rem; color: var(--doux); white-space: nowrap; }
.gh-case { position: absolute; left: 0; right: 0; z-index: 1; display: flex; align-items: center; justify-content: center; text-decoration: none; color: transparent; font-size: 1.2rem; }
.gh-case:hover, .gh-case:focus-visible { background: rgba(38,38,38,.08); color: var(--gris); }
.gh-bloc {
  position: absolute; left: 3px; right: 3px; z-index: 2; overflow: hidden; min-height: 1.35rem;
  background: var(--anthracite); color: #fff; font-size: .74rem; line-height: 1.25; border-left: 3px solid var(--rouge);
}
.gh-bloc > a { display: block; height: 100%; padding: .2rem .35rem; color: inherit; text-decoration: none; }
.gh-bloc > a:hover { background: #000; color: #fff; }
.gh-bloc strong { font-variant-numeric: tabular-nums; }
.gh-bloc.collectif { background: #6b1a1f; }
.gh-bloc.faite { background: #5a5a5a; border-left-color: #9a9a9a; }
.gh-bloc.inactif { background: #f3f3f3; color: #777; border-left-color: #bbb; text-decoration: line-through; }
.gh-bloc.inactif > a:hover { background: #e6e6e6; color: #555; }
.gh-bloc.tenu { background: #fff; color: var(--texte); border: 1px dashed var(--gris); }
.gh-bloc.tenu > a:hover { background: #f0f0f0; color: var(--texte); }
.gh-bloc.indispo { left: 0; right: 0; padding: .2rem .35rem; color: #444; border-left-color: #777; background: repeating-linear-gradient(45deg, #ededed, #ededed 6px, #dcdcdc 6px, #dcdcdc 12px); }
.gh-bloc.plage { left: 0; right: 0; z-index: 2; background: #eeeeee; color: var(--texte); border-left: 3px solid rgba(0,0,0,.3); padding: .3rem .4rem; font-size: .78rem; }
.gh-bloc.plage form { position: absolute; top: .2rem; right: .2rem; margin: 0; }
.gh-bloc.plage .btn { min-height: 26px; padding: 0 .4rem; font-size: .7rem; background: #fff; }
.grille-h[data-glisser] .gh-col { cursor: crosshair; touch-action: pan-x pan-y; }
.grille-h[data-glisser] .gh-case { cursor: crosshair; -webkit-user-drag: none; }
.grille-h[data-glisser] .gh-bloc { cursor: auto; }
.gh-selection { position: absolute; left: 2px; right: 2px; z-index: 6; pointer-events: none; background: rgba(227,6,19,.16); border: 2px solid var(--rouge); color: var(--rouge-fonce); font-size: .78rem; font-weight: 700; padding: .15rem .3rem; font-variant-numeric: tabular-nums; overflow: hidden; }
.zones-glisser { background: #fff; margin-bottom: .6rem; }
.zones-glisser .choix { margin: 0; padding: .45rem .7rem; display: inline-flex; align-items: center; gap: .1rem; }
.zones-glisser .choix i { display: inline-block; width: 1rem; height: 1rem; margin-right: .4rem; border: 1px solid rgba(0,0,0,.25); }
.zones-glisser .zones-aide { margin: .6rem 0 0; }
.zones-glisser.attention { border-color: var(--rouge); box-shadow: 0 0 0 2px var(--rouge) inset; }
.zones-glisser.attention .zones-aide { color: var(--ko); font-weight: 700; }
.gh-poignee { position: absolute; left: 0; right: 0; height: 9px; z-index: 3; cursor: ns-resize; touch-action: none; }
.gh-poignee.p-debut { top: 0; }
.gh-poignee.p-fin { bottom: 0; }
.gh-poignee::after { content: ""; position: absolute; left: 50%; width: 1.6rem; margin-left: -.8rem; height: 3px; background: rgba(0,0,0,.28); }
.gh-poignee.p-debut::after { top: 2px; }
.gh-poignee.p-fin::after { bottom: 2px; }
.gh-poignee:hover::after, .gh-bloc.en-cours .gh-poignee::after { background: var(--rouge); }
.gh-bloc.en-cours { z-index: 6; box-shadow: 0 0 0 2px var(--rouge); }
.gh-bloc.plage form { z-index: 4; }
.gh-alerte { display: block; color: #ffd2d4; font-weight: 700; }
.legende { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; color: var(--doux); margin: 0 0 1rem; padding: 0; list-style: none; }
.legende i { display: inline-block; width: 1rem; height: .8rem; vertical-align: -1px; margin-right: .3rem; border: 1px solid rgba(0,0,0,.2); }

/* Site public */
.espace-public .contenu { font-size: 1.05rem; font-weight: 300; }
.espace-public .contenu strong, .espace-public .contenu .champ > span { font-weight: 600; }
.espace-public h1 { font-size: 2.2rem; }
.espace-public .contenu > h2 { font-size: 1.6rem; margin-top: 2rem; text-align: center; }
.hero { background: linear-gradient(160deg, #1a1a1a 0%, #404040 100%); color: #fff; padding: 3rem 1.25rem; margin: -1.25rem -1rem 1.5rem; text-align: center; }
.hero h1 { font-size: 2.3rem; color: #fff; font-weight: 300; letter-spacing: .08em; text-transform: uppercase; }
.hero p { font-size: 1.15rem; max-width: 38rem; margin: 0 auto 1.4rem; color: rgba(255,255,255,.9); }
.hero .actions { justify-content: center; }
.hero .btn { background: var(--rouge); border-color: var(--rouge); }
.hero .btn:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); }
.hero .btn-discret { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn-discret:hover { background: #fff; color: var(--anthracite); border-color: #fff; }
/* Vidéo d'accueil : en fond du bandeau (assombrie pour garder le texte lisible) ou en lecteur */
.hero-video { position: relative; overflow: hidden; background: var(--noir); min-height: 62vh; display: flex; align-items: flex-end; justify-content: center; }
.hero-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.6)); }
.hero-video .hero-texte { position: relative; z-index: 1; }
.video-accueil { display: block; width: 100%; max-width: 960px; max-height: 70vh; margin: 0 auto 1.5rem; background: #000; }
.prix { font-weight: 700; color: var(--rouge-fonce); white-space: nowrap; }
.etapes { display: flex; gap: .3rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; flex-wrap: wrap; }
.etapes li { padding: .3rem .6rem; background: #dcdcdc; color: var(--doux); }
.etapes li.actif { background: var(--anthracite); color: #fff; font-weight: 700; }
.actions-seance { display: grid; gap: .5rem; grid-template-columns: 1fr; margin-bottom: 1rem; }
.etroit { max-width: 34rem; margin-left: auto; margin-right: auto; }

@media (min-width: 640px) {
  .ligne-champs { grid-template-columns: 1fr 1fr; }
  .ligne-champs.trois { grid-template-columns: 1fr 1fr 1fr; }
  .tuiles { grid-template-columns: repeat(3, 1fr); }
  .grille.deux { grid-template-columns: 1fr 1fr; }
  .grille.trois { grid-template-columns: repeat(3, 1fr); }
  .actions-seance { grid-template-columns: repeat(3, 1fr); }
  .btn-large { width: auto; }
  .hero { padding: 5rem 2.5rem; }
  .hero h1 { font-size: 3.2rem; }
  .espace-public h1 { font-size: 2.6rem; }
  .marque { font-size: 1.15rem; }
}
@media (min-width: 900px) {
  .onglets { display: none; }
  .contenu { padding-bottom: 3rem; }
  .espace-admin .bandeau-menu, .espace-client .bandeau-menu { display: block; }
  .nav-principale { padding: 0 .2rem; }
  .tuiles { grid-template-columns: repeat(6, 1fr); }
  .semaine { grid-template-columns: repeat(7, 1fr); }
  .grille.large-etroit { grid-template-columns: 2fr 1fr; }
  .mois .case-jour { min-height: 5.5rem; }
  .hero { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
}
@media (max-width: 899px) {
  /* Sur téléphone, recherche et déconnexion sont dans « Plus » (monitrice) et « Mon compte » (client) */
  .espace-admin .haut-actions, .espace-client .haut-actions { display: none; }
  .mobile-cache { display: none; }
}
@media print {
  .haut, .onglets, .bas, .btn, form { display: none !important; }
  body { background: #fff; }
}

/* Suivi pédagogique : pointage des compétences dans le compte rendu de séance */
.competences details { border-top: 1px solid var(--trait); padding: .5rem 0; }
.competences summary, .carte details > summary { cursor: pointer; }
.ligne-competence { display: flex; gap: .6rem; align-items: center; justify-content: space-between; padding: .4rem 0; border-top: 1px dotted var(--trait); }
.ligne-competence > span { flex: 1 1 auto; min-width: 0; font-size: .95rem; }
.ligne-competence select { flex: 0 0 8.5rem; width: 8.5rem; min-height: 40px; padding: .35rem .5rem; }
.ligne-competence:has(option:checked:not([value="0"])) > span { font-weight: 600; }

/* Commentaire par compétence : le champ n'apparaît que pour une compétence pointée (ou déjà commentée) */
.com-competence { margin: 0 0 .5rem; min-height: 38px; padding: .35rem .6rem; font-size: .9rem; }
.ligne-competence:not(:has(option:checked:not([value="0"]))) + .com-competence:placeholder-shown { display: none; }
.com-lecture { margin-top: .25rem; padding: .25rem .6rem; border-left: 3px solid var(--trait); font-size: .9rem; font-style: italic; }

/* Fiche de séance : formulaire d'une fiche pédagogique cochée */
.fiche-ligne { border-top: 1px dotted var(--trait); }
.fiche-ligne .ligne-competence { border-top: 0; justify-content: flex-start; }
.fiche-saisie { margin: 0 0 1rem 1.9rem; padding: .5rem 0 .2rem .9rem; border-left: 3px solid var(--rouge); }
.fiche-saisie > summary { cursor: pointer; font-weight: 600; margin-bottom: .6rem; }
.fiche-saisie textarea { min-height: 0; }
@media (max-width: 639px) { .fiche-saisie { margin-left: .3rem; } }

/* Compétences liées aux fiches pédagogiques cochées */
.marque-fiche, .ligne-competence.liee > span::before {
  display: inline-block; margin-right: .4rem; padding: 0 .35rem; background: var(--rouge); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px;
}
.ligne-competence.liee > span::before { content: "Fiche"; }
.ligne-competence.liee { background: #fdf3f3; }

/* Évaluation des observables d'une fiche pédagogique */
.obs-eval { margin-top: .8rem; padding-top: .6rem; border-top: 1px solid var(--trait); }
.obs-eval h3 { margin-bottom: .2rem; }
.obs-eval .ligne-competence { flex-wrap: wrap; }
.obs-eval .ligne-competence > span { flex: 1 1 12rem; }
.obs-eval select { flex: 0 0 auto; width: auto; min-width: 8.5rem; min-height: 40px; padding: .35rem .5rem; }

/* Carte entièrement cliquable : le lien du titre couvre tout le bloc */
.carte-lien { position: relative; transition: border-color .15s, box-shadow .15s; }
.carte-lien :is(h2, h3) a { color: inherit; text-decoration: none; }
.carte-lien :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; }
.carte-lien:hover, .carte-lien:focus-within { border-color: var(--rouge); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.carte-lien:hover :is(h2, h3) a { color: var(--rouge); }

/* Planning hebdomadaire de réservation (client) : 7 jours visibles d'un coup, y compris sur téléphone */
.pl-semaine { margin-bottom: 1rem; }
.pl-tete { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .4rem; }
.pl-tete strong { flex: 1; text-align: center; }
.pl-tete .btn { min-width: 2.75rem; min-height: 2.5rem; font-size: 1.1rem; }
.pl-tete .btn[hidden] { display: inline-block; visibility: hidden; }
.pl-grille { display: grid; grid-template-columns: 2.4rem repeat(7, minmax(0, 1fr)); gap: 2px; background: #fff; border: 1px solid var(--trait); padding: 2px; }
.pl-jour { text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1.15; padding: .3rem 0; background: var(--anthracite); color: #fff; }
.pl-jour b { display: block; font-size: 1.05rem; }
.pl-jour.pl-absent { background: #9a9a9a; }
.pl-jour.pl-aujourdhui { box-shadow: inset 0 -3px 0 var(--rouge); }
.pl-heure { font-size: .72rem; color: var(--doux); text-align: right; padding-right: .25rem; line-height: 1; }
.pl-case { display: block; min-height: 2.4rem; position: relative; }
.pl-vide { background: #f3f3f3; }
.pl-pris { background: repeating-linear-gradient(135deg, #dcdcdc 0 4px, #f3f3f3 4px 8px); }
.pl-libre { cursor: pointer; background: var(--ok-fond); border: 1px solid var(--ok); color: var(--ok); }
.pl-libre input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pl-libre span { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 2.4rem; font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-libre:hover { background: #d3e9da; }
.pl-libre:has(input:checked) { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.pl-libre:has(input:focus-visible) { outline: 3px solid var(--anthracite); outline-offset: 1px; }
.pl-legende { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; }
.pl-legende .pl-case { display: inline-block; width: 2.6rem; min-height: 1.5rem; cursor: default; }
.pl-legende .pl-libre span { min-height: 1.5rem; }
.pl-choisi { position: sticky; bottom: 4.6rem; z-index: 2; background: var(--anthracite); color: #fff; padding: .6rem .8rem; font-weight: 600; margin: .6rem 0 0; }
@media (min-width: 760px) { .pl-choisi { bottom: .5rem; } .pl-case, .pl-libre span { min-height: 2rem; } }
@media (max-width: 420px) {
  .pl-grille { grid-template-columns: 1.7rem repeat(7, minmax(0, 1fr)); gap: 1px; padding: 1px; }
  .pl-heure { font-size: .65rem; padding-right: .1rem; }
  .pl-libre span { font-size: .72rem; letter-spacing: -.02em; }
  .pl-jour { font-size: .62rem; }
}

/* Barre de filtres au-dessus d'une liste */
.filtres { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0 .8rem; align-items: end; margin-bottom: .8rem; padding-bottom: .4rem; border-bottom: 1px solid var(--trait); }
.filtres .actions { margin-bottom: .8rem; }

/* Paiement par Wero */
.carte-wero { border-left: 4px solid var(--rouge); }
.wero-fiche dd { overflow-wrap: anywhere; }
.wero-copiable { font-size: 1.1rem; user-select: all; }

/* Planning sur l'écran de validation d'une demande : le créneau étudié ressort en rouge */
/* décalé à droite : une séance déjà placée à la même heure reste visible dessous */
.gh-bloc.etudie { left: 38%; background: var(--rouge); border-left-color: var(--rouge-fonce); color: #fff; z-index: 3; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--rouge); }
.gh-bloc.etudie > span { display: block; height: 100%; padding: .2rem .35rem; }

/* Livre d'or : messages qui défilent sur la page d'accueil */
.livre-or { margin: 1.5rem 0; }
.lo-piste { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: .5rem; }
.lo-message { flex: 0 0 min(100%, 34rem); scroll-snap-align: start; margin: 0; background: var(--carte); border: 1px solid var(--trait); border-left: 4px solid var(--rouge); padding: 1.1rem 1.2rem; }
.lo-message blockquote { margin: 0 0 .7rem; font-size: 1.05rem; line-height: 1.6; }
.lo-message blockquote::before { content: "« "; color: var(--rouge); font-weight: 700; }
.lo-message blockquote::after { content: " »"; color: var(--rouge); font-weight: 700; }
.lo-message figcaption { font-weight: 600; }
.lo-note { color: var(--rouge); letter-spacing: .1em; margin-bottom: .4rem; }
.lo-note span { color: #cfcfcf; }
.lo-commandes { display: flex; gap: .4rem; justify-content: center; margin: .5rem 0; }
.lo-commandes .btn { min-width: 2.75rem; min-height: 2.5rem; }

/* Posts de la monitrice */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.posts-liste { grid-template-columns: minmax(0, 40rem); justify-content: center; }
.post { background: var(--carte); border: 1px solid var(--trait); display: flex; flex-direction: column; }
.post-media { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; }
.posts-liste .post-media { aspect-ratio: auto; max-height: 80vh; object-fit: contain; }
.post-corps { padding: 1rem 1.1rem; }
.post-corps h3 { margin-top: 0; }
.post-corps > :last-child { margin-bottom: 0; }
.post-apercu { display: block; max-width: 100%; max-height: 16rem; margin-bottom: .6rem; background: #000; }
.reseaux { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }

/* Formule de forfait : le formulaire de modification passe sous la ligne */
.formule-modif { flex-basis: 100%; }
.formule-modif[open] > summary { margin-bottom: .6rem; }
.liste li:has(.formule-modif) { flex-wrap: wrap; }

/* Comptabilité */
.compta-table th, .compta-table td { padding: .45rem .5rem; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; }
.compta-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.compta-table tfoot th { border-top: 2px solid var(--anthracite); border-bottom: 0; font-size: .9rem; color: var(--texte); text-transform: none; letter-spacing: 0; }
.compta-table tr.doux td { color: var(--doux); }
.compta-barres { width: 28%; min-width: 5rem; }
.compta-barres i { display: block; height: .45rem; background: var(--ok); margin-bottom: 2px; }
.compta-barres i.dep { background: var(--rouge); }

/* État de préparation à la facturation électronique, sur une facture */
.fe-etat { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--trait); }
.fe-etat > summary { cursor: pointer; }
.fe-etat ul { margin: .6rem 0; }

/* Logo dans le bandeau d'accueil : centré, au-dessus du nom */
.hero-logo { display: block; margin: 0 auto 1rem; width: clamp(7rem, 15vw, 12rem); height: auto; filter: drop-shadow(0 1px 3px rgba(0,0,0,.65)); }

/* Bandeau d'accueil avec logo : peu d'espace au-dessus du logo, la hauteur suit le contenu */
.hero:has(.hero-logo) { padding-top: 1.5rem; }
.hero-video:has(.hero-logo) { min-height: 0; }

/* Texte mis en forme avec l'éditeur */
.riche > :first-child { margin-top: 0; }
.riche > :last-child { margin-bottom: 0; }
.riche ul, .riche ol { padding-left: 1.3rem; margin: 0 0 .8rem; }
.riche h2, .riche h3, .riche h4 { margin: 1rem 0 .4rem; font-size: 1.05rem; }
.riche blockquote { margin: 0 0 .8rem; padding-left: .9rem; border-left: 3px solid var(--trait); color: var(--doux); }
.champ-riche { margin-bottom: .8rem; }
.champ-riche label span { display: block; font-weight: 600; margin-bottom: .25rem; }
.champ-riche textarea { width: 100%; }
.champ-riche .tox-tinymce { border: 1px solid var(--trait); border-radius: 0; }

/* Créneau possible mais avec un temps de trajet court pour la monitrice : signalé, pas interdit */
.pl-serre { background: #fff4dc; border-color: #c98a12; color: #8a5a00; }
.pl-serre:hover { background: #ffe9b8; }
.pl-serre span::after { content: " !"; font-weight: 700; }
.pl-choisi.pl-choisi-alerte { background: #8a5a00; }

/* Séance déplaçable sur le planning */
.grille-h[data-glisser] .gh-bloc[data-seance] { cursor: grab; touch-action: pan-y; }
.grille-h[data-glisser] .gh-bloc[data-seance].en-cours { cursor: grabbing; opacity: .88; }
.gh-etire { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; max-height: 30%; z-index: 3; cursor: ns-resize; background: linear-gradient(to bottom, transparent, rgba(0,0,0,.28)); }
.gh-etire.haut { bottom: auto; top: 0; height: 8px; max-height: 15%; background: none; }
/* poignée bien visible : trois traits clairs au milieu du bord */
.gh-etire:not(.haut)::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 1.8rem; margin-left: -.9rem; height: 5px;
  border-top: 2px solid rgba(255,255,255,.8); border-bottom: 2px solid rgba(255,255,255,.8); }
.gh-etire:hover { background: rgba(255,255,255,.3); }
.gh-etire:hover::after, .gh-bloc.en-cours .gh-etire::after { border-color: #fff; }
/* Demande pas encore validée : jaune hachuré, bord pointillé, point d'interrogation — jamais confondue avec une séance */
.gh-bloc.demande { left: 30%; z-index: 4; background: repeating-linear-gradient(135deg, #fff6d6 0 7px, #ffe38f 7px 14px); color: #4d3300;
  border: 2px dashed #a86400; border-left: 2px dashed #a86400; }
.gh-bloc.demande > a:hover { background: #ffd65c; color: #2e1f00; }
.marque-demande { display: inline-block; min-width: 1.15em; height: 1.15em; line-height: 1.15em; text-align: center; border-radius: 50%;
  background: #a86400; color: #fff; font-weight: 700; font-size: .85em; }
.legende-demande { background: repeating-linear-gradient(135deg, #fff6d6 0 4px, #ffe38f 4px 8px); border: 1px dashed #a86400; }
.flash-demande { background: #fff6d6; color: #4d3300; border-left-color: #a86400; }
.pastille-demande { background: #ffe38f; color: #4d3300; border: 1px dashed #a86400; }
.carte-demande { background: repeating-linear-gradient(135deg, #fffaf0 0 10px, #fff3cf 10px 20px); border: 2px dashed #a86400; }

/* Séances simultanées : côte à côte, avec un liseré qui signale le chevauchement */
.gh-bloc.partage { box-shadow: 0 0 0 2px #ffb000; }

/* Créneau choisi : la séance couvre toute la durée de la prestation */
.pl-libre.pl-debut, .pl-case.pl-suite { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.pl-case.pl-suite { background-image: none; }
.pl-libre.pl-debut:not(.pl-fin) { border-bottom-color: transparent; }
.pl-case.pl-suite:not(.pl-fin) { border-bottom: 0; }
.pl-case.pl-suite span { visibility: hidden; }

/* En-tête du planning : navigation dans le temps, bascule semaine / mois / jour */
.nav-periode { display: inline-flex; gap: .3rem; }
.bascule-vue { display: inline-flex; }
.bascule-vue .btn + .btn { margin-left: -1px; }
.filtres-planning { padding: .6rem 1rem; }
.filtres-planning > summary { cursor: pointer; font-weight: 600; font-size: .85rem; }
.filtres-planning[open] > summary { margin-bottom: .5rem; }
.aide-planning { margin: 0 0 .8rem; }
.aide-planning > summary { cursor: pointer; font-weight: 600; }
.aide-planning p { margin: .3rem 0 0; }
/* Sur écran tactile, le doigt fait défiler la grille dans tous les sens, même posé sur une séance */
@media (pointer: coarse) { .grille-h[data-glisser] .gh-bloc[data-seance], .grille-h[data-glisser] .gh-col { touch-action: auto; } }

@media (max-width: 639px) {
  .tete-planning { gap: .5rem; margin-bottom: .6rem; }
  .tete-planning h1 { font-size: 1.4rem; width: 100%; }
  .tete-planning .actions { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: .4rem; }
  .tete-planning .nav-periode .btn:nth-child(2) { flex: 1; }
  .tete-planning .bascule-vue { grid-column: 1 / -1; grid-row: 2; }
  .tete-planning .bascule-vue .btn { flex: 1; }
  .filtres-planning { padding: .5rem .8rem; margin-bottom: .6rem; }
  .filtres-planning form { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
  .filtres-planning .champ { margin: 0; }
  .mois { gap: 2px; }
  .mois .case-jour { min-height: 3.2rem; padding: .2rem; }
  .mois .pastille { display: block; width: max-content; margin-top: .15rem; }

  /* Grille de la semaine : trois jours à l'écran, défilement jour par jour, noms des jours et heures toujours visibles */
  .gh-defile { container-type: inline-size; max-height: calc(100dvh - 6.5rem); overflow: auto; overscroll-behavior: contain;
    scroll-snap-type: x mandatory; scroll-padding-left: 2.4rem; margin-left: -1rem; margin-right: -1rem; border-left: 0; border-right: 0; }
  .grille-h { --ligne: 3.2rem; grid-template-columns: 2.4rem repeat(var(--jours), minmax(6.2rem, 1fr));
    grid-template-columns: 2.4rem repeat(var(--jours), calc((100cqw - 2.4rem) / 3)); }
  .gh-col { scroll-snap-align: start; }
  .gh-jour { padding: .45rem .15rem; font-size: .72rem; letter-spacing: .05em; }
  .gh-heures > div { padding: .25rem .25rem 0 0; font-size: .68rem; }
  .gh-bloc { left: 2px; right: 2px; font-size: .68rem; line-height: 1.2; }
  .gh-bloc > a { padding: .15rem .25rem; }
  .gh-fond span { font-size: .58rem; right: .15rem; }
  .gh-case:active { background: rgba(38,38,38,.12); color: var(--gris); }
}
details.flash-demande > summary { cursor: pointer; list-style: none; }
details.flash-demande > summary::-webkit-details-marker { display: none; }
details.flash-demande > summary::after { content: " ▾"; }
details.flash-demande[open] > summary { margin-bottom: .3rem; }
details.flash-demande[open] > summary::after { content: ""; }
@media (max-width: 639px) {
  details.flash-demande { padding: .5rem .8rem; margin-bottom: .6rem; font-size: .9rem; }
  .gh-bloc.demande { left: 45%; }
}
@media (pointer: coarse) { .gh-etire { display: none; } }

/* Comptabilité en partie double */
.compta-table { width: 100%; border-collapse: collapse; }
.compta-table tr.classe th { background: #f3f3f3; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
.compta-table.ecritures tbody.ecriture tr:not(.ecriture-tete) td { border-bottom: 0; padding-top: .15rem; padding-bottom: .15rem; }
.compta-table.ecritures tr.ecriture-tete td { background: #fafafa; border-top: 1px solid var(--trait); }
.compta-table.saisie-lignes select, .compta-table.saisie-lignes input { width: 100%; min-width: 6rem; }
.compta-table.saisie-lignes input.num { text-align: right; min-width: 5.5rem; }
.compta-table [data-equilibre].ok { color: var(--ok); }
.compta-table [data-equilibre].ko { color: var(--ko); }
.plan-comptable td form.actions { flex-wrap: nowrap; }
.plan-comptable td input[type="text"] { width: 100%; min-width: 10rem; }
.plan-comptable td.actions { flex-wrap: nowrap; justify-content: flex-end; }
@media (max-width: 639px) {
  .compta-table.ecritures, .compta-table.saisie-lignes { min-width: 40rem; }
  .compta-table.ecritures td, .compta-table.ecritures th { padding: .35rem .4rem; }
}

/* Budget prévisionnel */
.budget-saisie { min-width: 70rem; }
.budget-saisie input.num { width: 100%; min-width: 4.6rem; text-align: right; padding-left: .3rem; padding-right: .3rem; }
.budget-saisie td, .budget-saisie th { padding: .25rem .2rem; }
.budget-saisie .poste, .budget-suivi tbody td:first-child, .budget-suivi tfoot th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; min-width: 12rem; max-width: 16rem; }
.budget-saisie tr.classe th { position: sticky; left: 0; }
.budget-saisie [data-poste="provision"] .num, .budget-saisie tfoot .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.budget-saisie [data-poste="provision"] { color: var(--doux); }
.budget-suivi { min-width: 46rem; }
.budget-suivi th.groupe { text-align: center; border-bottom: 1px solid var(--trait); }
.budget-mois { min-width: 52rem; }
.compta-table .favorable { color: var(--ok); font-weight: 600; }
.compta-table .defavorable { color: var(--ko); font-weight: 600; }
.compta-table tr.mois-suivi td { background: #fff6d6; }
.compta-barres i.prevu { background: #c9c9c9; }
@media (max-width: 639px) {
  .budget-saisie .poste, .budget-suivi tbody td:first-child, .budget-suivi tfoot th:first-child { min-width: 7.5rem; max-width: 8.5rem; font-size: .72rem; letter-spacing: .02em; }
  .budget-saisie { min-width: 62rem; }
}
.budget-saisie tr.ajout-ligne th { background: #fafafa; text-transform: none; letter-spacing: 0; font-weight: 400; max-width: none; }
.budget-saisie tr.ajout-ligne select { max-width: 22rem; }
.bascule-annees { margin-bottom: .6rem; }
.budget-saisie .poste small.formule { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--doux); font-size: .72rem; }
.budget-regles select { min-width: 12rem; max-width: 100%; }
.budget-regles input.num { width: 6rem; text-align: right; }
.saisie-unite { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }

/* Saisie du budget : chiffres alignés en colonne (cases, montants calculés, totaux) — même police, même retrait à droite */
.budget-saisie td, .budget-saisie th { padding: .25rem .2rem; }
.budget-saisie input.num, .budget-saisie span[data-auto-mois], .budget-saisie td.num, .budget-saisie th.num {
  font: 400 .85rem/1.3 var(--sans); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; letter-spacing: 0; }
.budget-saisie input.num { min-height: 34px; padding: .35rem .45rem; }
.budget-saisie span[data-auto-mois] { display: block; padding: 0 calc(.45rem + 1px); }
.budget-saisie td.num, .budget-saisie th.num { padding-right: calc(.2rem + .45rem + 1px); }
.budget-saisie thead th.num, .budget-saisie tfoot th.num { font-weight: 700; }
.budget-saisie thead th.num { text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; }

/* Séances récurrentes */
.serie-liste li.actuelle { background: #fff6d6; }
.serie-liste { max-height: 22rem; overflow-y: auto; }
.carte-serie { border-left: 4px solid var(--info); }
fieldset.recurrence { margin-top: .8rem; }
.saisie-participants .compta-table.saisie-lignes select { min-width: 12rem; }
.saisie-participants .compta-table.saisie-lignes input.num { min-width: 5rem; text-align: right; }

/* Questionnaires d'évaluation */
.quiz-consigne { background: var(--clair); border-left: 3px solid var(--rouge); padding: .7rem .9rem; }
.quiz-section { margin: 1.6rem 0 .8rem; padding-bottom: .3rem; border-bottom: 2px solid var(--rouge); font-size: 1.15rem; }
.quiz-section:first-child { margin-top: .4rem; }
.quiz-question { border: 0; border-bottom: 1px dashed var(--trait); padding: .4rem 0 1rem; margin: 0 0 1rem; min-width: 0; }
.quiz-question legend { display: flex; gap: .6rem; align-items: flex-start; width: 100%; padding: 0; margin-bottom: .7rem; font-family: var(--sans); letter-spacing: 0; }
.quiz-enonce { flex: 1; }
.quiz-num { flex: none; display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--rouge); color: #fff; font-size: .85rem; }
.quiz-points { flex: none; font-weight: 400; font-size: .8rem; color: var(--doux); white-space: nowrap; margin-top: .2rem; }
.quiz-image { display: block; max-width: 100%; height: auto; margin: .2rem auto .9rem; border: 1px solid var(--trait); background: #fff; }
.quiz-choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 1rem; }
.quiz-vf { grid-template-columns: repeat(2, max-content); gap: 0 2rem; }
.quiz-option { padding: .3rem .5rem; margin-bottom: .2rem; color: var(--doux); }
.quiz-option.quiz-bonne { color: var(--ok); background: var(--ok-fond); font-weight: 600; }
.quiz-option.quiz-erreur { color: var(--ko); background: var(--ko-fond); text-decoration: line-through; }
.quiz-assoc-ligne { display: grid; grid-template-columns: minmax(8rem, 1fr) 2fr; gap: .4rem .8rem; align-items: center; margin-bottom: .5rem; }
.quiz-assoc-gauche { font-weight: 600; }
.quiz-champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .5rem 1rem; }
.quiz-champ { display: flex; gap: .5rem; align-items: center; margin: 0; }
.quiz-champ input { min-height: 38px; padding: .4rem .55rem; }
.quiz-repere { flex: none; min-width: 1.9rem; height: 1.9rem; display: inline-grid; place-items: center; border: 1px solid var(--gris); border-radius: 50%; font-size: .8rem; font-weight: 600; padding: 0 .3rem; }
.quiz-juste { color: var(--ok); font-weight: 700; }
.quiz-faux { color: var(--ko); }
s.quiz-faux { text-decoration-thickness: 1px; }
.quiz-attendu { color: var(--ok); }
.quiz-redige { background: var(--clair); padding: .6rem .8rem; margin-bottom: .5rem; }
.quiz-modele, .quiz-explication { font-size: .92rem; }
.quiz-explication { color: var(--doux); font-style: italic; margin-top: .5rem; }
.quiz-noter { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center; margin-top: .8rem; padding: .5rem .7rem; background: var(--info-fond); font-size: .9rem; }
.quiz-noter input { width: 5.5rem; min-height: 36px; padding: .3rem .5rem; text-align: right; }
.quiz-note { font-family: var(--titres); font-size: 2rem; font-weight: 600; margin: 0 0 .3rem; }
.quiz-appreciation { border-left: 3px solid var(--rouge); padding-left: .8rem; }
.quiz-envoi { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; position: sticky; bottom: 0; z-index: 2; }
.quiz-destinataires { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 1rem; margin: .6rem 0; }
.quiz-aide { background: var(--info-fond); padding: .6rem .8rem; margin-bottom: .8rem; font-size: .9rem; }
.quiz-aide code { display: block; margin-top: .3rem; font-size: .85rem; }
.quiz-liste-section { font-weight: 600; color: var(--rouge); text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; }
@media (max-width: 640px) {
  .quiz-assoc-ligne { grid-template-columns: 1fr; }
  .quiz-envoi .btn { flex: 1 1 100%; }
}
@media print {
  .quiz-envoi, .quiz-noter { display: none; }
}
