/* ==========================================================================
   COMPTEUR DE CARACTÈRES PRO — style.css
   --------------------------------------------------------------------------
   Version : V26 (4.10.0) — 19/11/2026 (bloc « V26 nucleaire » avant le bloc généré « MOUVEMENT RÉDUIT » :
             « Lire plus » et lecture approfondie des mots du nucléaire dans l'onglet Dictionnaires ; relecture du
             code : au doigt, puce des Sources et des fiches citées alignée sur la première ligne, 44 px gardés)
   V25.1 (4.9.1) — 19/11/2026 (bloc « V25.1 blocnotes » avant le bloc généré « MOUVEMENT RÉDUIT » : longs
             textes du Bloc-notes — zone à hauteur fixe qui défile à l'intérieur au-delà de 20 000 caractères, ligne
             discrète « correcteur d'orthographe suspendu » sous la zone, 8 thèmes ; relecture : impression d'une note longue complète, ligne non imprimée)
   V25 (4.9.0) — 16/11/2026 (bloc « V25 fiabilite » avant le bloc généré « MOUVEMENT RÉDUIT » : ligne
             discrète « texte non gardé », réglage « Texte de l'onglet Analyse », case de l'anonymiseur, aide « Nouveautés » — relectures :
             44 px au doigt, thème Contraste compris ; phrases lues sans JavaScript (.contenu-statique) ;
             bloc « V25 admin » : règles de l'Administration DÉPLACÉES dans css/administration.css — page à part
             administration.html —, page masquée le temps de la redirection de l'ancienne adresse #administration ;
             bloc « V25 publication » : la licence du menu « Télécharger ▾ » se coupe au besoin — thème Terminal, 390 px ;
             avertissement santé de l'ergothérapie ouverte dans l'onglet Dictionnaires (.dico-avertissement) ;
             bloc « V25 connaissances » : ligne des licences du pied de page — « © 2025–2026 » en tête, lignes
             régulières —, liens de 44 px au doigt)
   V24 (4.8.0) — 15/11/2026 (suite du lot 3 : bloc « V24 miseenpage » à la place du bloc « V23 miseenpage »,
             avant le bloc généré « MOUVEMENT RÉDUIT » — onglet Dictionnaires dans le style du Bloc-notes : une carte
             par partie, panneau « Dictionnaires (n) » fait des composants de « Mes notes », dictionnaire ouvert à
             droite, « Télécharger ▾ » avec la licence, lignes « Arrive bientôt », mots en lignes ; 20 règles
             de l'ancienne disposition (V16-V17 : .dico__colonne, .dico__item, .dico__choisir…) retirées, plus
             utilisées)
   V23 (4.7.0) — 15/11/2026 (lot 3, Dictionnaires : bloc « V23 miseenpage » en fin de fichier, avant
             le bloc généré « MOUVEMENT RÉDUIT » — onglet Dictionnaires en quatre parties et sommaire, colonne
             des dictionnaires du site et des vôtres, terme français / sigle / anglais / terme officiel, partie
             « Mots » en lignes compactes, graphiques SVG des statistiques et leurs bulles, cibles de 44 px au
             doigt (téléphone et tablette tactile), 8 thèmes, content-visibility pour les longues listes)
   V22 (4.6.0) — 15/11/2026 (lot 2, Bloc-notes : blocs en fin de fichier, avant le bloc généré
             « MOUVEMENT RÉDUIT » — « V22 Présentation » (section Présentation du Bloc-notes), « V22 Sites »
             (champ « Site » de la note, fenêtres « Site », « Sites » et « Supprimer le site », catégories des
             sites, filtre et consigne de la carte), « V22 Panneau » (panneau « Mes notes » une ligne par rôle,
             recherche, menus, 8 thèmes), « V22 Infobulles dans les fenêtres » (bulle au-dessus d'une fenêtre))
   V21 (4.5.0) — 14/11/2026 (blocs « V21 … » en fin de fichier, avant le bloc généré « MOUVEMENT
             RÉDUIT ») ; V21, Notes rapides : lien de l'en-tête sans soulignement — bloc « V21 notes-rapides »
   V20 (4.4.0) — 04/11/2026 (IA et lisibilité : mots doublés, limites de l'anonymiseur, confort de
             lecture — bloc « V20 IA ET LISIBILITÉ » en fin de fichier ; Saviez-vous combien ? : objet 3D
             toujours entier, étagère d'une rangée sur téléphone, cibles tactiles, textes lisibles — bloc « SAVIEZ »)
             V20, comptage : lisibilité Kandel et Moles + LIX, étiquette « indicatif » des limites, unité de
             la limite personnalisée, crénage désactivé sur les deux couches de l'Analyse (lettres
             alignées) — bloc « V20 COMPTAGE » en fin de fichier
   V19 (4.3.0) — 04/11/2026 (boîte à idées et sa modération, portfolio en section et accueil progressif,
             exports MP4/WebM/GIF/PNG, filtre Thème de Saviez, groupes et sections des Caractères, glossaire traduit —
             blocs « V19 » en fin de fichier)
   V18 (4.2.0) — 03/11/2026 (Administration, Saviez-vous combien ?, Le texte s'amuse, Caractères —
             blocs « V18 » en fin de fichier)
   V17 (4.1.0) — 31/10/2026 (sous-onglets du Prototype, listes automatiques des Dictionnaires,
             liste de tâches, création de variables : aperçu et conventions — blocs « V17 » en fin de fichier)
   V14 (3.5.0) — 26/10/2026 (vues d'ensemble du Bloc-notes, synchronisation chiffrée)
   V13.1 (3.4.1) — 25/10/2026 (bandeau « Nos engagements » de « Comment ça marche ? »)
   V13 (3.4.0) — 25/10/2026 (bulle du premier clic sur le micro, zones de la
             Comparaison agrandies, protection des données)
   V12 (3.3.0) — 25/10/2026 (zones dédiées, calque de la dictée, voyant, pastille,
             visites guidées, portfolio, Markdown, schémas d'aide, visualiseur audio)
   V11 (3.2.0) et V10 (3.1.0) — 25/10/2026

   SOMMAIRE
     1.  Variables de couleurs et de dimensions (4 thèmes)
     2.  Base : remise à zéro, typographie, focus clavier
     3.  Boutons (hiérarchie visuelle)
     4.  Champs de formulaire
     5.  En-tête de la page
     6.  Disposition : statistiques à droite / en bas / masquées
     7.  Éditeur : carte, barre d'outils, zone de saisie, coloration
     8.  Statistiques et analyses
     9.  Groupes d'outils (accordéons) et panneaux à champs
         9 bis à 9 quater : personnalisation, onglets, comparaison, variables
         9 quinquies (V10) : Bloc-notes, menus, alertes, fenêtres, palette, mode focus
         9 sexies (V10)    : aides à l'écriture de l'Analyse (limites, SMS, repérages…)
     10. Succès et session
     11. Pied de page
     12. Fenêtres (dialogues)
     13. Notifications et infobulles
     14. Adaptation aux petits écrans
     15. Mouvement réduit et impression

   PRINCIPES DE LA V9 (réponse aux défauts relevés en V8)
     • Les boutons n'ont plus tous la même apparence : 5 styles distincts
       (principal, secondaire, danger, bascule, outil) + une couleur par
       famille d'outils (liseré à gauche et icône).
     • Les boutons ne sont plus collés : grille régulière avec 10 px d'écart
       et hauteur minimale de 40 px (cible facile à atteindre).
     • Plus d'animations qui déplacent les blocs au survol (la carte des
       statistiques « sautait » en V8) : seuls la couleur et le contour changent.
     • Angles peu arrondis (4 à 6 px), contrastes renforcés : tous les textes
       atteignent au moins 4,5:1 (norme WCAG AA) dans les 4 thèmes.
     • La V8 utilisait des classes (.accordion, .tool-btn, .tools-grid…)
       qui n'avaient AUCUNE règle CSS : c'était la cause principale des
       boutons identiques et collés. Toutes les classes sont définies ici.
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES (« jetons » de design)
   ========================================================================== */
/* Thème « Éditorial » (par défaut) : papier chaud, accent terre cuite. */
:root {
  --fond: #f7f4ee;
  --fond-carte: #ffffff;
  --fond-sourd: #f2eee6;          /* zones secondaires (barre d'outils, panneaux) */
  --fond-saisie: #fffdf9;         /* fond de la zone de texte */
  --texte: #1a1a1a;
  --texte-2: #444444;
  --texte-3: #636363;             /* texte discret : 5,3:1 sur la carte */
  --bordure: #e2dcd1;
  --bordure-forte: #bdb4a5;
  --accent: #b5473f;              /* 5,9:1 sur blanc */
  --accent-fort: #8b3a33;
  --accent-doux: #f7e4e1;
  --sur-accent: #ffffff;          /* texte posé sur l'accent */
  --danger: #b42318;
  --danger-doux: #fdecea;
  --succes: #067647;
  --avertissement: #b54708;
  --info: #1d4ed8;

  /* Couleur de chaque famille d'outils (liseré + icône). */
  --fam-nettoyage: #0f766e;
  --fam-transformation: #7c3aed;
  --fam-developpeur: #1d4ed8;
  --fam-export: #a15c07;
  --fam-generateur: #be185d;
  --fam-motsVides: #4d7c0f;

  /* Coloration du texte. */
  --c-voyelle: #c0392b;
  --c-consonne: #1f5fa8;
  --c-chiffre: #8a4b00;
  --c-chiffre-fond: rgba(243, 156, 18, 0.18);
  --c-ponctuation: #7b3fa0;
  --c-espace-fond: rgba(52, 152, 219, 0.22);

  /* Dimensions. */
  --rayon: 4px;
  --rayon-carte: 6px;
  --ombre: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.04);
  --ombre-forte: 0 8px 28px rgba(0, 0, 0, 0.16);
  --police-titre: 'Crimson Pro', Georgia, serif;
  --police: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --police-chiffres: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --largeur-max: 1320px;
  color-scheme: light;
}

/* Thème « Nocturne » : sombre, accent bleu. */
[data-theme="nocturne"] {
  --fond: #0f1419;
  --fond-carte: #1a1f29;
  --fond-sourd: #222834;
  --fond-saisie: #141921;
  --texte: #e6edf3;
  --texte-2: #b8c4d0;
  --texte-3: #94a1ae;
  --bordure: #2d333b;
  --bordure-forte: #4a5361;
  --accent: #6cb6ff;
  --accent-fort: #9ccdff;
  --accent-doux: #1b2b40;
  --sur-accent: #0b1220;
  --danger: #ff8a80;
  --danger-doux: #3a1a18;
  --succes: #4ade80;
  --avertissement: #fbbf24;
  --info: #93c5fd;
  --fam-nettoyage: #2dd4bf;
  --fam-transformation: #a78bfa;
  --fam-developpeur: #60a5fa;
  --fam-export: #fbbf24;
  --fam-generateur: #f472b6;
  --fam-motsVides: #a3e635;
  --c-voyelle: #ff8a80;
  --c-consonne: #82b1ff;
  --c-chiffre: #ffd180;
  --c-chiffre-fond: rgba(255, 209, 128, 0.15);
  --c-ponctuation: #d1a3ff;
  --c-espace-fond: rgba(130, 177, 255, 0.22);
  --ombre: 0 1px 2px rgba(0, 0, 0, 0.4);
  --ombre-forte: 0 8px 28px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* Thème « Nature » : verts doux. */
[data-theme="nature"] {
  --fond: #f1f6f2;
  --fond-carte: #ffffff;
  --fond-sourd: #e8f1eb;
  --fond-saisie: #fbfdfb;
  --texte: #16301f;
  --texte-2: #34503f;
  --texte-3: #4f6e5d;
  --bordure: #d0e2d7;
  --bordure-forte: #a3c1af;
  --accent: #2d7a4f;
  --accent-fort: #1d5a3f;
  --accent-doux: #e1f1e7;
  --sur-accent: #ffffff;
}

/* Thème « Technique » : neutre, accent orange (assombri pour la lisibilité :
   l'orange #ff6b35 de la V8 n'atteignait que 2,9:1 sur fond blanc). */
[data-theme="technique"] {
  --fond: #f5f5f5;
  --fond-carte: #ffffff;
  --fond-sourd: #efefef;
  --fond-saisie: #ffffff;
  --texte: #0a0a0a;
  --texte-2: #474747;
  --texte-3: #616161;
  --bordure: #dddddd;
  --bordure-forte: #b5b5b5;
  --accent: #c2410c;
  --accent-fort: #9a3412;
  --accent-doux: #fff0e8;
  --sur-accent: #ffffff;
  --rayon: 3px;
  --rayon-carte: 4px;
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--police);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--texte);
  background: var(--fond);
}

h1, h2, h3 { margin: 0; line-height: 1.25; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-fort); }

/* Contour de focus visible pour la navigation au clavier uniquement. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Lien d'évitement : invisible jusqu'à ce qu'on appuie sur Tab. */
.lien-evitement {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--sur-accent);
  border-radius: var(--rayon);
  text-decoration: none;
  font-weight: 600;
}
.lien-evitement:focus { top: 1rem; }

/* Texte réservé aux lecteurs d'écran. */
.visuellement-cache {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

[hidden] { display: none !important; }

.titre-section {
  font-family: var(--police-titre);
  font-size: 1.45rem;
  font-weight: 600;
}

.note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--texte-3);
}

.sans-js {
  margin: 2rem auto;
  padding: 1rem;
  max-width: 40rem;
  border: 1px solid var(--danger);
  color: var(--danger);
  text-align: center;
}

/* ==========================================================================
   3. BOUTONS — hiérarchie visuelle
   --------------------------------------------------------------------------
   .btn                → bouton secondaire (fond carte + contour)
   .btn--principal     → action principale d'une zone (fond accent plein)
   .btn--danger        → action destructive (rouge)
   .btn--discret       → action mineure (sans contour)
   .btn-bascule        → bouton enfoncé/relâché (aria-pressed)
   .btn-outil          → bouton d'outil (liseré de la couleur de sa famille)
   Modificateurs : --compact (plus petit), --icone (carré), --pleine-largeur
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--bordure-forte);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte);
  font: 500 0.9rem/1.2 var(--police);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn:hover { background: var(--fond-sourd); border-color: var(--texte-3); }
.btn:active { box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12); }
.btn:disabled,
.btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn:disabled:hover { background: var(--fond-carte); border-color: var(--bordure-forte); }

.btn--principal {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--sur-accent);
  font-weight: 600;
}
.btn--principal:hover { background: var(--accent-fort); border-color: var(--accent-fort); color: var(--sur-accent); }

/* Au repos : contour neutre, texte et icône rouges. Le rouge plein n'apparaît
   qu'au survol. Ainsi « Effacer » ne se confond pas avec un bouton enfoncé
   (dont le fond prend la couleur d'accent, proche du rouge dans le thème
   Éditorial). */
.btn--danger {
  color: var(--danger);
  border-color: var(--bordure-forte);
  background: var(--fond-carte);
}
.btn--danger:hover { background: var(--danger); border-color: var(--danger); color: var(--fond-carte); }

.btn--discret { border-color: transparent; background: transparent; color: var(--texte-2); }
.btn--discret:hover { background: var(--fond-sourd); border-color: var(--bordure); }

.btn--compact { min-height: 2.25rem; padding: 0.35rem 0.7rem; font-size: 0.85rem; }
.btn--icone { width: 2.5rem; padding: 0; }
.btn--pleine-largeur { width: 100%; margin-top: 0.75rem; }

/* Bouton bascule : l'état « enfoncé » est indiqué par la couleur ET par une
   coche (on ne transmet jamais une information par la couleur seule). */
.btn-bascule[aria-pressed="true"] {
  background: var(--accent-doux);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.btn-bascule[aria-pressed="true"]::after {
  content: '✓';
  font-weight: 700;
  color: var(--accent);
  margin-left: 0.1rem;
}

/* Bouton d'outil : pleine largeur de sa case, texte aligné à gauche,
   liseré coloré selon la famille (variable --famille définie par le groupe). */
.btn-outil {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--bordure);
  border-left: 3px solid var(--famille, var(--accent));
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte);
  font: 500 0.88rem/1.25 var(--police);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-outil:hover {
  background: var(--fond-sourd);
  border-color: var(--bordure-forte);
  border-left-color: var(--famille, var(--accent));
}
.btn-outil__icone { width: 1.1rem; flex-shrink: 0; text-align: center; color: var(--famille, var(--accent)); }

/* Couleur de famille pour chaque groupe (héritée par ses boutons). */
[data-groupe="nettoyage"] { --famille: var(--fam-nettoyage); }
[data-groupe="transformation"] { --famille: var(--fam-transformation); }
[data-groupe="developpeur"] { --famille: var(--fam-developpeur); }
[data-groupe="export"] { --famille: var(--fam-export); }
[data-groupe="generateur"] { --famille: var(--fam-generateur); }
[data-groupe="motsVides"] { --famille: var(--fam-motsVides); }

/* ==========================================================================
   4. CHAMPS DE FORMULAIRE
   ========================================================================== */
.champ {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--bordure-forte);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte);
  font: 0.92rem/1.3 var(--police);
}
.champ:hover { border-color: var(--texte-3); }
.champ:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.champ--compact { width: auto; min-height: 2.25rem; padding: 0.3rem 0.5rem; font-size: 0.88rem; }
select.champ { cursor: pointer; }

.champ-libelle {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--texte-2);
}
.champ-libelle--ligne { flex-direction: row; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

.case {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--texte-2);
  cursor: pointer;
}
.case input { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); cursor: pointer; }

/* ==========================================================================
   5. EN-TÊTE DE LA PAGE
   ========================================================================== */
.entete {
  background: var(--fond-carte);
  border-bottom: 1px solid var(--bordure);
}
.entete__contenu {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.entete__titre h1 {
  font-family: var(--police-titre);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.entete__titre p { color: var(--texte-3); font-size: 0.92rem; }
.entete__reglages {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}
.reglage {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.reglage__libelle {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--texte-3);
}

/* ==========================================================================
   6. DISPOSITION — statistiques à droite, en bas ou masquées
   ========================================================================== */
.principal {
  flex: 1;
  width: 100%;
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 1.5rem;
}

.disposition {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
.zone-editeur { grid-area: editeur; min-width: 0; }
.colonne-stats { grid-area: stats; min-width: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.zone-outils { grid-area: outils; min-width: 0; display: flex; flex-direction: column; gap: 0.75rem; }

/* À DROITE : le panneau reste visible pendant le défilement (« collant »),
   avec son propre ascenseur s'il est plus haut que l'écran. */
.disposition--droite {
  grid-template-columns: minmax(0, 1fr) 21.5rem;
  grid-template-areas:
    "editeur stats"
    "outils  stats";
}
.disposition--droite .colonne-stats {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding-right: 2px; /* évite que l'ascenseur ne mange le contour des cartes */
}

/* EN BAS : sous la zone de texte, en tuiles compactes. */
.disposition--bas {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "editeur" "stats" "outils";
}
.disposition--bas .colonne-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
  gap: 0.9rem;
  align-items: start;
}
.disposition--bas .carte--stats { grid-column: 1 / -1; }
.disposition--bas .liste-stats:not(.liste-stats--secondaire) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(10rem, 100%), 1fr));
  gap: 0.5rem;
}
.disposition--bas .liste-stats:not(.liste-stats--secondaire) .stat {
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 0.5rem 0.7rem;
}
.disposition--bas .liste-stats:not(.liste-stats--secondaire) dd { text-align: left; }
.disposition--bas .stat--principale { margin: 0; border: 1px solid var(--accent); }

/* MASQUÉES : toute la largeur pour le texte ; un résumé compact s'affiche
   sous la zone de saisie. */
.disposition--masquee {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "editeur" "outils";
}
.disposition--masquee .colonne-stats { display: none; }

/* ==========================================================================
   7. ÉDITEUR
   ========================================================================== */
.carte {
  background: var(--fond-carte);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-carte);
  box-shadow: var(--ombre);
}
.carte--editeur { padding: 1.1rem 1.2rem 1.2rem; }
.carte__entete {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-bottom: 0.75rem;
}
.carte__titre {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Indicateur de portée des outils. */
.portee { font-size: 0.82rem; color: var(--texte-3); }
.portee--selection {
  color: var(--accent-fort);
  font-weight: 600;
  background: var(--accent-doux);
  padding: 0.1rem 0.5rem;
  border-radius: var(--rayon);
}

/* Barre d'outils collante. */
.barre-outils {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem;
  margin-bottom: 0.75rem;
  background: var(--fond-sourd);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
}
.barre-outils__groupe { display: flex; gap: 0.35rem; align-items: center; }
.barre-outils__groupe--fin { margin-left: auto; }
.barre-outils__favoris {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  flex: 1 1 12rem;
  min-height: 2.25rem;
  padding-left: 0.5rem;
  border-left: 1px solid var(--bordure-forte);
}
.barre-outils__vide { font-size: 0.8rem; color: var(--texte-3); font-style: italic; }
.btn-favori {
  border-left: 3px solid var(--famille, var(--accent));
  max-width: 14rem;
}
.btn-favori span { overflow: hidden; text-overflow: ellipsis; }
.btn-favori i { color: var(--famille, var(--accent)); }

/* Zone de saisie et sa copie colorée.
   .texte-commun : typographie STRICTEMENT identique pour les deux couches,
   sinon les couleurs seraient décalées par rapport au texte tapé. */
.zone-saisie {
  position: relative;
  background: var(--fond-saisie);
  border-radius: var(--rayon);
}
.texte-commun {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--bordure-forte);
  border-radius: var(--rayon);
  font-family: var(--police);
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: normal;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  tab-size: 4;
}
.zone-texte {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 22rem;
  resize: vertical;
  background: transparent;
  color: var(--texte);
  caret-color: var(--texte);
}
.zone-texte::placeholder { color: var(--texte-3); font-style: italic; }
.zone-texte:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.surlignage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-color: transparent;
  color: var(--texte);
  pointer-events: none;
  display: none;
}
.zone-saisie.avec-surlignage .surlignage { display: block; }
.zone-saisie.avec-surlignage .zone-texte { color: transparent; }
.zone-saisie.avec-surlignage .zone-texte::selection { background: rgba(120, 120, 120, 0.3); color: transparent; }

/* Tailles de texte (réglage de l'en-tête). */
.zone-saisie[data-taille="petite"] .texte-commun { font-size: 0.9rem; }
.zone-saisie[data-taille="moyenne"] .texte-commun { font-size: 1rem; }
.zone-saisie[data-taille="grande"] .texte-commun { font-size: 1.15rem; }
.zone-saisie[data-taille="tres-grande"] .texte-commun { font-size: 1.35rem; }

/* Classes de coloration. */
.c-voyelle { color: var(--c-voyelle); }
.c-consonne { color: var(--c-consonne); }
.c-chiffre { color: var(--c-chiffre); background: var(--c-chiffre-fond); }
.c-ponctuation { color: var(--c-ponctuation); }
.c-espace { background: var(--c-espace-fond); }

/* Dépôt d'un fichier sur la zone de texte. */
.zone-saisie__depot {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 2px dashed var(--accent);
  border-radius: var(--rayon);
  background: color-mix(in srgb, var(--fond-carte) 88%, transparent);
  color: var(--accent-fort);
  font-weight: 600;
  pointer-events: none;
}
.zone-saisie--depot .zone-saisie__depot { display: flex; }

/* Résumé compact (statistiques masquées). */
.resume-compact {
  margin-top: 0.6rem;
  padding: 0.45rem 0.7rem;
  background: var(--fond-sourd);
  border-radius: var(--rayon);
  font-family: var(--police-chiffres);
  font-size: 0.85rem;
  color: var(--texte-2);
}

/* Barre de coloration. */
.coloration {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--bordure);
}
.coloration__titre { font-size: 0.85rem; font-weight: 600; color: var(--texte-2); margin-right: 0.25rem; }
.pastille {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}
.pastille--voyelle { background: var(--c-voyelle); }
.pastille--consonne { background: var(--c-consonne); }
.pastille--chiffre { background: var(--c-chiffre); }
.pastille--ponctuation { background: var(--c-ponctuation); }
.pastille--espace { background: var(--c-espace-fond); }

/* ==========================================================================
   8. STATISTIQUES ET ANALYSES
   ========================================================================== */
.carte--stats { padding: 1.1rem 1.2rem; }
.carte--stats .titre-section { margin-bottom: 0.6rem; }

.liste-stats { margin: 0; }
.stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--bordure);
}
.stat:last-child { border-bottom: none; }
.stat dt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--texte-2);
}
.stat dt i { width: 1rem; text-align: center; color: var(--accent); }
.stat dd {
  margin: 0;
  font-family: var(--police-chiffres);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--texte);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.stat__duree { font-size: 0.95rem !important; }
.stat__texte { font-family: var(--police) !important; font-size: 0.95rem !important; word-break: break-all; }

/* Statistique principale (caractères) mise en valeur, sans dégradé. */
.stat--principale {
  margin: 0 -0.6rem 0.2rem;
  padding: 0.65rem 0.6rem;
  background: var(--accent-doux);
  border-radius: var(--rayon);
  border-bottom: none;
}
.stat--principale dt { color: var(--texte); font-weight: 600; }
.stat--principale dd { font-size: 1.5rem; color: var(--accent-fort); }

.liste-stats--secondaire .stat { padding: 0.4rem 0; }
.liste-stats--secondaire .stat dt { font-size: 0.85rem; }
.liste-stats--secondaire .stat dd { font-size: 1rem; }

/* Carte Scrabble. */
.carte--scrabble { padding: 1rem 1.2rem; text-align: center; }
.carte--scrabble .carte__titre { justify-content: center; color: var(--texte-2); }
.scrabble__score {
  font-family: var(--police-chiffres);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
  margin: 0.3rem 0 0.1rem;
}
.scrabble__legende { font-size: 0.75rem; color: var(--texte-3); }

/* Panneaux repliables (analyses). */
.panneau-repliable {
  background: var(--fond-carte);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-carte);
}
.panneau-repliable__bascule {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  border: none;
  background: transparent;
  color: var(--texte);
  font: 600 0.92rem/1.2 var(--police);
  text-align: left;
  cursor: pointer;
  border-radius: var(--rayon-carte);
}
.panneau-repliable__bascule:hover { background: var(--fond-sourd); }
.panneau-repliable__bascule > i:first-child { color: var(--accent); width: 1rem; text-align: center; }
.panneau-repliable__corps { padding: 0.25rem 1rem 1rem; }
.chevron { margin-left: auto; color: var(--texte-3); transition: transform 0.2s; }
[aria-expanded="true"] > .chevron { transform: rotate(180deg); }

/* Jauge de lisibilité. */
.jauge { display: flex; align-items: center; gap: 0.75rem; }
.jauge__valeur {
  min-width: 3.2rem;
  font-family: var(--police-chiffres);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--texte);
}
.jauge__barre {
  flex: 1;
  height: 0.6rem;
  background: var(--fond-sourd);
  border: 1px solid var(--bordure);
  border-radius: 2px;
  overflow: hidden;
}
.jauge__remplissage { height: 100%; width: 0; background: var(--texte-3); transition: width 0.3s; }
.jauge--bon { background: var(--succes); }
.jauge--moyen { background: var(--avertissement); }
.jauge--faible { background: var(--danger); }
.analyse__niveau { margin: 0.5rem 0 0.3rem; font-weight: 600; }

/* Mots-clés. */
.liste-mots-cles { list-style: none; margin: 0; padding: 0; counter-reset: rang; }
.liste-mots-cles li {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--bordure);
  font-size: 0.9rem;
  counter-increment: rang;
}
.liste-mots-cles li::before { content: counter(rang); font-family: var(--police-chiffres); font-size: 0.75rem; color: var(--texte-3); }
.liste-mots-cles .liste-mots-cles__vide { display: block; color: var(--texte-3); border-bottom: none; }
.liste-mots-cles .liste-mots-cles__vide::before { content: none; }
.mot-cle__mot { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.mot-cle__densite { font-family: var(--police-chiffres); font-size: 0.8rem; color: var(--texte-3); }
.mot-cle__nombre {
  font-family: var(--police-chiffres);
  font-size: 0.8rem;
  padding: 0.1rem 0.45rem;
  background: var(--accent-doux);
  color: var(--accent-fort);
  border-radius: var(--rayon);
}

/* Tonalité. */
.tonalite { display: flex; align-items: center; gap: 0.9rem; padding: 0.4rem 0 0.6rem; }
.tonalite__icone { font-size: 2.2rem; color: var(--texte-3); }
.tonalite--positif, .tonalite--plutotPositif { color: var(--succes); }
.tonalite--negatif, .tonalite--plutotNegatif { color: var(--danger); }
.tonalite__score { font-family: var(--police-chiffres); font-size: 0.85rem; color: var(--texte-3); }

/* ==========================================================================
   9. GROUPES D'OUTILS ET PANNEAUX À CHAMPS
   ========================================================================== */
.groupe {
  background: var(--fond-carte);
  border: 1px solid var(--bordure);
  border-left: 4px solid var(--famille);
  border-radius: var(--rayon-carte);
}
.groupe__entete { display: flex; align-items: stretch; }
.groupe__bascule {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  min-height: 3rem;
  padding: 0.65rem 1rem;
  border: none;
  background: transparent;
  color: var(--texte);
  text-align: left;
  cursor: pointer;
  border-radius: var(--rayon-carte);
}
.groupe__bascule:hover { background: var(--fond-sourd); }
.groupe__icone { width: 1.2rem; text-align: center; color: var(--famille); font-size: 1.05rem; }
.groupe__titre { font: 600 1rem/1.2 var(--police); }
.groupe__description { font-size: 0.82rem; color: var(--texte-3); }
.groupe__corps { padding: 0.25rem 1rem 1rem; }

/* Grille d'outils : cases de largeur régulière, espacées de 10 px.
   (En V8, la classe .tools-grid n'existait pas dans le CSS : les boutons
   se suivaient en ligne, séparés d'un simple espace.) */
.grille-outils {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(12.5rem, 100%), 1fr));
  gap: 0.625rem;
}
.grille-outils:empty { display: none; }

/* Panneaux avec champs (rechercher, préfixe, générateur, import…). */
.panneau-outil {
  margin-bottom: 0.9rem;
  padding: 0.9rem 1rem;
  background: var(--fond-sourd);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
}
.panneau-outil--leger { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.panneau-outil__titre {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font: 600 0.92rem/1.3 var(--police);
  margin-bottom: 0.7rem;
}
.panneau-outil__titre i { color: var(--famille); }
.panneau-outil__champs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  gap: 0.75rem;
}
.panneau-outil__options { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.75rem; }
.panneau-outil__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.8rem;
}
.panneau-outil__actions--debut { justify-content: flex-start; }
.panneau-outil__info { margin-right: auto; font-size: 0.85rem; color: var(--texte-2); }

/* ==========================================================================
   9 bis. PERSONNALISATION ET MODE « ORGANISER »
   ========================================================================== */
/* Fenêtre « Personnaliser ». */
.perso { display: flex; flex-direction: column; gap: 1.2rem; }
.perso__section { padding-bottom: 1.1rem; border-bottom: 1px solid var(--bordure); }
.perso__titre {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font: 600 1rem/1.3 var(--police);
}
.perso__titre i { color: var(--accent); }
.perso__groupe-cases { margin: 0.9rem 0 0; padding: 0; border: none; }
.perso__groupe-cases legend { padding: 0; margin-bottom: 0.45rem; font-size: 0.85rem; font-weight: 600; color: var(--texte-2); }
.perso__cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr));
  gap: 0.45rem 1rem;
}
.perso__aide { font-size: 0.88rem; color: var(--texte-2); margin-bottom: 0.75rem; }
.perso__ligne { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.6rem; flex-wrap: wrap; }
.perso__info { font-size: 0.88rem; color: var(--texte-2); }
.dialogue__pied {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1.2rem;
  border-top: 1px solid var(--bordure);
  background: var(--fond-sourd);
}

/* Bandeau du mode Organiser (collant en haut de la zone des outils). */
.bandeau-organiser {
  position: sticky;
  top: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 1rem;
  background: var(--accent-doux);
  border: 1px solid var(--accent);
  border-radius: var(--rayon-carte);
  box-shadow: var(--ombre);
}
.bandeau-organiser > i { color: var(--accent); font-size: 1.2rem; }
.bandeau-organiser__texte { flex: 1; font-size: 0.88rem; }

/* En mode Organiser, chaque outil devient une « tuile » déplaçable avec
   ses commandes sous le libellé. */
.mode-organiser .outil {
  display: flex;
  flex-direction: column;
  border: 1px dashed var(--bordure-forte);
  border-radius: var(--rayon);
  background: var(--fond-sourd);
}
.mode-organiser .btn-outil { cursor: grab; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.mode-organiser .btn-outil:active { cursor: grabbing; }
.outil__commandes,
.groupe__organiser {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem 0.35rem;
}
.groupe__organiser { padding-right: 0.75rem; border-left: 1px solid var(--bordure); }
.poignee {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 2rem;
  color: var(--texte-3);
  cursor: grab;
  margin-right: auto;
}
.commande {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--rayon);
  background: transparent;
  color: var(--texte-2);
  cursor: pointer;
}
.commande:hover { background: var(--fond-carte); border-color: var(--bordure-forte); color: var(--texte); }
.commande[data-commande="favori"][aria-pressed="true"] { color: #b7791f; }
[data-theme="nocturne"] .commande[data-commande="favori"][aria-pressed="true"] { color: #fbbf24; }
.commande[data-commande^="masquer"][aria-pressed="true"] { color: var(--danger); }

/* Outils et groupes masqués : visibles seulement en mode Organiser, grisés. */
.outil--masque .btn-outil,
.groupe--masque .groupe__bascule { opacity: 0.45; text-decoration: line-through; }
.groupe--masque { border-style: dashed; }

/* Les panneaux à champs ne se réordonnent pas : on les cache pendant
   l'organisation pour ne montrer que les outils. */
.mode-organiser .panneau-outil { display: none; }

/* Retour visuel pendant le glisser-déposer. */
.deplacement-fantome { opacity: 0.35; }
.deplacement-choisi { box-shadow: 0 0 0 2px var(--accent); }

/* ==========================================================================
   9 ter. ONGLETS ET COMPARAISON
   ========================================================================== */
/* Barre d'onglets, sous les réglages de l'en-tête. */
.onglets { border-top: 1px solid var(--bordure); }
.onglets__contenu {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.onglet {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem 0.7rem;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--texte-2);
  font: 600 0.95rem/1.2 var(--police);
  white-space: nowrap;
  cursor: pointer;
}
.onglet:hover { color: var(--texte); background: var(--fond-sourd); }
.onglet[aria-selected="true"] { color: var(--accent-fort); border-bottom-color: var(--accent); }
.onglet i { font-size: 0.95rem; }

.carte--onglet { padding: 1.2rem 1.3rem 1.3rem; margin-bottom: 1.25rem; }
.carte__entete--colonne { flex-direction: column; align-items: flex-start; }
.sous-titre { color: var(--texte-3); font-size: 0.92rem; }

/* Boutons segmentés (choix unique parmi 2 ou 3 options). Les vrais boutons
   radio restent dans la page (accessibles au clavier), seulement masqués. */
.cmp-reglages {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  background: var(--fond-sourd);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
}
.segmente, .cmp-options { margin: 0; padding: 0; border: none; min-width: 0; }
.segmente { display: inline-flex; flex-wrap: wrap; }
.segmente__legende {
  float: left;
  width: 100%;
  margin-bottom: 0.35rem;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--texte-3);
}
.segmente__option { position: relative; display: inline-flex; }
.segmente__option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmente__option > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--bordure-forte);
  margin-left: -1px;
  background: var(--fond-carte);
  color: var(--texte-2);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}
.segmente__option:first-of-type > span { margin-left: 0; border-radius: var(--rayon) 0 0 var(--rayon); }
.segmente__option:last-of-type > span { border-radius: 0 var(--rayon) var(--rayon) 0; }
.segmente__option > span:hover { background: var(--fond-sourd); color: var(--texte); }
.segmente__option input:checked + span {
  position: relative;
  z-index: 1;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--sur-accent);
}
.segmente__option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cmp-options { display: flex; flex-wrap: wrap; gap: 0.35rem 1.2rem; max-width: 40rem; }

/* Les deux zones de texte. */
.cmp-zones {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
}
.cmp-zone { display: flex; flex-direction: column; min-width: 0; }
.cmp-zone__entete { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.cmp-zone__titre { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.92rem; }
.cmp-zone__actions { display: flex; gap: 0.15rem; }
.cmp-zone__texte {
  flex: 1 1 auto;                 /* V13 : « auto » → la hauteur posée par le JS compte */
  min-height: 22rem;              /* V13 : 15rem → 22rem (zones jugées trop petites) */
  max-height: none;
  resize: vertical;
  font-family: var(--police-chiffres);
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
}
/* V13 : « Lignes longues : retour à la ligne » (coché par défaut). */
.cmp-zones--retour .cmp-zone__texte { white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: hidden; }
.cmp-zone__info { margin-top: 0.35rem; font-size: 0.78rem; color: var(--texte-3); font-family: var(--police-chiffres); }
.cmp-zones__milieu { display: flex; align-items: center; }
.cmp-lettre {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--rayon);
  font-family: var(--police-chiffres);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}
/* Couleurs A / B : rouge-brun pour l'original (suppressions), vert pour la
   version modifiée (ajouts), comme dans les outils de développement. */
.cmp-lettre--a { background: #a8322a; }
.cmp-lettre--b { background: #1f7a3d; }
.cmp-lancer { display: flex; justify-content: flex-end; margin-top: 0.9rem; }

/* Résumé (pastilles) et actions. */
.cmp-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cmp-resume { margin-bottom: 0.9rem; }
.cmp-pastilles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cmp-pastille {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--bordure-forte);
  border-left-width: 4px;
  border-radius: var(--rayon);
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--fond-carte);
}
.cmp-pastille--egal { border-left-color: var(--texte-3); }
.cmp-pastille--modif { border-left-color: var(--avertissement); }
.cmp-pastille--suppr { border-left-color: var(--diff-suppr-fort); }
.cmp-pastille--ajout { border-left-color: var(--diff-ajout-fort); }
.cmp-pastille--similarite { border-left-color: var(--accent); font-family: var(--police-chiffres); }
.cmp-identiques { margin-bottom: 0.6rem; font-weight: 600; color: var(--succes); }
.cmp-message { padding: 1rem; border: 1px dashed var(--bordure-forte); border-radius: var(--rayon); color: var(--texte-2); text-align: center; }
.cmp-message--avertissement { border-color: var(--avertissement); color: var(--avertissement); }
.cmp-message--erreur { border-color: var(--danger); color: var(--danger); }

/* Couleurs des différences (fond clair + texte lisible), par thème. */
:root {
  --diff-suppr-fond: #fdeceb;
  --diff-suppr-marque: #f6c4c0;
  --diff-suppr-fort: #b42318;
  --diff-ajout-fond: #e8f6ec;
  --diff-ajout-marque: #b7e4c4;
  --diff-ajout-fort: #1f7a3d;
  --diff-modif-fond: #fff7e6;
}
[data-theme="nocturne"] {
  --diff-suppr-fond: #3a1d1d;
  --diff-suppr-marque: #7a2e2e;
  --diff-suppr-fort: #ff8a80;
  --diff-ajout-fond: #15301f;
  --diff-ajout-marque: #23633a;
  --diff-ajout-fort: #4ade80;
  --diff-modif-fond: #2e2814;
}

.cmp-resultat { overflow-x: auto; }
.diff {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: var(--police-chiffres);
  font-size: 0.82rem;
  line-height: 1.5;
}
.diff th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.4rem 0.5rem;
  background: var(--fond-sourd);
  border-bottom: 1px solid var(--bordure-forte);
  font-family: var(--police);
  font-size: 0.8rem;
  text-align: left;
  color: var(--texte-2);
}
.diff td { padding: 0.1rem 0.5rem; vertical-align: top; border-bottom: 1px solid var(--bordure); }
.diff__num { width: 3.2rem; text-align: right !important; color: var(--texte-3); user-select: none; }
.diff--cote .diff__num--b { border-left: 2px solid var(--bordure-forte); }
.diff__signe { width: 1.3rem; text-align: center; font-weight: 700; user-select: none; }
.diff__texte { white-space: pre-wrap; overflow-wrap: anywhere; }
.diff__ligne--suppr .diff__texte:not(.diff__vide), .diff--unifiee .diff__ligne--suppr td { background: var(--diff-suppr-fond); }
.diff__ligne--ajout .diff__texte:not(.diff__vide), .diff--unifiee .diff__ligne--ajout td { background: var(--diff-ajout-fond); }
.diff--cote .diff__ligne--modif .diff__texte { background: var(--diff-modif-fond); }
.diff__ligne--suppr .diff__signe, .diff__ligne--modif td:nth-child(2) { color: var(--diff-suppr-fort); }
.diff__ligne--ajout .diff__signe, .diff__ligne--modif td:nth-child(5) { color: var(--diff-ajout-fort); }
.diff__vide { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--fond-sourd) 6px 12px); }
.diff del, .diff-flux del { background: var(--diff-suppr-marque); color: inherit; text-decoration: line-through; text-decoration-color: var(--diff-suppr-fort); }
.diff ins, .diff-flux ins { background: var(--diff-ajout-marque); color: inherit; text-decoration: none; border-bottom: 2px solid var(--diff-ajout-fort); }
.diff__repli td { padding: 0; background: var(--fond-sourd); }
.diff__deplier {
  width: 100%;
  padding: 0.35rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--accent-fort);
  font: 500 0.82rem/1.3 var(--police);
  text-align: left;
  cursor: pointer;
}
.diff__deplier:hover { background: var(--accent-doux); }

/* Comparaison par mots / caractères (texte continu). */
.diff-flux__texte {
  padding: 0.9rem 1rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--fond-saisie);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.diff-flux--cote { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.diff-flux__titre { font: 600 0.85rem/1.3 var(--police); margin-bottom: 0.35rem; color: var(--texte-2); }

/* Comparaison de listes : trois colonnes. */
.listes-resultat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.listes-resultat--doublons { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0.75rem; }
.colonne-liste { border: 1px solid var(--bordure); border-top: 4px solid var(--texte-3); border-radius: var(--rayon); background: var(--fond-carte); min-width: 0; }
.colonne-liste--a { border-top-color: var(--diff-suppr-fort); }
.colonne-liste--b { border-top-color: var(--diff-ajout-fort); }
.colonne-liste--communs { border-top-color: var(--accent); }
.colonne-liste--doublons { border-top-color: var(--avertissement); }
.colonne-liste__entete { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.5rem 0.5rem 0.8rem; border-bottom: 1px solid var(--bordure); }
.colonne-liste__entete h3 { font: 600 0.9rem/1.3 var(--police); }
.colonne-liste__compte { margin-right: auto; padding: 0.05rem 0.45rem; border-radius: var(--rayon); background: var(--fond-sourd); font-family: var(--police-chiffres); font-size: 0.8rem; }
.colonne-liste__elements { margin: 0; padding: 0.5rem 0.8rem 0.6rem 2.2rem; max-height: 26rem; overflow-y: auto; font-size: 0.88rem; }
.colonne-liste__elements li { padding: 0.12rem 0; overflow-wrap: anywhere; }
.colonne-liste__vide { padding: 0.75rem 0.8rem; font-size: 0.85rem; color: var(--texte-3); }

/* ==========================================================================
   9 quater. CRÉATION DE VARIABLES ET LEXIQUE
   ========================================================================== */
.etiquette-profil {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--fam-developpeur);
  border-radius: var(--rayon);
  color: var(--fam-developpeur);
  font: 600 0.8rem/1.4 var(--police);
  vertical-align: middle;
}
.var-reglage-court .champ { width: 9rem; }
.var-exemple { margin: -0.4rem 0 0.9rem; font-size: 0.85rem; color: var(--texte-2); }
code {
  font-family: var(--police-chiffres);
  font-size: 0.9em;
  padding: 0.05rem 0.3rem;
  background: var(--fond-sourd);
  border: 1px solid var(--bordure);
  border-radius: 3px;
}
.segmente__option code { background: transparent; border: none; padding: 0; color: inherit; }
.var-libelle-zone { display: block; margin-bottom: 0.35rem; font-weight: 600; font-size: 0.92rem; }
.var-zone { min-height: 10rem; resize: vertical; line-height: 1.6; }
.var-resume { margin-bottom: 0.9rem; }

/* Tableaux (résultats et lexique). */
.tableau-defilant { overflow-x: auto; }
.tableau-var { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tableau-var th {
  padding: 0.5rem 0.6rem;
  background: var(--fond-sourd);
  border-bottom: 1px solid var(--bordure-forte);
  text-align: left;
  font-size: 0.8rem;
  color: var(--texte-2);
  white-space: nowrap;
}
.tableau-var td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--bordure); vertical-align: top; }
.tableau-var .var-num { width: 2.5rem; color: var(--texte-3); font-family: var(--police-chiffres); }
.var-nom code { font-size: 0.92rem; font-weight: 600; color: var(--texte); background: var(--accent-doux); border-color: transparent; user-select: all; }
.var-etat { min-width: 14rem; }
.var-etat__contenu { display: flex; gap: 0.5rem; align-items: flex-start; }
.var-icone { margin-top: 0.2rem; }
.var-icone--ok { color: var(--succes); }
.var-icone--info { color: var(--info); }
.var-icone--avertissement { color: var(--avertissement); }
.var-icone--erreur { color: var(--danger); }
.var-messages { margin: 0; padding: 0; list-style: none; }
.var-message { display: block; font-size: 0.82rem; line-height: 1.4; color: var(--texte-2); }
.var-message + .var-message { margin-top: 0.25rem; }
.var-message--erreur { color: var(--danger); font-weight: 500; }
.var-message--ok { color: var(--succes); }
.var-ligne--erreur td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.var-ligne--avertissement td:first-child { box-shadow: inset 3px 0 0 var(--avertissement); }
.var-actions-ligne { min-width: 13rem; }
.var-actions-ligne .champ { width: 100%; }
.var-boutons { display: flex; gap: 0.15rem; margin-top: 0.3rem; }
td.var-boutons { margin-top: 0; white-space: nowrap; }
.var-supprimer:hover { color: var(--danger); }
.var-vide { padding: 1rem !important; text-align: center; color: var(--texte-3); }
.tableau-var--lexique td .champ { width: 100%; min-width: 12rem; }

/* V11 — Colonne « Type » (liste déroulante par ligne) et marque « deviné ». */
.tableau-var .var-type { min-width: 11rem; }
.var-type-ligne { width: 100%; max-width: 16rem; }
.var-devine { display: block; margin-top: 0.2rem; font-size: 0.72rem; color: var(--texte-3); font-style: italic; }

/* V11 — Introduction, sous-onglets par outil ou langage, fiche du type. */
.var-etapes { margin: 0.4rem 0 0; padding-left: 1.4rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 0.4rem 1.6rem; color: var(--texte-2); font-size: 0.92rem; }
.var-etapes strong { color: var(--texte); }
.var-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1.2rem 0 0;
  padding: 0 0.2rem;
  border-bottom: 2px solid var(--bordure-forte);
}
.var-section-onglet {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  margin-bottom: -2px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--bordure);
  border-bottom: 2px solid var(--bordure-forte);
  border-radius: var(--rayon) var(--rayon) 0 0;
  background: var(--fond-sourd);
  color: var(--texte-2);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.var-section-onglet:hover { color: var(--texte); background: var(--fond-carte); }
.var-section-onglet[aria-selected="true"] {
  background: var(--fond-carte);
  color: var(--accent-fort);
  border-color: var(--bordure-forte);
  border-bottom-color: var(--fond-carte);
  box-shadow: inset 0 3px 0 var(--accent);
}
.var-section { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; }
.var-regles { padding: 0.7rem 0.9rem; margin-bottom: 1rem; background: var(--fond-sourd); border-left: 4px solid var(--accent); border-radius: var(--rayon); }
.var-regles__intro { font-weight: 600; color: var(--texte); }
.var-regles__liste { margin: 0.35rem 0 0; padding-left: 1.2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: 0.15rem 1.5rem; color: var(--texte-2); font-size: 0.9rem; }
.var-type-zone { display: grid; grid-template-columns: minmax(min(14rem, 100%), 22rem) minmax(0, 1fr); gap: 0.6rem 1.2rem; align-items: start; margin-bottom: 1rem; }
.var-fiche { padding: 0.7rem 0.9rem; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond-carte); min-height: 5.5rem; }
.var-fiche__titre { margin: 0 0 0.4rem; font: 600 1rem/1.3 var(--police); color: var(--accent-fort); }
.var-fiche__titre i { width: 1.2rem; text-align: center; }
.var-fiche__texte { color: var(--texte-2); font-size: 0.9rem; }
.var-fiche__corps { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.25rem 0.9rem; margin: 0; font-size: 0.9rem; }
.var-fiche__corps dt { color: var(--texte-3); }
.var-fiche__corps dd { margin: 0; color: var(--texte); overflow-wrap: anywhere; }
.var-fiche__liaison { margin-top: 0.5rem; padding: 0.4rem 0.6rem; border: 1px dashed var(--accent); border-radius: var(--rayon); color: var(--texte-2); font-size: 0.88rem; }
.var-regles-teepee { margin-top: 1rem; padding: 0.6rem 0.9rem; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond-sourd); }
.var-regles-teepee summary { cursor: pointer; font-weight: 600; color: var(--texte); }
.var-regles-teepee[open] summary { margin-bottom: 0.6rem; }
@media (max-width: 760px) {
  .var-type-zone { grid-template-columns: minmax(0, 1fr); }
  .var-fiche__corps { grid-template-columns: minmax(0, 1fr); }
  .var-fiche__corps dd { margin-bottom: 0.3rem; }
  /* Sous-onglets : une ligne qui défile horizontalement (pas de retour à la ligne désordonné). */
  .var-sections { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .var-section-onglet { flex: 0 0 auto; }
}

.lexique-outils { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; margin: 0.9rem 0; }
.lexique-recherche { flex: 1 1 18rem; }
.lexique-import { margin: 1.2rem 0 0; }
.lexique-mode-emploi { margin: 0 0 0.5rem; padding-left: 1.3rem; font-size: 0.88rem; color: var(--texte-2); }
.lexique-mode-emploi li { padding: 0.15rem 0; }

/* Guide de nommage. */
.guide-variables { margin-bottom: 1.25rem; }
.guide__pourquoi { margin: 0.3rem 0 1rem; padding: 0.75rem 0.9rem; background: var(--fond-sourd); border-left: 3px solid var(--accent); border-radius: var(--rayon); font-size: 0.9rem; }
.guide__regles {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: regle;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
  gap: 0.75rem;
}
.guide__regles li {
  counter-increment: regle;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
}
.guide__regles h3 { font: 600 0.92rem/1.35 var(--police); margin-bottom: 0.3rem; }
.guide__regles h3::before { content: counter(regle) '. '; color: var(--accent); }
.guide__regles p { font-size: 0.86rem; color: var(--texte-2); }

/* Sur petit écran, chaque ligne du tableau devient une fiche. */
@media (max-width: 760px) {
  .tableau-var thead { display: none; }
  .tableau-var, .tableau-var tbody, .tableau-var tr, .tableau-var td { display: block; width: 100%; }
  .tableau-var tr { padding: 0.6rem 0; border-bottom: 1px solid var(--bordure-forte); }
  .tableau-var td { border: none; padding: 0.25rem 0; }
  .tableau-var td[data-libelle]:not([data-libelle=""])::before {
    content: attr(data-libelle);
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--texte-3);
  }
  .tableau-var .var-num { width: auto; }
  .var-etat { min-width: 0; }
  .var-ligne--erreur td:first-child, .var-ligne--avertissement td:first-child { box-shadow: none; }
  .var-ligne--erreur { border-left: 3px solid var(--danger); padding-left: 0.6rem !important; }
  .var-ligne--avertissement { border-left: 3px solid var(--avertissement); padding-left: 0.6rem !important; }
  .var-reglage-court .champ { width: 100%; }
}

/* ==========================================================================
   9 quinquies. BLOC-NOTES (nouveauté V10)
   --------------------------------------------------------------------------
   Grand écran : 3 colonnes — liste | éditeur | plan.
   Écran moyen : 2 colonnes — le plan se replie au-dessus du texte (bouton « Plan »).
   Petit écran : 1 colonne — liste et plan repliables au-dessus du texte.
   ========================================================================== */
:root {
  /* Couleurs des catégories (pastilles) : lisibles sur fond clair. */
  --cat-rouge: #c0392b;
  --cat-orange: #c2570c;
  --cat-jaune: #a16207;
  --cat-vert: #15803d;
  --cat-turquoise: #0f766e;
  --cat-bleu: #1d4ed8;
  --cat-violet: #7c3aed;
  --cat-gris: #57534e;
  /* Surlignage des résultats de recherche. */
  --surligne-fond: #fde68a;
  --surligne-texte: #1a1a1a;
}
[data-theme="nocturne"] {
  --cat-rouge: #ff8a80;
  --cat-orange: #fdba74;
  --cat-jaune: #fde047;
  --cat-vert: #86efac;
  --cat-turquoise: #5eead4;
  --cat-bleu: #93c5fd;
  --cat-violet: #c4b5fd;
  --cat-gris: #cbd5e1;
  --surligne-fond: #6b5900;
  --surligne-texte: #fff7d6;
}

.notes {
  display: grid;
  grid-template-columns: 17.5rem minmax(0, 1fr) 13rem;
  grid-template-areas: "barre centre plan";
  gap: 1.25rem;
  align-items: start;
}

/* ---- 1. Liste des notes ---- */
.notes__barre {
  grid-area: barre;
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  min-width: 0;
}
.notes__barre-entete { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.75rem; }
.notes__barre-entete .titre-section { font-size: 1.3rem; }
.notes__compte { font-family: var(--police-chiffres); font-size: 0.8rem; color: var(--texte-3); }
.notes__bascule-liste { display: none; margin-left: auto; }
.notes__corps-liste { display: flex; flex-direction: column; gap: 0.7rem; min-height: 0; flex: 1; }
.notes__creer { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.notes__creer .btn { flex: 1 1 auto; }
.notes__creer .btn--principal { flex-grow: 2; }

.champ-recherche { position: relative; display: block; }
.champ-recherche__icone { position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%); color: var(--texte-3); pointer-events: none; }
.champ-recherche .champ { padding-left: 2.1rem; }

.segmente--plein { display: flex; }
.segmente--plein .segmente__option { flex: 1; }
.segmente--plein .segmente__option > span { width: 100%; justify-content: center; padding: 0.35rem 0.3rem; font-size: 0.8rem; white-space: nowrap; }

.notes__filtres { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem 0.6rem; }
.notes__filtres .champ-libelle { font-size: 0.75rem; gap: 0.15rem; }
.notes__filtres .champ--compact { width: 100%; min-width: 0; }
.notes__info-filtre { font-size: 0.78rem; color: var(--texte-3); min-height: 1em; }
.notes__info-filtre:empty { display: none; }

.notes__liste {
  flex: 1;
  min-height: 6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  border-top: 1px solid var(--bordure);
  scrollbar-width: thin;
}
.note-item { border-bottom: 1px solid var(--bordure); }
.note-item__bouton {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  padding: 0.6rem 0.55rem 0.6rem 0.65rem;
  border: none;
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--texte);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.note-item__bouton:hover { background: var(--fond-sourd); }
.note-item__bouton[aria-current="true"] { background: var(--accent-doux); border-left-color: var(--accent); }
.note-item__ligne { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.note-item__titre { flex: 1; min-width: 0; font-weight: 600; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-item__titre--vide { color: var(--texte-3); font-style: italic; font-weight: 500; }
.note-item__epingle { color: var(--accent); font-size: 0.75rem; }
.note-item__extrait {
  font-size: 0.8rem;
  color: var(--texte-3);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}
.note-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.6rem; font-size: 0.72rem; color: var(--texte-3); }
.note-item__meta i { margin-right: 0.2rem; }
.notes__liste-vide { padding: 1rem 0.5rem; font-size: 0.85rem; color: var(--texte-3); text-align: center; }
mark.surligne { background: var(--surligne-fond); color: var(--surligne-texte); border-radius: 2px; padding: 0 1px; }

.pastille-categorie {
  display: inline-block;
  width: 0.62rem;
  height: 0.62rem;
  margin-right: 0.25rem;
  border-radius: 2px;
  background: var(--cat-gris);
  vertical-align: baseline;
}
.pastille-categorie--rouge { background: var(--cat-rouge); }
.pastille-categorie--orange { background: var(--cat-orange); }
.pastille-categorie--jaune { background: var(--cat-jaune); }
.pastille-categorie--vert { background: var(--cat-vert); }
.pastille-categorie--turquoise { background: var(--cat-turquoise); }
.pastille-categorie--bleu { background: var(--cat-bleu); }
.pastille-categorie--violet { background: var(--cat-violet); }
.pastille-categorie--gris { background: var(--cat-gris); }

.notes__barre-pied { display: flex; flex-wrap: wrap; gap: 0.15rem 0.3rem; padding-top: 0.6rem; border-top: 1px solid var(--bordure); }
.notes__barre-pied .btn--compact { font-size: 0.8rem; padding: 0.3rem 0.5rem; }
.notes__stockage {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.2rem;
  padding: 0.3rem 0.45rem;
  border: 1px solid transparent;
  border-radius: var(--rayon);
  background: transparent;
  color: var(--texte-3);
  font: 0.75rem/1.3 var(--police);
  text-align: left;
  cursor: pointer;
}
.notes__stockage:hover { border-color: var(--bordure); color: var(--texte-2); }
.notes__stockage--protege i { color: var(--succes); }
.notes__stockage--memoire { color: var(--danger); font-weight: 600; }
.notes__rappel { width: 100%; padding: 0.35rem 0.5rem; font-size: 0.75rem; color: var(--avertissement); border-left: 3px solid var(--avertissement); background: var(--fond-sourd); }

/* ---- 2. Éditeur ---- */
.notes__centre { grid-area: centre; min-width: 0; }
.notes__accueil { padding: 2.5rem 2rem; text-align: center; }
.notes__accueil-icone { font-size: 2.8rem; color: var(--accent); margin-bottom: 0.75rem; }
.notes__accueil-texte { max-width: 38rem; margin: 0.6rem auto 1.4rem; color: var(--texte-2); }
.notes__accueil-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.notes__atouts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.4rem; margin: 1.8rem 0 0; padding: 0; list-style: none; font-size: 0.85rem; color: var(--texte-2); }
.notes__atouts i { margin-right: 0.4rem; color: var(--accent); }

.notes__edition { padding: 1rem 1.2rem 0.9rem; }
.note-entete { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.5rem; }
/* L'état de l'enregistrement passe sous le titre : le titre garde toute la place. */
.note-entete .note-sauvegarde { order: 3; flex-basis: 100%; margin: 0; }
.note-entete__titre {
  flex: 1;
  min-width: 0;
  padding: 0.25rem 0.45rem;
  margin-left: -0.45rem;
  border: 1px solid transparent;
  border-radius: var(--rayon);
  background: transparent;
  color: var(--texte);
  font: 600 1.65rem/1.25 var(--police-titre);
}
.note-entete__titre::placeholder { color: var(--texte-3); font-style: italic; font-weight: 400; }
.note-entete__titre:hover { border-color: var(--bordure); }
.note-entete__titre:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.note-sauvegarde { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: var(--texte-3); white-space: nowrap; }
.note-sauvegarde--ok i { color: var(--succes); }
.note-sauvegarde--erreur { color: var(--danger); font-weight: 600; }

.note-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.6rem 1rem;
  margin: 0.6rem 0 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--bordure);
}
.note-meta .champ-libelle { font-size: 0.75rem; gap: 0.15rem; }
.note-meta .segmente__legende { margin-bottom: 0.15rem; font-size: 0.75rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--texte-2); }
.note-meta .champ--compact { min-width: 8rem; max-width: 11.5rem; }
.note-entete__epingle { flex-shrink: 0; }
.note-meta-bascule { display: none; }
.note-meta-bascule[aria-expanded="true"] { background: var(--accent-doux); border-color: var(--accent); }
.note-entete__epingle.btn-bascule[aria-pressed="true"]::after { content: none; }
.note-entete__epingle[aria-pressed="true"] i { color: var(--accent); }

.note-barre { margin-bottom: 0.75rem; gap: 0.35rem; }
.note-barre .btn--compact { padding: 0.35rem 0.6rem; }
.note-barre .barre-outils__groupe + .barre-outils__groupe:not(.barre-outils__groupe--fin) { padding-left: 0.5rem; border-left: 1px solid var(--bordure-forte); }
.notes__plan-bascule { display: none; }

/* Bouton micro : rouge et pulsé pendant l'écoute (+ texte « Arrêter »). */
.btn-micro[aria-pressed="true"] { background: var(--danger); border-color: var(--danger); color: var(--fond-carte); }
.btn-micro[aria-pressed="true"] i { animation: pulsation 1.4s ease-in-out infinite; }
@keyframes pulsation { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.btn-lecture[aria-pressed="true"] { background: var(--accent-doux); border-color: var(--accent); }

.dictee-provisoire {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.6rem;
  padding: 0.5rem 0.75rem;
  border: 1px dashed var(--accent);
  border-radius: var(--rayon);
  background: var(--fond-sourd);
  color: var(--texte-3);
  font-style: italic;
  font-size: 0.92rem;
}
.dictee-provisoire i { color: var(--danger); font-style: normal; }

/* V11 — Texte provisoire de la dictée À L'ENDROIT DU CURSEUR.
   La bulle est posée par-dessus la zone de texte (elle ne fait pas partie
   du texte) : position calculée en JavaScript (voix.js, placerBulle). */
.dictee-bulle {
  position: absolute;
  z-index: 60;
  pointer-events: none;           /* on peut cliquer « à travers » */
  white-space: pre-wrap;
  overflow-wrap: break-word;
  overflow: hidden;
  color: var(--texte-3);
}
/* Fin de ligne : le texte semble prolonger la ligne (gris, souligné en pointillés). */
.dictee-bulle--fantome {
  font-style: italic;
  text-decoration: underline dotted var(--accent);
  text-underline-offset: 0.2em;
}
/* Milieu de ligne : petite bulle sous la ligne, pour ne pas cacher la suite. */
.dictee-bulle--info {
  padding: 0.3rem 0.6rem;
  border: 1px dashed var(--accent);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  box-shadow: var(--ombre-forte);
  font-style: italic;
  font-size: 0.92rem;
}
.miroir-curseur { pointer-events: none; }

/* V12 — CALQUE « MIROIR » de la dictée : le texte provisoire POUSSE la
   suite du texte (voix.js, placerCalque). Le calque est opaque et posé
   exactement sur l'intérieur de la zone ; il recopie tout le texte avec la
   même police. On peut cliquer « à travers » (pointer-events: none). */
.dictee-calque {
  position: absolute;
  z-index: 5;                     /* (revue V12) sous la barre collante de la note (z-index 6) */
  overflow: hidden;
  pointer-events: none;
}
.dictee-calque__contenu {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  margin: 0;
  border: 0;
}
/* Texte encore incertain : gris, italique, souligné en pointillés. */
.dictee-calque__provisoire {
  color: var(--texte-3);
  font-style: italic;
  text-decoration: underline dotted var(--accent);
  text-underline-offset: 0.2em;
}
/* Texte reconnu, en attente d'écriture (délai réglable) : déjà droit,
   surligné légèrement, souligné plein. */
.dictee-calque__attente {
  background: var(--accent-doux);
  text-decoration: underline solid var(--accent);
  text-underline-offset: 0.2em;
}
/* Indice du délai : « Échap : annuler », avec une barre qui se vide.
   (revue V12) Fixé en bas de l'écran : toujours visible, même dans une
   longue note dont le bas est hors de l'écran. */
.dictee-calque__indice {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--accent);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte-2);
  font-family: var(--police);
  font-style: normal;
  font-size: 0.8rem;
  line-height: 1.3;
}
.dictee-calque__barre { display: block; height: 3px; background: var(--accent); transform-origin: left; }
.dictee-calque__barre--anime { animation-name: dictee-delai; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes dictee-delai { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* V12 — Voyant rouge : on tape au clavier alors que le micro écoute. */
.dictee-voyant {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--danger);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--danger);
  font: 600 0.75rem/1.4 var(--police);
  cursor: pointer;
  box-shadow: var(--ombre);
}
.dictee-voyant:hover, .dictee-voyant:focus-visible { background: var(--danger-doux); }
.dictee-voyant__point {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #e5261a;
  box-shadow: 0 0 0 2px rgba(229, 38, 26, 0.25);
  animation: dictee-clignote 1s steps(2, jump-none) infinite;
}
@keyframes dictee-clignote { 0% { opacity: 1; } 100% { opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) { .dictee-voyant__point { animation: none; } }

/* V12 — Pastille « Dictée en cours dans… » quand la zone n'est pas à l'écran. */
.dictee-pastille {
  position: fixed;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 9001;                  /* (revue V12) au-dessus des notifications */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  max-width: calc(100vw - 1.5rem);
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--danger);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte);
  box-shadow: var(--ombre-forte);
  font-size: 0.88rem;
}
.dictee-pastille__texte { flex: 1 1 12rem; overflow-wrap: anywhere; }

/* V12 — Micro d'une section du Bloc-notes, allumé quand la dictée y écrit. */
.commande--dictee { color: var(--sur-accent); background: var(--danger); border-color: var(--danger); }

/* V13 — Bulle du PREMIER clic sur un micro (une seule fois) : la dictée a
   déjà démarré ; la bulle explique et propose « Personnaliser » /
   « Comprendre ». Position calculée en JavaScript (sous le bouton, ou
   au-dessus s'il n'y a pas la place) ; --fleche-x place la petite flèche. */
.dictee-astuce {
  position: fixed;
  z-index: 9002;                  /* au-dessus de la pastille et des notifications */
  width: min(22rem, calc(100vw - 1rem));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 0.5rem;
  padding: 0.7rem 0.75rem 0.75rem;
  border: 2px solid var(--accent);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte);
  box-shadow: var(--ombre-forte);
  font-size: 0.88rem;
  line-height: 1.45;
  --fleche-x: 50%;
}
.dictee-astuce[hidden] { display: none; }
.dictee-astuce::before {          /* flèche vers le micro */
  content: "";
  position: absolute;
  top: -8px;
  left: calc(var(--fleche-x) - 7px);
  width: 12px;
  height: 12px;
  background: var(--fond-carte);
  border-left: 2px solid var(--accent);
  border-top: 2px solid var(--accent);
  transform: rotate(45deg);
}
.dictee-astuce--dessus::before { top: auto; bottom: -8px; transform: rotate(225deg); }
.dictee-astuce__titre { margin: 0; font-weight: 700; color: var(--texte); align-self: center; }
.dictee-astuce__titre .fa-microphone { color: var(--danger); }
.dictee-astuce__fermer { margin: -0.35rem -0.4rem 0 0; }
.dictee-astuce__texte, .dictee-astuce__vie, .dictee-astuce__actions { grid-column: 1 / -1; margin: 0; }
.dictee-astuce__vie { color: var(--texte-2); font-size: 0.82rem; }
.dictee-astuce__actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.2rem; }

/* Bouton « Corriger à l'avenir » posé au-dessus d'une sélection. */
.dictee-corriger {
  position: absolute;
  z-index: 61;
  box-shadow: var(--ombre-forte);
  background: var(--fond-carte);
}

/* Fenêtre Saisie vocale : mes corrections. */
.dictee-corr { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--bordure); }
.dictee-corr__ajout { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem; margin: 0.6rem 0; }
.dictee-corr__ajout .champ-libelle { flex: 1 1 10rem; }
.dictee-corr__fleche { margin-bottom: 0.7rem; color: var(--texte-3); }
.dictee-corr__liste { list-style: none; margin: 0 0 0.6rem; padding: 0; max-height: 14rem; overflow-y: auto; border: 1px solid var(--bordure); border-radius: var(--rayon); }
.dictee-corr__ligne { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.5rem; border-bottom: 1px solid var(--bordure); }
.dictee-corr__ligne:last-child { border-bottom: 0; }
.dictee-corr__ligne q { color: var(--texte-2); overflow-wrap: anywhere; }
.dictee-corr__ligne strong { flex: 1; overflow-wrap: anywhere; }
.dictee-corr__ligne i { color: var(--texte-3); }
.dictee-corr__vide { padding: 0.5rem; color: var(--texte-3); font-style: italic; }
.dictee-corr__aide { font-size: 0.9rem; }

/* Zone de texte du mode Simple : elle GRANDIT avec le texte (pas d'ascenseur
   intérieur) : la page défile, la barre d'outils et le plan restent visibles. */
.note-texte,
.note-section__texte {
  display: block;
  width: 100%;
  margin: 0;
  border: 1px solid var(--bordure-forte);
  border-radius: var(--rayon);
  background: var(--fond-saisie);
  color: var(--texte);
  font-family: var(--police);
  font-size: 1rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  tab-size: 4;
  resize: vertical;
}
.note-texte { min-height: max(26rem, calc(100vh - 21rem)); padding: 1rem 1.15rem; overflow-y: hidden; }
.note-texte::placeholder, .note-section__texte::placeholder { color: var(--texte-3); font-style: italic; }
.note-texte:focus, .note-section__texte:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
/* Réglage « Taille du texte » de l'en-tête (appliqué aussi au Bloc-notes). */
[data-taille-texte="petite"] .note-texte, [data-taille-texte="petite"] .note-section__texte { font-size: 0.9rem; }
[data-taille-texte="grande"] .note-texte, [data-taille-texte="grande"] .note-section__texte { font-size: 1.15rem; }
[data-taille-texte="tres-grande"] .note-texte, [data-taille-texte="tres-grande"] .note-section__texte { font-size: 1.35rem; }

/* Mode Sections. */
.note-sections { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.note-section {
  border: 1px solid var(--bordure);
  border-left: 4px solid var(--bordure-forte);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  scroll-margin-top: 5rem; /* la barre d'outils collante ne cache pas le titre */
}
.note-section--active { border-left-color: var(--accent); }
.note-section__entete {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.4rem 0.35rem 0.2rem;
  background: var(--fond-sourd);
  border-bottom: 1px solid var(--bordure);
}
.note-section--repliee .note-section__entete { border-bottom: none; }
.note-section__numero { min-width: 1.7rem; text-align: center; font-family: var(--police-chiffres); font-size: 0.8rem; color: var(--texte-3); }
.note-section__titre {
  flex: 1;
  min-width: 0;
  padding: 0.3rem 0.45rem;
  border: 1px solid transparent;
  border-radius: var(--rayon);
  background: transparent;
  color: var(--texte);
  font: 600 1.05rem/1.3 var(--police);
}
.note-section__titre::placeholder { color: var(--texte-3); font-weight: 500; font-style: italic; }
.note-section__titre:hover { border-color: var(--bordure-forte); background: var(--fond-carte); }
.note-section__titre:focus { outline: 2px solid var(--accent); outline-offset: 0; background: var(--fond-carte); }
.note-section__compte { font-family: var(--police-chiffres); font-size: 0.75rem; color: var(--texte-3); white-space: nowrap; padding: 0 0.3rem; }
.note-section__texte { min-height: 7.5rem; padding: 0.85rem 1rem; border: none; border-radius: 0 0 var(--rayon) 0; overflow-y: hidden; }
.note-section--repliee .note-section__texte { display: none; }
.note-section__resume { display: none; padding: 0.4rem 1rem 0.55rem 2.5rem; font-size: 0.82rem; color: var(--texte-3); font-style: italic; cursor: pointer; }
.note-section--repliee .note-section__resume { display: block; }
.note-ajouter-section { width: 100%; margin-top: 0.9rem; border-style: dashed; color: var(--texte-2); }
.note-section.deplacement-fantome { opacity: 0.4; }

.note-pied {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-top: 0.7rem;
  font-family: var(--police-chiffres);
  font-size: 0.8rem;
  color: var(--texte-3);
}

/* ---- 3. Plan ---- */
.notes__plan {
  grid-area: plan;
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 0.9rem 0.75rem;
  scrollbar-width: thin;
}
.notes__plan-titre { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.55rem; padding: 0 0.3rem; font: 600 0.95rem/1.2 var(--police); }
.notes__plan-titre i { color: var(--accent); }
.plan { list-style: none; margin: 0; padding: 0; }
.plan__bouton {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  width: 100%;
  padding: 0.38rem 0.45rem;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 0 var(--rayon) var(--rayon) 0;
  background: transparent;
  color: var(--texte-2);
  font: 0.86rem/1.35 var(--police);
  text-align: left;
  cursor: pointer;
}
.plan__bouton:hover { background: var(--fond-sourd); color: var(--texte); }
.plan__bouton[aria-current="true"] { border-left-color: var(--accent); background: var(--accent-doux); color: var(--texte); font-weight: 600; }
.plan__numero { font-family: var(--police-chiffres); font-size: 0.72rem; color: var(--texte-3); min-width: 1.1rem; }
.plan__texte { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.plan__texte--vide { font-style: italic; color: var(--texte-3); }
.plan__mots { font-family: var(--police-chiffres); font-size: 0.7rem; color: var(--texte-3); white-space: nowrap; }
.plan__item--niveau-2 .plan__bouton { padding-left: 1.2rem; font-size: 0.83rem; }
.plan__item--niveau-3 .plan__bouton,
.plan__item--niveau-4 .plan__bouton,
.plan__item--niveau-5 .plan__bouton,
.plan__item--niveau-6 .plan__bouton { padding-left: 1.9rem; font-size: 0.8rem; }
.plan__item.deplacement-fantome { opacity: 0.4; }
.plan__poignee { color: var(--texte-3); cursor: grab; padding: 0 0.15rem; }
.notes__plan-aller { display: flex; gap: 0.25rem; margin-top: 0.6rem; padding-top: 0.5rem; border-top: 1px solid var(--bordure); }
.notes__plan-aller .btn { flex: 1; }
#notes-plan-vide { margin: 0.2rem 0.3rem 0; }

/* Copie invisible de la zone de texte (mesure de la position des titres). */
.miroir-texte {
  position: absolute;
  top: 0;
  left: -99999px;
  visibility: hidden;
  overflow: hidden;
  pointer-events: none;
  border-style: solid;
  border-color: transparent;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.notes__liste-action { padding: 0.5rem 0.3rem; border-bottom: 1px solid var(--bordure); }
.notes__liste-action .btn--pleine-largeur { margin-top: 0; }

/* Barre flottante de la lecture à voix haute. */
.barre-lecture {
  position: fixed;
  left: 50%;
  bottom: 4.2rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.45rem 0.4rem 0.9rem;
  transform: translateX(-50%);
  background: var(--fond-carte);
  border: 1px solid var(--accent);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-forte);
  font-size: 0.85rem;
}
.barre-lecture__titre { font-weight: 600; color: var(--accent-fort); white-space: nowrap; }
.barre-lecture__titre::before { content: '🔊 '; }

/* ---- Menus déroulants (<details>) ---- */
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { background: var(--fond-sourd); border-color: var(--texte-3); }
.menu__liste {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  min-width: 16rem;
  padding: 0.3rem;
  background: var(--fond-carte);
  border: 1px solid var(--bordure-forte);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-forte);
}
.menu--droite .menu__liste { left: auto; right: 0; }
.menu__liste { max-width: calc(100vw - 1rem); }   /* V11 : jamais plus large que l'écran */
.menu__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.3rem;
  padding: 0.45rem 0.65rem;
  border: none;
  border-radius: var(--rayon);
  background: transparent;
  color: var(--texte);
  font: 0.88rem/1.3 var(--police);
  text-align: left;
  cursor: pointer;
}
.menu__item:hover, .menu__item:focus-visible { background: var(--fond-sourd); }
.menu__item i { width: 1rem; text-align: center; color: var(--texte-3); }
.menu__item--danger, .menu__item--danger i { color: var(--danger); }
.menu__separateur { margin: 0.25rem 0; border: none; border-top: 1px solid var(--bordure); }

/* ---- Bandeaux d'alerte ---- */
.alerte {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
  margin: 0 0 0.9rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--bordure-forte);
  border-left-width: 4px;
  border-radius: var(--rayon);
  background: var(--fond-carte);
}
.alerte__texte { flex: 1 1 14rem; font-size: 0.9rem; }
.alerte--danger { border-color: var(--danger); background: var(--danger-doux); }
.alerte--danger > i { color: var(--danger); }
.alerte--avertissement { border-color: var(--avertissement); background: color-mix(in srgb, var(--avertissement) 9%, var(--fond-carte)); }
.alerte--avertissement > i { color: var(--avertissement); }
.alerte--info { border-color: var(--info); background: color-mix(in srgb, var(--info) 7%, var(--fond-carte)); }
.alerte--info > i { color: var(--info); }

/* ---- Fenêtre : historique des versions ---- */
.dialogue--large { width: min(74rem, calc(100% - 2rem)); max-height: 92vh; }
.versions { display: grid; grid-template-columns: 19rem minmax(0, 1fr); gap: 1.1rem; }
.versions__colonne { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.versions__liste {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 58vh;
  overflow-y: auto;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
}
.version-item__bouton {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: none;
  border-bottom: 1px solid var(--bordure);
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--texte);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.version-item__bouton:hover { background: var(--fond-sourd); }
.version-item__bouton[aria-current="true"] { background: var(--accent-doux); border-left-color: var(--accent); }
.version-item__date { font-family: var(--police-chiffres); font-size: 0.85rem; font-weight: 600; }
.version-item__ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; font-size: 0.75rem; color: var(--texte-3); }
.version-item__nom { font-size: 0.82rem; font-weight: 600; color: var(--accent-fort); overflow-wrap: anywhere; }
.delta-plus { color: var(--diff-ajout-fort); font-family: var(--police-chiffres); }
.delta-moins { color: var(--diff-suppr-fort); font-family: var(--police-chiffres); }
.badge {
  display: inline-block;
  padding: 0.02rem 0.4rem;
  border: 1px solid var(--bordure-forte);
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--texte-2);
  white-space: nowrap;
}
.badge--nommee { border-color: var(--accent); color: var(--accent-fort); }
.badge--actuelle { border-color: var(--succes); color: var(--succes); }
.versions__apercu { min-width: 0; }
.versions__detail-entete { margin-bottom: 0.5rem; }
.versions__detail-titre { font: 600 1.05rem/1.3 var(--police); }
.versions__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.7rem 0; }
.versions__contenu {
  max-height: 52vh;
  overflow: auto;
  padding: 0.9rem 1rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--fond-saisie);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
  font-size: 0.92rem;
}
.versions__contenu del { background: var(--diff-suppr-marque); text-decoration: line-through; text-decoration-color: var(--diff-suppr-fort); }
.versions__contenu ins { background: var(--diff-ajout-marque); text-decoration: none; border-bottom: 2px solid var(--diff-ajout-fort); }

/* ---- Fenêtre : dossiers et catégories ---- */
.gerer__liste { list-style: none; margin: 0 0 0.75rem; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.gerer__ligne { display: flex; align-items: center; gap: 0.5rem; }
.gerer__ligne .champ { flex: 1; min-width: 0; }
.gerer__compte { font-size: 0.78rem; color: var(--texte-3); white-space: nowrap; font-family: var(--police-chiffres); }
.gerer__vide { font-size: 0.85rem; color: var(--texte-3); font-style: italic; }
.gerer__ajout { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem; }
.gerer__ajout .champ-libelle { flex: 1 1 12rem; }
.gerer__ajout .champ-libelle:has(select) { flex: 0 1 9rem; }
.gerer__danger { border-bottom: none; padding-bottom: 0; }
.dialogue__pied--fin { justify-content: flex-end; }

/* ---- Fenêtre : import ---- */
.import-apercu { margin-top: 1rem; padding: 0.9rem 1rem; background: var(--fond-sourd); border: 1px solid var(--bordure); border-radius: var(--rayon); }
.import-apercu__resume { font-weight: 600; margin-bottom: 0.4rem; }
.import-apercu__details { margin: 0 0 0.75rem; padding-left: 1.2rem; font-size: 0.86rem; color: var(--texte-2); }
.import-apercu__choix { display: flex; flex-direction: column; gap: 0.35rem; margin: 0; padding: 0; border: none; }

/* ---- Fenêtre : modèles ---- */
.modeles { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15.5rem, 100%), 1fr)); gap: 0.75rem; }
.modele {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--bordure);
  border-left: 3px solid var(--accent);
  border-radius: var(--rayon);
  background: var(--fond-carte);
}
.modele--perso { border-left-color: var(--fam-generateur); }
.modele__titre { display: flex; align-items: center; gap: 0.5rem; font: 600 0.95rem/1.3 var(--police); }
.modele__titre i { color: var(--accent); width: 1.1rem; text-align: center; }
.modele--perso .modele__titre i { color: var(--fam-generateur); }
.modele__desc { font-size: 0.82rem; color: var(--texte-2); }
.modele__actions { display: flex; gap: 0.4rem; margin-top: auto; padding-top: 0.4rem; }

/* ---- Fenêtre : saisie vocale ---- */
.dictee__langue { margin: 0.9rem 0 0.4rem; }
.dictee__commandes { margin: 0 0 0.75rem; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr)); gap: 0.3rem 1rem; font-size: 0.86rem; }
.dictee__commandes li { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.2rem 0; border-bottom: 1px dotted var(--bordure); }
.dictee__commandes q { font-style: italic; color: var(--texte); quotes: '« ' ' »' '“' '”'; }
.dictee__commandes code { white-space: pre; }
.dictee__systeme { margin-top: 0.75rem; font-size: 0.92rem; line-height: 1.6; }
.dictee__systeme kbd { font-size: 0.85rem; }

/* ---- Palette de commandes ---- */
kbd {
  display: inline-block;
  min-width: 1.4em;
  padding: 0.05rem 0.35rem;
  border: 1px solid var(--bordure-forte);
  border-bottom-width: 2px;
  border-radius: 3px;
  background: var(--fond-sourd);
  color: var(--texte-2);
  font: 600 0.72rem/1.4 var(--police-chiffres);
  text-align: center;
  white-space: nowrap;
}
.dialogue--palette { width: min(42rem, calc(100% - 2rem)); margin: 10vh auto auto; max-height: 76vh; }
.palette__champ { display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--bordure); }
.palette__champ:focus-within { box-shadow: inset 0 -2px 0 var(--accent); }
.palette__champ > i { color: var(--texte-3); }
.palette__saisie { flex: 1; min-width: 0; border: none; background: transparent; color: var(--texte); font: 1.05rem/1.4 var(--police); outline: none; }
.palette__liste { margin: 0; padding: 0.35rem; list-style: none; overflow-y: auto; flex: 1; }
.palette__groupe { padding: 0.55rem 0.6rem 0.2rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--texte-3); }
.palette__option { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.7rem; border-radius: var(--rayon); cursor: pointer; }
.palette__option[aria-selected="true"] { background: var(--accent-doux); box-shadow: inset 3px 0 0 var(--accent); }
.palette__option > i { width: 1.15rem; text-align: center; color: var(--famille, var(--accent)); }
.palette__libelle { flex: 1; min-width: 0; font-size: 0.92rem; }
.palette__libelle b { color: var(--accent-fort); font-weight: 700; }
.palette__contexte { font-size: 0.75rem; color: var(--texte-3); white-space: nowrap; }
.palette__vide { padding: 1.2rem; text-align: center; color: var(--texte-3); font-size: 0.9rem; }
.palette__aide { padding: 0.5rem 1rem; border-top: 1px solid var(--bordure); font-size: 0.78rem; color: var(--texte-3); }
.btn-palette kbd { margin-left: 0.2rem; }

/* ---- Fenêtres génériques (question, confirmation) ---- */
.dialogue--petit { width: min(30rem, calc(100% - 2rem)); }
.dialogue__message { font-size: 0.95rem; color: var(--texte-2); margin-bottom: 0.75rem; white-space: pre-line; }

/* ---- Mode focus (Analyse et Bloc-notes) ---- */
.mode-focus .entete,
.mode-focus .pied,
.mode-focus #section-succes,
.mode-focus .colonne-stats,
.mode-focus .zone-outils,
.mode-focus .coloration,
.mode-focus .notes__barre,
.mode-focus .note-meta,
.mode-focus #etat-resume { display: none !important; }
.mode-focus .principal { max-width: 64rem; padding-top: 1rem; }
.mode-focus .disposition { grid-template-columns: minmax(0, 1fr); grid-template-areas: "editeur"; }
.mode-focus .zone-texte { min-height: calc(100vh - 11rem); }
.mode-focus .notes { grid-template-columns: minmax(0, 1fr) 14rem; grid-template-areas: "centre plan"; }
.mode-focus .notes__plan { display: block; }
.mode-focus .carte { box-shadow: none; }
.focus-barre {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 50;
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.4rem 0.35rem 0.9rem;
  transform: translateX(-50%);
  background: var(--fond-carte);
  border: 1px solid var(--bordure-forte);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-forte);
  font: 0.82rem/1.3 var(--police-chiffres);
  color: var(--texte-2);
  white-space: nowrap;
}
.mode-focus .focus-barre { display: flex; }

/* ---- Bloc-notes : écrans moyens et petits ---- */
@media (max-width: 1180px) {
  .notes {
    grid-template-columns: 16rem minmax(0, 1fr);
    grid-template-areas: "barre plan" "barre centre";
  }
  .notes__plan { display: none; position: static; max-height: 22rem; }
  .notes__plan.est-ouvert { display: block; }
  .notes__plan-bascule { display: inline-flex; }
  .mode-focus .notes { grid-template-columns: minmax(0, 1fr); grid-template-areas: "plan" "centre"; }
  .mode-focus .notes__plan { display: none; }
  .mode-focus .notes__plan.est-ouvert { display: block; }
}
@media (max-width: 820px) {
  .notes { grid-template-columns: minmax(0, 1fr); grid-template-areas: "barre" "plan" "centre"; gap: 0.9rem; }
  .notes__barre { position: static; max-height: none; padding: 0.8rem; }
  .notes__barre-entete { margin-bottom: 0.5rem; }
  .notes__bascule-liste { display: inline-flex; }
  .notes__liste { max-height: 20rem; }
  .notes__barre--repliee .notes__corps-liste { display: none; }
  .notes__barre--repliee .notes__barre-entete { margin-bottom: 0; }
  .note-entete { flex-wrap: wrap; gap: 0.3rem; }
  .note-entete__titre { font-size: 1.35rem; flex-basis: 100%; }
  .note-meta .champ--compact { min-width: 0; max-width: none; width: 100%; }
  .note-meta .champ-libelle { flex: 1 1 8rem; }
  .note-texte { min-height: 20rem; padding: 0.85rem; }
  .versions { grid-template-columns: minmax(0, 1fr); }
  .versions__liste { max-height: 30vh; }
}
@media (max-width: 640px) {
  /* Le classement se replie : la zone d'écriture arrive plus vite à l'écran. */
  .note-meta-bascule { display: inline-flex; }
  /* En-tête : titre, puis boutons, puis état de l'enregistrement. */
  /* Section : le titre garde toute la largeur de la 1re ligne, les boutons passent dessous. */
  .note-section__entete { flex-wrap: wrap; row-gap: 0.15rem; }
  .note-section__titre { flex: 1 1 calc(100% - 4.2rem); }
  .note-section__compte { margin-right: auto; padding-left: 0.5rem; }
  /* Barre d'outils non collante sur téléphone : plus de place pour écrire. */
  .note-barre { position: static; gap: 0.25rem; }
  .note-meta { display: none; }
  .note-meta.note-meta--ouverte { display: flex; }
  .note-barre .btn--compact span { display: none; }
  /* Boutons un peu plus serrés : les 7 boutons tiennent sur une ligne (390 px). */
  .note-barre .btn--compact { padding: 0.35rem 0.48rem; }
  .note-barre .barre-outils__groupe + .barre-outils__groupe:not(.barre-outils__groupe--fin) { padding-left: 0.3rem; }
  .note-barre .btn-micro span, .note-barre .btn-micro[aria-pressed="true"] span { display: inline; }
  .notes__edition { padding: 0.8rem; }
  .notes__accueil { padding: 1.6rem 1rem; }
  .menu__liste { min-width: 14rem; }
  .focus-barre { left: 1rem; right: 1rem; transform: none; justify-content: space-between; }
}

/* ==========================================================================
   9 sexies. AIDES À L'ÉCRITURE DE L'ANALYSE (nouveauté V10)
   ========================================================================== */
:root { --fam-redaction: #b45309; }
[data-theme="nocturne"] { --fam-redaction: #fdba74; }
[data-groupe="redaction"] { --famille: var(--fam-redaction); }

/* Bouton « Commandes » (palette) dans l'en-tête. */
.btn-palette kbd { font-size: 0.68rem; }

/* Alerte « caractères invisibles » à côté de l'indicateur de portée. */
.badge-alerte {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--avertissement);
  border-radius: var(--rayon);
  background: color-mix(in srgb, var(--avertissement) 10%, var(--fond-carte));
  color: var(--avertissement);
  font: 600 0.8rem/1.4 var(--police);
  cursor: pointer;
}
.badge-alerte:hover { background: color-mix(in srgb, var(--avertissement) 20%, var(--fond-carte)); }

/* Objectif de longueur (barre fine sous la zone de texte). */
.objectif { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.6rem; }
.objectif__piste { flex: 1; height: 0.5rem; background: var(--fond-sourd); border: 1px solid var(--bordure); border-radius: 2px; overflow: hidden; }
.objectif__remplissage { width: 0; height: 100%; background: var(--accent); transition: width 0.3s; }
.objectif--atteint .objectif__remplissage { background: var(--succes); }
.objectif__texte { font: 0.8rem/1.3 var(--police-chiffres); color: var(--texte-2); white-space: nowrap; }

/* Colorations « écriture » : des fonds pastel, jamais la couleur seule
   (chaque bouton porte un libellé ; la ligne de résumé donne les nombres). */
:root {
  --r-longue: rgba(250, 204, 21, 0.38);
  --r-tres-longue: rgba(239, 68, 68, 0.26);
  --r-adverbe: rgba(59, 130, 246, 0.24);
  --r-tournure: rgba(168, 85, 247, 0.24);
  --r-repetition: rgba(249, 115, 22, 0.26);
  --r-repetition-trait: #c2410c;
  --r-invisible: #dc2626;
  --r-insecable: rgba(16, 185, 129, 0.35);
}
[data-theme="nocturne"] {
  --r-longue: rgba(250, 204, 21, 0.28);
  --r-tres-longue: rgba(248, 113, 113, 0.32);
  --r-adverbe: rgba(96, 165, 250, 0.3);
  --r-tournure: rgba(192, 132, 252, 0.3);
  --r-repetition: rgba(251, 146, 60, 0.3);
  --r-repetition-trait: #fdba74;
  --r-invisible: #f87171;
  --r-insecable: rgba(52, 211, 153, 0.35);
}
.r-longue { background: var(--r-longue); }
.r-tresLongue { background: var(--r-tres-longue); }
.r-adverbe { background: var(--r-adverbe); }
.r-tournure { background: var(--r-tournure); }
.r-repetition { background: var(--r-repetition); box-shadow: inset 0 -2px 0 var(--r-repetition-trait); }
/* Un caractère de largeur nulle n'a pas de surface : on dessine un trait autour. */
.r-invisible { background: var(--r-invisible); box-shadow: 0 0 0 2px var(--r-invisible); }
.r-insecable { background: var(--r-insecable); }
.pastille--longue { background: linear-gradient(90deg, var(--r-longue) 50%, var(--r-tres-longue) 50%); }
.pastille--adverbe { background: var(--r-adverbe); }
.pastille--tournure { background: var(--r-tournure); }
.pastille--repetition { background: var(--r-repetition); border-bottom: 2px solid var(--r-repetition-trait); }
.pastille--invisible { background: var(--r-invisible); }
.coloration { flex-direction: column; align-items: stretch; }
.coloration__ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.coloration__ligne .coloration__titre { min-width: 4.6rem; }
#btn-effacer-couleurs { margin-left: auto; }
.suggestions {
  flex-basis: 100%;
  margin-top: 0.15rem;
  padding: 0.4rem 0.65rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  background: var(--fond-sourd);
  font-size: 0.82rem;
  color: var(--texte-2);
}

/* Carte « Limites et objectif ». */
.carte--limites { padding: 1rem 1.2rem; }
.carte--limites .carte__titre i { color: var(--accent); }
.carte--limites-selection { box-shadow: 0 0 0 2px var(--accent-doux), var(--ombre); }
.sms { margin: 0.55rem 0 0.7rem; padding: 0.5rem 0.65rem; background: var(--fond-sourd); border-radius: var(--rayon); font-size: 0.84rem; }
.sms__ligne i { margin-right: 0.35rem; color: var(--accent); }
.sms__nombre { font-family: var(--police-chiffres); }
.sms__fautifs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; margin-top: 0.35rem; font-size: 0.8rem; color: var(--texte-2); }
.sms__car { border-color: var(--avertissement); }
.sms .btn--pleine-largeur { margin-top: 0.5rem; }
.jauges { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.jauge-limite__entete { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.82rem; }
.jauge-limite__nom { color: var(--texte-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jauge-limite__valeur { font-family: var(--police-chiffres); font-weight: 600; white-space: nowrap; }
.jauge-limite__piste { height: 0.45rem; margin-top: 0.2rem; background: var(--fond-sourd); border: 1px solid var(--bordure); border-radius: 2px; overflow: hidden; }
.jauge-limite__remplissage { height: 100%; background: var(--succes); transition: width 0.25s; }
.jauge-limite--proche .jauge-limite__remplissage { background: var(--avertissement); }
.jauge-limite--depasse .jauge-limite__remplissage { background: var(--danger); }
.jauge-limite__message { margin-top: 0.15rem; font-size: 0.75rem; color: var(--texte-2); }
.jauge-limite--depasse .jauge-limite__message { color: var(--danger); font-weight: 600; }
.limites__reglages { margin-top: 0.8rem; padding-top: 0.55rem; border-top: 1px solid var(--bordure); }
.limites__reglages-titre { list-style: none; cursor: pointer; font-size: 0.82rem; font-weight: 500; color: var(--texte-2); }
.limites__reglages-titre::-webkit-details-marker { display: none; }
.limites__reglages-titre i { color: var(--accent); margin-right: 0.2rem; }
.limites__reglages[open] .limites__reglages-titre { margin-bottom: 0.4rem; color: var(--texte); }
.limites__groupe { margin: 0.6rem 0 0; padding: 0; border: none; }
.limites__groupe legend { padding: 0; margin-bottom: 0.3rem; font-size: 0.78rem; font-weight: 600; color: var(--texte-2); }
.limites__choix { display: grid; gap: 0.2rem; }
.limites__choix .case { font-size: 0.82rem; }
.limites__perso { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.5rem; }
.limites__perso .champ-libelle { font-size: 0.75rem; }
.limites__perso .champ--compact { width: 100%; min-width: 0; }

/* Panneaux du groupe « Rédaction et partage ». */
.panneau-outil__aide { margin: -0.3rem 0 0.7rem; font-size: 0.85rem; color: var(--texte-2); }
.invisibles__table { font-size: 0.84rem; background: var(--fond-carte); }
.invisibles__ligne--typo td { color: var(--texte-3); }
.invisibles__aucun { font-size: 0.88rem; color: var(--succes); font-weight: 500; }
.anon__types { margin: 0; padding: 0; border: none; }
.anon__noms { margin-top: 0.75rem; }
.anon__noms textarea { min-height: 4.5rem; resize: vertical; font-family: var(--police-chiffres); font-size: 0.85rem; }
.anon__table { margin-top: 0.8rem; padding: 0.5rem 0.65rem; background: var(--fond-carte); border: 1px solid var(--bordure); border-radius: var(--rayon); }
.anon__table summary { cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.anon__table table { margin-top: 0.4rem; }
.anon__table td { overflow-wrap: anywhere; }

@media (max-width: 640px) {
  #btn-palette, #btn-personnaliser { flex: 1 1 40%; }
  .btn-palette kbd { display: none; }
  .objectif { flex-wrap: wrap; }
}

/* ==========================================================================
   10. SUCCÈS ET SESSION
   ========================================================================== */
.succes {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bordure);
}
.succes__entete { margin-bottom: 1.2rem; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 1.5rem; }
.succes__entete p { color: var(--texte-3); font-size: 0.92rem; }
.session {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
  gap: 0.75rem;
  margin: 0 0 1.2rem;
}
.session__stat {
  padding: 0.8rem 1rem;
  background: var(--fond-carte);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-carte);
}
.session__stat dt { font-size: 0.78rem; color: var(--texte-3); text-transform: uppercase; letter-spacing: 0.04em; }
.session__stat dd { margin: 0.2rem 0 0; font-family: var(--police-chiffres); font-size: 1.4rem; font-weight: 600; color: var(--accent); }

.grille-succes__liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
  gap: 0.75rem;
}
.trophee {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: var(--fond-carte);
  border: 1px solid var(--bordure);
  border-left: 4px solid var(--bordure-forte);
  border-radius: var(--rayon-carte);
}
.trophee__icone { font-size: 1.5rem; width: 1.8rem; text-align: center; color: var(--texte-3); opacity: 0.55; }
.trophee__titre { margin: 0; font: 600 0.95rem/1.3 var(--police); }
.trophee__desc { font-size: 0.82rem; color: var(--texte-2); }
.trophee__etat { margin-top: 0.3rem; font-size: 0.75rem; color: var(--texte-3); text-transform: uppercase; letter-spacing: 0.04em; }
.trophee--obtenu { border-left-color: var(--accent); }
.trophee--obtenu .trophee__icone { color: var(--accent); opacity: 1; }
.trophee--obtenu .trophee__etat { color: var(--succes); font-weight: 600; }

/* V11 — Jauge de progression des succès (classe « progression » : le nom
   « jauge » est déjà utilisé par les jauges de lisibilité). */
.progression {
  height: 0.6rem;
  background: var(--fond-sourd);
  border: 1px solid var(--bordure-forte);
  border-radius: var(--rayon);
  overflow: hidden;
}
.progression__barre { height: 100%; width: 0; background: var(--accent); }
.succes-resume { margin: 0 0 1.4rem; padding: 0.9rem 1rem; background: var(--fond-carte); border: 1px solid var(--bordure); border-radius: var(--rayon-carte); }
.succes-resume__texte { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.6rem; margin-bottom: 0.55rem; }
.succes-resume__texte strong { font-family: var(--police-chiffres); font-size: 1.35rem; color: var(--accent); }
.succes-resume__secrets { margin-left: auto; color: var(--texte-3); font-size: 0.9rem; }
.succes-resume .progression { height: 0.85rem; }
.succes-cat + .succes-cat { margin-top: 1.4rem; }
.succes-cat__titre { display: flex; align-items: baseline; gap: 0.6rem; margin: 0 0 0.6rem; font: 600 1.05rem/1.3 var(--police); }
.trophee__progression { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }
.trophee__progression .progression { flex: 1; }
.trophee__compte { font-family: var(--police-chiffres); font-size: 0.75rem; color: var(--texte-3); white-space: nowrap; }
.trophee--secret:not(.trophee--obtenu) { border-style: dashed; border-left-style: solid; }
.trophee--secret:not(.trophee--obtenu) .trophee__titre { color: var(--texte-2); }
.trophee__badge { display: inline-block; margin-left: 0.5rem; padding: 0 0.4rem; border: 1px solid var(--accent); border-radius: var(--rayon); color: var(--accent); font-size: 0.7rem; }
.succes-vide { color: var(--texte-3); font-style: italic; }

/* ==========================================================================
   11. PIED DE PAGE
   ========================================================================== */
.pied {
  margin-top: 3rem;
  background: var(--fond-carte);
  border-top: 1px solid var(--bordure);
}
.pied__contenu {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 2rem 1.5rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1.5rem 2rem;
}
.pied__titre { font-family: var(--police-titre); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
.pied__colonne p { font-size: 0.9rem; color: var(--texte-2); margin-bottom: 0.75rem; }
.pied__liste { margin: 0; padding-left: 1.1rem; font-size: 0.9rem; color: var(--texte-2); }
.pied__liste li { padding: 0.15rem 0; }
.pied__bas {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--bordure);
  text-align: center;
  font-size: 0.85rem;
  color: var(--texte-3);
}
.pied__version { font-family: var(--police-chiffres); }

/* ==========================================================================
   12. FENÊTRES (dialogues)
   ========================================================================== */
.dialogue {
  width: min(46rem, calc(100% - 2rem));
  max-height: min(85vh, 52rem);
  padding: 0;
  border: 1px solid var(--bordure-forte);
  border-radius: var(--rayon-carte);
  background: var(--fond-carte);
  color: var(--texte);
  box-shadow: var(--ombre-forte);
}
.dialogue::backdrop { background: rgba(10, 12, 16, 0.55); }
.dialogue[open] { display: flex; flex-direction: column; }
.dialogue__entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--bordure);
}
.dialogue__entete h2 { font-family: var(--police-titre); font-size: 1.4rem; }
.dialogue__corps { padding: 1rem 1.2rem 1.3rem; overflow-y: auto; }

/* ---- V11 : fenêtre « Nouveautés » (historique des modifications du site) ---- */
/* Couleur de chaque catégorie (pastille + liseré). */
.historique-cat--nouveaute { --cat-couleur: var(--succes); }
.historique-cat--amelioration { --cat-couleur: var(--info); }
.historique-cat--correction { --cat-couleur: var(--avertissement); }
.historique-cat--securite { --cat-couleur: var(--fam-transformation); }
.historique-item--nouveaute { --cat-couleur: var(--succes); }
.historique-item--amelioration { --cat-couleur: var(--info); }
.historique-item--correction { --cat-couleur: var(--avertissement); }
.historique-item--securite { --cat-couleur: var(--fam-transformation); }

.dialogue--historique { height: min(92vh, 60rem); }
.historique-filtres {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.2rem;
  padding: 0.7rem 1.2rem;
  border-bottom: 1px solid var(--bordure);
  background: var(--fond-sourd);
}
.historique-filtres__recherche { flex: 1 1 14rem; }
.historique-filtres__cats { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin: 0; padding: 0; border: 0; }
.historique-corps {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}
/* Frise des versions (navigation à gauche) : un trait vertical et un point par version. */
.historique-frise { border-right: 1px solid var(--bordure); overflow-y: auto; padding: 0.8rem 0.6rem 0.8rem 1rem; }
.historique-frise__liste { list-style: none; margin: 0; padding: 0 0 0 0.9rem; border-left: 2px solid var(--bordure-forte); }
.historique-frise__liste li { position: relative; }
.historique-frise__liste li::before {
  content: '';
  position: absolute;
  left: calc(-0.9rem - 6px);
  top: 0.8rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fond-carte);
  border: 2px solid var(--accent);
}
.historique-frise__lien {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: var(--rayon);
  color: var(--texte);
  text-decoration: none;
}
.historique-frise__lien:hover { background: var(--accent-doux); color: var(--accent-fort); }
.historique-frise__lien--vide { color: var(--texte-3); }
.historique-frise__numero { font-family: var(--police-chiffres); font-weight: 600; }
.historique-frise__date { width: 100%; font-size: 0.78rem; color: var(--texte-3); }
.historique-versions { overflow-y: auto; padding: 0.4rem 1.2rem 1.4rem; scroll-padding-top: 0.5rem; }
.historique-version { padding: 0.9rem 0 1.1rem; border-bottom: 1px solid var(--bordure); }
.historique-version:last-child { border-bottom: 0; }
.historique-version:focus { outline: none; }
.historique-version:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.historique-version__entete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.9rem; }
.historique-version__titre { font-family: var(--police-titre); font-size: 1.35rem; color: var(--accent-fort); }
.historique-version__fichiers { font-family: var(--police); font-size: 0.95rem; color: var(--texte-3); }
.historique-version__date { color: var(--texte-3); font-size: 0.9rem; }
.historique-version__resume { margin: 0.35rem 0 0.5rem; color: var(--texte-2); }
.historique-version__compteurs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.3rem 0 0.7rem; }
.historique-pastille {
  display: inline-block;
  padding: 0 0.45rem;
  border: 1px solid var(--accent);
  border-radius: var(--rayon);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.historique-pastille--nouveau { background: var(--accent); color: var(--sur-accent); }
.historique-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--cat-couleur);
  border-radius: var(--rayon);
  color: var(--cat-couleur);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--fond-carte);
}
.historique-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.historique-item {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--bordure);
  border-left: 4px solid var(--cat-couleur);
  border-radius: var(--rayon);
  background: var(--fond-carte);
}
.historique-item__tete { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; margin-bottom: 0.25rem; }
.historique-zone { font-size: 0.78rem; color: var(--texte-3); }
.historique-zone::before { content: '· '; }
.historique-item__titre { color: var(--texte); }
.historique-item__details summary { cursor: pointer; margin-top: 0.3rem; color: var(--accent); font-size: 0.88rem; font-weight: 600; }
.historique-item__details p { margin-top: 0.35rem; color: var(--texte-2); font-size: 0.92rem; }
.historique-vide { padding: 1.5rem 0; color: var(--texte-3); font-style: italic; }

/* Bouton « Nouveautés » sous le titre du site. */
.entete__sous-titre { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.75rem; }
.entete__nouveautes {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.9rem;
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--bordure-forte);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--accent-fort);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.entete__nouveautes:hover { border-color: var(--accent); background: var(--accent-doux); }
.entete__nouveautes-version { font-family: var(--police-chiffres); font-weight: 500; color: var(--texte-3); }
.entete__nouveautes-pastille { padding: 0 0.35rem; border-radius: var(--rayon); background: var(--accent); color: var(--sur-accent); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.03em; }

@media (max-width: 760px) {
  .historique-corps { grid-template-columns: minmax(0, 1fr); }
  /* Petit écran : la frise devient une ligne de boutons qui défile horizontalement. */
  .historique-frise { border-right: 0; border-bottom: 1px solid var(--bordure); padding: 0.4rem 0.8rem; overflow-x: auto; overflow-y: hidden; }
  .historique-frise__liste { display: flex; gap: 0.3rem; padding: 0; border-left: 0; }
  .historique-frise__liste li::before { display: none; }
  .historique-frise__lien { flex-wrap: nowrap; white-space: nowrap; border: 1px solid var(--bordure); }
  .historique-frise__date { display: none; }
  .dialogue--historique { height: calc(100vh - 1rem); max-height: none; }
  .historique-versions { padding: 0.2rem 0.8rem 1rem; }
}

.version { padding: 0.9rem 0 1rem; border-bottom: 1px solid var(--bordure); }
.version:last-child { border-bottom: none; }
.version__entete { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.version__numero { font-family: var(--police-chiffres); font-size: 1.05rem; color: var(--accent); }
.version__date { font-size: 0.82rem; color: var(--texte-3); }
.version__liste { margin: 0; padding-left: 1.2rem; }
.version__liste li { padding: 0.2rem 0; font-size: 0.9rem; color: var(--texte-2); }

/* ==========================================================================
   13. NOTIFICATIONS ET INFOBULLES
   ========================================================================== */
.zone-notifications {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(26rem, calc(100% - 2rem));
  pointer-events: none;
}
.notification {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.6rem 0.7rem 0.9rem;
  background: var(--fond-carte);
  color: var(--texte);
  border: 1px solid var(--bordure-forte);
  border-left: 4px solid var(--info);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-forte);
  font-size: 0.9rem;
  pointer-events: auto;
  animation: notification-entree 0.2s ease-out;
}
.notification > i { color: var(--info); }
.notification--succes { border-left-color: var(--succes); }
.notification--succes > i { color: var(--succes); }
.notification--avertissement { border-left-color: var(--avertissement); }
.notification--avertissement > i { color: var(--avertissement); }
.notification--erreur { border-left-color: var(--danger); }
.notification--erreur > i { color: var(--danger); }
.notification__texte { flex: 1; }
.notification__action {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--accent);
  border-radius: var(--rayon);
  background: transparent;
  color: var(--accent);
  font: 600 0.85rem/1.2 var(--police);
  cursor: pointer;
}
.notification__action:hover { background: var(--accent); color: var(--sur-accent); }
.notification__fermer {
  padding: 0.25rem 0.4rem;
  border: none;
  background: transparent;
  color: var(--texte-3);
  cursor: pointer;
  border-radius: var(--rayon);
}
.notification__fermer:hover { background: var(--fond-sourd); color: var(--texte); }
.notification--sortie { opacity: 0; transform: translateY(4px); transition: opacity 0.2s, transform 0.2s; }
@keyframes notification-entree { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.infobulle {
  position: absolute;
  z-index: 10000;
  max-width: 19rem;
  padding: 0.45rem 0.65rem;
  background: var(--texte);
  color: var(--fond-carte);
  border-radius: 3px;
  font-size: 0.8rem;
  line-height: 1.4;
  box-shadow: var(--ombre-forte);
  pointer-events: none;
}

/* ==========================================================================
   14. PETITS ÉCRANS
   ========================================================================== */
/* Tablette et en dessous : le panneau « à droite » passe sous le texte. */
@media (max-width: 960px) {
  .disposition--droite {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "editeur" "stats" "outils";
  }
  .disposition--droite .colonne-stats {
    position: static;
    max-height: none;
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr));
    gap: 0.9rem;
  }
  .disposition--droite .carte--stats { grid-column: 1 / -1; }
}

/* Comparaison : les zones A et B passent l'une sous l'autre. */
@media (max-width: 820px) {
  .cmp-zones { grid-template-columns: minmax(0, 1fr); }
  .cmp-zones__milieu { justify-content: center; }
  .cmp-zones__milieu .fa-right-left { transform: rotate(90deg); }
  .listes-resultat, .listes-resultat--doublons, .diff-flux--cote { grid-template-columns: minmax(0, 1fr); }
  .cmp-zone__texte { min-height: 14rem; }   /* V13 : 10rem → 14rem */
}

@media (max-width: 640px) {
  .entete__contenu, .principal { padding: 1rem; }
  .onglets__contenu { padding: 0 0.5rem; }
  .onglet { padding: 0.75rem 0.8rem 0.65rem; }
  .diff { font-size: 0.75rem; }
  .diff__num { width: 2.2rem; }
  .entete__reglages { width: 100%; }
  .reglage { flex: 1 1 6.5rem; min-width: 0; }
  .reglage__libelle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .reglage__libelle i { display: none; }
  .reglage .champ--compact { width: 100%; }
  #btn-personnaliser { flex: 1 1 40%; }
  .carte--editeur { padding: 0.9rem; }
  .zone-texte { min-height: 16rem; }
  .barre-outils__favoris { order: 3; flex-basis: 100%; border-left: none; padding-left: 0; }
  .barre-outils__groupe--fin { margin-left: auto; }
  .btn--compact span { font-size: 0.82rem; }
  .grille-outils { grid-template-columns: 1fr 1fr; }
  .zone-notifications { right: 1rem; left: 1rem; width: auto; }
  .groupe__description { flex-basis: 100%; }
}

/* V11 — Petit téléphone : les 4 onglets sur 2 lignes (aucun onglet caché hors de l'écran). */
@media (max-width: 560px) {
  .onglets__contenu { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: visible; padding: 0; }
  .onglet { justify-content: center; padding: 0.65rem 0.4rem 0.55rem; font-size: 0.9rem; white-space: normal; text-align: center; }
}

@media (max-width: 400px) {
  .grille-outils { grid-template-columns: 1fr; }
  #btn-copier span, #btn-bascule-stats span, #btn-effacer span { display: none; }
  /* V11 : la barre d'outils passe à la ligne plutôt que de dépasser de l'écran (320 px). */
  .carte--editeur .barre-outils { flex-wrap: wrap; row-gap: 0.35rem; }
  /* V12 : un bouton de plus (Aperçu Markdown) : le groupe de droite passe
     lui aussi à la ligne si besoin. */
  .carte--editeur .barre-outils__groupe--fin { flex-wrap: wrap; justify-content: flex-end; row-gap: 0.35rem; }
}

/* ==========================================================================
   14 bis. GRANDS ÉCRANS (nouveauté V11) : 27 pouces, 4K, 32 à 36 pouces
   ==========================================================================
   Jusqu'en V10, la page ne dépassait jamais 1 320 px de large : sur un écran
   4K, elle occupait un tiers de l'écran. Désormais :
     • 1 700 px et plus : page de 1 600 px, colonnes latérales plus larges ;
     • 2 200 px et plus : page de 2 000 px, texte un peu plus grand, et dans
       l'onglet Analyse les OUTILS passent à côté du texte (3 colonnes) ;
     • 3 000 px et plus (4K sans zoom) : page de 2 800 px, texte à 125 %.
   Les tailles en « rem » suivent la taille de base : tout grandit ensemble. */
@media (min-width: 1700px) {
  :root { --largeur-max: 1600px; }
  .disposition--droite { grid-template-columns: minmax(0, 1fr) 24rem; }
  .notes { grid-template-columns: 19rem minmax(0, 1fr) 15rem; }
  .historique-corps { grid-template-columns: 16rem minmax(0, 1fr); }
}
@media (min-width: 2200px) {
  :root { --largeur-max: 2000px; }
  html { font-size: 106.25%; }
  .disposition--droite {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 24rem;
    grid-template-areas: "editeur outils stats";
  }
  .notes { grid-template-columns: 21rem minmax(0, 1fr) 17rem; }
  .dialogue--large { width: min(96rem, calc(100% - 4rem)); }
}
@media (min-width: 3000px) {
  :root { --largeur-max: 2800px; }
  html { font-size: 125%; }
}

/* ==========================================================================
   15. MOUVEMENT RÉDUIT ET IMPRESSION
   ========================================================================== */
/* Réglage système « réduire les animations » : on supprime transitions et
   animations (confort, et nécessaire pour certaines personnes). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .entete__reglages, .barre-outils, .coloration, .zone-outils, .succes, .pied, .zone-notifications { display: none !important; }
  .disposition { display: block; }
  .zone-texte { border: none; min-height: 0; }
}

/* ==========================================================================
   V12 — ZONES DÉDIÉES (Personnalisation, Comment ça marche ?)
   --------------------------------------------------------------------------
   Une zone prend la place des onglets : la classe « zone-ouverte » sur
   <body> cache les panneaux d'onglets sans changer leur état (reglages.js).
   ========================================================================== */
.zone-ouverte .panneau-onglet { display: none !important; }
/* L'onglet actif reste marqué : c'est là que « Retour » ramène. */
.zone-dediee { display: flex; flex-direction: column; gap: 1rem; }
.zone-dediee__entete { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.zone-dediee__titre { font-family: var(--police-titre); font-size: 1.6rem; font-weight: 600; }
.zone-dediee__titre i { color: var(--accent); font-size: 0.85em; margin-right: 0.2rem; }
.zone-dediee__titre:focus { outline: none; }
.zone-dediee__titre:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Personnalisation : sommaire à gauche (grand écran), contenu à droite. */
.reglages { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.reglages__nav {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-carte);
  background: var(--fond-carte);
}
.reglages__lien {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-radius: var(--rayon);
  background: none;
  color: var(--texte);
  font: inherit;
  font-size: 0.93rem;
  text-align: left;
  cursor: pointer;
}
.reglages__lien i { width: 1.1rem; text-align: center; color: var(--accent); }
.reglages__lien:hover, .reglages__lien:focus-visible { background: var(--accent-doux); }
.reglages__nav-mobile { display: none; }
.reglages__contenu { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.reglages__section { padding: 1.1rem 1.25rem 1.25rem; scroll-margin-top: 1rem; }
.reglages__titre { font-family: var(--police-titre); font-size: 1.2rem; font-weight: 600; margin-bottom: 0.75rem; }
.reglages__titre i { color: var(--accent); margin-right: 0.15rem; }
.reglages__titre:focus { outline: none; }
.reglages__sous-titre { font-size: 0.95rem; font-weight: 600; margin: 1rem 0 0.5rem; color: var(--texte-2); }
.reglages__sous-titre i { color: var(--accent); }
.reglages__grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 0.75rem 1rem;
  margin-bottom: 0.9rem;
}
.reglages__ligne { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.6rem 1rem; margin: 0.8rem 0 0.4rem; }
.reglages__ligne .champ-libelle { flex: 1 1 16rem; }
.reglages__boutons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0 0.4rem; }
.reglages__resume { list-style: none; margin: 0.4rem 0 0.6rem; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; color: var(--texte-2); }
.reglages__resume i { width: 1.1rem; text-align: center; color: var(--accent); }
.reglages select:disabled { opacity: 0.55; }
.reglages select { max-width: 100%; }                 /* (revue V12) pas de débordement à 320 px */
.reglages .champ-libelle { min-width: 0; }
@media (max-width: 860px) {
  .reglages { grid-template-columns: minmax(0, 1fr); }
  .reglages__nav { display: none; }
  .reglages__nav-mobile { display: flex; position: sticky; top: 0; z-index: 5; padding: 0.4rem 0; background: var(--fond); }
}

/* Visites guidées : cartes de la liste. */
.visites { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); gap: 0.6rem; margin-bottom: 0.8rem; }
.visite-carte { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.8rem; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond-sourd); }
.visite-carte__icone { font-size: 1.3rem; color: var(--accent); width: 1.6rem; text-align: center; }
.visite-carte__corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.visite-carte__titre { font-size: 0.98rem; font-weight: 600; }
.visite-carte__desc { font-size: 0.85rem; color: var(--texte-2); }
.visite-carte__duree { font-size: 0.78rem; color: var(--texte-3); }

/* Visite en cours : zone mise en évidence + bulle d'explication. */
.visite-spot {
  position: fixed;
  z-index: 900;
  border: 2px solid var(--accent);
  border-radius: var(--rayon);
  box-shadow: 0 0 0 9999px rgba(10, 12, 16, 0.55);
  pointer-events: none;
  transition: left 0.2s, top 0.2s, width 0.2s, height 0.2s;
}
.visite-spot--plein { left: 0; top: 0; width: 0; height: 0; border: 0; }
@media (prefers-reduced-motion: reduce) { .visite-spot { transition: none; } }
.visite-bulle {
  position: fixed;
  z-index: 901;
  width: min(24rem, calc(100vw - 24px));
  padding: 0.9rem 1rem 0.8rem;
  border: 1px solid var(--bordure-forte);
  border-top: 3px solid var(--accent);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte);
  box-shadow: var(--ombre-forte);
}
.visite-bulle__rang { font-size: 0.78rem; color: var(--texte-3); margin-bottom: 0.25rem; }
.visite-bulle__titre { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.35rem; }
.visite-bulle__texte { font-size: 0.92rem; line-height: 1.5; color: var(--texte-2); }
.visite-bulle__absent { margin-top: 0.4rem; font-size: 0.8rem; color: var(--texte-3); font-style: italic; }
.visite-bulle__points { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0.7rem 0 0.5rem; }
.visite-bulle__point { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--bordure-forte); }
.visite-bulle__point--fait { background: var(--accent-doux); outline: 1px solid var(--accent); }
.visite-bulle__point--actif { background: var(--accent); }
.visite-bulle__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.visite-bulle__espace { flex: 1; }

/* Pied de page : aide discrète et portfolio. */
.pied__aide { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.4rem 0.8rem; max-width: var(--largeur-max); margin: 0 auto; padding: 0 1.5rem 0.8rem; font-size: 0.88rem; color: var(--texte-3); }
.pied__lien { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.3rem; border: 0; background: none; color: var(--texte-2); font: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.pied__lien:hover, .pied__lien:focus-visible { color: var(--accent); }
.pied__portfolio { max-width: var(--largeur-max); margin: 0 auto; padding: 0 1.5rem 1rem; }
.pied__portfolio-titre { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.2rem; cursor: pointer; font-size: 0.92rem; font-weight: 600; color: var(--texte-2); }
.pied__portfolio-titre i { color: var(--accent); }
.pied__portfolio-compte { font-weight: 400; color: var(--texte-3); }
.pied__portfolio-intro { margin: 0.4rem 0 0.7rem; font-size: 0.85rem; color: var(--texte-3); }
.pied__portfolio-plus { margin-top: 0.7rem; font-size: 0.85rem; }
.portfolio { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: 0.5rem; }
.portfolio__lien {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  height: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--fond);
  color: var(--texte);
  text-decoration: none;
}
.portfolio__lien:hover, .portfolio__lien:focus-visible { border-color: var(--accent); background: var(--accent-doux); }
.portfolio__icone { width: 1.3rem; margin-top: 0.15rem; text-align: center; color: var(--accent); }
.portfolio__corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.portfolio__nom { font-weight: 600; font-size: 0.92rem; }
.portfolio__domaine { font-family: var(--police-chiffres); font-size: 0.72rem; color: var(--texte-3); overflow-wrap: anywhere; }
.portfolio__desc { font-size: 0.82rem; color: var(--texte-2); }
.portfolio__ligne { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.2rem 0.5rem; }
.portfolio__etat { flex: none; padding: 0.05rem 0.4rem; border: 1px solid currentColor; border-radius: var(--rayon); font-size: 0.7rem; white-space: nowrap; }
.portfolio__etat--enligne { color: var(--succes); }
.portfolio__etat--encours { color: var(--avertissement); }
.portfolio__projet--ici .portfolio__lien { border-style: dashed; }
/* V15.1 : projet sans adresse (pas encore de domaine à lui) : carte sans lien. */
.portfolio__lien--sans-adresse { cursor: default; }
.portfolio__lien--sans-adresse:hover { border-color: var(--bordure); background: var(--fond); }
.portfolio__lien--sans-adresse .portfolio__domaine { font-family: inherit; font-style: italic; }

/* Zone « Comment ça marche ? » */
.aide { display: flex; flex-direction: column; gap: 1rem; }
.aide__partie { padding: 1.1rem 1.25rem 1.25rem; }
.aide__texte { font-size: 0.95rem; line-height: 1.6; color: var(--texte-2); margin-bottom: 0.8rem; max-width: 70ch; }
.aide__question { padding: 0.5rem 0; border-bottom: 1px solid var(--bordure); }
.aide__question summary { cursor: pointer; font-weight: 600; }
.aide__question p { margin-top: 0.45rem; font-size: 0.92rem; color: var(--texte-2); line-height: 1.55; max-width: 75ch; }

/* ==========================================================================
   V12 — MARKDOWN : barre de mise en forme du Bloc-notes, aperçu
   ========================================================================== */
.md-barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  margin: 0.5rem 0 0.6rem;
  padding: 0.3rem 0.4rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--fond-sourd);
}
.md-barre__groupe { display: flex; flex-wrap: wrap; gap: 0.15rem; flex: 1 1 auto; }
.md-barre__bouton { min-width: 2rem; }
.md-barre--apercu .md-barre__groupe { opacity: 0.5; }
.md-barre__apercu[aria-pressed="true"] { background: var(--accent); color: var(--sur-accent); border-color: var(--accent); }
.md-apercu--note {
  min-height: 8rem;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--bordure-forte);
  border-radius: var(--rayon);
  background: var(--fond-saisie);
  cursor: text;
}
.note-section--repliee .md-apercu--note { display: none; }
.md-apercu__vide { color: var(--texte-3); font-style: italic; }
.md-apercu--analyse { padding: 0.2rem 0.1rem; }


/* ==========================================================================
   V12 — ILLUSTRATIONS de « Comment ça marche ? » (schémas SVG intégrés)
   ========================================================================== */
/* ==========================================================================
   AIDE « Comment ça marche ? » — illustrations (V12)
   --------------------------------------------------------------------------
   Quatre schémas SVG écrits directement dans la page (pas d'image externe,
   pas d'attribut style : la politique de sécurité l'interdit). Toutes les
   couleurs viennent des jetons du thème (--texte, --accent…) : les schémas
   suivent donc les 8 thèmes sans règle particulière, sauf quelques
   ajustements à la fin (Macintosh 1 bit, Contraste élevé, Windows 95).

   Le sens ne repose jamais sur la couleur seule :
     • trait plein épais + barre de titre = votre navigateur (cet appareil) ;
     • cadre en tirets                    = ce qui est sur Internet ;
     • croix dans un rond                 = « jamais » / « aucun » ;
     • texte gris, italique, souligné en pointillés = texte provisoire.

   Tailles des textes : en unités du dessin (le « px » d'un SVG muni d'un
   viewBox est une unité du dessin, pas un pixel de l'écran). Le schéma
   entier s'agrandit ou rétrécit avec la largeur disponible, sans que les
   textes sortent de leurs cadres.
   ========================================================================== */

/* ---- Grille : 2 schémas par ligne au plus (grand écran), 1 sur téléphone.
   La largeur maximale de la grille empêche une 3e colonne (4 schémas en
   3 + 1 seraient mal équilibrés). ---- */
.aide-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(25rem, 100%), 1fr));
  gap: 1.25rem;
  align-items: start;
  max-width: 66rem;
  margin-inline: auto;
}

.aide-figure {
  margin: 0;
  width: 100%;
  max-width: 32rem;
  padding: 0.85rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte);
}
.aide-figures .aide-figure { justify-self: center; }

.aide-figure figcaption {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--texte-2);
}
.aide-figure figcaption strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--texte);
}

/* Téléphone : chaque pixel de largeur compte pour la taille des textes. */
@media (max-width: 30rem) {
  .aide-figure { padding: 0.5rem; }
}

.aide-figure svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--police);
}

/* ---- Cadres ---- */
.ill-boite { fill: var(--fond-carte); stroke: var(--bordure-forte); stroke-width: 1.5; }
.ill-distant {                      /* sur Internet : tirets */
  fill: var(--fond-sourd);
  stroke: var(--texte-3);
  stroke-width: 1.5;
  stroke-dasharray: 7 5;
}
.ill-zone {                         /* votre navigateur : trait plein épais */
  fill: var(--accent-doux);
  stroke: var(--accent);
  stroke-width: 2.5;
}
.ill-barre { fill: var(--accent); }                  /* barre de titre */
.ill-pastille { fill: var(--sur-accent); }           /* 3 ronds de la barre */
.ill-saisie { fill: var(--fond-saisie); stroke: var(--bordure-forte); stroke-width: 1.5; }
.ill-bande {                        /* texte qui vient d'être écrit */
  fill: var(--accent-doux);
  stroke: var(--accent);
  stroke-width: 1;
}

/* ---- Pictogrammes ---- */
.ill-icone {
  fill: var(--fond-carte);
  stroke: var(--texte-2);
  stroke-width: 2;
  stroke-linejoin: round;
}
.ill-trait {
  fill: none;
  stroke: var(--texte-2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ill-trait--fin { stroke-width: 1.5; }
.ill-trait--epais { stroke-width: 3; }
.ill-trait--accent { stroke: var(--accent); }
.ill-trait--danger { stroke: var(--danger); stroke-width: 2.5; }
.ill-trait--succes { stroke: var(--succes); stroke-width: 2.5; }
.ill-plein { fill: var(--texte-2); }
.ill-plein--accent { fill: var(--accent); }
.ill-encre { fill: var(--texte-2); }                 /* « lignes de texte » */
.ill-gris { fill: var(--texte-3); }                  /* texte provisoire */
.ill-pointilles {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 2 3;
}
.ill-curseur { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: square; }
.ill-interdit { fill: var(--fond-carte); stroke: var(--danger); stroke-width: 2.5; }
.ill-numero { fill: var(--accent); }

/* ---- Flèches (les pointes sont des <marker> propres à chaque schéma) ---- */
.ill-fleche { fill: none; stroke: var(--texte-2); stroke-width: 2; }
.ill-fleche--accent { stroke: var(--accent); }
.ill-fleche--voix { stroke: var(--avertissement); stroke-dasharray: 6 4; }
.ill-fleche--pointille { stroke-dasharray: 6 5; }
.ill-pointe { fill: var(--texte-2); }
.ill-pointe--accent { fill: var(--accent); }
.ill-pointe--voix { fill: var(--avertissement); }

/* ---- Textes ---- */
.ill-t { fill: var(--texte); font-size: 18px; font-weight: 400; }
.ill-t--moyen { font-size: 17px; }
.ill-t--mineur { fill: var(--texte-2); font-size: 16px; }
.ill-t--petit { fill: var(--texte-2); font-size: 15px; }
.ill-t--titre { font-weight: 600; }
.ill-t--mono { font-family: var(--police-chiffres); }
.ill-t--accent { fill: var(--accent-fort); }
.ill-t--sur-accent { fill: var(--sur-accent); }
.ill-t--avertissement { fill: var(--avertissement); }
.ill-t--numero { fill: var(--sur-accent); font-size: 16px; font-weight: 600; }
.ill-t--saisie { font-size: 17px; }
.ill-t--provisoire {
  fill: var(--texte-3);
  font-style: italic;
  text-decoration: underline dotted;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

/* ---- Ajustements par thème ---- */
/* Macintosh 1 bit : pas de gris de fond, tout est noir sur blanc ; le
   cadre « navigateur » s'épaissit pour rester distinct des autres. */
[data-theme="macintosh"] .ill-zone { stroke-width: 3; }
[data-theme="macintosh"] .ill-bande { fill: none; stroke: var(--texte); stroke-dasharray: 3 2; }
[data-theme="macintosh"] .ill-distant { stroke: var(--texte); }
/* Contraste élevé : fonds noirs, traits blancs pleins pour les pictogrammes. */
[data-theme="contraste"] .ill-icone,
[data-theme="contraste"] .ill-trait:not(.ill-trait--danger):not(.ill-trait--succes):not(.ill-trait--accent) { stroke: var(--texte); }
[data-theme="contraste"] .ill-distant { stroke: var(--texte); }
[data-theme="contraste"] .ill-bande { stroke-width: 2; }
/* Terminal : la police à chasse fixe est plus large ; textes un peu plus
   petits pour garder de la marge aux traductions (allemand surtout). */
[data-theme="terminal"] .ill-t { font-size: 17px; }
[data-theme="terminal"] .ill-t--moyen,
[data-theme="terminal"] .ill-t--saisie { font-size: 16px; }
[data-theme="terminal"] .ill-t--mineur,
[data-theme="terminal"] .ill-t--numero { font-size: 15px; }
[data-theme="terminal"] .ill-t--petit { font-size: 14px; }
/* Windows 95 : pas d'arrondis, comme le reste de l'interface. */
[data-theme="windows95"] .aide-figure { border-color: var(--bordure-forte); }

/* Mode « couleurs forcées » de Windows : les traits suivent le texte. */
@media (forced-colors: active) {
  .ill-boite, .ill-distant, .ill-zone, .ill-saisie, .ill-icone { fill: Canvas; stroke: CanvasText; }
  .ill-barre, .ill-numero, .ill-plein, .ill-plein--accent, .ill-encre, .ill-gris, .ill-pointe { fill: CanvasText; }
  .ill-trait, .ill-fleche, .ill-curseur, .ill-pointilles, .ill-interdit, .ill-bande { stroke: CanvasText; }
  .ill-t { fill: CanvasText; }
  .ill-t--sur-accent, .ill-t--numero, .ill-pastille { fill: Canvas; }
}



/* ==========================================================================
   16. VISUALISEUR AUDIO (nouveauté V12 — js/visualiseur.js)
   --------------------------------------------------------------------------
   Petite fenêtre flottante, facultative, qui dessine le son du micro pendant
   la saisie vocale (égaliseur à blocs, oscilloscope ou onde fluide).
     • Fenêtre NON modale (pas une <dialog>) : on continue d'écrire derrière.
     • En bas à droite par défaut ; déplaçable par sa barre de titre. Une fois
       déplacée, elle reçoit la classe « visu--placee » et le JavaScript lui
       donne sa position (left / top) : c'est la seule chose écrite en
       JavaScript, tout le reste est ici (règle de la CSP du site).
     • Les COULEURS DU DESSIN sont lues par le JavaScript dans les jetons du
       thème (--accent, --bordure, --fond-saisie…) : rien à régler ici.
     • z-index 55 : au-dessus de la barre du mode focus (50), en dessous de la
       bulle de la dictée (60, le texte provisoire reste lisible), des
       notifications (9000) et des infobulles (10000). Les boîtes de dialogue
       (<dialog>) passent toujours devant.
     • Ce bloc est chargé AVANT css/themes.css : les règles propres aux thèmes
       (16.2 à 16.5) commencent par « .visu » en plus, pour être plus fortes
       que les règles générales de themes.css (.btn, .champ…).
   ========================================================================== */

/* --------------------------------------------------------------------------
   16.1 Fenêtre, barre de titre, toile, message (tous les thèmes)
   -------------------------------------------------------------------------- */
.visu {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 55;
  display: flex;
  flex-direction: column;
  width: 20rem;
  max-width: calc(100vw - 16px);   /* tient sur un téléphone de 320 px (8 px de marge de chaque côté) */
  background: var(--fond-carte);
  color: var(--texte);
  border: 1px solid var(--bordure-forte);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-forte);
  font: 0.85rem/1.3 var(--police);
}
/* Déplacée : le JavaScript donne left / top, on oublie right / bottom. */
.visu--placee { right: auto; bottom: auto; }

/* Barre de titre = poignée de déplacement. touch-action: none : au doigt,
   glisser déplace la fenêtre au lieu de faire défiler la page. */
.visu__entete {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.3rem;
  padding: 0.15rem 0.15rem 0.15rem 0.6rem;
  border-bottom: 1px solid var(--bordure);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.visu--deplacement .visu__entete { cursor: grabbing; }
.visu__icone { flex: 0 0 auto; color: var(--accent); }
.visu__titre {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;          /* titre trop long : « Visualiseur… » */
  font-weight: 600;
  font-size: 0.85rem;
}
/* Liste des 3 modes (classes .champ .champ--compact du site, en plus petit).
   Elle ne rétrécit pas (flex: 0 0 auto) : c'est le titre qui cède la place. */
.visu__mode.champ {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  max-width: 8.5rem;
  min-height: 2rem;
  padding: 0.2rem 0.4rem;
  font-size: 0.8rem;
}
/* Bouton ✕ : discret (sans cadre) tant qu'on ne le survole pas. */
.visu__fermer.btn {
  flex: 0 0 auto;
  width: 2rem;
  min-height: 2rem;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--texte-2);
}
.visu__fermer.btn:hover { background: var(--fond-sourd); border-color: var(--bordure); color: var(--texte); }

/* Zone de dessin. La taille affichée vient d'ici ; le JavaScript règle la
   taille de dessin en pixels réels (netteté sur les écrans haute densité). */
.visu__corps { padding: 0.4rem 0.4rem 0; }
.visu__toile {
  display: block;
  width: 100%;
  height: 5rem;
  background: var(--fond-saisie);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
}

/* Ligne de message : information (une ligne) ou erreur (plusieurs lignes). */
.visu__message {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 1.6rem;
  margin: 0;
  padding: 0.3rem 0.6rem 0.35rem;
  color: var(--texte-3);
  font-size: 0.75rem;
  line-height: 1.35;
}
.visu__message i { flex: 0 0 auto; margin-top: 0.15em; }
.visu__message span { min-width: 0; overflow-wrap: anywhere; }
/* Erreur : la toile disparaît, le message a toute la place. */
.visu--erreur .visu__corps { display: none; }
.visu--erreur .visu__message {
  padding: 0.55rem 0.6rem 0.6rem;
  color: var(--danger);
  font-size: 0.8rem;
}

/* Petits écrans : fenêtre plus étroite et plus basse, pour ne pas couvrir
   tout le bas de l'écran ; le titre laisse sa place à la liste (la fenêtre
   garde son nom pour les lecteurs d'écran, via aria-label). */
@media (max-width: 480px) {
  .visu { right: 0.5rem; bottom: 0.5rem; width: 16rem; }
  .visu__titre { display: none; }
  .visu__mode.champ { flex: 1 1 auto; max-width: none; }
  .visu__toile { height: 4rem; }
}

/* Les notifications (en bas à droite, elles aussi) se posent AU-DESSUS de
   la fenêtre tant qu'elle est à sa place par défaut : la notification
   « Dictée en cours » ne la cache plus. Si la fenêtre a été déplacée
   (visu--placee) ou est fermée ([hidden]), rien ne change.
   :has() = « qui contient » (Chrome 105, Safari 15.4, Firefox 121). */
body:has(> .visu:not([hidden]):not(.visu--placee)) .zone-notifications { bottom: 11.5rem; }
@media (max-width: 480px) {
  body:has(> .visu:not([hidden]):not(.visu--placee)) .zone-notifications { bottom: 9.5rem; }
}

/* --------------------------------------------------------------------------
   16.2 Thème « Windows 95 » : fenêtre grise en relief, barre de titre bleue,
        toile « creusée » (comme un champ), message en barre d'état
   -------------------------------------------------------------------------- */
[data-theme="windows95"] .visu {
  padding: 2px;
  background: #c0c0c0;
  color: #000000;
  border: 1px solid;
  border-color: var(--w95-bord-fenetre);
  box-shadow: var(--w95-relief-fenetre);
}
[data-theme="windows95"] .visu .visu__entete {
  min-height: 1.75rem;
  padding: 0.15rem 0.15rem 0.15rem 0.35rem;
  gap: 0.35rem;
  border-bottom: 0;
  background: var(--w95-titre);
  color: #ffffff;
}
[data-theme="windows95"] .visu .visu__icone { color: #ffffff; }
[data-theme="windows95"] .visu .visu__titre { font: 700 0.85rem/1.25 var(--police); }
/* La liste garde sa flèche dessinée par themes.css (place réservée à droite). */
[data-theme="windows95"] .visu .visu__mode {
  min-height: 1.375rem;
  padding: 0 1.75rem 0 0.3rem;
  font-size: 0.78rem;
}
/* Focus de la liste à l'intérieur du champ blanc (un pointillé noir sur la
   barre bleue marine ne se verrait pas). */
[data-theme="windows95"] .visu .visu__mode:focus { outline: 1px dotted #000000; outline-offset: -4px; }
/* Bouton ✕ : le petit bouton gris en relief des barres de titre. */
[data-theme="windows95"] .visu .visu__fermer {
  width: 1.5rem;
  min-height: 0;
  height: 1.375rem;
  padding: 0;
  font-size: 0.75rem;
}
[data-theme="windows95"] .visu .visu__corps { padding: 0.3rem 0.3rem 0; }
[data-theme="windows95"] .visu .visu__toile {
  background: #ffffff;
  border: 1px solid;
  border-color: var(--w95-bord-champ);
  box-shadow: var(--w95-relief-champ);
}
[data-theme="windows95"] .visu .visu__message {
  min-height: 1.4rem;
  margin: 0.3rem 0.3rem 0.1rem;
  padding: 0.1rem 0.35rem;
  border: 1px solid;
  border-color: #808080 #ffffff #ffffff #808080;   /* case « creusée » de barre d'état */
  color: #000000;
}
[data-theme="windows95"] .visu .visu__message i { color: #000080; }
[data-theme="windows95"] .visu.visu--erreur .visu__message,
[data-theme="windows95"] .visu.visu--erreur .visu__message i { color: var(--danger); }

/* --------------------------------------------------------------------------
   16.3 Thème « Terminal rétro » : cadre double, titre en vidéo inversée,
        invite « > » devant le message (halo vert dessiné par le JavaScript)
   -------------------------------------------------------------------------- */
[data-theme="terminal"] .visu {
  background: var(--fond-carte);
  border: 3px double var(--accent);
  box-shadow: var(--ombre-forte);
}
[data-theme="terminal"] .visu .visu__entete {
  border-bottom: 0;
  background: var(--accent);
  color: var(--sur-accent);
  text-shadow: none;
}
/* Police à chasse fixe (plus large) : pas d'icône, titre un peu plus petit. */
[data-theme="terminal"] .visu .visu__icone { display: none; }
[data-theme="terminal"] .visu .visu__titre {
  font: 600 0.75rem/1.2 var(--police);
  letter-spacing: 0;
  text-transform: uppercase;
}
[data-theme="terminal"] .visu .visu__mode { border-color: var(--sur-accent); }
[data-theme="terminal"] .visu .visu__fermer { border-color: var(--sur-accent); background: transparent; color: var(--sur-accent); }
[data-theme="terminal"] .visu .visu__fermer:hover { background: var(--sur-accent); color: var(--accent); }
/* Focus foncé sur la barre verte (l'ambre habituel s'y verrait mal). */
[data-theme="terminal"] .visu .visu__entete :focus-visible,
[data-theme="terminal"] .visu .visu__mode:focus { outline-color: var(--sur-accent); }
[data-theme="terminal"] .visu .visu__toile { border: 1px dashed var(--bordure-forte); }
[data-theme="terminal"] .visu .visu__message i { display: none; }
[data-theme="terminal"] .visu .visu__message::before { content: ">"; content: ">" / ""; color: var(--accent); }
[data-theme="terminal"] .visu.visu--erreur .visu__message::before { content: "!"; content: "!" / ""; color: var(--danger); }

/* --------------------------------------------------------------------------
   16.4 Thème « Macintosh 1984 » : noir et blanc pur, ombre nette, barre de
        titre à rayures, case de fermeture à gauche
   -------------------------------------------------------------------------- */
[data-theme="macintosh"] .visu {
  background: #ffffff;
  color: #000000;
  border: 1px solid #000000;
  box-shadow: 2px 2px 0 #000000;
}
/* Rayures dans la zone du contenu seulement : un liseré blanc les entoure. */
[data-theme="macintosh"] .visu .visu__entete {
  min-height: 2rem;
  padding: 4px 0.4rem;
  gap: 0.5rem;
  border-bottom: 1px solid #000000;
  background: var(--mac-rayures);
  background-origin: content-box;
  background-clip: content-box;
}
[data-theme="macintosh"] .visu .visu__icone { display: none; }
/* Titre centré dans sa boîte blanche (marges automatiques de chaque côté). */
[data-theme="macintosh"] .visu .visu__titre {
  flex: 0 1 auto;
  margin: 0 auto;
  padding: 0.05rem 0.5rem;
  background: #ffffff;
  font: 700 0.85rem/1.25 var(--police-titre);
}
[data-theme="macintosh"] .visu .visu__mode {
  min-height: 1.5rem;
  box-shadow: 0 0 0 3px #ffffff;    /* détouré de blanc sur les rayures */
}
/* Le bouton ✕ devient la case de fermeture, à gauche de la barre. */
[data-theme="macintosh"] .visu .visu__fermer {
  order: -1;
  width: 1.1rem;
  min-height: 0;
  height: 1.1rem;
  padding: 0;
  border-radius: 0;
  box-shadow: 0 0 0 3px #ffffff;
  font-size: 0.6rem;
}
[data-theme="macintosh"] .visu .visu__fermer:active { background: #000000; color: #ffffff; }
/* Focus : pointillés posés sur un halo blanc (lisibles sur les rayures). */
[data-theme="macintosh"] .visu .visu__entete :focus-visible,
[data-theme="macintosh"] .visu .visu__mode:focus { box-shadow: 0 0 0 6px #ffffff; }
[data-theme="macintosh"] .visu .visu__toile { border: 1px solid #000000; }
[data-theme="macintosh"] .visu .visu__message { color: #000000; }

/* --------------------------------------------------------------------------
   16.5 Thème « Contraste élevé » : bords blancs de 2 px
   -------------------------------------------------------------------------- */
[data-theme="contraste"] .visu { border: 2px solid var(--bordure-forte); }
[data-theme="contraste"] .visu .visu__entete { border-bottom: 2px solid var(--bordure-forte); }
[data-theme="contraste"] .visu .visu__toile { border: 2px solid var(--bordure-forte); }

/* --------------------------------------------------------------------------
   16.6 Couleurs forcées (Windows) et impression
   -------------------------------------------------------------------------- */
@media (forced-colors: active) {
  .visu,
  .visu__toile { border: 1px solid CanvasText; }
  .visu__entete { border-bottom: 1px solid CanvasText; }
}
@media print {
  .visu { display: none !important; }
}


/* ==========================================================================
   9 septies. APERÇU MARKDOWN (nouveauté V12) — rendu de js/markdown.js
   --------------------------------------------------------------------------
   Le conteneur de l'aperçu porte la classe « md-apercu » ; js/markdown.js
   y place des balises simples (h1…h6, p, ul, ol, blockquote, pre, table…)
   et quelques classes :
     .md-tache     élément de liste « - [ ] » (sans puce, case à la place)
     .md-case      case à cocher (désactivée) d'une tâche
     .md-tableau   enveloppe d'un tableau : défile en largeur si besoin
     .md-gauche / .md-centre / .md-droite   alignement des colonnes
     .md-image     lien « 🖼 texte » qui remplace une image
   Aucune couleur n'est écrite en dur : seulement les variables des thèmes.
   ========================================================================== */
.md-apercu {
  color: var(--texte);
  font-family: var(--police);
  line-height: 1.6;
  overflow-wrap: break-word;      /* un mot très long passe à la ligne */
  min-width: 0;                   /* ne force jamais la largeur de son parent */
}
/* Pas de marge inutile en haut ni en bas de l'aperçu. */
.md-apercu > :first-child { margin-top: 0; }
.md-apercu > :last-child { margin-bottom: 0; }

/* Titres : police des titres du site, tailles relatives (em) pour suivre
   le réglage « Taille du texte ». */
.md-apercu h1,
.md-apercu h2,
.md-apercu h3,
.md-apercu h4,
.md-apercu h5,
.md-apercu h6 {
  margin: 1.2em 0 0.5em;
  font-family: var(--police-titre);
  font-weight: 600;
  line-height: 1.25;
  color: var(--texte);
}
.md-apercu h1 { font-size: 1.8em; padding-bottom: 0.2em; border-bottom: 1px solid var(--bordure); }
.md-apercu h2 { font-size: 1.5em; padding-bottom: 0.15em; border-bottom: 1px solid var(--bordure); }
.md-apercu h3 { font-size: 1.25em; }
.md-apercu h4 { font-size: 1.1em; }
.md-apercu h5 { font-size: 1em; }
.md-apercu h6 { font-size: 0.9em; color: var(--texte-2); }

/* Paragraphes (un retour à la ligne simple y devient un <br>). */
.md-apercu p { margin: 0 0 0.8em; }

/* Mises en forme en ligne. */
.md-apercu strong { font-weight: 700; }
.md-apercu del { color: var(--texte-3); }

/* Listes, imbriquées ou non. */
.md-apercu ul,
.md-apercu ol { margin: 0 0 0.8em; padding-left: 1.6em; }
.md-apercu li + li { margin-top: 0.2em; }
.md-apercu li > ul,
.md-apercu li > ol { margin: 0.2em 0 0; }
.md-apercu li > p { margin-bottom: 0.4em; }
.md-apercu ul ul { list-style-type: circle; }
.md-apercu ul ul ul { list-style-type: square; }

/* Tâches : la case prend la place de la puce, le texte reste aligné
   avec celui des autres éléments. */
.md-apercu li.md-tache { list-style: none; }
.md-apercu .md-case {
  width: 1em;
  height: 1em;
  margin: 0 0.2em 0 -1.35em;
  vertical-align: -0.12em;
  accent-color: var(--accent);
}
.md-apercu .md-case:disabled { opacity: 1; cursor: default; }

/* Citations : liseré à gauche, texte un peu plus discret. */
.md-apercu blockquote {
  margin: 0 0 0.8em;
  padding: 0.3em 0 0.3em 1em;
  border-left: 0.25rem solid var(--bordure-forte);
  color: var(--texte-2);
}
.md-apercu blockquote > :last-child { margin-bottom: 0; }

/* Code en ligne (la règle générale « code » du site s'applique déjà) :
   on autorise seulement la coupure des longues suites de caractères. */
.md-apercu code { overflow-wrap: anywhere; }

/* Blocs de code : police à chasse fixe, défilement horizontal DANS le
   bloc (la page, elle, ne s'élargit jamais). « contain: inline-size » :
   une très longue ligne de code n'élargit pas non plus les blocs parents
   (sans cela, un parent « ajusté au contenu » déborderait sur mobile). */
.md-apercu pre {
  margin: 0 0 0.8em;
  padding: 0.75em 1em;
  max-width: 100%;
  overflow-x: auto;
  contain: inline-size;
  font-family: var(--police-chiffres);
  line-height: 1.45;
  white-space: pre;
  tab-size: 4;
  background: var(--fond-sourd);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
}
.md-apercu pre code {
  padding: 0;
  font-size: 0.9em;
  background: none;
  border: 0;
  border-radius: 0;
  overflow-wrap: normal;
  white-space: inherit;
}
/* Nom du langage (``` js) affiché au-dessus du code, s'il est indiqué. */
.md-apercu pre[data-langue]::before {
  content: attr(data-langue);
  display: block;
  margin-bottom: 0.4em;
  font-family: var(--police);
  font-size: 0.75em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--texte-3);
}

/* Tableaux : l'enveloppe .md-tableau défile en largeur sur petit écran. */
.md-apercu .md-tableau {
  margin: 0 0 0.8em;
  max-width: 100%;
  overflow-x: auto;
  contain: inline-size;           /* même raison que pour les blocs de code */
}
.md-apercu table {
  border-collapse: collapse;
  font-size: 0.95em;
}
.md-apercu th,
.md-apercu td {
  padding: 0.35em 0.7em;
  border: 1px solid var(--bordure-forte);
  text-align: left;
  vertical-align: top;
}
.md-apercu th {
  font-weight: 600;
  background: var(--fond-sourd);
}
/* Alignements choisis dans la ligne « |:---|:---:|---:| » (classes, car la
   politique de sécurité du site interdit les attributs style="…"). */
.md-apercu .md-gauche { text-align: left; }
.md-apercu .md-centre { text-align: center; }
.md-apercu .md-droite { text-align: right; }

/* Séparateur « --- ». */
.md-apercu hr {
  height: 0;
  margin: 1.2em 0;
  border: 0;
  border-top: 1px solid var(--bordure-forte);
}

/* Liens : soulignés (on les repère sans dépendre de la couleur), et une
   très longue adresse passe à la ligne au lieu d'élargir la page. */
.md-apercu a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}
.md-apercu a:hover { color: var(--accent-fort); }

/* Image remplacée par un lien « 🖼 texte » : petite étiquette en pointillés. */
.md-apercu .md-image {
  padding: 0 0.3em;
  text-decoration: none;
  border: 1px dashed var(--bordure-forte);
  border-radius: var(--rayon);
}
.md-apercu .md-image:hover { background: var(--accent-doux); }

/* Impression : les liens gardent leur couleur de texte, les blocs de code
   et les tableaux ne sont pas coupés en deux si possible. */
@media print {
  .md-apercu pre,
  .md-apercu .md-tableau { overflow: visible; break-inside: avoid; }
  .md-apercu pre { white-space: pre-wrap; }
}

/* ==========================================================================
   V13 — Saisie vocale en détail (« Comment ça marche ? ») et protection des
   données (Personnalisation › Mes données)
   ========================================================================== */
.aide-voix__tableau { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 0.2rem 0 0.9rem; }
.aide-voix__tableau th, .aide-voix__tableau td { text-align: left; padding: 0.45rem 0.6rem; border: 1px solid var(--bordure); vertical-align: top; }
.aide-voix__tableau thead th { background: var(--fond-sourd); font-weight: 700; }
.aide-voix__tableau tbody th { font-weight: 600; white-space: nowrap; }
.aide-voix__points { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; max-width: 75ch; font-size: 0.92rem; line-height: 1.55; color: var(--texte-2); }
.aide-voix__points strong { color: var(--texte); }

.protection { list-style: none; margin: 0.4rem 0 0.6rem; padding: 0; display: grid; gap: 0.45rem; }
.protection__ligne {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--bordure);
  border-left: 4px solid var(--texte-3);
  border-radius: var(--rayon);
  background: var(--fond-carte);
}
.protection__ligne--ok { border-left-color: var(--succes); }
.protection__ligne--attention { border-left-color: var(--avertissement); }
.protection__ligne--erreur { border-left-color: var(--danger); }
.protection__icone { margin-top: 0.15rem; color: var(--texte-2); text-align: center; }
.protection__ligne--ok .protection__icone { color: var(--succes); }
.protection__ligne--attention .protection__icone { color: var(--avertissement); }
.protection__ligne--erreur .protection__icone { color: var(--danger); }
.protection__texte { margin: 0; font-size: 0.9rem; line-height: 1.5; overflow-wrap: anywhere; }
.protection__boutons { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.45rem; }
.protection__pourquoi { margin-top: 0.3rem; font-size: 0.88rem; color: var(--texte-2); }
.protection__pourquoi summary { cursor: pointer; font-weight: 600; color: var(--texte); }
.protection__pourquoi p { margin: 0.35rem 0 0; max-width: 75ch; line-height: 1.5; }

/* ==========================================================================
   V13.1 — « Nos engagements » (Comment ça marche ?) : les promesses de
   confidentialité, réunies en pastilles au lieu d'être dans les schémas.
   ========================================================================== */
.engagements { list-style: none; margin: 0.2rem 0 0.7rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.engagements li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--bordure-forte);
  border-left: 4px solid var(--succes);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--texte);
}
.engagements li i { color: var(--succes); }


/* ==========================================================================
   V14 — Bloc-notes : vues d'ensemble (js/notes-vues.js)
   En vue d'ensemble, le plan disparaît et la vue prend toute la largeur à
   droite de la liste.
   ========================================================================== */
.notes__affichage { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; margin-bottom: 0.6rem; }
.notes__affichage-etiquette { font-size: 0.85rem; font-weight: 600; color: var(--texte-2); }
.notes__affichage .champ { width: auto; min-width: 13rem; }

.notes.notes--ensemble { grid-template-columns: 17.5rem minmax(0, 1fr); grid-template-areas: "barre centre"; }
.notes--ensemble .notes__plan,
.notes--ensemble .notes__plan.est-ouvert { display: none; }
.mode-focus .notes.notes--ensemble { grid-template-columns: minmax(0, 1fr); grid-template-areas: "centre"; }

.notes__ensemble { padding: 1rem 1.1rem 1.2rem; }
.notes__ensemble-entete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem; }
.notes__ensemble-entete .titre-section { margin: 0; }
.notes__ensemble-compte { font-size: 0.85rem; color: var(--texte-3); }
.notes__ensemble > .perso__aide { margin: 0.25rem 0 0.9rem; }
.vue-message { padding: 1.5rem 0.5rem; text-align: center; color: var(--texte-3); }
.vue-aide { margin: 0 0 0.7rem; }

/* Une note (bouton) dans une vue */
.vue-note {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.vue-note:hover { border-color: var(--bordure-forte); background: var(--fond-sourd); }
.vue-note:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.vue-note[aria-current="true"] { border-left: 4px solid var(--accent); }
.vue-note__titre { font-weight: 600; font-size: 0.93rem; overflow-wrap: anywhere; }
.vue-note__titre--vide { font-style: italic; color: var(--texte-3); }
.vue-note__epingle { margin-right: 0.3rem; font-size: 0.75em; color: var(--accent); }
.vue-note__extrait { font-size: 0.82rem; color: var(--texte-2); line-height: 1.4; overflow-wrap: anywhere; }
.vue-note__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 0.6rem; font-size: 0.75rem; color: var(--texte-3); }

/* Groupes (par catégorie, par type) */
.vue-groupes { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.vue-groupe__titre { display: flex; align-items: center; gap: 0.3rem; margin: 0 0 0.5rem; font-size: 0.98rem; }
.vue-groupe__compte { font-weight: 400; font-size: 0.82rem; color: var(--texte-3); }
.vue-groupe__notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }

/* Arborescence */
.arbre, .arbre__notes, .arbre__sections { list-style: none; margin: 0; padding: 0; }
.arbre__dossier + .arbre__dossier { margin-top: 0.6rem; }
.arbre__resume { cursor: pointer; padding: 0.3rem 0; font-weight: 600; }
.arbre__notes { margin-left: 0.55rem; padding-left: 0.9rem; border-left: 2px solid var(--bordure); display: grid; gap: 0.4rem; }
.arbre__note .vue-note { padding: 0.4rem 0.6rem; }
.arbre__sections { margin: 0.25rem 0 0 0.6rem; padding-left: 0.8rem; border-left: 1px dashed var(--bordure-forte); }
.arbre__section {
  display: block;
  width: 100%;
  padding: 0.2rem 0.35rem;
  border: 0;
  border-radius: var(--rayon);
  background: transparent;
  color: var(--texte-2);
  font: 0.85rem/1.4 var(--police);
  text-align: left;
  cursor: pointer;
}
.arbre__section:hover { background: var(--fond-sourd); color: var(--texte); }
.arbre__section i { margin-right: 0.3rem; font-size: 0.75em; color: var(--texte-3); }

/* Kanban : colonnes qui défilent horizontalement */
.kanban { display: flex; gap: 0.8rem; overflow-x: auto; padding-bottom: 0.5rem; align-items: flex-start; }
.kanban__colonne {
  flex: 1 1 0;          /* les colonnes se partagent la largeur… */
  min-width: 13.5rem;   /* …et le tableau défile au-delà (beaucoup de catégories) */
  display: flex;
  flex-direction: column;
  max-height: 70vh;
  padding: 0.6rem;
  border: 1px solid var(--bordure);
  border-top: 4px solid var(--cat-gris);
  border-radius: var(--rayon);
  background: var(--fond-sourd);
}
.kanban__colonne--rouge { border-top-color: var(--cat-rouge); }
.kanban__colonne--orange { border-top-color: var(--cat-orange); }
.kanban__colonne--jaune { border-top-color: var(--cat-jaune); }
.kanban__colonne--vert { border-top-color: var(--cat-vert); }
.kanban__colonne--turquoise { border-top-color: var(--cat-turquoise); }
.kanban__colonne--bleu { border-top-color: var(--cat-bleu); }
.kanban__colonne--violet { border-top-color: var(--cat-violet); }
.kanban__titre { display: flex; align-items: center; gap: 0.2rem; margin: 0 0 0.5rem; font-size: 0.92rem; overflow-wrap: anywhere; }
.kanban__cartes { list-style: none; margin: 0; padding: 0; min-height: 3rem; overflow-y: auto; display: grid; gap: 0.45rem; align-content: start; }
.kanban__carte { cursor: grab; }
.kanban__carte--fantome { opacity: 0.4; }
.kanban__vide { padding: 0.8rem 0.4rem; border: 1px dashed var(--bordure-forte); border-radius: var(--rayon); font-size: 0.8rem; color: var(--texte-3); text-align: center; }

/* Tableau */
.vue-tableau { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.vue-tableau th, .vue-tableau td { padding: 0.4rem 0.55rem; border-bottom: 1px solid var(--bordure); text-align: left; vertical-align: top; }
.vue-tableau th { position: sticky; top: 0; background: var(--fond-carte); font-weight: 600; color: var(--texte-2); white-space: nowrap; }
.vue-tableau tbody tr:hover { background: var(--fond-sourd); }
.vue-tableau__ligne--courante { background: var(--fond-sourd); }
.vue-tableau__ouvrir { padding: 0; border: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 600; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.vue-tableau__ouvrir:hover { text-decoration: underline; }
.vue-tableau__nombre { text-align: right; font-variant-numeric: tabular-nums; }
.vue-tableau__date { white-space: nowrap; color: var(--texte-2); }

@media (max-width: 1180px) {
  .notes.notes--ensemble { grid-template-columns: 16rem minmax(0, 1fr); grid-template-areas: "barre centre"; }
}
@media (max-width: 820px) {
  .notes.notes--ensemble { grid-template-columns: minmax(0, 1fr); grid-template-areas: "barre" "centre"; }
  .notes__affichage { justify-content: flex-start; }
  .notes__affichage .champ { min-width: 0; flex: 1; }
  .kanban__colonne { flex: 0 0 78vw; min-width: 0; }
}
@media (min-width: 1700px) { .notes.notes--ensemble { grid-template-columns: 19rem minmax(0, 1fr); } }
@media (min-width: 2200px) { .notes.notes--ensemble { grid-template-columns: 21rem minmax(0, 1fr); } }

/* V14 — copie « lisible par l'IA » (Personnaliser › Mes données) */
.protection__ia { margin-top: 0.7rem; padding-top: 0.6rem; border-top: 1px solid var(--bordure); }
.protection__ia .perso__aide { margin: 0.2rem 0 0 1.6rem; }

/* V14 — synchronisation chiffrée (Personnaliser › Mes données) */
.synchro { margin: 0.3rem 0 0.6rem; }
.synchro .protection__ligne { list-style: none; }
.synchro__accord { margin: 0.6rem 0 0.2rem; }
.synchro__liaison { margin-top: 0.7rem; display: grid; gap: 0.35rem; max-width: 34rem; }
.synchro__saisie { font-family: var(--police-chiffres); letter-spacing: 0.02em; }
.synchro__nouveau { margin: 0.6rem 0; padding: 0.7rem 0.8rem; border: 1px solid var(--avertissement); border-left-width: 4px; border-radius: var(--rayon); background: var(--fond-sourd); }
.synchro__nouveau-titre { margin: 0 0 0.25rem; font-weight: 700; color: var(--texte); }
.synchro__code-bloc { margin: 0.5rem 0; }
.synchro__code {
  margin: 0 0 0.3rem;
  padding: 0.55rem 0.7rem;
  border: 1px dashed var(--bordure-forte);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  font: 600 1rem/1.6 var(--police-chiffres);
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  user-select: all;
}


/* ==========================================================================
   V15 (3.6.0) — 30/10/2026
   Explorateur des notes, barre Markdown complète, dossier de sauvegarde
   (organisation, arborescence, format), onglet « Prototype » (Ma journée),
   panneaux repliables de la création de variables.
   ========================================================================== */

/* ---- Explorateur des notes ---- */
.notes__explorateur-bouton { margin-left: auto; }
.notes__barre-entete { align-items: center; flex-wrap: wrap; }
.notes__explorateur-bouton[aria-pressed="true"] { background: var(--accent); color: var(--sur-accent); border-color: var(--accent); }
.explorateur { padding: 1rem 1.1rem 1.2rem; }
.explorateur__entete { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; }
.explorateur__entete .titre-section { margin: 0; font-size: 1.3rem; }
.explorateur__compte { font-family: var(--police-chiffres); font-size: 0.85rem; color: var(--texte-3); }
.explorateur__recherche { flex: 1 1 18rem; min-width: 0; }
.explorateur__tri { flex: 0 0 auto; }
.explorateur__boutons { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-left: auto; }
.explorateur__aide { margin: 0.6rem 0 0.8rem; }
.explorateur__corps {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr) minmax(16rem, 24rem);
  gap: 0.9rem;
  align-items: start;
}
.explorateur__colonne {
  min-width: 0;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  padding: 0.6rem;
  max-height: calc(100vh - 12rem);
  min-height: 16rem;
  overflow: auto;
}
.explorateur__colonne-titre { margin: 0 0 0.4rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--texte-3); }
.explorateur__dossiers, .explorateur__arbre, .explorateur__groupe { list-style: none; margin: 0; padding: 0; }
.explorateur__dossier {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.5rem; border-radius: var(--rayon); cursor: pointer;
  border: 1px solid transparent;
}
.explorateur__dossier:hover { background: var(--fond-sourd); }
.explorateur__dossier[aria-selected="true"] { background: var(--accent-doux); border-color: var(--accent); font-weight: 600; }
.explorateur__dossier:focus-visible, .explorateur__arbre [role="treeitem"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.explorateur__dossier-nom { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.explorateur__compte-pastille { font-family: var(--police-chiffres); font-size: 0.75rem; color: var(--texte-3); background: var(--fond-sourd); border-radius: 999px; padding: 0 0.45rem; }
.explorateur__dossier--survol { outline: 2px dashed var(--accent); background: var(--accent-doux); }
.explorateur__dossiers--cible .explorateur__dossier[data-cible] { border-style: dashed; border-color: var(--bordure-forte); }
.explorateur__arbre [role="treeitem"] { border-radius: var(--rayon); }
.explorateur__ligne { display: flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.4rem; border-radius: var(--rayon); cursor: pointer; min-width: 0; }
.explorateur__ligne:hover { background: var(--fond-sourd); }
.explorateur__note[aria-selected="true"] > .explorateur__ligne { background: var(--accent-doux); box-shadow: inset 3px 0 0 var(--accent); }
.explorateur__chevron { width: 1rem; flex: 0 0 1rem; text-align: center; color: var(--texte-3); transition: transform 0.15s; }
.explorateur__chevron--vide { visibility: hidden; }
[aria-expanded="true"] > .explorateur__ligne > .explorateur__chevron { transform: rotate(90deg); }
.explorateur__type { color: var(--texte-2); flex: 0 0 auto; }
.explorateur__titre { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.explorateur__titre--dossier { font-weight: 700; }
.explorateur__epingle { color: var(--accent); margin-right: 0.3rem; }
.explorateur__categorie { font-size: 0.78rem; color: var(--texte-2); white-space: nowrap; }
.explorateur__date { font-size: 0.75rem; color: var(--texte-3); white-space: nowrap; }
.explorateur__extrait { display: block; margin: 0 0 0.3rem 2.9rem; font-size: 0.82rem; color: var(--texte-2); overflow-wrap: anywhere; }
.explorateur__groupe { margin-left: 0.85rem; padding-left: 0.6rem; border-left: 2px solid var(--bordure); }
.explorateur__section .explorateur__ligne { font-size: 0.88rem; }
.explorateur__vide { padding: 1rem 0.5rem; color: var(--texte-3); font-style: italic; }
.explorateur__apercu-titre { margin: 0 0 0.5rem; font-size: 1.15rem; overflow-wrap: anywhere; }
.explorateur__apercu-vide { color: var(--texte-3); font-style: italic; }
.explorateur__meta { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.7rem; margin: 0 0 0.7rem; font-size: 0.85rem; }
.explorateur__meta dt { color: var(--texte-3); }
.explorateur__meta dd { margin: 0; overflow-wrap: anywhere; }
.explorateur__actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem; margin-bottom: 0.8rem; }
.explorateur__deplacer { min-width: 0; }
.explorateur__deplacer .champ { max-width: 100%; }
.explorateur__contenu { border-top: 1px solid var(--bordure); padding-top: 0.6rem; font-size: 0.92rem; }
.explorateur__sommaire { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.35rem; }
.explorateur__aller { font-weight: 600; text-align: left; padding: 0; }
.explorateur__sommaire .explorateur__extrait { margin: 0.1rem 0 0; }
.explorateur__suite { color: var(--texte-3); font-style: italic; }
@media (max-width: 1180px) {
  .explorateur__corps { grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr); }
  .explorateur__colonne--apercu { grid-column: 1 / -1; max-height: none; }
}
@media (max-width: 760px) {
  .explorateur { padding: 0.7rem; }
  .explorateur__corps { grid-template-columns: minmax(0, 1fr); }
  .explorateur__colonne { max-height: none; min-height: 0; }
  .explorateur__colonne--dossiers { max-height: 14rem; }
  .explorateur__boutons { margin-left: 0; }
  .explorateur__categorie, .explorateur__date { display: none; }
}

/* ---- Barre Markdown : groupes, menu des titres, mémo ---- */
.md-barre--complete .md-barre__groupe { flex: 0 0 auto; }
.md-barre--complete .md-barre__groupe + .md-barre__groupe { padding-left: 0.5rem; border-left: 1px solid var(--bordure); }
.md-barre__groupe:empty, .md-barre__groupe:not(:has(> :not([hidden]))) { display: none; }
.md-barre__tous[aria-pressed="true"] { background: var(--accent-doux); border-color: var(--accent); }
.md-barre__tous { margin-left: auto; }
.md-barre__titres { position: relative; }
.md-barre__titres > summary { list-style: none; display: inline-flex; align-items: center; gap: 0.3rem; }
.md-barre__titres > summary::-webkit-details-marker { display: none; }
.md-barre__titres--inactif { opacity: 0.5; pointer-events: none; }
.md-barre__titres-liste { min-width: 11rem; z-index: 30; }
.md-barre__titres-liste .menu__item { font-weight: 700; }
.md-titre-1 { font-size: 1.35rem; }
.md-titre-2 { font-size: 1.2rem; }
.md-titre-3 { font-size: 1.08rem; }
.md-titre-4 { font-size: 1rem; }
.md-titre-5 { font-size: 0.92rem; }
.md-titre-6 { font-size: 0.85rem; color: var(--texte-2); }
.memo-markdown { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.memo-markdown th, .memo-markdown td { border-bottom: 1px solid var(--bordure); padding: 0.45rem 0.5rem; vertical-align: top; text-align: left; }
.memo-markdown__source { margin: 0; font: 0.85rem/1.45 var(--police-chiffres); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--fond-sourd); padding: 0.3rem 0.45rem; border-radius: var(--rayon); }
.memo-markdown__rendu > :first-child { margin-top: 0; }
.memo-markdown__rendu > :last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .md-barre__tous span { display: none; }
  .memo-markdown th:nth-child(3), .memo-markdown td:nth-child(3) { display: none; }
}

/* ---- Dossier de sauvegarde : options, organisation, arborescences, format ---- */
.sauvegarde-options { margin: 0.6rem 0 0.4rem; display: grid; gap: 0.5rem; }
.sauvegarde-bloc { margin: 0.4rem 0; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond-carte); }
.sauvegarde-bloc > summary { cursor: pointer; padding: 0.55rem 0.75rem; font-weight: 600; }
.sauvegarde-bloc[open] > summary { border-bottom: 1px solid var(--bordure); }
.sauvegarde-bloc > :not(summary) { margin-left: 0.75rem; margin-right: 0.75rem; }
.sauvegarde-bloc > :last-child { margin-bottom: 0.75rem; }
.sauvegarde-bloc__sous-titre { margin: 0.8rem 0.75rem 0.3rem; font-size: 0.95rem; }
.sauvegarde-org { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.6rem 0.9rem; margin-top: 0.6rem; }
.sauvegarde-org .champ { width: 100%; }
.org-guide { grid-column: 1 / -1; }
.arbre-fichiers-zone { padding: 0.5rem 0.6rem; background: var(--fond-sourd); border-radius: var(--rayon); max-height: 22rem; overflow: auto; }
.arbre-fichiers { list-style: none; margin: 0; padding: 0; font-size: 0.88rem; }
.arbre-fichiers .arbre-fichiers { margin-left: 0.6rem; padding-left: 0.8rem; border-left: 1px dashed var(--bordure-forte); }
.arbre-fichiers__ligne { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.5rem; padding: 0.12rem 0; }
.arbre-fichiers__ligne > i { width: 1.1rem; text-align: center; color: var(--texte-2); }
.arbre-fichiers__nom { font-family: var(--police-chiffres); overflow-wrap: anywhere; }
.arbre-fichiers__element--dossier > .arbre-fichiers__ligne .arbre-fichiers__nom { font-weight: 700; }
.arbre-fichiers__role, .arbre-fichiers__taille { color: var(--texte-3); font-size: 0.8rem; }
.arbre-fichiers__role::before { content: "— "; }
.arbre-fichiers__badge { font-size: 0.72rem; padding: 0 0.4rem; border-radius: 999px; background: var(--accent-doux); color: var(--texte); border: 1px solid var(--accent); }
.arbre-fichiers__plus { color: var(--texte-3); font-style: italic; padding-left: 1.7rem; }
.format-fichiers h5 { margin: 0.9rem 0 0.3rem; font-size: 0.95rem; }
.format-fichiers p { margin: 0 0 0.4rem; }
.format-exemple { margin: 0.3rem 0 0.6rem; padding: 0.5rem 0.65rem; background: var(--fond-sourd); border-radius: var(--rayon); font: 0.8rem/1.45 var(--police-chiffres); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 16rem; overflow: auto; }
.format-exemple code { padding: 0; background: none; border: 0; font: inherit; }

/* ---- Onglet « Prototype » : Ma journée (sans IA) ---- */
.onglet--prototype i { color: var(--avertissement); }
.proto-champs { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin-bottom: 0.7rem; }
.proto-champs__chantiers { flex: 1 1 18rem; }
.proto-champs__chantiers .champ { width: 100%; }
/* Barre non collante : collée en haut, elle cacherait le bouton « Ranger ma journée » en bas de la carte. */
.proto-barre { position: static; margin-bottom: 0.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.proto-brouillon { font-size: 0.8rem; color: var(--texte-3); margin-left: auto; }
.proto-texte { width: 100%; min-height: 14rem; resize: vertical; font: inherit; line-height: 1.6; }
.proto-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-top: 0.7rem; }
.proto-actions .perso__aide { margin: 0; flex: 1 1 18rem; }
.proto-resultat .carte__entete { flex-wrap: wrap; }
.proto-resultat .cmp-pastilles { margin-bottom: 0.7rem; }
.proto-pastille--alea { border-left-color: var(--avertissement); }
.proto-pastille--non_conformite { border-left-color: var(--danger); }
.proto-pastille--ecart { border-left-color: var(--info); }
.proto-pastille--consigne, .proto-pastille--ok { border-left-color: var(--succes); }
.proto-chantiers { display: grid; gap: 0.9rem; margin-top: 0.7rem; }
.proto-chantier { border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 0.7rem 0.85rem; background: var(--fond-carte); }
.proto-chantier--a-preciser { border-style: dashed; }
.proto-chantier h3 { margin: 0 0 0.5rem; }
.proto-phrases { margin: 0; padding-left: 1.4rem; display: grid; gap: 0.5rem; }
.proto-phrase { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 0.8rem; align-items: start; padding: 0.3rem 0.4rem; border-radius: var(--rayon); }
.proto-phrase--alea, .proto-phrase--non_conformite, .proto-phrase--ecart, .proto-phrase--consigne { background: var(--fond-sourd); }
.proto-phrase__tete { min-width: 0; }
.proto-phrase__texte { overflow-wrap: anywhere; }
.proto-phrase__details { grid-column: 1; margin: 0; font-size: 0.82rem; color: var(--texte-2); }
.proto-phrase__choix { grid-column: 2; grid-row: 1 / span 2; }
.proto-badge { display: inline-flex; align-items: center; gap: 0.3rem; margin-right: 0.45rem; padding: 0 0.45rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; border: 1px solid currentColor; }
.proto-badge--alea { color: var(--avertissement); }
.proto-badge--non_conformite { color: var(--danger); }
.proto-badge--ecart { color: var(--info); }
.proto-badge--consigne { color: var(--succes); }
.pastille--alea { background: var(--avertissement); color: var(--sur-accent); }
.pastille--non_conformite { background: var(--danger); color: var(--sur-accent); }
.pastille--ecart { background: var(--info); color: var(--sur-accent); }
.pastille--consigne, .pastille--ok { background: var(--succes); color: var(--sur-accent); }
@media (max-width: 640px) {
  .proto-phrase { grid-template-columns: minmax(0, 1fr); }
  .proto-phrase__choix { grid-column: 1; grid-row: auto; }
  .proto-brouillon { margin-left: 0; width: 100%; }
}

/* ---- Création de variables : panneaux repliables (fermés par défaut) ---- */
.var-panneau { margin: 0.5rem 0; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond-carte); }
.var-panneau > .var-panneau__titre { cursor: pointer; padding: 0.55rem 0.75rem; font-weight: 600; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.45rem; }
.var-panneau > .var-panneau__titre::before { content: "\25B8"; color: var(--texte-3); transition: transform 0.15s; display: inline-block; }
.var-panneau[open] > .var-panneau__titre::before { transform: rotate(90deg); }
.var-panneau > .var-panneau__titre::-webkit-details-marker { display: none; }
.var-panneau > .var-panneau__titre { list-style: none; }
.var-panneau[open] > .var-panneau__titre { border-bottom: 1px solid var(--bordure); }
.var-panneau > :not(summary) { margin: 0.6rem 0.75rem; }
.var-panneau__resume { font-weight: 400; font-size: 0.85rem; color: var(--texte-3); }
.var-panneau--fiche { margin-top: 0.4rem; }
.var-panneau--carte { border: 0; background: transparent; margin: 0; }
.var-panneau--carte > .var-panneau__titre { padding: 0; align-items: center; gap: 0.6rem; }
.var-panneau--carte[open] > .var-panneau__titre { border-bottom: 0; margin-bottom: 0.6rem; }
.var-panneau--carte > :not(summary) { margin-left: 0; margin-right: 0; }
.var-panneau__titre--grand .titre-section { margin: 0; display: inline; }
.var-intro .var-panneau { margin-top: 0.7rem; }
/* L'ancien cadre des règles TeePee (V11) garde le même alignement que les autres panneaux. */
.var-regles-teepee.var-panneau { padding: 0; margin-top: 0.8rem; background: var(--fond-carte); }
.var-regles-teepee.var-panneau[open] > summary { margin-bottom: 0; }
.var-synchro { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding: 0.5rem 0.7rem; border: 1px dashed var(--bordure-forte); border-radius: var(--rayon); }
.var-synchro .perso__aide { margin: 0; flex: 1 1 20rem; }

/* Mouvement réduit demandé par le système : pas d'animation des chevrons. */
@media (prefers-reduced-motion: reduce) {
  .explorateur__chevron, .var-panneau > .var-panneau__titre::before { transition: none; }
}

/* ==========================================================================
   V15.1 (3.6.1) — Ma journée : sous-sections, points clés, mots déclencheurs
   ========================================================================== */
.proto-intro .var-panneau { margin-top: 0.7rem; }
.proto-aide__etapes { margin: 0.6rem 0.75rem; padding-left: 1.3rem; display: grid; gap: 0.45rem; font-size: 0.92rem; line-height: 1.5; }
/* Points clés de la journée (consignes d'abord). */
.proto-points { margin: 0.4rem 0 1rem; padding: 0.7rem 0.85rem; border: 1px solid var(--bordure); border-left: 4px solid var(--accent); border-radius: var(--rayon); background: var(--fond-sourd); }
.proto-points h3 { margin: 0 0 0.4rem; }
.proto-points__type + .proto-points__type { margin-top: 0.6rem; }
.proto-points__liste { margin: 0.2rem 0 0; padding-left: 1.3rem; display: grid; gap: 0.25rem; }
.proto-points__chantier { font-weight: 700; }
/* Sous-sections d'un chantier (un type après l'autre, activités à la fin). */
.proto-ss { margin-top: 0.6rem; }
.proto-ss__titre { display: flex; align-items: baseline; gap: 0.35rem; margin: 0 0 0.35rem; font-size: 0.95rem; }
.proto-ss__compte { font-weight: 400; color: var(--texte-3); font-size: 0.85rem; }
.proto-ss--consigne > .proto-ss__titre, .proto-points__type--consigne .proto-ss__titre, .proto-mots__type--consigne > .proto-ss__titre { color: var(--succes); }
.proto-ss--non_conformite > .proto-ss__titre, .proto-points__type--non_conformite .proto-ss__titre, .proto-mots__type--non_conformite > .proto-ss__titre { color: var(--danger); }
.proto-ss--ecart > .proto-ss__titre, .proto-points__type--ecart .proto-ss__titre, .proto-mots__type--ecart > .proto-ss__titre { color: var(--info); }
.proto-ss--alea > .proto-ss__titre, .proto-points__type--alea .proto-ss__titre, .proto-mots__type--alea > .proto-ss__titre { color: var(--avertissement); }
.proto-ss--aucun > .proto-ss__titre { color: var(--texte-2); }
.proto-ss .proto-phrases { list-style: none; padding-left: 0; }
.proto-phrase { display: block; padding: 0.45rem 0.6rem; border: 1px solid var(--bordure); border-left-width: 4px; background: var(--fond-carte); }
.proto-phrase--consigne { border-left-color: var(--succes); }
.proto-phrase--non_conformite { border-left-color: var(--danger); }
.proto-phrase--ecart { border-left-color: var(--info); }
.proto-phrase--alea { border-left-color: var(--avertissement); }
.proto-phrase__aussi, .proto-phrase__pourquoi, .proto-phrase__details { margin: 0.2rem 0 0; font-size: 0.82rem; color: var(--texte-2); }
.proto-phrase__aussi { font-weight: 600; }
.proto-phrase__pourquoi { color: var(--texte-3); }
.proto-phrase__pourquoi--manuel { font-style: italic; }
.proto-phrase__types { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.4rem; }
.proto-bascule { font-size: 0.78rem; padding: 0.15rem 0.5rem; }
.proto-bascule[aria-pressed="false"] { opacity: 0.75; }
.proto-bascule[aria-pressed="true"] { font-weight: 700; color: var(--fond-carte); }
.proto-bascule--consigne[aria-pressed="true"] { background: var(--succes); border-color: var(--succes); }
.proto-bascule--non_conformite[aria-pressed="true"] { background: var(--danger); border-color: var(--danger); }
.proto-bascule--ecart[aria-pressed="true"] { background: var(--info); border-color: var(--info); }
.proto-bascule--alea[aria-pressed="true"] { background: var(--avertissement); border-color: var(--avertissement); }
/* Mot déclencheur surligné : la couleur de son type en soulignement. */
mark.proto-mot--consigne { box-shadow: inset 0 -2px 0 var(--succes); }
mark.proto-mot--non_conformite { box-shadow: inset 0 -2px 0 var(--danger); }
mark.proto-mot--ecart { box-shadow: inset 0 -2px 0 var(--info); }
mark.proto-mot--alea { box-shadow: inset 0 -2px 0 var(--avertissement); }
/* Panneau « Mots déclencheurs ». */
.proto-mots__outils { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; }
.proto-mots__recherche { flex: 1 1 16rem; min-width: 0; }
.proto-mots__liste { display: grid; gap: 0.9rem; }
.proto-mots__type { padding: 0.55rem 0.7rem; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond-sourd); }
.proto-mots__famille { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); gap: 0.2rem 0.6rem; align-items: start; padding: 0.25rem 0; border-top: 1px dashed var(--bordure); }
.proto-mots__libelle { font-size: 0.85rem; font-weight: 600; color: var(--texte-2); }
.proto-mots__chips { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.proto-mot { font: 0.78rem/1.4 var(--police-chiffres); padding: 0.05rem 0.45rem; border: 1px solid var(--bordure-forte); border-radius: 999px; background: var(--fond-carte); color: var(--texte); cursor: pointer; }
.proto-mot:hover, .proto-mot:focus-visible { border-color: var(--accent); }
.proto-mot[aria-pressed="false"] { text-decoration: line-through; color: var(--texte-3); background: transparent; border-style: dashed; }
.proto-mot--perso { border-color: var(--accent); }
.proto-mots__vide { font-size: 0.8rem; color: var(--texte-3); font-style: italic; }
.proto-mots__ajout { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
.proto-mots__ajout .champ { flex: 1 1 12rem; min-width: 0; }
@media (max-width: 600px) {
  .proto-mots__famille { grid-template-columns: minmax(0, 1fr); }
}
.proto-mot--lecture { cursor: default; border-style: dotted; }
.proto-mots__type--negations > .proto-ss__titre { color: var(--texte-2); }

/* ==========================================================================
   V16 (4.0.0) : ONGLET « DICTIONNAIRES » (dictionnaires.js)
   ========================================================================== */
.dico__entete { display: flex; flex-wrap: wrap; align-items: center; }
.dico__entete .titre-section { margin: 0; font-size: 1.3rem; }
.dico__entete .perso__aide { order: 3; flex: 1 1 100%; margin: 0.2rem 0 0.4rem; }
.dico__corps { display: grid; align-items: start; }
.dico__actif { display: inline-flex; padding: 0.35rem; cursor: pointer; }
.dico__actif input { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
.dico__nb { font: 0.75rem var(--police-chiffres); color: var(--texte-3); }
.dico__compte { font: 0.82rem var(--police-chiffres); color: var(--texte-3); }
.dico__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 0.8rem; margin: 0.5rem 0 0.3rem; }
.dico__form-large { grid-column: 1 / -1; }
.dico__form-boutons { display: flex; gap: 0.4rem; }
.dico__entrees { min-height: 12rem; overflow: auto; }
.dico__section { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texte-2); border-bottom: 1px solid var(--bordure); }
.dico__entree--masquee { opacity: 0.7; border-style: dashed; }
.dico__entree--masquee .dico__terme dfn { text-decoration: line-through; }
.dico__terme { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.55rem; }
.dico__terme dfn { font-style: normal; font-weight: 700; }
.dico__forme { color: var(--texte-2); font-weight: 500; }
.dico__badges { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; }
.dico__badge { font-size: 0.7rem; line-height: 1.5; padding: 0 0.45rem; border-radius: 999px; border: 1px solid var(--bordure-forte); color: var(--texte-2); }
.dico__badge--lieu { border-color: var(--info); color: var(--info); }
.dico__badge--confirmer { border-color: var(--avertissement); color: var(--avertissement); }
.dico__definition { margin: 0.2rem 0 0; line-height: 1.5; max-width: 80ch; }
.dico__variantes { margin: 0.2rem 0 0; font-size: 0.78rem; color: var(--texte-3); }
.dico__actions { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.3rem; }
.dico__vide { color: var(--texte-3); font-style: italic; margin: 0.4rem 0; }
.dico__essai .champ-libelle { margin-top: 0.5rem; display: grid; gap: 0.3rem; }
.dico__essai-texte { line-height: 1.7; }
mark.dico__mot { background: var(--accent-doux); color: var(--texte); box-shadow: inset 0 -2px 0 var(--accent); padding: 0 0.1em; border-radius: 2px; }
.dico__essai-liste { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.2rem 0.8rem; margin: 0.4rem 0; font-size: 0.88rem; }
.dico__essai-liste dt { font-weight: 700; }
.dico__essai-liste dd { margin: 0; color: var(--texte-2); }
@media (max-width: 760px) {
  .dico__corps { grid-template-columns: minmax(0, 1fr); }
  .dico__form { grid-template-columns: minmax(0, 1fr); }
  .dico__essai-liste { grid-template-columns: minmax(0, 1fr); }
}
/* V16 : vocabulaire du métier dans Ma journée. */
.proto-phrase__vocabulaire { margin: 0.15rem 0 0; font-size: 0.8rem; color: var(--texte-2); }
.proto-phrase__vocabulaire .fa-book { color: var(--texte-3); }
.proto-vocab { font-style: normal; font-weight: 600; border-bottom: 1px dotted var(--bordure-forte); cursor: help; }
.proto-vocab--lieu { color: var(--info); }
.proto-vocabulaire { margin-top: 1rem; padding: 0.7rem 0.9rem; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond-sourd); }
.proto-vocabulaire .sous-titre-section { margin-top: 0; }
/* V16 : renommer et créer directement dans l'explorateur. */
.explorateur__mini { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; margin-left: 0.15rem; padding: 0; border: 1px solid transparent; border-radius: var(--rayon); background: transparent; color: var(--texte-3); cursor: pointer; opacity: 0; font-size: 0.78rem; }
.explorateur__mini:hover, .explorateur__mini:focus-visible { border-color: var(--bordure-forte); color: var(--accent); background: var(--fond-carte); }
[role="treeitem"]:hover > .explorateur__ligne > .explorateur__mini, [role="treeitem"]:focus > .explorateur__ligne > .explorateur__mini,
[role="treeitem"][aria-selected="true"] > .explorateur__ligne > .explorateur__mini, .explorateur__dossier:hover > .explorateur__mini,
.explorateur__dossier:focus > .explorateur__mini, .explorateur__dossier[aria-selected="true"] > .explorateur__mini, .explorateur__mini:focus-visible { opacity: 1; }
@media (hover: none) { .explorateur__mini { opacity: 0.75; } }
.explorateur__saisie { width: 100%; min-width: 8rem; padding: 0.15rem 0.4rem; font: inherit; }
.explorateur__creation { list-style: none; padding: 0.25rem 0.3rem; }
.explorateur__creation .explorateur__ligne, .explorateur__creation .explorateur__dossier-nom { display: flex; width: 100%; }
.explorateur__vide--dossier { font-size: 0.82rem; padding-left: 2.2rem; }

/* ==========================================================================
   V16 : carte des notes (carte-notes.js) — grand panneau du Bloc-notes, comme
   l'explorateur. Préfixe « cnotes » (la classe « carte » désigne déjà les
   cartes de l'interface).
   ========================================================================== */
.cnotes { padding: 1rem 1.1rem 1.2rem; }
.cnotes__entete { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; }
.cnotes__entete .titre-section { margin: 0; font-size: 1.3rem; }
.cnotes__compte { font-family: var(--police-chiffres); font-size: 0.85rem; color: var(--texte-3); }
.cnotes__region { flex: 0 1 13rem; min-width: 0; }
.cnotes__region select { max-width: 100%; }
.cnotes__boutons { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-left: auto; }
.cnotes__aide { margin: 0.6rem 0 0.8rem; }
.cnotes__corps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: 0.9rem; align-items: start; }
.cnotes__zone {
  position: relative;
  height: min(72vh, 680px);
  min-height: 360px;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--fond-sourd);
}
.cnotes__canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.cnotes__canvas:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.cnotes__canvas--glisse { cursor: grabbing; }
.cnotes__canvas--main { cursor: pointer; }
.cnotes__zone--ajout .cnotes__canvas { cursor: crosshair; }
.cnotes__zoom { position: absolute; top: 0.6rem; right: 0.6rem; display: flex; flex-direction: column; gap: 0.3rem; }
.cnotes__zoom-bouton { min-width: 2.2rem; min-height: 2.2rem; justify-content: center; background: var(--fond-carte); box-shadow: var(--ombre); }
.cnotes__echelle { position: absolute; left: 0.6rem; bottom: 0.6rem; display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.72rem; color: var(--texte-2); pointer-events: none; }
.cnotes__echelle-barre { display: block; height: 6px; border: 2px solid var(--texte-2); border-top: 0; }
.cnotes__echelle-texte { font-family: var(--police-chiffres); background: var(--fond-carte); padding: 0 0.3rem; border-radius: var(--rayon); }
.cnotes__legende {
  position: absolute; left: 0.6rem; top: 0.6rem; max-width: calc(100% - 4.5rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.7rem;
  padding: 0.35rem 0.55rem; font-size: 0.75rem; color: var(--texte-2);
  background: var(--fond-carte); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre);
}
.cnotes__legende-titre { font-weight: 600; color: var(--texte); }
.cnotes__legende-item { display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.cnotes__legende-pastille { width: 0.9rem; height: 0.9rem; border-radius: 3px; border: 1px solid var(--fond-carte); box-shadow: 0 0 0 1px var(--bordure); }
.cnotes__legende-rond { width: 0.7rem; height: 0.7rem; border-radius: 50%; border: 1.5px solid var(--texte); background: var(--fond-carte); }
.cnotes__legende-rond--perso { border-radius: 1px; }
.cnotes__bulle {
  position: absolute; z-index: 2; pointer-events: none; max-width: 18rem;
  padding: 0.35rem 0.55rem; font-size: 0.8rem; line-height: 1.35; color: var(--texte);
  background: var(--fond-carte); border: 1px solid var(--bordure-forte); border-radius: var(--rayon); box-shadow: var(--ombre-forte);
}
.cnotes__bulle-type { display: block; color: var(--texte-3); font-size: 0.75rem; }
.cnotes__mode {
  position: absolute; left: 50%; bottom: 0.6rem; transform: translateX(-50%); margin: 0; max-width: calc(100% - 9rem);
  padding: 0.35rem 0.7rem; font-size: 0.82rem; text-align: center;
  color: var(--sur-accent); background: var(--accent); border-radius: var(--rayon); box-shadow: var(--ombre);
}
.cnotes__cote {
  min-width: 0; display: flex; flex-direction: column; gap: 0.5rem;
  border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond-carte);
  padding: 0.6rem; max-height: min(72vh, 680px); min-height: 360px; overflow: auto;
}
.cnotes__volet { border-bottom: 1px solid var(--bordure); padding-bottom: 0.6rem; }
.cnotes__volet-vide { margin: 0.2rem 0; color: var(--texte-3); font-style: italic; font-size: 0.88rem; }
.cnotes__volet-entete { display: flex; align-items: flex-start; gap: 0.4rem; }
.cnotes__volet-titre { flex: 1 1 auto; margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.cnotes__volet-titre:focus { outline: none; }
.cnotes__volet-titre:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cnotes__volet-type { margin: 0.1rem 0 0; font-size: 0.8rem; color: var(--texte-3); }
.cnotes__volet-compte { margin: 0.3rem 0; font-weight: 600; font-size: 0.9rem; }
.cnotes__notes { list-style: none; margin: 0 0 0.5rem; padding: 0; max-height: 14rem; overflow: auto; }
.cnotes__note { display: flex; align-items: center; gap: 0.3rem; border-radius: var(--rayon); }
.cnotes__note:hover { background: var(--fond-sourd); }
.cnotes__note-ouvrir {
  flex: 1 1 auto; min-width: 0; justify-content: flex-start; text-align: left; border: 0; background: none;
  padding: 0.3rem 0.35rem; color: var(--texte); overflow-wrap: anywhere; font-weight: 500;
}
.cnotes__note-ouvrir:hover span { text-decoration: underline; }
.cnotes__volet-actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.45rem; }
.cnotes__volet-actions .btn { justify-content: flex-start; text-align: left; white-space: normal; }
.cnotes__ranger-autre select { width: 100%; }
.cnotes__volet-gestion { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cnotes__liste { list-style: none; margin: 0; padding: 0; }
.cnotes__lieu-bouton {
  display: flex; align-items: center; gap: 0.5rem; width: 100%; padding: 0.35rem 0.4rem; text-align: left;
  font: inherit; color: var(--texte); background: none; border: 1px solid transparent; border-radius: var(--rayon); cursor: pointer;
}
.cnotes__lieu-bouton:hover { background: var(--fond-sourd); }
.cnotes__lieu-bouton:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cnotes__lieu-bouton[aria-current="true"] { background: var(--accent-doux); border-color: var(--accent); }
.cnotes__lieu-icone { color: var(--texte-3); flex: 0 0 auto; width: 1rem; text-align: center; }
.cnotes__lieu-textes { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.cnotes__lieu-nom { overflow-wrap: anywhere; font-weight: 500; }
.cnotes__lieu-type { font-size: 0.75rem; color: var(--texte-3); }
.cnotes__lieu-compte { font-family: var(--police-chiffres); font-size: 0.8rem; font-weight: 600; color: var(--sur-accent); background: var(--accent); border-radius: 999px; padding: 0 0.5rem; min-width: 1.6rem; text-align: center; }
.cnotes__lieu-compte--zero { color: var(--texte-3); background: var(--fond-sourd); font-weight: 400; }
.cnotes__vide { padding: 0.8rem 0.4rem; color: var(--texte-3); font-style: italic; }
@media (max-width: 900px) {
  /* Petit écran : la carte d'abord, le mode d'emploi en dessous. */
  .cnotes:not([hidden]) { display: flex; flex-direction: column; }
  .cnotes__aide { order: 3; margin: 0.8rem 0 0; }
  .cnotes__corps { grid-template-columns: minmax(0, 1fr); }
  .cnotes__zone { height: 62vh; min-height: 320px; }
  .cnotes__cote { max-height: none; min-height: 0; }
  .cnotes__boutons { margin-left: 0; }
}
@media (max-width: 480px) {
  .cnotes { padding: 0.75rem 0.6rem 0.9rem; }
  .cnotes__legende { font-size: 0.7rem; gap: 0.15rem 0.5rem; }
  .cnotes__mode { max-width: calc(100% - 1.2rem); bottom: 3.2rem; }
}

/* ==========================================================================
   V16 (4.0.0) : ONGLET DES FÊTES (fetes.js)
   --------------------------------------------------------------------------
   Chaque fête redéfinit les couleurs d'accent DANS le panneau seulement
   (les boutons principaux, les liserés et les cases suivent). Contrastes
   vérifiés ≥ 4,5:1 (texte sur l'accent, accent sur la carte, accent foncé
   sur les fonds teintés), en thème clair et en thème Nocturne. Les thèmes
   à forte identité (Contraste élevé, Terminal, Macintosh, Windows 95)
   gardent leurs propres couleurs : seuls les emojis changent.
   ========================================================================== */
.onglet--fete .onglet__emoji { font-size: 1.05rem; line-height: 1; }

.fete { --fete-fond-1: var(--fond-carte); --fete-fond-2: var(--fond-carte); }
.fete[data-fete="halloween"] { --accent: #a14a06; --accent-fort: #7c2d12; --accent-doux: #fdecd8; --sur-accent: #ffffff; --fete-fond-1: #fff4e6; --fete-fond-2: #f3e8ff; }
.fete[data-fete="noel"] { --accent: #b91c1c; --accent-fort: #7f1d1d; --accent-doux: #fde8e8; --sur-accent: #ffffff; --fete-fond-1: #fdf2f2; --fete-fond-2: #ecf8ef; }
.fete[data-fete="nouvelAn"] { --accent: #6d28d9; --accent-fort: #4c1d95; --accent-doux: #efe7fd; --sur-accent: #ffffff; --fete-fond-1: #f5f0ff; --fete-fond-2: #fdf7e3; }
.fete[data-fete="saintValentin"] { --accent: #be185d; --accent-fort: #831843; --accent-doux: #fde7f1; --sur-accent: #ffffff; --fete-fond-1: #fff0f6; --fete-fond-2: #fff5f5; }
.fete[data-fete="paques"] { --accent: #166534; --accent-fort: #14532d; --accent-doux: #e3f6e9; --sur-accent: #ffffff; --fete-fond-1: #f0fbf3; --fete-fond-2: #fffbe6; }
.fete[data-fete="poissonAvril"] { --accent: #0369a1; --accent-fort: #0c4a6e; --accent-doux: #e0f2fe; --sur-accent: #ffffff; --fete-fond-1: #eef8ff; --fete-fond-2: #f0fdfa; }

[data-theme="nocturne"] .fete[data-fete="halloween"] { --accent: #fb923c; --accent-fort: #fdba74; --accent-doux: #3b2414; --sur-accent: #1c0f05; --fete-fond-1: #2a1b10; --fete-fond-2: #231a33; }
[data-theme="nocturne"] .fete[data-fete="noel"] { --accent: #f87171; --accent-fort: #fca5a5; --accent-doux: #3a1818; --sur-accent: #1f0a0a; --fete-fond-1: #2b1616; --fete-fond-2: #12261a; }
[data-theme="nocturne"] .fete[data-fete="nouvelAn"] { --accent: #c4b5fd; --accent-fort: #ddd6fe; --accent-doux: #2a2245; --sur-accent: #160f2e; --fete-fond-1: #211a38; --fete-fond-2: #2a2412; }
[data-theme="nocturne"] .fete[data-fete="saintValentin"] { --accent: #f9a8d4; --accent-fort: #fbcfe8; --accent-doux: #3b1829; --sur-accent: #2a0b1b; --fete-fond-1: #2e1422; --fete-fond-2: #2b1717; }
[data-theme="nocturne"] .fete[data-fete="paques"] { --accent: #86efac; --accent-fort: #bbf7d0; --accent-doux: #15301f; --sur-accent: #052e16; --fete-fond-1: #13261a; --fete-fond-2: #29260f; }
[data-theme="nocturne"] .fete[data-fete="poissonAvril"] { --accent: #7dd3fc; --accent-fort: #bae6fd; --accent-doux: #10293a; --sur-accent: #082f49; --fete-fond-1: #0f2433; --fete-fond-2: #0f2a28; }

/* Thèmes à forte identité : couleurs du thème (« inherit » reprend la valeur du site). */
[data-theme="contraste"] .fete[data-fete], [data-theme="terminal"] .fete[data-fete],
[data-theme="macintosh"] .fete[data-fete], [data-theme="windows95"] .fete[data-fete] {
  --accent: inherit; --accent-fort: inherit; --accent-doux: inherit; --sur-accent: inherit;
  --fete-fond-1: var(--fond-carte); --fete-fond-2: var(--fond-carte);
}

.fete__entete {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--fete-fond-1), var(--fete-fond-2));
  border-top: 4px solid var(--accent);
}
.fete__decor {
  display: flex;
  gap: 1.1rem;
  overflow: hidden;
  white-space: nowrap;
  margin: -0.2rem 0 0.6rem;
  font-size: 1.25rem;
  line-height: 1.3;
  opacity: 0.55;
  user-select: none;
  pointer-events: none;
}
.fete__decor-motif:nth-child(even) { transform: translateY(0.25rem); }
.fete__titre { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.fete__emoji { font-size: 1.45em; line-height: 1; }
.fete__compte { margin-top: 0.6rem; font: 700 1.05rem/1.4 var(--police); color: var(--accent-fort); }
.fete__periode { margin-top: 0.15rem; }

.fete__grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
  align-items: start;
}
.fete__bloc { padding: 1rem 1.1rem 1.1rem; border-top: 4px solid var(--accent); }
.fete__bloc-titre { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.35rem; font: 700 1rem/1.3 var(--police); color: var(--texte); }
.fete__bloc-titre i { color: var(--accent); }
.fete__modeles { margin: 0.6rem 0 0.7rem; border: 0; padding: 0; }
.fete__champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 0.5rem 0.75rem; margin-bottom: 0.4rem; }
.fete__champ .champ { width: 100%; }
.fete__apercu-titre { margin: 0.5rem 0 0.3rem; font-size: 0.85rem; color: var(--texte-3); }
.fete__apercu {
  max-height: 18rem;
  overflow: auto;
  padding: 0.75rem 0.85rem;
  border: 1px dashed var(--bordure-forte);
  border-radius: var(--rayon);
  background: var(--fond-saisie);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
  line-height: 1.55;
}
.fete__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.fete__texte-libelle { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.4rem; }
.fete__texte { width: 100%; min-height: 8rem; resize: vertical; font: inherit; line-height: 1.5; }
.fete__transfos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.65rem; }
.fete__transfo i { color: var(--accent); }

.fete__palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.9rem, 1fr)); gap: 0.4rem; margin-top: 0.5rem; }
.fete__car {
  min-height: 2.9rem;
  padding: 0.2rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.fete__car--long { grid-column: span 2; font: 600 0.95rem/1 var(--police-chiffres); }
.fete__car:hover { border-color: var(--accent); background: var(--accent-doux); }
.fete__car:focus-visible, .fete__case:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.fete__avent { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.45rem; margin-top: 0.5rem; }
.fete__case {
  aspect-ratio: 1;
  min-height: 2.75rem;
  border: 2px solid var(--accent);
  border-radius: var(--rayon-carte);
  background: var(--accent-doux);
  color: var(--accent-fort);
  font: 800 1.05rem/1 var(--police);
  cursor: pointer;
}
.fete__case--ouverte { background: var(--accent); color: var(--sur-accent); }
.fete__case--aujourdhui { box-shadow: 0 0 0 3px var(--fond-carte), 0 0 0 5px var(--accent); }
.fete__case--fermee { border-style: dashed; border-color: var(--bordure-forte); background: var(--fond-sourd); color: var(--texte-3); cursor: not-allowed; }
.fete__astuce { margin-top: 0.75rem; padding: 0.7rem 0.85rem; border-left: 4px solid var(--accent); border-radius: var(--rayon); background: var(--accent-doux); color: var(--texte); line-height: 1.5; }
.fete__astuce:empty { display: none; }
.fete__reglage { max-width: 26rem; }

@media (max-width: 640px) {
  .fete__avent { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fete__decor { font-size: 1.05rem; gap: 0.8rem; }
}

/* ==========================================================================
   V17 (4.1.0) — SOUS-ONGLETS DU PROTOTYPE ET LISTES AUTOMATIQUES DES DICTIONNAIRES
   ========================================================================== */
/* Prototype : « Prototypes » / « Dictionnaire » (onglets) et choix du prototype (boutons segmentés). */
.proto-vues { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 0.8rem; border-bottom: 1px solid var(--bordure-forte); }
.proto-sous-onglets { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.proto-sous-onglet { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.95rem; margin-bottom: -1px; border: 1px solid var(--bordure); border-bottom-color: var(--bordure-forte); border-radius: var(--rayon) var(--rayon) 0 0; background: var(--fond-sourd); color: var(--texte-2); font: inherit; font-weight: 600; cursor: pointer; }
.proto-sous-onglet:hover { color: var(--texte); background: var(--fond-carte); }
.proto-sous-onglet[aria-selected="true"] { background: var(--fond); color: var(--accent-fort); border-color: var(--bordure-forte); border-bottom-color: var(--fond); box-shadow: inset 0 3px 0 var(--accent); }
.proto-sous-onglet:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.proto-choix { margin-bottom: 0.4rem; }
.proto-dico .sous-titre-section { display: flex; align-items: center; gap: 0.45rem; margin: 1.1rem 0 0.45rem; font-size: 1.02rem; }
.proto-dico .sous-titre-section i { color: var(--accent); }
.proto-dico__lien { margin: 1rem 0 0; }

/* Onglet Dictionnaires : « Mots déclencheurs » et « Mots de vos dictées ». */
.dico-auto__intro { margin: 0 0 0.5rem; }
.dico-auto__source { display: grid; gap: 0.1rem; padding: 0.5rem 0.7rem; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond-sourd); }
.dico-auto__tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.3rem 0.6rem; }
.dico-auto__tete .dico__section { margin: 0; padding: 0; border: 0; }
.dico-auto__ajout select { flex: 0 1 15rem; }
.dico-auto__outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.8rem; margin-bottom: 0.45rem; }
.dico-auto__frequents { list-style: none; margin: 0; padding: 0; display: grid; }
.dico-auto__mot { font-weight: 700; overflow-wrap: anywhere; }
.dico-auto__frequent .dico__actions { margin: 0 0 0 auto; }
.dico__badge--connu { border-color: var(--succes); color: var(--succes); }
.dico-auto__ignores { margin-top: 0.7rem; }
.dico-auto__ignores > summary { cursor: pointer; color: var(--texte-2); font-size: 0.88rem; }
.dico-auto__ignores .proto-mots__chips { margin-top: 0.35rem; }
@media (max-width: 640px) {
  .proto-vues { align-items: stretch; }
  .proto-sous-onglet { flex: 1 1 auto; justify-content: center; }
  .dico-auto__frequent .dico__actions { margin-left: 0; }
}

/* ==========================================================================
   V17 : liste de tâches (prototype « Liste de tâches », mise-en-taches.js)
   Les puces des déclencheurs réutilisent .proto-mot / .proto-mots__* (V15.1).
   ========================================================================== */
.taches { display: grid; gap: 0.7rem; }
.taches-texte { min-height: 9rem; }
.taches-reglages { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; align-items: flex-start; }
.taches-choix { margin: 0; padding: 0; border: none; min-width: 0; display: grid; gap: 0.3rem; }
.taches-choix > legend { padding: 0; margin-bottom: 0.3rem; }
.taches-resultat { display: grid; gap: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--bordure); }
.taches-resultat .carte__entete { flex-wrap: wrap; gap: 0.5rem; }
.taches-compte { font-size: 0.85rem; font-weight: 500; color: var(--texte-3); }
.taches-apercu { display: grid; gap: 0.8rem; }
.taches-groupe { padding: 0.55rem 0.75rem; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond-sourd); }
.taches-groupe__titre { display: flex; align-items: baseline; gap: 0.35rem; margin: 0 0 0.35rem; font-size: 0.95rem; }
.taches-groupe__compte { font-weight: 400; font-size: 0.82rem; color: var(--texte-3); }
.taches-liste { margin: 0; padding-left: 1.4rem; display: grid; gap: 0.2rem; line-height: 1.5; }
.taches-liste--cases, .taches-liste--paragraphes { list-style: none; padding-left: 0; }
.taches-liste--paragraphes { gap: 0.6rem; }
.taches-case { display: inline-flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; }
.taches-case input { margin-top: 0.3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--accent); flex: none; }
.taches-case input:checked + span { text-decoration: line-through; color: var(--texte-3); }
.taches-markdown { margin: 0.4rem 0 0; padding: 0.6rem 0.75rem; max-height: 18rem; overflow: auto; white-space: pre-wrap; word-break: break-word; font: 0.85rem/1.5 var(--police-chiffres); background: var(--fond-sourd); border: 1px solid var(--bordure); border-radius: var(--rayon); }
.taches-declencheurs { display: grid; gap: 0.7rem; }
@media (max-width: 640px) {
  .taches-reglages { flex-direction: column; }
  .taches-resultat .cmp-actions { width: 100%; }
  .taches-resultat .cmp-actions .btn { flex: 1 1 auto; }
}

/* ==========================================================================
   V17 (4.1.0) : variables — type de la ligne du curseur, aperçu en temps
   réel, conventions de nommage personnalisées
   ========================================================================== */
/* « Détection automatique : Date » : la liste ne change pas de largeur à chaque ligne. */
#var-type { min-width: min(18rem, 100%); }

/* ---- Aperçu de la transformation ---- */
.var-apercu { margin: 0.6rem 0 0.2rem; padding: 0.55rem 0.75rem; border: 1px dashed var(--bordure-forte); border-radius: var(--rayon); background: var(--fond-sourd); }
.var-apercu__titre { margin: 0 0 0.4rem; font-size: 0.9rem; font-weight: 600; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.45rem; }
.var-apercu__source { font-weight: 400; color: var(--texte-3); font-size: 0.82rem; }
.var-apercu__etapes { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.25rem; counter-reset: etape; }
.var-apercu__etape { display: grid; grid-template-columns: minmax(8.5rem, 15rem) minmax(0, 1fr); gap: 0.15rem 0.7rem; align-items: baseline; font-size: 0.88rem; counter-increment: etape; }
.var-apercu__libelle { color: var(--texte-3); }
.var-apercu__libelle::before { content: counter(etape) ". "; font-family: var(--police-chiffres); }
.var-apercu__valeur { font-family: var(--police-chiffres); overflow-wrap: anywhere; line-height: 1.55; }
.var-apercu__etape--final .var-apercu__valeur { font-size: 1rem; font-weight: 600; color: var(--texte); background: none; padding: 0; }
.var-apercu__vide { color: var(--texte-3); font-size: 0.85rem; font-style: italic; }
.var-apercu__legende { margin: 0.45rem 0 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; font-size: 0.78rem; color: var(--texte-3); }
.var-apercu__repere { white-space: nowrap; }
/* Repères : chacun a une FORME propre (souligné, barré, encadré…) en plus de sa couleur. */
.var-ap--espace { color: var(--accent); font-weight: 700; padding: 0 0.05em; }
.var-ap--accent { text-decoration: underline wavy var(--avertissement); text-underline-offset: 0.18em; font-weight: 700; }
.var-ap--remplace { text-decoration: underline var(--info); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.var-ap--barre { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--texte-3); }
.var-ap--majuscule { color: var(--accent-fort); text-decoration: underline; text-underline-offset: 0.15em; }
.var-ap--type, .var-ap--prefixe, .var-ap--suffixe, .var-ap--ajout { border-radius: 0.25rem; padding: 0 0.12em; }
.var-ap--type { border: 1px solid var(--accent); background: var(--accent-doux); }
.var-ap--prefixe { border: 1px dashed var(--info); }
.var-ap--suffixe { border: 1px dotted var(--info); }
.var-ap--ajout { border-bottom: 2px solid var(--succes); }
.var-ap--separateur { color: var(--texte-3); }
/* Ligne de résultat dont on voit l'aperçu. */
#var-resultats tr[data-ligne]:hover, #var-resultats tr[data-ligne]:focus-within { outline: 2px solid var(--accent-doux); outline-offset: -2px; }

/* ---- Conventions de nommage ---- */
.var-conv__intro, .var-conv__detail { font-size: 0.88rem; color: var(--texte-2); line-height: 1.5; }
.var-conv__detail { margin-top: 0.2rem; color: var(--texte-3); }
.var-conv__choix .segmente { flex-wrap: wrap; }
.var-conv__choix .champ-libelle { max-width: 26rem; }
.var-conv__actions, .var-conv__fichiers { flex-wrap: wrap; }
.var-conv__fichiers { border-top: 1px solid var(--bordure); padding-top: 0.6rem; }
.var-conv__editeur { padding: 0.7rem; border: 1px solid var(--bordure-forte); border-radius: var(--rayon); background: var(--fond-sourd); }
.var-conv__editeur-titre { margin: 0 0 0.6rem; font-size: 0.95rem; }
.var-conv__grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr)); gap: 0.55rem 0.9rem; }
.var-conv__large { grid-column: 1 / -1; }
.var-conv__zone { min-height: 3.4rem; resize: vertical; font-family: var(--police-chiffres); }
.var-conv__essai { margin: 0.7rem 0; }
.var-conv__essai-titre { margin: 0 0 0.3rem; font-size: 0.85rem; font-weight: 600; }
.var-conv__essai-liste { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.2rem; font-size: 0.86rem; }
.var-conv__essai-description { color: var(--texte-2); }
.var-conv__essai-alerte { font-size: 0.8rem; }

@media (max-width: 640px) {
  .var-apercu__etape { grid-template-columns: minmax(0, 1fr); }
  .var-apercu__libelle { font-size: 0.8rem; }
  #var-type { min-width: 0; width: 100%; }
}

/* V18 (4.2.0) — ONGLET ADMINISTRATION : V25 (4.9.0), règles déplacées dans css/administration.css
   (chargée seulement par la page administration.html ; ≈ 9,5 Ko de moins pour la page publique). */

/* ==========================================================================
   V18 (4.2.0) — 03/11/2026 — ONGLET « SAVIEZ-VOUS COMBIEN ? » (saviez.js)
   V19 (4.3.0) — 04/11/2026 : la couleur des livres suit le THÈME (littérature,
   politique et société, sciences) au lieu du genre ; filtre « Thème ».
   V20 (4.4.0) — 04/11/2026 : objet 3D toujours entier (taille calculée par le
   JavaScript, objet non rétréci par la scène) ; texte net sur écran dense
   (zoom + scale3d) ; textes de l'objet d'au moins 12 px ; césure des titres ;
   sur téléphone, étagère d'UNE rangée qui défile (dos d'au moins 28 px) ;
   boutons de vue de 44 × 44 px sur écran tactile.
   --------------------------------------------------------------------------
   Étagère des œuvres, objet 3D (CSS 3D : six faces placées avec des
   transformations ; dimensions et rotation reçues en variables --l, --h, --e,
   --rx, --ry posées par le JavaScript), fiche, graphiques SVG et classement.
   Couleurs des graphiques : palette vérifiée (daltonisme, contrastes) en
   thème clair et en thème sombre ; trois « familles » de couleur seulement,
   le genre étant toujours aussi écrit ou montré par une icône.
   Aucune animation si l'utilisateur a demandé de réduire les animations.
   ========================================================================== */
.saviez {
  --saviez-recit: #2a78d6;          /* bleu : littérature (V19 ; V18 : romans, contes) */
  --saviez-scene: #eb6834;          /* orange : politique et société (V18 : poésie, théâtre) */
  --saviez-idees: #1baf7a;          /* vert d'eau : sciences (V18 : essais, discours) */
  --saviez-serie-1: #2a78d6;
  --saviez-serie-2: #eb6834;
  --saviez-gris: #898781;           /* barres « de contexte » (mise en avant) */
  --saviez-grille: #e1e0d9;
  --saviez-axe: #c3c2b7;
  --saviez-papier: #fbf7ee;
  --saviez-papier-bord: #e4dccb;
  --saviez-encre: #1a1a1a;
  --saviez-etiquette: #f7f1e3;
  --saviez-bois: #a47c4f;
  --saviez-bois-fonce: #7a5a36;
}
[data-theme="nocturne"] .saviez {
  --saviez-recit: #3987e5;
  --saviez-scene: #d95926;
  --saviez-idees: #199e70;
  --saviez-serie-1: #3987e5;
  --saviez-serie-2: #d95926;
  --saviez-gris: #898781;
  --saviez-grille: #2d333b;
  --saviez-axe: #4a5361;
  --saviez-papier: #e3dccb;
  --saviez-papier-bord: #b9b09c;
  --saviez-bois: #6b5134;
  --saviez-bois-fonce: #4a3822;
}
/* Thèmes à couleurs imposées : la couleur du thème partout, les familles se
   distinguent par l'icône écrite sur chaque dos (jamais par la couleur seule). */
[data-theme="terminal"] .saviez,
[data-theme="macintosh"] .saviez,
[data-theme="contraste"] .saviez {
  --saviez-recit: var(--fond-sourd);
  --saviez-scene: var(--fond-sourd);
  --saviez-idees: var(--fond-sourd);
  --saviez-serie-1: var(--accent);
  --saviez-serie-2: var(--texte);
  --saviez-gris: var(--texte-3);
  --saviez-grille: var(--bordure);
  --saviez-axe: var(--bordure-forte);
  --saviez-papier: var(--fond-carte);
  --saviez-papier-bord: var(--texte);
  --saviez-encre: var(--texte);
  --saviez-etiquette: var(--fond-carte);
  --saviez-bois: var(--texte-3);
  --saviez-bois-fonce: var(--texte);
}
[data-theme="windows95"] .saviez { --saviez-grille: #a0a0a0; --saviez-axe: #404040; }

.saviez__famille--recit, [data-famille="recit"],
.saviez__famille--litterature, [data-famille="litterature"] { --saviez-famille: var(--saviez-recit); }
.saviez__famille--scene, [data-famille="scene"],
.saviez__famille--politique, [data-famille="politique"] { --saviez-famille: var(--saviez-scene); }
.saviez__famille--idees, [data-famille="idees"],
.saviez__famille--sciences, [data-famille="sciences"] { --saviez-famille: var(--saviez-idees); }

/* ---- Filtres (une ligne au-dessus de tout ce qu'ils règlent) ------------ */
.saviez__filtres {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.6rem 0.9rem;
  margin: 0.4rem 0 1rem;
}
.saviez__filtres .champ-libelle { min-width: 0; }
.saviez__filtres select { max-width: 100%; }
.saviez__compte { color: var(--texte-3); font-size: 0.88rem; padding-bottom: 0.45rem; }

/* ---- L'étagère ------------------------------------------------------------- */
/* Chaque rangée mesure 172 px : 160 px de livres au plus + une planche de 12 px. */
.saviez__etagere {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  align-content: flex-start;
  gap: 0 2px;
  padding: 0 0.4rem;
  background-image: linear-gradient(to top, var(--saviez-bois-fonce) 0, var(--saviez-bois-fonce) 3px, var(--saviez-bois) 3px, var(--saviez-bois) 12px, transparent 12px);
  background-size: 100% 184px;
  background-position: 0 0;
  min-width: 0;
}
.saviez__dos {
  position: relative;
  box-sizing: border-box;
  width: var(--larg, 20px);
  height: var(--haut, 150px);
  margin: calc(172px - var(--haut, 150px)) 0 12px;
  padding: 6px 0;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 2px 2px 0 0;
  background: var(--saviez-famille, var(--saviez-recit));
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(255, 255, 255, 0.12) 30%, rgba(0, 0, 0, 0.12));
  background-color: var(--saviez-famille, var(--saviez-recit));
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  font: inherit;
  color: var(--saviez-encre);
  transition: transform 0.15s ease;
}
.saviez__dos--brochure { border-radius: 0; background-image: none; }
.saviez__dos--feuillet,
.saviez__dos--journal { background: var(--saviez-papier); background-image: none; border-color: var(--saviez-papier-bord); }
.saviez__dos--feuillet::before,
.saviez__dos--journal::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--saviez-famille); }
.saviez__dos:hover { transform: translateY(-3px); }
.saviez__dos[aria-selected="true"] { transform: translateY(-8px); outline: 3px solid var(--texte); outline-offset: 1px; z-index: 1; }
.saviez__dos:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; z-index: 2; }
/* Étiquette claire collée sur le dos : le titre se lit de bas en haut (dos « à la française »). */
.saviez__dos-etiquette {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-height: 100%;
  padding: 4px 2px;
  border-radius: 2px;
  background: var(--saviez-etiquette);
  color: var(--saviez-encre);
  overflow: hidden;
  max-width: calc(100% - 4px);
}
.saviez__dos-icone { font-size: 0.68rem; line-height: 1; }
.saviez__dos-titre {
  writing-mode: vertical-rl;
  text-orientation: sideways;   /* V20 : l'apostrophe ’ suit le texte au lieu de rester debout (« J’accuse…! ») */
  transform: rotate(180deg);
  font-size: 0.7rem;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(var(--haut, 150px) - 40px);
}
.saviez__dos--etroit .saviez__dos-titre { display: none; }
.saviez__aide-etagere { display: none; }
.saviez__legende-etagere { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; align-items: center; margin-top: 0.7rem; font-size: 0.86rem; color: var(--texte-2); }
.saviez__legende-etagere .perso__aide { margin: 0; }

/* ---- Clés de légende (barres, points) --------------------------------------- */
.saviez__cles { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin: 0.35rem 0 0.2rem; font-size: 0.85rem; color: var(--texte-2); }
.saviez__cles .perso__aide { margin: 0; }
.saviez__cle { display: inline-flex; align-items: center; gap: 0.4rem; }
.saviez__cle-marque { display: inline-block; flex: none; }
.saviez__cle-marque--barre { width: 14px; height: 10px; border-radius: 2px; background: var(--saviez-famille, var(--saviez-serie-1)); }
.saviez__cle-marque--point { width: 10px; height: 10px; border-radius: 50%; background: var(--saviez-serie-2); box-shadow: 0 0 0 2px var(--fond-carte); }
.saviez__cle-marque--barre.saviez__marque--1 { background: var(--saviez-serie-1); }
[data-theme="terminal"] .saviez__cle-marque--barre,
[data-theme="macintosh"] .saviez__cle-marque--barre,
[data-theme="contraste"] .saviez__cle-marque--barre { border: 1px solid var(--texte); }
/* V19 : thèmes sans couleurs (Terminal, Macintosh, Contraste élevé) : le THÈME
   reste visible grâce à une texture (rayures à 45° ou 135°), sur les dos et la
   légende ; la littérature reste unie. */
[data-theme="terminal"] .saviez__dos[data-famille="politique"],
[data-theme="macintosh"] .saviez__dos[data-famille="politique"],
[data-theme="contraste"] .saviez__dos[data-famille="politique"],
[data-theme="terminal"] .saviez__cle-marque.saviez__famille--politique,
[data-theme="macintosh"] .saviez__cle-marque.saviez__famille--politique,
[data-theme="contraste"] .saviez__cle-marque.saviez__famille--politique {
  background-image: repeating-linear-gradient(45deg, var(--texte) 0 1px, transparent 1px 6px);
}
[data-theme="terminal"] .saviez__dos[data-famille="sciences"],
[data-theme="macintosh"] .saviez__dos[data-famille="sciences"],
[data-theme="contraste"] .saviez__dos[data-famille="sciences"],
[data-theme="terminal"] .saviez__cle-marque.saviez__famille--sciences,
[data-theme="macintosh"] .saviez__cle-marque.saviez__famille--sciences,
[data-theme="contraste"] .saviez__cle-marque.saviez__famille--sciences {
  background-image: repeating-linear-gradient(135deg, var(--texte) 0 1px, transparent 1px 6px);
}

/* ---- Tableau des œuvres ----------------------------------------------------- */
.saviez__tableau, .saviez__table-zone { overflow-x: auto; max-width: 100%; }
.saviez__table { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
.saviez__table caption { text-align: left; color: var(--texte-3); font-size: 0.85rem; padding-bottom: 0.4rem; }
.saviez__table th, .saviez__table td { padding: 0.35rem 0.55rem; border-bottom: 1px solid var(--bordure); text-align: left; vertical-align: top; }
.saviez__table thead th { color: var(--texte-2); font-weight: 600; border-bottom-color: var(--bordure-forte); }
.saviez__table .saviez__num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.saviez__ligne--choisie { background: var(--accent-doux); }
.saviez__lien-oeuvre { background: none; border: none; padding: 0; font: inherit; font-weight: 600; color: var(--accent); text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.saviez__lien-oeuvre:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.saviez__vide { color: var(--texte-2); padding: 1rem 0; }

/* ---- La fiche ------------------------------------------------------------------ */
.saviez__fiche-haut { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 1.2rem 1.6rem; align-items: start; }
.saviez__visionneuse { min-width: 0; }
.saviez__scene {
  position: relative;
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: var(--saviez-perspective, 900px);
  border-radius: var(--rayon-carte);
  background: radial-gradient(ellipse at 50% 85%, var(--fond-sourd) 0, var(--fond-sourd) 30%, transparent 70%);
  cursor: grab;
  touch-action: pan-y;          /* glisser à l'horizontale fait tourner, à la verticale fait défiler */
  user-select: none;
  overflow: hidden;
}
.saviez__scene:active { cursor: grabbing; }
.saviez__scene:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.saviez__objet {
  position: relative;
  flex: none;                   /* V20 : la scène ne rétrécit jamais l'objet */
  width: var(--l, 130px);
  height: var(--h, 210px);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, -14deg)) rotateY(var(--ry, 32deg));
  transition: transform 0.5s ease;
}
/* V20 : texte net sur un écran dense (Chromium) : objet dessiné n fois plus
   grand (zoom) puis réduit d'autant ; même taille et même géométrie à l'écran. */
@supports (zoom: 2) {
  .saviez__objet--net {
    zoom: var(--n, 1);
    transform: rotateX(var(--rx, -14deg)) rotateY(var(--ry, 32deg)) scale3d(calc(1 / var(--n, 1)), calc(1 / var(--n, 1)), calc(1 / var(--n, 1)));
  }
}
.saviez__objet--glisse { transition: none; }
.saviez__face {
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  backface-visibility: hidden;
  overflow: hidden;
}
.saviez__face--avant, .saviez__face--arriere { width: var(--l); height: var(--h); }
.saviez__face--avant { transform: translateZ(calc(var(--e) / 2)); }
.saviez__face--arriere { transform: rotateY(180deg) translateZ(calc(var(--e) / 2)); }
.saviez__face--dos, .saviez__face--tranche { width: var(--e); height: var(--h); left: calc((var(--l) - var(--e)) / 2); }
.saviez__face--dos { transform: rotateY(-90deg) translateZ(calc(var(--l) / 2)); }
.saviez__face--tranche { transform: rotateY(90deg) translateZ(calc(var(--l) / 2)); }
.saviez__face--haut, .saviez__face--bas { width: var(--l); height: var(--e); top: calc((var(--h) - var(--e)) / 2); }
.saviez__face--haut { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); }
.saviez__face--bas { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); }

/* Livre relié (toile de la couleur de la famille, étiquette claire, pages crème). */
.saviez__objet--livre .saviez__face--avant,
.saviez__objet--livre .saviez__face--arriere,
.saviez__objet--livre .saviez__face--dos {
  background-color: var(--saviez-famille);
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(255, 255, 255, 0.08) 12%, rgba(0, 0, 0, 0.06));
  border: 1px solid rgba(0, 0, 0, 0.3);
}
.saviez__face--tranche, .saviez__face--haut, .saviez__face--bas {
  background-color: var(--saviez-papier);
  background-image: repeating-linear-gradient(90deg, var(--saviez-papier) 0, var(--saviez-papier) 2px, var(--saviez-papier-bord) 2px, var(--saviez-papier-bord) 3px);
}
.saviez__face--haut, .saviez__face--bas { background-image: repeating-linear-gradient(0deg, var(--saviez-papier) 0, var(--saviez-papier) 2px, var(--saviez-papier-bord) 2px, var(--saviez-papier-bord) 3px); }
.saviez__objet--livre .saviez__face--avant,
.saviez__objet--brochure .saviez__face--avant {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 10% 9%;
  text-align: center;
}
.saviez__objet--livre .saviez__face--avant::before {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 3px;
  background: var(--saviez-etiquette);
  border: 1px solid rgba(0, 0, 0, 0.25);
}
.saviez__couv-auteur, .saviez__couv-titre, .saviez__couv-date, .saviez__couv-filet, .saviez__journal-date { position: relative; color: var(--saviez-encre); }
.saviez__couv-auteur { font-size: clamp(0.75rem, calc(var(--l) / 13), 0.85rem); text-transform: uppercase; letter-spacing: 0.04em; }
/* V20 : césure avec trait d'union (attribut lang posé par le JavaScript, et
   tirets conditionnels dans les données pour les mots trop longs). */
.saviez__couv-titre { font-family: var(--police-titre); font-weight: 700; font-size: clamp(0.8rem, calc(var(--l) / 8.5), 1.25rem); line-height: 1.12; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.saviez__couv-date { font-size: clamp(0.75rem, calc(var(--l) / 15), 0.82rem); color: var(--saviez-encre); }
.saviez__couv-filet { width: 40%; height: 2px; background: var(--saviez-famille); }
.saviez__quatrieme { display: block; margin: 18% 8% 0; padding: 0.4rem; border-radius: 3px; background: var(--saviez-etiquette); color: var(--saviez-encre); font-size: 0.75rem; line-height: 1.3; text-align: center; }
.saviez__dos-texte {
  display: block;
  margin: 12% auto 0;
  max-height: 76%;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 3px 1px;
  border-radius: 2px;
  background: var(--saviez-etiquette);
  color: var(--saviez-encre);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Brochure (couverture de papier, bandeau de couleur). */
.saviez__objet--brochure .saviez__face--avant,
.saviez__objet--brochure .saviez__face--arriere,
.saviez__objet--brochure .saviez__face--dos { background: var(--saviez-papier); border: 1px solid var(--saviez-papier-bord); }
.saviez__objet--brochure .saviez__face--avant { border-top: 14px solid var(--saviez-famille); }
.saviez__objet--brochure .saviez__face--dos { border-top: 14px solid var(--saviez-famille); }
/* Feuillet et journal (une feuille de papier). */
.saviez__objet--feuillet .saviez__face--avant,
.saviez__objet--feuillet .saviez__face--arriere,
.saviez__objet--journal .saviez__face--avant,
.saviez__objet--journal .saviez__face--arriere { background: var(--saviez-papier); border: 1px solid var(--saviez-papier-bord); }
.saviez__objet--feuillet .saviez__face--avant,
.saviez__objet--journal .saviez__face--avant { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 9% 8%; text-align: center; }
.saviez__objet--feuillet .saviez__face--avant { border-top: 6px solid var(--saviez-famille); }
.saviez__lignes, .saviez__colonnes { flex: 1; width: 100%; margin-top: 0.4rem; }
.saviez__lignes { background-image: repeating-linear-gradient(180deg, transparent 0, transparent 7px, var(--saviez-papier-bord) 7px, var(--saviez-papier-bord) 8px); }
.saviez__colonnes {
  background-image:
    repeating-linear-gradient(90deg, transparent 0, transparent 30%, var(--saviez-papier) 30%, var(--saviez-papier) 34%),
    repeating-linear-gradient(180deg, transparent 0, transparent 5px, var(--saviez-papier-bord) 5px, var(--saviez-papier-bord) 6px);
}
.saviez__journal-date { width: 100%; padding-bottom: 0.25rem; border-bottom: 3px double var(--saviez-encre); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.saviez__vues-3d { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem; margin-top: 0.5rem; }
.saviez__vues-3d .btn { padding-left: 0.5rem; padding-right: 0.5rem; }
.saviez__aide-3d { text-align: center; margin: 0.4rem 0 0; font-size: 0.82rem; }

.saviez__identite { min-width: 0; }
.saviez__fiche-titre { font-family: var(--police-titre); font-size: 1.6rem; font-weight: 700; line-height: 1.15; }
.saviez__fiche-auteur { color: var(--texte-2); margin: 0.2rem 0 0.8rem; }
.saviez__infos { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.35rem 0.9rem; font-size: 0.9rem; margin: 0; }
.saviez__infos dt { color: var(--texte-3); font-weight: 600; }
.saviez__infos dd { margin: 0; color: var(--texte); overflow-wrap: anywhere; }
.saviez__infos a { color: var(--accent); }
.saviez__aide-mesure { display: block; color: var(--texte-3); font-size: 0.8rem; }

.saviez__sous-titre { font-size: 1.02rem; font-weight: 700; margin: 1.3rem 0 0.6rem; }
.saviez__sous-titre--grand { font-family: var(--police-titre); font-size: 1.3rem; margin-top: 0; }

/* Chiffres clés (tuiles) : valeur en grand, chiffres proportionnels. */
.saviez__chiffres { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; }
.saviez__tuile { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.7rem 0.8rem; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond-sourd); min-width: 0; }
.saviez__tuile-libelle { font-size: 0.82rem; color: var(--texte-2); }
.saviez__tuile-valeur { font-size: 1.35rem; font-weight: 600; color: var(--texte); overflow-wrap: anywhere; }
.saviez__tuile-detail { font-size: 0.75rem; color: var(--texte-3); }

.saviez__deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.6rem; }
.saviez__bloc { min-width: 0; }
.saviez__faits { margin: 0.6rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.saviez__fait { line-height: 1.45; }
.saviez__fait--votre { font-weight: 600; }
.saviez__votre { margin-top: 0.6rem; }
/* V19 : des titres plus longs (« Introduction à l'étude de la médecine expérimentale ») :
   la liste « Comparer avec » ne dépasse jamais sa colonne. */
.saviez__bloc .champ-libelle--ligne { flex-wrap: wrap; }
#saviez-reference { max-width: 100%; min-width: 0; }

/* ---- Graphiques SVG ----------------------------------------------------------------- */
.saviez__graphiques { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.6rem; margin-top: 0.6rem; }
.saviez__graphique { position: relative; margin: 1rem 0 0; min-width: 0; }
.saviez__graphique:last-child:nth-child(odd) { grid-column: 1 / -1; }
.saviez__graphique-titre { font-size: 1rem; font-weight: 700; margin: 0; }
.saviez__graphique-aide { margin: 0.15rem 0 0.4rem; font-size: 0.82rem; }
.saviez__trace { width: 100%; min-width: 0; }
.saviez__svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.saviez__grille { stroke: var(--saviez-grille); stroke-width: 1; shape-rendering: crispEdges; }
.saviez__axe { stroke: var(--saviez-axe); stroke-width: 1; shape-rendering: crispEdges; }
.saviez__graduation, .saviez__libelle-axe { fill: var(--texte-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.saviez__libelle-barre { fill: var(--texte-2); font-size: 12px; }
.saviez__libelle-barre--avant { fill: var(--texte); font-weight: 700; }
.saviez__valeur { fill: var(--texte); font-size: 12px; font-variant-numeric: tabular-nums; }
.saviez__marque--1 { fill: var(--saviez-serie-1); }
.saviez__marque--2 { fill: var(--saviez-serie-2); }
.saviez__marque--fond { fill: var(--saviez-gris); }
.saviez__point { stroke: var(--fond-carte); stroke-width: 2; }
.saviez__cible { fill: transparent; cursor: default; outline: none; }
.saviez__cible[role="button"] { cursor: pointer; }
.saviez__cible:hover, .saviez__cible:focus { fill: var(--texte); fill-opacity: 0.06; }
.saviez__cible:focus-visible { stroke: var(--accent); stroke-width: 2; }
.saviez__bulle {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  max-width: 240px;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--bordure-forte);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  box-shadow: var(--ombre-forte);
  font-size: 0.82rem;
  color: var(--texte-2);
}
.saviez__bulle strong { color: var(--texte); font-size: 0.95rem; }
.saviez__donnees { margin-top: 0.4rem; font-size: 0.88rem; }
.saviez__donnees summary { cursor: pointer; color: var(--texte-2); }
.saviez__donnees .saviez__table { margin-top: 0.4rem; }

.saviez__classement-carte .champ-libelle { margin-bottom: 0.3rem; }
.saviez__methode summary { cursor: pointer; font-weight: 600; }
.saviez__methode-liste { margin: 0.8rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.45rem; color: var(--texte-2); font-size: 0.9rem; line-height: 1.5; }

/* ---- Petits écrans --------------------------------------------------------------------- */
@media (max-width: 760px) {
  .saviez__fiche-haut, .saviez__deux, .saviez__graphiques { grid-template-columns: minmax(0, 1fr); }
  .saviez__scene { height: 230px; }
  .saviez__fiche-titre { font-size: 1.35rem; }
}
@media (max-width: 480px) {
  .saviez__filtres .champ-libelle { flex: 1 1 140px; }
  .saviez__filtres select { width: 100%; }
  .saviez__chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .saviez__tuile-valeur { font-size: 1.15rem; }
  .saviez__infos { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .saviez__infos dd { margin-bottom: 0.4rem; }
  /* Les six boutons de vue tiennent sur une ligne (390 px). */
  .saviez__vues-3d { gap: 0.1rem; }
  /* V19 : filtre « Thème » en deux colonnes (4 boutons lisibles sur 390 px). */
  .saviez__theme { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .saviez__theme .segmente__option > span { width: 100%; justify-content: center; text-align: center; }
  .saviez__theme > legend { grid-column: 1 / -1; }
  .saviez__vues-3d .btn { padding-left: 0.3rem; padding-right: 0.3rem; font-size: 0.8rem; min-width: 0; }
}

/* ---- V20 : écran tactile : boutons de vue de 44 × 44 px au moins ------------------------ */
@media (pointer: coarse) {
  .saviez__vues-3d .btn { min-width: 44px; min-height: 44px; }
}
/* Téléphone tactile : les quatre vues sur une ligne, les deux flèches (tourner)
   sur la ligne suivante (six cibles de 44 px ne tiennent pas sur 390 px). */
@media (pointer: coarse) and (max-width: 480px) {
  .saviez__vues-3d { gap: 0.25rem; }
  .saviez__vues-3d::before { content: ''; order: 1; flex-basis: 100%; height: 0; }
  .saviez__vues-3d [data-tourner] { order: 2; min-width: 56px; }
}
/* ---- V20 : étagère sur téléphone : UNE rangée qui défile à l'horizontale --------------
   Avant : 8 rangées (1 104 px de haut) et 31 dos de moins de 24 px. Maintenant :
   dos d'au moins 28 px (28 px + 0,6 px par mm d'épaisseur, l'épaisseur reste
   lisible ; rangée d'environ 2 000 px), rangée de 152 px, défilement dans l'étagère seulement (jamais la page). */
@media (max-width: 600px) {
  .saviez__etagere {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 0.4rem;
    background-size: 100% 152px;
    background-attachment: local;
    padding-bottom: 6px;
  }
  .saviez__dos {
    flex: none;
    width: calc(28px + var(--mm, 0) * 0.6px);
    height: calc(var(--haut, 150px) * 0.8);
    margin: calc(140px - var(--haut, 150px) * 0.8) 0 12px;
  }
  .saviez__dos--etroit .saviez__dos-titre { display: block; }
  .saviez__dos-titre { font-size: 0.75rem; max-height: calc(var(--haut, 150px) * 0.8 - 40px); }
  .saviez__aide-etagere { display: block; margin: 0.35rem 0 0; font-size: 0.85rem; }
}

/* ---- Mouvement réduit : rien ne bouge ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .saviez__objet, .saviez__dos { transition: none; }
  .saviez__dos:hover { transform: none; }
  .saviez__dos[aria-selected="true"] { transform: none; }
  .saviez__scene { cursor: default; }
}
/* Couleurs forcées (Windows) : bords visibles, marques dans la couleur du texte. */
@media (forced-colors: active) {
  .saviez__dos, .saviez__face { border: 1px solid CanvasText; }
  .saviez__marque--1, .saviez__marque--2, .saviez__marque--fond { fill: CanvasText; }
  .saviez__dos[aria-selected="true"] { outline: 3px solid Highlight; }
}
/* Impression : la fiche, sans la scène 3D ni les boutons. */
@media print {
  .saviez__scene, .saviez__vues-3d, .saviez__aide-3d, .saviez__filtres { display: none; }
}

/* ==========================================================================
   V18 (4.2.0) : ONGLET « LE TEXTE S'AMUSE » (animation-texte.js, animation-video.js)
   V20 (4.4.0) — 04/11/2026 : plein écran en portrait (--anime-zoom), aide clavier
   cachée sur écran tactile, aperçu « collant » sur téléphone, « Lire » malgré
   « réduire les animations » valable aussi pour un réglage du site.
   V19 (4.3.0) — 04/11/2026 : bloc « Vidéo, GIF ou image » (formats MP4, WebM,
   GIF animé, PNG ; animation-export.js) : estimation en chiffres alignés.
   --------------------------------------------------------------------------
   La SCÈNE (#anime-scene) reçoit ses réglages par des variables CSS posées
   en JavaScript (el.style.setProperty) : --anime-texte, --anime-accent,
   --anime-courbe (fonction « linear() » qui contient l'effet, la courbe,
   la répétition et les pauses), --anime-delai, --anime-decalage… Chaque
   unité animée (.anime-u) reçoit son rang --i. Les @keyframes des effets
   sont plus bas (« effets générés ») : ils sont fabriqués par la fonction
   cssApercu() d'animation-texte.js et doivent rester identiques (vérifié par
   tests/test-anime.js ; pour les refaire : node outils/generer-css-animation.js).
   ========================================================================== */
.anime__grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
.anime__bloc { padding: 1rem 1.1rem 1.1rem; min-width: 0; }
.anime__bloc-titre { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-bottom: 0.6rem; font: 700 1rem/1.3 var(--police); color: var(--texte); }
.anime__bloc-titre i { color: var(--accent); }
.anime__cadre { margin-left: auto; font-size: 0.78rem; font-weight: 500; color: var(--texte-3); }
.anime__texte { min-height: 8.5rem; resize: vertical; font-size: 0.95rem; line-height: 1.5; }
.anime__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.anime__ligne { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.7rem 1.2rem; margin: 0.7rem 0; }
.anime__ligne--prereglages { margin-top: 0; }
.anime__ligne--prereglages .anime__actions { margin-top: 0; }
.anime__large { flex: 1 1 15rem; min-width: 0; }
.anime__compte { margin: 0.55rem 0 0; }
.anime__grille-champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: 0.6rem 0.9rem; margin-bottom: 0.7rem; }
.anime__segmente { margin: 0.6rem 0 0.3rem; }
.anime__segmente input:disabled + span { opacity: 0.5; cursor: not-allowed; }
.anime__segmente input:disabled + span:hover { background: var(--fond-carte); color: var(--texte-2); }
.anime__aide-effet { margin: 0.4rem 0 0.2rem; min-height: 2.6em; }
.anime__aide-unite { margin: 0.2rem 0 0; font-size: 0.82rem; }
.anime__petite-aide { font-size: 0.8rem; color: var(--texte-3); }
.anime__pause { max-width: 16rem; margin-top: 0.5rem; }
.anime__curseur { width: 100%; accent-color: var(--accent); min-height: 2.25rem; }
.anime__couleurs { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 0.7rem 0 0.2rem; }
.anime__couleurs .segmente__legende { margin-bottom: 0; }
.anime__couleur { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--texte-2); cursor: pointer; }
.anime__couleur input { width: 2.4rem; height: 2rem; padding: 0.1rem; border: 1px solid var(--bordure-forte); border-radius: var(--rayon); background: var(--fond-carte); cursor: pointer; }
.anime__couleur input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.anime__controles { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }
.anime__resume { margin: 0.5rem 0 0; }
.anime__alertes { margin-top: 0.4rem; display: grid; gap: 0.3rem; }
.anime__alerte { margin: 0; padding: 0.4rem 0.6rem; border-left: 3px solid var(--avertissement); background: var(--fond-sourd); color: var(--texte); font-size: 0.85rem; border-radius: 0 var(--rayon) var(--rayon) 0; }
.anime__code { min-height: 9rem; resize: vertical; font: 0.78rem/1.45 var(--police-chiffres); white-space: pre; overflow-wrap: normal; overflow-x: auto; }
.anime__progression { display: block; width: 100%; height: 0.7rem; margin-top: 0.7rem; accent-color: var(--accent); }
.anime__canevas { display: block; width: 100%; height: auto; margin-top: 0.7rem; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond-sourd); }
.anime__duree-video { width: 5.5rem; }
/* V19 : estimation (durée, images, taille) : chiffres alignés, un peu plus visibles. */
.anime__estimation { margin: 0.5rem 0 0; color: var(--texte-2); font-variant-numeric: tabular-nums; }

/* Grand écran : l'aperçu à droite, collé en haut pendant qu'on règle à gauche. */
@media (min-width: 960px) {
  .anime__grille { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); grid-template-areas: "texte apercu" "effet apercu" "rythme apercu" "apparence apercu" "code video"; }
  .anime__bloc--texte { grid-area: texte; }
  .anime__bloc--apercu { grid-area: apercu; align-self: stretch; }
  .anime__bloc--effet { grid-area: effet; }
  .anime__bloc--rythme { grid-area: rythme; }
  .anime__bloc--apparence { grid-area: apparence; }
  .anime__bloc--code { grid-area: code; align-self: stretch; }
  .anime__bloc--video { grid-area: video; align-self: stretch; }
  .anime__colle { position: sticky; top: 0.75rem; }
}

/* ---- La scène (cadre de l'aperçu) ---- */
.anime-scene {
  --anime-texte: #1a1a1a; --anime-accent: #b5473f; --anime-fond: #f7f4ee; --anime-fond2: #f7e4e1; --anime-surlignage: rgba(181, 71, 63, 0.3);
  --anime-delai: 0s; --anime-decalage: 0.1s; --anime-duree-anim: 1s; --anime-iterations: 1; --anime-courbe: linear(0, 1);
  --anime-taille: 56; --anime-police: var(--police-titre); --anime-poids: 400; --anime-alignement: center; --anime-fond-css: var(--anime-fond);
  position: relative;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--bordure-forte);
  border-radius: var(--rayon);
  color: var(--anime-texte);
  background: var(--anime-fond-css);
}
.anime-scene.anime--format-carre { aspect-ratio: 1 / 1; max-width: min(100%, 30rem); margin-inline: auto; }
/* Fond transparent : damier, comme dans les logiciels de dessin. */
.anime-scene.anime--fond-transparent {
  background-color: var(--fond-carte);
  background-image: linear-gradient(45deg, var(--fond-sourd) 25%, transparent 25%, transparent 75%, var(--fond-sourd) 75%),
                    linear-gradient(45deg, var(--fond-sourd) 25%, transparent 25%, transparent 75%, var(--fond-sourd) 75%);
  background-size: 1.2rem 1.2rem;
  background-position: 0 0, 0.6rem 0.6rem;
}
.anime-scene__vide { margin: auto; padding: 1rem; color: var(--texte-3); font: 0.95rem/1.4 var(--police); text-align: center; }
.anime-calque {
  box-sizing: border-box;
  padding: 5cqi;
  font-family: var(--anime-police);
  font-weight: var(--anime-poids);
  font-size: calc(var(--anime-taille) * 0.078125cqi);
  line-height: 1.25;
  text-align: var(--anime-alignement);
  white-space: pre-wrap;
  /* Relecture V18 : un mot plus large que la ligne (adresse web, texte japonais
     sans espaces…) se coupe au lieu de déborder du cadre. */
  overflow-wrap: anywhere;
  color: var(--anime-texte);
}
.anime-bloc + .anime-bloc { margin-top: 0.55em; }
/* Mot découpé en lettres : une boîte qui ne se coupe que si elle est plus large que la ligne. */
.anime-mot { display: inline-block; max-width: 100%; white-space: normal; }
.anime-scene .anime-u {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  animation-duration: var(--anime-duree-anim);
  animation-timing-function: var(--anime-courbe);
  animation-delay: calc(var(--anime-delai) + var(--i, 0) * var(--anime-decalage));
  animation-iteration-count: var(--anime-iterations);
  animation-fill-mode: both;
}
.anime-scene .anime-ligne.anime-u { white-space: pre-wrap; max-width: 100%; vertical-align: top; }
.anime-scene .anime-bloc.anime-u { display: block; white-space: pre-wrap; }

/* Lecture en pause. */
.anime-scene.anime--pause .anime-u,
.anime-scene.anime--pause .anime-u::after,
.anime-scene.anime--pause .anime-compteur__nombre { animation-play-state: paused; }
/* « Réduire les animations » demandé par le système, et « Lire » pas encore cliqué :
   aucune animation, le texte est affiché tel qu'à la fin. */
.anime-scene.anime--immobile .anime-u,
.anime-scene.anime--immobile .anime-u::after,
.anime-scene.anime--immobile .anime-compteur__nombre { animation: none !important; }
.anime-scene.anime--immobile.anime--effet-generique { overflow: auto; }
.anime-scene.anime--immobile .anime-calque.anime-u { position: relative; }
/* « Lire » cliqué malgré « réduire les animations » : on annule la règle
   générale du site (section 15) pour cette scène seulement. V20 : sans
   condition @media, pour valoir aussi quand c'est un réglage du site (et non
   du système) qui réduit les animations ; la classe anime--force n'est posée
   que dans ce cas (animation-texte.js). */
.anime-scene.anime--force .anime-u { animation-duration: var(--anime-duree-anim) !important; animation-iteration-count: var(--anime-iterations) !important; }
.anime-scene.anime--force .anime-u::after { animation-duration: var(--anime-duree-curseur) !important; animation-iteration-count: var(--anime-iter-curseur) !important; }
.anime-scene.anime--force .anime-u.anime-u--dernier::after { animation-duration: var(--anime-duree-curseur-fin) !important; animation-iteration-count: infinite !important; }
.anime-scene.anime--force .anime-compteur__nombre { animation-duration: var(--anime-duree-compte) !important; animation-iteration-count: var(--anime-iter-compte) !important; }

/* ---- Plein écran (Fullscreen API, ou « pseudo plein écran » sur iPhone) ---- */
.anime-scene__barre { display: none; }
.anime-scene--plein-ecran { width: 100%; height: 100%; max-width: none; aspect-ratio: auto; margin: 0; border: 0; border-radius: 0; }
.anime-scene--plein-ecran.anime--fond-transparent { background: var(--anime-fond); }
/* V20 (A1) : plein écran en portrait : texte agrandi (--anime-zoom, calculé par
   ajusterPleinEcran) pour occuper la hauteur de l'écran. 1 en paysage. */
.anime-scene--plein-ecran .anime-calque { font-size: calc(var(--anime-taille) * 0.078125cqi * var(--anime-zoom, 1)); }
/* V20 : au-dessus des notifications du site (zone à 9000), comme le vrai plein écran ;
   elles restent annoncées aux lecteurs d'écran (zone aria-live, jamais rendue inerte). */
.anime-scene--pseudo { position: fixed; inset: 0; z-index: 9500; width: 100vw; height: 100vh; height: 100dvh; }
html.anime-sans-defilement, html.anime-sans-defilement body { overflow: hidden; }
/* V20 : pendant le pseudo plein écran, les ancêtres « collants » de la scène ne
   forment plus de contexte d'empilement (sinon la scène reste SOUS les notifications). */
html.anime-sans-defilement .anime__colle,
html.anime-sans-defilement .anime__bloc--apercu { position: static; z-index: auto; box-shadow: none; }
.anime-scene--plein-ecran .anime-scene__barre {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.5rem;
  opacity: 0.12; transition: opacity 0.2s;
  font: 0.85rem/1.3 var(--police);
}
.anime-scene--plein-ecran:hover .anime-scene__barre,
.anime-scene--plein-ecran .anime-scene__barre:focus-within { opacity: 1; }
@media (hover: none) { .anime-scene--plein-ecran .anime-scene__barre { opacity: 0.85; } }
/* Pseudo plein écran : la barre en haut, les notifications (en bas) ne la cachent plus. */
.anime-scene--pseudo .anime-scene__barre { top: 1rem; bottom: auto; }
.anime-scene__aide { padding: 0.3rem 0.55rem; border-radius: var(--rayon); background: var(--fond-carte); color: var(--texte-2); }
/* V20 (A2) : écran tactile : pas d'aide « Espace : rejouer · Échap : quitter »
   (ni Espace ni Échap) ; les deux boutons tiennent alors sur une ligne. */
@media (hover: none) and (pointer: coarse) { .anime-scene__aide { display: none; } }
.anime-scene:focus { outline: none; }

/* Téléphone : rien ne dépasse en largeur. */
@media (max-width: 640px) {
  .anime__bloc { padding: 0.85rem 0.8rem 0.9rem; }
  .anime__segmente { display: flex; }
  .anime__segmente .segmente__option { flex: 1 1 auto; }
  .anime__segmente .segmente__option > span { width: 100%; justify-content: center; padding: 0.35rem 0.5rem; font-size: 0.82rem; }
  .anime__cadre { margin-left: 0; flex-basis: 100%; }
}
/* V20 (A3) : téléphone (assez haut) : l'aperçu reste en haut de l'écran pendant
   qu'on règle l'effet, le rythme, l'apparence… (il commençait à 1 048 px du haut).
   Il reste à sa place dans l'ordre de la page (lecteurs d'écran, clavier) ;
   cadre réduit à 26 % de la hauteur de l'écran (même rapport 16:9 ou carré) ;
   les champs qui suivent ne passent jamais dessous quand ils reçoivent le focus
   (scroll-margin-top = hauteur mesurée : --anime-hauteur-apercu) ; pendant une
   saisie au clavier virtuel (classe anime--saisie), il reprend sa place. */
@media (max-width: 640px) and (min-height: 560px) {
  .anime__bloc--apercu { position: sticky; top: 0; z-index: 5; box-shadow: 0 8px 16px -10px rgba(0, 0, 0, 0.45); }
  .anime--saisie .anime__bloc--apercu { position: relative; box-shadow: var(--ombre); }
  .anime__bloc--apercu { padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .anime__bloc--apercu .anime__bloc-titre { margin-bottom: 0.35rem; }
  /* « Cadre 1280 × 720, comme la vidéo » : gardé pour les lecteurs d'écran, caché à l'œil (place). */
  .anime__bloc--apercu .anime__cadre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .anime-scene:not(.anime-scene--plein-ecran) { width: min(100%, calc(24vh * 16 / 9)); margin-inline: auto; }
  .anime-scene.anime--format-carre:not(.anime-scene--plein-ecran) { width: min(100%, 24vh); }
  .anime__bloc--apercu .anime__controles { margin-top: 0.45rem; }
  .anime__bloc--apercu .anime__resume { margin-top: 0.3rem; font-size: 0.8rem; }
  .anime__grille > .anime__bloc:not(.anime__bloc--apercu) :is(input, select, textarea, button, a, summary, [tabindex]) {
    scroll-margin-top: calc(var(--anime-hauteur-apercu, 18rem) + 0.75rem);
  }
}

/* --- V18 : effets générés (animation-texte.js : cssApercu) — ne pas modifier à la main --- */
@keyframes anime-curseur { from { opacity: 0; } to { opacity: 1; } }
@property --anime-n { syntax: "<integer>"; inherits: false; initial-value: 0; }
.anime-scene .anime-compteur { margin-top: 0.5em; font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace; font-size: 0.42em; font-weight: 600; line-height: 1.3; color: var(--anime-accent); font-variant-numeric: tabular-nums; }
.anime-scene .anime-compteur__nombre { --anime-n: var(--anime-total); counter-reset: anime-n var(--anime-n); animation: anime-compte var(--anime-duree-compte) var(--anime-courbe-compte) var(--anime-delai) var(--anime-iter-compte) normal both; }
.anime-scene .anime-compteur__nombre::before { content: counter(anime-n); }
@keyframes anime-compte { from { --anime-n: 0; } to { --anime-n: var(--anime-total); } }
.anime-scene.anime--effet-fondu .anime-u { opacity: 1; animation-name: anime-fondu; }
@keyframes anime-fondu { from { opacity: 0; } to { opacity: 1; } }
.anime-scene.anime--effet-flou .anime-u { opacity: 1; filter: blur(0em); animation-name: anime-flou; }
@keyframes anime-flou { from { opacity: 0; filter: blur(0.35em); } to { opacity: 1; filter: blur(0em); } }
.anime-scene.anime--effet-zoom .anime-u { opacity: 1; transform: scale(1); animation-name: anime-zoom; }
@keyframes anime-zoom { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }
.anime-scene.anime--effet-monter .anime-u { opacity: 1; transform: translate(0em, 0em); animation-name: anime-monter; }
@keyframes anime-monter { from { opacity: 0; transform: translate(0em, 0.9em); } to { opacity: 1; transform: translate(0em, 0em); } }
.anime-scene.anime--effet-glisserGauche .anime-u { opacity: 1; transform: translate(0em, 0em); animation-name: anime-glisserGauche; }
@keyframes anime-glisserGauche { from { opacity: 0; transform: translate(-1.6em, 0em); } to { opacity: 1; transform: translate(0em, 0em); } }
.anime-scene.anime--effet-glisserDroite .anime-u { opacity: 1; transform: translate(0em, 0em); animation-name: anime-glisserDroite; }
@keyframes anime-glisserDroite { from { opacity: 0; transform: translate(1.6em, 0em); } to { opacity: 1; transform: translate(0em, 0em); } }
.anime-scene.anime--effet-machine .anime-u { opacity: 1; position: relative; animation-name: anime-machine; }
.anime-scene.anime--effet-machine .anime-u::after { content: ""; position: absolute; top: 0.14em; bottom: 0.14em; right: -0.05em; width: 0.07em; background: var(--anime-accent); opacity: 0; animation: anime-curseur var(--anime-duree-curseur) var(--anime-courbe-curseur) calc(var(--anime-delai) + var(--i, 0) * var(--anime-decalage)) var(--anime-iter-curseur) normal none; }
.anime-scene.anime--effet-machine .anime-u.anime-u--dernier::after { animation-duration: var(--anime-duree-curseur-fin); animation-timing-function: var(--anime-courbe-curseur-fin); animation-iteration-count: infinite; }
@keyframes anime-machine { from { opacity: 0; } to { opacity: 1; } }
.anime-scene.anime--effet-tomber .anime-u { opacity: 1; transform: translate(0em, 0em) rotate(0deg); animation-name: anime-tomber; }
@keyframes anime-tomber { from { opacity: 0; transform: translate(0em, -1.8em) rotate(-14deg); } to { opacity: 1; transform: translate(0em, 0em) rotate(0deg); } }
.anime-scene.anime--effet-rebond .anime-u { opacity: 1; transform: scale(1); animation-name: anime-rebond; }
@keyframes anime-rebond { from { opacity: 0; transform: scale(0.25); } to { opacity: 1; transform: scale(1); } }
.anime-scene.anime--effet-vague .anime-u { transform: translate(0em, 0em); animation-name: anime-vague; }
@keyframes anime-vague { from { transform: translate(0em, 0em); } to { transform: translate(0em, -0.45em); } }
.anime-scene.anime--effet-carte .anime-u { opacity: 1; transform: perspective(14em) rotateY(0deg); animation-name: anime-carte; }
@keyframes anime-carte { from { opacity: 0; transform: perspective(14em) rotateY(-100deg); } to { opacity: 1; transform: perspective(14em) rotateY(0deg); } }
.anime-scene.anime--effet-rassemblement .anime-u { opacity: 1; transform: translate(0em, 0em) rotate(0deg) scale(1); animation-name: anime-rassemblement; }
@keyframes anime-rassemblement { from { opacity: 0; transform: translate(calc(sin(var(--i, 0) * 12.9898) * 2.8em), calc(cos(var(--i, 0) * 78.233) * 1.6em)) rotate(calc(sin(var(--i, 0) * 4.1414) * 40deg)) scale(0.6); } to { opacity: 1; transform: translate(0em, 0em) rotate(0deg) scale(1); } }
.anime-scene.anime--effet-generique .anime-u { top: 0; transform: none; position: absolute; left: 0; right: 0; display: block; white-space: pre-wrap; animation-name: anime-generique; }
@keyframes anime-generique { from { top: 100%; transform: translateY(0%); } to { top: 0%; transform: translateY(-100%); } }
.anime-scene.anime--effet-surlignage .anime-u { background-size: 100% 60%; background-image: linear-gradient(var(--anime-surlignage), var(--anime-surlignage)); background-repeat: no-repeat; background-position: 0 85%; animation-name: anime-surlignage; }
@keyframes anime-surlignage { from { background-size: 0% 60%; } to { background-size: 100% 60%; } }
.anime-scene.anime--effet-neon .anime-u { opacity: 1; text-shadow: 0 0 0.08em var(--anime-accent), 0 0 0.45em var(--anime-accent); animation-name: anime-neon; }
@keyframes anime-neon { from { opacity: 0; text-shadow: 0 0 0 transparent, 0 0 0 transparent; } to { opacity: 1; text-shadow: 0 0 0.08em var(--anime-accent), 0 0 0.45em var(--anime-accent); } }
.anime-scene.anime--effet-degrade .anime-u { background-position: 100% 0; background-image: linear-gradient(90deg, var(--anime-texte) 0%, var(--anime-texte) 35%, var(--anime-accent) 50%, var(--anime-texte) 65%, var(--anime-texte) 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation-name: anime-degrade; }
@media (forced-colors: active) { .anime-scene.anime--effet-degrade .anime-u { background: none; color: CanvasText; -webkit-text-fill-color: currentColor; } }
@keyframes anime-degrade { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.anime-scene.anime--effet-compteur .anime-u { opacity: 1; transform: translate(0em, 0em); animation-name: anime-compteur; }
@keyframes anime-compteur { from { opacity: 0; transform: translate(0em, 0.3em); } to { opacity: 1; transform: translate(0em, 0em); } }
@supports not (animation-timing-function: linear(0, 1)) {
  .anime-scene .anime-u { animation-timing-function: ease-out; animation-duration: var(--anime-duree); }
  .anime-scene.anime--rep-boucle .anime-u, .anime-scene.anime--rep-allerRetour .anime-u { animation-direction: alternate; }
  .anime-scene.anime--rep-une.anime--effet-vague .anime-u { animation-iteration-count: 2; animation-direction: alternate; }
}
@supports not (width: calc(sin(1) * 1px)) {
  @keyframes anime-rassemblement { from { opacity: 0; transform: translate(0em, 1em) rotate(0deg) scale(0.6); } to { opacity: 1; transform: translate(0em, 0em) rotate(0deg) scale(1); } }
}
/* --- V18 : fin des effets générés --- */

/* ==========================================================================
   V18 (4.2.0) — ONGLET « CARACTÈRES » : COMPATIBILITÉ ET DICTIONNAIRE (caracteres.js)
   V19 (4.3.0) — 04/11/2026 : liste en groupes repliables, fiches courtes, fiche en
   sections avec sommaire (colonne de gauche sur grand écran), largeur de lecture ;
   relecture : nom Unicode signalé comme tel (sans nom courant dans la langue)
   ========================================================================== */
/* Sous-onglets : même apparence que ceux du Prototype, mais classes propres
   (prototype-journee.js cherche « .proto-sous-onglets » : ne pas les réutiliser). */
.car-vues { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem 1rem; margin-bottom: 0.8rem; border-bottom: 1px solid var(--bordure-forte); }
.car-sous-onglets { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.car-sous-onglet { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.95rem; margin-bottom: -1px; border: 1px solid var(--bordure); border-bottom-color: var(--bordure-forte); border-radius: var(--rayon) var(--rayon) 0 0; background: var(--fond-sourd); color: var(--texte-2); font: inherit; font-weight: 600; cursor: pointer; }
.car-sous-onglet:hover { color: var(--texte); background: var(--fond-carte); }
.car-sous-onglet[aria-selected="true"] { background: var(--fond); color: var(--accent-fort); border-color: var(--bordure-forte); border-bottom-color: var(--fond); box-shadow: inset 0 3px 0 var(--accent); }
.car-sous-onglet:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.car-sous-titre { display: flex; align-items: center; gap: 0.45rem; margin: 1rem 0 0.5rem; font-size: 1.02rem; }
.car-sous-titre:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.car-aide, .car-aucun { font-size: 0.86rem; color: var(--texte-3); margin: 0.4rem 0 0; }
.car-alerte { margin: 0.5rem 0 0; padding: 0.4rem 0.6rem; border-left: 3px solid var(--avertissement); background: var(--fond-sourd); font-size: 0.88rem; }

/* ---- Saisie ---- */
.car-texte { min-height: 6rem; resize: vertical; font-family: var(--police-chiffres); font-size: 0.95rem; }
.car-actions, .car-reglages { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem 0.9rem; margin-top: 0.7rem; }
.car-code { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.car-code .champ { width: 13rem; max-width: 100%; font-family: var(--police-chiffres); }
.car-reglages .champ-libelle { min-width: 0; }
#car-systeme { max-width: 100%; }
.car-vide { color: var(--texte-3); margin: 0.2rem 0 1.2rem; }

/* ---- Résumé ---- */
.car-resume__compte { margin: 0 0 0.5rem; color: var(--texte-2); font-size: 0.9rem; }
.car-resume__phrase { margin: 0.2rem 0 0.4rem; font-weight: 600; overflow-wrap: anywhere; }
.car-resume__phrase--ok i { color: var(--succes); }
.car-resume__phrase--echap i { color: var(--avertissement); }
.car-resume__phrase--non i { color: var(--danger); }
.car-ensemble { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(12rem, 100%), 1fr)); gap: 0.45rem; }
.car-ensemble__systeme { width: 100%; display: grid; gap: 0.1rem; text-align: left; padding: 0.45rem 0.65rem; border: 1px solid var(--bordure); border-left-width: 4px; border-radius: var(--rayon); background: var(--fond-carte); color: var(--texte); font: inherit; cursor: pointer; }
.car-ensemble__systeme:hover { background: var(--fond-sourd); }
.car-ensemble__systeme:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.car-ensemble__systeme--ok { border-left-color: var(--succes); }
.car-ensemble__systeme--echap { border-left-color: var(--avertissement); }
.car-ensemble__systeme--non { border-left-color: var(--danger); }
.car-ensemble__nom { font-weight: 600; font-size: 0.9rem; }
.car-ensemble__etat { font-size: 0.82rem; color: var(--texte-2); }
.car-ensemble__systeme--ok .car-ensemble__etat i { color: var(--succes); }
.car-ensemble__systeme--echap .car-ensemble__etat i { color: var(--avertissement); }
.car-ensemble__systeme--non .car-ensemble__etat i { color: var(--danger); }
.car-sms { margin: 0.7rem 0 0; font-size: 0.9rem; color: var(--texte-2); overflow-wrap: anywhere; }
.car-sms i { color: var(--accent); }

/* ---- Texte converti ---- */
.car-conversion { margin-top: 0.6rem; padding-top: 0.2rem; border-top: 1px solid var(--bordure); }
.car-sortie { display: grid; gap: 0.3rem; margin: 0.5rem 0 0.7rem; justify-items: start; }
.car-sortie .champ-libelle { width: 100%; }
.car-sortie__zone { width: 100%; font-family: var(--police-chiffres); font-size: 0.88rem; resize: vertical; background: var(--fond-saisie); }
.car-remplacements { list-style: none; margin: 0.3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem; font-size: 0.88rem; }
.car-remplacements li { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.5rem; border: 1px solid var(--bordure); border-radius: 999px; background: var(--fond-sourd); }
.car-remplacements__n { color: var(--texte-3); }

/* ---- Liste des signes ---- */
.car-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.car-ligne { border: 1px solid var(--bordure); border-radius: var(--rayon-carte); background: var(--fond-carte); padding: 0.5rem 0.7rem; min-width: 0; }
.car-ligne__tete { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.15fr); gap: 0.4rem 0.8rem; align-items: center; }
.car-ligne__glyphe { display: inline-flex; justify-content: center; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; }
button.car-ligne__glyphe { cursor: pointer; border-radius: var(--rayon); }
button.car-ligne__glyphe .car-glyphe { border-color: var(--accent); }
button.car-ligne__glyphe:hover .car-glyphe { background: var(--accent-doux); }
button.car-ligne__glyphe:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.car-glyphe { display: inline-flex; align-items: center; justify-content: center; min-width: 2.7rem; height: 2.7rem; padding: 0 0.3rem; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond-saisie); font-size: 1.6rem; line-height: 1; color: var(--texte); white-space: pre; }
.car-glyphe--invisible { font-family: var(--police-chiffres); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em; border-style: dashed; color: var(--texte-2); }
.car-glyphe--petit { min-width: 1.7rem; height: 1.7rem; font-size: 1rem; }
.car-glyphe--moyen { min-width: 2.2rem; height: 2.2rem; font-size: 1.3rem; }
.car-glyphe--petit.car-glyphe--invisible, .car-glyphe--moyen.car-glyphe--invisible { font-size: 0.6rem; }
.car-ligne__infos { min-width: 0; }
.car-ligne__codes { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; }
.car-ligne__code { font-size: 0.85rem; overflow-wrap: anywhere; }
.car-ligne__n { font-size: 0.82rem; color: var(--texte-3); font-family: var(--police-chiffres); }
.car-ligne__nom { margin: 0.1rem 0 0; font-size: 0.86rem; overflow-wrap: anywhere; }
.car-nom-unicode { font-size: 0.78rem; letter-spacing: 0.02em; color: var(--texte-3); overflow-wrap: anywhere; }
.car-ligne__compat { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; min-width: 0; }
.car-statut { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.05rem 0.5rem; border: 1px solid currentColor; border-radius: 999px; font-size: 0.76rem; font-weight: 600; white-space: nowrap; }
.car-statut--ok { color: var(--succes); }
.car-statut--echap { color: var(--avertissement); }
.car-statut--non { color: var(--danger); }
.car-forme { font-size: 0.85rem; min-width: 0; overflow-wrap: anywhere; }
.car-forme code { font-size: 0.85rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.car-forme__autre { color: var(--texte-2); }
.car-forme__note, .car-forme__remplacement { color: var(--texte-2); }
.car-forme__remplacement { font-weight: 600; }
.car-ligne__detail { margin-top: 0.4rem; }
.car-ligne__detail > summary { cursor: pointer; font-size: 0.84rem; color: var(--texte-2); width: max-content; max-width: 100%; }
.car-ligne__detail > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#car-plus { margin-top: 0.7rem; }

/* ---- Tableau de compatibilité (fiche et détail) ---- */
.car-compat__defile { overflow-x: auto; max-width: 100%; margin-top: 0.4rem; }
.car-compat { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.car-compat th, .car-compat td { text-align: left; vertical-align: top; padding: 0.3rem 0.5rem; border-bottom: 1px solid var(--bordure); }
.car-compat thead th { font-size: 0.78rem; color: var(--texte-3); font-weight: 600; }
.car-compat tbody th { font-weight: 600; white-space: nowrap; }

/* ---- Raccourcis ---- */
.car-raccourcis { list-style: none; margin: 0.3rem 0 0; padding: 0; display: grid; gap: 0.45rem; }
.car-raccourci { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 0.15rem 0.8rem; align-items: baseline; }
.car-raccourci__systeme { font-weight: 600; font-size: 0.86rem; }
.car-raccourci__note { grid-column: 2; font-size: 0.8rem; color: var(--texte-3); }
.car-touches { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.car-touches__plus, .car-touches__puis { color: var(--texte-3); font-size: 0.82rem; }
.car-kbd { display: inline-block; min-width: 1.6rem; padding: 0.1rem 0.4rem; border: 1px solid var(--bordure-forte); border-bottom-width: 2px; border-radius: var(--rayon); background: var(--fond-sourd); font-family: var(--police); font-size: 0.82rem; text-align: center; color: var(--texte); white-space: pre; }
.car-kbd--code { font-family: var(--police-chiffres); }

/* ---- Dictionnaire : liste ---- */
.car-dico__public { margin-top: 0.3rem; }
.car-dico__filtres { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem 0.9rem; margin: 0.6rem 0 0.8rem; }
.car-dico__filtres .champ-recherche { flex: 1 1 16rem; min-width: 0; }
.car-dico__compte { font-size: 0.86rem; color: var(--texte-3); }
.car-dico__grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(8.5rem, 100%), 1fr)); gap: 0.45rem; }
/* V19 : groupes repliables (<details>) : familles, sous-groupes, blocs des fiches courtes. */
.car-dico__liste { display: grid; gap: 0.6rem; }
.car-groupe { border: 1px solid var(--bordure); border-radius: var(--rayon-carte); background: var(--fond-carte); }
.car-groupe--bloc { border-color: var(--bordure); background: var(--fond); margin: 0.4rem 0 0; }
.car-groupe__resume { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.75rem; cursor: pointer; list-style: none; border-radius: var(--rayon-carte); }
.car-groupe__resume::-webkit-details-marker { display: none; }
.car-groupe__resume::before { content: "\25B8"; color: var(--texte-3); display: inline-block; transition: transform 0.15s; }
.car-groupe[open] > .car-groupe__resume::before { transform: rotate(90deg); }
.car-groupe__resume:hover { background: var(--fond-sourd); }
.car-groupe__resume:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.car-groupe__resume > i { color: var(--accent); }
.car-groupe__titre { margin: 0; font-size: 1.02rem; display: inline; }
.car-groupe--bloc .car-groupe__titre { font-size: 0.92rem; font-weight: 600; }
.car-groupe__compte { font-weight: 400; font-size: 0.82rem; color: var(--texte-3); }
.car-groupe[open] > .car-groupe__resume { border-bottom: 1px solid var(--bordure); border-radius: var(--rayon-carte) var(--rayon-carte) 0 0; }
.car-groupe > :not(summary) { margin: 0.6rem 0.75rem; }
.car-groupe__intro { margin: 0.6rem 0.75rem 0.2rem; }
.car-sous-groupe__titre { margin: 0.9rem 0 0.4rem; font-size: 0.9rem; color: var(--texte-2); display: flex; align-items: baseline; gap: 0.35rem; }
.car-sous-groupe:first-of-type .car-sous-groupe__titre { margin-top: 0.4rem; }
.car-dico__chargement { margin: 0.4rem 0; color: var(--texte-3); font-size: 0.88rem; }
.car-tuile { width: 100%; height: 100%; display: grid; justify-items: center; align-content: start; gap: 0.25rem; padding: 0.55rem 0.4rem; border: 1px solid var(--bordure); border-radius: var(--rayon-carte); background: var(--fond-carte); color: var(--texte); font: inherit; text-align: center; cursor: pointer; }
.car-tuile:hover { border-color: var(--accent); background: var(--fond-sourd); }
.car-tuile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.car-tuile .car-glyphe { border: 0; background: transparent; font-size: 2rem; height: 2.6rem; }
.car-tuile .car-glyphe--invisible { border: 1px dashed var(--bordure-forte); font-size: 0.7rem; height: 2.2rem; margin: 0.2rem 0; }
.car-tuile__nom { font-size: 0.82rem; line-height: 1.25; overflow-wrap: anywhere; }
.car-tuile__code { font-size: 0.72rem; color: var(--texte-3); font-family: var(--police-chiffres); }
.car-tuile--courte { border-style: dashed; }
/* Nom Unicode (pas de nom courant) : en italique, la fiche le dit en toutes lettres. */
.car-tuile__nom--unicode { font-style: italic; color: var(--texte-2); }
.car-tuile__badge { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texte-3); border: 1px solid var(--bordure-forte); border-radius: 999px; padding: 0 0.35rem; }

/* ---- Dictionnaire : fiche ---- */
.car-fiche__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding-bottom: 0.6rem; margin-bottom: 0.8rem; border-bottom: 1px solid var(--bordure); }
.car-fiche__voisins { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; }
.car-fiche__position { font-size: 0.86rem; color: var(--texte-3); }
.car-fiche__tete { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; }
.car-fiche__glyphe { min-width: 6.5rem; height: 6.5rem; font-size: 4.2rem; border-radius: var(--rayon-carte); }
.car-fiche__glyphe.car-glyphe--invisible { font-size: 1.1rem; }
.car-fiche__identite { min-width: 0; flex: 1 1 16rem; }
.car-fiche__nom { margin: 0; font-family: var(--police-titre); font-size: 1.7rem; line-height: 1.15; }
.car-fiche__nom:focus { outline: none; }
.car-fiche__nom-mention { font-family: var(--police); font-size: 0.9rem; font-weight: 400; color: var(--texte-3); white-space: nowrap; }
.car-fiche__nom:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.car-fiche__identite .car-nom-unicode { margin: 0.2rem 0 0.5rem; display: block; }
.car-fiche__boutons { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.car-fiche__identifiants { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.25rem 1rem; margin: 1rem 0 0.2rem; font-size: 0.9rem; }
.car-fiche__identifiants dt { color: var(--texte-3); }
.car-fiche__identifiants dd { margin: 0; overflow-wrap: anywhere; }
/* V19 : fiche en sections, sommaire (puces sur téléphone, colonne collante sur grand écran). */
.car-fiche__contenu { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem 1.6rem; }
.car-fiche__etiquette { display: inline-block; margin: 0 0 0.3rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--texte-2); border: 1px dashed var(--bordure-forte); border-radius: 999px; padding: 0.05rem 0.5rem; }
.car-fiche__sommaire ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.car-fiche__ancre { display: inline-block; padding: 0.2rem 0.6rem; border: 1px solid var(--bordure); border-radius: 999px; background: var(--fond-sourd); color: var(--texte-2); font-size: 0.82rem; text-decoration: none; }
.car-fiche__ancre:hover { color: var(--texte); border-color: var(--accent); }
.car-fiche__ancre:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.car-fiche__corps { min-width: 0; }
.car-fiche__section { margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--bordure); scroll-margin-top: 1rem; }
.car-fiche__section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.car-fiche__titre-section { display: flex; align-items: center; gap: 0.45rem; margin: 0 0 0.45rem; font-size: 1.05rem; font-family: var(--police-titre); }
.car-fiche__titre-section:focus { outline: none; }
.car-fiche__titre-section:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.car-fiche__titre-section i { color: var(--accent); font-size: 0.9em; }
.car-fiche__section > p { margin: 0; max-width: 70ch; line-height: 1.65; }
.car-fiche__texte { font-size: 1rem; }
.car-fiche__original { font-size: 0.8rem; font-style: italic; color: var(--texte-3); }
.car-fiche__courte-aide { margin: 0 0 0.5rem !important; }
.car-sosies__groupe { margin: 0.5rem 0 0.3rem; font-size: 0.84rem; font-weight: 600; color: var(--texte-2); }
.car-sosies__groupe:first-of-type { margin-top: 0; }
@media (min-width: 1100px) {
  .car-fiche__contenu { grid-template-columns: 13rem minmax(0, 1fr); }
  .car-fiche__tete { grid-column: 1 / -1; }
  .car-fiche__sommaire { position: sticky; top: 1rem; align-self: start; }
  .car-fiche__sommaire ol { flex-direction: column; gap: 0.15rem; border-left: 2px solid var(--bordure); padding-left: 0.5rem; }
  .car-fiche__ancre { border: 0; background: transparent; border-radius: var(--rayon); padding: 0.2rem 0.4rem; font-size: 0.86rem; }
  .car-fiche__ancre:hover { background: var(--fond-sourd); }
}
.car-fiche__section code { font-family: var(--police-chiffres); font-size: 0.88em; padding: 0 0.2em; background: var(--fond-sourd); border-radius: 3px; overflow-wrap: anywhere; }
.car-specimens { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(9rem, 100%), 1fr)); gap: 0.45rem; }
.car-specimen { display: grid; justify-items: center; gap: 0.2rem; padding: 0.5rem; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond-saisie); text-align: center; }
.car-specimen__glyphe { font-size: 2.6rem; line-height: 1.2; min-height: 3.1rem; color: var(--texte); white-space: pre; }
.car-specimen__nom { font-size: 0.76rem; color: var(--texte-2); }
.car-specimen__note { font-size: 0.7rem; color: var(--avertissement); }
.car-police--plex { font-family: 'IBM Plex Sans'; }
.car-police--crimson { font-family: 'Crimson Pro'; }
.car-police--jetbrains { font-family: 'JetBrains Mono'; }
.car-police--serif { font-family: serif; }
.car-police--sans { font-family: sans-serif; }
.car-police--mono { font-family: monospace; }
.car-police--cursive { font-family: cursive; }
.car-sosies { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.car-sosie__lien { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.25rem 0.55rem 0.25rem 0.3rem; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond-carte); color: var(--texte); font: inherit; font-size: 0.84rem; text-align: left; max-width: 100%; }
button.car-sosie__lien { cursor: pointer; border-color: var(--accent); }
button.car-sosie__lien:hover { background: var(--accent-doux); }
button.car-sosie__lien:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.car-sosie__texte { min-width: 0; overflow-wrap: anywhere; }
.car-sources { margin: 0; padding-left: 1.2rem; font-size: 0.86rem; color: var(--texte-2); }

@media (max-width: 640px) {
  .car-ligne__tete { grid-template-columns: auto minmax(0, 1fr); }
  .car-ligne__compat { grid-column: 1 / -1; }
  .car-raccourci { grid-template-columns: minmax(0, 1fr); }
  .car-raccourci__note { grid-column: 1; }
  .car-fiche__glyphe { min-width: 5rem; height: 5rem; font-size: 3.2rem; }
  .car-fiche__identifiants { grid-template-columns: minmax(0, 1fr); gap: 0 0; }
  .car-fiche__identifiants dd { margin-bottom: 0.35rem; }
  .car-code .champ { width: 100%; }
  .car-code, .car-code .champ-libelle { width: 100%; }
  /* Tableau de compatibilité empilé : système + état sur une ligne, la forme dessous. */
  .car-compat thead { display: none; }
  .car-compat tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid var(--bordure); }
  .car-compat th, .car-compat td { border-bottom: 0; padding: 0.25rem 0.3rem; }
  .car-compat td.car-forme { grid-column: 1 / -1; padding-top: 0; }
  .car-compat td.car-forme:empty { display: none; }
  .car-compat tbody th { white-space: normal; }
}
@media print {
  .car-fiche__nav, .car-fiche__boutons, .car-vues, .car-fiche__sommaire { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .car-groupe__resume::before { transition: none; }
}

/* ==========================================================================
   V18 (4.2.0) — BARRE D'ONGLETS : trois onglets de plus (Saviez-vous combien ?,
   Le texte s'amuse, Caractères). Sur ordinateur et tablette, les onglets sont
   un peu plus serrés pour tenir sur une ligne ; s'ils ne tiennent toujours pas
   (langue aux mots longs, texte agrandi), ils passent à la ligne au lieu de
   se cacher derrière un défilement horizontal. Sur téléphone : inchangé
   (barre qui défile).
   ========================================================================== */
@media (min-width: 900px) {
  .onglets__contenu { flex-wrap: wrap; overflow-x: visible; gap: 0 0.1rem; }
  .onglet { padding: 0.8rem 0.75rem 0.7rem; font-size: 0.9rem; gap: 0.4rem; }
}

/* V18 (4.2.0) — Téléphone : avec trois onglets de plus, la grille de 2 colonnes
   (V11) prenait près de la moitié de l'écran. Trois colonnes, noms sans icône :
   tous les onglets restent visibles, sur moins de hauteur. */
@media (max-width: 560px) {
  .onglets__contenu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .onglet { padding: 0.5rem 0.25rem 0.45rem; font-size: 0.78rem; line-height: 1.15; }
  .onglet > i { display: none; }
}

/* ==========================================================================
   V19 (4.3.0) — BOÎTE À IDÉES (idees.js) : fenêtre « Proposer une idée » /
   « Idées retenues ». Couleurs des thèmes (variables), rien de fixe.
   ========================================================================== */
#dialogue-idees { width: min(40rem, calc(100% - 2rem)); }
.idees-vues { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--bordure); margin-bottom: 0.9rem; flex-wrap: wrap; }
.idees-vue { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.9rem 0.5rem; border: none; border-bottom: 3px solid transparent; background: transparent; color: var(--texte-2); font: 600 0.92rem/1.2 var(--police); cursor: pointer; }
.idees-vue[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.idees-vue:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.idees-form { display: flex; flex-direction: column; gap: 0.7rem; }
.idees-texte { min-height: 8rem; resize: vertical; width: 100%; }
.idees-compteur { margin: -0.4rem 0 0; font-size: 0.8rem; color: var(--texte-3); text-align: right; }
.idees-compteur--trop { color: var(--danger, #b42318); font-weight: 600; }
.idees-actions { display: flex; justify-content: flex-end; }
.idees-message { min-height: 1.2em; margin: 0; font-size: 0.9rem; }
.idees-message--succes { color: var(--succes, #1f7a3f); font-weight: 600; }
.idees-message--erreur { color: var(--danger, #b42318); font-weight: 600; }
/* Champ piège : hors de l'écran (pas « display: none », que certains robots repèrent). */
.idees-piege { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.idees-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; max-height: 60vh; overflow-y: auto; }
.idees-vide { color: var(--texte-3); font-style: italic; padding: 0.5rem 0; }
.idees-carte { border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 0.75rem 0.9rem; background: var(--fond-carte); }
.idees-carte__tete { margin: 0 0 0.35rem; font-size: 0.8rem; color: var(--texte-3); }
.idees-carte__theme { font-weight: 600; color: var(--texte-2); }
.idees-carte__texte { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.idees-carte__reponse { margin: 0.55rem 0 0; padding: 0.5rem 0.7rem; border-left: 3px solid var(--accent); background: var(--accent-doux); white-space: pre-line; overflow-wrap: anywhere; font-size: 0.92rem; }
@media (max-width: 560px) {
  .idees-vue { flex: 1 1 auto; justify-content: center; padding: 0.5rem 0.4rem; font-size: 0.85rem; }
}
/* V19 — Administration › Boîte à idées (modération) : V25, déplacé dans css/administration.css. */

/* ==========================================================================
   V19 (4.3.0) — DICTIONNAIRES : VOCABULAIRE DU NUCLÉAIRE TRADUIT (dictionnaires.js)
   Introduction de chaque section sous son titre ; traduction de la forme
   développée (après le français) ; mention « (texte original en français) »
   quand une définition n'est pas traduite.
   ========================================================================== */
.dico__section-intro { margin: 0 0 0.2rem; font-size: 0.82rem; line-height: 1.45; color: var(--texte-2); max-width: 80ch; }
.dico__forme-trad { color: var(--texte-2); font-weight: 400; }
.dico__original { font-size: 0.75rem; font-style: italic; color: var(--texte-3); }

/* ==== V19 PORTFOLIO ET ACCUEIL (début) ==== */
/* ==========================================================================
   V19 (4.3.0) — PORTFOLIO PLUS VISIBLE (js/portfolio.js, pied de page)
   Une vraie section, en tête du pied de page : emblème, grand titre,
   chiffres « en ligne / en construction », 3 projets à la une en grandes
   cartes, bouton « Voir tous les projets » (liste complète), lien vers
   emilesnyers.org. Lien « Portfolio » dans l'en-tête. Couleurs : uniquement
   les jetons des thèmes (les 8 thèmes suivent d'eux-mêmes).
   Aucune animation qui déplace les blocs au survol (principe V9).
   ========================================================================== */
/* Lien de l'en-tête : même allure que le bouton « Nouveautés » (déjà décliné
   dans les 8 thèmes par css/themes.css), sans soulignement. */
.entete__portfolio { text-decoration: none; }

.portfolio-zone {
  background: var(--fond-sourd);
  border-bottom: 1px solid var(--bordure);
  scroll-margin-top: 0.5rem;
}
/* .pied__portfolio (V12) : largeur maximale et centrage. */
.portfolio-zone__contenu { padding: 2rem 1.5rem 1.75rem; }
.portfolio-zone__entete { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.4rem; }
.portfolio-zone__embleme {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--rayon-carte);
  background: var(--accent);
  color: var(--sur-accent);
  font-size: 1.4rem;
}
.portfolio-zone__textes { min-width: 0; }
.portfolio-zone__surtitre { margin: 0 0 0.15rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-fort); }
.portfolio-zone__titre { margin: 0 0 0.4rem; font-family: var(--police-titre); font-size: clamp(1.55rem, 1.25rem + 1.1vw, 2.15rem); font-weight: 600; line-height: 1.15; color: var(--texte); }
.portfolio-zone .pied__portfolio-intro { margin: 0 0 0.55rem; max-width: 72ch; font-size: 0.92rem; color: var(--texte-2); }
.portfolio-zone__chiffres { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; margin: 0; font-size: 0.86rem; font-weight: 600; }
.portfolio-zone__chiffre { display: inline-flex; align-items: center; gap: 0.4rem; }
.portfolio-zone__chiffre::before { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: currentColor; }
.portfolio-zone__chiffre--enligne { color: var(--succes); }
.portfolio-zone__chiffre--encours { color: var(--avertissement); }
.portfolio-zone__sous-titre { margin: 0 0 0.6rem; font-family: var(--police); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--texte-3); }

/* Les 3 projets à la une : grandes cartes. */
.portfolio-vedette {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 1rem;
}
.portfolio-vedette__lien {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 100%;
  padding: 1.1rem 1.15rem 1rem;
  border: 1px solid var(--bordure);
  border-top: 4px solid var(--accent);
  border-radius: var(--rayon-carte);
  background: var(--fond-carte);
  color: var(--texte);
  text-decoration: none;
  box-shadow: var(--ombre);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.portfolio-vedette__lien:hover,
.portfolio-vedette__lien:focus-visible { border-color: var(--accent); box-shadow: var(--ombre-forte); }
.portfolio-vedette__haut { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.4rem; }
.portfolio-vedette__tuile {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--rayon-carte);
  background: var(--accent-doux);
  color: var(--accent);
  font-size: 1.35rem;
}
.portfolio-vedette__nom { font-family: var(--police-titre); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.portfolio-vedette__domaine { font-family: var(--police-chiffres); font-size: 0.75rem; color: var(--texte-3); overflow-wrap: anywhere; }
.portfolio-vedette__desc { flex: 1; margin-top: 0.15rem; font-size: 0.9rem; line-height: 1.5; color: var(--texte-2); }
.portfolio-vedette__action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--bordure);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-fort);
}
.portfolio-vedette__action i { font-size: 0.78em; }
.portfolio-vedette__lien:hover .portfolio-vedette__action > span:first-child { text-decoration: underline; text-underline-offset: 0.2em; }

/* État des projets : un point de couleur ET un mot (lisible sans la couleur). */
.portfolio__etat { display: inline-flex; align-items: center; gap: 0.3rem; }
.portfolio__etat::before { content: ""; flex: none; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.portfolio__etat--ici::before { display: none; }

/* « Voir tous les projets » : un vrai bouton quand la liste est fermée ;
   devient le titre de la liste quand elle est ouverte (ordinateur). */
.portfolio-tous { margin: 0 0 1.1rem; }
.portfolio-tous__bascule {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.6rem;
  padding: 0.45rem 1rem;
  border: 2px solid var(--accent);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--accent-fort);
  font-size: 0.95rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.portfolio-tous__bascule::-webkit-details-marker { display: none; }
.portfolio-tous__bascule:hover { background: var(--accent-doux); }
.portfolio-tous[open] > .portfolio-tous__bascule { margin-bottom: 0.75rem; border-color: var(--bordure-forte); border-width: 1px; }
.portfolio-tous[open] .portfolio-tous__ferme,
.portfolio-tous:not([open]) .portfolio-tous__ouvert { display: none; }
.portfolio-tous .pied__portfolio-compte { font-weight: 400; color: var(--texte-3); }
.portfolio-tous__chevron { font-size: 0.8em; transition: transform 0.2s; }
.portfolio-tous[open] .portfolio-tous__chevron { transform: rotate(180deg); }

/* Liste complète : cartes sur fond de carte, icône posée sur une pastille. */
.portfolio-zone .portfolio__lien { background: var(--fond-carte); }
.portfolio-zone .portfolio__lien--sans-adresse:hover { background: var(--fond-carte); }
.portfolio-zone .portfolio__icone {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-top: 0;
  border-radius: var(--rayon);
  background: var(--accent-doux);
}
.portfolio-zone .pied__portfolio-plus { margin: 0; }
.portfolio-zone .pied__portfolio-plus .btn { text-decoration: none; }

@media (max-width: 560px) {
  .portfolio-zone__contenu { padding: 1.5rem 1rem 1.25rem; }
  .portfolio-zone__entete { gap: 0.75rem; }
  .portfolio-zone__embleme { width: 2.6rem; height: 2.6rem; font-size: 1.15rem; }
  .portfolio-tous__bascule { display: flex; justify-content: center; }
  .portfolio-zone .pied__portfolio-plus .btn { white-space: normal; }
}

/* ==========================================================================
   V19 (4.3.0) — ACCUEIL PROGRESSIF (js/accueil.js)
   Languette en bas à droite qui se déplie par étapes (data-etape 1 à 4).
   Tout passe par des TRANSITIONS CSS (rien ne saute) :
     • apparition : fondu + glissement vers le haut (0,6 s) ;
     • étape 2 : la largeur passe de celle de la languette à celle de la carte (0,9 s) ;
     • chaque partie (« pli ») s'ouvre en hauteur (grille 0fr → 1fr, 1,1 s),
       puis son contenu apparaît en fondu (jusqu'à 1,2 s en tout).
   Relecture V19 : le JavaScript la replie en languette au moindre clic ou
   frappe ailleurs, ou quand le focus arrive dessous ; il ne la fait grandir
   que si elle ne couvre pas l'élément qui a le focus ; la languette s'efface
   (accueil--efface) au-dessus d'un élément qui a le focus.
   Il s'efface (sans rien recouvrir) quand une notification, le visualiseur
   audio, la barre de lecture à voix haute ou l'indice de la dictée occupent
   le coin ; le JavaScript l'efface aussi (classe accueil--efface) pendant
   l'onglet Administration, une visite guidée, le mode focus, ou quand la
   section Portfolio est à l'écran.
   ========================================================================== */
.accueil {
  --accueil-l1: 19rem;                                  /* largeur de la languette (mesurée par le JavaScript) */
  --accueil-courbe: cubic-bezier(0.22, 0.61, 0.36, 1);  /* départ franc, arrivée très douce */
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;        /* au-dessus du contenu ; sous les notifications (9000), la visite guidée (900) et les fenêtres */
  display: flex;
  flex-direction: column-reverse;   /* la languette (titre, en premier dans la page) se place en bas */
  width: min(var(--accueil-l1), calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  border: 1px solid var(--bordure-forte);
  border-radius: var(--rayon-carte);
  background: var(--fond-carte);
  color: var(--texte);
  box-shadow: var(--ombre-forte);
  overflow: hidden;
  opacity: 0;
  translate: 0 1.5rem;
  transition: opacity 0.6s var(--accueil-courbe), translate 0.6s var(--accueil-courbe), width 0.9s var(--accueil-courbe), visibility 0s;
}
.accueil--visible { opacity: 1; translate: 0 0; }
.accueil--deplie { width: min(max(var(--accueil-l1), 23rem), calc(100vw - 2rem)); }
/* Mesure de la place qu'occuperait l'étape suivante (relecture V19) : un
   instant, sans aucune transition, rien ne s'affiche. */
.accueil--fige, .accueil--fige * { transition: none !important; }
/* Mesure de la largeur naturelle de la languette (un instant, invisible). */
.accueil--mesure { width: max-content !important; transition: none !important; }
.accueil--mesure .accueil__corps { display: none; }

/* S'efface sans rien recouvrir (le coin est pris), sauf pendant que le
   visiteur s'en sert au clavier (focus visible à l'intérieur). */
.accueil--efface,
body:has(.zone-notifications > .notification) .accueil:not(:has(:focus-visible)),
body:has(> .visu:not([hidden]):not(.visu--placee)) .accueil:not(:has(:focus-visible)),
body:has(.barre-lecture:not([hidden])) .accueil:not(:has(:focus-visible)),
body:has(.dictee-calque:not([hidden]) .dictee-calque__indice:not([hidden])) .accueil:not(:has(:focus-visible)) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0s linear 0.3s;
}

/* La languette : bande de la couleur d'accent, toujours en bas. */
.accueil__barre { flex: none; display: flex; align-items: stretch; background: var(--accent); color: var(--sur-accent); }
.accueil__titre { flex: 1; min-width: 0; margin: 0; font: inherit; }
.accueil__languette {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.55rem 0.5rem 0.9rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: 600 0.92rem/1.25 var(--police);
  text-align: left;
  cursor: pointer;
}
.accueil__icone { flex: none; }
.accueil__languette-texte { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.accueil__chevron { flex: none; font-size: 0.75em; transition: transform 0.5s var(--accueil-courbe); }
.accueil--deplie .accueil__chevron { transform: rotate(180deg); }
.accueil__fermer {
  flex: none;
  width: 2.75rem;
  border: 0;
  border-left: 1px solid var(--sur-accent);
  background: transparent;
  color: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.accueil__languette:hover, .accueil__fermer:hover { background: var(--accent-fort); }
.accueil__languette:hover .accueil__languette-texte { text-decoration: underline; text-underline-offset: 0.2em; }
.accueil__languette:focus-visible, .accueil__fermer:focus-visible { outline: 2px solid var(--sur-accent); outline-offset: -5px; }

/* Le contenu, au-dessus de la languette ; il défile s'il est trop haut. */
.accueil__corps { flex: 0 1 auto; min-height: 0; padding-bottom: 0; overflow-y: auto; overscroll-behavior: contain; transition: padding-bottom 1.1s var(--accueil-courbe); }
.accueil--deplie .accueil__corps { padding-bottom: 0.5rem; }
.accueil__pli { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 1.1s var(--accueil-courbe); }
.accueil__pli-contenu {
  min-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  opacity: 0;
  visibility: hidden;      /* fermé : ni visible, ni atteignable au clavier */
  transition: opacity 0.4s ease, visibility 0s linear 1.1s;
}
.accueil__pli--ouvert { grid-template-rows: 1fr; }
.accueil__pli--ouvert > .accueil__pli-contenu { opacity: 1; visibility: visible; transition: opacity 0.7s ease 0.45s, visibility 0s; }
.accueil__pli-contenu > :first-child { margin-top: 0.8rem; }
.accueil__pli-contenu > :last-child { margin-bottom: 0.4rem; }

.accueil__texte { margin: 0 0 0.7rem; font-size: 0.9rem; line-height: 1.5; color: var(--texte-2); }
.accueil__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.75rem; }
.accueil__projets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.accueil__projet {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte);
  text-decoration: none;
}
.accueil__projet:hover, .accueil__projet:focus-visible { border-color: var(--accent); background: var(--accent-doux); }
.accueil__projet-tuile { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: var(--rayon); background: var(--accent-doux); color: var(--accent); font-size: 0.9rem; }
.accueil__projet-corps { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.accueil__projet-nom { font-size: 0.88rem; font-weight: 600; line-height: 1.3; }
.accueil__projet-domaine { font-family: var(--police-chiffres); font-size: 0.72rem; line-height: 1.3; color: var(--texte-3); overflow-wrap: anywhere; }
.accueil__projet-fleche { flex: none; font-size: 0.72rem; color: var(--texte-3); }
.accueil__idees { display: flex; gap: 0.65rem; padding: 0.65rem 0.75rem; border: 1px dashed var(--bordure-forte); border-radius: var(--rayon); background: var(--fond-sourd); }
.accueil__idees-icone { flex: none; margin-top: 0.15rem; font-size: 1.2rem; color: var(--accent); }
.accueil__idees-textes { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.6rem; }
.accueil__idees-titre { margin: 0; font-family: var(--police); font-size: 0.9rem; font-weight: 600; line-height: 1.35; color: var(--texte); }
.accueil__jamais {
  padding: 0.3rem 0.2rem;
  border: 0;
  background: none;
  color: var(--texte-3);
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.accueil__jamais:hover { color: var(--accent-fort); }

@media (max-width: 560px) {
  .accueil { right: 0.75rem; bottom: 0.75rem; width: min(var(--accueil-l1), calc(100vw - 1.5rem)); }
  .accueil--deplie { width: calc(100vw - 1.5rem); }
  .accueil__corps { max-height: 55vh; }
}
/* « Réduire les animations » : rien ne bouge (le JavaScript n'ouvre plus la
   carte tout seul : la languette reste immobile). */
@media (prefers-reduced-motion: reduce) {
  .accueil, .accueil__pli, .accueil__pli-contenu, .accueil__chevron, .portfolio-tous__chevron, .portfolio-vedette__lien { transition: none !important; }
  .accueil { translate: none; }
}
@media print {
  .accueil { display: none !important; }
}
/* ==== V19 PORTFOLIO ET ACCUEIL (fin) ==== */

/* ==== V20 IA ET LISIBILITÉ (début) ==== */
/* ==========================================================================
   V20 (4.4.0) — 04/11/2026 — IA ET LISIBILITÉ
     1. Repérage « Mots doublés » (« le le ») : fond rose et DOUBLE
        soulignement (jamais la couleur seule : le bouton porte un libellé,
        la ligne de résumé donne le nombre et les mots).
     2. Anonymiseur : aide du bouton « Copier avec la consigne pour l'IA »,
        bloc « Limites du masquage réversible ».
     3. Confort de lecture (personnalisation.js) : police et espacements des
        zones d'écriture et de lecture, d'après les attributs de <html> :
          data-lecture-police  = atkinson | opendyslexic
          data-lecture-lettres = large | tres-large   (espacement des lettres)
          data-lecture-mots    = large | tres-large   (espacement des mots)
          data-lecture-lignes  = large | tres-large   (interligne)
        Valeurs fondées sur le critère WCAG 2.2 1.4.12 « Espacement du
        texte » (W3C, https://www.w3.org/WAI/WCAG22/Understanding/text-spacing) :
        lettres 0,12 em, mots 0,16 em, lignes 1,5 fois la taille du texte.
        « Très large » atteint (lettres) ou dépasse (mots, lignes) ces
        valeurs ; le rapport mots / lettres de 3,5 suit le guide de style de
        la British Dyslexia Association.
        IMPORTANT : la zone de saisie de l'Analyse et sa copie colorée
        (.texte-commun, les deux couches) reçoivent EXACTEMENT les mêmes
        règles, sinon les couleurs seraient décalées par rapport au texte.
   ========================================================================== */

/* 1. Mots doublés (8 thèmes). */
:root { --r-double: rgba(225, 29, 72, 0.2); --r-double-trait: #be123c; }
[data-theme="nocturne"] { --r-double: rgba(251, 113, 133, 0.28); --r-double-trait: #fda4af; }
[data-theme="windows95"] { --r-double: rgba(255, 0, 128, 0.22); --r-double-trait: #800040; }
[data-theme="terminal"] { --r-double: rgba(255, 95, 135, 0.26); --r-double-trait: #ff5f87; }
[data-theme="macintosh"] { --r-double: transparent; --r-double-trait: #000000; }
[data-theme="contraste"] { --r-double: rgba(255, 80, 160, 0.4); --r-double-trait: #ff8cc6; }
.r-double {
  background: var(--r-double);
  text-decoration-line: underline;
  text-decoration-style: double;
  text-decoration-color: var(--r-double-trait);
  text-underline-offset: 0.18em;
  text-decoration-skip-ink: none;
}
/* Insistance (« très très », « very very ») : sans doute voulue → simple pointillé, sans fond. */
.r-insistance {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--r-double-trait);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}
.pastille--double { background: var(--r-double); border-bottom: 3px double var(--r-double-trait); }
[data-theme="macintosh"] .pastille--double { background: #ffffff; border-bottom: 3px double #000000; }

/* 2. Anonymiseur : aide du bouton et limites. */
.anon__ia-aide { margin: 0.4rem 0 0; font-size: 0.8rem; }
.anon__limites { margin-top: 0.75rem; }
.anon__limites-titre { margin: 0 0 0.25rem; color: var(--texte-2); }
.anon__limites-liste { display: grid; gap: 0.25rem; margin: 0; padding-left: 1.15rem; color: var(--texte-2); }
.anon__limites-liste li { overflow-wrap: anywhere; }

/* 3. Confort de lecture : zones concernées = .texte-commun (Analyse, deux
   couches), .note-texte et .note-section__texte (notes), .md-apercu (aperçus
   Markdown) et .lecture-apercu (essai de la Personnalisation).
   « :root[…] :is(…) » est plus précis que les règles des thèmes
   ([data-theme] .note-texte) : le choix de la personne l'emporte. */
:root[data-lecture-police="atkinson"] :is(.texte-commun, .note-texte, .note-section__texte, .md-apercu, .lecture-apercu) { font-family: 'Atkinson Hyperlegible', var(--police); }
:root[data-lecture-police="opendyslexic"] :is(.texte-commun, .note-texte, .note-section__texte, .md-apercu, .lecture-apercu) { font-family: 'OpenDyslexic', var(--police); }
:root[data-lecture-lettres="large"] :is(.texte-commun, .note-texte, .note-section__texte, .md-apercu, .lecture-apercu) { letter-spacing: 0.06em; }
:root[data-lecture-lettres="tres-large"] :is(.texte-commun, .note-texte, .note-section__texte, .md-apercu, .lecture-apercu) { letter-spacing: 0.12em; }
:root[data-lecture-mots="large"] :is(.texte-commun, .note-texte, .note-section__texte, .md-apercu, .lecture-apercu) { word-spacing: 0.16em; }
:root[data-lecture-mots="tres-large"] :is(.texte-commun, .note-texte, .note-section__texte, .md-apercu, .lecture-apercu) { word-spacing: 0.42em; }
:root[data-lecture-lignes="large"] :is(.texte-commun, .note-texte, .note-section__texte, .md-apercu, .lecture-apercu) { line-height: 2; }
:root[data-lecture-lignes="tres-large"] :is(.texte-commun, .note-texte, .note-section__texte, .md-apercu, .lecture-apercu) { line-height: 2.4; }

/* Réglages : chaque police est montrée dans sa propre police. */
.lecture-reglages { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-bottom: 0.25rem; }
.lecture-reglages__choix { max-width: 100%; }
#lecture-reglages .lecture-nom--atkinson { font-family: 'Atkinson Hyperlegible', var(--police); }
#lecture-reglages .lecture-nom--opendyslexic { font-family: 'OpenDyslexic', var(--police); }
.lecture-apercu {
  margin: 0.75rem 0;
  padding: 0.7rem 0.9rem;
  border: 1px dashed var(--bordure-forte);
  border-radius: var(--rayon);
  background: var(--fond-saisie);
  color: var(--texte);
  font-family: var(--police);
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}
@media (max-width: 560px) {
  .lecture-reglages { gap: 0.6rem; }
  .lecture-reglages__choix .segmente__option > span { padding: 0.35rem 0.6rem; }
}
/* ==== V20 IA ET LISIBILITÉ (fin) ==== */

/* ==== V20 COMPTAGE (début) ==== */
/* ==========================================================================
   V20 (4.4.0) — 04/11/2026 — COMPTAGE ET LISIBILITÉ (onglet Analyse)
     1. Panneau « Lisibilité » : deux indices (Kandel et Moles, LIX), chacun
        avec son nom et sa portée ; avertissement (texte non français,
        japonais : « non applicable ») ; même style que les autres panneaux.
     2. Carte « Limites et objectif » : étiquette « indicatif » (texte, jamais
        la couleur seule), légende, choix de l'unité de la limite personnalisée.
   Couleurs : uniquement les variables des thèmes (lisibles dans les 8 thèmes).
   ========================================================================== */
.lisibilite__indice { margin: 0.65rem 0 0.3rem; font-weight: 600; font-size: 0.85rem; overflow-wrap: anywhere; }
.lisibilite__indice:first-child { margin-top: 0; }
.lisibilite__portee { font-weight: 400; font-size: 0.75rem; color: var(--texte-2); }
.lisibilite__avertissement { margin: 0.1rem 0 0.4rem; padding-left: 0.5rem; border-left: 3px solid var(--avertissement); color: var(--texte); }
.lisibilite__niveau-lix { margin: 0; }
#corps-lisibilite > .btn { margin-top: 0.5rem; }

.jauge-limite__entete > .jauge-limite__nom { min-width: 0; }
.jauge-limite__statut {
  flex: none;
  margin-right: auto;
  padding: 0 0.4rem;
  border: 1px solid var(--bordure-forte);
  border-radius: 999px;
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--texte-2);
}
.jauge-limite__message--alerte { color: var(--danger); font-weight: 600; }
.limites__legende { margin: 0.35rem 0 0.25rem; font-size: 0.75rem; }
.limites__lien-aide { margin-top: 0.25rem; }
.limites__unite { margin: 0.5rem 0 0.15rem; max-width: 100%; }
.limites__unite .segmente__option > span { font-size: 0.8rem; }
.limites__unite-aide { margin: 0.2rem 0 0.5rem; font-size: 0.75rem; }
@media (max-width: 560px) {
  .limites__unite .segmente__option > span { padding: 0.35rem 0.55rem; }
}
/* 3. (revue V20) Les deux couches de l'Analyse (zone de saisie et copie
   colorée) doivent placer chaque lettre au même pixel. Le crénage (kerning)
   des polices des thèmes rapproche certaines paires de lettres (« Te », « Vo »…)
   dans la zone de saisie, mais pas dans la copie colorée, où une voyelle
   coloriée est dans son propre <span> : les lettres se décalaient (17 % des
   pixels mal placés dans Éditorial, Nocturne, Nature, Technique ; 20 pixels
   seulement sans crénage). On le désactive donc pour LES DEUX couches. */
.texte-commun { font-kerning: none; }
/* ==== V20 COMPTAGE (fin) ==== */

/* ==== V20 « PAR OÙ COMMENCER ? » ET RÉGLAGE « ANIMATIONS » (début) ==== */
/* Aide : 5 chemins (écrire, dicter, notes, métier, plaisir), mêmes couleurs que les cartes
   des visites guidées ; sur téléphone, les boutons passent sous le texte. */
.aide-depart { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.aide-depart__chemin { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.8rem; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond-sourd); }
.aide-depart__icone { font-size: 1.25rem; color: var(--accent); width: 1.6rem; text-align: center; flex: none; }
.aide-depart__texte { flex: 1; min-width: 0; margin: 0; font-size: 0.92rem; color: var(--texte-2); }
.aide-depart__texte strong { color: var(--texte); }
.aide-depart__actions { display: flex; flex-wrap: wrap; gap: 0.4rem; flex: none; }
@media (max-width: 640px) {
  .aide-depart__chemin { flex-wrap: wrap; }
  .aide-depart__texte { flex-basis: calc(100% - 2.5rem); }
  .aide-depart__actions { margin-left: 2.35rem; }
}
/* ==== V20 « PAR OÙ COMMENCER ? » ET RÉGLAGE « ANIMATIONS » (fin) ==== */


/* ==== V21 chargement ==== */
/* V21 (4.5.0) — 14/11/2026 : indicateur discret pendant le chargement d'un onglet, d'une langue
   ou de la carte (js/chargement.js) : il n'apparaît qu'après 300 ms. Petit cercle qui tourne,
   dans la couleur du texte (contraste du thème garanti) ; animations réduites (appareil ou
   réglage du site) : cercle pointillé immobile. */
.chargement-en-cours { cursor: progress; }
button.chargement-en-cours::after {
  content: '';
  display: inline-block;
  flex: none;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.45em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -0.1em;
  animation: cc-chargement-tourne 0.8s linear infinite;
}
select.chargement-en-cours { outline: 2px dashed currentColor; outline-offset: 2px; }
@keyframes cc-chargement-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  button.chargement-en-cours::after { animation: none; border-style: dotted; border-right-color: currentColor; }
}
/* (Le réglage du site « Animations : réduites » reprend la règle ci-dessus : bloc généré par
   outils/generer-css-mouvement.py.) */
/* ==== V21 chargement (fin) ==== */

/* ==== V21 documentation ==== */
/* ==========================================================================
   V21 (4.5.0) — 14/11/2026 — DOCUMENTATION (agent « Documentation »)
     1. « Saviez-vous combien ? » : lien « Sources et méthode » en haut de
        l'onglet et section #saviez-sources en bas (js/saviez.js, parties
        4 bis et 8.7 bis) : encadré, étapes, tableau des œuvres et de leurs
        sources (filtrable, triable), références.
        Sur téléphone (moins de 700 px), le tableau devient une pile de
        cartes : chaque cellule montre alors son étiquette (.saviez__src-
        etiquette, cachée aux lecteurs d'écran qui lisent déjà l'en-tête ;
        les rôles ARIA du tableau sont posés par le JavaScript, pour que le
        changement d'affichage ne lui fasse pas perdre son sens de tableau).
     2. Aide : question « Peut-on ouvrir le site dans plusieurs onglets ? »
        (#aide-onglets) — styles des questions existantes, rien à ajouter.
   Couleurs : uniquement les variables des thèmes (8 thèmes, clair et sombre).
   ========================================================================== */
.saviez__vers-sources { margin: 0.35rem 0 0.6rem; }
.saviez__lien-sources {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 2.25rem; padding: 0.3rem 0.75rem;
  border: 1px solid var(--bordure-forte); border-radius: 999px;
  color: var(--accent-fort); background: var(--fond-carte);
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
}
.saviez__lien-sources:hover { background: var(--accent-doux); border-color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; }
.saviez__lien-sources:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.saviez__sources { line-height: 1.55; }
.saviez__sources h3:focus { outline: none; }
.saviez__sources h3:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--rayon); }
.saviez__sources-intro { color: var(--texte-2); margin: 0 0 0.8rem; }
.saviez__sources-encadre {
  display: grid; gap: 0.5rem;
  margin: 0 0 1.2rem; padding: 0.75rem 0.95rem;
  border: 1px solid var(--bordure); border-left: 4px solid var(--accent);
  border-radius: var(--rayon); background: var(--fond-sourd);
  font-size: 0.92rem;
}
.saviez__sources-encadre p { margin: 0; }
.saviez__sources-partie { font-family: var(--police-titre); font-size: 1.08rem; margin: 1.4rem 0 0.5rem; color: var(--texte); }
.saviez__sources p { max-width: 75ch; }
.saviez__sources-etapes { margin: 0.4rem 0 0.8rem; padding-left: 1.4rem; display: grid; gap: 0.5rem; font-size: 0.92rem; color: var(--texte-2); max-width: 80ch; }
.saviez__sources .saviez__methode-liste { max-width: 80ch; }
.saviez__sources strong { color: var(--texte); }

/* Outils du tableau : recherche, source (boutons segmentés), compte. */
.saviez__sources-outils { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem 1rem; margin: 0.8rem 0 0.6rem; }
.saviez__sources-outils .champ { min-width: min(16rem, 100%); }
.saviez__sources-outils .saviez__compte { padding-bottom: 0.55rem; }

/* Le tableau. */
.saviez__sources-tableau { max-width: 100%; overflow-x: auto; }
.saviez__table--sources { font-size: 0.86rem; }
.saviez__table--sources caption { font-weight: 600; color: var(--texte-2); }
.saviez__table--sources th[scope="row"] { font-weight: 600; color: var(--texte); min-width: 9rem; }
.saviez__table--sources thead th { vertical-align: bottom; }
.saviez__src-cellule--titre .saviez__src-valeur { hyphens: auto; }
.saviez__src-cellule--edition, .saviez__src-cellule--fichier, .saviez__src-cellule--mesure { color: var(--texte-2); }
.saviez__src-cellule--mesure, .saviez__src-cellule--fichier { white-space: nowrap; }
.saviez__src-nom { display: block; }
.saviez__src-liens a { color: var(--accent-fort); overflow-wrap: anywhere; }
.saviez__src-liens .saviez__src-numero { white-space: nowrap; }
.saviez__src-liens a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.saviez__src-etiquette { display: none; }
.saviez__src-tri {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 2rem; margin: -0.2rem -0.35rem; padding: 0.2rem 0.35rem;
  border: 0; border-radius: var(--rayon); background: none;
  color: inherit; font: inherit; font-weight: 600; cursor: pointer; text-align: left;
}
.saviez__src-tri:hover { background: var(--accent-doux); color: var(--accent-fort); }
.saviez__src-tri:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.saviez__src-tri i { font-size: 0.8em; color: var(--accent-fort); }
.saviez__src-tri--repos::after { content: "⇅"; content: "⇅" / ""; color: var(--texte-3); font-weight: 400; }

/* Références. */
.saviez__refs { margin: 0.4rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; font-size: 0.9rem; max-width: 80ch; }
.saviez__refs a { color: var(--accent-fort); overflow-wrap: anywhere; }
.saviez__refs a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.saviez__ref-site { color: var(--texte-3); }

/* Téléphone et petite fenêtre : une carte par œuvre, sans défilement horizontal. */
@media (max-width: 699px) {
  .saviez__sources-tableau { overflow-x: visible; }
  .saviez__table--sources, .saviez__table--sources tbody, .saviez__table--sources tr, .saviez__table--sources th, .saviez__table--sources td { display: block; }
  .saviez__table--sources thead tr { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; padding: 0.2rem 0 0.5rem; border-bottom: 1px solid var(--bordure-forte); }
  .saviez__table--sources thead th { padding: 0.15rem 0.35rem; border: 0; }
  .saviez__table--sources thead th:not([data-triable]) { display: none; }
  .saviez__table--sources tbody tr { padding: 0.55rem 0; border-bottom: 1px solid var(--bordure); }
  .saviez__table--sources tbody th, .saviez__table--sources tbody td { padding: 0.12rem 0; border: 0; white-space: normal; }
  .saviez__table--sources tbody th { font-size: 0.98rem; }
  /* V21 (relecture) : étiquette et valeur sur une MÊME ligne (étiquette à gauche) : cartes deux fois moins hautes. */
  .saviez__table--sources .saviez__src-cellule { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: 0 0.6rem; align-items: baseline; }
  .saviez__table--sources .saviez__src-cellule--titre { grid-template-columns: minmax(0, 1fr); }
  .saviez__src-etiquette { display: block; color: var(--texte-3); font-size: 0.8rem; }
  .saviez__src-cellule--titre .saviez__src-etiquette { display: none; }
  .saviez__src-nom { display: inline; }
  .saviez__src-nom::after { content: " · "; content: " · " / ""; color: var(--texte-3); }
}
/* V21 (relecture) : au doigt, cibles d'au moins 44 px (règle d'Émile) : lien du haut, boutons de tri,
   liens des sources (« n° 11 »). Téléphone, ou tout écran tactile sans souris. */
@media (max-width: 699px), (pointer: coarse) {
  .saviez__lien-sources { min-height: 44px; }
  .saviez__src-tri { min-height: 44px; margin: 0; }
  .saviez__src-liens a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
}
/* « 1er » en exposant : sans écarter les lignes. */
.saviez__sources sup { line-height: 0; }
/* ==== V21 documentation (fin) ==== */

/* ==== V21 notes-rapides ==== */
/* Lien « Notes rapides » de l'en-tête (page notes-rapides.html, nouvel onglet) : même
   allure que « Nouveautés » et « Portfolio » (déclinée dans les 8 thèmes), sans soulignement. */
.entete__notes-rapides { text-decoration: none; }
/* Relecture V21 : 44 px de haut au doigt (écrans tactiles : pointeur « grossier ») ; à la
   souris, même hauteur que « Nouveautés » et « Portfolio ». */
@media (pointer: coarse) { .entete__notes-rapides { min-height: 44px; } }
/* ==== V21 notes-rapides (fin) ==== */

/* ==== V21 longs-textes ==== */
/* Longs textes (≥ 100 000 caractères) : les chiffres sont calculés en arrière-plan.
   « calcul… » apparaît discrètement en haut à droite d'une carte quand ils tardent
   (plus de 0,3 s) ; aucune animation (rien à réduire pour « Animations : réduites »).
   Couleurs : jetons du thème (--texte-3 sur --fond-sourd), donc lisibles dans les 8 thèmes. */
.carte--stats, .carte--limites { position: relative; }
.stats-calcul {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--texte-3);
  background: var(--fond-sourd);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 0.05rem 0.5rem;
  cursor: help;
}
.stats-calcul[hidden] { display: none; }
/* Chiffres en attente : un peu estompés (l'état est aussi donné par aria-busy). */
.liste-stats[aria-busy="true"] dd,
.carte--limites[aria-busy="true"] .jauges,
.carte--limites[aria-busy="true"] .sms,
.analyse--calcul .panneau-repliable__corps,
.note-pied__compteurs[aria-busy="true"] { opacity: 0.72; }
.portee--calcul { font-style: italic; }
/* ==== V21 longs-textes (fin) ==== */

/* ==== V22 Présentation ==== */
/* V22 (4.6.0) — 15/11/2026 — section « Présentation » du Bloc-notes (index.html,
   #notes-presentation ; vidéos et étapes : js/notes-presentation.js).
   • Fond de carte (BLANC dans le thème par défaut) et jetons de couleur seulement :
     les 8 thèmes s'appliquent d'eux-mêmes (classe « carte » sur la section).
   • Aucune animation ni transition : le réglage « Animations : réduites » n'a rien
     à retirer ici (la LECTURE AUTOMATIQUE des vidéos, elle, est arrêtée par le module).
   • Affiche et vidéo remplissent exactement le cadre 16:9 (aucun bord gris autour).
   • Tailles du texte en rem / em (zoom et « Taille du texte » respectés). */
.npres {
  margin-top: 1.5rem;
  padding: 1.6rem clamp(1rem, 3vw, 2.2rem) 0.6rem;
}
.npres__entete { max-width: 54rem; margin-bottom: 1.4rem; }
.npres__surtitre {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.npres__titre {
  margin: 0 0 0.6rem;
  font-family: var(--police-titre);
  font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--texte);
}
.npres__intro { margin: 0 0 1rem; max-width: 68ch; font-size: 1.02rem; line-height: 1.6; color: var(--texte-2); }
/* Atouts : une ligne de petits arguments (mêmes textes que l'accueil du Bloc-notes). */
.npres__atouts {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.4rem;
  font-size: 0.86rem;
  color: var(--texte-2);
}
.npres__atouts li { display: inline-flex; align-items: baseline; gap: 0.45rem; }
.npres__atouts i { color: var(--accent); }
/* Sommaire : 4 liens numérotés vers les chapitres (ancres : marchent sans script). */
.npres__sommaire-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  counter-reset: npres-sommaire;
}
.npres__sommaire-liste li { counter-increment: npres-sommaire; }
.npres__sommaire-liste a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.32rem 0.75rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--fond-sourd);
  color: var(--texte);
  font-size: 0.88rem;
  text-decoration: none;
}
.npres__sommaire-liste a::before {
  content: counter(npres-sommaire);
  font-family: var(--police-chiffres);
  font-size: 0.8em;
  font-weight: 600;
  color: var(--accent);
}
.npres__sommaire-liste a:hover { border-color: var(--accent); color: var(--accent-fort); }
.npres__sommaire-liste a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Un chapitre (relecture n° 2 : ordre du HTML = ordre du téléphone) : titre, résumé, VIDÉO,
   étapes, « Essayer ». Au téléphone, la liste des étapes — surlignée pendant la lecture —
   est donc juste SOUS la vidéo. Sur grand écran (plus de 900 px) : textes à gauche (5 parts),
   vidéo à droite (7 parts), sur toute la hauteur du chapitre. */
.npres__chapitre {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "titre media" "resume media" "etapes media" "essayer media";
  grid-template-rows: auto auto auto 1fr;
  column-gap: 2.25rem;
  align-items: start;
  padding: 1.75rem 0;
  border-top: 1px solid var(--bordure);
  scroll-margin-top: 1rem;
}
.npres__chapitre > .npres__chapitre-titre { grid-area: titre; }
.npres__chapitre > .npres__resume { grid-area: resume; }
.npres__chapitre > .npres__media { grid-area: media; }
.npres__chapitre > .npres__etapes { grid-area: etapes; }
.npres__chapitre > .npres__essayer { grid-area: essayer; justify-self: start; }
.npres__chapitre-titre {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin: 0 0 0.55rem;
  font-family: var(--police-titre);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--texte);
}
.npres__numero {
  flex: none;
  align-self: center;
  display: inline-grid;
  place-items: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.3rem;
  border: 1px solid var(--accent);
  border-radius: var(--rayon);
  font-family: var(--police-chiffres);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.npres__resume { margin: 0 0 0.9rem; line-height: 1.6; color: var(--texte-2); }
.npres__etapes {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.3rem;
  counter-reset: npres-etape;
}
.npres__etapes li {
  counter-increment: npres-etape;
  position: relative;
  padding: 0.38rem 0.6rem 0.38rem 2.3rem;
  border-left: 3px solid transparent;
  border-radius: var(--rayon);
  font-size: 0.93rem;
  line-height: 1.45;
  color: var(--texte);
}
.npres__etapes li::before {
  content: counter(npres-etape);
  position: absolute;
  left: 0.6rem;
  top: 0.38rem;
  font-family: var(--police-chiffres);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--texte-3);
}
/* Étape que la vidéo montre en ce moment (aria-current="step" posé par le module). */
.npres__etapes li[aria-current="step"] { background: var(--accent-doux); border-left-color: var(--accent); }
.npres__etapes li[aria-current="step"]::before { color: var(--accent-fort); }
.npres__essayer[hidden] { display: none; }

.npres__media { margin: 0; min-width: 0; }
.npres__cadre {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--fond-sourd);
  border: 1px solid var(--bordure-forte);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}
.npres__affiche,
.npres__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
/* Affiche introuvable (hors connexion, jamais gardée) : pas d'icône d'image cassée. */
.npres__affiche.est-absente { visibility: hidden; }
.npres__video:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
/* Bouton « Lire » posé au centre de l'affiche (économiseur de données, animations réduites). */
.npres__lire {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: var(--ombre-forte);
}
.npres__lire[hidden] { display: none; }
.npres__legende { margin-top: 0.5rem; font-size: 0.8rem; line-height: 1.45; color: var(--texte-3); }
.npres__etat { color: var(--texte-2); font-weight: 600; }
.npres__etat[hidden] { display: none; }
/* Sous-titres de la vidéo (piste créée par le module, textes des étapes), CACHÉS par défaut
   (relecture n° 2 : ils couvraient ≈ 60 % de l'image au téléphone et doublaient la liste des
   étapes). Activés depuis les commandes de la vidéo : blanc sur fond sombre, taille laissée au
   navigateur (proportionnelle à la hauteur de la vidéo : petite au téléphone). */
.npres__video::cue {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  line-height: 1.3;
  color: #ffffff;
  background-color: rgba(15, 20, 25, 0.84);
}
@media (max-width: 900px) {
  .npres__chapitre {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "titre" "resume" "media" "etapes" "essayer";
    grid-template-rows: none;
    padding: 1.35rem 0;
  }
  .npres__media { margin-bottom: 0.9rem; }
}
@media (max-width: 480px) {
  .npres { padding: 1.1rem 0.9rem 0.3rem; }
  .npres__chapitre-titre { font-size: 1.22rem; }
  .npres__etapes li { font-size: 0.9rem; }
}
/* Écran tactile ou téléphone : cibles d'au moins 44 px (règle d'Émile ; relecture n° 2). */
@media (max-width: 699px), (pointer: coarse) {
  .npres__sommaire-liste a,
  .npres__essayer,
  .npres__lire { min-height: 44px; align-items: center; }
}
/* ==== V22 Présentation (fin) ==== */

/* ==== V22 Sites ==== */
/* V22 (4.6.0) — 15/11/2026 — SITES : créer un site sans passer par la carte, le relier à des
   catégories. Champ « Site » de la note (+ bouton « Sites », catégorie proposée : bloc-notes.js),
   fenêtres « Sites », « Site » et « Supprimer le site » (carte-notes.js, chargé à la demande),
   sites de chaque catégorie dans « Dossiers et catégories », filtre « Catégorie » de la carte,
   consigne des modes « Ajouter » / « Placer » en haut de la carte. Couleurs : variables des
   8 thèmes uniquement ; aucune animation (rien à réduire). */
.note-meta__site { display: flex; align-items: flex-end; gap: 0.3rem; }
.note-meta__sites { flex: 0 0 auto; }
/* Catégorie proposée : une ligne à part, sous les champs. */
.note-site-suggestion {
  flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem;
  margin: 0; padding: 0.35rem 0.55rem; font-size: 0.82rem; color: var(--texte-2);
  background: var(--fond-sourd); border: 1px solid var(--bordure); border-radius: var(--rayon);
}
.note-site-suggestion[hidden] { display: none; }
.note-site-suggestion__bouton { gap: 0.3rem; }
/* « Dossiers et catégories » : les sites de chaque catégorie, sous sa ligne. */
.gerer__ligne--sites { flex-wrap: wrap; }
.gerer__sites { flex: 1 1 100%; margin: -0.15rem 0 0.1rem 1.1rem; font-size: 0.78rem; color: var(--texte-3); overflow-wrap: anywhere; }
/* Fenêtre « Site » (créer, modifier). */
.site-form__erreur { margin: 0.35rem 0 0; font-size: 0.85rem; font-weight: 600; color: var(--danger); }
.site-form__erreur[hidden] { display: none; }
.site-form__groupe { margin: 1rem 0 0; padding: 0; border: none; min-width: 0; }
.site-form__legende { padding: 0; margin-bottom: 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--texte-2); }
.site-form__categories { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; max-height: 13rem; overflow: auto; padding: 0.1rem; }
.site-form__case { min-height: 2rem; color: var(--texte); }
.site-form__case .pastille-categorie { margin-right: 0; }
.site-form__vide { margin: 0; font-size: 0.85rem; color: var(--texte-3); font-style: italic; }
.site-form__ajout { margin-top: 0.3rem; }
.site-form__position { margin-top: 1rem; }
.site-form__position[hidden], .site-form__etat[hidden] { display: none; }
.site-form__etat { margin: 0.4rem 0 0; }
.site-form__cible { margin-top: 0.8rem; }
.site-form__cible select { width: 100%; }
/* Fenêtre « Sites » (tous les sites). */
.sites__aide { margin-top: 0; }
.sites__outils { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem; }
/* Grand écran : recherche, filtre et « Nouveau site » restent visibles quand la liste défile.
   (Pas sur téléphone : ils prendraient un quart de l'écran.) */
@media (min-width: 601px) {
  .sites__outils { position: sticky; top: -1rem; z-index: 2; margin: 0 -1.2rem; padding: 0.5rem 1.2rem; background: var(--fond-carte); border-bottom: 1px solid var(--bordure); }
}
.sites__recherche { flex: 1 1 14rem; min-width: 0; }
.sites__filtre { flex: 0 1 12rem; min-width: 0; }
.sites__filtre select { width: 100%; max-width: none; }
.sites__compte { margin: 0.6rem 0 0.2rem; font-size: 0.85rem; color: var(--texte-3); }
.sites__groupe { margin: 0.9rem 0 0.35rem; font-size: 0.95rem; }
.sites__ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.sites__ligne {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.8rem; padding: 0.45rem 0.55rem;
  border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond-carte);
}
.sites__infos { flex: 1 1 14rem; min-width: 0; }
/* Le nom s'écoule comme un texte (icône, nom, badges) : un nom long passe à la ligne sous lui-même. */
.sites__nom { margin: 0; font-weight: 600; color: var(--texte); overflow-wrap: anywhere; }
.sites__icone { color: var(--texte-3); width: 1rem; margin-right: 0.45rem; text-align: center; }
.sites__badge { display: inline-block; margin-left: 0.4rem; font-size: 0.72rem; font-weight: 500; line-height: 1.5; padding: 0 0.45rem; border: 1px solid var(--bordure-forte); border-radius: 999px; color: var(--texte-2); background: var(--fond-sourd); vertical-align: 0.1em; }
.sites__badge--alerte { color: var(--danger); border-color: var(--danger); background: var(--fond-carte); }
.sites__detail { margin: 0.1rem 0 0 1.45rem; font-size: 0.8rem; color: var(--texte-3); overflow-wrap: anywhere; }
.sites__detail .pastille-categorie { margin-left: 0.15rem; }
.sites__sans { font-style: italic; }
.sites__actions { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.sites__action { gap: 0.3rem; }
.sites__action.btn--icone { width: 2.25rem; }
.sites__notes { flex: 1 1 100%; list-style: none; margin: 0.1rem 0 0; padding: 0 0 0 1.45rem; max-height: 12rem; overflow: auto; }
/* Carte : titre de la liste + « Gérer les sites… », filtre « Catégorie », catégories du volet. */
.cnotes__liste-entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.3rem; }
.cnotes__liste-entete .explorateur__colonne-titre { margin: 0; }
.cnotes__filtre-categorie select { width: 100%; max-width: none; }
.cnotes__volet-categories { margin: 0.15rem 0 0; font-size: 0.82rem; color: var(--texte-2); overflow-wrap: anywhere; }
.cnotes__volet-categories .fa-tag { color: var(--texte-3); margin-right: 0.1rem; }
/* Consigne des modes « Ajouter un site » / « Placer sur la carte » : EN HAUT de la carte. En bas,
   elle sortait de l'écran à 1366 × 768 et à 390 px (relecture n° 2). La légende, inutile pendant
   ce mode, lui laisse la place ; les boutons de zoom (à droite) restent accessibles. */
.cnotes__zone .cnotes__mode { top: 0.6rem; bottom: auto; left: 0.6rem; right: 3.4rem; transform: none; max-width: none; z-index: 3; }
.cnotes__zone--ajout .cnotes__legende { visibility: hidden; }
/* Téléphone : la fenêtre « Sites » se lit en une colonne. */
@media (max-width: 480px) {
  .sites__filtre { flex: 1 1 100%; }
  .sites__ligne { padding: 0.45rem; }
  .sites__detail, .sites__notes { margin-left: 0; padding-left: 0; }
}
/* Petit écran ou doigt : boutons d'en-tête et de pied des fenêtres des sites de 44 px au moins. */
@media (max-width: 699px), (pointer: coarse) {
  #dialogue-sites .dialogue__pied .btn, #dialogue-site .dialogue__pied .btn, #dialogue-site-supprimer .dialogue__pied .btn,
  #dialogue-sites .dialogue__entete .btn, #dialogue-site .dialogue__entete .btn { min-height: 44px; min-width: 44px; }
}
/* Écran tactile : cibles de 44 × 44 px au moins (doigt). */
@media (pointer: coarse) {
  .note-meta__sites, .sites__action, .note-site-suggestion__bouton, .cnotes__gerer, .site-form__ajout,
  .cnotes__volet-gestion .btn, #sites-nouveau { min-height: 44px; min-width: 44px; }
  .sites__action.btn--icone { width: 44px; }
  .site-form__case { min-height: 44px; }
  #dialogue-site .segmente__option > span, #dialogue-site-supprimer .segmente__option > span { min-height: 44px; }
  .note-meta__site .champ--compact, .sites__filtre select, .cnotes__filtre-categorie select { min-height: 44px; }
}
/* ==== V22 Sites (fin) ==== */

/* ==== V22 Panneau ==== */
/* V22 (4.6.0) — 15/11/2026 — panneau « Mes notes » (index.html #notes-barre, js/bloc-notes.js) :
   UNE ligne par rôle, rien ne passe à la ligne ni ne se superpose, de 390 à 3 000 px :
     1. barre de titre « Mes notes (n) » (+ « Liste » sur petit écran), une seule ligne comme en V21
        (Windows 95 et Macintosh la dessinent en barre de titre de fenêtre : themes.css) ;
        dessous, Explorateur | Carte (colonnes égales) ;
     2. « Nouvelle note » + flèche du menu ; 3. recherche + ✕ ; 4. Toutes | Épinglées | Corbeille ;
     5. Filtres (nombre actif) + Effacer, puis le résultat ; 6. liste ; 7. Gérer + Tout exporter.
   Couleurs : jetons des thèmes ; les thèmes Windows 95, Macintosh, Terminal et Contraste élevé
   changent aussi les formes et les polices (themes.css) : vérifié dans les 8 thèmes × 5 largeurs
   (étape v22panneau) ; peu d'arrondis (--rayon) ;
   cibles de 44 px au doigt (téléphone ou écran tactile, comme le reste du site). */

/* 1. Barre de titre (une ligne : titre, nombre, « Liste »), puis Explorateur | Carte, hors de la barre. */
.notes__barre-entete { flex-wrap: nowrap; min-width: 0; }
/* Colonnes égales quand la place suffit ; sinon chaque bouton garde la largeur de son libellé
   (polices plus larges des thèmes Terminal et Contraste élevé : « Explorateur » jamais coupé). */
.mn-vues { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.7rem; }
.mn-vues .mn-vues__bouton { flex: 1 1 0; min-width: max-content; margin: 0; padding-left: 0.35rem; padding-right: 0.35rem; gap: 0.35rem; }
/* Liste repliée (téléphone) : la barre de titre et Explorateur | Carte restent visibles. */
.notes__barre--repliee .notes__barre-entete { margin-bottom: 0.5rem; }
.notes__barre--repliee .mn-vues { margin-bottom: 0; }

/* 2. « Nouvelle note » + flèche (autres façons de créer). */
.mn-creer { flex-wrap: nowrap; gap: 0; }
.mn-creer .mn-creer__principal { flex: 1 1 auto; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.mn-creer__menu { display: flex; flex: 0 0 auto; }
.mn-creer .mn-creer__fleche { flex: 0 0 auto; width: 2.6rem; padding: 0; border-left: 1px solid var(--fond-carte); border-top-left-radius: 0; border-bottom-left-radius: 0; }
.mn-creer .mn-creer__fleche i { transition: transform 0.15s; }
.mn-creer__menu[open] > .mn-creer__fleche { background: var(--accent-fort); border-color: var(--accent-fort); border-left-color: var(--fond-carte); color: var(--sur-accent); }
.mn-creer__menu[open] > .mn-creer__fleche i { transform: rotate(180deg); }

/* 3. Recherche + bouton ✕ (le ✕ du navigateur est masqué : un seul, le même partout). */
.mn-recherche { position: relative; }
.mn-recherche .champ { padding-right: 2.4rem; }
.mn-recherche input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.mn-recherche__effacer {
  position: absolute; top: 50%; right: 0.25rem; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border: none; border-radius: var(--rayon);
  background: transparent; color: var(--texte-3); cursor: pointer;
}
.mn-recherche__effacer:hover { background: var(--fond-sourd); color: var(--texte); }
.mn-recherche__effacer:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.mn-recherche__effacer[hidden] { display: none; }
/* Sans ✕ (recherche vide) : toute la largeur pour l'indication « Rechercher (Ctrl+Maj+F) ». */
.mn-recherche:has(.mn-recherche__effacer[hidden]) .champ { padding-right: 0.6rem; }

/* 5. Filtres repliés : bouton + nombre, « Effacer », puis le résultat sur sa propre ligne. */
.mn-etat { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.4rem; min-width: 0; }
.mn-etat__filtres { flex: 0 0 auto; gap: 0.4rem; }
.mn-etat__filtres .chevron { font-size: 0.7rem; color: var(--texte-3); transition: transform 0.15s; }
.mn-etat__filtres[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.mn-etat__filtres--actif { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.mn-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.3rem; height: 1.3rem; padding: 0 0.3rem; border-radius: var(--rayon);
  background: var(--accent); color: var(--sur-accent); font: 600 0.75rem/1 var(--police-chiffres);
}
.mn-badge[hidden], .mn-etat__effacer[hidden], .notes__filtres[hidden] { display: none; }
.mn-etat__effacer { flex: 0 0 auto; margin-left: auto; }
.mn-etat .notes__info-filtre { order: 3; flex: 1 0 100%; margin: 0; }
.notes__filtres { padding: 0.45rem; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond-sourd); }
/* Ordre de la liste : 3 boutons segmentés sur toute la largeur du panneau des filtres. */
.notes__filtres .notes__tri { grid-column: 1 / -1; }
/* (légende « rendue » au-dessus des boutons, hors de leur ligne : pas de flottant) */
.notes__tri-legende { margin: 0 0 0.25rem; padding: 0; font-size: 0.75rem; font-weight: 500; color: var(--texte-2); }
.notes__tri .segmente__option { min-width: 0; }
.notes__tri .segmente__option > span { padding-left: 0.2rem; padding-right: 0.2rem; }

/* 6. Liste : suite, « Aucun résultat » (suggestions), section du passage trouvé. */
.notes__liste-suite { padding: 0.35rem; }
.notes__liste-suite .btn--pleine-largeur { margin-top: 0; }
.notes__liste-vide p { margin: 0 0 0.45rem; }
.notes__vide-titre { font-weight: 600; color: var(--texte-2); }
.notes__vide-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-top: 0.35rem; }
.notes__liste-vide > .btn { margin-top: 0.2rem; }
.note-item__section { color: var(--texte-2); font-weight: 600; }
.note-item__bouton:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* 7. Pied : « Gérer » (menu ouvert vers le haut) et « Tout exporter » (juste sous le rappel de sauvegarde) ; espace utilisé. */
.notes__barre-pied { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0.35rem; }
.mn-pied { display: flex; gap: 0.4rem; min-width: 0; }
/* Largeur selon le libellé (japonais : « すべてエクスポート » entier, jamais coupé). */
.mn-gerer { display: flex; flex: 1 1 auto; }
.mn-gerer .mn-gerer__bouton { width: 100%; gap: 0.4rem; }
.mn-gerer__bouton .chevron { font-size: 0.7rem; color: var(--texte-3); }
.mn-gerer .menu__liste { top: auto; bottom: calc(100% + 4px); }
.notes__barre-pied .mn-pied__exporter { flex: 1 1 auto; }

/* Au doigt (téléphone, ou écran tactile sans souris) : cibles d'au moins 44 px. */
@media (max-width: 699px), (pointer: coarse) {
  /* (« #notes-barre » : plus fort que les règles des thèmes de themes.css, chargé après, qui
     dessinent par exemple les boutons de la barre de titre de Windows 95 ou ceux de Contraste élevé.) */
  #notes-barre .btn--compact, #notes-barre .mn-creer .btn, #notes-barre .mn-recherche .champ, #notes-barre .notes__vues .segmente__option > span,
  #notes-barre .notes__tri .segmente__option > span, #notes-barre .notes__filtres .champ--compact, #notes-barre .notes__stockage,
  #notes-barre .note-item__bouton, #notes-barre .menu__item { min-height: 44px; }
  .mn-recherche__effacer { width: 44px; height: 44px; right: 0; }
  .mn-recherche .champ { padding-right: 2.9rem; }
  .mn-creer .mn-creer__fleche { width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .mn-creer .mn-creer__fleche i, .mn-etat__filtres .chevron { transition: none; }
}
/* ==== V22 Panneau (fin) ==== */

/* ==== V22 Infobulles dans les fenêtres ==== */
/* Relecture V22 n° 2 : dans une fenêtre ouverte, la bulle est mise dans la « couche supérieure »
   (attribut popover, js/utilitaires.js) pour passer AU-DESSUS de la fenêtre. Les styles par défaut du
   navigateur pour [popover] (centrée, bordure, marges, fond) sont annulés : seule sa position change
   (fixe, comptée dans l'écran). */
.infobulle[popover] {
  position: fixed;
  inset: auto;
  margin: 0;
  border: 0;
  overflow: visible;
}
/* ==== V22 Infobulles dans les fenêtres (fin) ==== */

/* ==== V24 miseenpage ==== */
/* V24 (4.8.0) — 15/11/2026 — onglet « Dictionnaires » DANS LE STYLE DU BLOC-NOTES (demande d'Émile :
   « une partie = un grand bloc blanc encadré, titre net, aéré »). Ce bloc REMPLACE celui de la V23
   (« V23 miseenpage », même onglet) : il en garde les règles des parties « Mots » et « Statistiques ».
   Les composants du Bloc-notes sont repris PAR LEURS CLASSES, sans copie de règles :
     • carte : chaque partie, le panneau « Dictionnaires (n) » et le dictionnaire ouvert (les thèmes
       en font des fenêtres : Windows 95, Macintosh, Terminal) ; titre de partie = « .carte >
       .titre-section » (barre de titre bleu marine de Windows 95, rayures du Macintosh) ;
     • notes__barre-entete + notes__compte : « Dictionnaires (7) », « Vocabulaire du nucléaire 199 mots » ;
     • notes__corps-liste, notes__creer + mn-creer : bouton principal « + Nouveau dictionnaire » et sa
       flèche (menu « Importer… ») ; notes__liste : la liste (zone creusée blanche de Windows 95) ;
     • note-item / note-item__bouton[aria-current] : une ligne par dictionnaire, ligne choisie teintée
       avec la barre d'accent à gauche (vidéo inversée des thèmes rétro, dans themes.css) ;
     • mn-recherche : recherche avec loupe et ✕ ; menu : « Télécharger ▾ » ; notes__barre-pied : pied.
   Ici : la disposition propre à l'onglet (cartes empilées, deux panneaux), la case « Dictée » posée sur
   la ligne, la ligne « Arrive bientôt », les mots en lignes, la partie « Mots » et les statistiques.
   Vérifié dans les 8 thèmes × 1920, 1366, 1024, 768 (tactile) et 390 px (tactile) : étape
   « v24miseenpage » de tests/test-navigateur.py.
   Relecture technique n° 1 (M2) : les déclarations des sections V16 et V17 que ce bloc remplaçait
   ont été retirées là-bas ; ce bloc n'a donc plus à les remettre à zéro. */

/* Couleur des graphiques (une seule série) : l'accent du thème quand il passe le validateur de
   palette (bande de clarté, saturation, contraste ≥ 3:1 sur le fond) ; sinon un pas du même ton qui
   passe (Nocturne, Windows 95, Terminal). Macintosh (noir et blanc) et Contraste élevé (jaune sur
   noir) gardent leur couleur : un choix du thème, contraste 21:1 et 19,6:1, une seule série. */
.dico { --dico-viz-serie: var(--accent); --dico-viz-piste: color-mix(in srgb, var(--dico-viz-serie) 22%, var(--fond-carte)); }
[data-theme="nocturne"] .dico { --dico-viz-serie: #3987e5; }
[data-theme="windows95"] .dico { --dico-viz-serie: #1c5cab; }
[data-theme="terminal"] .dico { --dico-viz-serie: #0ca30c; }
[data-theme="macintosh"] .dico { --dico-viz-serie: #000000; --dico-viz-piste: #c8c8c8; }
[data-theme="contraste"] .dico { --dico-viz-serie: #ffff00; --dico-viz-piste: #4d4d00; }

/* ---------- L'onglet : une pile de cartes, avec un espace franc entre elles ---------- */
.dico { display: flex; flex-direction: column; gap: 1.25rem; padding: 0; }
.dico__entete { justify-content: space-between; gap: 0.7rem 1.2rem; margin-bottom: 0; }
/* Sommaire : un bouton par partie (boutons du site, comme « Explorateur » et « Carte » du Bloc-notes). */
.dico-sommaire__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.dico-sommaire__lien { gap: 0.45rem; padding-left: 0.4rem; text-decoration: none; }
.dico-sommaire__numero, .dico-partie__numero { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6rem; height: 1.6rem; padding: 0 0.3rem; border-radius: 999px; background: var(--accent); color: var(--sur-accent, #ffffff); font: 700 0.8rem/1 var(--police-chiffres); }

/* Une partie = une carte : titre net (numéro + nom), phrase d'aide, contenu aéré. */
.dico-bloc { padding: 1.3rem 1.4rem 1.4rem; scroll-margin-top: 0.75rem; }
.dico-bloc > .titre-section { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.4rem; font-size: 1.4rem; }
.dico-partie__titre:focus { outline: none; }
.dico-partie__titre:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dico-partie__aide { margin: 0 0 1rem; max-width: 85ch; }
.dico-partie__retour { margin: 1rem 0 0; font-size: 0.88rem; }
.dico-retour { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2rem; }

/* ---------- 1. Introduction : deux phrases, le détail replié ---------- */
.dico-intro__resume { margin: 0 0 0.4rem; max-width: 85ch; line-height: 1.6; color: var(--texte-2); }
.dico-intro__bascule { margin-left: -0.7rem; }
.dico-intro__bascule .fa-chevron-down, .dico-intro__bascule .fa-chevron-up { font-size: 0.75rem; }
.dico-intro__corps { margin-top: 0.7rem; padding-top: 1rem; border-top: 1px solid var(--bordure); }
.dico-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 1.6rem; }
.dico-intro__titre { margin: 0 0 0.4rem; font-size: 0.98rem; }
.dico-intro__usages { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.dico-intro__usages li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0.4rem; line-height: 1.5; }
.dico-intro__usages i { color: var(--accent); margin-top: 0.25rem; text-align: center; }
.dico-intro__etapes { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.35rem; line-height: 1.5; }

/* ---------- 2. Dictionnaires : disposition du Bloc-notes (panneau à gauche, dictionnaire à droite) ---------- */
.dico__corps { grid-template-columns: minmax(17rem, 20rem) minmax(0, 1fr); gap: 1.25rem; margin-top: 0; }
/* Les deux panneaux : des cartes (comme « Mes notes » et l'éditeur), avec la marge du Bloc-notes. */
.dico-barre { display: flex; flex-direction: column; min-width: 0; padding: 1rem; }
.dico-barre .notes__barre-entete .titre-section { margin: 0; }
.dico-ouvert { min-width: 0; padding: 1rem 1.1rem 1.1rem; scroll-margin-top: 0.75rem; }

/* Panneau de gauche : la liste n'a pas besoin de défiler (une dizaine de dictionnaires). */
.dico-barre .notes__liste { flex: 0 0 auto; min-height: 0; max-height: none; overflow: visible; }
.dico-liste__groupe { margin: 0; padding: 0.6rem 0.65rem 0.2rem; font: 600 0.72rem/1.3 var(--police); text-transform: uppercase; letter-spacing: 0.05em; color: var(--texte-2); }
.dico-liste__lignes { list-style: none; margin: 0; padding: 0; }
.dico-liste__lignes:last-child > .note-item:last-child { border-bottom: 0; }
.dico__vide--liste { padding: 0.2rem 0.65rem 0.6rem; font-size: 0.82rem; }
/* Une ligne : nom entier (jamais « … » : il passe à la ligne), icône du dictionnaire ; dessous
   « 199 mots », et la case « Dictée » posée à droite de cette 2e ligne
   (une case ne peut pas être DANS le bouton de la ligne : elle est posée par-dessus, à côté). */
.dico-ligne { position: relative; }
.dico-ligne .note-item__titre { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.dico-ligne .note-item__ligne { align-items: baseline; }
.dico-ligne__icone { flex: 0 0 1.15rem; text-align: center; font-size: 0.85rem; color: var(--accent); }
.dico-ligne__meta { min-height: 1.65rem; padding: 0 5.4rem 0 1.55rem; }
.dico-ligne__meta .dico__nb { font: inherit; color: inherit; }
.dico-ligne__dictee { position: absolute; right: 0.45rem; bottom: 0.45rem; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 1.65rem; padding: 0 0.35rem; border-radius: var(--rayon); font-size: 0.78rem; font-weight: 600; color: var(--texte-2); cursor: pointer; }
.dico-ligne__dictee input { margin: 0; }
.dico-ligne__dictee:hover { color: var(--texte); }
/* « Arrive bientôt » : ligne grisée, pas choisissable (aria-disabled), pas de case. */
.dico-ligne--bientot .note-item__bouton { cursor: default; color: var(--texte-3); }
.dico-ligne--bientot .note-item__bouton:hover { background: transparent; }
.dico-ligne--bientot .dico-ligne__icone { color: var(--texte-3); }
.dico-ligne--bientot .note-item__titre { color: var(--texte-2); font-weight: 600; }
.dico-ligne--bientot .dico-ligne__meta { padding-right: 0; }
.dico-badge-bientot { display: inline-flex; align-items: center; padding: 0 0.5rem; border: 1px dashed var(--bordure-forte); border-radius: 999px; font-size: 0.7rem; font-weight: 600; line-height: 1.6; color: var(--texte-2); }
/* Pied du panneau : ce que veut dire la case « Dictée ». */
.dico-barre__aide { display: flex; gap: 0.45rem; margin: 0; font-size: 0.75rem; line-height: 1.4; color: var(--texte-3); }
.dico-barre__aide i { margin-top: 0.15rem; }

/* Panneau de droite : en-tête (icône, nom, nombre de mots), actions, recherche et section, mots. */
.dico-ouvert__titre { display: flex; align-items: baseline; gap: 0.5rem; margin: 0; min-width: 0; overflow-wrap: anywhere; }
/* (relecture n° 2, I1) Sur téléphone, le titre reçoit le focus quand on choisit un dictionnaire. */
.dico-ouvert__titre:focus { outline: none; }
.dico-ouvert__titre:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dico-ouvert__icone { flex: 0 0 auto; font-size: 0.8em; color: var(--accent); }
.dico-ouvert__entete .notes__compte { flex: 0 0 auto; white-space: nowrap; }
.dico-ouvert__actions { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0 0 0.75rem; }
.dico-ouvert__actions:not(:has(> :not([hidden]))) { display: none; }
.dico-ouvert__actions .btn { text-decoration: none; }
/* « Télécharger ▾ » : le menu s'ouvre sous la rangée d'actions, sur toute sa largeur au plus. */
.dico-ouvert__actions > .dico-telecharger { position: static; display: flex; }
.dico-telecharger__bouton .chevron { font-size: 0.7rem; color: var(--texte-3); transition: transform 0.15s; }
.dico-telecharger[open] > .dico-telecharger__bouton .chevron { transform: rotate(180deg); }
.dico-telecharger > .dico-telecharger__liste { left: 0; right: auto; width: min(26rem, 100%); min-width: 0; }
.dico-telecharger__liste .menu__item { text-decoration: none; }
.dico-telecharger__format { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.45rem; font-weight: 600; }
.dico-telecharger__usage { font-size: 0.8rem; font-weight: 400; color: var(--texte-3); }
.dico-licence { margin: 0.15rem 0.45rem 0.3rem; font-size: 0.8rem; line-height: 1.45; color: var(--texte-2); }
.dico-licence i { color: var(--texte-2); }
.dico-ressource__note { margin: 0 0.45rem 0.3rem; font-size: 0.78rem; color: var(--texte-2); }
.dico-ressource__hors-ligne { flex: 1 1 100%; margin: 0; font-size: 0.82rem; color: var(--texte-2); }
/* (relecture n° 2, S4) Sous les actions d'un dictionnaire publié : la licence, en une ligne (texte complet dans
   « Télécharger ▾ »). */
.dico-licence-courte { margin: -0.35rem 0 0.75rem; font-size: 0.8rem; line-height: 1.45; color: var(--texte-2); }
.dico-licence-courte i { color: var(--texte-2); }
.dico-ressource__hors-ligne i { color: var(--texte-3); }
@media (prefers-reduced-motion: reduce) { .dico-telecharger__bouton .chevron { transition: none; } }
.dico-ouvert__outils { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; margin: 0 0 0.6rem; }
.dico-ouvert__recherche { flex: 1 1 15rem; min-width: 0; }
.dico-ouvert__section { flex: 0 1 17rem; min-width: 0; max-width: 100%; }
.dico-ouvert__section .champ { width: 100%; max-width: 100%; }

/* Les mots : des lignes comme les notes (terme en gras ; sigle, forme, badges ; actions à droite ;
   dessous l'anglais, la définition, « Terme officiel », la dictée). */
.dico__entrees { border-top: 1px solid var(--bordure); max-height: calc(100vh - 12rem); }
.dico__section { margin: 0; padding: 0.75rem 0.3rem 0.3rem 0.65rem; }
.dico__section-intro { padding: 0 0.3rem 0.3rem 0.65rem; }
.dico__entree { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.6rem; padding: 0.55rem 0.4rem 0.6rem 0.65rem; border-bottom: 1px solid var(--bordure); border-left: 3px solid transparent; }
.dico__entree > * { grid-column: 1 / -1; }
.dico__entree > .dico__terme { grid-column: 1; align-self: center; }
.dico__entree > .dico__actions { grid-column: 2; grid-row: 1; flex-wrap: nowrap; margin: -0.15rem 0 0; align-self: start; }
.dico__entree--vue { border-left-color: var(--accent); background: var(--accent-doux); }
.dico__terme { font-size: 0.95rem; }
.dico__definition { margin-top: 0.15rem; font-size: 0.88rem; color: var(--texte-2); }
.dico__actions .btn--compact { min-height: 1.9rem; padding: 0.2rem 0.45rem; gap: 0.35rem; font-size: 0.8rem; }
.dico__sigle { font: 700 0.85rem var(--police-chiffres); text-decoration: none; padding: 0 0.35rem; border: 1px solid var(--bordure-forte); border-radius: var(--rayon); color: var(--texte); }
.dico__anglais { margin: 0.1rem 0 0; font-size: 0.84rem; color: var(--texte-2); }
.dico__etiquette { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texte-3); }
.dico__anglais-terme { font-style: italic; color: var(--texte); }
.dico__ft { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem; margin: 0.25rem 0 0; font-size: 0.8rem; color: var(--texte-2); }
.dico__ft i { color: var(--texte-2); }
.dico__ft-libelle { font-weight: 600; }
.dico__ft-lien { display: inline-flex; align-items: center; gap: 0.25rem; }
.dico__ft-lien i { font-size: 0.7rem; }
.dico__badge--section { color: var(--texte-3); }
.dico__chargement { margin: 0.6rem 0.65rem; }
.dico__entrees > .dico__vide { margin: 0.6rem 0.65rem; }
/* Rien trouvé ici : les autres dictionnaires qui ont le mot (relecture n° 2 de la V23). */
.dico__ailleurs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; margin: 0.2rem 0.65rem 0.6rem; }
.dico__ailleurs-libelle { color: var(--texte-2); font-size: 0.9rem; }
.dico__badge--ailleurs { display: inline-flex; align-items: center; gap: 0.3rem; border-color: var(--info); color: var(--texte-2); }
/* (relecture n° 2, M5) « Ajouter un mot » et « Tester la reconnaissance » : des boutons avec chevron, comme
   « Filtres ▾ » du Bloc-notes (avant : un cadre en pointillés et le triangle du navigateur). Le contenu ouvert
   est dans un cadre. */
.dico__ajout { margin: 0 0 0.6rem; }
.dico__essai { margin-top: 1.1rem; }
.dico__ajout > summary.btn, .dico__essai > summary.btn { width: fit-content; max-width: 100%; padding: 0.35rem 0.7rem; font-weight: 500; list-style: none; }
.dico__ajout > summary::-webkit-details-marker, .dico__essai > summary::-webkit-details-marker { display: none; }
.dico__ajout > summary .chevron, .dico__essai > summary .chevron { font-size: 0.7rem; color: var(--texte-3); transition: transform 0.15s; }
.dico__ajout[open] > summary .chevron, .dico__essai[open] > summary .chevron { transform: rotate(180deg); }
.dico__ajout[open] > .dico__form, .dico__essai[open] > .champ-libelle { margin-top: 0.6rem; padding: 0.8rem; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond-sourd); }
@media (prefers-reduced-motion: reduce) { .dico__ajout > summary .chevron, .dico__essai > summary .chevron { transition: none; } }
/* (V23, relecture n° 1, I3) Ouverture de l'onglet : le navigateur ne met en page que les mots à
   l'écran ; les autres gardent une hauteur estimée (la vraie, une fois vus). Le contenu reste dans
   la page (recherche du navigateur, lecteurs d'écran). Les 24 premiers sont mis en page normalement. */
.dico__entree:nth-child(n+25) { content-visibility: auto; contain-intrinsic-size: auto 6.5rem; }
#dico-partie-mots { content-visibility: auto; contain-intrinsic-size: auto 60rem; }
#dico-partie-stats { content-visibility: auto; contain-intrinsic-size: auto 90rem; }

/* ---------- 3. Mots : choix de la liste, recherche, lignes compactes des mots dictés ---------- */
.dico-mots__barre { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; margin-bottom: 0.7rem; }
.dico-mots__choix .segmente__option > span { gap: 0.4rem; }
/* (relecture n° 2, M3) Sans transparence : sur le segment choisi, le nombre restait sous 4,5:1. */
.dico-mots__choix .dico__nb { color: inherit; font-weight: 400; }
.dico-mots__recherche { flex: 1 1 14rem; min-width: 0; max-width: 26rem; }
.dico-mots__entrees { min-height: 6rem; }
.dico-auto__legende { display: none; margin: 0 0 0.4rem; font-size: 0.8rem; color: var(--texte-2); }
.dico-auto__legende i { color: var(--texte-2); }
.dico-auto__frequents { border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond-carte); }
.dico-auto__frequent { display: grid; grid-template-columns: minmax(8rem, 14rem) minmax(6rem, 1fr) auto; align-items: center; gap: 0.2rem 0.8rem; padding: 0.2rem 0.6rem; }
.dico-auto__frequent + .dico-auto__frequent { border-top: 1px solid var(--bordure); }
.dico-auto__frequence { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.dico-auto__barre { flex: 1 1 auto; max-width: 14rem; height: 6px; border-radius: 3px; background: var(--dico-viz-piste); overflow: hidden; }
.dico-auto__barre-plein { display: block; height: 100%; border-radius: 3px; background: var(--dico-viz-serie); }
.dico-auto__frequence .dico__nb { flex: 0 0 auto; min-width: 3.2rem; color: var(--texte-2); }
.dico-auto__frequent .dico-auto__actions { margin: 0; justify-content: flex-end; align-items: center; flex-wrap: nowrap; }
/* « Dans « Programmation et codage » (non coché) » : son texte passe à la ligne, la ligne ne déborde pas. */
.dico-auto__frequent .dico__badge--ailleurs { min-width: 0; flex: 0 1 auto; }
.dico-auto__frequent .dico__badge--connu { display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.dico-auto__suite { margin-top: 0.6rem; }

/* ---------- 4. Statistiques : chiffres clés, jauge, graphiques en barres (SVG) ---------- */
.dico-stats { min-height: 8rem; }
.dico-tuiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 0.9rem; }
ul.dico-tuiles { list-style: none; margin: 0 0 0.9rem; padding: 0; }
.dico-tuile { display: grid; gap: 0.1rem; padding: 0.6rem 0.8rem; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond-carte); }
.dico-tuile__valeur { font-size: 1.6rem; font-weight: 600; line-height: 1.15; color: var(--texte); }
.dico-tuile__libelle { font-size: 0.86rem; color: var(--texte); }
.dico-tuile__detail { font-size: 0.78rem; color: var(--texte-3); }
.dico-stats__grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; align-items: start; }
.dico-graphe { margin: 0; min-width: 0; padding: 0.7rem 0.8rem; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--fond-carte); }
.dico-graphe__legende { display: grid; gap: 0.1rem; margin-bottom: 0.5rem; }
.dico-graphe__titre { font-weight: 700; font-size: 0.95rem; color: var(--texte); }
.dico-graphe__sous-titre { font-size: 0.8rem; color: var(--texte-3); }
.dico-graphe__cadre { position: relative; }
.dico-graphe__svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.dico-graphe__svg:focus { outline: none; }
.dico-graphe__svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.dico-graphe__zone { fill: transparent; }
.dico-graphe__barre { fill: var(--dico-viz-serie); }
.dico-graphe__axe { stroke: var(--bordure); stroke-width: 1; }
.dico-graphe__libelle { fill: var(--texte); font-size: 13px; }
.dico-graphe__valeur { fill: var(--texte-2); font: 12px var(--police-chiffres); }
.dico-graphe__ligne--active .dico-graphe__zone { fill: var(--fond-sourd); }
.dico-graphe__ligne--active .dico-graphe__barre { stroke: var(--texte); stroke-width: 1.5; }
.dico-graphe__bulle { position: absolute; right: 0; z-index: 2; display: grid; gap: 0.05rem; max-width: 16rem; padding: 0.35rem 0.6rem; border: 1px solid var(--bordure-forte); border-radius: var(--rayon); background: var(--fond-carte); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); pointer-events: none; font-size: 0.82rem; }
.dico-graphe__bulle-valeur { color: var(--texte); }
.dico-graphe__bulle-libelle { color: var(--texte-2); overflow-wrap: anywhere; }
.dico-graphe__donnees { margin-top: 0.5rem; font-size: 0.85rem; }
.dico-graphe__donnees > summary { cursor: pointer; color: var(--texte-2); }
.dico-graphe__table { width: 100%; margin-top: 0.4rem; border-collapse: collapse; }
.dico-graphe__table th, .dico-graphe__table td { padding: 0.2rem 0.4rem; border-bottom: 1px solid var(--bordure); text-align: left; font-weight: 400; }
.dico-graphe__table thead th { font-weight: 700; color: var(--texte-2); }
.dico-graphe__num { text-align: right !important; font-variant-numeric: tabular-nums; }
.dico-jauge { grid-column: 1 / -1; }
.dico-jauge__ligne { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.8rem; }
.dico-jauge__pourcent { font-size: 1.6rem; font-weight: 600; color: var(--texte); }
.dico-jauge__svg { display: block; width: 100%; height: 12px; }
.dico-jauge__piste { fill: var(--dico-viz-piste); }
.dico-jauge__plein { fill: var(--dico-viz-serie); }
.dico-jauge__texte { margin: 0.5rem 0 0; font-size: 0.86rem; color: var(--texte-2); }
.dico-stats__note { margin: 0.6rem 0 0; }
.dico-stats__note i { color: var(--texte-3); }

/* ---------- Écrans moyens et petits ---------- */
@media (max-width: 900px) {
  /* Tablette en portrait, téléphone : les deux panneaux l'un sous l'autre (comme le Bloc-notes). */
  .dico__corps { grid-template-columns: minmax(0, 1fr); }
  .dico-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dico-stats__grille { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  /* Panneaux l'un sous l'autre (règle V16 de .dico__corps) ; la liste des mots défile dans son cadre
     (70 % de l'écran : on fait défiler la page en touchant au-dessus ou au-dessous ; arrivé au bout
     du cadre, la page continue de défiler) — sans cela, ~200 mots repoussaient « Mots » très loin. */
  .dico__entrees { max-height: 70vh; min-height: 16rem; }
}
@media (max-width: 699px) {
  .dico-bloc { padding: 1rem 0.9rem 1.1rem; }
  .dico-bloc > .titre-section { font-size: 1.25rem; }
  .dico-barre, .dico-ouvert { padding: 0.8rem; }
  .dico-intro { grid-template-columns: minmax(0, 1fr); }
  .dico-sommaire { width: 100%; }
  .dico-sommaire__liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dico-sommaire__lien { width: 100%; justify-content: flex-start; }
  /* Mots d'un dictionnaire : les actions ne gardent que leur icône (nom complet en infobulle et pour
     les lecteurs d'écran : aria-label). */
  .dico__actions .dico__action > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dico__entree:nth-child(n+25) { contain-intrinsic-size: auto 10rem; }
  .dico-mots__choix { display: flex; width: 100%; }
  .dico-mots__choix .segmente__option { flex: 1 1 0; }
  .dico-mots__choix .segmente__option > span { width: 100%; justify-content: center; text-align: center; }
  .dico-mots__recherche { max-width: none; }
  /* Mots dictés : une ligne par mot ; boutons réduits à leur icône (légende au-dessus). */
  .dico-auto__legende { display: block; }
  .dico-auto__frequent { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "mot actions" "frequence actions"; padding: 0.15rem 0.2rem 0.15rem 0.6rem; }
  .dico-auto__mot { grid-area: mot; }
  .dico-auto__frequence { grid-area: frequence; }
  .dico-auto__frequent .dico-auto__actions { grid-area: actions; }
  .dico-auto__frequent .dico-auto__action > span, .dico-auto__badge-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dico-auto__frequent .btn.dico-auto__action { padding: 0; }
  .dico .btn.dico-auto__suite { width: 100%; justify-content: center; }
  .dico-tuile__valeur, .dico-jauge__pourcent { font-size: 1.35rem; }
}
/* Cibles de 44 px au doigt : même règle que le reste du site (téléphone OU écran tactile, tablette
   comprise). « #panneau-dictionnaires … » : plus fort que les règles des thèmes (themes.css, lu après),
   comme « #notes-barre » au Bloc-notes. */
@media (max-width: 699px), (pointer: coarse) {
  #panneau-dictionnaires .btn, #panneau-dictionnaires .champ, #panneau-dictionnaires .menu__item,
  .dico-retour, .dico__ft-lien, .dico-mots__choix .segmente__option > span, .dico-graphe__donnees > summary,
  #panneau-dictionnaires .note-item__bouton, #panneau-dictionnaires .dico-ligne__dictee, #panneau-dictionnaires .dico-auto__outils .case { min-height: 44px; }
  .dico__ft-lien, .dico-retour { display: inline-flex; align-items: center; }
  /* (Résumés <summary> : on garde leur flèche ; hauteur par la marge intérieure.) */
  .dico-graphe__donnees > summary { box-sizing: border-box; padding-top: 0.65rem; padding-bottom: 0.65rem; }
  .dico__ft-lien, .dico__actions .btn, .mn-recherche__effacer { min-width: 44px; }
  #panneau-dictionnaires .mn-recherche__effacer { width: 44px; height: 44px; right: 0; }
  .dico-ouvert__recherche .champ { padding-right: 2.9rem; }
  /* La 2e ligne d'un dictionnaire a la hauteur de la case « Dictée » (44 px), posée à sa droite : le nom
     (1re ligne) reste au-dessus, jamais dessous. */
  .dico-ligne__meta { min-height: 44px; }
  .dico-ligne--bientot .dico-ligne__meta { min-height: 0; }
  .dico-ligne__dictee { bottom: 0.3rem; padding: 0 0.5rem; }
  .dico-ligne__dictee input { width: 1.25rem; height: 1.25rem; }
  .dico-auto__frequent .btn.dico-auto__action { min-width: 44px; justify-content: center; }
  .dico-auto__frequent .dico__badge--connu { min-width: 44px; min-height: 28px; justify-content: center; }
}
/* ==== V24 miseenpage (fin) ==== */

/* ==== V25 fiabilite ==== */
/* Texte de l'Analyse gardé dans l'onglet (js/editeur.js, partie 14 bis) : ligne DISCRÈTE sous la zone
   quand le texte ne peut pas être gardé (trop long, stockage plein ou bloqué). Petite, couleur
   secondaire, sans cadre : une information, pas une alerte. */
.texte-garde-info {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--texte-2);
}
.texte-garde-info[hidden] { display: none; }
.texte-garde-info .fa-solid { flex: none; color: var(--texte-3); }
/* Personnaliser › Mes données : les deux boutons segmentés. Sur téléphone, ils prennent toute la
   largeur (le second libellé est long) ; au doigt, cibles de 44 px au moins. */
.texte-garde-choix { margin: 0.1rem 0 0.5rem; }
.texte-garde-choix + .perso__aide { margin-top: 0.25rem; }
@media (max-width: 520px) {
  .texte-garde-choix { display: flex; width: 100%; }
  /* Base de 40 % : la légende (100 %) reste seule sur sa ligne, les deux boutons se partagent la suivante. */
  .texte-garde-choix .segmente__option { flex: 1 1 40%; min-width: 0; }
  .texte-garde-choix .segmente__option > span { width: 100%; justify-content: center; text-align: center; padding: 0.35rem 0.5rem; }
}
@media (pointer: coarse) {
  .texte-garde-choix .segmente__option > span { min-height: 44px; }
}
/* Anonymiseur : case « Garder la table jusqu'à la fermeture de l'onglet » et son avertissement. */
.anon__garder { margin: 0.6rem 0 0.2rem; }
.anon__garder-aide { margin: 0 0 0.4rem 1.7rem; font-size: 0.8rem; color: var(--texte-2); }
/* (relecture n° 3, M-3) « :root .case » : plus précis que [data-theme="contraste"] .case (css/themes.css),
   qui ramenait la case à 32 px au doigt dans le thème Contraste. */
@media (pointer: coarse) {
  :root .case.anon__garder { min-height: 44px; align-items: center; }
}
/* « Comment ça marche ? » : section « Nouveautés de la version » (une seule, celle en cours). */
.aide-nouveautes__actions { margin-top: 0.75rem; }
/* (relecture n° 3, M-9) Au doigt : 44 px de haut, dans les 8 thèmes. */
@media (pointer: coarse) {
  :root .aide-nouveautes__actions .btn { min-height: 44px; }
}
/* (relecture n° 2, I2) Phrase lue SANS JavaScript dans une liste que le JavaScript dessine (étagère et
   tableau des œuvres, liste des dictionnaires) : le module vide le conteneur avant de le remplir. */
.contenu-statique { margin: 0.5rem 0; font-size: 0.88rem; color: var(--texte-2); }
/* ==== V25 fiabilite (fin) ==== */

/* ==== V25 admin ==== */
/* V25 (4.9.0) — 16/11/2026 : l'Administration est une page à part (administration.html) ; ses règles
   sont dans css/administration.css (déplacées d'ici). L'ancienne adresse « …/#administration » mène à
   cette page (js/chargement.js, qui pose la classe « cc-redirection » sur <html> avant tout affichage) :
   le temps de la redirection, la page principale n'est pas dessinée (aucun éclair de la page d'accueil,
   aucun onglet vide). */
html.cc-redirection body { visibility: hidden; }
/* ==== V25 admin (fin) ==== */

/* ==== V25 publication ==== */
/* Menu « Télécharger ▾ » de l'onglet Dictionnaires : la licence peut se couper n'importe où si la ligne
   est trop étroite. Sans cela, dans le thème Terminal (police à chasse fixe) à 390 px, la mention
   « Émile Snyers — compteurdecaracteres.ovh » (insécable) dépassait du menu et faisait défiler la page
   de côté (défaut présent depuis la V24, aussi pour le nucléaire ; trouvé en V25 en ouvrant le menu
   des trois dictionnaires publiés dans les 8 thèmes). */
.dico-licence, .dico-licence-courte { overflow-wrap: anywhere; }
/* Avertissement en tête d'un dictionnaire du site ouvert (ergothérapie : « ne remplacent ni un avis médical… »),
   créé par js/dictionnaires-onglet.js. Couleurs du thème choisi (texte normal sur le fond sourd, trait à
   gauche couleur « info ») : lisible dans les 8 thèmes. */
.dico-avertissement { margin: -0.25rem 0 0.75rem; padding: 0.4rem 0.6rem; border-left: 3px solid var(--info); background: var(--fond-sourd); color: var(--texte); font-size: 0.85rem; line-height: 1.45; overflow-wrap: anywhere; }
.dico-avertissement i { color: var(--info); }
.dico-avertissement[hidden] { display: none; }
/* ==== V25 publication (fin) ==== */

/* ==== V25 connaissances ==== */
/* V25 (4.9.0) — 16/11/2026 : pied de page — ligne des licences (« © 2025–2026 · Glossaires et données : licence
   libre CC BY 4.0 · Le reste du site (code, interface, saisie vocale, « Ma journée ») : tous droits réservés ·
   Licences ») et lien « Glossaires et données ».
   La ligne est à part (bloc), et commence par « © 2025–2026 » (relecture n° 3 : il restait seul sur sa ligne) ;
   elle se coupe normalement si l'écran est étroit, y compris dans le thème Windows 95 (barre des tâches en
   « flex », css/themes.css) ; les groupes de mots qui vont ensemble sont liés par des espaces insécables.
   Au doigt (écran tactile), le lien « Licences » et le lien du portail ont une zone de 44 px de haut (règle
   du site) ; à la souris, rien ne change. Pour « Licences », c'est un remplissage vertical d'élément « en
   ligne », qui NE CHANGE PAS la hauteur des lignes (relecture n° 3 : l'écart entre les lignes était inégal
   avec un lien de 44 px de haut). */
.pied__licences { display: block; margin-top: 0.2rem; overflow-wrap: anywhere; }
@media (pointer: coarse) {
  .pied__licences a { padding: 15px 0.3rem; }
  .pied__lien--portail { min-height: 44px; }
}
/* ==== V25 connaissances (fin) ==== */

/* ==== V25.1 blocnotes ==== */
/* Longs textes du Bloc-notes (js/bloc-notes.js, partie 7 bis). Au-delà de 20 000 caractères dans UNE zone (note du
   mode Simple ou section), la zone reçoit la classe « zone-longue » : hauteur fixe (70 % de l'écran, 20rem au moins)
   et défilement À L'INTÉRIEUR. Avant, elle grandissait avec son texte (25 000 px pour 62 000 caractères) : toute la
   page se redessinait et le correcteur d'orthographe relisait cette zone géante, la page se figeait. En dessous du
   seuil, rien ne change : la zone suit son texte et c'est la page qui défile. Le réglage « Taille du texte » et
   les 8 thèmes s'appliquent comme avant (seules la hauteur et le défilement changent). */
.note-texte.zone-longue,
.note-section__texte.zone-longue { height: 70vh; min-height: 20rem; max-height: none; overflow-y: auto; }
/* La ligne discrète sous la zone : « correcteur d'orthographe du navigateur suspendu ». Petite, sans fond,
   couleur de texte secondaire (contraste AA dans les 8 thèmes). */
.note-zone-longue { display: flex; align-items: baseline; gap: 0.45rem; margin: 0.35rem 0 0; font-size: 0.8rem; line-height: 1.45; color: var(--texte-2); overflow-wrap: anywhere; }
.note-zone-longue[hidden] { display: none; }
.note-zone-longue > i { flex: none; }
/* Dans une section : collée sous la zone, séparée par un trait pointillé ; cachée quand la section est repliée. */
.note-section .note-zone-longue { margin: 0; padding: 0.35rem 1rem 0.45rem; border-top: 1px dashed var(--bordure); }
.note-section--repliee .note-zone-longue { display: none; }
/* Relecture V25.1 (M3) : notification « Découper en sections » (classe posée par bloc-notes.js) : la phrase prend
   la première ligne (icône, phrase, croix), le bouton passe dessous, aligné sur la phrase (avant : bouton à côté,
   phrase écrasée sur 4 lignes à 1366 px et 6 lignes à 390 px). */
.notification.notification--action-dessous { flex-wrap: wrap; row-gap: 0.45rem; }
.notification--action-dessous > .notification__texte { flex: 1 1 calc(100% - 4.5rem); min-width: 0; }
.notification--action-dessous > .notification__action { order: 1; margin-left: calc(1.25em + 0.7rem); }
/* Relecture V25.1 (I1) : à l'IMPRESSION (Ctrl+P), une zone longue montre tout son texte — bloc-notes.js lui donne,
   juste avant, la hauteur de tout son texte (évènement « beforeprint ») et la lui retire après. La ligne
   « correcteur suspendu » ne concerne que l'écran : elle n'est pas imprimée. */
@media print {
  .note-texte.zone-longue, .note-section__texte.zone-longue { overflow: visible; min-height: 0; }
  .note-zone-longue { display: none; }
}
/* ==== V25.1 blocnotes (fin) ==== */

/* ==== V26 nucleaire ==== */
/* Onglet Dictionnaires : « Lire plus » sous un mot du nucléaire qui a une LECTURE APPROFONDIE
   (js/dictionnaires-onglet.js, partie « V26 »). Couleurs = variables des 8 thèmes (contrastes AA) ;
   le bouton fait 44 px de haut au doigt ; rien ne bouge avec « Animations : réduites ». */
.dico__plus-bouton { justify-self: start; margin: 0.35rem 0 0; min-height: 1.9rem; padding: 0.2rem 0.5rem; gap: 0.35rem; font-size: 0.8rem; }
.dico__plus { margin: 0.45rem 0 0.1rem; padding: 0.55rem 0.75rem 0.65rem; border-left: 3px solid var(--bordure-forte); background: var(--fond); font-size: 0.86rem; line-height: 1.5; color: var(--texte-2); max-width: 80ch; overflow-wrap: anywhere; }
.dico__plus-bloc + .dico__plus-bloc { margin-top: 0.55rem; }
.dico__plus-titre { margin: 0 0 0.15rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texte-2); }
.dico__plus-texte { margin: 0; color: var(--texte); }
.dico__plus-exemple { font-style: italic; }
.dico__plus-liste { margin: 0; padding-left: 1.1rem; }
.dico__plus-liste > li + li { margin-top: 0.2rem; }
.dico__plus-terme { color: var(--texte); }
.dico__plus-attente { margin: 0; font-style: italic; }
.dico__plus-attente + .btn { margin-top: 0.4rem; }
.dico__plus-source i { font-size: 0.7rem; }
.dico__plus-rep { color: var(--texte-2); }
/* « À ne pas confondre » : un bouton qui ressemble à un lien (il amène la fiche citée à l'écran). */
.dico__plus-lien { display: inline; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; }
.dico__plus-lien:hover { text-decoration-thickness: 2px; color: var(--accent-fort); }
.dico__plus-lien:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
@media (pointer: coarse) {
  :root .dico__plus-bouton { min-height: 44px; padding: 0.4rem 0.75rem; }
  /* (Relecture du code, M4) En « inline-block », la puce de la liste se calait sur la DERNIÈRE ligne du lien et
     « — repère » partait à la ligne avec un trou. Source : un BLOC de 44 px (la puce se cale sur sa 1re ligne) ;
     fiche citée : un <button> reste toujours « inline-block » (même écrit « inline ») ; sa zone de toucher est
     agrandie par la marge intérieure (≈ 45 px de haut) ET compensée par une marge négative égale : la ligne de texte
     garde sa hauteur normale (sinon « — différence » partait à la ligne avec un trou). */
  :root .dico__plus-source { display: block; min-height: 44px; padding: 0.6rem 0; }
  :root .dico__plus-lien { display: inline-block; padding-block: 0.75rem; margin-block: -0.75rem; }
  :root .dico__plus-liste > li + li { margin-top: 0; }
}
/* ==== V26 nucleaire (fin) ==== */

/* ==== V20 MOUVEMENT RÉDUIT PAR LE SITE (généré par outils/generer-css-mouvement.py : ne pas modifier) ==== */
html.mouvement-reduit { scroll-behavior: auto; }
html.mouvement-reduit .dictee-voyant__point { animation: none; }
html.mouvement-reduit *, html.mouvement-reduit *::before, html.mouvement-reduit *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
html.mouvement-reduit .visite-spot { transition: none; }
html.mouvement-reduit .explorateur__chevron, html.mouvement-reduit .var-panneau > .var-panneau__titre::before { transition: none; }
html.mouvement-reduit .saviez__objet, html.mouvement-reduit .saviez__dos { transition: none; }
html.mouvement-reduit .saviez__dos:hover { transform: none; }
html.mouvement-reduit .saviez__dos[aria-selected="true"] { transform: none; }
html.mouvement-reduit .saviez__scene { cursor: default; }
html.mouvement-reduit .car-groupe__resume::before { transition: none; }
html.mouvement-reduit .accueil, html.mouvement-reduit .accueil__pli, html.mouvement-reduit .accueil__pli-contenu, html.mouvement-reduit .accueil__chevron, html.mouvement-reduit .portfolio-tous__chevron, html.mouvement-reduit .portfolio-vedette__lien { transition: none !important; }
html.mouvement-reduit .accueil { translate: none; }
html.mouvement-reduit button.chargement-en-cours::after { animation: none; border-style: dotted; border-right-color: currentColor; }
html.mouvement-reduit .mn-creer .mn-creer__fleche i, html.mouvement-reduit .mn-etat__filtres .chevron { transition: none; }
html.mouvement-reduit .dico-telecharger__bouton .chevron { transition: none; }
html.mouvement-reduit .dico__ajout > summary .chevron, html.mouvement-reduit .dico__essai > summary .chevron { transition: none; }
/* ==== V20 MOUVEMENT RÉDUIT PAR LE SITE (fin) ==== */
