/* ============================================================
 *  Repair Café du Sénonais — CHARTE GRAPHIQUE COMMUNE (chantier 2, B1)
 *  Style « journal associatif » : fond blanc, filets fins, titres Georgia,
 *  texte 18 px, bleu #2d348c + corail #f46e53 en aplats, coins ≤ 4 px.
 *
 *  Une seule feuille pour le site public ET l'admin.
 *  Chargée APRÈS assets/admin.css (admin) : ses règles gagnent.
 *  Mode d'emploi : /home/claude/rc/_realisation2/charte.md
 *
 *  INTERDITS (décision 19) : border-radius > 4 px, dégradé, ombre portée
 *  (sauf contour de focus), emoji en guise d'icône, flou, animation > 300 ms.
 *  Compatible Safari 15 : pas de sélecteur « has », pas de dvh, pas de container query,
 *  pas d'imbrication CSS.
 * ============================================================ */

/* ───────── 1. Jetons ───────── */
:root {
  --bleu: #2d348c;          /* titres, liens, bouton principal (9,4:1 sur blanc) */
  --bleu-fonce: #20256a;    /* survol */
  --bleu-pale: #e6e8f4;     /* fond doux bleuté (étiquette « en cours », onglet survolé) */
  --corail: #f46e53;        /* aplats d'accent — jamais pour du texte courant */
  --corail-fonce: #b83a1e;  /* corail lisible en texte (6,1:1) */
  --violet-logo: #9300ff;   /* réservé à l'image du logo : aucune règle ne l'utilise */
  --encre: #1f2430;         /* texte courant */
  --gris-texte: #5b6170;    /* texte secondaire (5,9:1 sur blanc) */
  --filet: #d9dce3;         /* filets fins 1 px */
  --filet-fort: #1f2430;    /* filet de rubrique 2 px */
  --bord-champ: #6b7280;    /* bord des champs de formulaire 1 px */
  --fond: #ffffff;
  --fond-doux: #f4f5f7;     /* en-têtes de tableau, encarts neutres */
  --ok: #1b7f4b;            --ok-pale: #e4f3ea;
  --ok-sur-pale: #1a7546;   /* ERG-16 : vert du texte posé sur --ok-pale (4,98:1 ; --ok n'y faisait que 4,38:1). --ok reste inchangé : la caisse l'emploie (décision 23) */
  --attention: #7a5200;     --attention-pale: #fff3d6;
  --alerte: #b42318;        --alerte-pale: #fbeae8;
  --titre: Georgia, "Source Serif 4", "Liberation Serif", "Times New Roman", serif;
  --texte: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --e1: 8px; --e2: 16px; --e3: 24px; --e4: 32px; --e5: 48px; --e6: 64px;
  --largeur-max: 1180px;
  --rayon: 2px;             /* le seul arrondi autorisé (≤ 4 px) */
  /* Audit du 31/10/2026 (A13-2) : le contour de focus en corail clair donnait 2,92:1 sur fond
     blanc — en dessous du minimum lisible. Le corail foncé de la charte donne 5,32:1, et c'est
     la couleur que le site utilise déjà pour le texte sur fond corail. */
  --focus: 3px solid var(--corail-fonce);

  /* Compatibilité : les anciens jetons d'admin.css / _entete_public.php pointent
     désormais sur la charte, pour que l'existant s'aligne sans réécriture. */
  --bl: var(--bleu); --co: var(--corail); --tx: var(--encre); --gr: var(--gris-texte);
  --gc: var(--filet); --fo: var(--fond); --wh: var(--fond);
  --ok-admin: var(--ok); --wn: var(--attention); --ko: var(--alerte);
  --ra: var(--rayon); --sh: none;
  --violet: var(--bleu); --violet-fonce: var(--bleu-fonce); --violet-pale: var(--bleu-pale);
  --corail-pale: #fdece7; --texte-doux: var(--gris-texte); --ligne: var(--filet);
  --blanc: var(--fond); --ombre: none; --radius: var(--rayon); --max: var(--largeur-max);
}

/* ───────── 2. Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1rem;              /* 18 px — jamais moins de 16 px (.89rem) nulle part */
  line-height: 1.5;
  color: var(--encre);
  background: var(--fond);
}
img { max-width: 100%; height: auto; }
a { color: var(--bleu); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--bleu-fonce); text-decoration-thickness: 2.5px; }
h1, h2, h3, h4 { font-family: var(--titre); color: var(--bleu); font-weight: 700; line-height: 1.15; letter-spacing: -.005em; margin: 0 0 var(--e2); }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
@media (min-width: 900px) { h1 { font-size: 2.4rem; } h2 { font-size: 1.7rem; } }
p { margin: 0 0 var(--e2); }
small, .petit { font-size: .9rem; }   /* 16,2 px : le minimum */
/* D10 : règle UNIQUE pour les exposants (« 1ᵉʳ janvier », « 1ᵉʳ dimanche »). Sans elle, le
   `font-size: smaller` du navigateur les descend à 15 px, sous le minimum de la charte.
   Demandée par le lot comptabilité ; elle sert aussi à nouvelle_date.php. */
