/* Jean-Pierre : style repris de la maquette pi-juris (palette, Georgia et Segoe UI, barre latérale sombre). */
:root {
  --encre: #20383b; --doux: #6b7979; --papier: #f6f5f0; --blanc: #fff; --trait: #e2e5df;
  --accent: #8b4d37; --tendre: #f0e5dc; --vert: #456957; --nuit: #172b30;
  --surligne: #f1e5cd; --courant: #e9c98f;
  --surligne-1: #cfe2f0; --surligne-2: #d5e8cf; --surligne-3: #efd3df;
  --serif: Georgia, "Times New Roman", serif;   /* titres et marque */
  --texte: "Segoe UI", system-ui, -apple-system, sans-serif;   /* textes à lire : chiffres alignés, plus lisible que Georgia */
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--encre); background: var(--papier); font-size: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--papier); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; }
svg { width: 19px; height: 19px; flex-shrink: 0; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
code { background: #edf1eb; padding: 0 4px; border-radius: 3px; font-size: 12px; }

/* Texte courant justifié partout (AGENTS.md, Conventions, 01/11/2026). Priorité nulle (:where) : toute classe qui
   fixe son alignement (centré, à droite, à gauche) garde le sien. La dernière ligne d'un paragraphe reste à gauche :
   une ligne courte (date, fil d'Ariane, libellé) ne change pas. Champs, boutons, titres et tableaux ne sont pas visés. */
:where(p, li, dd, blockquote, figcaption, .tx-texte, .tx-nota) { text-align: justify; hyphens: auto; }
/* Conteneurs centrés ou alignés à droite, cellules de tableau et menu latéral : leurs paragraphes suivent le conteneur. */
:where(.barre-laterale, .vide, .ap-centre, .aide, .demineur-dialogue, .recherche-meta, td, th, [style*="text-align"]) :where(p, li, dd) { text-align: inherit; hyphens: manual; }

.lien-evitement { position: fixed; top: -60px; left: 20px; z-index: 100; background: var(--blanc); padding: 12px; }
.lien-evitement:focus { top: 10px; }

/* ---------- Coque : barre latérale (repliée en icônes par défaut) + zone de travail ---------- */
.coque { display: grid; grid-template-columns: 64px minmax(0, 1fr); min-height: 100vh; }
.coque.deplie { grid-template-columns: 210px minmax(0, 1fr); }
.barre-laterale { background: var(--nuit); color: #dbe3df; position: sticky; top: 0; height: 100vh;
  padding: 16px 10px 14px; display: flex; flex-direction: column; z-index: 5; overflow: hidden; }
.marque { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; text-decoration: none; color: #eff0e8; flex-shrink: 0; }
.marque-logo { width: 38px; height: 38px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.marque-texte { display: flex; flex-direction: column; }
.marque-nom { font: 21px var(--serif); letter-spacing: -.6px; white-space: nowrap; }
.marque-sous-titre { font-size: 10px; font-style: italic; margin-top: 3px; color: #d0aa93; white-space: nowrap; }
/* Le menu défile quand la fenêtre est trop basse : le bas de la barre (compte, déconnexion, repli) reste visible. */
.nav { display: flex; flex-direction: column; gap: 0; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: #3c5052 transparent; }
.nav-item { display: flex; gap: 10px; align-items: center; padding: 5px 12px; border-radius: 6px; font-size: 13px;
  color: #c0ceca; text-decoration: none; white-space: nowrap; background: transparent; width: 100%; text-align: left; }
a.nav-item:hover, button.nav-item:hover { background: #273c40; }
.nav-item.actif { background: #2b4144; color: var(--blanc); }
.nav-item.actif svg { color: #d0aa93; }
/* Groupes du menu : titre discret menu déplié, simple trait entre groupes menu replié. */
.nav-groupe { display: flex; flex-direction: column; gap: 0; }
.nav-groupe + .nav-groupe { margin-top: 8px; }
.nav-titre { margin: 0; padding: 0 12px 1px; line-height: 1.3; font-size: 10px; letter-spacing: .8px; text-transform: uppercase;
  color: #7f9592; white-space: nowrap; }
.coque:not(.deplie) .nav-titre { display: none; }
.coque:not(.deplie) .nav-groupe + .nav-groupe { margin-top: 5px; padding-top: 5px; border-top: 1px solid #33484b; }
.nav-item.a-venir { color: #61777a; cursor: default; position: relative; }
/* Macaron « bientôt » : étiquette quand le menu est déplié, petit point sur l'icône quand il est replié. */
.coque.deplie .nav-item.a-venir::after { content: "bientôt"; margin-left: auto; font-size: 9px; letter-spacing: .5px;
  color: #a98c78; border: 1px solid #4a5c5d; border-radius: 10px; padding: 1px 7px; }
.coque:not(.deplie) .nav-item.a-venir::after { content: ""; position: absolute; top: 8px; right: 12px; width: 6px; height: 6px;
  border-radius: 50%; background: #d0aa93; }
.barre-laterale-bas { flex-shrink: 0; padding-top: 8px; }
/* Point « nouveau » sur le lien Nouveautés tant que la dernière n'a pas été vue sur ce poste. */
.nav-item.non-vue::after { content: ""; position: absolute; top: 8px; right: 12px; width: 6px; height: 6px;
  border-radius: 50%; background: #d0aa93; }
.coque.deplie .nav-item.non-vue::after { position: static; margin-left: auto; }
.encart { margin: 0 0 8px; padding: 0 12px; font-size: 10px; line-height: 1.5; color: #8fa3a0; white-space: normal; }
/* Repliée : icônes seules (le titre de chaque lien sert d'info-bulle). */
.coque:not(.deplie) .marque-texte, .coque:not(.deplie) .nav-item span, .coque:not(.deplie) .encart { display: none; }
.coque:not(.deplie) .nav-item { justify-content: center; padding: 6px 0; }
.coque:not(.deplie) .marque { justify-content: center; }

.zone-principale { padding: 20px 26px 40px; max-width: 1650px; width: 100%; margin: 0 auto; min-width: 0; }

/* ---------- En-tête de page (pages secondaires) ---------- */
.surtitre { font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.titre-page { font: 400 26px/1.3 var(--serif); letter-spacing: -.4px; margin-bottom: 6px; }
.chapeau { font-size: 12px; color: var(--doux); margin-bottom: 22px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 17px;
  border: 1px solid var(--trait); border-radius: 5px; background: var(--blanc); font-size: 12px; font-weight: 500;
  line-height: 1.3; text-decoration: none; color: var(--encre); white-space: nowrap; }
.btn:hover { background: #f5f6f1; }
.btn svg { width: 16px; height: 16px; }
.btn.principal { background: var(--encre); color: var(--blanc); border-color: var(--encre); }
.btn.principal:hover { background: #2b4b4e; }
.btn.accent { background: var(--accent); color: var(--blanc); border-color: var(--accent); }
.btn.petit { padding: 8px 11px; font-size: 11px; }
.btn.fantome { background: transparent; border-color: transparent; }
.bouton-texte { color: var(--accent); font-size: 10px; text-decoration: underline; }
.lien-texte { color: var(--accent); font-size: 11px; }

/* ---------- Recherche ---------- */
.boite-recherche { background: var(--blanc); border: 1px solid #d7dfd7; box-shadow: 0 4px 15px #20383b05; border-radius: 8px;
  padding: 10px 16px 0; margin-bottom: 18px; }
.ligne-recherche { display: flex; align-items: center; gap: 16px; }
.ligne-recherche > svg { color: #768985; width: 22px; height: 22px; }
.champ-recherche { border: 0; background: transparent; flex: 1; min-width: 0; font-size: 15px; padding: 10px 0; }
.champ-recherche::placeholder { color: #8c9690; }
.champ-recherche:focus { outline: none; }
.boite-recherche:focus-within { border-color: #b9c7bb; }
.bas-recherche { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 8px;
  padding: 6px 0 8px; border-top: 1px solid var(--trait); font-size: 10px; color: var(--doux); }
.modes { display: flex; gap: 6px; flex-wrap: wrap; }
.mode { padding: 7px 10px; border-radius: 4px; font-size: 11px; color: var(--doux); cursor: pointer; }
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode:hover { background: #f3f5ef; }
.mode:has(input:checked) { background: #edf1eb; color: var(--encre); }
.mode:has(input:focus-visible) { outline: 2px solid var(--accent); }
.separateur-modes { width: 1px; align-self: stretch; margin: 4px 4px; background: var(--trait); }
/* Nuage de mots du thésaurus, sous la barre de recherche */
.nuage { margin: 10px 0 0; padding: 10px 14px; border: 1px solid #e3e8df; border-radius: 5px; background: #fafbf8; font-size: 11px; color: var(--doux); }
.nuage-notion { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 6px; line-height: 1.4; }
.nuage-notion + .nuage-notion { margin-top: 7px; }
.nuage-reconnu { color: var(--encre); margin-right: 2px; }
.nuage-mot { padding: 2px 8px; border-radius: 10px; background: #edf1eb; color: var(--encre); text-decoration: none; border: 1px solid #dfe6dc; }
.nuage-mot:hover { background: #e2e9de; }
.nuage-retire { background: transparent; color: var(--doux); text-decoration: line-through; border-style: dashed; }
.nuage-retire:hover { background: #f3f5ef; }
/* Liens « Syntaxe · Thésaurus » à droite du champ, bouton « Rechercher » en bas à droite (01/11/2026) */
.liens-aide { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: 12px; color: var(--doux); }
.bouton-lien { background: none; padding: 0; border: 0; color: var(--accent); font-size: inherit; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; }
.bouton-lien:hover { color: var(--encre); }
.actions-recherche { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* Aide-mémoire des réglages : ce qui élargit ou restreint les résultats */
.memo-reglages { padding: 4px 0 10px; font-size: 11.5px; color: #4e605d; }
.memo-reglages summary { cursor: pointer; width: max-content; font-size: 11px; color: var(--doux); }
.memo-reglages[open] summary { margin-bottom: 6px; }
.memo-reglages ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 22px; }
.memo-reglages li { line-height: 1.55; text-align: left; hyphens: manual; }
.memo-reglages strong { font-weight: 600; color: var(--encre); }
.effet { display: inline-block; min-width: 58px; margin-right: 4px; padding: 0 6px; border-radius: 999px; font-size: 10px;
  font-weight: 600; text-align: center; }
.effet.elargit { background: #e4ece6; color: var(--vert); }
.effet.restreint { background: #f6e9dc; color: #8b5a37; }
@media (max-width: 900px) { .memo-reglages ul { grid-template-columns: 1fr; } }
/* Fenêtres « Syntaxe » et « Thésaurus » */
.fenetre-aide { width: min(94vw, 760px); max-height: 88vh; padding: 18px 22px 16px; border: 0; border-radius: 8px;
  background: var(--blanc); color: var(--encre); box-shadow: 0 12px 40px rgba(0,0,0,.25); font-size: 13px; line-height: 1.55; }
.fenetre-aide::backdrop { background: rgba(23, 43, 48, .45); }
.fenetre-aide h2 { margin: 0 0 12px; font: 400 21px var(--serif); }
.fenetre-aide h2:focus { outline: none; }
.fenetre-aide > p { margin: 0 0 10px; }
.fenetre-aide .retour-boutons { align-items: center; justify-content: space-between; }
.fenetre-aide .retour-boutons .btn:only-child { margin-left: auto; }
.table-syntaxe { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table-syntaxe th, .table-syntaxe td { padding: 6px 8px; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; }
.table-syntaxe thead th { font-size: 11px; color: var(--doux); font-weight: 600; }
.table-syntaxe td:first-child { width: 36%; }
.table-syntaxe .rubrique th { padding-top: 12px; border-bottom: 0; font: 600 11px var(--texte); letter-spacing: .05em;
  text-transform: uppercase; color: var(--accent); }
.th-filtre { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; font-size: 11px; color: var(--doux); }
.th-filtre .champ-filtre { max-width: 300px; }
/* Thésaurus : la fenêtre ne défile pas, seule la liste défile (le filtre reste visible) */
#fenetre-thesaurus[open] { display: flex; flex-direction: column; }
#fenetre-thesaurus > :not(.th-contenu) { flex-shrink: 0; }
.th-contenu { flex: 1 1 auto; min-height: 120px; overflow-y: auto; padding-right: 6px; }
.th-compte { margin: 0 0 6px; font-size: 11px; color: var(--doux); }
.th-groupe h3 { margin: 12px 0 4px; font: 600 11px var(--texte); letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.th-groupe dl { margin: 0; }
.th-notion { padding: 5px 0; border-bottom: 1px solid var(--trait); }
.th-notion dt { font-weight: 600; font-size: 12.5px; }
.th-notion dd { margin: 2px 0 0; font-size: 11.5px; color: #4e605d; text-align: left; }
.th-langue { display: block; }
.th-langue abbr { display: inline-block; min-width: 22px; font-size: 9.5px; font-weight: 600; color: var(--doux); text-decoration: none; }
.th-groupe[hidden], .th-notion[hidden] { display: none; }
/* Ouvrir les décisions : nouvel onglet ou volet de droite */
.ouverture { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.ouverture .libelle-modes { margin-right: 4px; font-size: 11px; font-weight: 500; color: var(--doux); }
.ouverture .mode-libelle { font-size: 11.5px; color: var(--doux); cursor: pointer; user-select: none; transition: color .2s; }
.ouverture .mode-libelle.actif { color: var(--encre); font-weight: 600; }
/* Interrupteur façon iPhone : gris éteint (nouvel onglet), vert allumé (volet à droite) */
.interrupteur { position: relative; flex-shrink: 0; width: 38px; height: 22px; padding: 0; border: 0; border-radius: 11px;
  background: #d5d9d2; cursor: pointer; transition: background .2s ease; }
.interrupteur[aria-checked="true"] { background: var(--vert); }
.interrupteur:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pastille-interrupteur { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s ease; }
.interrupteur[aria-checked="true"] .pastille-interrupteur { transform: translateX(16px); }
@media (prefers-reduced-motion: reduce) { .interrupteur, .pastille-interrupteur, .ouverture .mode-libelle { transition: none; } }
.carte.carte-active { border-color: var(--accent); box-shadow: 0 0 0 2px #8b4d3722; }
@media (min-width: 1100px) { body.volet-ouvert .zone-principale { padding-right: calc(min(560px, 46vw) + 20px); } }
/* Cases « Ajouter à la sélection » et barre d'ajout par lot */
.barre-selection { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 12px; padding: 8px 12px;
  border: 1px solid var(--trait); border-radius: 6px; background: #fafbf8; font-size: 11px; color: var(--doux); }
.tout-cocher-libelle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.barre-selection .btn[disabled] { opacity: .5; cursor: default; }
.message-selection { color: var(--encre); }
.choix-selection { display: inline-flex; align-items: center; padding-top: 6px; flex-shrink: 0; cursor: pointer; }
.choix-selection input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.choix-selection input[disabled] { cursor: default; }
.choix-selection.dans-selection input { opacity: .65; }
.carte-titre-ligne h3 { flex: 1; min-width: 0; }


.disposition { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; }
.filtres { padding-right: 18px; border-right: 1px solid var(--trait); }
.filtres-tete { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 16px; font-size: 12px; font-weight: 600; }
.groupe-filtre { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
/* Arbre des juridictions : niveau (case + nom qui déplie les villes) puis villes */
.noeud { margin: 2px 0; }
.noeud-ligne { display: flex; align-items: center; gap: 6px; font-size: 11px; min-height: 26px; }
.noeud-ligne input, .sous-liste input { accent-color: var(--accent); margin: 0; flex-shrink: 0; }
.deplier { display: inline-flex; align-items: center; gap: 2px; background: transparent; padding: 3px 0; font-size: 11px;
  font-weight: 600; color: var(--encre); text-align: left; min-width: 0; }
.deplier:hover { color: var(--accent); }
.chevron svg { width: 13px; height: 13px; transition: transform .15s; }
.deplier[aria-expanded="true"] .chevron svg { transform: rotate(90deg); }
.noeud-libelle { font-weight: 600; cursor: pointer; padding: 3px 0 3px 15px; }
.sous-liste { list-style: none; margin: 0 0 6px; padding: 0 0 0 22px; border-left: 1px solid var(--trait); margin-left: 6px; }
.sous-liste .ligne-choix { margin: 5px 0; }
.chambres-pi, .cd-strict { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--trait); }
.dates { display: grid; gap: 6px; }
.dates .libelle-date { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 6px; margin: 0; }
.titre-filtre { display: block; padding: 0; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; font-weight: 600; }
.ligne-choix { display: flex; gap: 8px; align-items: center; margin: 10px 0; font-size: 11px; cursor: pointer; line-height: 1.5; }
.ligne-choix input { accent-color: var(--accent); margin: 0; flex-shrink: 0; }
.compte-filtre { margin-left: auto; font-size: 10px; color: #8b958d; font-variant-numeric: tabular-nums; }
.filtre-vide { font-size: 11px; color: var(--doux); }
.cd-strict { display: flex; align-items: center; gap: 6px; }
.cd-strict .ligne-choix { flex: 1; }
.aide-cd { flex: none; width: 20px; height: 20px; padding: 0; border: 1px solid var(--trait); border-radius: 50%;
  background: var(--blanc); color: var(--doux); font: 600 11px/1 inherit; cursor: pointer; }
.aide-cd:hover, .aide-cd:focus-visible { color: var(--accent); border-color: var(--accent); }
.definition-cd-dialogue { width: min(92vw, 560px); max-height: 88vh; padding: 18px 22px 16px; border: 0; border-radius: 8px;
  background: var(--blanc); color: var(--encre); box-shadow: 0 12px 40px rgba(0,0,0,.25); font-size: 13px; line-height: 1.5; }
.definition-cd-dialogue::backdrop { background: rgba(23, 43, 48, .45); }
.definition-cd-dialogue h2 { margin: 0 0 10px; font: 400 20px var(--serif); }
.definition-cd dt { margin-top: 8px; font-weight: 600; }
.definition-cd dd { margin: 2px 0 0 14px; }
.definition-cd-exclus { margin: 4px 0 8px; padding-left: 20px; }
.definition-cd-note { color: var(--doux); font-size: 12px; }
.portee-filtre { margin-left: 6px; padding: 2px 6px; border-radius: 3px; background: #fbf1e8; color: #94724c;
  letter-spacing: 0; text-transform: none; font-weight: 600; }
.texte-justifie { text-align: justify; hyphens: auto; }
.liste-inaccessible { margin: 8px 0 0; padding-left: 18px; line-height: 1.7; }
.champ-filtre { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #dce1d9; border-radius: 4px; background: #fafbf7; font-size: 11px; }
.libelle-date { display: block; font-size: 10px; color: var(--doux); margin: 10px 0 5px; }
.js .sans-js { display: none; }

.resultats-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; min-height: 30px; }
.resultats-tete h2 { font-size: 13px; font-weight: 500; }
.fil-recherche { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; font-size: 12px; }
.fil-libelle { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--doux); margin-right: 2px; }
.fil-sep { color: var(--doux); }
.fil-etape { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 12px; background: var(--surligne);
  max-width: 100%; }
.fil-texte { color: var(--encre); text-decoration: none; overflow-wrap: anywhere; }
a.fil-texte:hover { text-decoration: underline; }
.fil-retirer { color: var(--doux); text-decoration: none; font-size: 14px; line-height: 1; padding: 0 2px; }
.fil-retirer:hover { color: var(--accent); }
.fil-initiale { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: 11px; }
.fil-initiale svg { width: 14px; height: 14px; }
.liseuse-tete .fil-recherche { margin: 12px 0 0; }
.affiner { display: flex; align-items: center; gap: 8px; margin: -6px 0 16px; }
.affiner label { font-size: 11px; color: var(--doux); white-space: nowrap; }
.affiner .champ-filtre { flex: 1; max-width: 340px; padding: 7px 10px; }
@media (max-width: 600px) { .affiner { flex-wrap: wrap; } .affiner label { width: 100%; } }
.resultats-tete strong { font-weight: 650; }
.precision { color: var(--doux); font-weight: 400; }
.tri { display: flex; gap: 7px; align-items: center; font-size: 10px; color: var(--doux); white-space: nowrap; }
.tri select { border: 0; background: transparent; font-size: 11px; color: var(--encre); cursor: pointer; }
.note { padding: 12px 16px; border: 1px solid #dfe7de; background: #edf2ed; color: #506b56; border-radius: 5px; font-size: 11px;
  line-height: 1.8; margin-bottom: 16px; display: flex; gap: 10px; }
.note.alerte { background: #f8f2e8; color: #7b6549; border-color: #e7dfd2; }
.note svg { width: 16px; height: 18px; margin-top: 1px; }
.note a { color: inherit; }
.vide { padding: 50px 30px; text-align: center; background: #fbfcf8; border: 1px dashed #d5dfd4; border-radius: 6px; line-height: 1.8; color: var(--doux); }
.vide svg { width: 30px; height: 30px; color: #8a9d8c; }
.vide h3 { font: 400 24px var(--serif); color: var(--encre); margin: 14px 0 8px; }
.vide p { max-width: 480px; margin: 0 auto; font-size: 12px; }

.liste-resultats { display: flex; flex-direction: column; gap: 13px; }
.carte { border: 1px solid var(--trait); border-radius: 6px; background: var(--blanc); padding: 21px 23px; transition: box-shadow .15s, border-color .15s; }
.carte:hover { border-color: #bccac0; box-shadow: 0 3px 15px #173a2b08; }
.carte-haut { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.icone-juridiction { height: 31px; width: 31px; border: 1px solid #e3e8e1; background: #f7f9f4; border-radius: 5px; display: grid;
  place-items: center; color: #5a7164; flex-shrink: 0; }
.icone-juridiction svg { width: 17px; height: 17px; }
.carte-juridiction { font-size: 10px; font-weight: 600; color: #526a5e; line-height: 1.6; margin-bottom: 2px; }
.carte-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 10px; color: var(--doux); line-height: 1.8; }
.carte h3 { margin: 0 0 10px; font-weight: 400; }
.carte-titre { font: 21px/1.35 var(--serif); letter-spacing: -.25px; text-decoration: none; color: var(--encre); }
.carte-titre:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.carte-parties { font-size: 11px; color: #5d6d66; margin-bottom: 8px; line-height: 1.7; }
.carte-extrait { font-size: 12px; line-height: 1.9; color: #66756c; margin-bottom: 14px; overflow-wrap: anywhere; }
.carte-passage { margin-bottom: 14px; }
.carte-affaire { font-size: 11px; color: #5d6d66; margin-bottom: 14px; line-height: 1.7; }
.citation { border-left: 2px solid #c8b28d; background: #faf9f3; padding: 12px 16px; margin: 0 0 14px; font: 14px/1.7 var(--texte);
  color: #3e524f; overflow-wrap: anywhere; }
.citation-source { display: block; font: 600 10px/1.7 "Segoe UI", sans-serif; color: var(--accent); margin-bottom: 4px; }
.citation .lien-texte { display: inline-block; margin-top: 6px; font-family: "Segoe UI", sans-serif; }
.carte-pied { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.etiquettes { display: flex; gap: 6px; flex-wrap: wrap; }
.etiquette { display: inline-block; padding: 4px 8px; border: 1px solid #e6e9e1; border-radius: 3px; background: #f8f9f4; font-size: 9px; color: #5e7264; }
.etiquette.chaude { background: #f7f0e9; border-color: #efe3d7; color: #8b6850; }
.etiquette.categorie-cd { background: #eef1f8; border-color: #d8deec; color: #4d5b7c; }
/* Statut de la décision (suite de l'affaire) */
.statut { display: inline-block; padding: 4px 8px; border: 1px solid; border-radius: 3px; font-size: 9px;
  font-weight: 600; letter-spacing: .3px; text-decoration: none; }
a.statut:hover { text-decoration: underline; }
.statut-maintenue { background: #eaf1ec; border-color: #cfdfd4; color: var(--vert); }
.statut-remise { background: #f6e9e3; border-color: #ead3c8; color: var(--accent); }
.statut-partielle { background: #f8f0dd; border-color: #ecdcb6; color: #86662a; }
.statut-neutre { background: #f1f3f2; border-color: #dfe3e1; color: var(--doux); }
.carte-liens { display: flex; gap: 14px; flex-shrink: 0; }
.lien-lire { display: inline-flex; gap: 6px; align-items: center; font-size: 10px; color: #49604f; white-space: nowrap; text-decoration: none; }
.lien-lire:hover { text-decoration: underline; }
.lien-lire svg { width: 13px; height: 13px; }
mark { background: var(--surligne); color: inherit; border-radius: 2px; padding: 0 1px; }
/* Une couleur par étape : recherche initiale (s0), puis chaque recherche dans les résultats */
mark.s1, .fil-etape.s1 { background: var(--surligne-1); }
mark.s2, .fil-etape.s2 { background: var(--surligne-2); }
mark.s3, .fil-etape.s3 { background: var(--surligne-3); }
mark.courant { background: var(--courant); outline: 2px solid var(--courant); }
.pagination { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 11px; color: var(--doux); }
.mention { font-size: 10px; color: #889389; line-height: 1.8; margin-top: 30px; }

/* ---------- Fiche de décision (liseuse) ---------- */
.liseuse { max-width: 980px; margin: 0 auto; border: 1px solid var(--trait); border-radius: 9px; overflow: hidden; background: var(--blanc); }
.liseuse-tete { background: #fafbf6; border-bottom: 1px solid var(--trait); padding: 22px 30px; }
.liseuse-barre { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.liseuse-barre .surtitre { margin: 0; }
.liseuse h1 { font: 400 30px/1.3 var(--serif); margin-bottom: 10px; letter-spacing: -.5px; }
.liseuse-meta { font-size: 11px; line-height: 1.9; color: var(--doux); display: flex; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 12px; }
.liseuse-boutons { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.case-surlignage { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--doux); cursor: pointer; }
/* Impression et PDF : les boutons et la case qui les concerne forment un seul bloc */
.groupe-export { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 4px 8px 4px 10px;
  border: 1px solid var(--trait); border-radius: 8px; background: var(--blanc); }
.groupe-export-titre { font: 600 10px "Segoe UI", system-ui, sans-serif; letter-spacing: .4px; text-transform: uppercase; color: var(--doux); }
.groupe-export .case-ligne, .groupe-export .case-surlignage { white-space: normal; }
.liseuse-corps { padding: 26px 38px; }
.notice { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 18px; margin: 0 0 26px; padding: 18px 20px;
  background: #f8f9f4; border: 1px solid #e8ece4; border-radius: 6px; font-size: 12px; line-height: 1.7; }
.notice dt { color: var(--doux); font-size: 11px; }
.notice dd { margin: 0; overflow-wrap: anywhere; }
.notice a { color: var(--accent); }
.multiligne { white-space: pre-line; }
.titre-section { font: 400 22px var(--serif); margin-bottom: 14px; }
.parcours { margin-bottom: 28px; }
.etapes { list-style: none; margin: 0; padding: 0 0 0 4px; }
.etape { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; position: relative; padding: 0 0 16px 18px;
  font-size: 12px; line-height: 1.7; }
.etape::before { content: ""; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--blanc); border: 2px solid var(--vert); }
.etape:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 18px; bottom: 0; border-left: 1px solid #cdd8cf; }
.etape.courante::before { background: var(--accent); border-color: var(--accent); }
.etape.absente::before { border-color: #b8c1ba; }
.etape.absente .etape-corps { color: #8b958d; }
.etape-date { color: var(--doux); font-size: 11px; white-space: nowrap; }
.etape-corps a { color: var(--accent); }
.etape-numero { margin-left: 8px; color: var(--doux); font-size: 11px; }
.etape-solution { display: block; color: var(--doux); font-size: 11px; }
.etape .etiquette { margin-left: 6px; }
/* Frise de l'affaire : une colonne par étape, trois rails (cassation en haut, première instance en bas) */
.frise { margin-bottom: 30px; }
.frise-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 4px; }
.frise-legende { font-size: 11px; color: var(--doux); }
.frise-defilement { overflow-x: auto; padding: 4px 0 10px; }
.frise-grille { list-style: none; margin: 0; padding: 0; display: grid; padding-top: 6px; column-gap: 10px; }
.frise-rail { grid-column: 1 / -1; position: relative; display: flex; align-items: flex-start; padding-top: 4px;
  border-top: 1px dashed #dfe5dd; font-size: 10px; letter-spacing: .3px; text-transform: uppercase; color: #8b958d; }
.frise-rail span { width: 104px; line-height: 1.35; }
.frise-etape { position: relative; padding: 18px 0 12px; font-size: 11.5px; line-height: 1.5; min-width: 0; }
.frise-date { position: absolute; top: 2px; left: 0; font-size: 10.5px; color: var(--doux); white-space: nowrap; }
.frise-point { position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--blanc); border: 2px solid var(--vert); }
.frise-etape.courante .frise-point { background: var(--accent); border-color: var(--accent); }
.frise-etape.absente .frise-point { border-color: #b8c1ba; }
.frise-carte { display: block; padding: 7px 9px; border: 1px solid #e3e8e0; border-radius: 6px; background: #fbfcf8; }
.frise-etape.courante .frise-carte { border-color: var(--accent); background: var(--tendre); }
.frise-etape.absente .frise-carte { border-style: dashed; background: transparent; color: #8b958d; }
.frise-juridiction { display: block; font-weight: 600; color: var(--encre); }
a.frise-juridiction { color: var(--accent); }
.absente .frise-juridiction { color: #8b958d; font-weight: 500; }
.frise-chambre, .frise-numero, .frise-solution { display: block; color: var(--doux); font-size: 10.5px; overflow-wrap: anywhere; }
.frise-marques { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 3px; }
.frise-marques:empty { display: none; }
.frise-officiel { display: inline-flex; color: var(--doux); }
.frise-officiel svg { width: 14px; height: 14px; }
.frise-aussi { display: block; font-size: 10.5px; color: var(--accent); }
.frise-liste { display: none; }
@media (max-width: 760px) {
  .frise-defilement { display: none; }
  .frise-liste { display: block; }
  .frise-liste .frise-carte { padding: 0; border: 0; background: none; }
}
.corps { white-space: pre-wrap; font: 15px/1.8 var(--texte); overflow-wrap: anywhere; color: #263f42; text-align: justify; hyphens: auto; }
.corps .saut { display: block; height: .7em; }   /* entre deux paragraphes (moteur.SAUT_PARAGRAPHE) */
.corps .passage { display: block; background: #faf3df; outline: 6px solid #faf3df; border-radius: 3px; scroll-margin-top: 120px; }
.vide-texte { color: var(--doux); font-size: 12px; }
.paragraphe-direct { font: 15px/1.75 var(--texte); color: #263f42; text-align: justify; hyphens: auto; margin: 0 0 12px; overflow-wrap: anywhere; }
.paragraphe-direct.passage { background: #faf3df; outline: 6px solid #faf3df; border-radius: 3px; scroll-margin-top: 120px; }
.provenance { padding: 20px 30px; background: #f5f6f0; line-height: 1.8; font-size: 10px; color: #788371; border-top: 1px solid var(--trait); }
.provenance strong { color: #536952; font-weight: 600; }

/* ---------- Sources ---------- */
.grille-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.carte-source { background: var(--blanc); border: 1px solid var(--trait); border-radius: 7px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.carte-source.attente { background: #fbfbf8; }
.carte-source-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.carte-source-tete h2 { font: 400 21px/1.3 var(--serif); }
.statut { display: inline-flex; align-items: center; font-size: 9px; border: 1px solid #e0e6dc; border-radius: 20px; padding: 5px 9px;
  color: #7d8b7e; white-space: nowrap; }
.statut.bon { background: #eef4eb; color: #597256; }
.statut.avertissement { background: #fbf1e8; color: #94724c; border-color: #efe3d7; }
.statut.alerte { background: #f9e9e6; color: #a13d2f; border-color: #efd6d0; }
.carte-source-texte { font-size: 12px; color: #64766a; line-height: 1.8; }
.chiffres { display: flex; gap: 28px; padding: 14px 0; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.chiffres strong { font: 24px var(--serif); display: block; }
.chiffres span { font-size: 9px; color: var(--doux); display: block; margin-top: 5px; }
.detail-source { font-size: 10px; line-height: 1.8; color: #7e8a7f; }
.texte-erreur { color: #a13d2f; }
/* Page Sources : une ligne par source dans un même panneau ; les chiffres passent sous le texte quand la place manque. */
.liste-sources { background: var(--blanc); border: 1px solid var(--trait); border-radius: 7px; }
.ligne-source { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 14px 20px; }
.ligne-source + .ligne-source { border-top: 1px solid var(--trait); }
.ligne-source.attente { background: #fbfbf8; }
.ligne-source.attente:first-child { border-radius: 7px 7px 0 0; }
.ligne-source.attente:last-child { border-radius: 0 0 7px 7px; }
.ls-texte { flex: 1 1 340px; min-width: 0; }
.ls-tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ls-tete h2 { font: 400 18px/1.3 var(--serif); }
.ls-tete .statut { padding: 3px 8px; }
.ls-precision { font-size: 12px; color: #4f6155; margin-top: 2px; }
.ls-mention { font-size: 10.5px; line-height: 1.55; color: #7e8a7f; margin-top: 5px; overflow-wrap: anywhere; }
.ls-chiffres { flex: 0 0 200px; font-size: 10px; color: var(--doux); }
.ls-chiffres p { margin: 0; }
.ls-chiffres strong { font: 19px/1.25 var(--serif); color: var(--encre); margin-right: 3px; }
.ls-chiffres .ls-dates { margin-top: 5px; line-height: 1.6; color: #7e8a7f; }
/* Performance (Administration) : écart avec la mesure précédente */
.ecart-hausse { color: var(--vert); font-weight: 600; }
.ecart-baisse { color: #a13d2f; font-weight: 600; }
.espace-haut { margin-top: 30px; }
.panneau { background: var(--blanc); border: 1px solid var(--trait); border-radius: 7px; padding: 24px; }
.panneau h2 { font: 400 22px var(--serif); margin-bottom: 12px; }
.panneau p { font-size: 12px; line-height: 1.9; color: var(--doux); }

/* ---------- Compte (barre latérale) ---------- */
/* Une seule ligne : identité, puis bouton de déconnexion à droite (seul visible menu replié). */
.compte { display: flex; align-items: center; justify-content: flex-end; gap: 2px; padding: 6px 0 2px 12px;
  color: #dbe3df; min-width: 0; border-top: 1px solid #33484b; }
.compte-identite { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.compte-bouton { display: flex; padding: 8px; border-radius: 6px; color: #c0ceca; background: transparent; flex-shrink: 0; }
.compte-bouton:hover { background: #273c40; color: var(--blanc); }
.compte-texte { display: flex; flex-direction: column; min-width: 0; }
.compte-nom { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compte-courriel { font-size: 10px; color: #8fa3a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coque:not(.deplie) .compte { flex-direction: column; align-items: center; padding: 6px 0 2px; }
.coque:not(.deplie) .compte-identite { display: none; }

/* ---------- Connexion ---------- */
.page-connexion { min-height: 100vh; }
.connexion { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 100vh; }
.connexion-presentation { background: var(--nuit); color: #dbe3df; padding: 36px 48px; display: flex; flex-direction: column; }
.connexion-presentation .marque { margin: 0; }
.connexion-texte { margin: auto 0; max-width: 520px; }
.connexion-texte .surtitre { color: #d0aa93; }
.connexion-texte h1 { font: 400 34px/1.3 var(--serif); letter-spacing: -.5px; color: #eff0e8; margin-bottom: 16px; }
.connexion-texte p:last-child { font-size: 13px; line-height: 1.8; color: #b3c3be; }
.connexion-pied { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #8fa3a0; }
.connexion-pied svg { width: 15px; height: 15px; }
.connexion-formulaire { padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; max-width: 520px; width: 100%; margin: 0 auto; }
.connexion-formulaire h2 { font: 400 28px var(--serif); }
.connexion-formulaire .note { margin: 0; }
.connexion-explication { font-size: 13px; line-height: 1.8; color: #4e605d; }
.connexion-detail { font-size: 11px; line-height: 1.8; color: var(--doux); }
.btn.large { width: 100%; padding: 14px 18px; font-size: 13px; }

/* ---------- Administration ---------- */
.sous-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.sous-nav a { padding: 7px 11px; border: 1px solid var(--trait); border-radius: 20px; background: var(--blanc); font-size: 11px; text-decoration: none; }
.sous-nav a:hover { border-color: #bccac0; }
.chiffres-admin { background: var(--blanc); border: 1px solid var(--trait); border-radius: 7px; padding: 18px 24px; flex-wrap: wrap; }
.panneau-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.panneau > p + .defilement, .panneau > p + .tableau { margin-top: 14px; }
.defilement { overflow-x: auto; }
.tableau { width: 100%; border-collapse: collapse; font-size: 12px; }
.tableau th { text-align: left; font-size: 10px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--doux);
  padding: 8px 10px; border-bottom: 1px solid var(--trait); white-space: nowrap; }
.tableau td { padding: 10px; border-bottom: 1px solid #eef0eb; vertical-align: middle; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau .nombre { text-align: right; font-variant-numeric: tabular-nums; }
.tableau tr.inactif td { color: #9aa49c; }
.tableau .navigateur { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--doux); font-size: 11px; }
.sous-ligne { display: block; font-size: 10px; color: var(--doux); }
.couverture td { vertical-align: top; }
.couverture .perimetre { display: block; max-width: 420px; margin-top: 3px; font-size: 10px; line-height: 1.6; color: var(--doux); }
.couverture .remarque { color: var(--accent); }
.couverture .periode { white-space: nowrap; }
.sous-ligne-inline { font-size: 10px; color: var(--doux); }
.formulaire-ligne { display: flex; gap: 6px; align-items: center; position: relative; } /* garde le libellé caché dans le tableau défilant */
.champ-montant { width: 110px; padding: 7px 9px; }
.jauge { display: block; width: 90px; height: 4px; background: #edf0ea; border-radius: 2px; margin-top: 5px; overflow: hidden; }
.jauge.large { width: 100%; height: 6px; margin: 0; }
.jauge > span { display: block; height: 100%; background: var(--vert); }
.jauge > span.alerte { background: #a13d2f; }
.sous-titre-panneau { font-size: 12px; font-weight: 600; line-height: 1.4; margin: 22px 0 8px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tableau-espace .colonne-jauge { width: 32%; }
.tableau-espace td:first-child { width: 48%; }
.avancement { display: grid; gap: 6px; font-size: 10px; color: var(--doux); }
.liste-resume { margin: 0; padding-left: 16px; font-size: 11px; line-height: 1.8; color: #4e605d; }
.erreurs summary { cursor: pointer; font-size: 11px; color: #a13d2f; }
.erreurs ul { margin: 8px 0 0; padding-left: 16px; font-size: 11px; line-height: 1.6; color: #6b3a30; overflow-wrap: anywhere; }
.erreurs li { margin-bottom: 6px; }
.espace-haut-petit { margin-top: 12px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Espace personnel : favoris, mes recherches, veille ---------- */
.pastille-nombre { margin-left: auto; min-width: 18px; padding: 1px 6px; border-radius: 10px; background: var(--accent);
  color: var(--blanc); font: 600 10px/16px "Segoe UI", sans-serif; text-align: center; }
.coque:not(.deplie) .nav-item .pastille-nombre { position: absolute; top: 4px; right: 8px; min-width: 15px; padding: 0 4px; font-size: 9px; line-height: 15px; }
.nav-item { position: relative; }
.carte-titre-ligne { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bouton-favori { background: transparent; color: #9aa9a2; padding: 2px; border-radius: 4px; flex-shrink: 0; }
.bouton-favori:hover { color: var(--accent); }
.est-favori svg { fill: currentColor; }
.bouton-favori.est-favori { color: var(--accent); }
.btn.est-favori { color: var(--accent); border-color: #e2cdbf; }
.formulaire-favori { display: contents; }
.resultats-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.note-veille { align-items: flex-start; flex-wrap: wrap; }
.note-veille > span:first-of-type { flex: 1; min-width: 220px; }
.note-actions { display: flex; align-items: center; gap: 12px; }
.formulaire-note { display: grid; gap: 8px; justify-items: start; margin-bottom: 14px; }
.formulaire-note textarea { width: 100%; resize: vertical; font-size: 12px; line-height: 1.6; }
.bouton-lien { background: transparent; padding: 0; }
.carte-liens form { display: inline; }
.tete-page { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.liste-recherches { list-style: none; margin: 0; padding: 0; }
.liste-recherches li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid #eef0eb; }
.liste-recherches li:last-child { border-bottom: 0; }
.recherche-titre { font: 16px var(--serif); text-decoration: none; overflow-wrap: anywhere; }
.recherche-titre:hover { text-decoration: underline; }
.recherche-meta { font-size: 10px; color: var(--doux); text-align: right; line-height: 1.7; white-space: nowrap; }
.recherche-actions { display: flex; gap: 6px; }
.liste-veille { display: grid; gap: 13px; }
.carte-veille .carte-parties { margin: 6px 0 2px; }
.carte-veille .carte-pied { margin-top: 14px; }
.carte-veille-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
a.statut { text-decoration: none; }
.nom-veille { flex: 1; min-width: 0; }
.champ-nom { flex: 1; min-width: 0; border: 1px solid transparent; border-radius: 4px; background: transparent; padding: 4px 6px;
  margin-left: -6px; font: 21px/1.35 var(--serif); }
.champ-nom:hover, .champ-nom:focus { border-color: var(--trait); background: var(--blanc); outline: none; }

/* ---------- Page Aide (guide) ---------- */
.guide-sommaire { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 16px 24px; font-size: 12px; }
.guide-sommaire a { color: var(--accent); }
.guide h3 { font-size: 13px; font-weight: 600; margin: 18px 0 4px; }
.guide h2 + h3 { margin-top: 0; }
.guide ol, .guide > ul { margin: 0; padding-left: 20px; font-size: 12px; line-height: 1.9; color: #4e605d; }
.guide li ul { margin: 2px 0; padding-left: 18px; }
.guide p + ul, .guide p + ol, .guide ul + p, .guide ol + p, .guide .liste-nouveautes { margin-top: 8px; }
.guide .liste-nouveautes + p { margin-top: 8px; }

/* ---------- Nouveautés ---------- */
.liste-nouveautes { list-style: none; margin: 0; padding: 0; }
.liste-nouveautes li { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 11px 0;
  border-bottom: 1px solid #eef0eb; font-size: 12px; line-height: 1.8; }
.liste-nouveautes li:last-child { border-bottom: 0; }
.liste-nouveautes strong { font-weight: 600; }
.liste-nouveautes span { color: #4e605d; }
@media (max-width: 760px) { .liste-nouveautes li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Écrans plus petits ---------- */
@media (min-width: 1500px) {
  .disposition { grid-template-columns: 230px minmax(0, 1fr); }
  .carte { padding: 25px 28px; }
}
@media (max-width: 1150px) {
  .disposition { grid-template-columns: 200px minmax(0, 1fr); gap: 18px; }
  .filtres { padding-right: 14px; }
}
/* Fenêtre peu haute (portable, affichage à 100 %) : barre latérale resserrée. */
@media (max-height: 760px) {
  .barre-laterale { padding: 12px 10px 10px; }
  .marque { margin-bottom: 14px; }
  .nav-item { padding-top: 4px; padding-bottom: 4px; }
  .coque:not(.deplie) .nav-item { padding: 5px 0; }
  .nav-groupe + .nav-groupe { margin-top: 6px; }
  .encart { display: none; }
  .compte, .coque:not(.deplie) .compte { padding-top: 4px; padding-bottom: 2px; }
}
@media (max-width: 850px) {
  .coque, .coque.deplie { grid-template-columns: 64px minmax(0, 1fr); }
  .coque .nav-item.non-vue::after { position: absolute; margin-left: 0; }
  .coque .marque-texte, .coque .nav-item span, .coque .encart { display: none; }
  .coque .nav-item { justify-content: center; padding: 6px 0; }
  .coque .nav-titre { display: none; }
  .coque .nav-groupe + .nav-groupe { margin-top: 5px; padding-top: 5px; border-top: 1px solid #33484b; }
  .bouton-menu { display: none; }
  .zone-principale { padding: 16px 16px 32px; }
  .disposition { grid-template-columns: 175px minmax(0, 1fr); gap: 14px; }
  .grille-sources { grid-template-columns: 1fr; }
  .carte { padding: 18px; }
  .carte-titre { font-size: 19px; }
  .carte-pied { flex-direction: column; align-items: flex-start; }
  .liseuse-corps { padding: 22px; }
  .notice { grid-template-columns: 1fr; gap: 2px; }
  .notice dd { margin-bottom: 8px; }
  .coque .compte-identite { display: none; }
  .coque .compte { flex-direction: column; align-items: center; padding: 6px 0 2px; }
  .connexion { grid-template-columns: 1fr; }
  .connexion-presentation { padding: 24px; gap: 28px; }
  .connexion-texte h1 { font-size: 26px; }
  .connexion-formulaire { padding: 32px 16px; justify-content: flex-start; }
}
@media (max-width: 600px) {
  .coque { display: block; }
  .barre-laterale { height: auto; width: 100%; padding: 8px 12px; flex-direction: row; align-items: center; justify-content: space-between; gap: 6px; }
  .marque { margin: 0; }
  .marque-logo { width: 30px; height: 30px; }
  .barre-laterale-bas, .nav-item.a-venir { display: none; }
  .barre-laterale .nav { flex-direction: row; gap: 4px; width: auto; flex: 0 0 auto; overflow: visible; }
  .coque .nav-groupe { display: contents; }
  .coque .nav-item { padding: 9px 10px; width: auto; }
  .zone-principale { padding: 14px 14px 28px; }
  .boite-recherche { padding: 10px 12px 0; }
  .ligne-recherche { gap: 10px; }
  .ligne-recherche > svg { width: 18px; height: 18px; }
  .champ-recherche { font-size: 13px; }
  .liens-aide { font-size: 11px; }
  .bas-recherche { flex-wrap: wrap; }
  .actions-recherche { margin-left: auto; }
  .mode { font-size: 10px; padding: 6px 8px; }
  .disposition { grid-template-columns: 1fr; }
  .filtres { padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--trait); }
  .groupe-filtre { margin-bottom: 12px; }
  .ligne-choix { margin: 5px 0; font-size: 11px; }
  .filtre-dates { display: none; }
  .resultats-tete { flex-wrap: wrap; }
  .carte { padding: 16px 14px; }
  .liseuse-tete { padding: 18px; }
  .liseuse h1 { font-size: 24px; }
  .liseuse-corps { padding: 18px; }
  .corps { font-size: 14px; }
  .chiffres { gap: 20px; }
  .liste-recherches li { grid-template-columns: 1fr; gap: 8px; }
  .recherche-meta { text-align: left; }
  .tete-page { flex-direction: column; }
  .carte-veille-tete { flex-direction: column; align-items: flex-start; }
  /* Couverture Judilibre : une fiche par juridiction, chaque nombre précédé de son libellé */
  .couverture thead { display: none; }
  .couverture, .couverture tbody, .couverture tr, .couverture td { display: block; }
  .couverture tr { padding: 10px 0; border-bottom: 1px solid #eef0eb; }
  .couverture td { padding: 3px 0; border: 0; text-align: left; }
  .couverture td[data-libelle]::before { content: attr(data-libelle) " : "; color: var(--doux); }
  .couverture .nombre { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Synthèse par IA (fiche) et réglages IA (administration) ---------- */
.bloc-ia { margin: 26px 0 30px; padding: 20px 22px; border: 1px solid #ecdcd0; border-radius: 7px; background: #fcf9f6; }
.bloc-ia-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.bloc-ia-tete .titre-section { margin-bottom: 0; }
.bloc-ia-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bloc-ia .detail-source { margin-top: 8px; }
.champ-court { width: auto; min-width: 150px; }
.btn:disabled { opacity: .65; cursor: progress; }
#resultat-synthese:not(:empty) { margin-top: 16px; }
.syntheses-comparees { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.synthese { background: var(--blanc); border: 1px solid var(--trait); border-radius: 6px; padding: 16px 18px; }
.synthese + .synthese { margin-top: 12px; }
.syntheses-comparees .synthese + .synthese { margin-top: 0; }
.synthese-tete { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; font-size: 11px; color: var(--doux); margin-bottom: 10px; }
.synthese-tete strong { color: var(--encre); font-size: 12px; }
/* Réponses d'IA (synthèse, sélection, recherche approfondie) : sans empattement, chiffres alignés (Georgia a des chiffres « elzéviriens » qui gênent la lecture des numéros et des dates) */
.synthese-texte { font: 15px/1.7 "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--encre); }
.synthese-texte h3 { font: 600 13px "Segoe UI", system-ui, sans-serif; letter-spacing: .4px; text-transform: uppercase; color: var(--accent); margin: 18px 0 6px; }
.synthese-texte h3:first-child { margin-top: 0; }
.synthese-texte p { margin: 0 0 10px; }
.synthese-texte ul { margin: 0 0 10px; padding-left: 22px; }
.synthese-texte li { margin-bottom: 6px; }
.synthese-texte p, .synthese-texte li { text-align: justify; hyphens: auto; }
.renvoi { display: inline-block; font: 600 11px "Segoe UI", system-ui, sans-serif; padding: 1px 6px; margin: 0 1px; border-radius: 10px;
  background: var(--tendre); color: var(--accent); text-decoration: none; vertical-align: 1px; white-space: nowrap; }
a.renvoi:hover { background: #e8d4c6; }
.renvoi.inconnu { background: #f9e9e6; color: #a13d2f; cursor: help; }
.synthese .note { margin-top: 10px; }
.synthese-pied { margin-top: 12px; font-size: 10px; color: var(--doux); }
.cles-ia { display: flex; gap: 12px; flex-wrap: wrap; }
.cle-ia { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border: 1px solid var(--trait); border-radius: 6px; font-size: 12px; }
.tableau-reglages select.champ-filtre { min-width: 150px; }
.champ-prix { width: 80px; text-align: right; }
.case-ligne { display: inline-flex; gap: 6px; align-items: center; font-size: 11px; white-space: nowrap; cursor: pointer; }
@media (max-width: 600px) { .bloc-ia { padding: 16px; } .bloc-ia-actions { width: 100%; } .bloc-ia-actions .btn { flex: 1; } }
.champ-precision { display: block; width: 100%; margin-top: 12px; font-size: 12px; line-height: 1.5; resize: vertical; min-height: 44px; }

/* ---------- Panier : boutons des résultats et de la fiche, page Panier, tableau des réponses ---------- */
.pastille-nombre[hidden] { display: none; }
.carte-boutons { display: inline-flex; gap: 2px; flex-shrink: 0; }
.bouton-panier { background: transparent; color: #9aa9a2; padding: 2px; border-radius: 4px; flex-shrink: 0; }
.bouton-panier:hover, .bouton-panier.dans-panier { color: var(--accent); }
.dans-panier svg { fill: var(--tendre); }
.btn.dans-panier { color: var(--accent); border-color: #e2cdbf; }
.liste-panier { list-style: none; margin: 14px 0 0; padding: 0; }
.liste-panier li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef0eb; }
.liste-panier li:last-child { border-bottom: 0; }
.liste-panier li.non-lue .carte-titre { color: var(--doux); }
.numero-panier { flex-shrink: 0; min-width: 34px; padding: 3px 0; border-radius: 4px; background: var(--tendre); color: var(--accent);
  font: 600 11px "Segoe UI", system-ui, sans-serif; text-align: center; }
.panier-texte { flex: 1; min-width: 0; }
.panier-texte .carte-titre { font-size: 14px; }
.tableau-ia { margin: 4px 0 10px; font: 13.5px/1.6 "Segoe UI", system-ui, sans-serif; }
.tableau-ia td { vertical-align: top; }
.tableau-ia td:first-child { white-space: nowrap; font-weight: 600; }
/* Pli des longs tableaux (static/tableaux.js) : bouton sous le tableau ; à l'impression, tout est montré. */
.bouton-pli { display: block; margin: -4px 0 12px; padding: 4px 0; background: transparent; color: var(--accent); font: 13px "Segoe UI", system-ui, sans-serif; text-decoration: underline; }
.bouton-pli:hover { color: var(--encre); }
@media print { .tableau-ia tr[hidden] { display: table-row; } .bouton-pli { display: none; } }
.lien-decision { color: var(--accent); font-weight: 600; text-decoration: none; }
@media (max-width: 600px) { .liste-panier li { flex-wrap: wrap; } .tableau-ia td:first-child { white-space: normal; } }
/* Vérification automatique des renvois (commun/ia.py, verifier) */
.renvoi.ok { background: #e3efe6; color: #2f5a40; }
a.renvoi.ok:hover { background: #cfe3d5; }
.renvoi.partiel { background: #fbeed6; color: #8a5a12; outline: 1px solid #efd3a0; }
a.renvoi.partiel:hover { background: #f6e1b8; }
.renvoi.douteux { background: #f9e0dc; color: #a13d2f; outline: 1px solid #e8b3aa; }
a.renvoi.douteux:hover { background: #f3cac3; }
a.renvoi.renvoi-actif { box-shadow: 0 0 0 2px var(--accent); }
/* Bulle d'un renvoi : verdict, motif et citation du paragraphe (static/renvois.js) */
.bulle-renvoi { position: fixed; z-index: 60; width: min(400px, calc(100vw - 16px)); padding: 10px 12px; background: #fff;
  border: 1px solid var(--trait); border-left-width: 4px; border-radius: 6px; box-shadow: 0 6px 20px rgba(32, 56, 59, .18);
  font: 12px/1.5 "Segoe UI", system-ui, sans-serif; color: var(--encre); pointer-events: none; }
.bulle-renvoi[hidden] { display: none; }
.bulle-renvoi p, .bulle-renvoi blockquote { margin: 0; }
.bulle-renvoi.bulle-ok { border-left-color: #6a9a7b; }
.bulle-renvoi.bulle-partiel { border-left-color: #d9a441; }
.bulle-renvoi.bulle-non { border-left-color: #c8594a; }
.bulle-verdict { font-weight: 600; }
.bulle-ok .bulle-verdict { color: #2f5a40; }
.bulle-partiel .bulle-verdict { color: #8a5a12; }
.bulle-non .bulle-verdict { color: #a13d2f; }
.bulle-motif { margin-top: 2px !important; }
.bulle-origine { margin-top: 8px !important; font-size: 10px; letter-spacing: .3px; text-transform: uppercase; color: var(--doux); }
.bulle-citation { margin-top: 4px !important; padding: 6px 8px !important; background: #faf3df; border-radius: 4px; font: 13px/1.5 var(--texte);
  max-height: 14em; overflow: hidden; }
.bulle-aide { margin-top: 6px !important; font-size: 10px; color: var(--doux); }
/* Volet latéral : la décision citée, à droite de l'analyse */
.volet-decision { position: fixed; top: 0; right: 0; bottom: 0; z-index: 55; width: min(560px, 46vw); display: flex; flex-direction: column;
  background: var(--papier); border-left: 1px solid var(--trait); box-shadow: -8px 0 24px rgba(32, 56, 59, .14); }
.volet-decision[hidden] { display: none; }
.volet-barre { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--nuit); color: #fff;
  font: 600 12px "Segoe UI", system-ui, sans-serif; }
.volet-fermer { background: transparent; color: #fff; border: 0; padding: 4px 8px; border-radius: 4px; cursor: pointer; font-size: 14px; }
.volet-fermer:hover { background: rgba(255, 255, 255, .16); }
.volet-corps { flex: 1; overflow-y: auto; padding: 14px 18px 40px; }
.volet-corps .corps { font-size: 14px; }
.volet-corps .passage { scroll-margin-top: 90px; }
.volet-tete { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--trait); }
.volet-titre { margin: 0 0 4px; font: 600 15px var(--texte); }
.volet-sous-titre { margin: 0 0 2px; font: 11px "Segoe UI", system-ui, sans-serif; color: var(--doux); }
/* Liste des décisions d'un point de graphique, dans le volet (page Article 700) */
.volet-liste { list-style: none; margin: 0; padding: 0; }
.volet-liste li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--trait); }
.volet-liste li > a { font: 600 14px var(--texte); }
.volet-retour { margin-bottom: 10px; cursor: pointer; }
/* Fiches à relire : listes, fiche et décision de l'avocat */
.onglets-fiches { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.onglet-fiche { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--trait); border-radius: 6px;
  background: var(--blanc); color: var(--encre); text-decoration: none; font: 13px "Segoe UI", system-ui, sans-serif; }
.onglet-fiche.actif { background: var(--nuit); border-color: var(--nuit); color: #fff; }
tr.ligne-active { background: #faf3df; }
.etat[data-etat="validee"] { color: var(--vert); font-weight: 600; }
.etat[data-etat="rejetee"], .etat[data-etat="corrigee"] { color: #a13d2f; font-weight: 600; }
.aide-relecture { margin: 8px 0 12px; font: 12px/1.5 "Segoe UI", system-ui, sans-serif; color: var(--doux); }
.aide-relecture summary { cursor: pointer; color: var(--encre); }
.aide-relecture ul { margin: 6px 0 0; padding-left: 18px; }
.demande-fiche { margin: 0 0 14px; padding: 10px 0; border-top: 1px solid var(--trait); }
.demande-fiche p { margin: 0 0 4px; }
.passage-fiche { margin: 4px 0 10px; padding: 8px 10px; background: #faf3df; border-radius: 4px; font: 13px/1.5 var(--texte); }
.actions-fiche { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.barre-actions { position: sticky; bottom: 0; padding: 10px 0 4px; background: var(--papier); border-top: 1px solid var(--trait); }
.barre-actions p { margin: 0; }
.corriger { margin: 8px 0 0; font: 13px/1.5 "Segoe UI", system-ui, sans-serif; }
.corriger > summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.corriger[open] > summary { margin-bottom: 8px; }
.grille-correction { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 14px; padding: 10px 12px;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: 6px; }
.grille-correction label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--doux); }
.grille-correction label.case { flex-direction: row; align-items: flex-start; gap: 6px; grid-column: 1 / -1; color: var(--encre); }
.grille-correction label.large { grid-column: 1 / -1; }
.grille-correction select, .grille-correction input[type="text"], .grille-correction textarea { font: 13px "Segoe UI", system-ui, sans-serif;
  padding: 5px 7px; border: 1px solid var(--trait); border-radius: 4px; background: #fff; color: var(--encre); }
.grille-correction textarea { resize: vertical; }
.fiche-page { max-width: 820px; }
@media (max-width: 800px) { .volet-decision { width: 100vw; } }
.synthese-verif { margin-top: 10px; font-size: 11px; color: var(--vert); }
/* Conversation du panier et Mes analyses IA */
.fil-panier:not(:empty) { margin-top: 14px; }
.echange + .echange, .fil-panier > .note { margin-top: 18px; }
.echange-question { margin: 0 0 8px; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--blanc);
  border-radius: 0 6px 6px 0; font: 15px/1.6 var(--texte); color: var(--encre); white-space: pre-wrap; }
.echange-libelle { display: block; font: 600 10px "Segoe UI", system-ui, sans-serif; letter-spacing: .4px;
  text-transform: uppercase; color: var(--doux); margin-bottom: 2px; white-space: normal; }
/* Recherche approfondie : ce qui a été cherché, sous la citation de la question */
.echange-recherche { margin: 0 0 10px; padding: 0 14px; font-size: 11px; line-height: 1.6; color: var(--doux); }
.echange-recherche-ligne { margin: 0 0 2px; }
.echange-recherche-detail { margin: 4px 0 2px; padding: 8px 12px; background: var(--blanc); border: 1px solid var(--trait); border-radius: 6px; color: var(--encre); }
.echange-recherche-detail p { margin: 0 0 6px; }
.echange-recherche-question { padding: 6px 10px; border-left: 3px solid var(--accent); background: #fafbf6; font-family: var(--texte); font-size: 13px; white-space: pre-wrap; }
.note-recherche { color: #7b6549; }
.repliable-interne { margin: 0 0 6px; }
.consigne-ia { margin: 4px 0 0; padding: 8px 10px; background: #fafbf6; border: 1px solid var(--trait); border-radius: 5px; white-space: pre-wrap; font: 10.5px/1.5 "Segoe UI", system-ui, sans-serif; max-height: 260px; overflow: auto; }
.liste-sans-rapport { margin: 4px 0 0; padding-left: 20px; }
.motif-sans-rapport { color: var(--texte-doux, #6b6b6b); }
.zone-question { margin-top: 16px; }
.zone-question-pied { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; margin-top: 8px; }
.zone-question-pied .detail-source { margin-top: 0; flex: 1; }
.zone-question-pied .btn { flex-shrink: 0; }
.liste-analyses { list-style: none; margin: 0; padding: 0; }
.liste-analyses li { padding: 14px 0; border-bottom: 1px solid #eef0eb; display: flex; gap: 14px; align-items: flex-start; }
.liste-analyses li:last-child { border-bottom: 0; }
.analyse-texte { flex: 1; min-width: 0; }
.analyse-texte .carte-titre { font-size: 15px; }
.analyse-questions { margin: 4px 0 0; padding-left: 18px; font-size: 12px; color: var(--encre); }
.analyse-decisions { font-size: 11px; color: var(--doux); margin-top: 4px; }
.analyse-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
@media (max-width: 600px) { .zone-question-pied, .liste-analyses li { flex-direction: column; } }
/* Export d'une analyse IA (impression, PDF) */
.barre-export { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin: 14px 0 6px; }
.barre-export[hidden] { display: none; }
/* Partager par email (templates/_partager.html, static/partage.js) : panneau déroulant sous le bouton */
.partage { position: relative; display: inline-block; }
.partage > summary { list-style: none; cursor: pointer; }
.partage > summary::-webkit-details-marker { display: none; }
.partage[open] > summary { background: #f5f6f1; }
.partage-panneau { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: min(26rem, 86vw); padding: 10px;
  display: grid; gap: 6px; background: var(--blanc); border: 1px solid var(--trait); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(32, 56, 59, .14); text-align: left; font-weight: 400; }
.barre-export .partage-panneau, .resultats-actions .partage-panneau { left: auto; right: 0; }
.partage-choix { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px 12px; text-align: left;
  font: inherit; color: var(--encre); background: var(--blanc); border: 1px solid var(--trait); border-radius: 6px; cursor: pointer; }
.partage-choix:hover, .partage-choix:focus-visible { background: #f5f6f1; border-color: var(--accent); }
.partage-choix:disabled { opacity: .6; cursor: progress; }
.partage-choix svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.partage-choix strong { display: block; font-size: 12px; font-weight: 600; }
.partage-choix small { display: block; margin-top: 2px; font-size: 10.5px; line-height: 1.5; color: var(--doux); }
.partage-panneau .detail-source { margin: 2px 2px 0; }
.partage-panneau .partage-resultat { color: var(--encre); font-weight: 600; }
.partage-panneau .partage-resultat[hidden] { display: none; }

/* Bloc repliable (décisions d'une recherche approfondie) */
.repliable > summary { cursor: pointer; font-size: 12px; color: var(--accent); padding: 4px 0; list-style: none; }
.repliable > summary::-webkit-details-marker { display: none; }
.repliable > summary::before { content: "▸"; display: inline-block; width: 1.1em; transition: transform .15s; }
.repliable[open] > summary::before { transform: rotate(90deg); }
.repliable > summary:hover { text-decoration: underline; }

/* Proposition à reprendre (page Hors base) */
.proposition { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; margin: 4px 0 0; }
.proposition > p, .proposition > code { flex: 1; margin: 0; font-size: 13px; line-height: 1.55; color: var(--encre); }
.proposition > code { font-size: 12.5px; }
.proposition .btn { flex-shrink: 0; }
@media (max-width: 600px) { .proposition { flex-direction: column; } }

/* ---------- Recherche approfondie (templates/approfondie.html, maquette du 31/10/2026) ----------
   Quatre états dans data-etat : saisie (question, réglages, récapitulatif), pret, lecture, resultat. */
.ap [hidden] { display: none !important; }
.ap:not([data-etat="saisie"]) .ap-si-saisie, .ap:not([data-etat="pret"]) .ap-si-pret,
.ap:not([data-etat="lecture"]) .ap-si-lecture, .ap:not([data-etat="resultat"]) .ap-si-resultat,
.ap[data-etat="saisie"] .ap-bandeau { display: none !important; }
.ap-chapeau { font-size: 14px; color: #46585a; max-width: 780px; margin-bottom: 10px; }
.ap-reperes { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 12.5px; color: #3f5d4e; }
.ap-reperes li { display: flex; align-items: center; gap: 7px; }
.ap-reperes svg { width: 16px; height: 16px; }
.ap { font-size: 14px; }
.ap code { font-size: 12.5px; }
.ap .btn { font-size: 13px; }
.ap .btn.petit { font-size: 12px; }
.ap-fil { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.ap-fil li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 7px; border-radius: 999px; background: var(--blanc);
  border: 1px solid var(--trait); font-size: 12.5px; color: #55625f; }
.ap-fil-n { width: 22px; height: 22px; border-radius: 50%; background: #e8ebe6; color: #46585a; display: inline-flex;
  align-items: center; justify-content: center; font-size: 11.5px; font-weight: 600; }
.ap-fil li.on { background: var(--encre); border-color: var(--encre); color: var(--blanc); }
.ap-fil li.on .ap-fil-n { background: var(--blanc); color: var(--encre); }
.ap-fil li.fait { color: var(--vert); }
.ap-fil li.fait .ap-fil-n { background: var(--vert); color: var(--blanc); }
#message .note { margin: 0 0 16px; font-size: 12.5px; }
.ap-mise { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.ap-gauche { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ap-carte { background: var(--blanc); border: 1px solid var(--trait); border-radius: 9px; padding: 20px 24px; }
.ap-etape { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 400 20px/1.3 var(--serif); color: var(--encre); }
.ap-numero { width: 27px; height: 27px; border-radius: 50%; background: var(--encre); color: var(--blanc); display: inline-flex;
  align-items: center; justify-content: center; font: 600 12.5px var(--texte); flex-shrink: 0; }
.ap-facultatif { font: 400 12px var(--texte); color: #5b6868; }
.ap-libelle { display: block; font-size: 12.5px; font-weight: 600; color: var(--encre); margin: 0 0 6px; }
.ap-champ { width: 100%; min-width: 0; padding: 10px 13px; border: 1px solid #c9d0c7; border-radius: 7px; background: var(--blanc);
  font-size: 14px; line-height: 1.5; color: var(--encre); }
textarea.ap-champ { min-height: 88px; resize: vertical; font-size: 14.5px; }
.ap-champ:focus { border-color: var(--encre); outline: 2px solid #dfe7e3; outline-offset: 0; }
.ap-mono { font-family: Consolas, "Cascadia Mono", monospace; font-size: 13.5px; }
.ap-aide { margin: 6px 0 0; font-size: 12.5px; line-height: 1.6; color: #4f5d5d; }
.ap-discret { font-size: 12px; color: #5b6868; }
.ap-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ap-ligne.ap-entre { justify-content: space-between; }
.ap-ligne.ap-entre > .ap-aide { flex: 1 1 360px; }
.ap-ligne.ap-haut { align-items: flex-start; }
.ap-ligne.ap-espace { margin-top: 14px; }
.ap-ligne.ap-fin { justify-content: flex-end; margin: 14px 0 0; }
.ap .btn.ap-lien { color: var(--accent); padding-left: 6px; padding-right: 6px; }
.ap .btn.ap-lien:hover { background: transparent; text-decoration: underline; }
.ap .btn.ap-grand { min-height: 46px; padding: 0 22px; font-size: 14px; }
.ap .btn.ap-plein { width: 100%; }
.ap-centre { text-align: center; }
/* Suggestions de l'IA (« Préciser la question ») */
.ap-propositions { margin-top: 16px; padding: 14px 18px 16px; background: #fcf9f6; border: 1px solid #ecdcd0; border-radius: 9px; }
.ap-propositions-tete { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 13px; color: #5c4a3e; }
.ap-propositions-tete svg { width: 16px; height: 16px; color: var(--accent); }
.ap-proposition { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: flex-start; padding-top: 12px; margin-top: 12px; border-top: 1px solid #efe4da; }
.ap-proposition-cle { flex: 0 0 110px; padding-top: 2px; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--accent); }
.ap-proposition-valeur { flex: 1 1 300px; min-width: 0; margin: 0; font-size: 14px; line-height: 1.55; }
.ap-proposition-valeur code { background: var(--tendre); padding: 1px 6px; }
.ap-proposition-valeur .ap-discret { display: block; margin-top: 2px; }
.ap-proposition .btn { flex-shrink: 0; }
.ap-precisions { padding-left: 18px; }
.ap-precisions li + li { margin-top: 4px; }
.ap-precisions { margin: 0; }
.ap-precisions-mode { margin: 8px 0 0; line-height: 1.55; }
.ap-propositions-pied { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 10px; border-top: 1px solid #efe4da; }
.ap-propositions-pied .ap-discret { flex: 1 1 320px; }
/* Réglages */
.ap-puces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ap-puce { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: #eef1ec;
  font-size: 12.5px; color: #2f4b4a; max-width: 100%; overflow-wrap: anywhere; }
.ap-puce.vide { background: var(--blanc); border: 1px dashed #c9d0c7; color: #5b6868; }
.ap-puce code { background: transparent; padding: 0; }
.ap-perimetre { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 4px; padding: 10px 14px;
  background: #edf2ed; border: 1px solid #dfe7de; border-radius: 7px; font-size: 13px; color: #30503f; }
.ap-perimetre svg { width: 16px; height: 16px; }
.ap-perimetre span { flex: 1 1 300px; }
.ap-groupe { margin: 18px 0 0; padding: 18px 0 0; border: 0; border-top: 1px solid #eceee9; min-width: 0; }
.ap-groupe > legend { display: flex; align-items: center; gap: 8px; float: left; width: 100%; margin: 0 0 12px; padding: 0;
  font-size: 14.5px; font-weight: 600; color: var(--encre); }
.ap-groupe > legend + * { clear: both; }
.ap-groupe > legend svg { width: 17px; height: 17px; color: var(--accent); }
.ap-duo { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.ap-duo p { flex: 1 1 220px; margin: 0; padding: 10px 14px; border-radius: 7px; background: var(--papier); font-size: 13px; }
.ap-duo b { display: block; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--accent); }
.ap-options { display: flex; flex-wrap: wrap; gap: 10px; }
.ap-option { flex: 1 1 240px; display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; border: 1px solid #d3d9d0;
  border-radius: 8px; background: var(--blanc); cursor: pointer; font-size: 12.5px; color: #4f5d5d; }
.ap-option:has(input:checked) { border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); background: #fbfcfa; }
.ap-option input { margin: 3px 0 0; accent-color: var(--encre); width: 16px; height: 16px; flex-shrink: 0; }
.ap-option strong, .ap-source strong { display: block; font-size: 13.5px; color: var(--encre); }
.ap-sous { margin-top: 14px; }
.ap-segments { display: inline-flex; flex-wrap: wrap; border: 1px solid #c9d0c7; border-radius: 7px; overflow: hidden; background: var(--blanc); }
.ap-segments label { position: relative; cursor: pointer; }
.ap-segments input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ap-segments span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; font-size: 13.5px; color: var(--encre);
  border-right: 1px solid #c9d0c7; }
.ap-segments label:last-child span { border-right: 0; }
.ap-segments input:checked + span { background: var(--encre); color: var(--blanc); font-weight: 600; }
.ap-segments input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -3px; }
.ap-segments input:disabled + span { cursor: default; }
.ap-interrupteur { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; font-size: 13.5px; }
.ap-interrupteur strong { display: block; }
.ap-bascule { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 40px; height: 23px; margin: 1px 0 0; border-radius: 999px;
  background: #c3cbc1; position: relative; cursor: pointer; transition: background .15s; }
.ap-bascule::before { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--blanc);
  transition: left .15s; }
.ap-bascule:checked { background: var(--vert); }
.ap-bascule:checked::before { left: 20px; }
.ap-hors-base { margin: 14px 0 0 54px; padding: 0; border: 0; min-width: 0; }
.ap-hors-base:disabled { opacity: .55; }
.ap-hors-base .ap-libelle { margin-top: 12px; }
.ap-hors-base > .ap-libelle:first-of-type { margin-top: 0; }
.ap-sources { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-source { flex: 1 1 190px; display: flex; gap: 9px; align-items: flex-start; padding: 9px 12px; border: 1px solid #d3d9d0; border-radius: 7px;
  background: var(--blanc); font-size: 12px; color: #4f5d5d; cursor: pointer; }
.ap-source input { margin: 3px 0 0; accent-color: var(--encre); width: 15px; height: 15px; flex-shrink: 0; }
.ap-alerte-mots { margin: 12px 0 0; font-size: 12.5px; }
.ap-avertissements { margin: 12px 0 0; padding: 10px 14px 10px 30px; background: #f8f2e8; border: 1px solid #e7dfd2; border-radius: 7px;
  font-size: 12.5px; line-height: 1.6; color: #6a5440; }
.ap-avertissements li + li { margin-top: 3px; }
.ap-extensible { flex: 1 1 320px; min-width: 0; }
/* Récapitulatif, fixe à droite */
.ap-recap { flex: 1 1 290px; min-width: 0; position: sticky; top: 16px; background: var(--blanc); border: 1px solid var(--trait);
  border-radius: 9px; padding: 18px 20px; }
.ap-recap h2 { font: 400 18px var(--serif); margin: 0 0 12px; }
.ap-recap dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 12px; margin: 0 0 16px; font-size: 13px; }
.ap-recap dt { color: #5b6868; }
.ap-recap dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.ap-recap code { background: var(--tendre); }
.ap-ok { color: var(--vert); }
.ap-manque { color: var(--accent); }
/* Bandeau : la recherche une fois préparée, lancée ou terminée */
.ap-bandeau { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin: 0 0 16px;
  padding: 14px 20px; background: var(--blanc); border: 1px solid var(--trait); border-radius: 9px; }
.ap-bandeau-texte { flex: 1 1 460px; min-width: 0; }
.ap-surlibelle { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: #5b6868; }
.ap-bandeau-texte p { margin: 2px 0 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.ap-bandeau-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ap-verrou { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #5b6868; }
.ap-verrou svg { width: 15px; height: 15px; }
/* Vérifier et lancer */
.ap-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 0 0 16px; }
.ap-chiffre { display: flex; flex-direction: column; gap: 2px; padding: 12px 15px; border-radius: 8px; background: var(--papier); }
.ap-chiffre-v { font: 400 26px/1.15 var(--serif); color: var(--encre); }
.ap-chiffre-l { font-size: 12.5px; color: #46585a; }
.ap-chiffre-d { font-size: 11.5px; color: #5b6868; }
#preparation .note { font-size: 12.5px; }
.ap-listes { display: flex; flex-wrap: wrap; gap: 14px; }
.ap-liste { flex: 1 1 340px; min-width: 0; padding: 12px 16px; border: 1px solid var(--trait); border-radius: 8px; }
.ap-liste h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; }
.ap-liste h3 svg { width: 16px; height: 16px; color: var(--accent); }
.ap-liste > .ap-discret { margin: 4px 0 6px; }
.ap-apercu { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.5; }
.ap-apercu li { padding: 4px 0; border-bottom: 1px solid #f0f1ed; }
.ap-apercu li:last-child { border-bottom: 0; }
.ap-apercu a { color: var(--encre); }
.ap-pied { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-top: 18px;
  padding-top: 14px; border-top: 1px solid #eceee9; }
.ap-pied > .ap-aide { flex: 1 1 300px; margin: 0; }
/* Lecture en cours */
.ap .jauge.ap-jauge { display: block; margin: 14px 0 20px; height: 8px; border-radius: 999px; }
.ap-jauge > span { border-radius: 999px; transition: width .6s ease; }
.ap-phases { list-style: none; margin: 0; padding: 0; }
.ap-phase { display: flex; gap: 14px; align-items: flex-start; position: relative; padding-bottom: 18px; }
.ap-phase:last-child { padding-bottom: 0; }
.ap-phase:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--trait); }
.ap-rond { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  background: #e8ebe6; color: #5b6868; font-size: 12.5px; font-weight: 600; position: relative; z-index: 1; }
.ap-phase.fait .ap-rond { background: var(--vert); color: var(--blanc); }
.ap-phase.cours .ap-rond { background: var(--encre); box-shadow: 0 0 0 5px #dfe7e3; }
.ap-phase-titre { margin: 3px 0 0; font-size: 14px; font-weight: 600; }
.ap-phase:not(.fait):not(.cours) .ap-phase-titre { font-weight: 500; color: #5b6868; }
.ap-phase .ap-aide { margin-top: 1px; }
/* La synthèse */
.ap-actions-resultat { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin: 0 0 16px;
  padding: 8px 10px 8px 16px; background: var(--blanc); border: 1px solid var(--trait); border-radius: 9px; }
.ap-actions-resultat .barre-export { margin: 0; }
.ap-conservee { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--vert); }
.ap-conservee svg { width: 16px; height: 16px; }
.ap-conservee a { color: inherit; font-weight: 600; }
.ap-resultat { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.ap-sommaire { flex: 1 1 180px; max-width: 230px; position: sticky; top: 16px; padding: 14px 16px; background: var(--blanc);
  border: 1px solid var(--trait); border-radius: 9px; }
.ap-sommaire p { margin: 0 0 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: #5b6868; }
.ap-sommaire ol { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.ap-sommaire li { padding: 4px 0; }
.ap-sommaire a { color: var(--encre); text-decoration: none; }
.ap-sommaire a:hover { color: var(--accent); text-decoration: underline; }
/* Analogies (bêta, web/templates/analogies.html) : reprend les blocs de la recherche approfondie */
.pastille-beta { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: #f3e7dc; color: #7a4a26;
  font: 600 10.5px/1.6 var(--texte); letter-spacing: .3px; text-transform: uppercase; vertical-align: middle; }
.titre-page .pastille-beta { font-size: 12px; }
.an .ap-gauche { max-width: 980px; }
.an-espace { margin-top: 14px; }
.an-qualification { margin: 12px 0; padding: 12px 16px; background: var(--papier); border-radius: 8px; font-size: 13.5px; }
.an-qualification p { margin: 0 0 6px; }
.an-qualification p:last-child { margin-bottom: 0; }
.an-pistes { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.an-piste { padding: 14px 18px; border: 1px solid #d3d9d0; border-radius: 9px; background: var(--blanc); }
.an-piste.ecartee { opacity: .55; }
.an-piste-tete { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; }
.an-retenir { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding-bottom: 10px; }
.an-retenir input { width: 16px; height: 16px; accent-color: var(--encre); }
.an-titre-champ { flex: 1 1 360px; min-width: 0; }
.an-champ { display: block; margin-top: 8px; }
.an-titre { font-weight: 600; }
.an-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.an-badge { padding: 2px 9px; border-radius: 999px; background: #eef1ec; font-size: 12px; color: var(--encre); }
.an-badge.directe { background: #e6eef6; }
.an-badge.nature-texte_commun { background: #e2f0e4; }
.an-badge.nature-source_europeenne { background: #eaf1e2; }
.an-badge.nature-meme_finalite { background: #f6efdc; }
.an-badge.nature-ressemblance { background: #f6e4dc; }
.an-badge.nature-pont_casse { background: #f4dcdc; color: #7a2b26; }
.an-details { display: grid; grid-template-columns: minmax(130px, auto) minmax(0, 1fr); gap: 4px 14px; margin: 8px 0; font-size: 13px; }
.an-details dt { color: #5b6868; }
.an-details dd { margin: 0; }
.an-requetes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.an-cote { flex: 1 1 300px; min-width: 0; padding: 10px 12px; border-radius: 8px; background: #fbfcfa; border: 1px solid #eceee9; }
.an-cote h4 { margin: 0; font-size: 12.5px; font-weight: 600; }
.an-annexe { margin: 14px 0 0; font-size: 13px; }
.an-annexe h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.an-annexe ul { margin: 6px 0 0; padding-left: 20px; }
.an-sources { display: flex; flex-wrap: wrap; gap: 14px; }
#resultat { flex: 999 1 560px; min-width: 0; }
#resultat:empty { display: none; }
#resultat .synthese-texte h3 { scroll-margin-top: 16px; }
@media (max-width: 700px) {
  .ap-carte { padding: 16px; }
  .ap-hors-base { margin-left: 0; }
  .ap-recap, .ap-sommaire { position: static; max-width: none; }
  .ap-segments { display: flex; }
  .ap-segments label { flex: 1; display: flex; }
  .ap-segments span { flex: 1; justify-content: center; padding: 0 8px; }
}

/* ---------- Analyses › Article 700 (web/analyses_700.py) ---------- */
.filtres-analyse { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; padding: 14px 16px; margin-bottom: 16px;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: 7px; }
.filtres-analyse > label { display: grid; gap: 4px; font-size: 10px; color: var(--doux); }
.filtres-analyse .champ-filtre { width: auto; min-width: 0; }
.filtres-analyse .champ-annee { width: 64px; }
.choix-matieres { display: flex; flex-wrap: wrap; gap: 4px 12px; border: 0; padding: 0; margin: 0; }
.choix-matieres legend { font-size: 10px; color: var(--doux); padding: 0; margin-bottom: 4px; }
.choix-matiere, .filtres-analyse > label.choix-matiere { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--encre); }
.repere-couleur { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.choix-matiere .repere-couleur { margin-right: 0; }
.graphique svg[role="img"] { display: block; width: 100%; height: auto; margin-top: 8px; }
.graphique svg a { cursor: pointer; }
.graphique svg a:focus-visible { outline: none; }
.graphique svg a:focus-visible .cible { stroke: var(--accent); stroke-width: 2; }
.graphique h3 { font: 400 16px var(--serif); }
.graphiques-cote { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 26px; }
.infobulle { position: fixed; z-index: 50; display: grid; gap: 2px; max-width: 320px; padding: 9px 11px; border-radius: 5px;
  background: var(--nuit); color: #eef1ec; font-size: 11px; line-height: 1.5; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.infobulle[hidden] { display: none; }   /* sinon « display: grid » l'emporte sur l'attribut hidden : la bulle restait */
.infobulle strong { font-weight: 600; }
.graphique svg[role="img"] { cursor: zoom-in; }
.agrandissement { width: min(96vw, 1800px); max-height: 94vh; padding: 18px 24px 22px; border: 0; border-radius: 8px;
  background: var(--blanc); color: var(--encre); box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.agrandissement::backdrop { background: rgba(23, 43, 48, .55); }
.agrandissement-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.agrandissement-tete h2 { font: 400 20px var(--serif); }
.agrandissement-corps svg[role="img"] { max-width: none !important; width: 100%; height: auto; cursor: default; }
.agrandissement-corps { touch-action: none; }   /* le glisser déplace la période, pas la page */
.zoom-outils { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; }
.zoom-outils .sous-ligne { margin-right: 6px; }
.tableau-chiffres td, .tableau-chiffres th { white-space: nowrap; }
.tableau-chiffres td:nth-child(n+3) { font-variant-numeric: tabular-nums; }
.tableau-chiffres tr.indicatif td { color: var(--doux); }

/* Retours qualité (templates/_retour.html, _retour_dialogue.html, static/retours.js) */
.pouces { display: inline-flex; align-items: center; gap: 4px; }
.pouce { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0;
  border: 1px solid var(--trait); border-radius: 5px; background: var(--blanc); color: var(--doux); cursor: pointer; }
.pouce:hover { background: #f5f6f1; color: var(--encre); }
.pouce svg { width: 16px; height: 16px; }
.pouce[aria-pressed="true"] { color: var(--vert); border-color: var(--vert); background: #eef3ee; }
.pouce[data-appreciation="mauvais"][aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--tendre); }
.pouces-etat { margin-left: 6px; font-size: 10px; color: var(--doux); }
.pouces-etat:empty { display: none; }
.retour-dialogue { width: min(92vw, 440px); padding: 18px 22px 16px; border: 0; border-radius: 8px; background: var(--blanc);
  color: var(--encre); box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.retour-dialogue::backdrop { background: rgba(23, 43, 48, .45); }
.retour-dialogue label { display: block; margin-bottom: 8px; font: 400 16px var(--serif); }
.retour-dialogue textarea { width: 100%; resize: vertical; padding: 9px 10px; border: 1px solid var(--trait); border-radius: 5px;
  font: inherit; font-size: 13px; color: var(--encre); }
.retour-dialogue textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.retour-boutons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
/* Tuile « Démineur » de l'accueil : un message, pas de jeu */
.demineur-dialogue { width: min(92vw, 340px); text-align: center; }
.demineur-dialogue p { font: 400 22px/1.3 var(--serif); margin: 6px 0 4px; }
.demineur-dialogue .retour-boutons { justify-content: center; }
.retour-detail summary { cursor: pointer; }
.retour-detail dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; margin: 10px 0 0; font-size: 12px; }
.retour-detail dt { color: var(--doux); }
.retour-detail dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.echange-pouces { display: flex; justify-content: flex-end; margin-top: 8px; }
.pouces-titre { margin-left: 12px; vertical-align: middle; font: 400 11px var(--texte); }

/* Recherche : « Où chercher » d'abord (trois cartes), page d'arrivée sans décisions, un onglet par source (01/11/2026) */
.ou-chercher { margin: 4px 0 0; padding: 12px 0 14px; border-top: 1px solid var(--trait); }
.ou-chercher-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.ou-chercher-tete .ap-libelle, .recherche-resumee .ap-libelle { margin: 0; }
.raccourcis { display: inline-flex; gap: 12px; font-size: 12px; }
.raccourcis a, #modifier-sources, [data-ouvrir-sources] { cursor: pointer; }
.ap-option .detail { display: block; margin-top: 2px; }
.ap-option .lieu { display: inline-block; margin-top: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px;
  background: #edf1eb; color: #506b56; }
.ap-option .lieu.dehors { background: #f8f2e8; color: #7b6549; }
.erreur-sources { margin: 8px 0 0; font-size: 12px; color: #a13d2f; }
.alerte-dehors { margin: 10px 0 0; }
.recherche-resumee { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 0; padding: 10px 0;
  border-top: 1px solid var(--trait); font-size: 12.5px; color: var(--encre); }
.pastille-source { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  background: var(--tendre); color: var(--accent); border: 1px solid #e6d5c8; font-size: 12px; }
.pastille-source.eteinte { background: transparent; color: var(--doux); border-style: dashed; border-color: #d3d9d0; }
.portee { font-size: 11px; color: var(--doux); }
.libelle-modes { align-self: center; margin-right: 6px; font-size: 12.5px; font-weight: 600; color: var(--encre); }
.portee-modes { align-self: center; }
/* Dernières recherches de la page d'arrivée, en bloc compact (01/11/2026) */
.historique-compact { max-width: 760px; padding: 12px 16px; border: 1px solid var(--trait); border-radius: 7px; background: var(--blanc); }
.historique-compact h2 { margin: 0 0 4px; font: 600 13px var(--texte); color: var(--encre); }
.recentes { list-style: none; margin: 0; padding: 0; }
.recentes li { display: flex; align-items: baseline; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--trait); font-size: 12px; }
.recentes li:last-child { border-bottom: 0; }
.recentes .recente-libelle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.recentes .quand { margin-left: auto; flex-shrink: 0; font-size: 10.5px; color: var(--doux); white-space: nowrap; }
.pied-historique { margin: 6px 0 0; font-size: 10.5px; color: var(--doux); text-align: left; }
.pied-historique .lien-texte { font-size: inherit; }
.onglets-sources svg { width: 14px; height: 14px; }
@media (max-width: 600px) { .recentes li { flex-wrap: wrap; gap: 0 10px; } .recentes .quand { margin-left: 0; } }
.onglets-sources { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 14px; }
.onglets-sources .onglet-fiche { cursor: pointer; }
.onglet-nombre { font-weight: 600; font-variant-numeric: tabular-nums; }
.titre-portee { display: block; margin: 0 0 8px; color: var(--doux); }
.encart-hors-base { margin: 0 0 14px; }
.filtres [data-filtres="hb"] .tri { display: flex; align-items: center; gap: 8px; margin: 4px 0 22px; }
.encart-hors-base .lien-texte { cursor: pointer; }
[data-panneau][hidden], [data-filtres][hidden], .nuage[hidden], .note[hidden], .onglet-fiche[hidden],
.nuage-notion[hidden], .lien-texte[hidden], .ou-chercher[hidden], .recherche-resumee[hidden] { display: none !important; }
.attente { color: var(--doux); font-size: 12px; }
.filtres .tri { margin: 14px 0 0; }

/* Formulations ajoutées (« Recherche élargie à »), équivalents du thésaurus et suggestions de l'IA (31/10/2026) */
.nuage-bouton { font: inherit; cursor: pointer; }
.nuage-bouton:disabled { cursor: default; opacity: .5; }
.suggestions-liste { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.suggestions-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.suggestion-comptes { display: inline-flex; gap: 10px; color: var(--doux); }
.suggestions-pied { margin: 7px 0 0; }
.formulations { margin: 0 0 8px; font-size: 11px; color: var(--doux); }
.formulation { color: var(--encre); }

/* ---------- Textes : articles des codes lus sur Légifrance (web/textes.py) ---------- */
.tx-formulaire { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.tx-formulaire-simple { align-items: center; margin-bottom: 4px; }
.tx-champ { display: flex; flex-direction: column; gap: 5px; font-size: 10px; color: var(--doux); }
.tx-champ em { font-style: normal; opacity: .8; }
.tx-champ select, .tx-champ input { padding: 9px 10px; border: 1px solid #dce1d9; border-radius: 4px; background: #fafbf7; font-size: 13px; color: var(--encre); min-width: 0; }
.tx-champ-code select { max-width: min(420px, 100%); }
.tx-champ input[name="article"] { width: 140px; }
.tx-sous-formulaire { margin-top: 8px; }
.tx-chemin { font-size: 10px; line-height: 1.7; color: var(--doux); margin-bottom: 8px; }
.tx-code { font-size: 12px; color: var(--doux); margin-top: -6px; }
.tx-version { border-top: 1px solid var(--trait); margin-top: 18px; padding-top: 16px; }
.tx-version h3 { font: 400 17px/1.4 var(--serif); }
.tx-dates { font-size: 11px; color: var(--doux); margin: 2px 0 10px; }
.tx-texte { white-space: pre-line; font: 15px/1.8 var(--texte); color: #263f42; overflow-wrap: anywhere; }
.tx-nota { font-size: 12px; line-height: 1.8; color: #5d6d66; margin-top: 10px; white-space: pre-line; }
.tx-version .detail-source { margin-top: 10px; }
.tx-liens { margin-top: 10px; }
.tx-liens .lien-texte svg, .tx-formulaire .lien-texte svg { width: 13px; height: 13px; }
.tx-difference { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--trait); border-radius: 6px; background: #fbfbf8; }
.tx-difference summary { cursor: pointer; font: 400 15px var(--serif); }
.tx-difference .detail-source { margin: 6px 0 10px; }
.tx-difference del, .tx-sous del { background: #f6e1dc; color: #8b3a2b; text-decoration: line-through; }
.tx-difference ins, .tx-sous ins { background: #dfeedd; color: #2f5c37; text-decoration: underline; text-underline-offset: 3px; }
.tableau tr.tx-affichee td { font-weight: 600; }
.tx-codes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tx-codes .etiquette { font-size: 11px; text-decoration: none; }
.tx-sommaire { padding: 18px 20px; }
.tx-arbre { list-style: none; margin: 0; padding: 0; }
.tx-arbre .tx-arbre { padding-left: 18px; border-left: 1px solid #edf0ea; margin-left: 4px; }
.tx-arbre summary { cursor: pointer; padding: 5px 0; font-size: 13px; line-height: 1.5; }
.tx-arbre details.tx-cible > summary { color: var(--accent); font-weight: 600; }
.tx-articles { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 4px 0 8px 14px; }
.tx-articles a { font-size: 11px; padding: 2px 7px; border: 1px solid #e6e9e1; border-radius: 3px; background: #f8f9f4; text-decoration: none; color: #3f5a52; }
.tx-articles a:hover { border-color: var(--accent); color: var(--accent); }
/* Navigation dans un code : bloc « Vous ne connaissez pas le numéro ? », voisins, section, recherche par mots */
.tx-champ-mots input { width: 260px; }
.tx-voisins { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tx-voisin { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent); text-decoration: none; max-width: 45%; }
.tx-voisin span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-voisin svg { width: 15px; height: 15px; }
.tx-voisin:hover span { text-decoration: underline; }
.tx-voisin-suivant { margin-left: auto; text-align: right; }
.tx-voisin-section { color: var(--doux); font-size: 11px; text-align: center; flex: 1; max-width: none; justify-content: center; }
.tx-chemin a { color: inherit; }
.tx-article-section h2 a { text-decoration: none; }
.tx-article-section h2 a:hover { text-decoration: underline; }
.tx-sous-sections { margin: 0; padding-left: 18px; font-size: 13px; line-height: 2; }
.tx-sous-sections a { color: var(--encre); }
.tx-lire { font-size: 10px; color: var(--accent); margin-left: 6px; }
.tx-arbre details.tx-trouvee > summary .tx-titre-section { background: var(--surligne); }
.tx-groupe + .tx-groupe { border-top: 1px solid var(--trait); margin-top: 16px; padding-top: 14px; }
.tx-groupe h3 { font: 400 15px/1.5 var(--serif); margin-bottom: 8px; }
.tx-groupe .tx-chemin { margin-bottom: 2px; }
details.tx-nota summary { cursor: pointer; font-weight: 600; width: max-content; }
.tx-groupe h3 a { color: var(--encre); }
.tx-trouve { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 14px; padding: 6px 0; }
.tx-trouve-num { font-size: 12px; font-weight: 600; color: var(--accent); }
.tx-trouve p { font-size: 13px; line-height: 1.75; color: #3f5652; }
.tx-resultats mark, .tx-groupe mark { background: var(--surligne); color: inherit; padding: 0 1px; }
@media (max-width: 600px) { .tx-trouve { grid-template-columns: 1fr; } .tx-champ-mots input { width: 100%; } .tx-voisin { max-width: 100%; } .tx-voisin-section { order: 3; width: 100%; } }
/* Bandeau commun des pages Textes : un code, trois onglets (_textes_outil.html) */
.tx-outil { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.tx-outil .tx-champ-code select { max-width: min(520px, 100%); }
.tx-modes { display: inline-flex; flex-wrap: wrap; width: max-content; max-width: 100%; border: 1px solid #dce1d9; border-radius: 6px; overflow: hidden; background: #fafbf7; }
.tx-mode { position: relative; }
.tx-mode input { position: absolute; opacity: 0; pointer-events: none; }
.tx-mode span { display: block; padding: 9px 16px; font-size: 12px; cursor: pointer; color: var(--doux); border-right: 1px solid #dce1d9; }
.tx-mode:last-child span { border-right: 0; }
.tx-mode input:checked + span { background: var(--encre); color: var(--blanc); }
.tx-mode input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.tx-volet { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.tx-volet[hidden], .tx-volet-note[hidden] { display: none; }
.tx-volet-texte { font-size: 12px; color: var(--doux); max-width: 520px; line-height: 1.7; }
.tx-outil .tx-volet-note { margin-top: -4px; font-size: 10px; }
.tx-astuce { max-width: 760px; }
.tx-resultats-aide { margin: -4px 0 14px; }
/* Sommaire : barre collante (chercher, déplier par niveau), résultats sur place */
.tx-tete-sommaire { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 20px; }
.tx-tete-sommaire .titre-page { margin-bottom: 0; }
.tx-tete-sommaire + .chapeau { margin-top: 6px; }
.tx-barre-plan { position: sticky; top: 0; z-index: 4; padding: 14px 18px; box-shadow: 0 6px 14px #173a2b0d; }
.tx-cherche-plan { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.tx-champ-plan { flex: 1 1 320px; }
.tx-champ-plan input { width: 100%; }
.tx-cherche-aide { margin-top: 6px; }
.tx-niveaux { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--trait); }
.tx-niveaux-libelle { font-size: 10px; color: var(--doux); margin-right: 2px; }
.tx-niveau { padding: 5px 10px; border: 1px solid #dce1d9; border-radius: 14px; background: #fafbf7; font-size: 11px; color: #3f5a52; }
.tx-niveau:hover { border-color: var(--accent); color: var(--accent); }
.tx-niveau.actif { background: var(--encre); border-color: var(--encre); color: var(--blanc); }
.tx-niveaux-pas { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.tx-arbre details { scroll-margin-top: 190px; }
.tx-groupe-liens { font-size: 11px; margin: -4px 0 6px; }
.tx-pages { margin-top: 16px; }
@media (max-width: 760px) { .tx-barre-plan { position: static; } .tx-niveaux-pas { margin-left: 0; } .tx-modes { width: 100%; } .tx-mode { flex: 1; } .tx-mode span { text-align: center; padding: 9px 8px; } }
/* Article cité dans le texte d'une décision : lien discret vers la page Textes */
.lien-loi { color: inherit; text-decoration: underline dotted; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.lien-loi:hover { color: var(--accent); text-decoration-style: solid; }
.lien-loi-liste a { color: var(--accent); }
@media (max-width: 600px) { .tx-champ, .tx-champ-code select, .tx-champ input[name="article"] { width: 100%; max-width: none; } .tx-formulaire .btn { width: 100%; } }

/* ---------- Page d'accueil : une tuile par fonction, toutes sur un seul écran ---------- */
.accueil-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.accueil-tete .chapeau { margin-bottom: 0; }
.accueil-droite { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.accueil-base { font-size: 11px; color: var(--doux); }
.accueil-base strong { font: 400 20px/1.2 var(--serif); color: var(--encre); }
.mini-tuiles { display: flex; gap: 6px; }
.mini-tuile { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--trait); border-radius: 6px;
  background: var(--blanc); font-size: 11px; color: var(--encre); text-decoration: none; transition: border-color .15s, background .15s; }
.mini-tuile:hover { border-color: #bccac0; background: #fafbf8; }
.mini-tuile svg { width: 15px; height: 15px; color: #5a6b69; }
.mini-tuile { position: relative; }
.mini-tuile .pastille-nombre { position: absolute; top: -7px; right: -7px; min-width: 16px; padding: 0 4px;
  font-size: 9px; line-height: 16px; box-shadow: 0 0 0 2px var(--papier); }
.groupe-tuiles + .groupe-tuiles { margin-top: 18px; }
.groupe-tuiles .surtitre { margin-bottom: 8px; }
.tuiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tuile { position: relative; display: flex; flex-direction: column; gap: 7px; padding: 12px 14px;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: 8px; text-decoration: none; color: var(--encre);
  transition: border-color .15s, box-shadow .15s, transform .15s; }
.tuile:hover { border-color: #bccac0; box-shadow: 0 6px 20px #173a2b0f; transform: translateY(-2px); }
.tuile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tuile-tete { display: flex; align-items: center; gap: 10px; }
.tuile-icone { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--tendre); color: var(--accent); }
.tuile-icone svg { width: 18px; height: 18px; }
.tuile.ia .tuile-icone { background: #e4ece6; color: var(--vert); }
.tuile.stats .tuile-icone { background: #e6edf1; color: #3e5f72; }
.tuile.jp .tuile-icone { background: #eceee8; color: #5a6b69; }
.tuile h2 { font: 400 17px/1.25 var(--serif); letter-spacing: -.2px; flex: 1; min-width: 0; }
.tuile p { font-size: 11.5px; line-height: 1.5; color: var(--doux); }
.tuile-info { font-size: 10.5px; color: var(--accent); }
.tuile-pastille { font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 10px; background: var(--accent); color: var(--blanc); flex-shrink: 0; }
.tuile-pastille.beta { background: transparent; color: var(--accent); border: 1px solid #d9b9a8; font-weight: 500; }
@media (max-width: 1100px) { .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .accueil-droite { align-items: flex-start; }
  .tuiles { grid-template-columns: 1fr; }
}
