/* Charte graphique de l'application – aucune compilation requise. */
:root {
    --fond: #f4f5f8;
    --surface: #ffffff;
    --surface-2: #f8f9fb;
    --texte: #161a23;
    --discret: #5f6676;
    --bordure: #e3e6ec;
    --accent: #2b3f8c;
    --accent-doux: #e9edf9;
    --accent-texte: #ffffff;
    --succes-fond: #e7f5ec; --succes: #1b6b36;
    --erreur-fond: #fdecea; --erreur: #a3261a;
    --attention-fond: #fff6e5; --attention: #9a5b00;
    --grade-1: #e6efff; --grade-1-texte: #1f4aa8;
    --grade-2: #fff3dc; --grade-2-texte: #8a5a00;
    --grade-3: #f6e8f6; --grade-3-texte: #7d2a7d;
    --ombre: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
    --rayon: 10px;
    --rayon-petit: 7px;
}
@media (prefers-color-scheme: dark) {
    :root {
        --fond: #0f1115; --surface: #171a21; --surface-2: #1c2029; --texte: #e9ebf0; --discret: #9aa1b0; --bordure: #2a2f3a;
        --accent: #8ea6ff; --accent-doux: #1f2740; --accent-texte: #0d1221;
        --succes-fond: #13291c; --succes: #8fd6a6; --erreur-fond: #33171a; --erreur: #f2a59b; --attention-fond: #33270f; --attention: #f3c06b;
        --grade-1: #1b2742; --grade-1-texte: #9fbcff; --grade-2: #3a2e14; --grade-2-texte: #f3c876; --grade-3: #35203a; --grade-3-texte: #e6a8e6;
        --ombre: none;
    }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 15px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.55rem; font-weight: 650; letter-spacing: -.01em; margin: 0; }
