/* ===========================================================================
   diane.css — toute la mise en forme du site (piste C « Cabinet »)
   ---------------------------------------------------------------------------
   La palette part de la charte « canopée » v2 de la newsletter
   (mise_en_page.THEME et THEME_NUIT dans la veille), RÉCHAUFFÉE pour le
   site : papier ivoire, gris et encres tirés vers le vert du feuillage, et,
   en sombre, un vert de nuit au lieu du bleu-gris. La newsletter garde sa
   propre palette (THEME) : dans un email, c'est Gmail ou Outlook qui décide
   du fond. Les cartes posées sur la page (aperçu d'édition, sources,
   formulaires, champs) prennent --feuille, plus claire que --papier, comme
   une feuille sur un bureau. [Décision d'Elliot du 18/10/2026 ; avant : la palette exacte de THEME et THEME_NUIT.] Le mode
   sombre suit le réglage de l'appareil. Les polices IBM Plex (licence OFL)
   sont servies par le site lui-même : aucune ressource tierce n'est chargée.

   Il n'y a AUCUN style en ligne dans les gabarits : la politique de sécurité
   du contenu les refuse. Tout se règle ici.
   =========================================================================== */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../polices/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../polices/IBMPlexSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../polices/IBMPlexSerif-SemiBold.woff2") format("woff2"); }

/* --- Jetons ---------------------------------------------------------------- */
/* Palette réchauffée : décision d'Elliot du 18/10/2026.
   Avant, en clair : olive #5f7a2e, sauge #eef2e8, papier #ffffff, encre
   #1f2328, texte #3d434b, gris #5b6068, encadré #f4f7ef, objet #f7f8f5 ;
   --feuille n'existait pas (les cartes prenaient --papier, blanc).
   Contrastes recalculés (WCAG) : encre sur papier 15,54 ; texte 10,25 ; gris
   6,23 sur papier, 5,66 sur sauge ; forêt 8,42 ; olive 5,03 sur papier, 4,67
   sur encadré, 4,57 sur sauge (4,29 avant : le seul défaut AA, la pastille
   « résumé de la source » de la page Sources). */
:root {
  --foret: #2e5233;
  --foret-fonce: #1f3a24;
  --olive: #5a742b;
  --sauge: #ecf0e4;
  --papier: #fbf9f4;
  --feuille: #ffffff;
  --encre: #1c211d;
  --texte: #3a3f38;
  --gris: #5a5f56;
  --filet: #d8e0cc;
  --encadre: #eff2e7;
  --objet: #f7f6f0;
  --entete: #2e5233;
  /* Le voile vert posé sur le feuillage de l'en-tête et du pied (piste A,
     Elliot, 18/10/2026) : 88 % de vert forêt, assez pour que --entete-doux
     garde 4,6:1 même sur la tache la plus claire de l'image. */
  --voile: rgba(46, 82, 51, 0.88);
  --entete-texte: #ffffff;
  --entete-doux: #cfe0c4;
  --bouton-texte: #ffffff;
  --alerte: #a1261d;
  --alerte-fond: #fbeceb;
  --ok-fond: #eaf2e1;
  --repere: #fff1b8;
  --ombre: 0 20px 48px rgba(31, 35, 40, 0.10);

  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mail-serif: Georgia, "Times New Roman", serif;
  --mail-sans: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --largeur: 1200px;
  --etroit: 760px;
  --gouttiere: 40px;
  color-scheme: light dark;
}

/* Vert de nuit au lieu du bleu-gris : décision d'Elliot du 18/10/2026. Avant : sauge #12171d, papier #161b22, texte #c9cdd3, gris #98a1ac,
   filet #2b3442, encadré #1c232d, objet #1a2029. Si le sombre est écarté,
   n'y garder que --feuille, à #161b22. Contrastes recalculés : texte 11,28 ;
   gris 6,82 (6,21 sur encadré) ; forêt 8,84 ; olive sur encadré 9,33. */
@media (prefers-color-scheme: dark) {
  :root {
    --foret: #9fc286;
    --foret-fonce: #b9ce80;
    --olive: #b9ce80;
    --sauge: #111612;
    --papier: #151a16;
    --feuille: #1a201b;
    --encre: #e6e4dd;
    --texte: #cdd0c6;
    --gris: #9ea395;
    --filet: #2d3a30;
    --encadre: #1c231e;
    --objet: #19201b;
    --entete: #1d3123;
    --voile: rgba(29, 49, 35, 0.86);
    --entete-texte: #ffffff;
    --entete-doux: #b8cfa8;
    --bouton-texte: #10151b;
    --alerte: #f0928a;
    --alerte-fond: #33201e;
    --ok-fond: #1f2a1d;
    --repere: #4a4220;
    --ombre: 0 20px 48px rgba(0, 0, 0, 0.45);
  }
}

@media (max-width: 959px) { :root { --gouttiere: 28px; } }
@media (max-width: 639px) { :root { --gouttiere: 20px; } }

/* --- Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
/* Un élément masqué l'est vraiment, même si sa classe le met en flex. */
[hidden] { display: none !important; }
a { color: var(--foret); text-underline-offset: 0.18em; }
a:hover { color: var(--foret-fonce); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
h1 { color: var(--encre); }
h2, h3 { color: var(--foret); }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 2px; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding-left: var(--gouttiere); padding-right: var(--gouttiere); }
.conteneur--etroit { max-width: calc(var(--etroit) + 2 * var(--gouttiere)); }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: -9999px; top: 0; background: var(--papier); padding: 8px 14px; z-index: 10; }
.evitement:focus { left: 8px; top: 8px; }
.note { font-size: 14px; color: var(--gris); margin: 0; }
mark.repere { background: var(--repere); color: var(--encre); padding: 0 3px; border-radius: 3px; }
/* Relecture du 18/10/2026 : un passage proposé au retrait ({--…--}), barré en
   rouge, en attendant la décision d'Elliot. Ne doit jamais partir en ligne. */
