/* La fiche de relecture, « façon OpenAgenda » (BRIEF-FICHE.md).
   Reprise de la maquette choisie par David (maquettes/fiche/, variante D1) :
   blanc, une seule police (Inter Tight), une seule couleur d'action (le bleu nuit
   depuis B8), coins légèrement arrondis, cartouches colorés sans bordure.
   Trois états de champ, et c'est tout ce que la couleur dit : vert (proposé
   par la machine, a priori bon), orange (à vous), gris (intact).
   Toutes les pages la chargent (style.css est retirée depuis C2, 10 octobre) : la relecture, la connexion,
   l'accueil, les paramètres ; l'Administration y ajoute assets/admin.css. */

:root {
  /* B8 (10 octobre, BRIEF-OCTOBRE.md § 6, maquettes/habillage/avant-apres.html ; obligation 6) : le seul jeu de
     jetons de tout le site — fiche.css est chargée la première sur chaque page, entete.css et admin.css s'en
     servent sans en redéfinir (avant, entete.css les doublait sous --en-). Plus aucun gris d'apple.com. */
  --police-texte: "Inter Tight"; --police-titre: "Inter Tight"; --titre-taille: 1.6rem; --titre-graisse: 700;
  --police: var(--police-texte), -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  /* les neutres, un peu bleutés (C1) ; le texte gris tient 4,5:1 sur le blanc comme sur chaque fond teinté */
  --bg: #fff; --card: #fff; --ink: #171c27; --gris-texte: #39404f; --muted: #5d6578;
  --line: #e3e6ed; --line-forte: #c9cfdb; --seg-bg: #eef1f6; --rem-bg: #f5f6f9;
  /* l'action, le bleu nuit (C1) : le bouton principal, l'endroit où l'on est, les liens d'action ; son survol,
     un cran plus clair ; son fond pâle ; l'anneau d'un champ où l'on écrit */
  --accent: #14213d; --accent-survol: #22345e; --accent-bg: #e9edf5; --lien: #14213d; --anneau: rgba(20,33,61,.15);
  /* les trois états de champ ne bougent pas (vert, orange, gris ; jamais de rouge) : le fond et la pastille
     gardent leur teinte ; un texte écrit dans leur couleur prend le cran plus foncé (4,5:1 sur leur fond) */
  --vert: #0f8f5f; --vert-bg: #e9f9f1; --vert-texte: #0b7a50;
  --orange: #d97706; --orange-bg: #fff4e0; --orange-texte: #b45309;
  /* le survol d'un bouton orange plein (« Oui, refuser », un bouton qui efface : R-518), un cran plus foncé */
  --orange-survol: #9a4708;
  /* la couleur de chaque sorte, neutre — jamais le vert ni l'orange, qui disent les états — : le bleu nuit pour un
     événement, le brun pour un lieu (B8, B3 : l'étiquette du bandeau) ; un bleu pâle pour un outil enfoncé ; la
     version étoffée, à part */
  --evt: #e7eef7; --evt-ink: #2c4a6b; --brun: #6b5428;
  --etoffe-bg: #f3f1fb; --etoffe: #5b4fb8;
  /* la pastille du compte (K1) : bleu nuit pour un administrateur, brune pour un client */
  --avatar: #22345e; --avatar-client: var(--brun);
  /* « Un souci ? » (B7, U2) : son jaune ; le texte jaune foncé un cran plus foncé qu'en B7 (4,5:1 sur le jaune clair) */
  --jaune: #facc15; --jaune-survol: #fbd52e; --jaune-ink: #422006; --jaune-clair: #fef3c7; --jaune-texte: #955a06;
  /* la place de l'onglet « Un souci ? » quand il ne garde que sa main : la fiche la lui laisse */
  --souci-l: 2.6rem;
  /* la place que l'onglet entier prend au bord droit, en bas (« ✋ Un souci ? ») : le pied de page la lui laisse ;
     sous 68rem, l'onglet ne garde que sa main (entete.css) et sa place est --souci-l (B8, 10 octobre) */
  --souci-place: 8.5rem;
  /* la hauteur de l'en-tête collé, sous laquelle se collent les barres (52 px ; au téléphone, 82 px quand l'agenda y a
     sa seconde ligne, T2, entete.css) ; celle de la barre du bas, « Passer » et « C'est bon » sous le pouce (S2, au
     téléphone seulement) — des longueurs de mise en page, pas des couleurs (B8, 10 octobre) */
  --haut-entete: 52px; --barre-bas: 4.25rem;
  /* les coins (R2) : 6 px un bouton, un champ, un champ vert ou orange, une réponse ; 8 px une boîte dans la
     fiche ; 10 px une carte ; 4 px une petite étiquette (« simulé », « bêta », un état). Plus de pilules. */
  --r-btn: 6px; --r-boite: 8px; --r-carte: 10px; --r-etiquette: 4px;
}

/* Le logo d'Amaden (B8, L1, 10 octobre) : le nom seul, en Newsreader 700, bleu nuit ; blanc sur le bleu nuit
   (.sur-nuit). Le même dans l'en-tête, sur l'accueil et à la connexion (logo_html(), inc/util.php) ; seule sa
   taille change d'un endroit à l'autre. Le reste du texte garde Inter Tight. */
.logo-amaden { font-family: "Newsreader", Georgia, "Times New Roman", serif; font-weight: 700; font-style: normal;
  letter-spacing: -.01em; line-height: 1; color: var(--accent); }