sup, sub { font-size: .9rem; line-height: 0; }
sup { vertical-align: super; }
sub { vertical-align: sub; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
:focus-visible { outline: var(--focus); outline-offset: 2px; }
svg.icone, .icone { width: 20px; height: 20px; flex-shrink: 0; vertical-align: -4px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icone-grande { width: 32px; height: 32px; }
main { display: block; }
.wrap, .w { width: 100%; max-width: var(--largeur-max); margin: 0 auto; padding: 0 var(--e2); }
@media (min-width: 900px) { .wrap, .w { padding: 0 var(--e3); } }

/* ───────── 3. Boutons ─────────
   Un bouton = un verbe + (icône au trait facultative). 48 px de haut.
   .btn            → aplat bleu, texte blanc (action courante)
   .btn-contour    → blanc, bordure bleue (action secondaire)
   .btn-corail     → corail, texte encre : UNE SEULE action principale par page
   .btn-neutre     → blanc, bordure grise (annuler, revenir)
   .btn-alerte     → blanc, bordure et texte rouges (supprimer — avec confirmation)
   .btn-grand      → 56 px (tactile iPad, action principale de la caisse)
   .btn-bloc       → pleine largeur */
.btn, .b-p, .b-c, .b-g, .b-d, .btn-principal {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 8px 18px;
  border: 2px solid var(--bleu); border-radius: var(--rayon);
  background: var(--bleu); color: #fff;
  font-family: var(--texte); font-size: 1rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  box-shadow: none; transform: none; white-space: normal;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover, .b-p:hover, .btn-principal:hover { background: var(--bleu-fonce); border-color: var(--bleu-fonce); color: #fff; text-decoration: none; transform: none; }
.btn svg, .b-p svg, .b-g svg, .b-c svg, .b-d svg { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-contour, .b-g, .btn.b-g { background: #fff; color: var(--bleu); border-color: var(--bleu); }
.btn-contour:hover, .b-g:hover, .btn.b-g:hover { background: var(--bleu-pale); color: var(--bleu-fonce); border-color: var(--bleu-fonce); }
.btn-corail, .b-c, .btn.b-c { background: var(--corail); border-color: var(--corail); color: var(--encre); }
.btn-corail:hover, .b-c:hover, .btn.b-c:hover { background: #f6826b; border-color: #f6826b; color: var(--encre); }   /* ERG-16 : survol plus clair (6,15:1 avec l'encre ; #e25a3f ne faisait que 4,26:1) */
.btn-neutre { background: #fff; color: var(--encre); border-color: var(--bord-champ); }
.btn-neutre:hover { background: var(--fond-doux); color: var(--encre); border-color: var(--encre); }
.btn-alerte, .b-d, .btn.b-d { background: #fff; color: var(--alerte); border-color: var(--alerte); }
.btn-alerte:hover, .b-d:hover, .btn.b-d:hover { background: var(--alerte-pale); color: var(--alerte); border-color: var(--alerte); }
.btn-grand { min-height: 56px; padding: 10px 24px; font-size: 1.1rem; }
.btn-grand svg { width: 24px; height: 24px; }
.btn-bloc { width: 100%; }
.btn[disabled], .btn.inactif { opacity: .5; cursor: not-allowed; }
.btn-lien { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 0; background: none; border: 0; color: var(--bleu); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-lien:hover { color: var(--bleu-fonce); }
.boutons, .fa { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-start; margin-top: var(--e2); }
@media (max-width: 600px) { .boutons .btn, .fa .btn { width: 100%; } }

/* ───────── 4. Formulaires ─────────
   <div class="champ"> label (gras) + .aide (phrase, gris) + input 48 px */
.champ { margin-bottom: var(--e3); }
.champ label, .champ .etiquette-champ { display: block; font-weight: 700; color: var(--encre); margin-bottom: 4px; }
/* Case à cocher dont le libellé doit rester SUR LA MÊME LIGNE que la case (bloc-notes « C'est fait »,
   et toute case du même genre) : échappe au display:block ci-dessus, qui fait chevaucher l'étiquette
   et le titre. Cible ≥ 44 px conservée. (Mise à disposition du lot bloc-notes — D15.) */
.case-ligne, .champ label.case-ligne, .case-fait, .champ label.case-fait {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 0;
}
.case-ligne input[type="checkbox"], .case-fait input[type="checkbox"] { flex-shrink: 0; }
.champ .aide { display: block; color: var(--gris-texte); margin-bottom: 6px; }
.champ .obligatoire { font-weight: 400; color: var(--gris-texte); }
.champ input[type=text], .champ input[type=email], .champ input[type=tel], .champ input[type=date],
.champ input[type=number], .champ input[type=search], .champ input[type=password], .champ input[type=url],
.champ input[type=time], .champ select, .champ textarea, .entree,
.fv input, .fv select, .fv textarea {
  display: block; width: 100%; min-height: 48px; padding: 8px 14px;
  border: 1px solid var(--bord-champ); border-radius: var(--rayon);
  background: #fff; color: var(--encre); font: inherit; font-size: 1rem; line-height: 1.4;
  box-shadow: none;
}
.champ textarea, .fv textarea { min-height: 120px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus, .entree:focus,
.fv input:focus, .fv select:focus, .fv textarea:focus { outline: var(--focus); outline-offset: 1px; border-color: var(--bleu); }
.champ.erreur input, .champ.erreur select, .champ.erreur textarea { border: 2px solid var(--alerte); }
/* Audit du 31/10/2026 (défaut E8-3) : un bandeau promettait « corrigez seulement ce qui est
   signalé » alors qu'aucune case n'était signalée. Une case refusée se voit maintenant partout
   dans le site, du seul fait qu'elle porte aria-invalid="true" : encadré rouge, fond rosé
   (texte 6,6:1 sur blanc, 5,6:1 sur le rosé), et la phrase qui dit quoi faire juste en dessous.
   Le même repère sert aux lecteurs d'écran : il n'y a rien à poser en plus. */
.champ input[aria-invalid="true"], .champ select[aria-invalid="true"], .champ textarea[aria-invalid="true"],
.fv input[aria-invalid="true"], .fv select[aria-invalid="true"], .fv textarea[aria-invalid="true"],
input[aria-invalid="true"].entree { border: 2px solid var(--alerte); background: var(--alerte-pale); }
.champ .message-champ, .fv .message-champ, .message-champ { color: var(--alerte); font-weight: 700; margin-top: 6px; }
.champ-ligne { display: flex; flex-wrap: wrap; gap: var(--e2); align-items: flex-end; }
.champ-ligne .champ { flex: 1 1 220px; margin-bottom: 0; }
.case { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 6px 0; cursor: pointer; font-weight: 600; }
.case input[type=checkbox], .case input[type=radio] { width: 26px; height: 26px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--bleu); }
.case .aide { display: block; font-weight: 400; color: var(--gris-texte); }
.fv label { font-size: .9rem; }

/* ───────── 5. Étiquettes d'état (5 états) ─────────
   Un mot, fond doux + texte foncé, coins 2 px. */
.etiquette, .etat { display: inline-block; padding: 2px 10px; border: 1px solid transparent; border-radius: var(--rayon); font-family: var(--texte); font-size: .9rem; font-weight: 700; line-height: 1.5; white-space: nowrap; vertical-align: middle; }
.etiquette-a-faire   { background: var(--fond-doux); color: #3f4654; border-color: var(--filet); }
.etiquette-en-cours  { background: var(--bleu-pale); color: var(--bleu); border-color: #c5c9e6; }
.etiquette-pret      { background: var(--ok-pale); color: var(--ok-sur-pale); border-color: #b9dfc8; }
.etiquette-attention { background: var(--attention-pale); color: var(--attention); border-color: #ecd9a6; }
.etiquette-annule    { background: var(--alerte-pale); color: var(--alerte); border-color: #f0c2bc; }
.etiquette-corail    { background: #fdece7; color: var(--corail-fonce); border-color: #f5c5b8; }
/* anciens noms (site public) */
.etat-publiee { background: var(--ok-pale); color: var(--ok-sur-pale); } .etat-prepa { background: var(--attention-pale); color: var(--attention); }
.etat-annulee { background: var(--alerte-pale); color: var(--alerte); } .etat-fablab { color: var(--corail-fonce); } .etat-commune { color: var(--bleu); }

/* ───────── 6. Encarts et messages ───────── */
.encart { border: 1px solid var(--filet); border-left: 4px solid var(--bleu); border-radius: 0; background: #fff; padding: var(--e2) var(--e3); margin-bottom: var(--e3); box-shadow: none; }
.encart-corail { border-left-color: var(--corail); background: var(--fond-doux); }
.encart-doux { background: var(--fond-doux); }
.encart-gris { border-left-color: var(--gris-texte); }
.encart > :last-child { margin-bottom: 0; }
.confirmation { display: flex; align-items: flex-start; gap: 12px; background: var(--ok); color: #fff; padding: 14px 18px; margin-bottom: var(--e3); font-weight: 700; font-size: 1.05rem; border-radius: var(--rayon); }
.confirmation svg { width: 24px; height: 24px; flex-shrink: 0; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.confirmation a { color: #fff; }
.alerte-calme { display: flex; align-items: flex-start; gap: 12px; border: 1px solid #ecd9a6; border-left: 4px solid var(--attention); background: var(--attention-pale); color: var(--encre); padding: 14px 18px; margin-bottom: var(--e3); border-radius: 0; }
.alerte-calme svg { width: 24px; height: 24px; flex-shrink: 0; stroke: var(--attention); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.alerte-calme.rouge { border-color: #f0c2bc; border-left-color: var(--alerte); background: var(--alerte-pale); }
.alerte-calme.rouge svg { stroke: var(--alerte); }
.alerte-calme.bleue { border-color: #c5c9e6; border-left-color: var(--bleu); background: var(--bleu-pale); }
.alerte-calme.bleue svg { stroke: var(--bleu); }
.alerte-calme > :last-child, .confirmation > :last-child { margin-bottom: 0; }
/* anciens noms d'admin.css et du site public → même rendu */
/* Audit du 31/10/2026 (défaut E8-2) : cette ligne est chargée APRÈS admin.css (_helpers.php:3073),
   donc elle décidait seule de la mise en page de TOUS les bandeaux du site — y compris les refus.
   Une boîte en colonnes mettait chaque morceau du message (le texte, le mot en gras, le bout de
   réglage) CÔTE À CÔTE au lieu de les laisser à la suite dans la phrase : sur un téléphone à
   375 px, le bandeau « À demander à l'hébergeur » du Diagnostic mesurait 1 109 px pour une boîte
   de 319, et 795 px de texte étaient coupés sans aucun moyen de les atteindre, dont la phrase qui
   rassure. Un bandeau est une phrase : il s'écrit à la suite, comme un paragraphe.
   L'icône reste alignée sur la première ligne du texte (.alert > svg, ci-dessous) ; .alerte-calme
   garde ses deux colonnes, elle n'a qu'un seul enfant de texte. */
.alert, .message { display: block; padding: 14px 18px; margin-bottom: var(--e3); border: 1px solid var(--filet); border-left: 4px solid var(--bleu); border-radius: 0; font-size: 1rem; font-weight: 600; background: var(--bleu-pale); color: var(--encre); box-shadow: none; }
.alert > svg, .message > svg { vertical-align: -.25em; margin-right: 8px; }
/* Un nom de réglage dans un bandeau se coupe en bout de ligne au lieu d'élargir la boîte. */
.alert code, .message code, .alerte-calme code, .confirmation code, .encart code { overflow-wrap: break-word; word-break: break-word; }
.alert.success, .message-ok { background: var(--ok); color: #fff; border-color: var(--ok); font-weight: 700; }
.alert.warning { background: var(--attention-pale); color: var(--encre); border-color: #ecd9a6; border-left-color: var(--attention); }
.alert.danger, .message-erreur { background: var(--alerte-pale); color: var(--encre); border-color: #f0c2bc; border-left-color: var(--alerte); }
.alert.info, .message-info { background: var(--bleu-pale); color: var(--encre); border-color: #c5c9e6; border-left-color: var(--bleu); }
.alert svg { width: 22px; height: 22px; }

/* ───────── 7. Tableaux ───────── */
.tableau { width: 100%; border-collapse: collapse; font-size: 1rem; background: #fff; }
/* Audit du 31/10/2026 (A13 n°13) : aucun tableau du site n'avait de titre lu à voix haute. Quand
   on en ajoute un, il se lit comme la phrase d'explication d'un titre : à gauche, en gris lisible
   (6,2:1), au-dessus du tableau — et non centré en noir comme le fait le navigateur par défaut. */
caption { caption-side: top; text-align: left; color: var(--gris-texte); padding: 0 0 var(--e1); font-weight: 400; }
.tableau th, .tableau td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--filet); vertical-align: top; }
.tableau thead th { background: var(--fond-doux); font-weight: 700; color: var(--encre); border-bottom: 2px solid var(--filet-fort); }
.tableau td strong, .tableau td b { color: var(--bleu); }
.tableau .nombre, .nombre { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.tableau tr.grise td { color: var(--gris-texte); }
.tableau tfoot td { font-weight: 700; border-top: 2px solid var(--filet-fort); border-bottom: 0; }
.tableau-defilant { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Au téléphone, chaque ligne devient un bloc : <td data-titre="Date"> */
@media (max-width: 699px) {
  .tableau-blocs thead { display: none; }
  .tableau-blocs, .tableau-blocs tbody, .tableau-blocs tr, .tableau-blocs td { display: block; width: 100%; }
  .tableau-blocs tr { border-bottom: 2px solid var(--filet-fort); padding: var(--e1) 0; }
  .tableau-blocs td { border-bottom: 0; padding: 4px 0; }
  .tableau-blocs td[data-titre]::before { content: attr(data-titre) " : "; color: var(--gris-texte); }
  .tableau-blocs td.nombre { text-align: left; }
}

/* ───────── 8. Vignettes (grandes tuiles de l'accueil admin) ─────────
   <div class="vignettes"><a class="vignette" href=…> icône + titre + phrase (+ compteur) </a></div> */
.vignettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--e2); margin: var(--e2) 0 var(--e4); }
.vignette { display: flex; flex-direction: column; gap: 6px; min-height: 150px; padding: 18px 20px; background: #fff; border: 1px solid var(--filet); border-top: 4px solid var(--bleu); border-radius: 0; color: var(--encre); text-decoration: none; box-shadow: none; transition: background-color .15s, border-color .15s; }
.vignette:hover { background: var(--fond-doux); border-color: var(--bleu); text-decoration: none; color: var(--encre); }
.vignette .vignette-icone { width: 32px; height: 32px; stroke: var(--bleu); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vignette .vignette-titre { font-family: var(--titre); font-size: 1.3rem; font-weight: 700; color: var(--bleu); line-height: 1.2; }
.vignette .vignette-phrase { color: var(--gris-texte); margin: 0; }
.vignette .vignette-compteur { margin-top: auto; padding-top: 8px; font-family: var(--texte); font-weight: 700; color: var(--encre); }
.vignette .vignette-compteur b { font-size: 1.5rem; color: var(--bleu); font-variant-numeric: tabular-nums; }
.vignette-corail { border-top-color: var(--corail); }
.vignette-corail .vignette-icone { stroke: var(--corail-fonce); }
.vignette-corail .vignette-titre { color: var(--corail-fonce); }
.vignette-ok { border-top-color: var(--ok); }
.vignette-ok .vignette-icone, .vignette-ok .vignette-titre { stroke: var(--ok); color: var(--ok); }
.vignette-gris { border-top-color: var(--gris-texte); }
.vignette-gris .vignette-icone, .vignette-gris .vignette-titre { stroke: var(--gris-texte); color: var(--gris-texte); }
.vignettes-titre { font-family: var(--texte); font-size: 1rem; font-weight: 700; color: var(--bleu); text-transform: uppercase; letter-spacing: .06em; margin: var(--e3) 0 var(--e1); display: flex; align-items: center; gap: 10px; }
.vignettes-titre::after { content: ""; flex: 1; height: 1px; background: var(--filet); }

/* ───────── 9. Bandeau de page (titre + phrase d'explication) ───────── */
.bandeau-page { border-bottom: 1px solid var(--filet-fort); padding: var(--e2) 0 12px; margin-bottom: var(--e3); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.bandeau-page h1 { margin: 0; font-size: 1.9rem; }
.bandeau-page .bandeau-phrase, .bandeau-page p { flex: 1 1 100%; margin: 0; color: var(--gris-texte); }
.bandeau-page .bandeau-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rubrique-titre { font-family: var(--titre); font-size: 1.5rem; color: var(--bleu); border-bottom: 2px solid var(--filet-fort); padding-bottom: var(--e1); margin: var(--e4) 0 var(--e2); }
.rubrique-titre + .explication, .explication { color: var(--gris-texte); margin: -8px 0 var(--e2); }

/* ───────── 10. Liste de cartes « post-it » ─────────
   <div class="liste-cartes"><article class="carte-postit [carte-corail|carte-ok|carte-attention|carte-gris]">…</article></div> */
.liste-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--e2); margin-bottom: var(--e4); }
.carte-postit { background: #fff; border: 1px solid var(--filet); border-left: 4px solid var(--bleu); border-radius: 0; padding: var(--e2); display: flex; flex-direction: column; gap: 8px; box-shadow: none; }
.carte-postit h3 { margin: 0; font-size: 1.2rem; }
.carte-postit p { margin: 0; color: var(--gris-texte); }
.carte-postit .carte-pied { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--filet); color: var(--gris-texte); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.carte-postit .carte-pied b { color: var(--encre); }
.carte-corail { border-left-color: var(--corail); }
.carte-ok { border-left-color: var(--ok); }
.carte-attention { border-left-color: var(--attention); }
.carte-alerte { border-left-color: var(--alerte); }
.carte-gris { border-left-color: var(--gris-texte); }
.carte-postit.faite { opacity: .6; }
.carte-postit.faite h3 { color: var(--gris-texte); text-decoration: line-through; text-decoration-color: var(--corail); text-decoration-thickness: 3px; }
/* Grosse case à cocher au trait (44 px de zone tactile) */
.coche-grande { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; cursor: pointer; }
.coche-grande input { position: absolute; opacity: 0; width: 44px; height: 44px; margin: 0; cursor: pointer; }
.coche-grande .carre { width: 30px; height: 30px; border: 2px solid var(--encre); border-radius: var(--rayon); background: #fff; display: flex; align-items: center; justify-content: center; transition: background-color .2s, border-color .2s; }
.coche-grande .carre svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .28s; }
.coche-grande input:checked + .carre { background: var(--bleu); border-color: var(--bleu); }
.coche-grande input:checked + .carre svg { stroke-dashoffset: 0; }
.coche-grande input:focus-visible + .carre { outline: var(--focus); outline-offset: 2px; }

/* ───────── 11. Barre d'onglets (onglets = boutons avec un mot) ─────────
   <nav class="barre-onglets"><a class="actif">…</a><a>…</a></nav> */
.barre-onglets { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: var(--e3); border-bottom: 2px solid var(--bleu); }
.barre-onglets a, .barre-onglets button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; margin: 0 -1px -2px 0; border: 1px solid var(--filet); border-bottom: 2px solid var(--bleu); background: #fff; color: var(--bleu); font-family: var(--texte); font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer; border-radius: 0; }
.barre-onglets a:hover, .barre-onglets button:hover { background: var(--bleu-pale); }
.barre-onglets a.actif, .barre-onglets button.actif, .barre-onglets a[aria-current] { background: var(--bleu); color: #fff; border-color: var(--bleu); }
.barre-onglets svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Choix (filtres « N'afficher que… ») : même dessin, sans le filet du bas */
.choix-boutons { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: var(--e2); }
.choix-boutons a, .choix-boutons button, .choix-boutons label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; margin: 0 -1px 0 0; border: 1px solid var(--bleu); background: #fff; color: var(--bleu); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; border-radius: 0; }
.choix-boutons .actif, .choix-boutons a[aria-current] { background: var(--bleu); color: #fff; }

/* ───────── 12. Compteurs en ligne (chiffres de journée) ───────── */
.compteurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); border-top: 2px solid var(--bleu); border-bottom: 1px solid var(--filet); margin-bottom: var(--e3); }
.compteurs > * { padding: 10px 12px; border-right: 1px solid var(--filet); text-decoration: none; color: var(--encre); background: none; border-top: 0; border-bottom: 0; border-left: 0; font: inherit; text-align: left; cursor: pointer; }
.compteurs > :last-child { border-right: 0; }
.compteurs .n { display: block; font-family: var(--titre); font-size: 1.7rem; font-weight: 700; line-height: 1.1; color: var(--bleu); font-variant-numeric: tabular-nums; }
.compteurs .l { display: block; font-size: .9rem; color: var(--gris-texte); }
.compteurs .actif { background: var(--fond-doux); border-bottom: 4px solid var(--bleu); }
.compteurs .corail .n { color: var(--corail-fonce); } .compteurs .ok .n { color: var(--ok); } .compteurs .attention .n { color: var(--attention); } .compteurs .alerte .n { color: var(--alerte); }

/* ───────── 13. En-tête ADMIN unique (admin_bandeau() dans _helpers.php) ───────── */
.bandeau-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 16px; background: #fff; border-bottom: 3px solid var(--bleu); }
/* Le lien du logo (retour à l'accueil) doit se toucher au doigt comme les autres :
   il ne faisait que 34 px de haut, la hauteur de l'image. Mesuré par deux juges le
   22/10/2026 — c'était la dernière cible trop petite du bandeau commun. */
.bandeau-admin .marque { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--bleu); }
.bandeau-admin .marque img { height: 34px; width: auto; display: block; }
.bandeau-admin .marque .senonais { font-family: var(--titre); font-weight: 700; font-size: 1.15rem; line-height: 1; padding-bottom: 3px; white-space: nowrap; }
.bandeau-admin .benevole { color: var(--gris-texte); font-size: .95rem; margin-left: 4px; }
.bandeau-admin .benevole b { color: var(--encre); }
.bandeau-admin nav { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; align-items: center; }
.bandeau-admin nav .btn { min-height: 44px; padding: 6px 12px; }
.bandeau-admin nav .btn svg { width: 18px; height: 18px; }
/* Cloche : un bouton avec le mot « Alertes » et le nombre, un panneau sans ombre */
.cloche { position: relative; }
.cloche .cloche-nombre { display: inline-block; min-width: 26px; padding: 0 6px; background: var(--corail); color: var(--encre); font-weight: 700; font-size: .9rem; line-height: 24px; text-align: center; border-radius: var(--rayon); }
.cloche .cloche-nombre.zero { background: var(--fond-doux); color: var(--gris-texte); }
.cloche-panneau { display: none; position: absolute; right: 0; top: calc(100% + 6px); width: 420px; max-width: calc(100vw - 32px); background: #fff; border: 2px solid var(--bleu); border-radius: 0; z-index: 2000; }
.cloche-panneau.ouvert { display: block; }
.cloche-panneau .cloche-liste { max-height: 420px; overflow-y: auto; }
.cloche-panneau .cloche-titre { padding: 8px 14px; font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gris-texte); background: var(--fond-doux); border-bottom: 1px solid var(--filet); }
.cloche-panneau .cloche-titre.urgent { color: var(--alerte); background: var(--alerte-pale); }
.cloche-panneau .cloche-ligne { display: block; padding: 10px 14px; border-bottom: 1px solid var(--filet); font-size: .95rem; line-height: 1.4; color: var(--encre); text-decoration: none; }
.cloche-panneau a.cloche-ligne:hover { background: var(--fond-doux); }
.cloche-panneau .cloche-ligne b, .cloche-panneau .cloche-ligne strong { color: var(--bleu); }
.cloche-panneau .cloche-ligne .cloche-detail { display: block; color: var(--gris-texte); font-size: .9rem; margin-top: 2px; }
.cloche-panneau .cloche-ligne .cloche-detail.urgent { color: var(--corail-fonce); }
.cloche-panneau .cloche-vide { padding: 16px; color: var(--gris-texte); text-align: center; }
.titre-page-admin { font-size: 1.9rem; margin: var(--e2) 0 var(--e1); }
.titre-page-admin + .explication { margin-top: 0; }
.lecture-seule { border: 1px solid var(--filet); border-left: 4px solid var(--gris-texte); background: var(--fond-doux); padding: 10px 16px; margin-bottom: var(--e2); border-radius: 0; }
@media (max-width: 699px) {
  .bandeau-admin { padding: 8px 12px; }
  .bandeau-admin nav { margin-left: 0; width: 100%; }
  .bandeau-admin .benevole { flex: 1 1 100%; margin: 0; }
}

/* ───────── 14. En-tête et pied PUBLICS (_entete_public.php) ───────── */
.entete-public { background: #fff; border-bottom: 4px solid var(--corail); }
.entete-public .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px var(--e3); padding-top: 12px; padding-bottom: 8px; }
.entete-public .marque { display: inline-flex; align-items: flex-end; gap: 10px; text-decoration: none; color: var(--bleu); }
.entete-public .marque img { height: 40px; width: auto; display: block; }
.entete-public .marque .senonais { font-family: var(--titre); font-weight: 700; font-size: 1.4rem; line-height: 1; padding-bottom: 3px; white-space: nowrap; }
@media (min-width: 900px) { .entete-public .marque img { height: 56px; } .entete-public .marque .senonais { font-size: 1.8rem; padding-bottom: 5px; } }
.entete-public .bouton-menu { display: none; margin-left: auto; }
.entete-public .menu-public { flex: 1 1 100%; }
.entete-public .menu-public ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--e3); border-top: 1px solid var(--filet); }
.entete-public .menu-public a { display: inline-flex; align-items: center; min-height: 48px; padding: 6px 0; font-weight: 700; text-decoration: none; color: var(--bleu); border-bottom: 3px solid transparent; }
.entete-public .menu-public a:hover { border-bottom-color: var(--bleu); }
.entete-public .menu-public a.actif, .entete-public .menu-public a[aria-current] { color: var(--encre); border-bottom-color: var(--corail); }
@media (min-width: 1100px) { .entete-public .menu-public { flex: 1 1 auto; } .entete-public .menu-public ul { border-top: 0; justify-content: flex-end; } }
/* Téléphone (< 700 px) : le menu se replie derrière un bouton « Menu » (avec le mot) */
@media (max-width: 699px) {
  .entete-public .wrap { gap: 8px 12px; }
  .entete-public .marque img { height: 36px; }
  .entete-public .marque .senonais { font-size: 1.25rem; }
  .entete-public .bouton-menu { display: inline-flex; padding: 6px 12px; min-height: 44px; }
  .entete-public .menu-public { display: none; }
  .entete-public.ouvert .menu-public { display: block; }
  .entete-public .menu-public ul { flex-direction: column; gap: 0; }
  .entete-public .menu-public a { width: 100%; min-height: 52px; padding: 8px 4px; border-bottom: 1px solid var(--filet); }
  .entete-public .menu-public a.actif, .entete-public .menu-public a[aria-current] { border-bottom: 1px solid var(--filet); border-left: 4px solid var(--corail); padding-left: 10px; }
  .entete-public .bouton-menu .ferme { display: none; }
  .entete-public.ouvert .bouton-menu .ouvre { display: none; }
  .entete-public.ouvert .bouton-menu .ferme { display: inline; }
}
/* D8 : pied de page compact — DEUX blocs (coordonnées / liens), comme la maquette validée.
   À partir de 1024 px chaque bloc tient sur une rangée : 2 lignes visuelles, moins de 120 px.
   En dessous, les deux blocs coulent dans la même rangée pour que le pied tienne en 3 lignes
   sur l'iPad en portrait. Tous les textes d'une rangée partagent le même haut, donc le compte
   de « lignes visuelles » du test 6.3 est exact. Les points médians sont posés en CSS, HORS
   des liens, pour ne pas souligner le séparateur. */
.pied-public { border-top: 2px solid var(--filet-fort); margin-top: var(--e4); padding: 10px 0; font-size: .9rem; color: var(--gris-texte); }
.pied-public .wrap { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: center; }
.pied-public .pied-ligne,
.pied-public .pied-liens { flex: 1 1 100%; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.pied-public .pied-ligne > *,
.pied-public .pied-liens > li { display: inline-flex; align-items: center; min-height: 44px; }
/* La zone qu'on touche, c'est le lien — pas la puce qui le contient : sans cette règle,
   la hauteur de 44 px du « li » ne sert à rien au doigt. (22/10/2026) */
.pied-public .pied-liens > li > a { display: inline-flex; align-items: center; min-height: 44px; }
.pied-public .pied-ligne > strong { color: var(--encre); font-weight: 600; }
/* Séparateur APRÈS chaque élément (jamais ::before) : quand le pied se replie, aucune rangée
   ne commence par un point médian orphelin. */
.pied-public .pied-ligne > *:not(:last-child)::after,
.pied-public .pied-liens > li:not(:last-child)::after { content: "·"; margin-left: 8px; color: var(--filet-fort); font-weight: 700; }
.pied-public .pied-copy { color: var(--gris-texte); }
.pied-public a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.pied-public svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
@media (max-width: 1023px) {
  /* Les enfants des deux blocs deviennent les éléments de la même rangée : le pied se remplit
     au mieux au lieu de laisser une demi-ligne vide (display:contents — Safari 11.1+). */
  .pied-public .pied-ligne,
  .pied-public .pied-liens { display: contents; }
  .pied-public .pied-ligne > *:last-child::after { content: "·"; margin-left: 8px; color: var(--filet-fort); font-weight: 700; }
}

/* ───────── 15. Utilitaires ───────── */
.sans { font-family: var(--texte); }
.serif { font-family: var(--titre); }
.gris { color: var(--gris-texte); }
.bleu { color: var(--bleu); }
.corail-texte { color: var(--corail-fonce); }
.ok-texte { color: var(--ok); }
.alerte-texte { color: var(--alerte); }
.gras { font-weight: 700; }
.centre { text-align: center; }
.droite { text-align: right; }
.masque { display: none !important; }
.visually-hidden, .lecteur-ecran { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ligne { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ligne-espace { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.colonnes-2 { display: grid; grid-template-columns: 1fr; gap: var(--e3); }
.colonnes-3 { display: grid; grid-template-columns: 1fr; gap: var(--e3); }
@media (min-width: 700px) { .colonnes-2 { grid-template-columns: 1fr 1fr; } .colonnes-3 { grid-template-columns: 1fr 1fr 1fr; } }
.largeur-lecture { max-width: 38em; }
.filet-haut { border-top: 1px solid var(--filet); padding-top: var(--e2); margin-top: var(--e2); }
.filet-bas { border-bottom: 1px solid var(--filet); padding-bottom: var(--e2); margin-bottom: var(--e2); }
.espace-haut { margin-top: var(--e3); } .espace-bas { margin-bottom: var(--e3); }
.tactile { min-height: 44px; min-width: 44px; }
.grand-nombre { font-family: var(--titre); font-size: 2.2rem; font-weight: 700; color: var(--bleu); line-height: 1.1; font-variant-numeric: tabular-nums; }
.surtitre { font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--corail-fonce); margin-bottom: var(--e1); }
.replie { border: 1px solid var(--filet); padding: var(--e2); margin-bottom: var(--e3); }
.replie > summary { cursor: pointer; font-weight: 700; color: var(--bleu); min-height: 44px; display: flex; align-items: center; gap: 8px; list-style: none; }
.replie > summary::-webkit-details-marker { display: none; }

/* ───────── 16. Feuilles à imprimer (chantier 2, finition) ─────────
   Panneau de salle, feuille de caisse papier, récapitulatif pour la mairie…
   À L'ÉCRAN : une feuille lisible qui ne déborde JAMAIS (tout ≥ 16 px) ;
   À L'IMPRESSION : la page A4 exacte, sans la barre de boutons.
   <div class="barre-impression">… boutons …</div>
   <div class="feuille">… le contenu de la feuille …</div>
   Ajouter « feuille-paysage » pour une feuille A4 couchée (297 mm). */
.barre-impression { background: #fff; border-bottom: 1px solid var(--filet); padding: var(--e2); }
.barre-impression .boutons { margin-top: 0; justify-content: center; }
.barre-impression .explication { margin: var(--e1) 0 0; text-align: center; }
.feuille {
  width: 100%; max-width: 210mm; margin: var(--e3) auto;
  background: #fff; border: 1px solid var(--filet); border-radius: 0; box-shadow: none;
  padding: var(--e2);
}
.feuille-paysage { max-width: 297mm; }
.feuille > :last-child { margin-bottom: 0; }
@media (min-width: 800px) { .feuille { padding: 16mm 14mm; } }
/* Un tableau large (feuille couchée) reste consultable à l'écran sans déborder la page */
.feuille .tableau-defilant { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Neutralisation globale : rien de ce qui est interdit ne doit survivre dans un composant commun */
.pn, .card, .carte, .tile, .pb, .ph, .help-pop, .topnav, .modal, .cp-card, .cp-solde { border-radius: 0; box-shadow: none; }
.ph, .ph.co { background: var(--bleu); background-image: none; }
.ph.co { background: var(--corail); color: var(--encre); }

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Impression : pas de bandeau, pas de cloche, pas de boutons */
@media print {
  .bandeau-admin, .cloche, .entete-public, .pied-public, .topnav, .adm-head, .btn, .boutons, .fa,
  .barre-impression { display: none !important; }
  body { background: #fff; color: #000; }
  a { text-decoration: none; color: #000; }
  /* La feuille redevient la page : plus de cadre, plus de marge, largeur réelle du papier */
  .feuille { width: auto; max-width: none; margin: 0; padding: 0; border: 0; }
}

/* 29/10/2026 : deux champs côte à côte → leurs cases sont toujours à la même hauteur,
   même quand l'aide de l'un tient sur deux lignes et celle de l'autre sur une. */
.deux > .champ { display: flex; flex-direction: column; }
.deux > .champ > input:not([type=checkbox]):not([type=radio]),
.deux > .champ > select,
.deux > .champ > textarea { margin-top: auto; }