del.a-retirer { color: #a1261d; background: #fbeceb; text-decoration: line-through; text-decoration-color: #a1261d; }
ins.a-ajouter { color: #2e6b2f; background: #e8f3e3; text-decoration: underline; text-decoration-color: #2e6b2f; }
@media (prefers-color-scheme: dark) {
  del.a-retirer { color: #f0928a; background: #33201e; text-decoration-color: #f0928a; }
  ins.a-ajouter { color: #a8d89a; background: #1f2a1d; text-decoration-color: #a8d89a; }
}

/* --- Boutons ------------------------------------------------------------------ */
.bouton {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 16px; line-height: 1.2;
  padding: 14px 24px; border-radius: 6px; text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; text-align: center;
}
.bouton--plein { background: var(--foret); color: var(--bouton-texte); }
.bouton--plein:hover { background: var(--foret-fonce); color: var(--bouton-texte); }
.bouton--contour { color: var(--foret); border-color: var(--foret); background: transparent; }
.bouton--contour:hover { background: var(--encadre); color: var(--foret); }
.bouton--clair { background: #ffffff; color: #2e5233; }
.bouton--clair:hover { background: #eef2e8; color: #1f3a24; }
.bouton--danger { background: var(--alerte); color: var(--papier); }
.bouton--petit { padding: 10px 16px; font-size: 15px; }
/* Un bouton désactivé (rien à envoyer, envoi en cours) doit se voir comme tel. */
.bouton:disabled, .bouton:disabled:hover { opacity: 0.4; cursor: not-allowed; }
.bouton--plein:disabled:hover { background: var(--foret); }
.bouton--contour:disabled:hover { background: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lien-fort { font-weight: 600; }

/* --- En-tête ------------------------------------------------------------------- */
/* Piste A (Elliot, 18/10/2026) : l'en-tête et le pied ne sont plus un aplat,
   mais le feuillage de la canopée sous un voile vert (--voile) : on devine les
   feuilles et la lumière, le menu reste aussi lisible. Le panneau
   du menu du téléphone prend le même fond, sans couture sous la barre. Le vert uni reste en
   dessous, si l'image ne se charge pas. */
.entete, .pied, .menu-tel__panneau {
  background: linear-gradient(var(--voile), var(--voile)),
              url("../images/diane-canopee-large-clair.jpg") center 40% / cover no-repeat,
              var(--entete);
}
@media (prefers-color-scheme: dark) {
  .entete, .pied, .menu-tel__panneau {
    background: linear-gradient(var(--voile), var(--voile)),
                url("../images/diane-canopee-large-sombre.jpg") center 40% / cover no-repeat,
                var(--entete);
  }
}
.entete { color: var(--entete-texte); }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.marque { display: flex; align-items: center; gap: 16px; color: var(--entete-texte); text-decoration: none; flex-shrink: 0; }
.marque__lettrage { display: block; height: 48px; width: auto; }
.marque__sous-titre { font-size: 14px; color: var(--entete-doux); padding-top: 6px; }
/* Resserrée le 09/11/2026 (liens à 12 px les uns des autres, 14,5 px de
   corps) pour que les huit pages, les deux accès et la langue tiennent dès
   1 180 px, sans écraser le lettrage (mesuré : 941 px de menu en français). */
.nav { display: flex; align-items: center; gap: 14px; }
.nav__liens { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.nav__liens a, .langues a { color: var(--entete-texte); text-decoration: none; font-size: 15px; white-space: nowrap; }
.nav__liens a { font-size: 14.5px; }
.nav__liens a:hover, .nav__liens a[aria-current="page"] { text-decoration: underline; color: var(--entete-texte); }
/* « Demander un accès », bouton clair dans la barre (Elliot, 18/10/2026) :
   plus précis que les liens du menu, il garde sa couleur et son fond. */
.nav a.nav__bouton { padding: 1px 7px 3px; font-size: 14px; border-radius: 5px; white-space: nowrap; }
.nav a.nav__bouton:hover, .nav a.nav__bouton[aria-current="page"] { text-decoration: none; }
/* Les boutons de l'en-tête (barre du bureau et bouton du téléphone) : un voile clair et translucide sur le feuillage, serré
   autour du texte, au lieu d'un rectangle blanc plein (Elliot, 27/11/2026 : « pas aussi flash »). */
.nav a.nav__bouton, .entete .entete__acces { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .38); color: #ffffff; }
.nav a.nav__bouton:hover, .nav a.nav__bouton[aria-current="page"], .entete .entete__acces:hover { background: rgba(255, 255, 255, .28); color: #ffffff; }
/* Les accès côte à côte (Elliot, 09/11/2026) : « Demander un accès » puis
   « Espace abonné », le même bouton clair (21/11/2026 : celui au trait se
   voyait moins). */
.nav__acces { display: flex; align-items: center; gap: 8px; }
/* Le choix de la langue : « FR » et un chevron ; les autres langues dans un
   petit menu sous lui (Elliot, 09/11/2026). */
.langue-menu { position: relative; }
.langue-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 6px 2px; font-size: 14px; font-weight: 600; color: var(--entete-texte); }
.langue-menu summary::-webkit-details-marker { display: none; }
.langue-menu[open] summary svg { transform: rotate(180deg); }
.langue-menu__liste { position: absolute; left: -8px; top: 100%; z-index: 6; list-style: none; margin: 0; padding: 2px 0 4px; background: var(--entete); border-radius: 0 0 6px 6px; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22); }
.langue-menu__liste a { display: block; padding: 5px 10px; color: var(--entete-texte); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.langue-menu__liste a:hover { background: rgba(255, 255, 255, 0.16); }
.langues { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--entete-texte); }
.langues li + li::before { content: "·"; margin: 0 6px; }
.langues [aria-current] { font-weight: 600; }

.menu-tel { display: none; }
.menu-tel summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--entete-texte); }
.menu-tel summary::-webkit-details-marker { display: none; }
.menu-tel__panneau {
  position: absolute; left: 0; right: 0; top: 76px; z-index: 5;
  padding: 8px var(--gouttiere) 24px; display: flex; flex-direction: column; gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.menu-tel__panneau ul { list-style: none; margin: 0; padding: 0; }
/* Le choix de la langue du menu du téléphone tient sur UNE ligne (trois langues depuis le 27/11/2026). */
.menu-tel__panneau .langues { display: flex; align-items: baseline; margin: 14px 0 4px; font-size: 16px; }
.menu-tel__panneau .langues li a { display: inline; padding: 0; border-bottom: 0; font-size: 16px; }
.menu-tel__panneau li a { display: block; padding: 10px 0; color: var(--entete-texte); text-decoration: none; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.entete { position: relative; }

/* Neuf onglets depuis le 17/10/2026 (« Pourquoi Diane ? », « Partenariat ») :
   mesuré à 1 280 px, le menu complet (onglets, FR · NL, « Espace abonné »)
   prend environ 945 px, et le sous-titre du lettrage 170 de plus. Le
   sous-titre cède donc la place dès que le sélecteur de langue ou un bouton
   sont là, et sous 1 280 px ; le menu du téléphone prend le relais sous
   1 180 px (avant : 1 100 et 960). Depuis le 18/10/2026, « Demander un
   accès » est un bouton de la barre : le sous-titre ne s'affiche donc plus
   (mesuré : 832 px de menu sans FR · NL + 279 px de lettrage et sous-titre
   > 1 120 px disponibles). */
.entete__barre:has(.nav .langue-menu, .nav .bouton) .marque__sous-titre { display: none; }
@media (max-width: 1279px) {
  .marque__sous-titre { display: none; }
}
@media (max-width: 1179px) {
  .nav { display: none; }
  .menu-tel { display: block; }
  .marque__lettrage { height: 40px; }
}
/* Sous 1 180 px, les onglets passent dans le menu du téléphone : « Demander
   un accès » reste visible à côté de lui, comme dans la barre (25/10/2026).
   Masqué sous 350 px, où la barre n'a plus la place. */
.entete__acces { display: none; }
@media (max-width: 1179px) {
  .entete__acces { display: inline-block; margin-left: auto; padding: 1px 7px 3px; font-size: 14px; border-radius: 5px; white-space: nowrap; }
}
/* En néerlandais, les libellés sont plus longs (969 px de menu contre
   944 en français, mesuré le 09/11/2026) : le menu du téléphone prend le
   relais dès 1 210 px. */
@media (max-width: 1209px) {
  html[lang="nl"] .nav { display: none; }
  html[lang="nl"] .menu-tel { display: block; }
  html[lang="nl"] .marque__lettrage { height: 40px; }
  html[lang="nl"] .entete__acces { display: inline-block; margin-left: auto; padding: 1px 7px 3px; font-size: 14px; border-radius: 5px; white-space: nowrap; }
}
@media (max-width: 639px) { .entete__barre { gap: 8px; } }
@media (max-width: 349px) { .entete__acces, html[lang="nl"] .entete__acces { display: none; } }

/* Site anglais : « la newsletter ne paraît qu'en français et en néerlandais » (27/11/2026). */
.mention-langues { margin: 0 0 16px; padding: 10px 14px; border-left: 3px solid var(--olive); background: var(--encadre); font-size: 14.5px; line-height: 1.5; color: var(--texte); }
.note.mention-langues { margin-top: 12px; }
.mention-langues--cadre { max-width: 1080px; margin-left: auto; margin-right: auto; }
.bandeau-langue { margin: 0; padding: 10px var(--gouttiere); background: var(--repere); color: var(--encre); font-size: 14px; text-align: center; }

/* --- Accueil : le héros et l'aperçu d'édition ----------------------------------- */
/* Espaces verticaux de l'accueil resserrés d'environ deux tiers (Elliot,
   18/10/2026) : autour du bandeau de feuillage, entre « Le besoin » et « Ce
   que fait Diane », et jusqu'à « Accès ». Avant : 96 / 96 / 104 / 104 / 72 px. */
/* L'accroche et l'aperçu un peu plus près de la barre (Elliot, 18/10/2026) : 88 -> 56 px. */
.heros { padding: 56px 0 32px; }
/* L'accroche s'aligne sur le HAUT de l'aperçu d'édition, pas sur son milieu (Elliot, 17/10/2026). */
.heros__grille { display: flex; flex-wrap: wrap; gap: 72px; align-items: flex-start; }
.heros__texte { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.heros h1 { margin: 0; font-size: 50px; line-height: 1.14; }
.chapo p { margin: 0; font-size: 19px; color: var(--texte); }
.heros .actions { margin-top: 6px; }

.apercu { flex: 1 1 400px; min-width: 0; margin: 0; }
/* --feuille au lieu de --papier, ici et sur les sept autres cartes et champs
   (.edition-cadre iframe, .source, .carte-formulaire, champs .formulaire,
   .demande textarea, .carte, .formulaire textarea) : décision d'Elliot du 18/10/2026. L'aperçu d'email, resté blanc, se pose
   sur le papier ivoire comme une feuille sur un bureau. */
.apercu__carte { background: var(--feuille); border: 1px solid var(--filet); border-radius: 10px; overflow: hidden; box-shadow: var(--ombre); }
.apercu__objet { padding: 12px 18px; background: var(--objet); border-bottom: 1px solid var(--filet); font-size: 13px; line-height: 1.5; color: var(--gris); }
.apercu__objet p { margin: 0; }
.apercu__objet strong { color: var(--encre); }
.apercu__sujet { color: var(--encre) !important; font-weight: 600; }
.apercu__corps { padding: 22px 26px 26px; font-family: var(--mail-sans); }
.apercu__logo { display: block; width: 100%; border-radius: 3px; }
.apercu__edition { margin: 8px 0 14px; text-align: center; font-size: 13px; color: var(--gris); }
.apercu__stitre { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.apercu__legende { margin-top: 12px; font-size: 13.5px; color: var(--gris); display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between; }
.apercu__legende a { font-weight: 600; }

/* Le sommaire de la newsletter (.som, .somt, .somf, .soml, .somss, .cpt) */
.som { background: var(--encadre) url("../images/diane-barre-v-clair.png") left top / 12px 384px repeat-y; padding: 12px 16px 14px 28px; }
.som p { margin: 0; }
.som__titre { font-family: var(--mail-serif); font-size: 16px; font-weight: 700; color: var(--foret); }
.som__famille { font-family: var(--mail-serif); font-size: 15px; font-weight: 700; color: var(--foret); margin-top: 12px !important; }
.som__source { font-size: 13px; line-height: 1.45; margin-top: 3px !important; }
.som__sous { font-size: 13px; line-height: 1.45; margin-top: 2px !important; padding-left: 14px; }
.som__lien { color: var(--encre); font-weight: 600; text-decoration: underline; text-decoration-color: var(--filet); }
.som__lien--maigre { font-weight: 400; }
.som__nombre { color: var(--olive); font-size: 14px; margin-left: 4px; }
@media (prefers-color-scheme: dark) {
  .som { background-image: url("../images/diane-barre-v-sombre.png"); }
}

/* Aussi fine que la lisière des pages intérieures (Elliot, 25/10/2026) : 28 px,
   20 au téléphone, même cadrage (center 45 %, .tete-page::after) ; c'est aussi
   l'épaisseur des bandes de la newsletter (592 × 28). À 60 px, elle se lisait
   comme une seconde barre (79 % des 76 px de l'en-tête). Avant : 60 / 32 px
   depuis le 17/10/2026, 120 / 64 à l'origine. */
.canopee img { display: block; width: 100%; height: 28px; object-fit: cover; object-position: center 45%; }

/* --- Accueil : le besoin, ce que fait Diane, le trio, l'accès ----------------------- */
.besoin { background: var(--sauge); }
.besoin__grille { display: flex; flex-wrap: wrap; gap: 64px; padding-top: 32px; padding-bottom: 40px; }
.besoin__texte { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.besoin__texte h2 { margin: 0; font-size: 36px; }
.besoin__texte p { margin: 0; font-size: 18px; line-height: 1.65; }
/* Les institutions en LISTE à puce-feuille plutôt qu'en boîtes bordées :
   décision d'Elliot du 18/10/2026. La puce est une petite
   feuille dessinée en CSS (un carré aux deux coins opposés arrondis), sans
   image ; elle suit l'olive, donc #b9ce80 en sombre. À 1 280 px, la liste
   passe d'environ 415 à 310 px de haut. Avant : gap 10px ; chaque li en
   boîte (fond --papier, filet, coins de 6 px, padding 10px 14px). */
.etiquettes { flex: 1 1 420px; min-width: 0; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 18px; align-content: start; }
.etiquettes li { position: relative; border-bottom: 1px solid var(--filet); padding: 7px 0 7px 20px; font-size: 15px; line-height: 1.35; }
.etiquettes li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 9px; height: 9px; border-radius: 0 50%; background: var(--olive); }

.fait { padding-top: 40px; padding-bottom: 40px; }
/* Le titre plus près de ses points (24 px) que les points des encarts (40) :
   décision d'Elliot du 18/10/2026. Avant : 48 px. */
.fait h2 { margin: 0 0 24px; font-size: 36px; }
.fait__points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px; }
.point { border-top: 3px solid var(--foret); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.point__numero { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1; color: var(--olive); }
.point h3 { margin: 0; font-size: 20px; line-height: 1.3; color: var(--encre); }
.point p { margin: 0; font-size: 16px; color: var(--texte); }

.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; padding-bottom: 40px; }
.encart { background: var(--encadre); border-radius: 8px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.encart h2 { margin: 0; font-size: 22px; }
.encart p { margin: 0; font-size: 16px; }
.encart__tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.encart__surtitre { font-size: 12px !important; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--olive); }
.encart--attente { margin: 8px 0 72px; }
.edition-cadre { margin: 8px 0 40px; }
.edition-cadre iframe { display: block; width: 100%; height: 80vh; min-height: 520px; border: 1px solid var(--filet); border-radius: 8px; background: var(--feuille); } /* --feuille : décision d'Elliot du 18/10/2026 */
/* Page Exemple (Elliot, 18/10/2026) : la légende et « Ouvrir en pleine page »
   sur une ligne AU-DESSUS du cadre ; moins d'espace entre l'introduction et
   « Comment la lire », et entre la liste et le cadre. */
.edition-cadre__tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin: 0 0 8px; font-size: 15px; }
.edition-cadre__titre { font-weight: 600; color: var(--encre); }
.edition-cadre__tete a { font-weight: 600; }
/* « .prose.prose--exemple » : plus précis que les règles générales de la
   prose, déclarées plus bas, qui l'emporteraient sinon. */
.prose.prose--exemple { padding-bottom: 0; }
.prose.prose--exemple h2 { margin-top: 24px; }
/* Presque rien entre « … fait foi » et la ligne de l'édition (Elliot, 18/10/2026). */
.prose.prose--exemple > :last-child { margin-bottom: 0; }
.prose--exemple + .edition-cadre { margin-top: 18px; }
.pastille { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--olive); border: 1px solid var(--olive); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }

.acces { background: var(--sauge); border-top: 1px solid var(--filet); }
.acces__grille { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; }
.acces__grille > div:first-child { flex: 1 1 420px; min-width: 0; }
.acces h2 { margin: 0 0 8px; font-size: 32px; }
.acces p { margin: 0; font-size: 18px; }

@media (max-width: 639px) {
  .heros { padding: 28px 0 24px; }
  .heros__grille { gap: 40px; }
  .heros h1 { font-size: 34px; }
  .chapo p { font-size: 17px; }
  .actions { flex-direction: column; align-items: stretch; }
  .apercu__corps { padding: 16px; }
  .canopee img { height: 20px; }
  .besoin__grille { gap: 28px; padding-top: 24px; padding-bottom: 28px; }
  .besoin__texte h2, .fait h2 { font-size: 28px; }
  .fait { padding-top: 28px; padding-bottom: 28px; }
  .fait h2 { margin-bottom: 20px; } /* décision d'Elliot du 18/10/2026 ; avant : 28px */
  .fait__points { gap: 32px; }
  .trio { gap: 16px; padding-bottom: 28px; }
  .encart { padding: 26px 22px; }
  .acces__grille { padding-top: 28px; padding-bottom: 28px; }
  .acces h2 { font-size: 26px; }
}

/* --- Pages de prose ----------------------------------------------------------- */
/* Une lisière de feuillage sous le titre de chaque page intérieure, à la
   place du filet du bas : la charte devient la signature de tout le site,
   pas seulement de l'accueil. Même image que le bandeau de l'accueil (déjà en
   cache), URL relative : la CSP img-src 'self' la couvre. La page Sources en
   est exemptée (tete-page--sources dans gabarits/sources.html) : chaque
   famille y ouvre déjà sur sa propre bande de 28 px ; elle garde le filet.
   Décision d'Elliot du 18/10/2026 (hauteur : 28 px). Avant : padding 56px 0 40px et un
   filet de 1 px en bas, aucune lisière. */
/* Moins d'espace entre la lisière et le texte (Elliot, 18/10/2026) : 48 -> 24 px, 32 -> 18 au téléphone. */
/* Le titre CENTRÉ entre la barre et la bande, et l'ensemble remonté (Elliot,
   18/10/2026) : mesuré sur les lettres, 43 px au-dessus et 34 px en dessous
   avec 36 / 24 ; avec 26 / 22, environ 33 px de chaque côté. Avant : 56 / 40. */
.tete-page { background: var(--sauge); padding: 26px 0 0; margin-bottom: 24px; }
.tete-page::after { content: ""; display: block; height: 28px; margin-top: 22px; background: url("../images/diane-canopee-large-clair.jpg") center 45% / cover no-repeat; }
.tete-page--sources { padding-bottom: 40px; border-bottom: 1px solid var(--filet); }
.tete-page--sources::after { content: none; }
@media (prefers-color-scheme: dark) {
  .tete-page::after { background-image: url("../images/diane-canopee-large-sombre.jpg"); }
}
/* Une bande différente par page (Elliot, 18/10/2026), comme chaque famille de
   l'édition a la sienne : les bandes de la newsletter, prises à des endroits
   différents de la canopée. La canopée reste la lisière par défaut (Tarifs,
   espace abonné). Le gabarit pose « tete-page--<page> ». */
.tete-page--methode::after { background-image: url("../images/diane-bande-legislation-clair.jpg"); }
.tete-page--ia::after { background-image: url("../images/diane-bande-jurisprudence-europeenne-clair.jpg"); }
.tete-page--exemple::after { background-image: url("../images/diane-bande-administration-clair.jpg"); }
.tete-page--pourquoi::after { background-image: url("../images/diane-bande-jurisprudence-belge-clair.jpg"); }
.tete-page--acces::after { background-image: url("../images/diane-bande-union-europeenne-clair.jpg"); }
.tete-page--qui::after { background-image: url("../images/diane-bande-doctrine-clair.jpg"); }
.tete-page--faq::after { background-image: url("../images/diane-bande-ocde-clair.jpg"); }
.tete-page--partenariat::after { background-image: url("../images/diane-bande-comptabilite-clair.jpg"); }
.tete-page--mentions::after { background-image: url("../images/diane-bande-legislation-clair.jpg"); }
.tete-page--confidentialite::after { background-image: url("../images/diane-bande-administration-clair.jpg"); }
@media (prefers-color-scheme: dark) {
  .tete-page--methode::after { background-image: url("../images/diane-bande-legislation-sombre.png"); }
  .tete-page--ia::after { background-image: url("../images/diane-bande-jurisprudence-europeenne-sombre.png"); }
  .tete-page--exemple::after { background-image: url("../images/diane-bande-administration-sombre.png"); }
  .tete-page--pourquoi::after { background-image: url("../images/diane-bande-jurisprudence-belge-sombre.png"); }
  .tete-page--acces::after { background-image: url("../images/diane-bande-union-europeenne-sombre.png"); }
  .tete-page--qui::after { background-image: url("../images/diane-bande-doctrine-sombre.png"); }
  .tete-page--faq::after { background-image: url("../images/diane-bande-ocde-sombre.png"); }
  .tete-page--partenariat::after { background-image: url("../images/diane-bande-comptabilite-sombre.png"); }
  .tete-page--mentions::after { background-image: url("../images/diane-bande-legislation-sombre.png"); }
  .tete-page--confidentialite::after { background-image: url("../images/diane-bande-administration-sombre.png"); }
}
.tete-page h1 { margin: 0; font-size: 40px; }
.tete-page__sous { margin: 8px 0 0; color: var(--gris); }
/* Moins d'espace entre la dernière ligne et le pied de page (Elliot,
   18/10/2026) : 72 + 16 px -> 32 px, sur toutes les pages de prose. */
.prose { font-size: 17.5px; line-height: 1.7; color: var(--texte); padding-bottom: 32px; }
.prose > :last-child { margin-bottom: 0; }
/* Un peu moins d'espace avant chaque partie (Elliot, 18/10/2026, page
   Méthode) : 48 -> 32 px avant un titre, 32 -> 24 avant un sous-titre. */
.prose h2 { font-size: 26px; margin: 32px 0 12px; }
.prose h3 { font-size: 19px; margin: 24px 0 8px; color: var(--encre); }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
/* La puce-feuille de « Le besoin » (.etiquettes) dans toutes les listes à
   puces de la prose : idée « chaleur » n° 1 du 18/10/2026, retenue le
   25/10/2026. Les listes numérotées, la table des questions de la FAQ (hors
   .prose) et les règles de l'espace abonné (.regles-rendues) n'en ont pas. */
.prose > ul { list-style: none; padding-left: 0; }
.prose > ul > li { position: relative; padding-left: 22px; }
.prose > ul > li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 9px; height: 9px; border-radius: 0 50%; background: var(--olive); }
.prose strong { color: var(--encre); }
.prose > :first-child { margin-top: 0; }
.prose--intro { padding-bottom: 0; margin-top: 16px; max-width: var(--etroit); }
.prose--intro p { margin-bottom: 10px; }
.prose--faq h2 { border-top: 1px solid var(--filet); padding-top: 28px; }
.prose--faq h2:first-child { border-top: 0; padding-top: 0; }
/* Depuis le 25/10/2026, une phrase renvoie à « Pourquoi Diane ? » avant la
   première rubrique : celle-ci garde son haut sans filet. */
.prose--faq > p:first-child + h2 { border-top: 0; padding-top: 0; }
/* La table des questions de la FAQ (Elliot, 17/10/2026) : chaque question
   est un lien vers sa réponse, rangée sous sa rubrique ; aucun script. */
.sommaire-faq { background: var(--encadre); border: 1px solid var(--filet); border-radius: 8px; padding: 22px 26px; margin: 0 0 40px; }
.sommaire-faq__titre { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--foret); margin: 0 0 8px; }
.sommaire-faq__rubrique { font-weight: 600; margin: 14px 0 4px; font-size: 15px; }
.sommaire-faq__rubrique a { color: var(--encre); }
/* Les questions, un peu décalées sous leur rubrique (Elliot, 18/10/2026). */
.sommaire-faq ul { list-style: none; margin: 0 0 0 18px; padding: 0; }
.sommaire-faq li { margin: 0 0 4px; font-size: 16px; line-height: 1.5; }
.prose--faq h2, .prose--faq h3 { scroll-margin-top: 16px; }
/* « Pourquoi Diane ? » ne se lit pas comme une seconde FAQ (25/10/2026) : les
   réserves du lecteur, déjà entre guillemets, portent un filet olive, comme
   une citation ; la table s'y arrête 16 px au-dessus, comme dans la FAQ. La
   page finit sur un vrai bouton (gabarits/pourquoi.html). */
.prose--pourquoi h3 { border-left: 3px solid var(--olive); padding-left: 14px; scroll-margin-top: 16px; }
/* Page « Qui est derrière Diane » : liens soulignés en pointillés, comme le
   nom du concepteur dans le pied — plus discret (Elliot, 25/10/2026). */
.prose--qui a { text-decoration: underline dotted; text-underline-offset: 0.25em; }
.prose--qui a:hover { text-decoration-style: solid; }
.actions--fin { padding-bottom: 32px; }
@media (max-width: 639px) {
  /* Lisière au téléphone : 20 px, 28 au-dessus. Décision d'Elliot du 18/10/2026 ; avant : padding 36px 0 28px. La page Sources, sans
     lisière, garde ses 28 px du bas (sans cette ligne, la règle du téléphone,
     plus bas que .tete-page--sources, les ramènerait à zéro). */
  .tete-page { padding: 18px 0 0; margin-bottom: 18px; }
  .tete-page::after { height: 20px; margin-top: 18px; }
  .tete-page--sources { padding-bottom: 28px; }
  .tete-page h1 { font-size: 30px; }
  .prose { font-size: 17px; }
}

/* --- Page Sources --------------------------------------------------------------- */
.legende-resumes { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.familles-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; font-size: 15px; }
.famille { padding-bottom: 56px; scroll-margin-top: 16px; }
.famille__bande img { display: block; width: 100%; height: 28px; object-fit: cover; border-radius: 3px; }
.famille h2 { font-size: 28px; margin: 18px 0 24px; }
.sources-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
/* --feuille (avant : --papier) : décision d'Elliot du 18/10/2026. */
.source { background: var(--feuille); border: 1px solid var(--filet); border-radius: 8px; padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 16px; }
.source h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.source p { margin: 0; }
.source__institution { font-size: 14px; color: var(--gris); }
.source__retient { font-size: 16px; color: var(--texte); line-height: 1.6; }
.source__pied { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: auto; padding-top: 6px; font-size: 14px; color: var(--gris); }
.source__lien { font-weight: 600; font-size: 15px; }
.resume { display: inline-block; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
.resume--ia { background: var(--foret); color: var(--bouton-texte); }
.resume--source { border: 1px solid var(--olive); color: var(--olive); }
.resume--aucun { border: 1px solid var(--filet); color: var(--gris); }
@media (max-width: 639px) {
  .sources-grille { grid-template-columns: 1fr; }
  .source { padding: 20px; }
}

/* --- Formulaires et espace abonné ------------------------------------------------ */
/* Cartes et champs sur --feuille (avant : --papier) : .carte-formulaire, les
   champs de .formulaire, .demande textarea, .carte, .formulaire textarea et
   .explorateur__filtre. Décision d'Elliot du 18/10/2026. */
.page-formulaire { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 64px; padding-bottom: 48px; }
.carte-formulaire { flex: 1 1 440px; max-width: 560px; background: var(--feuille); border: 1px solid var(--filet); border-radius: 10px; padding: 36px 40px; box-shadow: var(--ombre); }
.carte-formulaire h1 { margin: 0 0 16px; font-size: 30px; }
.carte-formulaire p { color: var(--texte); }
.formulaire { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.formulaire label { font-weight: 600; font-size: 15px; margin-top: 8px; }
.formulaire input[type="email"], .formulaire input[type="password"], .formulaire input[type="text"] {
  font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--filet); border-radius: 6px;
  background: var(--feuille); color: var(--encre); width: 100%;
}
.formulaire input:focus { border-color: var(--foret); outline: none; box-shadow: 0 0 0 3px rgba(95, 122, 46, 0.25); }
.formulaire input[readonly] { background: var(--encadre); color: var(--gris); }
.formulaire button { margin-top: 16px; align-self: flex-start; }
/* L'œil « Afficher le mot de passe » (07/11/2026, compte/_mot_de_passe.html) :
   posé dans le champ, à droite ; le champ garde la place de l'œil. */
.mdp { position: relative; display: block; }
.formulaire .mdp input { padding-right: 48px; }
.formulaire .mdp__voir { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); margin: 0;
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 6px; background: transparent; color: var(--gris); cursor: pointer; }
.formulaire .mdp__voir[hidden] { display: none; }
.formulaire .mdp__voir:hover { color: var(--foret); }
.formulaire .mdp__voir:focus-visible { outline: 2px solid var(--foret); outline-offset: 1px; }
.mdp__voir svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mdp__barre { position: absolute; }
.mdp__voir[aria-pressed="false"] .mdp__barre { display: none; }
/* Edge ajoute son propre œil : un seul suffit. */
.mdp input::-ms-reveal { display: none; }
.formulaire__conseil { margin: 0; font-size: 14px; color: var(--gris) !important; }
/* « Il vous reste N analyses aujourd'hui. » sous un bouton qui appelle l'IA
   (to-do B3, 08/11/2026) : un conseil, appuyé pour être lu avant le clic. */
.analyses-restantes { font-weight: 600; }
.formulaire__aide { margin: 20px 0 0; font-size: 15px; }
.formulaire__a-cote { flex: 1 1 260px; max-width: 360px; padding-top: 12px; color: var(--texte); }
.formulaire--ligne { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.formulaire--ligne fieldset { border: 0; margin: 0; padding: 0; display: flex; gap: 20px; }
.formulaire--ligne button { margin-top: 0; }
/* Demander un accès (Elliot, 09/10/2026) : le formulaire sous la prose ; le
   champ « site » est un piège à robots, caché aux humains. */
.demande { max-width: none; margin: 8px 0 48px; } /* 96 px avant le 18/10/2026 : moins d'espace avant le pied, comme les autres pages */
.demande h2 { margin: 0 0 8px; font-size: 24px; }
.demande__duo { display: flex; flex-wrap: wrap; gap: 0 16px; }
.demande__duo p { flex: 1 1 200px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.demande__motifs { border: 0; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.demande__motifs .choix { align-items: flex-start; line-height: 1.45; }
.demande__motifs .choix input { flex: none; margin-top: 2px; }
.demande__motifs legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 6px; }
.demande textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 1.5px solid var(--filet); border-radius: 6px;
  background: var(--feuille); color: var(--encre); width: 100%; resize: vertical; }
.piege { display: none; }
.choix { font-weight: 400 !important; margin-top: 0 !important; display: flex; align-items: center; gap: 8px; }
.choix input { accent-color: var(--foret); width: 18px; height: 18px; }

.message { padding: 12px 16px; border-radius: 6px; font-size: 15px; margin: 0 0 16px; }
.message--ok { background: var(--ok-fond); color: var(--encre); }
.message--erreur { background: var(--alerte-fond); color: var(--alerte); }

.tete-page--compte { margin-bottom: 40px; }
.espace { padding-bottom: 96px; }
.espace__intro { color: var(--texte); margin: 0 0 24px; }
.espace__compte { margin-top: 32px; }
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
/* min(…, 100%) : au téléphone (375 px), la colonne ne dépasse plus la
   gouttière (relecture du 18/10/2026). */
.cartes--deux { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); align-items: start; }
.cartes__colonne { display: flex; flex-direction: column; gap: 20px; }
.carte { background: var(--feuille); border: 1px solid var(--filet); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.carte h2 { margin: 0; font-size: 21px; }
.carte p { margin: 0; color: var(--texte); }
.carte__tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.carte--bientot { background: var(--encadre); border-style: dashed; }
.carte--proposer { background: var(--sauge); }
.carte--discrete h2 { font-size: 18px; color: var(--encre); }
.carte__etat { font-size: 15px; font-weight: 600; color: var(--encre) !important; }
.espace__note { margin-top: 32px; font-size: 15px; color: var(--gris); max-width: var(--etroit); }

/* Fil d'Ariane et éditions archivées */
.fil { font-size: 15px; color: var(--gris); margin-bottom: 10px; }
.fil a { color: var(--gris); }
/* « Se déconnecter », dans la barre du site à côté de « Mon espace »
   (Elliot, 08/11/2026) : un bouton de formulaire habillé comme un lien de
   la barre ; dans le menu du téléphone, comme ses liens. */
.deconnexion { margin: 0; }
.deconnexion__bouton { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; color: var(--entete-texte); white-space: nowrap; cursor: pointer; }
.deconnexion__bouton:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.menu-tel__panneau .deconnexion__bouton { font-size: 17px; padding: 6px 0; }
#retours { scroll-margin-top: 16px; }
/* Les étapes d'une carte en puces plutôt qu'en un paragraphe (Elliot, 08/11/2026). */
.carte__puces { margin: 0; padding-left: 1.2em; color: var(--texte); }
.carte__puces li + li { margin-top: 6px; }
.archives { list-style: none; margin: 0; padding: 0; max-width: var(--etroit); border-top: 1px solid var(--filet); }
.archives li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding: 14px 4px; border-bottom: 1px solid var(--filet); }
.archives > li > a { font-family: var(--serif); font-weight: 600; font-size: 19px; text-decoration: none; }
.archives > li > a:hover { text-decoration: underline; }
.archives__nombre { font-size: 15px; color: var(--olive); }
.archives__jour { font-size: 17px; color: var(--encre); }
.archives__jour::first-letter { text-transform: uppercase; }
.archives__editions { font-size: 16px; }
.archives__editions a { font-weight: 600; }

/* Pages de dépôt (arborescence, règles de nommage, matières) : l'outil
   d'abord, les explications ensuite, séparées par un filet et annoncées
   par une ligne discrète au-dessus de l'outil (Elliot, 18/10/2026). */
.prose--espace { max-width: var(--etroit); padding-bottom: 0; }
.depot { scroll-margin-top: 16px; }
.espace__renvoi { margin: -16px 0 20px; font-size: 15px; color: var(--gris); }
.espace__renvoi a { color: var(--gris); }
.espace__renvoi a:hover { color: var(--foret-fonce); }
.prose--explications { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--filet); scroll-margin-top: 16px; }
/* « Explications » dans la police des titres de rubrique (« Comment ça
   fonctionne ? »…), et des lignes plus longues, pour moins descendre
   (Elliot, 08/11/2026) : 980 px au lieu de 760, autour de 100 caractères. */
.prose--espace.prose--explications { max-width: 980px; }
.prose .explications__titre { margin: 0 0 4px; }
.carte h3 { margin: 8px 0 0; font-size: 17px; }
.branches { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--filet); }
.branches li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 0; border-bottom: 1px solid var(--filet); }
.branches__nom { font-weight: 600; color: var(--encre); }
.branches__nombre { font-size: 14px; color: var(--olive); margin-right: auto; }
.branches form { margin: 0; }
.explorateur__note { font-size: 13px; font-weight: 400; color: var(--olive); }
.prose--espace blockquote { margin: 0 0 16px; padding: 12px 16px; background: var(--encadre); border-left: 3px solid var(--olive); border-radius: 4px; font-size: 16px; }
.prose--espace blockquote p { margin: 0; }
.message--attente { background: var(--encadre); color: var(--encre); border: 1px solid var(--filet); }
.choix--long { align-items: flex-start; line-height: 1.5; margin-top: 8px !important; }
.choix--long input { flex: none; margin-top: 3px; }
.arbre-texte summary { cursor: pointer; color: var(--foret); font-size: 15px; }
.arbre-texte pre { max-height: 360px; overflow: auto; background: var(--encadre); border-radius: 6px; padding: 12px; font-size: 13px; line-height: 1.45; margin: 8px 0 0; }
.explorateur .message p { margin: 0 0 6px; color: inherit; }
.explorateur__racines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.explorateur__racines li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 600; }
.explorateur__titre { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--olive); }
.explorateur__etat { font-size: 15px; color: var(--texte); min-height: 1.6em; }
.arbre { list-style: none; margin: 0; padding: 0; max-height: 440px; overflow: auto; border: 1px solid var(--filet); border-radius: 6px; padding: 8px 6px; }
.arbre:empty { display: none; }
.arbre ul { list-style: none; margin: 0; padding-left: 22px; }
.arbre__ligne { display: flex; align-items: center; gap: 4px; padding: 1px 0; font-size: 15px; }
.arbre__ligne label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.arbre__ligne input { accent-color: var(--foret); width: 16px; height: 16px; }
.arbre__plier { width: 22px; height: 22px; flex: none; border: 0; background: none; color: var(--foret); cursor: pointer; padding: 0; font-size: 13px; }
.arbre__plier::before { content: "\25B8"; }
.arbre__plier[aria-expanded="true"]::before { content: "\25BE"; }
.arbre__plier:disabled { cursor: default; }
.arbre__plier:disabled::before { content: ""; }
.arbre--exclu > .arbre__ligne label { color: var(--gris); text-decoration: line-through; }
.arbre--exclu ul { opacity: 0.45; }
.arbre--plat { padding: 6px 10px; }
.sortes { border: 0; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sortes legend { font-weight: 600; font-size: 15px; margin-bottom: 6px; padding: 0; }
.sortes .choix { font-size: 15px; }
/* Mes matières (Elliot, 18/10/2026) : six groupes encadrés, la case « tout le
   groupe » en tête de chaque cadre, une courte description sous chaque
   matière, alignée sur son libellé (case de 18 px + 8 px d'écart). La case
   du groupe coche et décoche ses matières à l'écran (statique/js/matieres.js,
   Elliot, 19/10/2026). Classes propres : .sortes reste celle de nommage.html.
   Le nom du groupe est DANS le cadre, séparé des matières par un filet
   (Elliot, 19/10/2026 : posé sur la bordure, il « chevauchait le
   rectangle ») : une légende flottante n'est plus dessinée sur la bordure du
   fieldset, elle devient la première ligne de son contenu (et garde son rôle
   de nom du groupe pour les lecteurs d'écran). */
.matieres { max-width: var(--etroit); gap: 12px; }
.matieres__titre { margin: 8px 0 0; font-weight: 600; font-size: 15px; color: var(--encre); }
.matieres__aide { margin: 0; font-size: 14px; line-height: 1.5; color: var(--gris); }
.matieres__groupe { margin: 0; padding: 14px 20px 16px; border: 1px solid var(--filet); border-radius: 8px;
  background: var(--feuille); display: flex; flex-direction: column; gap: 12px; }
.matieres__groupe legend { float: left; width: 100%; margin: 0; padding: 0 0 12px; border-bottom: 1px solid var(--filet); }
.matieres .matieres__tout { font-size: 16px; }
.matieres__nom-groupe { font-weight: 600; color: var(--encre); }
.matieres__mention { font-size: 14px; color: var(--gris); }
.matiere .choix { font-size: 15px; align-items: flex-start; line-height: 1.4; }
.matiere .choix input { flex: none; margin-top: 1px; }
.matiere__description { margin: 2px 0 0 26px; font-size: 14px; line-height: 1.45; color: var(--gris); }
/* Fréquence des emails (Elliot, 11/11/2026) : deux cadres, comme les groupes
   de « Mes matières » — « Vos éditions » (deux boutons, et les cinq jours
   sous le second, en retrait) et « En plus » (le récapitulatif). Une case
   que le choix rend sans objet est grisée par statique/js/frequence.js. */
.frequence__jours { border: 0; margin: 0 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.frequence__jours legend { float: none; width: auto; padding: 0 0 6px; border: 0; font-size: 14px; color: var(--gris); }
.frequence__jours .choix { font-size: 15px; }
.matiere .choix:has(input:disabled), .frequence__jours .choix:has(input:disabled) { color: var(--gris); }
/* Les règles de nommage MISES EN FORME (nommage.regles_en_html) : titres
   abaissés (h3 à h6), listes, gras, code, tableau des règles par défaut. */
.regles-rendues { font-size: 15px; line-height: 1.55; word-break: break-word; }
.regles-rendues > :first-child { margin-top: 0; }
.regles-rendues h3, .regles-rendues h4, .regles-rendues h5, .regles-rendues h6 { margin: 18px 0 6px; line-height: 1.3; }
.regles-rendues h3 { font-size: 18px; }
.regles-rendues h4 { font-size: 16px; color: var(--foret); }
.regles-rendues h5, .regles-rendues h6 { font-size: 15px; }
.regles-rendues p { margin: 0 0 8px; }
.regles-rendues ul, .regles-rendues ol { margin: 0 0 10px; padding-left: 22px; }
.regles-rendues li { margin: 2px 0; }
.regles-rendues code { font-size: 13.5px; padding: 1px 5px; border-radius: 3px; }
.regles-rendues table { border-collapse: collapse; margin: 6px 0 12px; font-size: 14px; }
.regles-rendues th, .regles-rendues td { border: 1px solid var(--filet); padding: 4px 8px; text-align: left; }
.regles-rendues { max-height: 520px; overflow: auto; background: var(--encadre); border-radius: 6px; padding: 12px 14px; margin: 8px 0 12px; }
.regles-rendues code { background: var(--papier); }
.formulaire--nommage details textarea { margin-top: 6px; }
.formulaire .arbre label { font-weight: 400; margin-top: 0; font-size: 15px; }
.arbre--plat .arbre__ligne { cursor: pointer; gap: 8px; word-break: break-word; }
/* --feuille (avant : --papier) : décision d'Elliot du 18/10/2026. */
.formulaire textarea, .explorateur__filtre {
  font: inherit; font-size: 15px; padding: 10px 12px; border: 1.5px solid var(--filet); border-radius: 6px;
  background: var(--feuille); color: var(--encre); width: 100%;
}
.formulaire textarea { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 14px; line-height: 1.5; resize: vertical; }
.formulaire textarea:focus, .explorateur__filtre:focus { border-color: var(--foret); outline: none; box-shadow: 0 0 0 3px rgba(95, 122, 46, 0.25); }
.formulaire--nommage { margin-top: 20px; gap: 16px; }
.formulaire--nommage .carte h3 { margin: 12px 0 0; font-size: 17px; }
.carte--etat { max-width: var(--etroit); margin-bottom: 4px; }
.actions-nommage { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0; }
.actions-nommage .bouton { margin-top: 0; }
.arbre--tronque > .arbre__ligne label { color: var(--alerte, #9a3412); }
.signales { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.signales li { border-left: 3px solid var(--olive); padding: 2px 0 2px 10px; word-break: break-word; }
.signales__chemin { font-weight: 600; color: var(--encre); }
.signales__raison { font-size: 14px; color: var(--gris); }
.exemples-repli { margin: 10px 0 12px; font-size: 15px; background: var(--encadre); border-left: 3px solid var(--olive); padding: 8px 12px; border-radius: 0 4px 4px 0; }
.exemples-noms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.exemples-noms li { display: flex; flex-direction: column; gap: 2px; }
.exemples-noms__doc { font-size: 13px; color: var(--gris); }
.exemples-noms code { font-size: 14px; background: var(--encadre); padding: 6px 8px; border-radius: 4px; word-break: break-word; }
/* Les deux conventions de Diane, l'une sous l'autre, le même arrêt nommé
   selon chacune (Elliot, 06/11/2026). */
.conventions { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.conventions__choix { border-left: 3px solid var(--olive); padding: 2px 0 2px 12px; }
.conventions__choix p { margin: 0 0 6px; }
.conventions__titre { font-weight: 600; }
.conventions__choix code { display: block; font-size: 14px; background: var(--encadre); padding: 6px 8px; border-radius: 4px; word-break: break-word; }

@media (max-width: 639px) {
  .page-formulaire { padding-top: 32px; padding-bottom: 32px; }
  .carte-formulaire { padding: 26px 22px; }
  .carte { padding: 22px; }
  .formulaire button { align-self: stretch; }
  .matieres__groupe { padding: 12px 14px 14px; }
}

/* --- Pages simples (erreurs, outil local) ------------------------------------------ */
.page-simple { padding-top: 72px; padding-bottom: 48px; }
.page-simple h1 { font-size: 34px; margin: 0 0 12px; }
.code-erreur { font-family: var(--serif); font-size: 15px; color: var(--olive); margin: 0 0 8px; letter-spacing: 0.1em; }
.lettre { border: 1px solid var(--filet); border-radius: 8px; padding: 20px; margin: 20px 0; }
.lettre__tete { margin: 0 0 12px; font-size: 15px; }
.lettre__texte { white-space: pre-wrap; font-family: var(--sans); font-size: 15px; background: var(--encadre); padding: 16px; border-radius: 6px; margin: 0 0 12px; }

/* --- Pied de page -------------------------------------------------------------- */
.pied { color: var(--entete-texte); }
.pied__dedans { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 24px; }
.pied__lettrage { display: block; height: 40px; width: auto; align-self: flex-start; }
.pied__liens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; }
.pied__liens a { color: var(--entete-texte); text-decoration: none; font-size: 15px; }
.pied__liens a:hover { text-decoration: underline; color: var(--entete-texte); }
.pied__signature { margin: 0; font-size: 14px; color: var(--entete-doux); max-width: 640px; }
/* Le nom du concepteur mène à « Qui est derrière Diane » : souligné en
   pointillés, discret mais visible (Elliot, 18/10/2026). */
.pied__signature a { color: var(--entete-texte); text-decoration: underline dotted; text-underline-offset: 0.25em; }
.pied__signature a:hover { color: var(--entete-texte); text-decoration-style: solid; }
@media (max-width: 639px) {
  .pied__dedans { padding-top: 40px; padding-bottom: 40px; }
  .pied__liens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { .entete, .pied, .menu-tel, .actions { display: none; } body { font-size: 12pt; } }

/* --- Accueil : le rideau et la visite guidée (Elliot, 8-9/11/2026) ----------- */
/* La séquence jouée par statique/js/accueil.js à la place du héros. Rien de
   tout cela n'est visible sans le script : la scène n'apparaît qu'avec la
   classe rideau-joue, que le script pose sur la grille. Images en URL
   relative, comme ailleurs (CSP img-src 'self'). Maquette : Archive/
   maquette_accueil_20261108 de la veille (construire_maquette.py). */
.heros__grille { position: relative; }
.apercu__carte { position: relative; }
/* La petite carte est un aperçu : le sommaire de démonstration est long, il
   s'estompe en bas comme dans une fenêtre de messagerie. */
.apercu__corps { max-height: 560px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.som__trait { border-top: 3px solid var(--olive); margin: 10px 0 2px !important; height: 0; }
/* La scène a la hauteur du héros sur grand écran, mais jamais plus de 540 px. */
.scene { position: absolute; left: 0; right: 0; top: 0; height: min(100%, 540px); display: none; --pas: 180px; }
.rideau-joue .scene { display: block; }
.rideau-joue .heros__texte, .rideau-joue .apercu { opacity: 0; transition: none; }
.rideau-joue[data-etape="7"] .heros__texte, .rideau-joue[data-etape="7"] .apercu { opacity: 1; transition: opacity .6s ease; }
/* La carte n'apparaît qu'à l'arrivée de l'icône (data-carte posé par le script), puis se compose ligne à ligne. */
.rideau-joue[data-carte] .apercu { opacity: 1; transition: opacity .45s ease; }
.compose .ligne { opacity: 0; transition: opacity .3s ease; }
.compose.composee .ligne { opacity: 1; transition-delay: calc(var(--j) * .08s); }
.scene > * { position: absolute; opacity: 0; transition: opacity .5s ease, transform .5s ease; }
.scene__logo { left: 50%; top: 10%; width: min(24%, 220px); aspect-ratio: 446 / 194; margin-left: min(-12%, -110px); background: url("../images/diane-lettrage-vert.png") center / contain no-repeat; transform: translateY(3px); }
[data-etape="1"] .scene__logo { opacity: 1; transform: none; }
.scene__titre { left: 0; right: 0; top: 34%; margin: 0; text-align: center; font-family: var(--serif); font-weight: 600; font-size: 50px; line-height: 1.14; color: var(--encre); transform: translateY(4px); padding: 0 8%; text-wrap: balance; }
[data-etape="1"] .scene__titre { opacity: 1; transform: none; }
/* Le lettrage et le titre arrivent en fondu lent, presque sans glisser (Elliot, 27/11/2026 : ils « bondissaient ») ; ils repartent à l'allure ordinaire. */
[data-etape="1"] .scene__logo, [data-etape="1"] .scene__titre { transition: opacity 1.5s ease, transform 1.5s ease; }
/* Les sources : UNE colonne, serrée pour que quinze lignes tiennent dans 540 px ; l'intitulé en gras paraît le premier, 18 px à gauche des puces. */
.scene__sources { left: 18px; top: 50%; transform: translateY(-50%); width: 38%; margin: 0; padding: 0; list-style: none; }
.scene__sources li { position: relative; padding: 4px 0 4px 20px; font-size: 14px; line-height: 1.35; border-bottom: 1px solid var(--filet); opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
/* Le rang de chaque ligne donne son délai : l'intitulé d'abord, puis une source toutes les 160 ms (seize lignes au plus). */
.scene__sources li:nth-child(1) { transition-delay: 0.0s; }
.scene__sources li:nth-child(2) { transition-delay: 0.3s; }
.scene__sources li:nth-child(3) { transition-delay: 0.6s; }
.scene__sources li:nth-child(4) { transition-delay: 0.9s; }
.scene__sources li:nth-child(5) { transition-delay: 1.2s; }
.scene__sources li:nth-child(6) { transition-delay: 1.5s; }
.scene__sources li:nth-child(7) { transition-delay: 1.8s; }
.scene__sources li:nth-child(8) { transition-delay: 2.1s; }
.scene__sources li:nth-child(9) { transition-delay: 2.4s; }
.scene__sources li:nth-child(10) { transition-delay: 2.7s; }
.scene__sources li:nth-child(11) { transition-delay: 3.0s; }
.scene__sources li:nth-child(12) { transition-delay: 3.3s; }
.scene__sources li:nth-child(13) { transition-delay: 3.6s; }
.scene__sources li:nth-child(14) { transition-delay: 3.9s; }
.scene__sources li:nth-child(15) { transition-delay: 4.2s; }
.scene__sources li:nth-child(16) { transition-delay: 4.5s; }
.scene__sources li:nth-child(17) { transition-delay: 4.8s; }
.scene__sources li:nth-child(18) { transition-delay: 5.1s; }
.scene__sources li:nth-child(19) { transition-delay: 5.4s; }
.scene__sources li:nth-child(20) { transition-delay: 5.7s; }
.scene__sources li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 9px; height: 9px; border-radius: 0 50%; background: var(--olive); }
.scene__sources li.titre { font-weight: 600; font-size: 15px; padding-left: 0; margin-left: -18px; border-bottom: 0; padding-bottom: 6px; color: var(--encre); }
.scene__sources li.titre::before { display: none; }
[data-etape="2"] .scene__sources, [data-etape="3"] .scene__sources, [data-etape="4"] .scene__sources { opacity: 1; transform: translateY(-50%); }
[data-etape="2"] .scene__sources li, [data-etape="3"] .scene__sources li, [data-etape="4"] .scene__sources li { opacity: 1; transform: none; }
/* Les tiges partent de chaque source et avancent toutes en même temps vers Diane. */
.scene__tiges { left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
[data-etape="4"] .scene__tiges { opacity: 1; transition: none; }
[data-etape="5"] .scene__tiges { opacity: 0; }
.scene__tiges path { fill: none; stroke: var(--olive); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
[data-etape="4"] .scene__tiges path, [data-etape="5"] .scene__tiges path { animation: tige-avance 2s cubic-bezier(.35, 0, .25, 1) forwards; }
@keyframes tige-avance { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
/* Le lettrage « Diane » est le même objet du début à la fin : fondu à droite (3), reçoit les tiges (4), au centre-haut pour les verbes (5), à gauche pour l'envoi (6). */
.scene__lettrage { right: 6%; top: 50%; width: min(28%, 260px); aspect-ratio: 446 / 194; transform: translate(0, -50%) scale(.96); background: url("../images/diane-lettrage-vert.png") center / contain no-repeat; transition: opacity .7s ease, transform .7s ease, right .7s ease-in-out, top .7s ease-in-out; }
[data-etape="3"] .scene__lettrage, [data-etape="4"] .scene__lettrage, [data-etape="5"] .scene__lettrage, [data-etape="6"] .scene__lettrage { opacity: 1; transform: translate(0, -50%); }
[data-etape="5"] .scene__lettrage { right: calc(50% - min(14%, 130px)); top: 34%; }
[data-etape="6"] .scene__lettrage { right: 64%; top: 50%; }
/* Sous le lettrage, les quatre temps : chaque verbe arrive au centre, le suivant le pousse d'un pas vers la gauche ; la sous-ligne glisse avec lui. */
.scene__temps { left: 0; right: 0; top: calc(34% + 64px); height: 110px; transition: opacity .5s ease, top .7s ease-in-out; }
.scene__temps .temps { position: absolute; left: 50%; top: 0; width: var(--pas); margin-left: calc(var(--pas) / -2); text-align: center; opacity: 0; transform: translateY(8px); transition: opacity .35s ease .3s, transform .55s cubic-bezier(.4, 0, .25, 1), left .7s ease-in-out; }
.scene__temps .t { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.15; color: var(--encre); white-space: nowrap; }
/* La sous-ligne tient en trois ou quatre mots et se lit d'un coup d'oeil (Elliot, 27/11/2026 : « trop de texte, trop vite ») : plus grande, mais nettement sous le verbe. */
.scene__temps .s { margin: 8px auto 0; max-width: 172px; font-size: 17px; line-height: 1.35; color: var(--gris); text-wrap: balance; }
[data-etape="5"] .scene__temps { opacity: 1; }
[data-etape="5"][data-k="0"] .scene__temps .temps[data-k="0"] { opacity: 1; transform: translateX(0); }
[data-etape="5"][data-k="1"] .scene__temps .temps[data-k="0"] { opacity: 1; transform: translateX(calc(-1 * var(--pas))); }
[data-etape="5"][data-k="1"] .scene__temps .temps[data-k="1"] { opacity: 1; transform: translateX(0); }
[data-etape="5"][data-k="2"] .scene__temps .temps[data-k="0"] { opacity: 1; transform: translateX(calc(-2 * var(--pas))); }
[data-etape="5"][data-k="2"] .scene__temps .temps[data-k="1"] { opacity: 1; transform: translateX(calc(-1 * var(--pas))); }
[data-etape="5"][data-k="2"] .scene__temps .temps[data-k="2"] { opacity: 1; transform: translateX(0); }
[data-etape="5"][data-k="3"] .scene__temps .temps[data-k="0"] { opacity: 1; transform: translateX(calc(-3 * var(--pas))); }
[data-etape="5"][data-k="3"] .scene__temps .temps[data-k="1"] { opacity: 1; transform: translateX(calc(-2 * var(--pas))); }
[data-etape="5"][data-k="3"] .scene__temps .temps[data-k="2"] { opacity: 1; transform: translateX(calc(-1 * var(--pas))); }
[data-etape="5"][data-k="3"] .scene__temps .temps[data-k="3"] { opacity: 1; transform: translateX(0); }
/* L'envoi (étape 6, Elliot 10/11) : les trois premiers verbes s'effacent ; « vous écrit » suit Diane vers la gauche et se pose sous elle (Diane : right 64 %, largeur min(28 %, 260px) → son centre à 36 % moins une demi-largeur ; sa hauteur = largeur × 194/446), sans sa sous-ligne. */
[data-etape="6"] .scene__temps { opacity: 1; top: calc(50% + min(6%, 57px) + 10px); }
[data-etape="6"] .scene__temps .temps[data-k="3"] { opacity: 1; left: calc(36% - min(14%, 130px)); transform: translateX(0); transition-delay: 0s; }
/* Les trois premiers verbes gardent leur place de l'étape 5 et s'effacent sans attendre (Elliot, 11/11 : ils revenaient au centre et croisaient Diane). */
[data-etape="6"] .scene__temps .temps[data-k="0"] { transform: translateX(calc(-3 * var(--pas))); transition: opacity .3s ease; }
[data-etape="6"] .scene__temps .temps[data-k="1"] { transform: translateX(calc(-2 * var(--pas))); transition: opacity .3s ease; }
[data-etape="6"] .scene__temps .temps[data-k="2"] { transform: translateX(calc(-1 * var(--pas))); transition: opacity .3s ease; }
.scene__temps .s { transition: opacity .3s ease; }
[data-etape="6"] .scene__temps .temps[data-k="3"] .s { opacity: 0; }
@media (max-width: 1180px) { .scene { --pas: 135px; } .scene__temps .t { font-size: 24px; } .scene__temps .s { font-size: 14px; max-width: 130px; } }
.scene__lisiere { left: 18%; right: 18%; top: calc(34% + 190px); height: 28px; background: url("../images/diane-canopee-large-clair.jpg") center 45% / cover no-repeat; }
[data-etape="5"] .scene__lisiere { opacity: 1; }
/* L'envoi : une simple ligne se trace du lettrage vers la carte, l'icône de l'édition la suit sur la courbe (offset-path), et s'efface à l'arrivée. */
.scene__trajet { left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
[data-etape="6"] .scene__trajet { opacity: 1; }
.scene__trajet path { fill: none; stroke: var(--olive); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s cubic-bezier(.45, 0, .25, 1); }
.scene__trajet.trace path { stroke-dashoffset: 0; }
.scene__enveloppe { width: 38px; height: 42px; left: 0; top: 0; offset-rotate: 0deg; offset-distance: 0%; transition: opacity .3s ease, offset-distance 1.5s cubic-bezier(.45, 0, .25, 1); filter: drop-shadow(0 6px 10px rgba(28, 33, 29, .18)); }
[data-etape="6"] .scene__enveloppe.prete { opacity: 1; }
.scene__enveloppe.partie { offset-distance: 100%; }
[data-etape="6"] .scene__enveloppe.prete.arrivee { opacity: 0; transition: opacity .6s ease; }
.scene__enveloppe svg { display: block; width: 100%; height: 100%; }
.scene__enveloppe .page { fill: var(--feuille); stroke: var(--filet); stroke-width: 1; }
.scene__enveloppe .bandeau { fill: var(--foret); }
.scene__enveloppe .ligne { fill: var(--gris); opacity: .7; }
.scene__passer { position: absolute; right: var(--gouttiere); top: calc(min(100%, 540px) + 4px); z-index: 7; display: none; transition: opacity .4s ease; font-size: 13.5px; color: var(--gris); opacity: 1; background: none; border: 0; cursor: pointer; font-family: inherit; text-decoration: underline; padding: 4px 0; }
.rideau-joue .scene__passer { display: block; }
.rideau-joue[data-carte] .scene__passer { opacity: 0; pointer-events: none; }
.scene__passer:hover { color: var(--foret); }
@media (prefers-color-scheme: dark) {
  .scene__logo, .scene__lettrage { background-image: url("../images/diane-lettrage-blanc.png"); }
  .scene__lisiere { background-image: url("../images/diane-canopee-large-sombre.jpg"); }
}
/* La visite guidée : la carte devient l'édition de démonstration, large comme un email (640 px), centrée ; une souris dessinée la parcourt ; puis la carte revient à sa place. */
.visite__cadre { display: none; width: 100%; height: 560px; border: 0; background: #eef2e8; pointer-events: none; opacity: 0; transition: opacity .5s ease .3s; }
.rideau-joue.visite-joue, .rideau-joue.visite-fin { min-height: 660px; }
.visite-joue .apercu { position: absolute; left: 50%; margin-left: calc(min(100%, 642px) / -2); top: 0; width: min(100%, 642px); z-index: 3; }
.visite-joue .apercu__carte, .visite-fin .apercu__carte { transform-origin: top left; }
.visite-joue .apercu__corps { display: none; }
.visite-joue .visite__cadre, .visite-fin .visite__cadre { display: block; opacity: 1; }
/* Le retour (Elliot, 10/11) : la carte reprend sa taille de page, le corps (le sommaire) est de nouveau en place dessous, et l'édition, entière, réduite à l'échelle de la carte (transform posé par le script), la recouvre ; au dernier moment elle s'efface en fondu : plus de saut. */
.visite-fin .visite__cadre { position: absolute; left: 0; top: 0; transform-origin: top left; transition: opacity .6s ease; }
.visite-fondu .visite__cadre { opacity: 0; }
.visite-joue .apercu__legende, .visite-fin .apercu__legende { opacity: 0; }
.rideau-joue.visite-joue .scene, .rideau-joue.visite-fin .scene { opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.rideau-joue.visite-joue .scene__passer { opacity: 1; pointer-events: auto; top: auto; bottom: -34px; }
.visite__souris { position: absolute; left: 0; top: 0; width: 22px; height: 28px; z-index: 6; opacity: 0; pointer-events: none; transition: opacity .3s ease, left .9s cubic-bezier(.4, 0, .2, 1), top .9s cubic-bezier(.4, 0, .2, 1), transform .12s ease; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.visite__souris.visible { opacity: 1; }
.visite__souris.clic { transform: scale(.82); }
.visite__souris svg { display: block; width: 100%; height: 100%; }
.visite__souris path { fill: #1c211d; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .scene, .scene__passer, .visite__souris { display: none !important; } .rideau-joue .heros__texte, .rideau-joue .apercu { opacity: 1 !important; } .compose .ligne { opacity: 1 !important; } }

/* --- Le rideau et la visite sur TÉLÉPHONE et tablette (Elliot, 11/11/2026) : même séquence, en portrait. ---
   Diane en haut au centre reçoit les tiges par le bas ; les sources sur deux colonnes ; les verbes
   s'empilent sous Diane au lieu de glisser de côté ; la carte paraît sous eux ; pendant la visite elle
   prend toute la largeur et l'édition s'y remet en page à la taille du téléphone ; un rond translucide,
   le doigt qui touche, remplace la flèche de souris. accueil.js lit la même limite (899 px). */
@media (max-width: 899px) {
  /* Toute la séquence tient l'écran : quand la carte quitte le flux (étape 6), la grille ne se raccourcit pas et « Le besoin » ne remonte pas sous la scène (Elliot, 11/11). */
  .rideau-joue, .rideau-joue.visite-joue, .rideau-joue.visite-fin { min-height: calc(100vh - 60px); }
  .scene { height: min(100%, 620px); --pas: 0px; }
  .scene__titre { top: 30%; font-size: 30px; padding: 0 4%; }
  .scene__logo { top: 5%; width: 150px; margin-left: -75px; }
  .scene__sources { left: 0; right: 0; width: auto; top: 34%; transform: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; padding: 0 2px; }
  .scene__sources li { font-size: 12px; line-height: 1.3; padding: 2px 0 2px 14px; min-width: 0; }
  .scene__sources li::before { top: 7px; width: 7px; height: 7px; }
  .scene__sources li.titre { grid-column: 1 / -1; font-size: 14px; margin-left: 0; padding-left: 0; padding-bottom: 4px; }
  [data-etape="2"] .scene__sources, [data-etape="3"] .scene__sources, [data-etape="4"] .scene__sources { transform: none; }
  /* Diane : en haut au centre, du fondu (3) à l'envoi (6), sans glisser. */
  .scene__lettrage, [data-etape="5"] .scene__lettrage, [data-etape="6"] .scene__lettrage { right: auto; left: 50%; top: 5%; width: 170px; margin-left: -85px; transform: translate(0, 0) scale(.96); }
  [data-etape="3"] .scene__lettrage, [data-etape="4"] .scene__lettrage, [data-etape="5"] .scene__lettrage, [data-etape="6"] .scene__lettrage { transform: none; }
  /* Les quatre temps s'empilent sous Diane ; à l'envoi, les trois premiers s'effacent et « vous écrit » monte à leur place. */
  .scene__temps, [data-etape="6"] .scene__temps { top: calc(5% + 86px); height: 260px; }
  .scene__temps .temps { left: 0; right: 0; width: auto; margin-left: 0; transform: translateY(8px); transition: opacity .35s ease, top .55s cubic-bezier(.4, 0, .25, 1), transform .55s cubic-bezier(.4, 0, .25, 1); }
  .scene__temps .t { font-size: 24px; line-height: 1.1; }
  .scene__temps .s { margin-top: 2px; font-size: 15px; max-width: 260px; }
  .scene__temps .temps[data-k="0"] { top: 0; } .scene__temps .temps[data-k="1"] { top: 60px; } .scene__temps .temps[data-k="2"] { top: 120px; } .scene__temps .temps[data-k="3"] { top: 180px; }
  [data-etape="5"][data-k] .scene__temps .temps { transform: none; }
  [data-etape="5"][data-k="0"] .scene__temps .temps[data-k="0"],
  [data-etape="5"][data-k="1"] .scene__temps .temps[data-k="0"], [data-etape="5"][data-k="1"] .scene__temps .temps[data-k="1"],
  [data-etape="5"][data-k="2"] .scene__temps .temps[data-k="0"], [data-etape="5"][data-k="2"] .scene__temps .temps[data-k="1"], [data-etape="5"][data-k="2"] .scene__temps .temps[data-k="2"],
  [data-etape="5"][data-k="3"] .scene__temps .temps { opacity: 1; transform: none; }
  [data-etape="6"] .scene__temps .temps[data-k="0"], [data-etape="6"] .scene__temps .temps[data-k="1"], [data-etape="6"] .scene__temps .temps[data-k="2"] { transform: none; transition: opacity .3s ease; }
  [data-etape="6"] .scene__temps .temps[data-k="3"] { left: 0; top: 0; transform: none; }
  .scene__lisiere { display: none; }
  /* La carte paraît sous Diane et « vous écrit », sur toute la largeur ; pendant la visite elle monte en haut. */
  /* La carte est hors du flux pendant toute la séquence (sauf le retour final) : la grille garde la même hauteur du début à la fin, rien ne remonte ni ne descend sous la scène. */
  .rideau-joue:not([data-etape="7"]) .apercu { position: absolute; left: var(--gouttiere); right: var(--gouttiere); top: calc(5% + 190px); z-index: 3; }
  /* Pendant la visite la carte monte en haut (Elliot, 11/11 : elle restait sous Diane, un blanc entre l'en-tête et l'édition) ; la règle doit peser plus que celle de la carte à l'arrivée. */
  .rideau-joue.visite-joue .apercu { left: var(--gouttiere); right: var(--gouttiere); width: auto; margin-left: 0; top: 8px; }
  .visite__cadre { height: 66vh; }
  .scene__passer { top: calc(min(100%, 620px) + 4px); }
  .rideau-joue.visite-joue .scene__passer { top: calc(66vh + 100px); bottom: auto; }
  /* Le doigt : un rond translucide centré sur le point, qui grossit au toucher. */
  .visite__souris { width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(90, 116, 43, .35); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); filter: none; }
  .visite__souris svg { display: none; }
  .visite__souris.clic { transform: scale(1.35); background: rgba(90, 116, 43, .55); }
}

/* --- Chantier « site plus clair » (Elliot, 21/11/2026) ----------------------------
   Des pages qu'on parcourt sans tout lire : des fiches à dérouler (FAQ, Diane
   et l'IA), « Comment la lire » sur deux colonnes, l'infographie des
   nouveautés par source, la flèche de la page Sources. */

/* Une fiche à dérouler (contenu.replier) : le titre seul, puis sa réponse au clic. */
.fiche { border-top: 1px solid var(--filet); scroll-margin-top: 16px; }
.fiche:last-of-type, .fiche + :not(.fiche) { border-bottom: 0; }
.prose h2 + .fiche { border-top: 0; }
.fiche > summary { cursor: pointer; list-style: none; position: relative; padding: 13px 34px 13px 0; font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.35; color: var(--encre); }
.fiche > summary::-webkit-details-marker { display: none; }
.fiche > summary::after { content: "+"; position: absolute; right: 4px; top: 9px; font-family: var(--sans); font-weight: 400; font-size: 26px; line-height: 1.2; color: var(--olive); }
.fiche[open] > summary::after { content: "–"; }
.fiche > summary:hover { color: var(--foret); }
.fiche > :last-child:not(summary) { margin-bottom: 18px; }
.prose .fiche + h2 { margin-top: 36px; }
.prose--faq h2 { border-top: 0; padding-top: 0; }
.rubriques-nav { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 28px; font-size: 15px; }
.rubriques-nav a { border: 1px solid var(--filet); border-radius: 999px; padding: 5px 14px; background: var(--feuille); font-weight: 600; }
.rubriques-nav a:hover { border-color: var(--olive); }

/* « Comment la lire » (page Exemple) : deux colonnes côte à côte, une sous l'autre au téléphone. */
.prose--exemple { max-width: 1040px; }
.colonnes-lecture { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 12px 48px; margin-top: 8px; }
.colonnes-lecture h2 { font-size: 21px; margin: 12px 0 10px; }
.prose.prose--exemple .colonnes-lecture h2 { margin-top: 12px; }
.colonnes-lecture ul { list-style: none; padding-left: 0; font-size: 16.5px; line-height: 1.6; }
.colonnes-lecture li { position: relative; padding-left: 22px; }
.colonnes-lecture li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 9px; height: 9px; border-radius: 0 50%; background: var(--olive); }
.colonnes-lecture section > :last-child { margin-bottom: 0; }

/* L'infographie des nouveautés par source (_volumes.html) : une feuille posée
   sur la page, trois chiffres en serif, puis chaque famille de l'édition
   avec, pour barre, sa bande de feuillage. */
.volumes { background: var(--feuille); border: 1px solid var(--filet); border-top: 3px solid var(--foret); border-radius: 0 0 8px 8px; padding: 26px 30px 22px; margin: 8px 0 36px; }
.volumes h2 { margin: 0 0 4px; font-size: 24px; }
.volumes__chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 22px; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.volumes__chiffres div { padding: 14px 0 12px 18px; border-left: 1px solid var(--filet); display: flex; flex-direction: column; }
.volumes__chiffres div:first-child { border-left: 0; padding-left: 0; }
.volumes__chiffres dd { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 44px; line-height: 1.05; color: var(--foret); font-variant-numeric: tabular-nums; }
.volumes__chiffres dt { font-size: 14px; color: var(--gris); }
.volumes__familles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.volumes__familles p { margin: 0; }
.volumes__famille { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 5px !important; }
.volumes__famille span { font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--olive); }
.volumes__famille b { font-family: var(--serif); font-size: 19px; color: var(--encre); font-variant-numeric: tabular-nums; }
.volumes__barre { display: block; width: 100%; height: 12px; }
.volumes__barre rect { fill: var(--olive); }
.volumes__sources { margin-top: 5px !important; font-size: 14px; line-height: 1.5; color: var(--gris); }
.volumes__sources b { font-weight: 600; color: var(--texte); }
.volumes__bilan { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; margin-top: 24px; }
.volumes__bilan p { margin: 0; padding: 14px 18px; border: 1px solid var(--filet); border-radius: 8px; font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.3; color: var(--encre); display: flex; flex-direction: column; gap: 4px; }
.volumes__bilan span { font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris); }
.volumes__bilan .volumes__diane { background: var(--foret); border-color: var(--foret); color: var(--bouton-texte); }
.volumes__bilan .volumes__diane span { color: var(--entete-doux); }
.volumes__note { margin: 0 0 18px; font-size: 14px; color: var(--gris); }
.actions--fin { margin-top: 4px; }
@media (max-width: 639px) {
  .volumes { padding: 20px 18px 18px; }
  .volumes__chiffres dd { font-size: 32px; }
  .volumes__chiffres div { padding-left: 12px; }
}

/* Accueil : le chiffre du mois, sous « Le besoin ». */
.besoin__texte .besoin__chiffre { font-size: 16px; border-left: 3px solid var(--olive); padding-left: 14px; }
.besoin__chiffre a { font-weight: 600; white-space: nowrap; }

/* Page Sources : la flèche qui remonte, et le volume du mois dans la fiche. */
.famille h2 { display: flex; justify-content: space-between; align-items: baseline; }
.famille__haut { font-family: var(--sans); font-size: 18px; font-weight: 400; text-decoration: none; color: var(--olive); border: 1px solid var(--filet); border-radius: 999px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.famille__haut:hover { border-color: var(--olive); background: var(--encadre); }
.source .source__volume { font-size: 14px; font-weight: 600; color: var(--olive); }

/* Accueil : les trois boutons sur une ligne quand la place y est (Elliot, 22/11/2026). */
@media (min-width: 1180px) {
  .heros .actions { flex-wrap: nowrap; gap: 10px; }
  .heros .actions .bouton { white-space: nowrap; padding-left: 16px; padding-right: 16px; font-size: 15.5px; }
}

/* ==========================================================================
   Tableau de bord de l'administrateur (Elliot, 21/11/2026) : la tuile de
   « Mon espace », large comme deux cartes, et la page à onglets. Graphiques
   en SVG colorés ICI, par classe (la politique de sécurité refuse les
   attributs « style ») ; les couleurs suivent le thème clair ou sombre.
   ========================================================================== */
@media (min-width: 700px) { .carte--large { grid-column: span 2; } }
.carte--admin { border-color: var(--olive); }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin: 6px 0; }
.chiffres--grands { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 20px 0; }
.chiffre { display: flex; flex-direction: column; gap: 4px; background: var(--encadre); border-radius: 8px; padding: 12px 14px; }
.chiffres--grands .chiffre { background: var(--feuille); border: 1px solid var(--filet); padding: 16px 18px; }
.chiffre__nombre { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--foret); line-height: 1.1; }
.chiffre__libelle { font-size: 13.5px; color: var(--gris); }
.onglets { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--filet); margin: 8px 0 4px; }
.onglet { padding: 9px 16px; border-radius: 8px 8px 0 0; color: var(--texte); text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid transparent; margin-bottom: -1px; }
.onglet:hover { color: var(--foret); background: var(--encadre); }
.onglet--actif { color: var(--foret); background: var(--feuille); border-color: var(--filet); border-bottom-color: var(--feuille); }
.cartes--tableau { margin-top: 4px; }
.carte--attention { margin-top: 20px; }
.attention { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.attention__point { padding: 9px 12px; border-radius: 6px; border-left: 4px solid var(--olive); background: var(--encadre); color: var(--encre); }
.attention__point--alerte { border-left-color: var(--alerte); background: var(--alerte-fond); }
.attention__point--silence { border-left-color: #b08a1e; background: var(--repere); }
.tableau__factice { background: var(--repere); color: #1c211d; border-radius: 8px; padding: 10px 14px; font-weight: 600; }
.tableau__note { font-size: 13.5px; color: var(--gris) !important; }
.tableau__table { border-collapse: collapse; width: 100%; font-size: 15px; }
.tableau__table th, .tableau__table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--filet); }
.tableau__table td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--encre); }
.tableau__table thead th { font-size: 13px; color: var(--gris); text-align: right; }
.tableau__table thead th:first-child { text-align: left; }
.tableau__sous th { padding-left: 22px; font-weight: 400; color: var(--gris); }
.tableau__liste { margin: 0; padding-left: 1.1em; font-size: 14.5px; color: var(--texte); }
.tableau__liste li + li { margin-top: 4px; }
.tableau__discret { color: var(--gris); font-size: 13px; }
.graphe { width: 100%; height: auto; display: block; overflow: visible; }
.g-grille { stroke: var(--filet); stroke-width: 1; }
.g-axe { fill: var(--gris); font-size: 13px; font-family: var(--sans); }
.g-axe--limite { fill: var(--alerte); }
.g-limite { stroke: var(--alerte); stroke-width: 1.5; stroke-dasharray: 5 4; }
.g-libelle { fill: var(--texte); font-size: 15px; font-family: var(--sans); }
.g-valeur { fill: var(--encre); font-size: 15px; font-weight: 600; font-family: var(--sans); }
.g-barre--1 { fill: var(--foret); }
.g-barre--2 { fill: var(--olive); opacity: 0.55; }
.g-barre:hover { opacity: 0.8; }
.g-aire { fill: var(--foret); opacity: 0.08; }
.g-ligne { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.g-ligne--1 { stroke: var(--foret); }
.g-ligne--2 { stroke: var(--olive); stroke-dasharray: 6 4; }
.g-point { stroke: var(--feuille); stroke-width: 1.5; }
.g-point--1 { fill: var(--foret); }
.g-point--2 { fill: var(--olive); }
.carte .graphe + .legende, .legende { font-size: 13px; color: var(--gris) !important; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.legende__pastille { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 2px; }
.legende__pastille--1 { background: var(--foret); }
.legende__pastille--2 { background: var(--olive); opacity: 0.55; }
.g-case--vide { fill: var(--encadre); }
.g-case--nouveau, .legende__pastille--nouveau { fill: var(--foret); background: var(--foret); }
.g-case--silence, .legende__pastille--silence { fill: #d4a72c; background: #d4a72c; }
.g-case--alerte, .legende__pastille--alerte { fill: var(--alerte); background: var(--alerte); }
.graphe--grille { max-width: 760px; }
.graphe--horizontal { max-width: 900px; }
@media (max-width: 639px) { .chiffres--grands { grid-template-columns: repeat(2, 1fr); gap: 10px; } .chiffres--grands .chiffre { padding: 12px; } .chiffre__nombre { font-size: 24px; } .onglet { padding: 8px 10px; font-size: 14px; } }
/* Tableau de bord, la période et l'export (Elliot, 21/11/2026, plus tard). */
.periode { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 20px 0 8px; padding: 14px 16px; background: var(--feuille); border: 1px solid var(--filet); border-radius: 10px; }
.periode__raccourcis { display: flex; flex-wrap: wrap; gap: 6px; }
.periode__raccourci { font-size: 14px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--filet); color: var(--texte); text-decoration: none; }
.periode__raccourci:hover { border-color: var(--olive); color: var(--foret); }
.periode__raccourci--actif { background: var(--foret); border-color: var(--foret); color: var(--bouton-texte); }
.periode__dates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--texte); }
.periode__dates input { font: inherit; padding: 4px 6px; border: 1px solid var(--filet); border-radius: 6px; background: var(--papier); color: var(--encre); }
.periode__export { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.periode__libelle { flex-basis: 100%; margin: 0; font-size: 13.5px; color: var(--gris); }
.evolution { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--gris); vertical-align: middle; margin-left: 4px; }
.evolution--hausse { color: var(--foret); }
.evolution--baisse { color: var(--alerte); }
.tableau__defile { overflow-x: auto; }
.tableau__table--large { min-width: 640px; }
.tableau__table--large td { text-align: right; }
.tableau__total th, .tableau__total td { border-top: 2px solid var(--olive); font-weight: 700; }
.tableau__alerte { color: var(--alerte) !important; }
.tableau__silence { color: #9a7412 !important; }
.rapport__phrases { margin: 0; padding-left: 1.2em; font-size: 16px; line-height: 1.6; color: var(--encre); }
.rapport__phrases li + li { margin-top: 8px; }
.g-ligne--3 { stroke: #b08a1e; stroke-dasharray: 2 4; }
.g-point--3 { fill: #b08a1e; }
.legende__pastille--3 { background: #b08a1e; }
@media (max-width: 639px) { .periode__export { margin-left: 0; } }
@media print {
  .entete, .pied, .periode, .onglets, .tableau__factice { display: none !important; }
  .tableau .carte { break-inside: avoid; box-shadow: none; }
  body { background: #fff; }
}
/* Tableau de bord : la liste des lecteurs et le journal des alertes (Elliot, 21/11/2026, soir). */
.sous-onglets { display: flex; gap: 6px; margin: 18px 0 4px; }
.sous-onglet { font-size: 14.5px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--filet); color: var(--texte); text-decoration: none; font-weight: 600; }
.sous-onglet:hover { border-color: var(--olive); color: var(--foret); }
.sous-onglet--actif { background: var(--foret); border-color: var(--foret); color: var(--bouton-texte); }
.liste-lecteurs { margin-top: 14px; }
.recherche { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 14px; color: var(--texte); }
/* « + Ajouter un lecteur » (28/11/2026) : au bout de la ligne de recherche, à droite. */
.recherche__ajouter { margin-left: auto; }
.recherche select, .recherche input[type="search"] { font: inherit; padding: 6px 8px; border: 1px solid var(--filet); border-radius: 6px; background: var(--papier); color: var(--encre); }
.recherche__champ { flex: 1 1 260px; }
.recherche__champ input { width: 100%; box-sizing: border-box; font-size: 15px; padding: 8px 10px; }
.liste-lecteurs__compte { font-size: 14px; margin: 14px 0 8px; }
.lecteurs-fiches { border-top: 1px solid var(--filet); }
.lecteur-fiche { border-bottom: 1px solid var(--filet); }
.lecteur-fiche__ligne { display: grid; grid-template-columns: minmax(200px, 2.3fr) 0.6fr 1.3fr 1.3fr 1.6fr 0.7fr 1.1fr 1fr; gap: 10px; align-items: center; padding: 9px 6px; font-size: 14px; color: var(--encre); cursor: pointer; list-style: none; }
.lecteur-fiche__ligne::-webkit-details-marker { display: none; }
.lecteur-fiche__ligne:hover { background: var(--encadre); }
.lecteur-fiche[open] > .lecteur-fiche__ligne { background: var(--encadre); }
.lecteur-fiche__ligne--tete { cursor: default; font-size: 12.5px; color: var(--gris); font-weight: 600; }
.lecteur-fiche__ligne--tete:hover { background: none; }
.lecteur-fiche__qui { display: flex; flex-direction: column; min-width: 0; }
.lecteur-fiche__qui strong { font-weight: 600; }
.lecteur-fiche__adresse { color: var(--gris); font-size: 13px; overflow-wrap: anywhere; }
.lecteur-fiche__etiquette { display: none; }
.lecteur-fiche--archive .lecteur-fiche__ligne, .lecteur-fiche--desinscrit .lecteur-fiche__ligne { opacity: 0.65; }
.statut { font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--encadre); white-space: nowrap; }
.statut--actif { color: var(--foret); border: 1px solid var(--olive); }
.statut--en_attente { background: var(--repere); color: #1c211d; }
.statut--archive, .statut--desinscrit { color: var(--gris); border: 1px solid var(--filet); }
.statut--suspendu { background: var(--alerte-fond); color: var(--alerte); }
.lecteur-fiche--suspendu .lecteur-fiche__ligne { opacity: 0.8; }
.lecteur-fiche__gerer { grid-column: 1 / -1; margin: 14px 0 0 !important; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
/* La page « Gérer » (22/11/2026) : un formulaire par geste. */
.gerer__retour { font-size: 15px; margin: 0 0 18px; }
.gerer .geste { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--filet); }
.gerer .geste:first-of-type { border-top: 0; padding-top: 0; }
.gerer .geste button { margin-top: 8px; }
.gerer .geste__texte { margin: 0; font-size: 15px; }
/* « Ajouter un lecteur » et « Abonnements » (27/11/2026) : les champs date et
   nombre prennent l'allure des autres ; sur une période, les petits gestes
   (facturé, payé, effacer) se rangent en ligne, et passent à la ligne sur un
   téléphone. */
.gerer .formulaire input[type="date"], .gerer .formulaire input[type="number"] {
  font: inherit; font-size: 16px; padding: 10px 12px; border: 1.5px solid var(--filet); border-radius: 6px;
  background: var(--feuille); color: var(--encre); width: 100%; max-width: 240px;
}
.periode-abo { border-top: 1px solid var(--filet); padding: 14px 0 6px; }
.periode-abo:first-of-type { border-top: 0; padding-top: 4px; }
.periode-abo__titre { margin: 0 0 4px; font-weight: 600; }
.periode-abo__etat { margin: 0 0 6px; font-size: 15px; }
.periode-abo .formulaire--ligne { margin-top: 6px; gap: 8px 12px; }
.periode-abo .formulaire--ligne label { margin-top: 0; font-weight: 400; display: flex; align-items: center; gap: 6px; }
.periode-abo .formulaire--ligne input[type="text"] { width: 160px; padding: 8px 10px; }
.periode-abo .formulaire--ligne input[type="date"] { width: auto; padding: 8px 10px; }
.pastille--admin { font-size: 10.5px; padding: 1px 6px; margin-left: 4px; }
.lecteur-fiche__detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 6px 28px; padding: 12px 10px 20px; background: var(--feuille); }
.lecteur-fiche__detail h3 { font-size: 15px; margin: 10px 0 6px; color: var(--foret); }
.lecteur-fiche__detail dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
.lecteur-fiche__detail dt { color: var(--gris); }
.lecteur-fiche__detail dd { margin: 0; color: var(--encre); overflow-wrap: anywhere; }
.lecteur-fiche__detail p { font-size: 14px; margin: 0; }
.carte--pleine { grid-column: 1 / -1; }
.journal-alertes th, .journal-alertes td:nth-child(2), .journal-alertes td:nth-child(3) { white-space: nowrap; }
.tableau__table--large td:last-child { white-space: nowrap; }
.journal-alertes thead th { text-align: left; }
.journal-alertes td { text-align: left !important; font-weight: 400 !important; }
.journal-alertes td:nth-child(2), .journal-alertes td:nth-child(3) { font-weight: 600 !important; }
@media (max-width: 899px) {
  .lecteur-fiche__ligne { grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .lecteur-fiche__ligne--tete { display: none; }
  .lecteur-fiche__qui { grid-column: 1 / -1; }
  .lecteur-fiche__etiquette { display: inline; color: var(--gris); font-size: 12px; margin-right: 6px; }
  .lecteur-fiche__detail dl { grid-template-columns: 1fr; gap: 0 0; }
  .lecteur-fiche__detail dd { margin-bottom: 6px; }
}
/* Les abonnements (Elliot, 21/11/2026, nuit). */
.statut--abonne { background: var(--foret); color: var(--bouton-texte); }
.statut--abo-en_cours { color: var(--foret); border: 1px solid var(--olive); }
.statut--abo-a_venir { color: var(--gris); border: 1px solid var(--filet); }
.statut--abo-a_refacturer { background: var(--repere); color: #1c211d; }
.statut--abo-echu { background: var(--alerte-fond); color: var(--alerte); }
.abonnements th .lecteur-fiche__adresse { display: block; font-weight: 400; }
.abonnements td { vertical-align: top; }
.abonnements td:nth-child(2), .abonnements td:nth-child(3), .abonnements td:nth-child(7) { text-align: left !important; font-weight: 400 !important; }
.abonnements thead th { text-align: left; }

/* Espace abonné : les explications en fiches à dérouler (Elliot, 22/11/2026). Les titres des
   groupes (« Pas à pas »…) se font discrets, les fiches portent la lecture. */
/* Les titres de groupe se voient d'abord (Elliot, 27/11/2026) : serif, vert forêt, un filet dessous. */
.prose--explications h2:not(.explications__titre) { font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--foret); margin: 38px 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--foret); }
.prose--explications h2:not(.explications__titre) + .fiche { border-top: 0; }
.prose--explications .fiche > summary { font-size: 18px; padding-top: 11px; padding-bottom: 11px; }
.prose--explications > .fiche:first-of-type { margin-top: 18px; }

/* Essai « Enregistrer dans ce dossier » (27/11/2026), page jetable :
   gabarits/essai_dossier.html, statique/js/essai_dossier.js. */
.essai-dossier__champs input { width: 100%; max-width: 520px; padding: 8px 10px; font: inherit; }
.essai-dossier__boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.essai-dossier__journal { list-style: none; padding: 12px 16px; background: var(--encadre);
  border: 1px solid var(--filet); font-family: "IBM Plex Mono", Consolas, monospace; font-size: 14px;
  min-height: 3em; overflow-wrap: anywhere; }
.essai-dossier__journal li { margin: 4px 0; }
.essai-dossier__ok { color: var(--foret); }
.essai-dossier__erreur { color: var(--alerte); font-weight: 600; }
.essai-dossier__question { color: var(--olive); }
.essai-dossier__info { color: var(--gris); }
.essai-dossier__alerte { color: var(--alerte); background: var(--alerte-fond); padding: 8px 12px; }
.essai-dossier__etat { color: var(--gris); }