.logo-amaden.sur-nuit { color: #fff; }

/* ---------------------------------------------------------- la page entière */
body.relecture * { box-sizing: border-box; }
body.relecture [hidden] { display: none !important; }
body.relecture { margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased;
  font: 15.5px/1.5 var(--police); }
body.relecture a { color: var(--lien); }
body.relecture kbd { font: inherit; font-size: .72em; opacity: .75; margin-left: .45em; font-weight: 500;
  border: 0; background: none; padding: 0; }
body.relecture textarea, body.relecture input, body.relecture button { font: inherit; color: inherit; }
body.relecture .muted { color: var(--muted); }
.sep { color: var(--muted); margin: 0 .35em; }

/* Boutons */
body.relecture .btn { display: inline-flex; align-items: center; gap: .35rem; height: 36px; padding: 0 .95rem;
  border-radius: var(--r-btn); font-weight: 600; font-size: .9rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap; width: auto; }
body.relecture .btn.primaire { background: var(--accent); color: #fff; }
body.relecture .btn.primaire:hover { background: var(--accent-survol); }
body.relecture .btn.primaire kbd { color: rgba(255,255,255,.8); }
body.relecture .btn.secondaire { background: var(--card); color: var(--ink); border-color: var(--line-forte); }
body.relecture .btn.secondaire:hover { background: var(--rem-bg); }
body.relecture button.lien { background: none; border: 0; padding: 0; cursor: pointer; color: var(--lien);
  font-size: inherit; text-decoration: none; width: auto; }
body.relecture button.lien:hover { text-decoration: underline; }

/* L'en-tête du site est dans assets/entete.css (B7, 10 octobre), commun à toutes les pages */

/* Une panne : la phrase sobre du client, la cause en orange pour Temaprod */
.sorties .panne { margin-left: auto; color: var(--orange-texte); font-weight: 600; font-size: .9rem; }
.panne-ligne { margin: .4rem 1.25rem; padding: .5rem .9rem; border-radius: var(--r-boite); background: var(--orange-bg); color: var(--orange-texte); font-size: .9rem; overflow-wrap: anywhere; }
.carte-accueil .panne { margin: .4rem 0 0; color: var(--orange-texte); font-weight: 600; }

/* ------------------------------------------------- les Réglages : un sommaire, des petites pages --
   Quatre cartes, chacune avec son état en une ligne et ses liens ; chaque
   bloc est une petite page à lui, « ← Réglages » en haut, dans la charte de
   la fiche : intitulés petits et gris au-dessus des cases. */
main.reglages { max-width: 50rem; margin: 1.25rem auto 3rem; padding: 0 1rem; }
main.reglages h1 { font-size: 1.6rem; letter-spacing: -.01em; margin: .6rem 0 1rem; }
main.reglages .crumb { margin: 0 0 .4rem; font-size: .9rem; }
main.reglages .crumb a { text-decoration: none; }
.cartes-reglage { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1rem; }
.carte-reglage { border: 1px solid var(--line); border-radius: var(--r-carte); padding: 1.1rem 1.25rem 1rem; background: var(--card);
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 20px rgba(16,24,40,.05); }
.carte-reglage h2 { margin: 0 0 .35rem; font-size: 1.05rem; }
.carte-reglage .etat { margin: 0 0 .7rem; color: var(--gris-texte); font-size: .9rem; line-height: 1.5; }
.carte-reglage .etat.alerte { color: var(--orange-texte); }
.carte-reglage .liens { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.carte-reglage .liens a { text-decoration: none; border: 1px solid var(--line-forte); border-radius: var(--r-btn);
  padding: .3rem .75rem; font-size: .88rem; color: var(--ink); }
.carte-reglage .liens a:hover { border-color: var(--accent); color: var(--accent); }
.bloc-reglage { border-top: 1px solid var(--line); padding: 1.1rem 0 1.2rem; }
.bloc-reglage:first-of-type { border-top: 0; }
.bloc-reglage h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
.bloc-reglage p { line-height: 1.55; max-width: 44rem; }
.bloc-reglage .etiquette { display: block; font-size: .78rem; color: var(--muted); margin: .7rem 0 .2rem; }
.bloc-reglage .etiquette + input, .bloc-reglage .etiquette + select, .bloc-reglage .etiquette + textarea { width: 100%; max-width: 32rem;
  border: 1px solid var(--line-forte); border-radius: var(--r-btn); padding: .5rem .65rem; background: var(--card); }
.bloc-reglage input:focus, .bloc-reglage select:focus, .bloc-reglage textarea:focus { outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--anneau); }
.bloc-reglage .cases { display: flex; flex-direction: column; gap: .35rem; font-size: .95rem; margin: .4rem 0 .8rem; }
.bloc-reglage .cases.en-ligne { flex-direction: row; flex-wrap: wrap; gap: .3rem 1.2rem; }
.bloc-reglage .cases label { display: flex; gap: .45rem; align-items: baseline; cursor: pointer; }
.bloc-reglage .cases label.eteint { color: var(--muted); cursor: default; }
.bloc-reglage .cases input { margin: 0; accent-color: var(--accent); position: relative; top: .1rem; }
.bloc-reglage .boutons { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .9rem; }
/* un bouton qui efface ou retire (Remettre à zéro, Retirer le compte, Retirer la clé, Pas OK) : orange plein, comme
   « Oui, refuser » de la fiche — jamais de rouge ; sa confirmation ne change pas (fin de B8, 10 octobre, R-518) */
body.relecture .btn.danger { background: var(--orange-texte); color: #fff; border-color: var(--orange-texte); }
body.relecture .btn.danger:hover { background: var(--orange-survol); border-color: var(--orange-survol); color: #fff; }
main.reglages .ok { background: var(--vert-bg); color: var(--vert-texte); border-radius: var(--r-boite); padding: .6rem .9rem; margin: .5rem 0 1rem; }
main.reglages .err { background: var(--orange-bg); color: var(--orange-texte); border-radius: var(--r-boite); padding: .6rem .9rem; margin: .5rem 0 1rem; }
main.reglages code { font-size: .9em; background: var(--rem-bg); padding: .1rem .35rem; border-radius: var(--r-etiquette); }
main.reglages table { width: 100%; border-collapse: collapse; font-size: .92rem; }
main.reglages th, main.reglages td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
main.reglages th { font-weight: 600; color: var(--muted); font-size: .8rem; }
main.reglages tr.retire td { color: var(--muted); }
main.reglages form.couple { border-top: 1px dashed var(--line); padding: .6rem 0 .2rem; }
main.reglages form.couple:first-of-type { border-top: 0; }
main.reglages form.couple p { margin: 0 0 .3rem; }
main.reglages form.couple .cases { margin: .2rem 0 .3rem; }
main.reglages details.choix-compte { font-size: .88rem; margin: .2rem 0 0; }
main.reglages details.choix-compte summary { cursor: pointer; color: var(--lien); }
main.reglages details.choix-compte ul { margin: .4rem 0 0; padding-left: 1.2rem; }
main.reglages .mdp { font-size: 1.3rem; font-weight: 600; letter-spacing: .04em; background: var(--vert-bg); color: var(--vert-texte);
  border-radius: var(--r-boite); padding: .6rem .9rem; display: inline-block; margin: .3rem 0; user-select: all; }

/* La barre collée en haut, sous l'en-tête : les sorties (la barre de remarque a disparu le 8 octobre) */
.barre { position: sticky; z-index: 10; display: flex; align-items: center; gap: .9rem; padding: .5rem 1.25rem; }
.barre.sorties { top: var(--haut-entete); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(12px); background: rgba(255,255,255,.88); }
/* ce qu'on fait venir à l'écran se pose sous l'en-tête et la barre collés (revue du 10 octobre) : une valeur
   d'avance, que relecture.js remplace par leur hauteur mesurée */
html:has(.barre.sorties) { scroll-padding-top: calc(var(--haut-entete) + 3.6rem); }

.sorties form.precedente { margin: 0; }
/* « ← Fiche précédente » (B8, A, 10 octobre ; R-515) : inchangée, seulement habillée — un lien d'action, en bleu nuit,
   le titre de la fiche au survol */
.sorties .precedente button { color: var(--lien); font-size: .85rem; font-weight: 500; display: inline-flex; align-items: center; gap: .3rem;
  height: 32px; padding: 0 .6rem; border-radius: var(--r-btn); background: none; border: 0; cursor: pointer; }
.sorties .precedente button:hover { background: var(--accent-bg); color: var(--accent); }
.sorties .avancement { color: var(--muted); font-size: .82rem; display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; }
.jauge { display: inline-block; width: 7rem; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.jauge i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.sorties .densite { margin-left: auto; display: inline-flex; background: var(--seg-bg); border-radius: var(--r-btn);
  padding: 3px; font-size: .84rem; }
.sorties .densite a { text-decoration: none; color: var(--muted); padding: .25rem .7rem; border-radius: calc(var(--r-btn) - 3px); font-weight: 500;
  white-space: nowrap; } /* « Tout voir » jamais sur deux lignes, à aucune largeur (revue de B8, 10 octobre : à 320 et à 768 px, il se cassait) */
.sorties .densite a.on { color: var(--ink); background: var(--card); box-shadow: 0 1px 2px rgba(16,24,40,.12);
  font-weight: 600; pointer-events: none; }

/* « ← Précédente » au téléphone, « ← Fiche précédente » ailleurs (le même bouton, deux longueurs de mot) */
.sorties .precedente .court { display: none; }
/* « Passer » et « C'est bon » : une boîte qui s'efface hors du téléphone (au téléphone, la barre du bas) */
.sorties .boutons { display: contents; }

/* Entre le téléphone et l'ordinateur (44 à 56rem : un téléphone couché, une petite tablette ; revue de B8, 10 octobre) :
   avec « ← Fiche précédente », la barre ne tenait plus — à 740 px, « C'est bon » sortait de l'écran. Elle prend le mot
   court du téléphone, « ← Précédente », et la jauge se tait ; « Fiche 13 sur 37 » reste (R-517). */
@media (min-width: 44.01rem) and (max-width: 56rem) {
  .sorties .precedente .long, .sorties .jauge { display: none; }
  .sorties .precedente .court { display: inline; }
  .barre { gap: .6rem; }
}

/* Au téléphone (B8, S2 de maquettes/habillage/telephone.html, 10 octobre) : « Passer » et « C'est bon » descendent sous
   le pouce, dans une barre collée au bas de l'écran ; en haut, sous l'en-tête, il ne reste qu'une fine ligne —
   « ← Précédente », « Tout voir | L'essentiel », « Fiche 13 sur 37 ». Les boutons restent ceux de la barre (le même
   HTML, le même ordre au clavier, Ctrl+Entrée inchangé) : la feuille seule les pose en bas. Le flou de la barre collée
   s'en va, sans quoi elle serait la boîte de ce qui est fixé en elle. Le bas de la page leur laisse leur place (le lien
   de refus et le pied de page au-dessus de la barre), « Un souci ? » remonte au-dessus d'elle (entete.css). */
@media (max-width: 44rem) {
  .barre { padding: .15rem .75rem; gap: .35rem; }
  .barre.sorties { backdrop-filter: none; background: var(--card); min-height: 2.2rem; font-size: .78rem; }
  .sorties .precedente .long, .sorties .jauge { display: none; }
  .sorties .precedente .court { display: inline; }
  .sorties .precedente button { height: 28px; padding: 0 .35rem; margin-left: -.35rem; font-size: .78rem; }
  .sorties .densite { font-size: .74rem; padding: 2px; order: 1; }
  .sorties .densite a { padding: .1rem .45rem; }
  .sorties .avancement { order: 2; margin-left: .35rem; font-size: .76rem; }
}
/* le plus étroit des téléphones (320 px, un iPhone en « Zoom » d'affichage) : la ligne du haut se resserre encore, pour
   tenir sans déborder (revue de B8, 10 octobre) */
@media (max-width: 22rem) {
  .barre { padding: .15rem .4rem; gap: .2rem; }
  .sorties .precedente button { position: relative; padding: 0 .4rem; margin-left: -.2rem; font-size: .95rem; }
  /* « ← » seul : le mot reste dit au lecteur d'écran, et le titre de la fiche au survol (fin de B8 : la ligne débordait
     de 12 px sur la machine de la mise en ligne avec un compteur à quatre chiffres) */
  .sorties .precedente .court { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sorties .densite { font-size: .72rem; }
  .sorties .densite a { padding: .1rem .3rem; }
  /* (fin de B8 : « Fiche 3 sur 55 », un nombre à deux chiffres, débordait de 5 px sur une autre machine) */
  .sorties .avancement { margin-left: .15rem; font-size: .72rem; }
}
/* La barre du bas, seulement au téléphone tenu droit (revue de B8, 10 octobre ; R-517) : couché (moins de 32rem de
   haut, 667 × 375, 568 × 320), l'en-tête, la ligne du haut et la barre du bas prenaient plus de la moitié de l'écran et
   « Un souci ? » n'y montrait plus ses quatre choix ; les deux boutons restent alors dans la ligne du haut, à droite. */
@media (max-width: 44rem) and (min-height: 32rem) {
  .sorties .boutons { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: 1fr 1.6fr;
    gap: .5rem; align-items: center; height: calc(var(--barre-bas) + env(safe-area-inset-bottom, 0px)); box-sizing: border-box;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom, 0px)); background: var(--card); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 12px rgba(20,33,61,.06); font-size: .95rem; }
  .sorties .boutons .btn { width: 100%; height: 44px; margin: 0; justify-content: center; }
  .sorties .boutons .panne { grid-column: 1 / -1; margin: 0; text-align: center; }
  body.relecture:has(.sorties .boutons) { padding-bottom: calc(var(--barre-bas) + env(safe-area-inset-bottom, 0px)); }
  html:has(.sorties .boutons) { scroll-padding-bottom: calc(var(--barre-bas) + .5rem); }
}
@media (max-width: 44rem) and (max-height: 31.99rem) {
  .barre.sorties { flex-wrap: wrap; }
  .sorties .boutons { order: 3; margin-left: .4rem; display: inline-flex; gap: .35rem; align-items: center; }
  .sorties .boutons .btn { height: 30px; padding: 0 .75rem; font-size: .82rem; }
  .sorties .boutons kbd { display: none; }
}

/* --------------------------------------------------------------- la fiche */
main.fiche { max-width: 50rem; margin: 1.25rem auto 3rem; padding: .5rem 0 1.5rem; }
/* un événement lu seulement, ouvert depuis la page d'un lieu (evenement.php, T5, 12 octobre) : la ligne qui le dit */
.evenement-lu { max-width: 50rem; margin: 1rem auto -.5rem; padding: 0 1.25rem; color: var(--muted); font-size: .85rem; }

/* Le bandeau en tête de la feuille (B8, B3, maquettes/habillage/choix-3.html, 10 octobre ; il reprend le bandeau
   mince de B1.1 et le bloc gris des repères de B1.5) : une boîte blanche cerclée d'un filet ; à gauche l'étiquette
   pleine, « FICHE ÉVÉNEMENT » bleu nuit, « FICHE LIEU » brune (R-513, changé par David le 12 octobre : plus de petites
   étiquettes grises à côté) ; à côté, une ligne chacun, où et quand avec leur icône ; « Saisie par » dessous, hors de
   la boîte. Sur un téléphone, l'étiquette passe au-dessus. */
.fiche .bandeau { margin: .3rem 1.25rem .9rem; }
.bandeau-boite { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .3rem .8rem; align-items: start;
  padding: .55rem .8rem; border: 1px solid var(--line-forte); border-radius: var(--r-btn); background: var(--card); font-size: .88rem; }
.bandeau .sorte { padding: .2rem .5rem; border-radius: var(--r-etiquette); background: var(--accent); color: #fff; font-size: .72rem;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.35; white-space: nowrap; margin-top: .1rem; }
.bandeau.lieu .sorte { background: var(--brun); }
/* l'icône de la sorte devant son mot, en blanc (revue de B8, 10 octobre ; B3 de maquettes/habillage/choix-2.html et
   choix-3.html) : un agenda devant « FICHE ÉVÉNEMENT », un repère de carte devant « FICHE LIEU » — les mêmes dessins que les
   repères (FICHE_ICONES), posés par la feuille : le mot de l'étiquette ne change pas */
.bandeau .sorte { display: inline-flex; align-items: center; gap: .35rem; }
.bandeau .sorte::before { content: ""; flex: none; width: 12px; height: 12px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7'%3E%3Crect x='2.5' y='3.5' width='11' height='10' rx='1.5'/%3E%3Cpath d='M2.5 6.5h11M5.5 2v3M10.5 2v3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7'%3E%3Crect x='2.5' y='3.5' width='11' height='10' rx='1.5'/%3E%3Cpath d='M2.5 6.5h11M5.5 2v3M10.5 2v3'/%3E%3C/svg%3E") center / contain no-repeat; }
.bandeau.lieu .sorte::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7'%3E%3Cpath d='M8 14s4.5-4.2 4.5-7.5a4.5 4.5 0 0 0-9 0C3.5 9.8 8 14 8 14z'/%3E%3Ccircle cx='8' cy='6.5' r='1.6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7'%3E%3Cpath d='M8 14s4.5-4.2 4.5-7.5a4.5 4.5 0 0 0-9 0C3.5 9.8 8 14 8 14z'/%3E%3Ccircle cx='8' cy='6.5' r='1.6'/%3E%3C/svg%3E"); }
.bandeau-corps { min-width: 0; display: grid; gap: .25rem; }
.bandeau-etats { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .4rem; }
/* une fiche refusée, un lieu supprimé : « à la corbeille », pour un administrateur qui relit (C2) */
.bandeau .vers-corbeille { font-weight: 600; font-size: .82rem; color: var(--lien); }
.bandeau-reperes { margin: 0; display: grid; gap: .2rem; }
.bandeau-reperes > div { display: flex; gap: .45rem; align-items: flex-start; min-width: 0; }
.bandeau-reperes dt { flex: none; color: var(--muted); display: inline-flex; padding-top: .17rem; }
.bandeau-reperes dt .ic { width: 15px; height: 15px; }
.bandeau-reperes dd { margin: 0; flex: 1; min-width: 0; color: var(--gris-texte); overflow-wrap: anywhere; }
.bandeau-reperes dd b { color: var(--ink); font-weight: 600; }
/* B1.4 : le lieu, ligne « Où » — sa pastille d'état, verte « vérifié », orange « à vérifier » */
.bandeau-reperes .etat { display: inline-block; margin-left: .25rem; font-size: .72rem; font-weight: 600; padding: .02rem .5rem;
  border-radius: var(--r-etiquette); background: var(--vert-bg); color: var(--vert-texte); vertical-align: middle; }
.bandeau-reperes .etat.averifier { background: var(--orange-bg); color: var(--orange-texte); }
.bandeau-reperes .adr { color: var(--muted); margin-left: .35rem; }
.bandeau-reperes .liens { margin-left: .5rem; }
/* chaque lien d'un bloc, « Revenir à « … » » compris, passe à la ligne entier plutôt que de déborder (B6) */
.bandeau-reperes .liens a { white-space: nowrap; }
.bandeau-reperes .liens a.changer-revenir { white-space: normal; }
/* B6 : « Changer de lieu », la recherche d'A1 sous la ligne « Où », sur un fond gris pâle dans la boîte blanche */
.fiche .changer-lieu { margin: .5rem 0 .2rem; padding: .6rem .7rem; border-radius: var(--r-btn); background: var(--rem-bg); }
.fiche .changer-lieu .lieux-trouves li a:hover, .fiche .changer-lieu .lieux-trouves li a:focus { background: var(--seg-bg); }
/* « Créer un lieu » sous la recherche de « Changer de lieu » (12 octobre) : une case, son nom, et « Choisir » */
.fiche .changer-creer { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 0; max-width: 34rem; }
.fiche .changer-creer[hidden] { display: none; }
.fiche .changer-creer input[type=text] { flex: 1 1 12rem; min-width: 0; font: inherit; padding: .35rem .6rem; border: 1px solid var(--line-forte);
  border-radius: var(--r-btn); background: var(--card); box-sizing: border-box; }
/* « Remettre le point », sous la carte d'un lieu dont on a tiré le repère (12 octobre) */
.fiche .carte-geste { margin: .3rem 0 0; font-size: .85rem; }
.fiche .carte-geste a { color: var(--gris-texte); }
.fiche .changer-fin { margin: .4rem 0 0; font-size: .85rem; }
.fiche .changer-fin a { color: var(--gris-texte); }
/* une série (même texte un autre jour ou dans un autre lieu) : en gris, sous « Quand » */
.bandeau-reperes .serie { display: block; color: var(--muted); font-size: .82rem; margin-top: .1rem; }
/* « Saisie par », sous la boîte, inchangé : l'intitulé en gris, puis qui a saisi la fiche */
.bandeau .saisie { margin: .35rem .1rem 0; font-size: .84rem; color: var(--gris-texte); overflow-wrap: anywhere; }
.bandeau .saisie dt { display: inline; color: var(--muted); }
.bandeau .saisie dt::after { content: "\00a0:"; }
.bandeau .saisie dd { display: inline; margin: 0 0 0 .3rem; }
/* un mot dit à un lecteur d'écran, pas à l'œil (« Où », « Quand » à côté de leur icône) */
.pour-lecteur { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* B1.2 : les intitulés plus foncés, en petites capitales, un trait fin entre les champs ; ils nomment */
.fiche .champ { position: relative; padding: .7rem 1.25rem .75rem; }
.fiche .champ + .champ { border-top: 1px solid var(--line); }
.fiche .etiquette { position: relative; font-size: .74rem; color: var(--gris-texte); margin-bottom: .3rem; display: flex; align-items: center;
  gap: .35rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.fiche .etiquette .categorie { text-transform: none; letter-spacing: 0; }

/* Le « ? » : la consigne d'OpenAgenda au survol. La bulle part du début de
   l'intitulé, pas du « ? » (sur un téléphone, elle sortait de l'écran), et
   n'existe qu'au survol : invisible, elle élargissait quand même la page */
.fiche .aide { display: inline-block; width: 15px; height: 15px; line-height: 14px; text-align: center;
  border: 1px solid var(--line-forte); border-radius: 50%; font-size: .62rem; color: var(--muted); cursor: help; }
.fiche .aide::after { content: attr(data-aide); position: absolute; left: 0; top: 1.4rem; z-index: 5; width: 26rem;
  max-width: calc(100vw - 3rem); box-sizing: border-box;
  padding: .55rem .75rem; background: var(--ink); color: #fff; font-size: .8rem; line-height: 1.45; font-weight: 400;
  border-radius: var(--r-boite); box-shadow: 0 8px 24px rgba(16,24,40,.2); display: none; pointer-events: none;
  white-space: pre-line; letter-spacing: 0; text-transform: none; }
.fiche .aide { letter-spacing: 0; font-weight: 500; }
.fiche .aide:hover::after { display: block; }

/* Les trois états : vert et orange sont des cartouches arrondis dans la page */
.fiche .champ[data-etat="vert"], .fiche .champ[data-etat="orange"] { margin: .45rem .9rem; padding: .8rem 1.1rem .9rem;
  border-radius: var(--r-btn); border: 1px solid; }
.fiche .champ[data-etat="vert"] + .champ, .fiche .champ[data-etat="orange"] + .champ { border-top: 0; }
.fiche .champ[data-etat="vert"] { background: var(--vert-bg); border-color: transparent; }
.fiche .champ[data-etat="orange"] { background: var(--orange-bg); border-color: transparent; }
.fiche .champ[data-etat="vert"] .etiquette { color: var(--vert-texte); }
.fiche .champ[data-etat="orange"] .etiquette { color: var(--orange-texte); }
.fiche .champ[data-etat="vert"] .etiquette::before, .fiche .champ[data-etat="orange"] .etiquette::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fiche .champ[data-etat="gris"] .valeur, .fiche .champ[data-etat="gris"] .cases { color: var(--gris-texte); }
.fiche .champ.inactif { opacity: .5; }
.fiche .vide { font-style: italic; color: var(--muted); margin: 0; font-size: .88rem; }

/* Replié / déplié */
.fiche .compact { display: flex; align-items: center; gap: .8rem; cursor: pointer; color: var(--gris-texte); }
.fiche .compact:hover .ouvrir { text-decoration: underline; }
.fiche .ouvrir { color: var(--lien); font-size: .8rem; white-space: nowrap; font-weight: 500; }
.fiche .plein { display: none; }
.fiche .champ.ouvert .compact { display: none; }
.fiche .champ.ouvert .plein { display: block; }

/* Les valeurs : des champs de texte qui montrent tout leur texte */
.fiche textarea { width: 100%; resize: none; overflow: hidden; field-sizing: content; border: 0; background: transparent;
  padding: 0; outline: 0; display: block; min-height: 1.5em; }
.fiche textarea::placeholder { font-style: italic; color: var(--muted); font-size: .88rem; }
.fiche .valeur { font-size: .95rem; line-height: 1.5; margin: 0; }
.fiche .valeur.une-ligne { font-size: var(--titre-taille); font-weight: var(--titre-graisse); letter-spacing: -.01em;
  font-family: var(--police-titre), inherit; line-height: 1.25; }
.fiche .riche { min-height: 1.5em; }
.fiche .riche p, .fiche .riche ul, .fiche .riche ol, .fiche .riche h3, .fiche .riche h4 { margin: 0 0 .5em; }
.fiche .riche > :last-child { margin-bottom: 0; }
/* le « Titre » de l'éditeur d'OpenAgenda un cran au-dessus du « Sous-titre » (B6, 10 octobre, R-476) */
.fiche .riche h3 { font-size: 1.15rem; line-height: 1.3; }
.fiche .riche h4 { font-size: 1rem; }
/* la puce d'une liste imbriquée garde son retrait (lot 31) : on la voit comme elle partira */
.fiche .riche li[data-retrait] { margin-left: 1.2em; }

/* B6 (10 octobre) : la barre de mise en forme de la description — les boutons de l'éditeur d'OpenAgenda, rien
   tant qu'on lit. Au clic dans la description, elle se pose au-dessus du champ, à droite, par-dessus son
   intitulé : rien ne bouge sous les doigts. L'ancre, sans hauteur, la garde sous les barres collées quand la
   description est longue (--haut-colle : leur bas, mesuré par relecture.js) ; elle ne quitte pas son champ. */
.fiche .outils-ancre { position: sticky; top: calc(var(--haut-colle, calc(var(--haut-entete) + 3.6rem)) + 52px); height: 0; z-index: 8; }
.fiche .outils-riche { position: absolute; right: 0; bottom: 11px; max-width: calc(100vw - 16px); background: var(--card);
  border: 1px solid var(--line-forte); border-radius: var(--r-boite); box-shadow: 0 2px 10px rgba(0,0,0,.12); padding: 2px; }
.fiche .outils-boutons, .fiche .outils-lien { display: flex; align-items: center; gap: 1px; }
body.relecture .fiche .outil { height: 28px; min-width: 28px; padding: 0 .5rem; border: 0; border-radius: var(--r-btn); background: none;
  color: var(--ink); font-size: .8rem; font-weight: 500; cursor: pointer; white-space: nowrap; line-height: 1; }
body.relecture .fiche .outil:hover { background: var(--seg-bg); }
body.relecture .fiche .outil[aria-pressed="true"] { background: var(--evt); color: var(--evt-ink); }
body.relecture .fiche .outil[aria-disabled="true"] { opacity: .4; cursor: default; }
body.relecture .fiche .outil:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.fiche .outil-gras b, .fiche .outil-italique i { font-size: .95rem; }
.fiche .outil-italique i { font-family: Georgia, serif; }
/* l'adresse du lien prend la largeur du champ au téléphone, une case de 24rem au-delà */
.fiche .outils-riche.avec-lien { left: 0; }
.fiche .outils-riche.avec-lien .outils-lien { width: 100%; }
@media (min-width: 40rem) {
  .fiche .outils-riche.avec-lien { left: auto; }
  .fiche .outils-riche.avec-lien .outils-lien { width: 24rem; }
}
body.relecture .fiche .outils-lien .lien-adresse { flex: 1 1 auto; min-width: 0; height: 28px; border: 1px solid var(--line-forte);
  border-radius: var(--r-btn); padding: 0 .5rem; font-size: .85rem; background: var(--card); }
.fiche .outils-lien .lien-adresse:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 2px var(--anneau); }
.fiche .outils-lien .lien-adresse[aria-invalid="true"] { border-color: var(--orange-texte); }
body.relecture .fiche .outils-lien .lien-ok { color: var(--accent); font-weight: 600; }
.fiche .lien-erreur { position: absolute; right: 0; top: calc(100% + 2px); margin: 0; padding: .2rem .5rem; border-radius: var(--r-btn);
  background: var(--orange-bg); color: var(--orange-texte); font-size: .78rem; white-space: nowrap; }
@media (max-width: 26rem) {
  body.relecture .fiche .outil { padding: 0 .4rem; }
}
.fiche .riche:focus { outline: 0; }
.fiche .riche:empty::before { content: attr(data-vide); font-style: italic; color: var(--muted); font-size: .88rem; }

/* B1.3 : la version étoffée (bêta), un petit encart sous la description, toujours visible, jamais choisi
   d'office — un cadre pointillé violet clair, ni vert ni orange ; « Lire ▾ » le déplie */
.fiche .etoffee { margin: .1rem .9rem .6rem; border-radius: var(--r-boite); background: var(--etoffe-bg);
  border: 1px dashed color-mix(in srgb, var(--etoffe) 45%, transparent); }
body.relecture .fiche .etoffee-tete { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; background: none;
  border: 0; padding: .6rem .9rem; cursor: pointer; color: var(--ink); border-radius: var(--r-boite); margin: 0; }
.fiche .etoffee-icone { color: var(--etoffe); font-size: 1.1rem; flex: none; }
.fiche .etoffee-texte { flex: 1 1 12rem; min-width: 0; font-size: .9rem; line-height: 1.35; }
.fiche .etoffee-texte b, .fiche .etoffee-tete b { font-weight: 600; }
.fiche .etoffee-sous { display: block; color: var(--muted); font-size: .8rem; margin-top: .1rem; }
.fiche .etoffee .beta { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .05rem .4rem; border-radius: var(--r-etiquette); background: var(--etoffe); color: #fff; vertical-align: middle; margin-left: .3rem; }
.fiche .etoffee-ouvrir { color: var(--etoffe); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.fiche .etoffee-corps { padding: 0 .9rem .8rem; }
.fiche .etoffee-pied { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
body.relecture .fiche .etoffee-pied .btn { height: 32px; font-size: .85rem; }
.fiche .etoffee-pris { margin: 0; padding: .55rem .9rem; font-size: .88rem; color: var(--ink); }
.fiche .etoffee-pris a { margin-left: .3rem; }
.fiche .etoffee.lue .etoffee-tete { cursor: default; font-size: .9rem; }
.fiche .libre-texte { margin: 0; padding: .6rem .8rem; border-radius: var(--r-btn); background: var(--card);
  color: var(--ink); font-size: .95rem; overflow-wrap: anywhere; }
.fiche .libre-texte p, .fiche .libre-texte ul, .fiche .libre-texte ol { margin: 0 0 .5em; }
.fiche .libre-texte h3, .fiche .libre-texte h4 { margin: .6em 0 .3em; font-size: .92rem; }
.fiche .libre-texte h3 { font-size: 1.05rem; }
.fiche .prendre-libre { font-size: .82rem; font-weight: 500; }
/* la source du complément, à côté du texte, jamais dedans (R2, 9 octobre) : sous la ligne dépliée sur
   téléphone, à droite du texte sur grand écran */
.fiche .libre-source { margin: .35rem 0 0; font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .fiche .libre-corps.avec-source { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; column-gap: .8rem; align-items: start; }
  .fiche .libre-corps.avec-source .libre-texte { grid-column: 1; grid-row: 1; }
  .fiche .libre-corps.avec-source .libre-source { grid-column: 2; grid-row: 1; margin-top: .45rem; }
}

.fiche details.origine { margin-top: .35rem; font-size: .82rem; color: var(--muted); }
.fiche details.origine summary { cursor: pointer; list-style: none; color: var(--lien); display: inline; font-weight: 500; }
.fiche details.origine summary::-webkit-details-marker { display: none; }
.fiche details.origine summary::before { content: "▸ "; }
.fiche details.origine[open] summary::before { content: "▾ "; }
.fiche .origine-texte { margin: .35rem 0 .3rem; padding: .5rem .7rem; border-radius: var(--r-btn); background: var(--card);
  border: 1px solid var(--line); color: var(--ink); white-space: pre-wrap; }
.fiche .origine-texte.riche { white-space: normal; }
.fiche .bascule { font-size: .82rem; font-weight: 500; }

/* Les cases */
.fiche .cases { display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; }
.fiche .cases.en-ligne { flex-direction: row; flex-wrap: wrap; gap: .25rem 1.1rem; }
.fiche .cases.colonnes { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .2rem .8rem; }
.fiche .cases label { display: flex; gap: .4rem; align-items: center; cursor: pointer; }
.fiche .cases input { margin: 0; accent-color: var(--accent); width: 15px; height: 15px; flex: none; }

/* La question de la machine, dans le champ */
.fiche .question { margin-top: .5rem; padding: .5rem .75rem; border-radius: var(--r-btn); background: var(--card);
  box-shadow: 0 1px 3px rgba(0,0,0,.08); display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; font-size: .92rem; }
.fiche .question p { margin: 0; flex: 1 1 20rem; }
/* la petite ligne grise sous une question de nom (T5, 12 octobre) : d'où vient le nom proposé, une vraie phrase, toute la largeur */
.fiche p.ouvrir-evenement { margin: .35rem 0 0; font-size: .85rem; }
.fiche .question p.question-detail { flex-basis: 100%; margin-top: -.6rem; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
/* le titre proposé d'une question de titre, sur sa ligne, tel que « Oui » l'écrira, avec ses « » (R-879, 14 octobre) : lisible,
   à l'encre du texte, pas le gris des lignes discrètes */
.fiche .question p.question-titre { flex-basis: 100%; margin-top: -.6rem; color: var(--ink); font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
/* le mot de catégorie devant chaque question orange (BRIEF-SEANCE-THOMAS, décision 12) : discret, gris */
.fiche .categorie { color: var(--muted); font-size: .78rem; font-weight: 500; margin-right: .15rem; white-space: nowrap; }
/* suivi de son tiret, « Il manque — La proposition ne dit plus… » (12 octobre, fiche-test -51 : « Il manque La
   proposition… » se lisait d'une traite) ; pas dans l'étiquette du bandeau */
.categorie::after { content: "\a0—"; }
.etiquette .categorie::after { content: none; }
.fiche .reponses { display: flex; gap: .5rem; white-space: nowrap; flex-wrap: wrap; }
.fiche .reponses label { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem;
  border: 1px solid var(--line-forte); border-radius: var(--r-btn); cursor: pointer; background: var(--card); }
/* une réponse longue (« Prendre « … » du contributeur » à la fusion) passe à la ligne plutôt que de faire
   défiler la page à l'horizontale sur un téléphone (revue d'A1, 10 octobre) */
.fiche .reponses label { white-space: normal; max-width: 100%; min-width: 0; }
.fiche .reponses label:has(input:checked) { border-color: var(--accent); }
.fiche .reponses input { margin: 0; accent-color: var(--accent); }
/* ce qui manque, à remplir soi-même (« il manque la rue ») */
.fiche .note { margin: .45rem 0 0; font-size: .9rem; color: var(--ink); }
/* une question sur la fiche entière, en tête : refuser, ou non */
.fiche .notes { margin: .2rem 1.25rem .6rem; padding: .6rem .9rem; border-radius: var(--r-boite); background: var(--orange-bg); }
.fiche .alerte { display: flex; gap: .6rem 1rem; align-items: center; flex-wrap: wrap; font-size: .92rem; }
.fiche .alerte + .alerte { margin-top: .5rem; }
.fiche .alerte p { margin: 0; flex: 1 1 20rem; }
.fiche .alerte .btn { height: 32px; padding: 0 .9rem; font-size: .85rem; }
.fiche .alerte .btn.refus:hover { color: var(--orange-texte); border-color: var(--orange-texte); }
.fiche .alerte .btn.refus.sur { color: #fff; background: var(--orange-texte); border-color: var(--orange-texte); }
/* la fiche jumelle : ce qu'il y a dedans, dépliable, avant de répondre */
.fiche .alerte.jumelle { flex-direction: column; align-items: stretch; }
.fiche .alerte.jumelle p { flex: none; }
.fiche .alerte .autre-fiche summary { cursor: pointer; color: var(--accent); font-size: .88rem; }
.fiche .alerte .autre-fiche summary .muted { color: var(--muted); }
.fiche .alerte .autre-fiche dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem .9rem; margin: .6rem 0 .2rem;
  padding: .7rem .9rem; background: var(--card); border-radius: var(--r-btn); font-size: .9rem; }
.fiche .alerte .autre-fiche dt { color: var(--muted); font-size: .8rem; padding-top: .1rem; }
.fiche .alerte .autre-fiche dd { margin: 0; overflow-wrap: anywhere; }
.fiche .alerte .autre-fiche dd p { margin: 0 0 .5rem; }
@media (max-width: 40rem) { .fiche .alerte .autre-fiche dl { grid-template-columns: 1fr; } }

/* on écrit : la case blanche apparaît autour du texte, sans rien déplacer */
.fiche textarea.valeur:not([readonly]):focus, .fiche .riche[contenteditable="true"]:focus {
  background: var(--card); border-radius: 3px;
  box-shadow: 0 0 0 6px var(--card), 0 0 0 7px var(--accent), 0 0 0 10px var(--anneau); }

.fiche .vignette { width: 5.5rem; height: 3.7rem; object-fit: cover; border-radius: var(--r-btn); flex: none; }
.fiche .grande { max-width: 100%; border-radius: var(--r-boite); display: block; }
/* R-523 : les adresses proposées sous le champ de l'adresse, à sa largeur, par-dessus ce qui suit */
.fiche .adresses-liste { position: absolute; z-index: 6; margin: 0; padding: .2rem; list-style: none; box-sizing: border-box; max-width: 100%;
  background: var(--card); border: 1px solid var(--line-forte); border-radius: var(--r-btn); box-shadow: 0 6px 18px rgba(20, 33, 61, .12); }
.fiche .adresses-liste[hidden] { display: none; }
.fiche .adresses-liste li { padding: .4rem .55rem; border-radius: var(--r-etiquette); cursor: pointer; font-size: .92rem; color: var(--ink);
  overflow-wrap: anywhere; }
.fiche .adresses-liste li:hover, .fiche .adresses-liste li[aria-selected="true"] { background: var(--seg-bg); }
/* B4 : « Changer l'image » sous l'image, discret ; ce qu'il ouvre, sur une feuille blanche ; jamais plus large que l'écran */
.fiche .compact.image[hidden] { display: none; }
.fiche .image-gestes { margin: .35rem 0 0; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.fiche .image-gestes a { color: var(--gris-texte); }
.fiche .image-panneau { margin: .5rem 0 .2rem; padding: .6rem .7rem; border-radius: var(--r-btn); background: var(--card); border: 1px solid var(--line); }
.fiche .image-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 .45rem; color: var(--gris-texte); font-size: .9rem; }
.fiche .image-fichier { position: relative; cursor: pointer; }
.fiche .image-fichier input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.fiche .image-fichier:focus-within { box-shadow: 0 0 0 3px var(--anneau); }
.fiche .image-erreur { margin: .1rem 0 .45rem; color: var(--orange-texte); font-size: .88rem; font-weight: 500; }
.fiche .image-fin { margin: 0; font-size: .85rem; }
.fiche .image-fin a { color: var(--gris-texte); }
.fiche .image-changer[aria-busy="true"] .image-panneau { opacity: .6; }
/* la case des droits refusée par « C'est bon » : la phrase orange se lit */
.fiche .champ.a-cocher .image-mention { color: var(--orange-texte); font-weight: 600; font-size: .88rem; }
.fiche .champ[data-etat="orange"] .image-mention { color: var(--orange-texte); }
.fiche .horaires { border-collapse: collapse; }
.fiche .horaires td { padding: .15rem .4rem .15rem 0; }
.fiche .horaires input { border: 1px solid var(--line-forte); border-radius: var(--r-btn); padding: .25rem .45rem; background: var(--card); }
/* l'âge du public (B2, 10 octobre) : « de [10] à [  ] ans », comme une ligne des horaires */
.fiche .age { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.fiche .age input { width: 4.5rem; border: 1px solid var(--line-forte); border-radius: var(--r-btn); padding: .25rem .45rem; background: var(--card); font: inherit; }
.fiche .mention { font-size: .8rem; margin: .2rem 0 0; color: var(--muted); }
/* la ligne grise des infos pratiques déplacées, sous la description (BRIEF-INFOS-PRATIQUES, décision 12, R-711, R-743) : le
   gris des lignes discrètes ; elle part avec « Garder la contribution initiale » (le champ gris) ; la version étoffée prise
   (data-libre), c'est la sienne qui se montre */
.fiche .infos-deplaces { font-size: .8rem; margin: .35rem 0 0; color: var(--muted); overflow-wrap: anywhere; }
.fiche .infos-deplaces-libre,
.fiche .champ[data-etat="gris"] .infos-deplaces,
.fiche .riche[data-libre] ~ .infos-deplaces:not(.infos-deplaces-libre) { display: none; }
.fiche .champ:not([data-etat="gris"]) .riche[data-libre] ~ .infos-deplaces-libre { display: block; }
.fiche .lieu-ligne b { font-weight: 600; }

.fiche .reste { color: var(--muted); font-size: .88rem; text-align: center; margin: 1.2rem 0 .5rem; }
.fiche .refuser { margin: 1.5rem 1.25rem 0; padding-top: 1rem; border-top: 1px solid var(--line); }
/* le bouton du bas de la fusion, et sa confirmation d'un clic (« Vraiment ? ») */
.fiche .refuser .btn.refus { color: var(--gris-texte); }
.fiche .refuser .btn.refus:hover { color: var(--orange-texte); border-color: var(--orange-texte); background: var(--card); }
.fiche .refuser .btn.refus.sur { color: #fff; background: var(--orange-texte); border-color: var(--orange-texte); }
/* Le bas de la fiche (B8, Z1 bis, maquettes/habillage/refus.html, 10 octobre) : plus aucun bouton, seulement le lien
   « Refuser cette fiche » (« Supprimer ce lieu »), petit, gris, souligné, à gauche, l'icône de la corbeille ; au clic,
   à sa place, la ligne orange, « Oui, refuser » (orange plein) et « Non » (R-514) */
.fiche .refuser > summary.refus-lien { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; width: max-content;
  max-width: 100%; color: var(--muted); font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
.fiche .refuser > summary.refus-lien::-webkit-details-marker { display: none; }
.fiche .refuser > summary.refus-lien:hover { color: var(--orange-texte); }
.fiche .refuser > summary.refus-lien svg, .fiche .refus-oui svg { width: 15px; height: 15px; flex: none; }
.fiche .refuser[open] > summary.refus-lien { display: none; }
.fiche .refus-question { display: grid; gap: .55rem; padding: .7rem .85rem; border-radius: var(--r-btn); background: var(--orange-bg); font-size: .92rem; }
.fiche .refus-question p { margin: 0; color: var(--ink); }
.fiche .refus-question .reponses { display: flex; flex-wrap: wrap; gap: .5rem; }
body.relecture .fiche .btn.refus-oui { background: var(--orange-texte); border-color: var(--orange-texte); color: #fff; }
body.relecture .fiche .btn.refus-oui:hover { background: var(--orange-survol); border-color: var(--orange-survol); }
body.relecture .fiche .refus-question .btn.refus-non { text-decoration: none; }

.fiche .carte { height: 11rem; border-radius: var(--r-carte); background: var(--seg-bg); overflow: hidden;
  /* Leaflet empile ses calques à z-index 400-1000 : isolés ici, ils passent sous les barres collées en haut */
  position: relative; z-index: 0; isolation: isolate; }
.fiche .doublon { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .2rem 0; }
.fiche .doublon p { margin: 0; flex: 1 1 20rem; }

main.fiche[data-mode="essentiel"] .champ[data-etat="gris"][data-essentiel="0"] { display: none; }

/* « Un instant… » : on a rattrapé la machine */
.instant { text-align: center; margin-top: 18vh; color: var(--muted); font-size: 1.05rem; }

@media (max-width: 40rem) {
  main.fiche { margin: .5rem; }
  .fiche .bandeau { margin-left: .9rem; margin-right: .9rem; }
  /* sur un téléphone, l'étiquette passe au-dessus de ce qu'elle annonce */
  .bandeau-boite { grid-template-columns: minmax(0, 1fr); }
  .bandeau .sorte { justify-self: start; }
  /* sur un téléphone, « pour « titre » » passe à la ligne plutôt que de se couper (revue de B1, 10 octobre) */
  .fiche .champ { padding-left: .9rem; padding-right: .9rem; }
}

/* Les archives : la fiche telle qu'elle a été validée, sans rien à modifier. */
.fil { max-width: 50rem; margin: 1rem auto 0; padding: 0 1.25rem; font-size: .84rem; color: var(--muted); }
.fiche .valeur.lu { white-space: pre-wrap; overflow-wrap: anywhere; }

/* L'écran de fusion (A1, 9 octobre au soir) : la fiche du lieu gardé, comme une fiche de relecture ;
   la ligne orange qui nomme le lieu supprimé ne part pas ; le bouton du bas nomme les deux lieux. */
.fusion .fusion-supprime { margin: 0; font-size: .92rem; color: var(--ink); }
.fusion .retoucher-ligne { margin: .4rem 0 0; font-size: .84rem; }
.fusion .question .vignette { vertical-align: middle; margin-left: .4rem; }
/* deux événements en double (B3, 10 octobre) : ce que l'autre fiche dit, sous la question de son champ ; la
   description mise en forme, sur toute la largeur */
.fusion .question .autre-valeur { flex: 1 1 100%; margin: 0; padding: .5rem .7rem; border-radius: var(--r-btn); background: var(--rem-bg);
  font-size: .9rem; overflow-wrap: anywhere; }
.fusion .question .autre-valeur p { margin: 0 0 .4rem; }
.fusion .question .autre-valeur p:last-child { margin-bottom: 0; }
/* la ligne qui dit, avant le clic, laquelle des deux jumelles sera gardée */
.fiche .alerte .fusion-garde { margin: 0; font-weight: 500; }
.fiche .refuser.fusionner { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.fiche .refuser.fusionner .btn.primaire.refus { color: #fff; height: auto; min-height: 36px; padding: .4rem 1.1rem; text-align: left; white-space: normal; }
.fiche .refuser.fusionner .btn.primaire.refus:hover { color: #fff; background: var(--accent-survol); border-color: transparent; }
.fiche .refuser.fusionner .btn.primaire.refus.sur { background: var(--orange-texte); }

/* « Supprimer ce lieu » quand il sert à des événements (A1) : le bouton ouvre la question, trois réponses. */
/* son lien est celui du refus (B8, Z1 bis : .refus-lien) */
.fiche .supprimer-vers .vers { padding: .8rem 1rem 1rem; border-radius: var(--r-boite); background: var(--orange-bg); }
.fiche .supprimer-vers .vers-question { margin: 0 0 .6rem; font-weight: 500; }
.fiche .supprimer-vers .vers-choix { padding: .5rem 0; }
.fiche .supprimer-vers .vers-choix + .vers-choix { border-top: 1px solid rgba(0,0,0,.06); }
.fiche .supprimer-vers .vers-fin { margin: .5rem 0 0; font-size: .88rem; }
.fiche .supprimer-vers .vers-fin a { color: var(--gris-texte); }
.fiche .supprimer-vers .vers-choix .btn { height: auto; min-height: 32px; padding: .3rem .9rem; white-space: normal; text-decoration: none; }
.fiche .creer-lieu { display: grid; grid-template-columns: max-content 1fr; gap: .4rem .8rem; align-items: center; max-width: 34rem; }
.fiche .creer-lieu label { display: contents; }
.fiche .creer-lieu label span { color: var(--muted); font-size: .84rem; }
.fiche .creer-lieu input, .fiche .chercher-lieu input.cherche { font: inherit; padding: .35rem .6rem; border: 1px solid var(--line-forte);
  border-radius: var(--r-btn); background: var(--card); width: 100%; box-sizing: border-box; }
.fiche .creer-lieu .btn { grid-column: 2; justify-self: start; }
@media (max-width: 40rem) { .fiche .creer-lieu { grid-template-columns: 1fr; } .fiche .creer-lieu .btn { grid-column: 1; } }

/* Chercher un lieu (inc/lieux-recherche.php) : la case, la liste dessous, l'état de chaque lieu. */
.fiche .chercher-lieu { max-width: 34rem; }
.fiche .lieux-trouves { list-style: none; margin: .4rem 0 0; padding: 0; }
.fiche .lieux-trouves li { border-radius: var(--r-btn); }
.fiche .lieux-trouves li a { display: block; padding: .35rem .55rem; color: var(--ink); text-decoration: none; border-radius: var(--r-btn); }
.fiche .lieux-trouves li a:hover, .fiche .lieux-trouves li a:focus { background: var(--card); }
.fiche .lieux-trouves li.vide { padding: .35rem .55rem; color: var(--muted); }
.fiche .etat-lieu { font-size: .78rem; font-weight: 500; }
.fiche .etat-lieu.verifie { color: var(--vert-texte); }
.fiche .etat-lieu.a-verifier { color: var(--orange-texte); }

/* « Le lieu « X » est créé, à vérifier : vous le relisez maintenant. » */
main.fiche .fiche-message { margin: .4rem 1.25rem .7rem; padding: .55rem .85rem; border-radius: var(--r-boite); background: var(--card);
  border: 1px solid var(--line); font-size: .92rem; }

/* La fin de session (« Tout est relu. », « Fini pour cette fois. ») et l'accueil sans agenda : la même pièce que
   les fiches, une phrase centrée et un bouton. */
main.fiche.accueil { max-width: 40rem; text-align: center; padding-top: 6vh; }
.accueil .sigle { color: var(--muted); font-size: .9rem; margin: .3rem 0 0; }
.accueil .attente { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; margin: 0 1.25rem .35rem; }
.accueil a.btn { text-decoration: none; }
body.relecture .btn.gros { height: 48px; padding: 0 2.4rem; font-size: 1.1rem; font-weight: 600; text-decoration: none; }
body.relecture .btn.gros:disabled { opacity: .6; cursor: default; }

/* L'accueil des agendas (B8, A1 et A2, BRIEF-OCTOBRE.md § 6, maquettes/habillage/choix-3.html, 10 octobre) : en
   tête « Bonjour David » et le bouton « étendu / compact » ; la colonne de 40rem disparaît (la largeur de la fiche,
   50rem). Les deux dispositions sont le même HTML, rangé autrement : étendu, une carte par agenda et son rythme à
   côté ; compact, une ligne par agenda et le rythme de l'agenda de la séance en une ligne dessous. */
main.fiche.accueil.etendu, main.fiche.accueil.compact { max-width: 50rem; text-align: left; padding: 1.6rem 1.25rem 1rem; }
.tete-accueil { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap; margin: 0 0 1.1rem; }
.accueil.vide .tete-accueil { justify-content: center; margin-bottom: 1.4rem; }
.tete-accueil h1.bonjour { font-size: 1.35rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; margin: 0; }
.accueil .disposition { display: inline-flex; background: var(--seg-bg); border-radius: var(--r-btn); padding: 3px; margin: 0; font-size: .84rem; }
.accueil .disposition button { border: 0; background: none; color: var(--muted); padding: .25rem .75rem; border-radius: calc(var(--r-btn) - 3px);
  font-weight: 500; cursor: pointer; }
.accueil .disposition button[aria-pressed="true"] { color: var(--ink); background: var(--card); box-shadow: 0 1px 2px rgba(16,24,40,.12); font-weight: 600; }
.accueil .disposition button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.accueil .ic { width: 15px; height: 15px; flex: none; }
.accueil .agendas { display: flex; flex-direction: column; gap: 1rem; }
.carte-accueil .operation { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .9rem; font-weight: 500; margin: 0 0 .5rem; }
.carte-accueil .operation b { color: var(--ink); font-weight: 600; }
.accueil .repartition { color: var(--muted); font-size: .9rem; margin: 0; }
.accueil .repartition:empty { display: none; }
.accueil .arrivees { color: var(--muted); font-size: .84rem; margin: .15rem 0 0; }
.accueil .hero { display: block; font-size: 3.6rem; font-weight: 700; letter-spacing: -.04em; line-height: 1.05;
  color: var(--accent); } /* sa forme d'aujourd'hui, en bleu nuit (B8, L1) */
/* « Les lieux seulement (26) », sous « Commencer » (B1.6), dans les deux dispositions (obligation 3) */
.accueil .lieux-seuls { margin: .6rem 0 0; }
.accueil .nouveautes { margin: .8rem 0 0; color: var(--muted); font-size: .84rem; }
.accueil .nouveautes:empty { display: none; }
.carte-accueil .panne-ligne { margin: .7rem 0 0; }
/* les icônes de « Commencer » (lire) et des lieux (un repère de carte), posées par la feuille : le script de la page
   réécrit le texte des boutons (« Un instant… ») */
.accueil .bouton::before, .accueil .bouton-lieux::before { content: ""; flex: none; width: .85em; height: .85em; background: currentColor;
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.accueil .bouton::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 2.8v10.4l8.3-5.2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 2.8v10.4l8.3-5.2z'/%3E%3C/svg%3E"); }
.accueil .bouton-lieux::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7'%3E%3Cpath d='M8 14.5s4.6-4.1 4.6-7.8a4.6 4.6 0 0 0-9.2 0c0 3.7 4.6 7.8 4.6 7.8z'/%3E%3Ccircle cx='8' cy='6.7' r='1.6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7'%3E%3Cpath d='M8 14.5s4.6-4.1 4.6-7.8a4.6 4.6 0 0 0-9.2 0c0 3.7 4.6 7.8 4.6 7.8z'/%3E%3Ccircle cx='8' cy='6.7' r='1.6'/%3E%3C/svg%3E"); }

/* Étendu (A1) : une carte par agenda, son rythme à côté — les quatre tuiles */
.etendu .carte-accueil { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: .9rem; }
.etendu .carte-corps { padding: 1.2rem 1.35rem 1.2rem; border-radius: var(--r-carte); background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 10px 30px rgba(16,24,40,.07); }
.etendu .attente { margin: 0 0 .15rem; font-size: .95rem; font-weight: 600; }
body.relecture main.etendu .bouton { margin-top: 1rem; }
.accueil .rythme { padding: 1rem 1.15rem; border-radius: var(--r-carte); background: var(--rem-bg); text-align: left; }
.accueil .rythme h2 { display: flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; color: var(--muted); margin: 0 0 .8rem; }
.accueil .rythme > p { margin: 0; font-size: .92rem; color: var(--gris-texte); }
.accueil .tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem .8rem; }
.accueil .tuile { display: flex; flex-direction: column; gap: .05rem; }
.accueil .tuile b { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; }
.accueil .tuile .lib { font-size: .8rem; color: var(--muted); }
.accueil .tuile.restant b { color: var(--accent); }
main.accueil.etendu .rythme-ligne { display: none; }

/* Compact (A2) : une ligne par agenda — son nom, ses événements et ses lieux, son chiffre, son « Commencer » —, le
   rythme de l'agenda de la séance en une ligne dessous ; la carte et le formulaire se fondent dans la ligne */
.compact .rythme { display: none; }
.compact .agendas { gap: 0; border: 1px solid var(--line); border-radius: var(--r-carte); background: var(--card); overflow: hidden;
  box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 10px 30px rgba(16,24,40,.06); }
.compact .carte-accueil { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 1.1rem; align-items: center; padding: .85rem 1.1rem; }
.compact .carte-accueil + .carte-accueil { border-top: 1px solid var(--line); }
.compact .carte-accueil:first-child { background: var(--rem-bg); }
.compact .carte-corps, .compact form.commencer { display: contents; }
.compact .operation { grid-column: 1; grid-row: 1; margin: 0; color: var(--ink); font-weight: 600; font-size: .95rem; }
.compact .operation .ic { color: var(--muted); }
.compact .repartition { grid-column: 1; grid-row: 2; font-size: .82rem; padding-left: calc(15px + .4rem); }
.compact .arrivees { grid-column: 1; grid-row: 3; font-size: .8rem; margin: 0; padding-left: calc(15px + .4rem); }
.compact .attente { grid-column: 2; grid-row: 1 / span 2; margin: 0; text-align: right; font-size: .85rem; font-weight: 500; color: var(--muted); }
.compact .hero { font-size: 1.9rem; letter-spacing: -.03em; }
/* le chiffre seul : « fiches à modérer » reste dit pour un lecteur d'écran ; « Rien à modérer. » se lit */
.compact .hero:not(:empty) + [data-r="mots"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.relecture main.compact .bouton { grid-column: 3; grid-row: 1 / span 2; height: 38px; padding: 0 1rem; font-size: .92rem; justify-self: stretch; justify-content: center;
  min-width: 12.5rem; } /* la même largeur d'une ligne à l'autre */
.compact .lieux-seuls { grid-column: 3; grid-row: 3; margin: .4rem 0 0; }
body.relecture main.compact .lieux-seuls .btn { width: 100%; justify-content: center; height: 30px; padding: 0 .7rem; font-size: .8rem; }
.compact .panne, .compact .panne-ligne, .compact .nouveautes { grid-column: 1 / -1; }
.compact .nouveautes { margin-top: .4rem; padding-left: calc(15px + .4rem); }
.accueil .rythme-ligne { display: flex; align-items: flex-start; gap: .4rem; margin: .8rem .2rem 0; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.accueil .rythme-ligne .ic { margin-top: .15rem; }
.accueil .rythme-ligne b, .accueil .rythme-ligne .nombres { color: var(--gris-texte); }

@media (max-width: 40rem) {
  main.fiche.accueil { padding-top: 3vh; }
  main.fiche.accueil.etendu, main.fiche.accueil.compact { padding: 1rem .75rem .5rem; }
  .tete-accueil h1.bonjour { font-size: 1.15rem; }
  .accueil .hero { font-size: 3rem; }
  /* étendu (K-A) : la carte, puis son rythme dessous */
  .etendu .carte-accueil { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .etendu .carte-corps { padding: 1.1rem 1rem 1rem; }
  body.relecture main.etendu .bouton, body.relecture main.etendu .lieux-seuls .btn { width: 100%; justify-content: center; padding: 0 1rem; }
  /* compact (K-B) : le nom et le chiffre, « Commencer » de toute la largeur dessous */
  .compact .carte-accueil { grid-template-columns: minmax(0, 1fr) auto; padding: .8rem .9rem; }
  .compact .hero { font-size: 1.6rem; }
  /* placés à la suite, dans l'ordre de la page : la recherche des nouveautés et la panne viennent après eux */
  body.relecture main.compact .bouton { grid-column: 1 / -1; grid-row: auto; margin-top: .6rem; min-width: 0; }
  .compact .lieux-seuls { grid-column: 1 / -1; grid-row: auto; }
  body.relecture main.compact .lieux-seuls .btn { height: 34px; font-size: .85rem; }
}

/* Les choix de l'agenda (Réglages › L'agenda) : les huit questions du questionnaire, mot pour mot (A2, 10 octobre) */
.choix-agenda { margin: 0; padding: .9rem 0 .8rem; border-top: 1px solid var(--line); }
.choix-agenda .intitule { font-weight: 600; margin: 0 0 .45rem; }
.choix-agenda .avant, .choix-agenda .apres { color: var(--muted); font-size: .86rem; margin: .3rem 0; }
.choix-agenda .reponses { display: flex; flex-direction: column; gap: .35rem; font-size: .93rem; }
.choix-agenda .reponses label { display: flex; gap: .5rem; align-items: baseline; cursor: pointer; line-height: 1.45; }
.choix-agenda .reponses input { margin: 0; accent-color: var(--accent); position: relative; top: .1rem; flex: none; }
.choix-agenda .reponses i { font-style: normal; background: var(--rem-bg); border-radius: var(--r-etiquette); padding: 0 .25rem; }
.choix-agenda details.pourquoi { margin: .45rem 0 0; font-size: .86rem; }
.choix-agenda details.pourquoi summary { cursor: pointer; color: var(--lien); }
.choix-agenda details.pourquoi p { color: var(--gris-texte); margin: .35rem 0 0; line-height: 1.5; }

/* -------------------------------------------------- le côté client (BRIEF-CLIENT.md, lot 3) -- */

/* Le pied de page, le même sur toutes les pages (B8, Q1 de maquettes/habillage/pied.html, 10 octobre ; R-511) : une
   seule ligne fine sous un filet, de toute la largeur de l'écran — à gauche « Une question ? », « Mentions légales »,
   la version en petite étiquette grise ; à droite « Conçu par » et le logo de Temaprod. Son bord droit laisse sa
   place à l'onglet « Un souci ? », collé en bas à droite : en fin de page, il ne couvre jamais le logo.
   Les mêmes règles, en ligne, pour l'erreur et la panne : pied_css(), inc/util.php. */
body.relecture .pied { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 2.5rem 0 0;
  padding: 12px calc(1rem + var(--souci-place)) 12px 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; line-height: 1.5; }
body.relecture .pied a { color: var(--muted); text-decoration: none; }
body.relecture .pied a:hover { color: var(--ink); text-decoration: underline; }
body.relecture .pied .version { font-size: .68rem; font-weight: 600; background: var(--seg-bg); padding: 1px 6px;
  border-radius: var(--r-etiquette); color: var(--muted); }
body.relecture .pied .concu { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
body.relecture .pied .concu a { display: block; }
body.relecture .pied img { display: block; }
/* l'Administration : le pied sous la coque, sans marge (la coque descend jusqu'à lui) */
body.admin .pied { margin-top: 0; }
/* sous 68rem, l'onglet ne garde que sa main : le pied ne lui laisse que sa place (--souci-l) */
@media (max-width: 68rem) { body.relecture .pied { padding-right: calc(1rem + var(--souci-l)); } }

/* Le questionnaire : huit questions, un seul écran qui défile */
main.questionnaire h1 { font-weight: 600; }
main.questionnaire h1 b { font-weight: 700; }
main.questionnaire .chapo { color: var(--gris-texte); margin: -.4rem 0 1.4rem; }
main.questionnaire form.reprendre { margin: 0 0 1rem; }
main.questionnaire ol.questions { list-style: none; counter-reset: q; padding: 0; margin: 0; }
main.questionnaire .choix-question { counter-increment: q; border-top: 1px solid var(--line); padding: 1.1rem 0 1rem; }
main.questionnaire .choix-question:first-child { border-top: 0; }
main.questionnaire .intitule { font-weight: 600; font-size: 1.02rem; margin: 0 0 .55rem; }
main.questionnaire .intitule::before { content: counter(q) ". "; color: var(--muted); }
main.questionnaire .reponses { display: flex; flex-direction: column; gap: .4rem; }
main.questionnaire .reponses label { display: flex; gap: .55rem; align-items: baseline; cursor: pointer; line-height: 1.45; }
main.questionnaire .reponses input { margin: 0; accent-color: var(--accent); position: relative; top: .12rem; flex: none; }
main.questionnaire .reponses i { font-style: normal; background: var(--rem-bg); border-radius: var(--r-etiquette); padding: 0 .25rem; }
main.questionnaire .apres { color: var(--muted); font-size: .88rem; margin: .45rem 0 0; }
main.questionnaire .avant { color: var(--gris-texte); font-size: .9rem; margin: 0 0 .55rem; max-width: 44rem; }
/* ce que coûte un changement de choix, juste avant « Enregistrer » (A2, point 4) */
main.questionnaire .cout { margin: 1.4rem 0 0; color: var(--gris-texte); font-size: .92rem; }
main.questionnaire .cout + .boutons { margin-top: .7rem; }
main.questionnaire .exemple { display: grid; gap: .6rem; margin: .8rem 0 .2rem; font-size: .84rem; line-height: 1.45; }
main.questionnaire .exemple.presentations { grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: .74rem; }
main.questionnaire .exemple .version { border: 1px solid var(--line-forte); border-radius: var(--r-boite); padding: .55rem .75rem; color: var(--gris-texte); }
main.questionnaire .exemple .version.contribution { background: var(--rem-bg); border-color: transparent; }
main.questionnaire .exemple .version p { margin: .3rem 0; }
main.questionnaire .exemple .version ul { margin: .3rem 0; padding-left: 1.1rem; }
main.questionnaire .exemple .etiquette { display: block; font-size: .72rem; color: var(--muted); margin-bottom: .1rem; }
main.questionnaire .choix-question:has(input[value="2"]:checked) .version[data-pour="2"],
main.questionnaire .choix-question:has(input[value="1"]:checked) .version[data-pour="1"],
main.questionnaire .choix-question:has(input[value="complete"]:checked) .version[data-pour="complete"],
main.questionnaire .choix-question:has(input[value="paragraphes"]:checked) .version[data-pour="paragraphes"],
main.questionnaire .choix-question:has(input[value="aucune"]:checked) .version[data-pour="aucune"] {
  border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); color: var(--ink); }
main.questionnaire details.pourquoi { margin: .6rem 0 0; font-size: .88rem; }
main.questionnaire details.pourquoi summary { cursor: pointer; color: var(--lien); list-style: none; }
main.questionnaire details.pourquoi summary::-webkit-details-marker { display: none; }
main.questionnaire details.pourquoi p { color: var(--gris-texte); margin: .4rem 0 0; line-height: 1.55; max-width: 44rem; }
main.questionnaire .boutons { margin: 1.4rem 0 0; }
@media (max-width: 40rem) { main.questionnaire .exemple.presentations { grid-template-columns: 1fr; } }

/* La page de paramètres */
main.parametres ul.agendas-compte { list-style: none; padding: 0; margin: .3rem 0 0; }
main.parametres ul.agendas-compte li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
main.parametres ul.agendas-compte li:last-child { border-bottom: 0; }
main.parametres ul.agendas-compte li { padding: .8rem 0 1rem; }
main.parametres ul.agendas-compte .agenda-nom { display: block; font-weight: 600; margin: 0 0 .5rem; }
/* les huit choix, un par ligne, chacun en clair (C3, V2) : l'intitulé en gris, la réponse à côté ; l'un sous l'autre au téléphone */
main.parametres dl.choix-l { display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem; margin: 0 0 .7rem; font-size: .9rem; }
main.parametres dl.choix-l > div { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: .1rem 1rem; }
main.parametres dl.choix-l dt { color: var(--muted); }
main.parametres dl.choix-l dd { margin: 0; color: var(--ink); }
@media (max-width: 36rem) { main.parametres dl.choix-l > div { grid-template-columns: minmax(0, 1fr); } main.parametres dl.choix-l > div + div { margin-top: .3rem; } }
main.parametres ul.agendas-compte a { font-size: .88rem; text-decoration: none; }
main.parametres ul.agendas-compte a.modifier { font-weight: 600; }
main.parametres .lien-donnees { margin: 1.2rem 0 0; font-size: .86rem; }
main.parametres .lien-donnees a { color: var(--muted); }
/* Vos données (donnees.php, 10 octobre au soir, R-521) : le texte détaillé des données, derrière la connexion, à une
   largeur de lecture ; les intertitres et les listes comme dans les mentions d'avant */
main.reglages.donnees { max-width: 44rem; line-height: 1.55; font-size: .95rem; }
main.reglages.donnees h2 { font-size: 1.02rem; margin: 1.6rem 0 .2rem; }
main.reglages.donnees p, main.reglages.donnees ul { margin: .5rem 0 0; overflow-wrap: anywhere; }
main.reglages.donnees ul { padding-left: 1.2rem; }
main.reglages.donnees li + li { margin-top: .2rem; }
main.reglages.donnees .hint { color: var(--muted); font-size: .85rem; }

/* « Refaire cette fiche avec vos nouveaux choix », en tête de la fiche */
main.fiche .refaire { margin: .2rem 1.25rem .8rem; font-size: .88rem; }


/* La page Comptes : une carte par compte, tout au même endroit (David, 8 octobre) */
main.comptes .compte-carte h2 { font-size: 1.1rem; }
main.comptes .compte-carte h2 .muted { font-weight: 400; font-size: .88rem; }
main.comptes .champs-compte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .9rem; }
main.comptes .champs-compte label { display: block; min-width: 0; }
main.comptes .champs-compte input { width: 100%; }
main.comptes .agendas-compte { display: flex; flex-direction: column; gap: .15rem; margin: .1rem 0 .2rem; }
main.comptes .agenda-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; padding: .35rem 0;
  border-bottom: 1px solid var(--line); font-size: .93rem; }
main.comptes .agenda-ligne:last-child { border-bottom: 0; }
main.comptes .agenda-ligne label { display: flex; gap: .45rem; align-items: baseline; cursor: pointer; flex: 1 1 20rem; }
main.comptes .agenda-ligne input[type=checkbox] { accent-color: var(--accent); position: relative; top: .1rem; margin: 0; }
main.comptes .agenda-ligne input[disabled] + span { color: var(--gris-texte); }
main.comptes .reglage-couple { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-size: .85rem; }
main.comptes .reglage-couple select { font: inherit; font-size: .85rem; border: 1px solid var(--line-forte); border-radius: var(--r-btn);
  padding: .2rem .35rem; background: var(--card); color: var(--ink); }
main.comptes .reglage-couple a { text-decoration: none; }
/* ce que reçoit un administrateur par courriel (R-560), la case du super-administrateur (R-561) */
main.comptes .alertes-compte { flex-direction: column; flex-wrap: nowrap; gap: .3rem; margin: .2rem 0 .9rem; font-size: .93rem; }
main.comptes .alertes-compte label { align-items: baseline; min-width: 0; }
main.comptes .alertes-compte label span { min-width: 0; overflow-wrap: anywhere; }
main.comptes .alertes-compte input[type=checkbox] { accent-color: var(--accent); position: relative; top: .1rem; margin: 0; flex: none; }
main.comptes .alertes-compte p { margin: 0; font-size: .88rem; }
@media (max-width: 40rem) { main.comptes .champs-compte { grid-template-columns: 1fr; } }

/* Le réel : ce qu'il est advenu de l'envoi, en tête de la fiche suivante (inc/envoi.php) */
main.fiche .envoi-message { margin: .4rem 1.25rem .7rem; padding: .55rem .85rem; border-radius: var(--r-boite); background: var(--orange-bg);
  color: var(--orange-texte); font-size: .9rem; font-weight: 500; }

/* Fiches-test (BRIEF-OCTOBRE.md § 3) : la page est large, trois versions côte à côte. */
main.fiches-test { max-width: 90rem; }
.fiches-test .test-fiche { margin: 1.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line-forte); }
/* la fiche qui était OK au test précédent et ne l'est plus : c'est elle qu'on va regarder */
.fiches-test .etait-ok { color: var(--orange-texte); font-weight: 600; }
/* le sous-menu des tests : un bouton par test, le test ouvert comme le segment « Tout voir | L'essentiel » */
.fiches-test nav.tests { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1rem; }
.fiches-test nav.tests a { text-decoration: none; border: 1px solid var(--line-forte); border-radius: var(--r-btn);
  padding: .3rem .8rem; font-size: .9rem; color: var(--ink); }
.fiches-test nav.tests a.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; pointer-events: none; }
.fiches-test nav.tests form { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.fiches-test nav.tests .btn[disabled] { opacity: .45; cursor: default; }
.fiches-test .bilan { font-size: 1.05rem; margin: .4rem 0 1rem; }
.fiches-test .choix-test { margin: .2rem 0 1rem; }
.fiches-test .choix-test > summary { cursor: pointer; }
.fiches-test .jugees { margin: -.6rem 0 .3rem; color: var(--gris-texte); }
.fiches-test .aide-clavier { margin: 0 0 1rem; font-size: .82rem; color: var(--gris-texte); }
.verdict-champ.au-clavier { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r-btn); }
.fiches-test .test-fiche .numero-fiche { margin: 0 0 .1rem; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gris-texte); }
.fiches-test .test-fiche .suite-non-jugee { margin: .8rem 0 0; font-size: .9rem; }
.fiches-test .bloc-reglage > .etat { margin: 0 0 .7rem; color: var(--gris-texte); font-size: .9rem; line-height: 1.5; }
.fiches-test .etat.alerte { color: var(--orange-texte); }
.fiches-test .test-fiche h2 { font-size: 1.15rem; margin: 0 0 .2rem; }
.fiches-test .test-fiche h3 { font-size: .95rem; margin: 1rem 0 .3rem; color: var(--gris-texte); }
.fiches-test .test-fiche > .etat { margin: 0 0 .6rem; font-size: .9rem; color: var(--gris-texte); }
.fiches-test details.compagne { margin: .8rem 0 0; }
.fiches-test details.compagne summary { cursor: pointer; font-size: .95rem; }
/* les remarques laissées sur la copie par « Un souci ? » (Thomas en relisant), sous la fiche du test ; supprimer un test (12 octobre) */
.fiches-test .remarques-test { margin: .6rem 0 0; padding: .6rem .8rem; background: var(--jaune-clair); border-radius: 8px; font-size: .92rem; }
.fiches-test .remarques-test p { margin: .2rem 0; overflow-wrap: anywhere; }
.fiches-test .supprimer-test { margin: .2rem 0 .6rem; font-size: .9rem; }
.fiches-test .supprimer-test summary { cursor: pointer; color: var(--gris-texte); text-decoration: underline; }
.fiches-test .supprimer-test label { display: inline-flex; gap: .4rem; align-items: baseline; }
.fiches-test .boutons input[type="text"] { border: 1px solid var(--line-forte); border-radius: var(--r-btn); padding: .45rem .8rem; font: inherit; }

/* Une fiche en versions côte à côte (vue_fiche_colonnes()) : le champ garde son intitulé coloré
   de l'état le plus fort, mais le cartouche est sur chaque version, pas sur le champ entier
   (il colorerait la saisie du contributeur comme la proposition). */
.test-colonnes .champ[data-etat="vert"], .test-colonnes .champ[data-etat="orange"] { margin: 0; padding: .6rem 1.25rem .65rem;
  border: 0; border-radius: 0; background: none; }
.test-colonnes .champ[data-etat="vert"] + .champ, .test-colonnes .champ[data-etat="orange"] + .champ { border-top: 1px solid var(--line); }
.test-colonnes .versions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: .35rem; }
.test-colonnes .version { min-width: 0; padding: .6rem .8rem .7rem; border: 1.5px solid var(--line); border-radius: var(--r-boite);
  overflow-wrap: anywhere; }
.test-colonnes .version .qui { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: .3rem; }
.test-colonnes .version[data-etat="vert"] { background: var(--vert-bg); border-color: transparent; }
.test-colonnes .version[data-etat="orange"] { background: var(--orange-bg); border-color: transparent; }
.test-colonnes .version[data-etat="vert"] .qui { color: var(--vert-texte); }
.test-colonnes .version[data-etat="orange"] .qui { color: var(--orange-texte); }
.test-colonnes .valeur.une-ligne { font-size: 1.1rem; }
.test-colonnes .libre-a-part .etoffee { margin: 0; }
.test-colonnes .libre-corps.avec-source { display: block; }
/* ce que « Retirer les infos pratiques » a retiré et gardé, sous la description (Fiches-test, 13 octobre) */
.test-colonnes .infos-dites { margin: .35rem 1.25rem .6rem; font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.test-colonnes .infos-dites b { font-weight: 600; }
/* une question lue (Fiches-test) : les deux réponses en texte, rien à cocher */
.fiche .question.lue .reponse { display: inline-flex; align-items: center; padding: .25rem .6rem; border: 1px solid var(--line-forte);
  border-radius: var(--r-btn); background: var(--card); }
/* les champs identiques d'une version à l'autre, repliés sous une ligne : une case et :has(), sans script */
.test-colonnes .reste { display: block; cursor: pointer; }
.test-colonnes .reste input { position: absolute; opacity: 0; pointer-events: none; }
.test-colonnes .reste b { color: var(--lien); font-weight: 500; }
.test-colonnes .reste .coches { display: block; margin-top: .15rem; font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.test-colonnes .version .sommeil { margin: .3rem 0 0; font-size: .85rem; color: var(--muted); }
.test-colonnes.repliable:not(:has(.tout:checked)) .champ[data-identique="1"],
.test-colonnes.repliable:not(:has(.tout:checked)) .deplie,
.test-colonnes:has(.tout:checked) .replie { display: none; }
@media (max-width: 50rem) { .test-colonnes .versions { grid-template-columns: 1fr; } }

/* OK / Moyen / Pas OK (12 octobre ; Moyen le 13) : au bout de chaque ligne qui n'est pas repliée, une quatrième
   colonne étroite ; sous la ligne sur un écran étroit. Le verdict choisi est plein : OK en bleu nuit, Moyen en jaune
   (les jetons de « Un souci ? », jamais de rouge), Pas OK en orange ; sans verdict, cerclés.
   Le commentaire, toujours là, avec ou sans verdict (plus de verdict pour toute la fiche). Enregistrés sans recharger
   la page (assets/fiches-test.js) ; ce qui n'est pas parti le dit à côté, en orange. */
.test-colonnes .versions.avec-verdict { grid-template-columns: repeat(3, minmax(0, 1fr)) 12rem; }
.verdict-champ { display: flex; flex-direction: column; gap: .35rem; align-self: start; min-width: 0; }
.verdict-champ .v-boutons { display: flex; gap: .3rem; }
.verdict-champ button { flex: 1 1 auto; min-height: 32px; padding: 0 .45rem; border-radius: var(--r-btn); font-size: .85rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; }
.verdict-champ .v-mot { width: 100%; min-width: 0; border: 1px solid var(--line-forte); border-radius: var(--r-btn); padding: .35rem .5rem;
  font: inherit; font-size: .85rem; resize: none; field-sizing: content; min-height: 2rem; overflow: hidden; line-height: 1.3; }
.verdict-champ .v-etait { font-size: .78rem; color: var(--orange-texte); font-weight: 500; }
/* un OK repris du test précédent, la proposition n'ayant pas changé (R-750, 13 octobre) : dit en gris sous les boutons */
.verdict-champ .v-repris { font-size: .78rem; color: var(--gris-texte); line-height: 1.3; }
.verdict-champ .v-ok, .verdict-champ .v-moyen { background: var(--card); color: var(--ink); border: 1px solid var(--line-forte); }
.verdict-champ .v-pas-ok { background: var(--card); color: var(--orange-texte); border: 1px solid var(--orange-texte); }
.verdict-champ .v-ok:hover { background: var(--rem-bg); }
.verdict-champ .v-moyen:hover { background: var(--jaune-clair); border-color: var(--jaune-texte); }
.verdict-champ .v-pas-ok:hover { background: var(--orange-bg); }
.verdict-champ .v-ok[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.verdict-champ .v-moyen[aria-pressed="true"] { background: var(--jaune); border-color: var(--jaune-texte); color: var(--jaune-ink); }
.verdict-champ .v-moyen[aria-pressed="true"]:hover { background: var(--jaune-survol); }
.verdict-champ .v-pas-ok[aria-pressed="true"] { background: var(--orange-texte); border-color: var(--orange-texte); color: #fff; }
.verdict-champ .v-pas-ok[aria-pressed="true"]:hover { background: var(--orange-survol); border-color: var(--orange-survol); }
.verdict-champ[aria-busy="true"] .v-boutons { opacity: .7; }
.verdict-champ .v-erreur { color: var(--orange-texte); font-size: .82rem; font-weight: 500; }
.verdict-champ .v-erreur:empty { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .verdict-champ button { transition: background-color .15s, border-color .15s, color .15s; }
}
@media (max-width: 50rem) {
  .test-colonnes .versions.avec-verdict { grid-template-columns: 1fr; }
  .verdict-champ { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .verdict-champ .v-boutons { flex: 0 0 auto; }
  .verdict-champ button { flex: 0 0 auto; padding: 0 .9rem; }
  .verdict-champ .v-mot { flex: 1 1 10rem; width: auto; }
}

/* La connexion, la première configuration et « Une question ? » (login.php, setup.php, question.php) — B8, P1
   (10 octobre, maquettes/habillage/sigle.html, G0) : l'écran coupé en deux, une carte posée sur le fond gris pâle —
   à gauche le panneau bleu nuit uni (le logo en blanc, le sigle en toutes lettres sur la seule connexion, une icône en
   grand filigrane), à droite le formulaire. Sur téléphone, le panneau devient un bandeau au-dessus du formulaire,
   dans la même carte (pas d'aplat bord à bord : écarté par David). R-510, choisi par Claude, à confirmer. */
body.relecture.connexion { background: var(--rem-bg); }
/* le pied de page au bas de l'écran, pas au milieu sous la carte (B8, Q1, 10 octobre) : la page est une colonne
   d'au moins la hauteur de l'écran, la carte garde sa largeur et ses marges, le pied se pousse en bas */
body.relecture.connexion { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.relecture.connexion > .pied { margin-top: auto; }
body.relecture.connexion > main.connexion { flex: none; margin-bottom: 2.5rem; }
body.relecture main.connexion { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: calc(100% - 2rem);
  max-width: 54rem; min-height: 27rem; margin: 10vh auto 0; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-carte); overflow: hidden; box-shadow: 0 2px 6px rgba(20,25,35,.08); }
main.connexion .panneau { position: relative; overflow: hidden; background: var(--accent); color: #cfd7e8;
  padding: 2.4rem 2.2rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
main.connexion .panneau > :not(.filigrane) { position: relative; }
main.connexion .panneau .logo-amaden { font-size: 2.6rem; margin: 0; }
main.connexion .panneau .sigle-long { margin: 0; max-width: 21rem; font-size: 1.05rem; line-height: 1.5; color: #cfd7e8; }
main.connexion .filigrane { position: absolute; right: -2.6rem; bottom: -2.6rem; width: 13rem; height: 13rem;
  color: rgba(255,255,255,.07); pointer-events: none; }
main.connexion .filigrane svg { display: block; width: 100%; height: 100%; }
main.connexion .entree { padding: 2.4rem 2.2rem; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
main.connexion .entree h1, main.connexion .entree h2 { font-size: 1.3rem; letter-spacing: -.01em; margin: 0 0 .3rem; }
main.connexion .hint { color: var(--muted); font-size: .875rem; line-height: 1.5; margin: 0; }
main.connexion .err { background: var(--orange-bg); color: var(--orange-texte); border-radius: var(--r-boite); padding: .6rem .9rem; margin: .8rem 0 0; }
main.connexion form { display: flex; flex-direction: column; gap: .9rem; margin-top: 1rem; }
main.connexion label { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; font-weight: 600; }
main.connexion input, main.connexion textarea { font: inherit; font-weight: 400; color: var(--ink); border: 1px solid var(--line-forte);
  border-radius: var(--r-btn); padding: .55rem .7rem; background: var(--card); width: 100%; }
main.connexion input:focus, main.connexion textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--anneau); }
/* « Une question ? » (B8, 10 octobre) : le message s'agrandit avec son texte, comme les champs de la fiche ; le champ
   piège, hors de l'écran (pas display:none, que certains robots savent sauter), sauté au clavier ; le merci, sobre */
main.connexion textarea { min-height: 8.5rem; resize: vertical; field-sizing: content; line-height: 1.45; }
main.connexion .piege { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
main.connexion .merci { margin: .6rem 0 0; line-height: 1.5; overflow-wrap: anywhere; }
main.connexion button { height: 40px; margin-top: .2rem; border: 0; border-radius: var(--r-btn); background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; }
main.connexion button:hover { background: var(--accent-survol); }
main.connexion .aide { margin: 1rem 0 0; font-size: .85rem; color: var(--muted); }
main.connexion .aide { overflow-wrap: anywhere; }
main.connexion .aide a { color: var(--lien); }
/* Les mentions légales (mentions.php, B8, 10 octobre) : le même habit, en une colonne pour un texte à lire — le panneau
   en bandeau au-dessus, comme au téléphone, le logo seul (plus le sigle depuis le 10 octobre au soir, R-521) ; le texte
   à une largeur de lecture */
body.relecture main.connexion.mentions { grid-template-columns: minmax(0, 1fr); max-width: 46rem; min-height: 0; margin-top: 2rem; }
main.connexion.mentions .panneau { padding: 1.4rem 2.2rem 1.5rem; gap: .55rem; justify-content: flex-start; }
main.connexion.mentions .panneau .logo-amaden { font-size: 2rem; }
main.connexion.mentions .panneau .sigle-long { font-size: .95rem; max-width: 30rem; }
main.connexion.mentions .filigrane { width: 7.5rem; height: 7.5rem; right: -1.2rem; bottom: -1.8rem; }
main.connexion.mentions .entree { justify-content: flex-start; line-height: 1.55; font-size: .95rem; }
main.connexion.mentions .entree h2 { font-size: 1.02rem; margin: 1.6rem 0 .2rem; }
main.connexion.mentions .entree p, main.connexion.mentions .entree ul { margin: .5rem 0 0; overflow-wrap: anywhere; }
main.connexion.mentions .entree ul { padding-left: 1.2rem; }
main.connexion.mentions .entree li + li { margin-top: .2rem; }
main.connexion.mentions .entree a { color: var(--lien); }
main.connexion.mentions .aide { margin-top: 1.6rem; }
@media (max-width: 40rem) {
  body.relecture main.connexion { grid-template-columns: minmax(0, 1fr); min-height: 0; margin-top: 1rem; }
  main.connexion .panneau { padding: 1.2rem 1.25rem 1.3rem; gap: .55rem; justify-content: flex-start; }
  main.connexion .panneau .logo-amaden { font-size: 2rem; }
  main.connexion .panneau .sigle-long { font-size: .9rem; max-width: 26rem; }
  main.connexion .filigrane { width: 7.5rem; height: 7.5rem; right: -1.2rem; bottom: -1.8rem; }
  main.connexion .entree { padding: 1.4rem 1.25rem 1.5rem; }
  main.connexion.mentions .panneau { padding: 1.2rem 1.25rem 1.3rem; }
}
/* Le compte de démonstration (16 octobre) : son encart dans les Paramètres, « Recommencer », confirmé dessous */
.demo-encart { background: var(--accent-bg); border: 1px solid var(--line); border-radius: var(--r-boite); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.demo-encart p { margin: 0 0 .7rem; }
.recommencer summary { display: inline-block; cursor: pointer; list-style: none; }
.recommencer summary::-webkit-details-marker { display: none; }
.recommencer[open] summary { display: none; }
.recommencer form { display: grid; gap: .6rem; justify-items: start; }
.recommencer form p { margin: 0; color: var(--muted); }