h2 { font-size: 1.1rem; font-weight: 650; margin: 1.75rem 0 .75rem; }
.carte h2:first-child { margin-top: 0; }
.conteneur { max-width: 1180px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.contenu { padding-top: 1.75rem; padding-bottom: 4rem; }
.discret { color: var(--discret); font-size: .9rem; }
.icone { flex-shrink: 0; vertical-align: middle; }
code { font-size: .85em; word-break: break-all; background: var(--surface-2); border: 1px solid var(--bordure); border-radius: 5px; padding: .1rem .35rem; }

/* En-tête et navigation */
.entete { background: var(--surface); border-bottom: 1px solid var(--bordure); position: sticky; top: 0; z-index: 10; }
.entete__ligne { display: flex; align-items: center; gap: 1.25rem; min-height: 60px; }
.entete__titre { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--texte); white-space: nowrap; }
.entete__titre:hover { text-decoration: none; }
.entete__logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--accent-texte); }
.nav { display: flex; gap: .15rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav a { display: flex; align-items: center; gap: .45rem; padding: .45rem .7rem; border-radius: var(--rayon-petit); color: var(--discret); font-weight: 500; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); color: var(--texte); text-decoration: none; }
.nav a.actif { background: var(--accent-doux); color: var(--accent); }
.entete__session { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.entete__aide { margin-left: auto; color: var(--accent); }
.entete__session ~ .entete__aide { margin-left: -.75rem; }
.avatar { font-size: .85rem; color: var(--discret); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Titres de page */
.titre-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1rem; margin-bottom: 1.25rem; }
.titre-actions h2 { margin: 0; }
.sous-titre { margin: .35rem 0 0; color: var(--discret); }
.retour { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; margin-bottom: .75rem; color: var(--discret); }

/* Cartes */
.carte { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.25rem 1.4rem; margin-bottom: 1.25rem; }
.carte--etroite { max-width: 420px; margin: 3rem auto; }

/* Alertes */
.alerte { display: flex; gap: .5rem; align-items: flex-start; padding: .75rem 1rem; border-radius: var(--rayon-petit); margin: 0 0 1.25rem; }
.alerte p, .alerte ul { margin: 0; }
.alerte ul { padding-left: 1.1rem; }
.alerte--succes { background: var(--succes-fond); color: var(--succes); }
.alerte--erreur { background: var(--erreur-fond); color: var(--erreur); }

/* Formulaires */
.formulaire { display: grid; gap: 1rem; }
.formulaire label:not(.case), .champ > label { display: grid; gap: .35rem; font-weight: 550; font-size: .92rem; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=date], input[type=datetime-local], input[type=time], input[type=number], input[type=search], select, textarea {
    font: inherit; color: inherit; background: var(--surface); width: 100%;
    padding: .5rem .7rem; border: 1px solid var(--bordure); border-radius: var(--rayon-petit); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-doux); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type=checkbox] { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
.case { display: flex; align-items: center; gap: .5rem; font-weight: normal; }
fieldset { border: 1px solid var(--bordure); border-radius: var(--rayon-petit); display: grid; gap: .45rem; padding: .75rem 1rem; }
legend { font-weight: 600; padding: 0 .35rem; font-size: .92rem; }
.grille-2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.champ { display: grid; gap: .3rem; align-content: start; }
.champ .alerte { margin: 0; }
.ligne-formulaire { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ligne-formulaire input[type=text] { flex: 1; min-width: 180px; width: auto; }
.ligne-formulaire select { width: auto; }
.court { max-width: 6rem; }
.filtres-ligne { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; }
.filtres-ligne label { display: grid; gap: .3rem; font-weight: 550; font-size: .88rem; min-width: 150px; }
.zone-danger { margin-top: 2rem; padding-top: 1rem; border-top: 1px dashed var(--bordure); }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Boutons */
.boutons { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.bouton { display: inline-flex; align-items: center; gap: .45rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
    background: var(--accent); color: var(--accent-texte); border: 1px solid var(--accent); border-radius: var(--rayon-petit); padding: .5rem .95rem; line-height: 1.2; }
.bouton:hover { text-decoration: none; filter: brightness(1.08); }
.bouton--secondaire { background: var(--surface); color: var(--texte); border-color: var(--bordure); }
.bouton--secondaire:hover { background: var(--surface-2); filter: none; }
.bouton--danger { background: var(--surface); color: var(--erreur); border-color: var(--bordure); }
.bouton--danger:hover { background: var(--erreur-fond); filter: none; }
.bouton--lien { background: none; border: 0; padding: 0; color: var(--accent); font-weight: normal; }
.bouton-icone { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; cursor: pointer; flex-shrink: 0;
    background: transparent; color: var(--discret); border: 1px solid transparent; border-radius: var(--rayon-petit); }
.bouton-icone:hover { background: var(--surface-2); border-color: var(--bordure); color: var(--texte); text-decoration: none; }
.bouton-icone--accent { color: var(--accent); }
.bouton-icone--accent:hover { background: var(--accent-doux); color: var(--accent); }
.bouton-icone--danger:hover { background: var(--erreur-fond); color: var(--erreur); border-color: transparent; }
.bouton-icone--plein { background: var(--accent); color: var(--accent-texte); }
.bouton-icone--plein:hover { background: var(--accent); color: var(--accent-texte); filter: brightness(1.08); }

/* Tables */
.outils-liste { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: .6rem; }
.outils-liste__filtre { position: relative; display: flex; align-items: center; flex: 0 1 300px; color: var(--discret); }
.outils-liste__filtre .icone { position: absolute; left: .65rem; pointer-events: none; }
.outils-liste__filtre input { padding-left: 2.1rem; }
.outils-liste__compte { color: var(--discret); font-size: .85rem; margin-right: auto; }
.tableau { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; margin-bottom: 1.25rem; }
.tableau th, .tableau td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--bordure); vertical-align: middle; }
.tableau tbody tr:last-child td { border-bottom: 0; }
.tableau tbody tr:hover { background: var(--surface-2); }
.tableau th { font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--discret); background: var(--surface-2); white-space: nowrap; }
.tableau th .tri { all: unset; display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; }
.tableau th .icone-tri { opacity: .35; }
.tableau th[aria-sort=ascending] .icone-tri, .tableau th[aria-sort=descending] .icone-tri { opacity: 1; color: var(--accent); }
.tableau th[aria-sort=descending] .icone-tri { transform: scaleY(-1); }
.tableau .nowrap, .tableau td.date { white-space: nowrap; }
.tableau input[type=date], .tableau input[type=time], .tableau select { width: auto; }
.tableau td.actions { white-space: nowrap; text-align: right; width: 1%; }
.actions { display: flex; gap: .15rem; justify-content: flex-end; align-items: center; }
td.actions { display: table-cell; }
td.actions > * { display: inline-flex; vertical-align: middle; }
.actions form { display: inline-flex; margin: 0; }
.ligne-vide td { color: var(--discret); text-align: center; padding: 1.5rem; }

.pastille { display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.pastille--grade-1 { background: var(--grade-1); color: var(--grade-1-texte); }
.pastille--grade-2 { background: var(--grade-2); color: var(--grade-2-texte); }
.pastille--grade-3 { background: var(--grade-3); color: var(--grade-3-texte); }
.etat { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; font-size: .9rem; }
.etat--present { color: var(--succes); }
.etat--absent { color: var(--erreur); }
.ma-ligne, .ma-ligne:hover { background: var(--accent-doux) !important; }
.tableau--presences input[type=text] { min-width: 200px; }

/* Indicateurs */
.compteurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.compteurs li { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre); padding: .8rem 1rem; color: var(--discret); font-size: .88rem; }
.compteurs strong { display: block; font-size: 1.5rem; color: var(--texte); line-height: 1.2; }

.fiche { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0; }
.fiche dt { font-weight: 600; color: var(--discret); font-size: .9rem; }
.fiche dd { margin: 0; }
.multiligne { white-space: pre-line; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; color: var(--discret); margin: .5rem 0 1.25rem; }
.meta span { display: inline-flex; align-items: center; gap: .35rem; }

@media (max-width: 760px) {
    .nav a span { display: none; }
    .avatar { display: none; }
    .entete__titre { font-size: 0; gap: 0; }
    .tableau thead { display: none; }
    .tableau, .tableau tbody, .tableau tr, .tableau td { display: block; width: 100%; }
    .tableau tr { border-bottom: 1px solid var(--bordure); padding: .5rem 0; }
    .tableau td { border: 0; padding: .2rem .9rem; }
    .tableau td.actions { text-align: left; width: auto; }
    .fiche { grid-template-columns: 1fr; gap: .1rem; }
    .fiche dd { margin-bottom: .5rem; }
}

/* Agapes */
.formulaire-ligne { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; }
.formulaire-ligne > label:not(.case) { display: grid; gap: .3rem; font-weight: 550; font-size: .88rem; }
.formulaire-ligne > .case { padding-bottom: .55rem; }
.formulaire-ligne > strong { padding-bottom: .55rem; }
.formulaire-ligne .extensible { flex: 1; min-width: 200px; }
.formulaire-ligne select { width: auto; min-width: 180px; }
.agapes h3 { display: flex; align-items: center; gap: .4rem; margin: 0 0 .6rem; font-size: 1rem; }
.agapes .carte { margin-bottom: 0; }
.carte--manque { border-color: var(--attention); background: var(--attention-fond); }
.manque { display: inline-flex; align-items: center; gap: .35rem; color: var(--attention); font-weight: 600; margin: 0; }
.volontaire { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .3rem 0; border-bottom: 1px solid var(--bordure); }
.volontaire:last-child { border-bottom: 0; }
.agapes + form, .agapes ~ form { margin-top: 1rem; }
.compteurs li.compteur--attention { border-color: var(--attention); background: var(--attention-fond); color: var(--attention); }
.compteurs li.compteur--attention strong { color: var(--attention); }
.alerte--attention { background: var(--attention-fond); color: var(--attention); }

/* En-tête : plus large que le contenu, puis libellés masqués quand la place manque. */
.entete .conteneur { max-width: 1400px; }
@media (max-width: 1320px) { .avatar { display: none; } .nav a { padding: .45rem .55rem; } }
@media (max-width: 1180px) { .nav a span { display: none; } }

/* Ordre du jour */
.odj__numero { font-weight: 700; color: var(--accent); width: 3rem; }
.bouton-icone:disabled { opacity: .35; cursor: default; }
.liste-odj { margin: 0 0 1.5rem; padding: .25rem 1.4rem; list-style: none; counter-reset: odj; }
.liste-odj li { counter-increment: odj; display: grid; grid-template-columns: 2.2rem 1fr; gap: .2rem .6rem; padding: .7rem 0; border-bottom: 1px solid var(--bordure); }
.liste-odj li:last-child { border-bottom: 0; }
.liste-odj li::before { content: counter(odj); grid-row: span 2; font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.liste-odj .discret { font-size: .9rem; }
.ligne-formulaire--serree { flex-wrap: nowrap; }

/* Courriels */
.apercu-courriel { align-items: start; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.apercu-courriel .message { white-space: pre-line; background: var(--surface-2); border: 1px solid var(--bordure); border-radius: var(--rayon-petit); padding: .9rem 1rem; overflow-wrap: anywhere; }
.bouton:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.champ-email { flex: 1; min-width: 200px; width: auto; }
details.carte summary { cursor: pointer; }
details.carte .tableau { margin-top: 1rem; }

/* Lien unique : écran du membre connecté */
.bandeau-membre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.bandeau-membre p { margin: .25rem 0 0; }
.liste-simple { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }

/* Import / export de listes */
.import-export summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.import-export__contenu { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1rem; }
.import-export h3 { margin: 0 0 .5rem; }
@media (max-width: 760px) { .import-export__contenu { grid-template-columns: 1fr; } }
.etat--prevu { color: var(--accent); }
.etat--propose { color: var(--attention); }
.suivi-travaux .discret { display: block; }
.suivi-travaux th { white-space: normal; }
/* Sondages de dates */
.defilement-horizontal { overflow-x: auto; }
.tableau-sondage th, .tableau-sondage td { text-align: center; white-space: nowrap; }
.tableau-sondage th:first-child, .tableau-sondage td:first-child { text-align: left; }
.tableau-sondage thead th { text-transform: none; font-size: .85rem; color: var(--texte); }
.tableau-sondage .heure { color: var(--discret); font-weight: 500; }
.tableau-sondage .meilleure { box-shadow: inset 2px 0 0 var(--succes), inset -2px 0 0 var(--succes); }
.tableau-sondage tr.ma-ligne td { background: var(--accent-doux); }
.tableau-sondage tfoot th, .tableau-sondage tfoot td { background: var(--surface-2); }
.etiquette-meilleure { display: inline-block; margin-top: .25rem; font-size: .72rem; color: var(--succes); font-weight: 700; }
.retirer-date { display: inline-block; margin-top: .2rem; }
.dispo { display: inline-block; min-width: 5.5rem; padding: .2rem .55rem; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.dispo--oui { background: var(--succes-fond); color: var(--succes); }
.dispo--si_besoin { background: var(--attention-fond); color: var(--attention); }
.dispo--non { background: var(--erreur-fond); color: var(--erreur); }
.dispo--attente { background: var(--surface-2); color: var(--discret); font-weight: 500; }
.choix-dispo[data-valeur=oui] { background: var(--succes-fond); color: var(--succes); }
.choix-dispo[data-valeur=si_besoin] { background: var(--attention-fond); color: var(--attention); }
.choix-dispo[data-valeur=non] { background: var(--erreur-fond); color: var(--erreur); }
.liste-dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; margin-bottom: .75rem; }
.tableau-sondage tbody td:first-child, .tableau-sondage th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.tableau-sondage thead th:first-child, .tableau-sondage tfoot th { background: var(--surface-2); }
.tableau-sondage tr.ma-ligne td:first-child { background: var(--accent-doux); }
@media (max-width: 760px) {
    /* Le tableau du sondage reste un vrai tableau, à faire défiler horizontalement. */
    .tableau.tableau-sondage { display: table; width: auto; min-width: 100%; }
    .tableau-sondage thead { display: table-header-group; }
    .tableau-sondage tbody { display: table-row-group; }
    .tableau-sondage tfoot { display: table-footer-group; }
    .tableau-sondage tr { display: table-row; padding: 0; }
    .tableau-sondage th, .tableau-sondage td { display: table-cell; width: auto; padding: .45rem .5rem; border-bottom: 1px solid var(--bordure); }
    .tableau-sondage td:first-child, .tableau-sondage th:first-child { white-space: normal; min-width: 7rem; }
    .tableau-sondage td::before { content: none; }
}

/* Délégations */
.cases-domaines { margin: .25rem 0 .25rem 1.75rem; display: grid; gap: .25rem; }
.cases-domaines[hidden] { display: none; }

/* Identité de la loge */
.entete__image { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; background: #fff; }
.identite-logo { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.identite-logo__apercu { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--bordure, #e3e6ec); border-radius: 8px; background: #fff; padding: 4px; }
.grille-haut { align-items: start; }
.liens-delegation { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }

/* Trésorerie */
.nombre, .tableau th.nombre, .tableau td.nombre { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.centre { text-align: center; }
.compteurs li.compteur--succes { border-color: var(--succes); background: var(--succes-fond); color: var(--succes); }
.compteurs li.compteur--succes strong { color: var(--succes); }
.onglets { display: flex; gap: .4rem; }
.table-defilante { overflow-x: auto; }
.tableau-exonerations th.centre { font-size: .72rem; max-width: 7rem; white-space: normal; }
.tresorerie-saisie { margin-bottom: 1.75rem; }
.tresorerie-saisie .carte { margin: 0; }
.tableau tr.ligne-retard td { background: var(--attention-fond); }
.compteurs li a { color: inherit; text-decoration: none; display: block; }

/* Trésorerie : écritures prévisionnelles, rapprochement bancaire, synthèse */
.pastille--prevue { background: var(--surface-2); color: var(--discret); border: 1px dashed var(--bordure); }
.pastille--echue { background: var(--attention-fond); color: var(--attention); }
.tableau tr.ligne-prevue td { font-style: italic; color: var(--discret); }
.tableau tr.ligne-total td { font-weight: 700; background: var(--surface-2); }
.rapprochement input[type=date] { min-width: 9.5rem; }
.rapprochement input.montant { width: 7rem; text-align: right; }
.tableau tr[data-href] { cursor: pointer; }
.tableau tr[data-href]:hover td { background: var(--surface-2); }

/* Aide en ligne */
.aide { display: grid; grid-template-columns: 250px 1fr; gap: 1.25rem; align-items: start; }
.aide__sommaire { position: sticky; top: 76px; font-size: .9rem; max-height: calc(100vh - 96px); overflow-y: auto; }
.aide__sommaire p { margin: 0 0 .4rem; }
.aide__sommaire ul { list-style: none; margin: 0 0 .8rem; padding: 0; }
.aide__sommaire li a { display: block; padding: .2rem .5rem; border-radius: var(--rayon-petit); color: var(--discret); }
.aide__sommaire a.actif { background: var(--accent-doux); color: var(--accent); }
.aide__rubrique { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--discret); margin-top: .6rem !important; }
.aide__texte { max-width: 820px; line-height: 1.6; }
.aide__texte h2 { font-size: 1.1rem; margin-top: 1.5rem; }
.aide__texte li { margin-bottom: .3rem; }
.aide__texte .astuce { background: var(--accent-doux); border-radius: var(--rayon-petit); padding: .6rem .9rem; }
@media (max-width: 760px) { .aide { grid-template-columns: 1fr; } .aide__sommaire { position: static; max-height: none; } }

/* Onglets des pages de paramètres (volets) */
.volets__barre { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid var(--bordure); margin-bottom: 1.25rem; position: sticky; top: 60px; z-index: 5; background: var(--fond); padding-top: .5rem; }
.volets__bouton { background: none; border: 0; border-bottom: 2px solid transparent; padding: .55rem .9rem; margin-bottom: -1px; font: inherit; font-weight: 500; color: var(--discret); cursor: pointer; border-radius: var(--rayon-petit) var(--rayon-petit) 0 0; }
.volets__bouton:hover { color: var(--texte); background: var(--surface-2); }
.volets__bouton.actif { color: var(--accent); border-bottom-color: var(--accent); }
.volet[hidden] { display: none; }
.volet > h2:first-child { margin-top: 0; }

/* Vidéo-codage des convocations importées en masse */
.video-codage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.video-codage__document { position: sticky; top: 76px; }
.video-codage__document iframe { width: 100%; height: calc(100vh - 150px); min-height: 420px; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--surface); }
.video-codage__saisie .tableau input, .video-codage__saisie .tableau select { min-width: 0; width: 100%; }
.video-codage__saisie .tableau input[type=date] { min-width: 9rem; }
.petit { font-size: .8rem; }
@media (max-width: 1000px) { .video-codage { grid-template-columns: 1fr; } .video-codage__document { position: static; } .video-codage__document iframe { height: 70vh; } }
.lignes-codage { display: grid; gap: .75rem; margin-bottom: .75rem; }
.ligne-codage { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem .75rem; border: 1px solid var(--bordure); border-radius: var(--rayon-petit); padding: .6rem .8rem .8rem; margin: 0; }
.ligne-codage legend { padding: 0 .3rem; font-weight: 600; }
.ligne-codage label { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; }
.ligne-codage legend label { flex-direction: row; align-items: center; gap: .4rem; font-size: .9rem; }
.ligne-codage__objet { grid-column: 1 / -1; margin: 0; }
@media (max-width: 560px) { .ligne-codage { grid-template-columns: 1fr; } }
.volet [id] { scroll-margin-top: 125px; }

/* Palette flottante du testeur */
.palette-testeur { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; display: flex; flex-direction: column; gap: .35rem;
    background: var(--surface); border: 2px solid var(--attention); border-radius: var(--rayon); box-shadow: var(--ombre); padding: .6rem .8rem; font-size: .85rem; max-width: 240px; }
.palette-testeur__titre { display: flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--attention); }
.palette-testeur label { display: flex; flex-direction: column; gap: .2rem; color: var(--discret); }
.palette-testeur select { font-size: .9rem; }
@media print { .palette-testeur { display: none; } }
