/* Feuille de style du site (charte graphique du forum). Thème : data-theme sur <html>. */
@font-face { font-family: "Lekton"; font-weight: 400; font-display: swap; src: url(/fonts/lekton-latin-400.woff2) format("woff2"); }
@font-face { font-family: "Lekton"; font-weight: 400; font-display: swap; src: url(/fonts/lekton-latin-ext-400.woff2) format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20CF; }
@font-face { font-family: "Lekton"; font-weight: 700; font-display: swap; src: url(/fonts/lekton-latin-700.woff2) format("woff2"); }
@font-face { font-family: "Lekton"; font-weight: 700; font-display: swap; src: url(/fonts/lekton-latin-ext-700.woff2) format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20CF; }
:root {
  --lieu: #4f8fe6;  /* groupes de lieux (bleu, dans les deux thèmes) */
  --bg: #f4f5f8; --surface: #ffffff; --surface-2: #eef0f4; --border: #dcdfe6;
  --text: #1d2130; --muted: #687085;
  --accent: #a8701a; --accent-text: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, var(--surface));
  --danger: #d0384b; --ok: #1f9d63; --warn: #c98a12; --mention: #fff3c4; --code-bg: #eceff5;
  --couleur-1: #4f8fe6; --couleur-2: #a46be0; --couleur-3: #2fa874; --couleur-4: #d9558e;  /* parenthèses de l'éditeur */
  --shadow: 0 1px 3px rgba(20, 25, 40, .08), 0 4px 16px rgba(20, 25, 40, .06);
  --ombre-carte: 0 1px 2px rgb(0 0 0 / .08), 0 4px 14px -6px rgb(0 0 0 / .22);
  --ombre-menu: 0 10px 40px rgb(0 0 0 / .25);
  /* Arrondis concentriques : tous calculés depuis --radius (réglage de l'appareil : Carrés 4, Doux 10, Ronds 16) */
  --radius: 16px;
  --r-carte: var(--radius);                          /* cartes, fenêtres */
  --r-menu: calc(var(--radius) + 4px);               /* menus, popovers ; ligne de menu = --r-menu − 6px de marge */
  --r-controle: max(3px, calc(var(--radius) - 2px)); /* boutons, champs, blocs dans une carte */
  --r-petit: max(2px, calc(var(--radius) - 4px));    /* petits boutons-icônes, bulles */
  --r-coche: max(2px, calc(var(--radius) / 3));      /* cases à cocher (20 px) : 1,3→2 / 3,3 / 5,3 px */
  /* Mouvement : entrées en ease-out, sorties 20 % plus courtes en ease-in, déplacements en ease-in-out */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
  --duree-menu: 200ms;
  --duree-sortie: calc(var(--duree-menu) * .8);
  --decalage-ligne: 30ms;
  --duree-icone: 200ms;
  /* Rideau doux des menus et popovers (surgir.js) : le panneau se déroule depuis le bouton, ses lignes suivent */
  --ease-rideau: cubic-bezier(.32, .72, 0, 1);       /* départ franc, arrivée très douce, sans dépassement */
  --duree-rideau: 260ms;                   /* panneau ; sortie à 80 % */
  --duree-rideau-ligne: 225ms;             /* chaque ligne */
  --decalage-rideau: 26ms;                 /* entre deux lignes, plafonné à la dixième */
  /* Gabarit */
  --topbar-h: 56px; --sidebar-w: 64px; --marge-fenetre: 16px; --bas-h: 0px;   /* toute la place prise par les barres ; --bas-h : téléphone */
  --esp-1: 4px; --esp-2: 8px; --esp-3: 16px; --esp-4: 24px;                  /* grille de 8 px */
  --bas-ombre: .3;                         /* force du fondu du fond derrière les barres flottantes et la saisie */
  --surbrillance-champ: 2%;
  --police-titre: "Lekton", ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
[hidden] { display: none !important; }   /* l'emporte sur les display des classes (.badge…) */
:root[data-theme="dark"] {
  --bg: #0c1f2b; --surface: #132b34; --surface-2: #1c3640; --border: #2b4752;
  --text: #dfedf6; --muted: #95adbb;
  --accent: #dc9729; --accent-text: #1c1204;
  --accent-soft: color-mix(in srgb, var(--accent) 20%, var(--surface));
  --danger: #f06272; --ok: #3cc488; --warn: #e2a73a; --mention: #4d3d17; --code-bg: #11232d; --bas-ombre: .6;
  --shadow: 0 1px 3px rgba(0, 0, 0, .4); color-scheme: dark;
}
* { box-sizing: border-box; }
html { font-size: 15px; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Fondu du fond en plusieurs paliers (aucune marche visible) : derrière les barres du téléphone */
.topbar-ombre, .sidebar-ombre { --paliers: color-mix(in srgb, var(--bg) calc(var(--bas-ombre) * 100%), transparent) 0%,
  color-mix(in srgb, var(--bg) calc(var(--bas-ombre) * 82%), transparent) 35%, color-mix(in srgb, var(--bg) calc(var(--bas-ombre) * 50%), transparent) 62%,
  color-mix(in srgb, var(--bg) calc(var(--bas-ombre) * 20%), transparent) 84%, transparent; }
/* Retour immédiat à l'appui (pas au relâcher) */
.btn, .icon-btn, .round, .side-link, .seg button, .me-link, .operateur, .puces-choix button, .mots-critere button, .nom-lieu, button.tag {
  transition: transform 120ms var(--ease-out), background-color 150ms var(--ease-out), color 150ms var(--ease-out),
    border-color 150ms var(--ease-out), filter 150ms var(--ease-out); }
:is(.btn, .icon-btn, .round, .side-link, .seg button, .me-link, .operateur, .puces-choix button, .mots-critere button, .nom-lieu, button.tag):active:not(:disabled) {
  transform: scale(.97); }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.6rem; font-family: var(--police-titre); font-weight: 700; font-synthesis: none; }
h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
.muted { color: var(--muted); } .small { font-size: .85em; }
svg.i { flex: none; }

/* Barre du haut : trois colonnes, la recherche reste au centre de l'écran quoi qu'affiche la droite (docs/UI_TECHNIQUE.md § 23).
   Icônes à la couleur du texte, accent seulement quand leur menu ou leur page est ouvert. */
.topbar { --ecart-haut: clamp(1.5rem, 3.5vw, 3.5rem); position: fixed; inset: 0 0 auto 0; height: var(--topbar-h); z-index: 30; display: grid;
  grid-template-columns: minmax(max-content, 1fr) minmax(240px, 760px) minmax(max-content, 1fr); align-items: center; column-gap: var(--ecart-haut);
  padding-right: 1rem; background: var(--surface); border-bottom: 1px solid var(--border); font-family: var(--mono); }
.top-left { display: flex; align-items: center; gap: .3rem; min-width: 0; }
.brand { width: 64px; flex: none; display: grid; place-items: center; color: var(--accent); }
.brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; color: var(--accent); white-space: nowrap; }
.search { position: relative; width: 100%; }
.search input[type=text] { width: 100%; height: 42px; border: 1px solid var(--border); border-radius: 99px; outline: none; color: var(--text);
  background: color-mix(in srgb, var(--bg) 60%, var(--surface)); padding: 0 1rem 0 3.6rem; font: inherit; font-size: .88em; }
.search input[type=text]:focus { background: var(--surface); border-color: var(--accent); }
.search > svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search kbd { position: absolute; left: 2.5rem; top: 50%; transform: translateY(-50%); font: inherit; color: var(--muted); pointer-events: none; }
.top-right { display: flex; align-items: center; gap: .35rem; justify-self: end; }
.round { position: relative; width: 38px; height: 38px; border-radius: 99px; border: 0; background: transparent;
  color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.round .badge { position: absolute; top: 2px; right: 2px; }
.topbar .round { width: 42px; height: 42px; color: var(--text); }
.topbar .round[aria-expanded="true"], body.sur-notifs #cloche { color: var(--accent); }
.me-link { display: flex; align-items: center; padding: .15rem; border-radius: 99px; color: var(--text); cursor: pointer; border: 0; background: transparent; font: inherit; }
.avatar { width: 32px; height: 32px; border-radius: 99px; display: grid; place-items: center; font-weight: 700;
  color: var(--muted); background: var(--surface-2); border: 2px solid var(--accent); }
/* S'abonner : capsule au contour accent, sans halo ; Abonné : la même, neutre */
.abo-pill { display: inline-flex; align-items: center; gap: var(--esp-2); height: 42px; padding: 0 var(--esp-3); margin-right: .35rem; border-radius: 99px; cursor: pointer;
  font: inherit; font-size: .88em; font-weight: 600; white-space: nowrap; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 70%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface)); transition: background-color 150ms var(--ease-out), transform 120ms var(--ease-out); }
.abo-pill.abonne { color: var(--text); border-color: var(--border); background: color-mix(in srgb, var(--bg) 60%, var(--surface)); }
.abo-pill.abonne svg { color: var(--accent); }
.abo-pill:active { transform: scale(.97); }
@media (hover: hover) { .abo-pill:not(.abonne):hover { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); } }
@media (max-width: 1100px) { .abo-pill { width: 42px; padding: 0; justify-content: center; } .abo-pill .texte-btn { display: none; } }
@media (min-width: 701px) and (max-width: 860px) { .brand-name { display: none; } }
/* Résultats au fil de la frappe (recherche_haut.js), sans animation */
.search .dropdown { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; max-height: 70vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-menu); box-shadow: var(--ombre-menu); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.dd-section { padding: .3rem 0; border-bottom: 1px solid var(--border); }
.dd-title { font-size: .7rem; text-transform: uppercase; color: var(--muted); padding: .3rem .8rem; font-weight: 700; }
.dd-item { display: flex; gap: .6rem; align-items: center; padding: .45rem .8rem; color: var(--text); font-size: .92rem; line-height: 1.4; }
.dd-item > svg { color: var(--muted); } .dd-item > span { min-width: 0; overflow-wrap: anywhere; }
.dd-item .sub { display: block; color: var(--muted); font-size: .8rem; }
.dd-item.choisi { background: var(--surface-2); }
@media (hover: hover) { .dd-item:hover { background: var(--surface-2); } }
.dd-empty { padding: .9rem; text-align: center; color: var(--muted); font-size: .9rem; }
.dd-foot { display: block; text-align: center; padding: .55rem; font-size: .85rem; }
.dd-foot.choisi { background: var(--surface-2); }

/* Barre latérale : icônes seules par défaut, trois autres dispositions (barre.js : classe sur <html>), bord droit qui se tire */
.topbar-ombre, .topbar-verre, .sidebar-ombre, .sidebar-verre { display: none; }
.sidebar { position: fixed; top: var(--topbar-h); bottom: 0; left: 0; width: var(--sidebar-w); z-index: 25;
  display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .7rem 0;
  background: var(--surface); border-right: 1px solid var(--border); }
.side-link { position: relative; z-index: 1; width: 62px; padding: .5rem 0 .4rem; border-radius: var(--r-controle); color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: .15rem; font-size: .68rem; font-weight: 600; line-height: 1.2; text-align: center;
  cursor: pointer; border: 0; background: transparent; font-family: inherit; }
.side-link.actif { color: var(--accent); }
.side-link .ico { display: grid; place-items: center; }
/* Pastille de l'entrée active : une seule, qui glisse d'une entrée à l'autre en chenille (pastille.js, app.js placerGlisse) ;
   les entrées actives n'ont donc pas de fond propre */
.sidebar > .pilule { position: absolute; left: 0; top: 0; z-index: 0; background: var(--accent-soft); opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease-out); }
.sidebar > .pilule.on { opacity: 1; }
.side-sep { width: 36px; height: 1px; background: var(--border); margin: .3rem 0; flex: none; }
.side-space { flex: 1; }
.side-bord { position: fixed; top: var(--topbar-h); bottom: 0; left: calc(var(--sidebar-w) - 3px); width: 7px; z-index: 26; cursor: col-resize; touch-action: none; }
.side-bord::after { content: ""; position: absolute; inset: 0 2px 0 3px; background: var(--accent); opacity: 0; transition: opacity 120ms var(--ease-out); }
.side-bord:hover::after, .side-bord.tire::after { opacity: .6; }
.side-tire, .side-tire * { cursor: col-resize !important; user-select: none; }
@media (min-width: 701px) {
  :root:is(.side-icons, .side-big) .side-link { font-size: 0; gap: 0; width: 46px; padding: .6rem 0; }
  :root:not(.side-icons, .side-expanded) { --sidebar-w: 76px; }
  :root.side-big .side-link { width: 60px; padding: .55rem 0; }
  .side-big .side-link svg { width: 30px; height: 30px; }
  :root.side-expanded { --sidebar-w: 180px; }
  .side-expanded .sidebar { align-items: stretch; padding: .7rem .55rem; }
  .side-expanded .side-link { flex-direction: row; gap: .7rem; width: auto; padding: .5rem .7rem; font-size: .9rem; text-align: left; white-space: nowrap; }
  .side-expanded .side-sep { width: auto; margin: .3rem .6rem; }
}

main { margin: var(--topbar-h) 0 0 var(--sidebar-w); padding: 1.2rem 16px 3rem; }
main > * { max-width: 1200px; margin-inline: auto; }
main.bare { margin: 0; padding: 0; }

/* Composants */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-carte);
  padding: 1rem 1.1rem; box-shadow: var(--ombre-carte); }
.card + .card, .card + .grid-2, .grid-2 + .card, .stats + .card, .page-head + .card { margin-top: 1rem; }
.card.cliquable { cursor: pointer; transition: transform 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.card.cliquable:active { transform: scale(.99); }
@media (hover: hover) {
  .card.cliquable:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
}
/* Carte qui porte un sens (et seulement là) : vert, ça avance ; rouge, ça bloque */
.carte-ok, .carte-danger { --c: var(--ok); border-color: color-mix(in srgb, var(--c) 45%, var(--border));
  box-shadow: 0 1px 2px rgb(0 0 0 / .1), 0 6px 18px -8px color-mix(in srgb, var(--c) 35%, transparent); }
.carte-danger { --c: var(--danger); }
.btn { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid transparent; background: var(--accent);
  color: var(--accent-text); padding: .45rem .9rem; border-radius: var(--r-controle); font: inherit; font-weight: 600; cursor: pointer;
  white-space: nowrap; }
.btn:disabled { opacity: .5; cursor: default; filter: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.small { padding: .2rem .55rem; font-size: .85rem; }
.icon-btn { border: 0; background: transparent; color: var(--muted); border-radius: var(--r-petit); padding: .3rem; cursor: pointer;
  display: inline-grid; place-items: center; }
/* Survols : seulement avec une souris (au doigt, un survol reste « collé » après l'appui) */
@media (hover: hover) {
  .btn:hover:not(:disabled) { filter: brightness(1.08); }
  .btn.ghost:hover:not(:disabled) { background: var(--surface-2); filter: none; }
  .icon-btn:hover, .round:hover, .side-link:hover:not(.actif) { background: var(--surface-2); color: var(--text); }
  .me-link:hover { background: var(--surface-2); }
}
.tabulaire, .badge, .stat b, .tuile b, .nb, .non-lus, .compteur { font-variant-numeric: tabular-nums; }
.badge { display: inline-block; min-width: 18px; padding: 0 .35rem; border-radius: 99px; background: var(--danger);
  color: #fff; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; }
.tag { display: inline-flex; align-items: center; gap: .3rem; border-radius: 99px; background: var(--surface-2);
  font-size: .75rem; padding: .1rem .55rem; white-space: nowrap; }
.tag.accent { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.tag.ok { background: color-mix(in srgb, var(--ok) 16%, var(--surface)); color: var(--ok); }
.tag.warn { background: color-mix(in srgb, var(--warn) 16%, var(--surface)); color: var(--warn); }
.tag.danger { background: color-mix(in srgb, var(--danger) 16%, var(--surface)); color: var(--danger); }
.tag button { border: 0; background: none; color: inherit; padding: 0; cursor: pointer; display: grid; opacity: .7; }
button.tag.bouton-tag { border: 0; font: inherit; font-size: .75rem; cursor: pointer; }
button.tag.bouton-tag:hover { filter: brightness(1.15); }
.intertitre { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700;
  margin: 0 0 .5rem; }
label.champ { display: block; font-weight: 600; font-size: .92rem; margin: .9rem 0 .3rem; }
label.champ:first-child { margin-top: 0; }
.aide { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea {
  width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-controle);
  padding: .45rem .6rem; font: inherit; }
:is(input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: -1px;
  background-color: color-mix(in srgb, var(--accent) var(--surbrillance-champ), var(--surface)); }
input:focus::placeholder, textarea:focus::placeholder { color: transparent; }  /* « facultatif » disparaît au focus */
input[type=radio], input[type=range] { accent-color: var(--accent); }
/* Case à cocher (toutes, sauf les interrupteurs) : carré bordé qui se remplit d'accent, coche qui grandit en léger
   rebond, onde d'accent qui s'échappe au relâcher.
   From Uiverse.io by Galahhad - https://uiverse.io/Galahhad/sweet-ape-100
   MIT License, Copyright (c) https://ant.design/components/checkbox, Galahhad (Galahad)
   Adapté (via la Taverne, docs/UI_TECHNIQUE.md § 5) : couleurs du site, arrondi --r-coche, fondu seul en mouvement réduit. */
input[type=checkbox]:not(.switch) {
  --coche-taille: 20px;
  -webkit-appearance: none; appearance: none; box-sizing: border-box; position: relative; flex: none; margin: 0;
  width: var(--coche-taille); height: var(--coche-taille); padding: 0; cursor: pointer; vertical-align: middle;
  border: 1px solid var(--border); border-radius: var(--r-coche); background: var(--surface);
  transition: background-color .3s, border-color .3s; }
input[type=checkbox]:not(.switch)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none;
  box-shadow: 0 0 0 calc(var(--coche-taille) / 2.5) var(--accent);
  transition: box-shadow .5s cubic-bezier(.12, .4, .29, 1.46), opacity .5s cubic-bezier(.12, .4, .29, 1.46); }
input[type=checkbox]:not(.switch)::before {
  content: ""; position: absolute; top: 40%; left: 50%; width: 4px; height: 7px; box-sizing: border-box;
  border-right: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text);
  transform: translate(-50%, -50%) rotate(45deg) scale(0); opacity: 0;
  transition: transform .1s cubic-bezier(.71, -.46, .88, .6), opacity .1s; }
input[type=checkbox]:not(.switch):hover:not(:disabled) { border-color: var(--accent); }
input[type=checkbox]:not(.switch):checked { background: var(--accent); border-color: transparent; }
input[type=checkbox]:not(.switch):checked::before {
  opacity: 1; transform: translate(-50%, -50%) rotate(45deg) scale(1.2);
  transition: transform .2s cubic-bezier(.12, .4, .29, 1.46) .1s, opacity .2s cubic-bezier(.12, .4, .29, 1.46) .1s; }
/* Case partielle (journal dont une partie des rubriques est cochée, catégorie de lieux) : tiret */
input[type=checkbox]:not(.switch):indeterminate { background: var(--accent); border-color: transparent; }
input[type=checkbox]:not(.switch):indeterminate::before { opacity: 1; top: 50%; width: 10px; height: 2px; border: 0; border-radius: 1px;
  background: var(--accent-text); transform: translate(-50%, -50%); }
input[type=checkbox]:not(.switch):active:not(:checked):not(:disabled)::after { transition: none; box-shadow: none; opacity: 1; }
input[type=checkbox]:not(.switch):focus { outline: none; }
input[type=checkbox]:not(.switch):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type=checkbox]:not(.switch):disabled { opacity: .5; cursor: default; }
@media (prefers-reduced-motion: reduce) {
  input[type=checkbox]:not(.switch)::after { display: none; }
  input[type=checkbox]:not(.switch)::before, input[type=checkbox]:not(.switch):checked::before {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.2); transition: opacity .15s; }
}
.chips { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; border: 1px solid var(--border);
  border-radius: var(--r-controle); padding: .35rem; background: var(--surface); }
.chips input { border: 0 !important; outline: none !important; flex: 1; min-width: 120px; padding: .15rem .3rem !important; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: var(--r-controle); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .88rem; padding: .25rem .7rem;
  border-radius: max(2px, calc(var(--r-controle) - 3px)); cursor: pointer; }
.seg button.actif { background: var(--accent); color: var(--accent-text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.stabs { display: flex; gap: 1.2rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain; scrollbar-width: none; }
.stabs a { color: var(--muted); padding: .5rem 0; font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent;
  margin-bottom: -1px; cursor: pointer; }
.stabs a.actif { color: var(--text); border-color: var(--accent); }
/* Indicateur de l'élément actif d'un .seg ou d'une barre d'onglets : glisse en chenille de l'un à l'autre (glisseur.js) */
.seg, .stabs { position: relative; }
.glisse-onglet > :not(.curseur-onglet) { position: relative; z-index: 1; }
.curseur-onglet { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; transform-origin: 0 0; background: var(--accent); }
.seg > .curseur-onglet { box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.seg.glisse-onglet > button:is(.actif, [aria-pressed="true"]) { background: transparent !important; box-shadow: none; }
.stabs.glisse-onglet a.actif { border-color: transparent; }
.interrupteur { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.interrupteur + .interrupteur { border-top: 1px solid var(--border); }
/* Texte long sans espace (adresse d'un webhook) : coupé à la ligne, l'interrupteur reste dans la carte */
.interrupteur > div, .interrupteur > div > div { min-width: 0; overflow-wrap: anywhere; }
/* Interrupteur (case à cocher) : rond creux quand c'est coupé, plein quand c'est allumé ; piste gris foncé, accent allumée.
   From Uiverse.io by vinodjangid07 - https://uiverse.io/vinodjangid07/moody-rabbit-65
   MIT License, Copyright (c) vinodjangid07 (Vinod Jangid)
   Adapté (via la Taverne, docs/UI_TECHNIQUE.md § 5) : couleurs du site, 44 × 22 px, arrondis parallèles (11 px = 7 + 4).
   Un clic sur la ligne .interrupteur qui le porte le bascule aussi (ui.js). */
input.switch { -webkit-appearance: none; appearance: none; flex: none; position: relative; display: flex; align-items: center;
  width: 44px; height: 22px; margin: 0; padding: 0; border: 0; border-radius: 11px; cursor: pointer;
  background-color: color-mix(in srgb, var(--muted) 75%, #000); transition-duration: .2s; }
input.switch::after { content: ""; position: absolute; height: 7px; width: 7px; left: 4px; background-color: transparent;
  border-radius: 50%; transition-duration: .2s; box-shadow: 3.5px 1.75px 5px rgba(8, 8, 8, .26); border: 3.5px solid white; }
input.switch:checked::after { transform: translateX(22px); background-color: white; }
input.switch:checked { background-color: var(--accent); }
input.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input.switch:disabled { opacity: .5; cursor: default; }
.interrupteur:has(input.switch:not(:disabled)) { cursor: pointer; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: stretch; }  /* cartes côte à côte de même hauteur */
.grid-editeur { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.page-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }
.page-head .espace { flex: 1; }
.page-head .sous-titre { flex-basis: 100%; margin: .15rem 0 0; color: var(--muted); font-size: .92rem; }
.empty { text-align: center; color: var(--muted); padding: 2rem; }
.lien-action { font: .85rem var(--mono); text-transform: uppercase; color: var(--muted); white-space: nowrap; cursor: pointer; }
.lien-action:hover { color: var(--accent); }

/* Éditeur : groupes de mots, rubriques, sources */
.sources summary .espace { flex: 1; }
.seg.petit { flex-wrap: nowrap; flex: none; }
.seg.petit button { font-size: .78rem; padding: .15rem .5rem; white-space: nowrap; }
.seg.accent button.actif, .seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.groupes { display: grid; gap: .5rem; }
.groupe { border: 1px solid var(--border); border-radius: var(--r-controle); padding: .55rem .6rem .6rem; background: var(--surface); transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out); }
.groupe.courant { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); }
.groupe.cible, .nouveau-groupe.cible { border-color: var(--accent); background: var(--accent-soft); }
.groupe .chips { border: 0; padding: 0; background: transparent; min-height: 30px; }
.groupe .chips input { min-width: 140px; }
.entete-groupe { display: flex; align-items: center; gap: .4rem; margin-bottom: .35rem; font-size: .75rem; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; }
.entete-groupe .espace { flex: 1; }
.groupe .reglages { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin-top: .5rem; padding-top: .5rem; border-top: 1px dashed var(--border); }
.groupe .reglages > div { display: flex; align-items: center; gap: .4rem; }
.groupe .reglages .libelle { font-size: .75rem; color: var(--muted); }
.mot-chip { cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
.mot-chip.tire { opacity: .35; }
textarea.code { font-family: var(--mono); font-size: .85rem; resize: vertical; }
.modeles-webhook { font-size: .85rem; margin-bottom: .35rem; color: var(--muted); }
[data-variable] { cursor: pointer; font-family: var(--mono); border: 0; }
.plus-mots { font-weight: 600; color: var(--muted); white-space: nowrap; }
.mot-chip.choisi { background: var(--accent); color: var(--accent-text); }
.fantome { position: fixed; z-index: 70; pointer-events: none; transform: translate(-50%, -60%) rotate(-2deg); box-shadow: var(--shadow); }
.entre-groupes { text-align: center; margin: -.15rem 0; }
.operateur { border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font: inherit; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; border-radius: 99px; padding: .05rem .7rem; cursor: pointer; }
.operateur:hover { color: var(--accent); border-color: var(--accent); }
/* Parenthèses : bloc de groupes combinés par leur propre opérateur */
.parentheses { --c: var(--accent); border: 1px solid color-mix(in srgb, var(--c) 35%, var(--border)); 
  border-radius: var(--r-controle); padding: .25rem .55rem .55rem; background: color-mix(in srgb, var(--c) 6%, var(--surface)); }
.parentheses.couleur-1 { --c: var(--couleur-1); } .parentheses.couleur-2 { --c: var(--couleur-2); } .parentheses.couleur-3 { --c: var(--couleur-3); } .parentheses.couleur-4 { --c: var(--couleur-4); }
.parentheses > .nouveau-groupe { border-color: color-mix(in srgb, var(--c) 45%, var(--border)); }
.entete-parentheses { margin-bottom: .1rem; }
.icon-btn.cloche.active { color: var(--accent); }
.info { display: inline-grid; vertical-align: -2px; color: var(--muted); cursor: help; margin-left: .2rem; }
.info:hover { color: var(--text); }
.parentheses > .groupes { margin-top: .1rem; }
.nouveau-groupe.petit { font-size: .8rem; padding: .35rem; margin-top: .45rem; }
.icon-btn.texte { font: 700 .8rem var(--mono); color: var(--muted); padding: .15rem .35rem; }
.sources-groupe { display: flex; align-items: center; gap: .5rem; margin-top: .45rem; }
.sources-groupe .libelle { font-size: .75rem; color: var(--muted); flex: none; }
.groupe .sources-groupe .chips { flex: 1; min-height: 30px; border: 1px solid var(--border); border-radius: var(--r-controle); padding: .1rem .35rem; }
.sources-groupe { position: relative; }
.groupe .sources-groupe .chips input { flex: 1; min-width: 120px; }
.etiquettes-sources { display: contents; }
/* Panneau des sources d'un groupe : journaux à cocher, sous-adresses dépliables */
.panneau-sources { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 45; max-height: 320px; overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-menu); box-shadow: var(--ombre-menu); padding: 6px; }
.ligne-source { display: flex; align-items: center; gap: .3rem; border-radius: calc(var(--r-menu) - 6px); }
.ligne-source:hover { background: var(--surface-2); }
.ligne-source label, label.ligne-source { flex: 1; display: flex; align-items: center; gap: .5rem; padding: .35rem .5rem; cursor: pointer; min-width: 0; }
.ligne-source label > span, label.ligne-source > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
label.ligne-source.sous { padding-left: 3.1rem; }
.ligne-source .deplier { width: 26px; flex: none; display: inline-grid; place-items: center; }
.ligne-source .deplier svg { transform: rotate(-90deg); transition: transform var(--duree-menu) var(--ease-out); }
.ligne-source .deplier.ouvert svg { transform: none; }
.nouveau-groupe { display: flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; margin-top: .5rem; border: 1px dashed var(--border);
  border-radius: var(--r-controle); background: transparent; color: var(--muted); font: inherit; font-size: .88rem; padding: .55rem; cursor: pointer; }
.nouveau-groupe:hover { color: var(--text); border-color: var(--muted); }
.zone-suppression { text-align: center; font-size: .78rem; color: var(--danger); margin-top: .4rem; visibility: hidden; }
body.glisse .zone-suppression { visibility: visible; }
body.glisse { cursor: grabbing; }
/* Bulle d'aide au thème du site (attribut data-aide, placée par ui.js sous l'élément) : jamais d'infobulle native */
/* Bulles d'aide (data-aide, ui.js) : même style que l'étiquette de survol des graphiques (.etiquette-survol) */
.bulle-aide { position: fixed; z-index: 80; max-width: 260px; font-size: .76rem; line-height: 1.38; padding: .3rem .55rem;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); border-radius: var(--r-petit);
  box-shadow: 0 2px 8px rgb(0 0 0 / .25); pointer-events: none; }
.liste-rubriques { position: relative; }
.liste-rubriques .rubriques { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; padding: .3rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-menu); box-shadow: var(--ombre-menu); }
.liste-rubriques.ouvert .rubriques { display: block; }
.rubriques a { display: flex; justify-content: space-between; padding: .4rem .8rem; border-radius: calc(var(--r-menu) - 6px); color: var(--text); cursor: pointer; }
.rubriques a:hover { background: var(--surface-2); }
.sources { margin-top: .7rem; border: 1px solid var(--border); border-radius: var(--r-controle); }
.sources details + details { border-top: 1px solid var(--border); }
.sources summary { display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem; cursor: pointer; list-style: none; }
.sources summary::-webkit-details-marker { display: none; }
.sources summary::after { content: "▾"; color: var(--muted); transition: transform var(--duree-menu) var(--ease-out); }
.sources details[open] summary::after { transform: rotate(180deg); }
.sources-liste { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem .8rem; padding: 0 .7rem .6rem 2.1rem; }
.source { display: flex; align-items: center; gap: .45rem; font-size: .88rem; padding: .2rem 0; }
.source > span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.tuile { background: var(--surface-2); border-radius: var(--r-controle); padding: .75rem .6rem; text-align: center; }
.tuile > span { display: block; font-size: .8rem; color: var(--muted); }
.tuile b { display: block; font-size: 1.15rem; margin-top: .25rem; font-variant-numeric: tabular-nums; }
/* Dernier run par liste (admin, Collecte) : cadre vert = tout OK, orange = OK et échecs, rouge = aucun OK et des échecs */
.tuile.liste-ok { box-shadow: inset 0 0 0 2px var(--ok); }
.tuile.liste-mixte { box-shadow: inset 0 0 0 2px var(--warn); }
.tuile.liste-ko { box-shadow: inset 0 0 0 2px var(--danger); }
.tuile .nb-ok { color: var(--ok); }
.tuile .nb-ko { color: var(--danger); }
.pastilles { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.liste-services .ligne { padding: .7rem 0; border-top: 1px solid var(--border); }
.liste-services .ligne:first-child { border-top: 0; padding-top: 0; }
.liste-services .pastille { width: 38px; height: 38px; border-radius: var(--r-controle); }
.etat-base { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin-top: 1rem; padding: .7rem; border-radius: var(--r-controle); background: var(--surface-2); }
.etat-base b { display: block; font-variant-numeric: tabular-nums; } .etat-base span { font-size: .78rem; color: var(--muted); }

/* Statistiques */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stats > .card, .liste-cartes > .card, .grid-2 > .card { margin: 0; }  /* cartes en grille : alignées en haut */
.stat { display: flex; align-items: center; gap: .8rem; }
.pastille { width: 44px; height: 44px; border-radius: var(--r-controle); display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent); }
.stat b { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { font-size: .82rem; color: var(--muted); }

/* Articles */
.article { display: flex; gap: .8rem; padding: .85rem 0; }
.article + .article { border-top: 1px solid var(--border); }
.article .corps { flex: 1; min-width: 0; }
.article .meta { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.article .titre { display: block; font-weight: 600; color: var(--text); margin: .2rem 0 .15rem; line-height: 1.35; }
.article .titre:hover { color: var(--accent); }
.article .extrait { text-decoration: none; font-size: .88rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; }
.article .actions { display: flex; gap: .2rem; }
/* Affichage liste : grille vignette | journal et étiquettes | « hors sujet » ; titre et extrait sous le journal (ordinateur)
   ou sous la vignette (téléphone). Pas de bouton « ouvrir » : vignette, titre et extrait sont des liens. */
.article:not(.fil-vignettes *, .fil-compacte *) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto 1fr; column-gap: .8rem; row-gap: .1rem; }
.article:not(.fil-vignettes *, .fil-compacte *) .corps { display: contents; }
.article:not(.fil-vignettes *, .fil-compacte *) .vignette { grid-column: 1; grid-row: 1 / span 4; margin-top: 0; }
.article:not(.fil-vignettes *, .fil-compacte *) .meta { grid-column: 2; grid-row: 1; }
.article:not(.fil-vignettes *, .fil-compacte *) .actions { grid-column: 3; grid-row: 1; align-self: center; }
.article:not(.fil-vignettes *, .fil-compacte *) :is(.titre, .extrait, .reprises, .trouve) { grid-column: 2 / -1; }
.article.masque { opacity: .4; }
.article .titre { display: flex; align-items: flex-start; gap: .45rem; }

/* Logo du journal : logo du site, sinon favicon, sinon initiale (ui.js) */
.logo { width: 20px; height: 20px; border-radius: min(5px, var(--r-petit)); flex: none; object-fit: contain; background: #fff; }
.logo.initiale { display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: .7rem; font-weight: 800; }
.article .meta .logo { width: 18px; height: 18px; border-radius: min(4px, var(--r-petit)); font-size: .62rem; }

/* Vignette (image du flux RSS ou de la page), logo à la place si aucune */
.vignette { flex: none; width: 112px; aspect-ratio: 4 / 3; border-radius: var(--r-controle); overflow: hidden; background: var(--surface-2);
  display: grid; place-items: center; align-self: flex-start; margin-top: .15rem; }
.vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vignette .logo { width: 34px; height: 34px; border-radius: var(--r-petit); font-size: 1rem; }
/* Sans photo (extraits « aucun », ou aucune image) : logo du journal dans un carré ; nom du journal en affichage vignettes */
.vignette.sans-image { width: 56px; aspect-ratio: 1; }
.vignette .nom-vignette, .article .mot-meta { display: none; }

/* Ligne « trouvé par » sous le titre : critères, mots trouvés, lieux */
.trouve { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); margin-top: .1rem; }
.trouve .critere { color: var(--text); font-weight: 600; }
.trouve .critere + .critere::before { content: "·"; margin-right: .35rem; color: var(--muted); font-weight: 400; }
.trouve .tag { font-size: .7rem; padding: .02rem .45rem; }

/* Aperçu d'un article (ui.js) : photo chargée depuis le journal à l'ouverture ; feuille du bas sur écran tactile */
.apercu { position: fixed; z-index: 60; width: 320px; max-width: calc(100vw - 16px); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-carte); box-shadow: var(--ombre-menu); overflow: hidden; animation: apparition var(--duree-menu) var(--ease-out); }
.apercu-image { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--surface-2); }
.apercu-image img:not(.logo) { width: 100%; height: 100%; object-fit: cover; display: block; }
.apercu-image .logo { width: 44px; height: 44px; border-radius: var(--r-petit); font-size: 1.2rem; }
.apercu-contenu { padding: .7rem .85rem .85rem; display: grid; gap: .45rem; }
.apercu .meta { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.apercu .meta .logo { width: 18px; height: 18px; font-size: .62rem; }
.apercu .meta .mot-meta { display: none; }
.apercu .titre { font-weight: 600; color: var(--text); line-height: 1.35; text-decoration: none; }
.apercu .titre:hover { color: var(--accent); }
.apercu .lire { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--accent); text-decoration: none; }
.apercu.feuille { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; border-radius: 18px 18px 0 0;
  padding-bottom: env(safe-area-inset-bottom); animation: feuille-monte var(--duree-menu) var(--ease-out); }
.apercu.feuille .poignee { width: 40px; height: 4px; border-radius: 99px; background: var(--border); margin: .5rem auto .4rem; }
.apercu.feuille .apercu-contenu { padding: .8rem 1rem 1.2rem; }
@keyframes apparition { from { opacity: 0; transform: translateY(4px); } }
@keyframes feuille-monte { from { transform: translateY(100%); } }
@media (hover: none) { .article a { -webkit-touch-callout: none; } }

/* Affichage « vignettes » : grille de cartes */
.fil-vignettes .articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.fil-vignettes .article { flex-direction: column; gap: 0; padding: 0; border: 1px solid var(--border) !important;
  border-radius: var(--r-carte); overflow: hidden; background: var(--surface); position: relative; }
.fil-vignettes .vignette { width: 100%; aspect-ratio: 16 / 9; border-radius: 0; margin: 0; }
.fil-vignettes .corps { padding: .7rem .8rem .8rem; }
.fil-vignettes .actions { position: absolute; top: .4rem; right: .4rem; flex-direction: row;
  background: color-mix(in srgb, var(--surface) 85%, transparent); border-radius: var(--r-petit); }
.fil-vignettes .extrait { -webkit-line-clamp: 3; }
/* Vignettes sans photo : bandeau du journal ; mots trouvés à gauche de la date ; en bas, critères et lieux */
.fil-vignettes .vignette.sans-image { aspect-ratio: auto; height: 56px; width: 100%; display: flex; align-items: center; justify-content: flex-start;
  gap: .6rem; padding: 0 2.6rem 0 .8rem; }
.fil-vignettes .vignette.sans-image .logo { width: 28px; height: 28px; font-size: .85rem; }
.fil-vignettes .vignette.sans-image .nom-vignette { display: block; color: var(--text); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fil-vignettes .article:has(.vignette.sans-image) .meta :is(.logo, .journal, .point) { display: none; }
.fil-vignettes .article .mot-meta { display: inline-flex; }
.fil-vignettes .trouve .mot { display: none; }

/* Affichage « compacte » : une ligne par article */
.fil-compacte .article { padding: .45rem 0; align-items: center; }
.fil-compacte .vignette, .fil-compacte .extrait, .fil-compacte .meta .tag:not(.accent) { display: none; }
.fil-compacte .corps { display: flex; align-items: center; gap: .8rem; }
.fil-compacte .titre { flex: 1; min-width: 0; margin: 0; font-weight: 500; white-space: nowrap; }
.fil-compacte .titre span { overflow: hidden; text-overflow: ellipsis; }
.fil-compacte .meta { order: 2; flex-wrap: nowrap; white-space: nowrap; }
.fil-compacte .actions { flex-direction: row; }

/* Barre d'outils de la page Articles */
.outils { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.outils .espace { flex: 1; }
.outils .chips { padding: .2rem .4rem; min-height: 36px; flex: 1 1 260px; }
.mots-critere { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: 0 0 .5rem; }
.mots-critere .libelle-mots { display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem; color: var(--muted); margin-right: .15rem; }
.mots-critere.lieux .libelle-mots { color: var(--lieu); }
.mots-critere button { border: 1px solid var(--border); background: transparent; color: var(--muted); font: inherit;
  font-size: .72rem; border-radius: 99px; padding: .02rem .5rem; cursor: pointer; }
.mots-critere button.actif { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.mots-critere button.lieu { color: var(--lieu); border-color: color-mix(in srgb, var(--lieu) 40%, var(--border)); }
.mots-critere button.lieu.actif { background: color-mix(in srgb, var(--lieu) 16%, var(--surface)); border-color: var(--lieu); }
.mots-critere button.plus-mots { border-style: dashed; color: var(--text); }
.article .meta .tag { font-size: .7rem; padding: .02rem .45rem; }
.seg.icones button { padding: .25rem .5rem; display: inline-grid; place-items: center; }
.stabs .nb { font-weight: 400; font-size: .78rem; color: var(--muted); margin-left: .3rem; }

/* Menus déroulants et listes de suggestions : composants du site, donc au thème (ui.js) */
.deroulant { position: relative; }
.deroulant > button { display: inline-flex; align-items: center; gap: .35rem; }
.deroulant > button svg:last-child { transition: transform var(--duree-menu) var(--ease-out); }
.deroulant.ouvert > button svg:last-child { transform: rotate(180deg); }
.popover, .suggestions { position: absolute; top: calc(100% + 4px); z-index: 40; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-menu); box-shadow: var(--ombre-menu); padding: 6px; min-width: 220px; }
.popover { right: 0; }
.popover.a-gauche { right: auto; left: 0; }
.suggestions { position: fixed; z-index: 60; max-height: 240px; overflow: auto; }  /* coordonnées posées par champSuggestions */
.popover button, .suggestions button { display: flex; align-items: center; gap: .5rem; width: 100%; border: 0; background: transparent;
  color: var(--text); font: inherit; font-size: .9rem; padding: .4rem .6rem; border-radius: calc(var(--r-menu) - 6px); cursor: pointer; text-align: left; }
.popover button:hover, .popover button:focus-visible, .suggestions button:hover, .suggestions button.actif { background: var(--surface-2); outline: none; }
.popover button.actif { color: var(--accent); font-weight: 600; }
.suggestions button span { margin-left: auto; color: var(--muted); font-size: .8rem; }
.champ-suggestions { position: relative; }
.outils .champ-suggestions { flex: 0 1 220px; }
.champ-suggestions.icone input { padding-left: 2rem; }
.champ-suggestions > svg { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
mark { background: color-mix(in srgb, var(--warn) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 .1em; }

/* Listes de critères et canaux */
.ligne { display: flex; align-items: center; gap: .9rem; }
.ligne .corps { flex: 1; min-width: 0; }
.ligne .corps b { display: block; }
.ligne .corps .muted { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste-cartes { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.type { border: 1px solid var(--border); border-radius: var(--r-controle); padding: .8rem; text-align: center; cursor: pointer;
  background: var(--surface); color: var(--text); font: inherit; }
.type:hover, .type.actif { border-color: var(--accent); background: var(--accent-soft); }
.type .pastille { margin: 0 auto .4rem; }
.type b { display: block; font-size: .92rem; } .type span { font-size: .75rem; color: var(--muted); }
.jauge { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: .4rem 0; }
.jauge div { height: 100%; background: var(--accent); border-radius: 99px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: .4rem .5rem; }
td { padding: .55rem .5rem; border-top: 1px solid var(--border); }
.role { font-size: .7rem; text-transform: uppercase; font-weight: 700; color: var(--danger); }

/* Fenêtre, menus, toasts */
/* Entrées en ease-out depuis le bouton (échelle .95 + fondu, jamais depuis 0), sorties 20 % plus courtes vers lui (ui.montrer / cacher) */
@keyframes surgir { from { opacity: 0; transform: scale(.95); } }
@keyframes rentrer { to { opacity: 0; transform: scale(.95); } }
@keyframes fondu { from { opacity: 0; } }
@keyframes fondu-sortie { to { opacity: 0; } }
/* .menu, .popover, .panneau-sources et .rubriques : « rideau doux » de surgir.js (ui.montrer / cacher, surgir / retirer) */
.voile { position: fixed; inset: 0; background: rgb(0 0 0 / .5); z-index: 45; display: grid; place-items: center; padding: 16px;
  animation: fondu var(--duree-menu) var(--ease-out); }
.voile .fenetre { animation: surgir var(--duree-menu) var(--ease-out); }
.voile.sort { animation: fondu-sortie var(--duree-sortie) var(--ease-in) forwards; pointer-events: none; }
.voile.sort .fenetre { animation: rentrer var(--duree-sortie) var(--ease-in) forwards; }
.fenetre { width: min(560px, 100%); max-height: 90dvh; overflow: auto; overflow-x: hidden; }
.entete-fenetre { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.entete-fenetre h2 { margin: 0; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pied-fenetre { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1rem; }
/* Page Articles, changement de critère : l'ancienne liste s'estompe, la nouvelle entre en fondu (rien d'autre ne bouge) */
#articles { transition: opacity var(--duree-sortie) var(--ease-in); }
#articles.changement { opacity: .35; pointer-events: none; }
#articles.apparait > * { animation: apparition-article var(--duree-rideau) var(--ease-out) both; }
@keyframes apparition-article { from { opacity: 0; transform: translateY(4px); } }
/* Fenêtre « non vérifié » : raisons et dernière erreur de Mistral */
.raisons-ia { margin: .5rem 0; padding-left: 1.1rem; }
.erreur-ia { margin: .5rem 0; padding: .6rem .7rem; border-radius: var(--r-petit); background: var(--code-bg); border-left: 3px solid var(--warn); }
.erreur-ia code { display: block; margin-top: .3rem; font: .8rem var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
/* Menu du profil et panneau de la cloche : 8 px sous la barre, 16 px du bord droit, quelle que soit la largeur de l'écran */
.menu { position: fixed; top: calc(var(--topbar-h) + 8px); right: var(--marge-fenetre); width: 250px; z-index: 40; padding: 6px;
  max-height: calc(100dvh - var(--topbar-h) - 24px); overflow-y: auto; overscroll-behavior: contain; transform-origin: top right;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-menu); box-shadow: var(--ombre-menu); }
.menu a { display: flex; align-items: center; gap: .6rem; min-height: 40px; padding: .45rem .8rem; border-radius: calc(var(--r-menu) - 6px);
  color: var(--text); font-size: .93rem; cursor: pointer; }
.menu a svg { color: var(--muted); }
@media (hover: hover) {
  .menu a:hover { background: var(--surface-2); }
  .menu a.rouge:hover, .menu a.rouge:hover svg { color: var(--danger); }
}
.menu .tete { padding: .5rem .8rem; border-bottom: 1px solid var(--border); margin-bottom: 6px; overflow-wrap: anywhere; }
/* Notifications (notifs.js) : fenêtre de la cloche (ordinateur), page #/notifications (téléphone), même contenu */
.notif-panel { width: 360px; padding: 0; overflow: hidden; }
.pn-tete { display: flex; align-items: center; gap: var(--esp-3); padding: var(--esp-2) var(--esp-3); position: sticky; top: var(--topbar-h); z-index: 2; background: var(--bg); }
.pn-tete h1 { margin: 0; font-size: 1.5rem; }
.pn-outils { display: flex; gap: var(--esp-2); margin-left: auto; }
.pn-tete .icon-btn { width: 40px; height: 40px; padding: 0; color: var(--text); border-radius: var(--r-controle); }
.pn-tete .icon-btn:disabled { opacity: .35; cursor: default; background: none; }
.pn-muet { display: flex; align-items: center; gap: var(--esp-3); margin: 0 var(--esp-3) var(--esp-3); padding: 12px var(--esp-3); cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--r-carte); background: var(--surface); }
.pn-muet > span:nth-child(2) { flex: 1; min-width: 0; line-height: 1.3; } .pn-muet b { display: block; } .pn-muet small { color: var(--muted); }
.pn-muet .switch { flex: none; }
.notif-list { border-top: 1px solid var(--border); }
.notif-list .notif { display: flex; align-items: flex-start; gap: .6rem; padding: .6rem .8rem; min-height: 0; border-radius: 0; color: var(--text);
  border-bottom: 1px solid var(--border); }
.notif.non-lue { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.notif.non-lue::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; margin-top: .4rem; }
@media (hover: hover) { .notif-list .notif:hover { background: var(--surface-2); } .notif .notif-del:hover { color: var(--danger); background: none; } }
.notif > .logo { width: 22px; height: 22px; margin-top: .1rem; }
.notif .txt { flex: 1; min-width: 0; font-size: .9rem; line-height: 1.4; overflow-wrap: anywhere; } .notif .txt small { display: block; color: var(--muted); margin-top: .15rem; }
.notif .notif-del { flex: none; padding: .15rem; }
.etiquettes-notif { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: .2rem; }
.etiquettes-notif .tag { font-size: .68rem; padding: .02rem .45rem; }
.pn-vide { display: grid; justify-items: center; gap: var(--esp-2); padding: 48px 16px; color: var(--muted); }
.notif-panel .notif-list { max-height: 60vh; overflow-y: auto; overscroll-behavior: contain; }
.notif-panel .pn-tete { position: static; gap: var(--esp-2); padding: var(--esp-1) var(--esp-2) var(--esp-1) var(--esp-3); background: none; }
.notif-panel .pn-tete .icon-btn { width: 32px; height: 32px; min-height: 0; color: var(--muted); } .notif-panel .pn-tete .icon-btn svg { color: inherit; }
.notif-panel .pn-outils { gap: var(--esp-1); }
.notif-panel .pn-muet { margin: 0 var(--esp-2) var(--esp-2); padding: var(--esp-2) 12px; background: var(--surface-2); border-color: transparent; border-radius: calc(var(--r-menu) - 9px); }
.menu .notif-tout { justify-content: center; color: var(--accent); border-top: 1px solid var(--border); border-radius: 0; font-size: .88rem; }
.pn { min-height: calc(100dvh - var(--topbar-h)); display: flex; flex-direction: column; }
main > .pn { max-width: none; }
body.sur-notifs main { padding: 0 var(--bas-marge, 16px) calc(var(--bas-h) + 20px); }   /* bords alignés sur les barres, comme les autres pages */
.pn .pn-tete { padding-inline: 0; } .pn .pn-muet { margin-inline: 0; }
.pn .notif-list { flex: 1; background: var(--surface); padding-bottom: var(--bas-h); } .pn .notif { padding: 12px 16px; }
@media (max-width: 700px) { .pn-tete { gap: var(--esp-2); } .pn-outils { gap: var(--esp-1); } }

/* Notifications : en haut à droite, alignées sur le menu du profil ; contour de leur couleur, barre de temps en bas */
.toasts { position: fixed; top: calc(var(--topbar-h) + 8px); right: var(--marge-fenetre); z-index: 50; display: flex; flex-direction: column;
  gap: .5rem; align-items: flex-end; pointer-events: none; }
.toast { --t: var(--accent); position: relative; overflow: hidden; display: flex; align-items: center; gap: .8rem; max-width: 380px;
  padding: .65rem .9rem .8rem; border: 1px solid color-mix(in srgb, var(--t) 40%, var(--border)); border-radius: var(--r-carte);
  background: var(--surface); box-shadow: 0 12px 32px -12px rgb(0 0 0 / .4); font-size: .92rem; cursor: pointer; pointer-events: auto;
  transform-origin: top right; animation: toast-entree var(--duree-menu) var(--ease-out); }
.toast.sort { animation: toast-sortie var(--duree-sortie) var(--ease-in) forwards; }
.toast-ok { --t: var(--ok); } .toast-danger { --t: var(--danger); }
.toast .texte-toast { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast button { flex: none; border: 0; background: none; color: var(--t); font: inherit; font-weight: 700; cursor: pointer; padding: .15rem .3rem;
  border-radius: var(--r-petit); }
.toast-temps { position: absolute; inset: auto 0 0 0; height: 3px; background: var(--t); transform-origin: left; animation: toast-temps var(--duree-toast, 3s) linear forwards; }
@keyframes toast-entree { from { opacity: 0; transform: translateY(-6px) scale(.95); } }
@keyframes toast-sortie { to { opacity: 0; transform: translateY(-6px) scale(.95); } }
@keyframes toast-temps { to { transform: scaleX(0); } }

/* Changement d'onglet sur place (admin.js changerOnglet) : l'ancien contenu reste par-dessus (pâli si le serveur tarde)
   puis s'efface pendant que le nouveau entre, carte après carte, avec un léger glissement et un flou qui se dissipe */
.stab-zone { position: relative; }
.stab-panel.en-attente { opacity: 0; }
.stab-panel.sortant { position: absolute; inset: 0 0 auto 0; z-index: 1; pointer-events: none; transition: opacity .15s var(--ease-out); }
.stab-panel.sortant.attente { opacity: .55; }
.stab-panel.sortant:not(.cache-nouveau) { animation: fondu-sortie var(--duree-sortie) var(--ease-in) forwards; }
.stab-panel.entrant > * { animation: entree-carte .32s var(--ease-out) both; animation-delay: calc(var(--i, 0) * var(--decalage-ligne)); }
@keyframes entree-carte { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
/* Changement de page (app.js) : l'ancienne page s'efface sur place pendant que la nouvelle entre, bloc après bloc */
main.page-sortante { position: fixed; left: 0; right: 0; z-index: 1; pointer-events: none; overflow: hidden;
  animation: fondu-sortie var(--duree-sortie) var(--ease-in) forwards; }
main.page-entrante > * { animation: entree-carte .32s var(--ease-out) both; }
main.page-entrante > :nth-child(2) { animation-delay: calc(var(--decalage-ligne) * 1); }
main.page-entrante > :nth-child(3) { animation-delay: calc(var(--decalage-ligne) * 2); }
main.page-entrante > :nth-child(4) { animation-delay: calc(var(--decalage-ligne) * 3); }
main.page-entrante > :nth-child(n+5) { animation-delay: calc(var(--decalage-ligne) * 4); }
/* Lignes d'une liste qui entrent l'une après l'autre (ui.decaler) : 30 ms d'écart, 10 au plus */
@keyframes entree-ligne { from { opacity: 0; translate: 0 8px; filter: blur(4px); } }
.decale > * { animation: entree-ligne var(--duree-menu) var(--ease-out) both; }
.decale > :nth-child(2) { animation-delay: calc(var(--decalage-ligne) * 1); }
.decale > :nth-child(3) { animation-delay: calc(var(--decalage-ligne) * 2); }
.decale > :nth-child(4) { animation-delay: calc(var(--decalage-ligne) * 3); }
.decale > :nth-child(5) { animation-delay: calc(var(--decalage-ligne) * 4); }
.decale > :nth-child(6) { animation-delay: calc(var(--decalage-ligne) * 5); }
.decale > :nth-child(7) { animation-delay: calc(var(--decalage-ligne) * 6); }
.decale > :nth-child(8) { animation-delay: calc(var(--decalage-ligne) * 7); }
.decale > :nth-child(9) { animation-delay: calc(var(--decalage-ligne) * 8); }
.decale > :nth-child(10) { animation-delay: calc(var(--decalage-ligne) * 9); }
.decale > :nth-child(n+11) { animation-delay: calc(var(--decalage-ligne) * 9); }
/* Fondu croisé d'une icône qui change d'état (copier → coche, œil → œil barré…) : deux icônes superposées */
.ico-duo { display: inline-grid; place-items: center; }
.ico-duo > svg { grid-area: 1 / 1; transition: opacity var(--duree-icone) var(--ease-out), transform var(--duree-icone) var(--ease-out),
  filter var(--duree-icone) var(--ease-out); }
[data-etat="a"] > svg.b, [data-etat="b"] > svg.a { opacity: 0; transform: scale(.8); filter: blur(4px); }
.ico-duo.reussi { color: var(--ok); }

/* Squelettes de chargement (ui.squelette) : visibles après 150 ms, lignes décalées de 30 ms */
.squelettes { display: grid; gap: .8rem; max-width: 1200px; }
.squelette { display: flex; align-items: center; gap: .8rem; animation: fondu 200ms var(--ease-out) calc(150ms + var(--i, 0) * var(--decalage-ligne)) backwards; }
.squelette .lignes { flex: 1; display: grid; gap: .5rem; }
.sq { display: block; height: .9rem; width: 55%; border-radius: var(--r-petit);
  background: linear-gradient(100deg, var(--surface-2) 40%, color-mix(in srgb, var(--surface-2) 55%, var(--surface)) 50%, var(--surface-2) 60%) 0 0 / 250% 100%;
  animation: reflet 1.4s linear infinite; }
.sq.court { width: 35%; height: .7rem; }
.sq.rond { width: 40px; height: 40px; flex: none; border-radius: var(--r-controle); }
@keyframes reflet { to { background-position: -150% 0; } }

/* Connexion (pages/connexion.js) : boîte de 380 px en verre dépoli sur le fond en dégradé */
.connexion-page { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 8vh 16px 2rem;
  background: radial-gradient(1200px 600px at 20% 10%, color-mix(in srgb, #1f6f7a 35%, transparent), transparent 60%),
              radial-gradient(900px 500px at 85% 90%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%), var(--bg); }
.connexion-page .marque { width: 52px; height: 52px; border-radius: var(--r-carte); display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: .6rem; }
.connexion-titre { font-family: var(--police-titre); font-size: clamp(1.5rem, 5vw, 2.1rem); margin-bottom: .3rem; text-align: center; }
.connexion-sous-titre { text-align: center; max-width: 400px; font-size: .92rem; }
/* Connexion : toute la page en Lekton (police des titres), un peu plus grande */
.connexion-page, .connexion-page input, .connexion-page button { font-family: var(--police-titre); }
.connexion-boite { font-size: 1.07rem; }
.connexion-boite input { font-size: max(16px, 1.07rem); }
.connexion-boite .mdp :is(input, .calque) { font-family: var(--police-titre); font-size: max(16px, 1.07rem); }  /* calque et champ : même police */
.connexion-boite { width: min(380px, 100%); margin-top: 1.4rem; background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%); box-shadow: 0 20px 60px rgb(0 0 0 / .3); }
.connexion-boite h2 { font-family: var(--police-titre); margin-bottom: .2rem; }
.connexion-boite .btn.large { margin-top: 1.1rem; }
.liens { display: grid; gap: .35rem; text-align: center; margin-top: .9rem; font-size: .88rem; }
.fin-parcours { text-align: center; padding: .4rem 0 .1rem; animation: revele 400ms var(--ease-out); }
.fin-parcours .pastille { margin: 0 auto .7rem; width: 52px; height: 52px; border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 16%, var(--surface)); color: var(--ok); }
.fin-parcours p { margin: .3rem 0 0; } .fin-parcours b { color: var(--text); overflow-wrap: anywhere; }
@keyframes revele { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
.pied { font-size: .75rem; opacity: .75; margin-top: 1.4rem; text-align: center; }

/* ---- Formulaires : libellé au-dessus, * pour l'obligatoire, erreur sous le champ (ui.erreurChamp) ---- */
.btn.large { width: 100%; justify-content: center; padding: .6rem .9rem; }
label.champ .requis { font-style: normal; color: var(--danger); }
.bloc + .bloc { margin-top: .9rem; }  /* le libellé, premier du bloc, perd sa marge haute */
.champ-erreur { color: var(--danger); font-size: .85rem; margin: .3rem 0 0; }
.champ-erreur:empty { display: none; }
.erreur-formulaire { color: var(--danger); font-size: .88rem; margin: .8rem 0 0; }
.erreur-formulaire:empty { display: none; }
:is(input, textarea).erreur, .chips.erreur, .mdp.erreur input, .bloc.erreur :is(input, textarea), .bloc.erreur .chips { border-color: var(--danger); outline: 2px solid var(--danger); outline-offset: -1px; box-shadow: none; }
.vibre { animation: vibre 320ms var(--ease-out); }
@keyframes vibre { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
/* Mot de passe (champ_mdp.js) : chasse fixe, boutons à droite ; calque « ••••x » posé sur le champ pour montrer le dernier
   caractère 1,5 s (même police, même marge) ; jauge rouge / ambre / vert sur le liseré */
.mdp { position: relative; }
.mdp input { font-family: var(--mono); letter-spacing: .02em; padding-right: 4.8rem; }
.mdp .boutons-mdp { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); display: flex; }
.mdp .calque { position: absolute; inset: 0; display: none; align-items: center; padding: .45rem 4.8rem .45rem .6rem; border: 1px solid transparent;
  font-family: var(--mono); font-size: inherit; letter-spacing: .02em; white-space: pre; overflow: hidden; pointer-events: none; }
.mdp.revele .calque { display: flex; }
.mdp.revele input { color: transparent; -webkit-text-fill-color: transparent; caret-color: var(--text); }
.mdp[data-force="faible"] input { border-color: var(--danger); box-shadow: inset 0 -2px 0 var(--danger); }
.mdp[data-force="moyen"] input { border-color: var(--warn); box-shadow: inset 0 -2px 0 var(--warn); }
.mdp[data-force="fort"] input { border-color: var(--ok); box-shadow: inset 0 -2px 0 var(--ok); }
.regles { font-size: .8rem; color: var(--muted); margin: .35rem 0 0; display: flex; flex-wrap: wrap; gap: .15rem .55rem; align-items: center; }
.regles span { display: inline-flex; align-items: center; gap: .3rem; transition: color 200ms var(--ease-out); }
.regles span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.regles span.ok { color: var(--ok); }
.regles b { margin-left: auto; font-weight: 700; }
.regles b.faible { color: var(--danger); } .regles b.moyen { color: var(--warn); } .regles b.fort { color: var(--ok); }


@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-2, .grid-editeur { grid-template-columns: minmax(0, 1fr); } .sources-liste { grid-template-columns: 1fr; } .types { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .vignette { width: 84px; }
  .outils .chips, .outils .champ-suggestions { flex: 1 1 100%; }
  .fil-compacte .meta .journal { display: none; }   /* barre du bas déjà pleine : entrée dans le menu du compte */
  input, select, textarea { font-size: 16px !important; }  /* sous 16 px, iOS zoome au toucher et la barre du bas se décroche */
  .menu { max-width: calc(100vw - 2 * var(--bas-marge)); }
  #menu-compte { top: auto; bottom: calc(var(--bas-h) + 8px); transform-origin: bottom right; max-height: calc(100dvh - var(--topbar-h) - var(--bas-h) - 24px); }
  .toasts { left: 16px; right: 16px; align-items: stretch; }
  .toast { max-width: none; transform-origin: top center; }
  .stat b { font-size: 1.15rem; }
  /* Article (affichage liste) : vignette en haut à gauche, titre et extrait en pleine largeur sous la vignette */
  .article:not(.fil-vignettes *, .fil-compacte *) { grid-template-rows: none; row-gap: .35rem; }
  .article:not(.fil-vignettes *, .fil-compacte *) .vignette { grid-row: 1; }
  .article:not(.fil-vignettes *, .fil-compacte *) .meta { align-self: center; }
  .article:not(.fil-vignettes *, .fil-compacte *) :is(.titre, .extrait, .reprises, .trouve) { grid-column: 1 / -1; }
  .liste-cartes .ligne { flex-wrap: wrap; row-gap: .6rem; }
  .liste-cartes .ligne .corps { flex-basis: calc(100% - 60px); }
  .liste-cartes .ligne > div:last-child:not(.corps) { margin-left: 56px; justify-content: flex-start !important; flex-wrap: wrap;
    max-width: calc(100% - 56px); }
  .liste-cartes .ligne .corps .muted { white-space: normal; overflow-wrap: anywhere; }
  .page-head h1 { font-size: 1.4rem; }
}
@media (max-width: 400px) { .round { width: 33px; height: 33px; } .stats { gap: .6rem; } .types { grid-template-columns: 1fr 1fr; } }
@media (pointer: coarse) { .icon-btn { min-width: 40px; min-height: 40px; } }

/* Curseur de période à crans (ui.curseurPeriode) */
.curseur-periode .valeur { display: block; font-size: 1.02rem; }
.curseur-periode input[type=range] { width: 100%; margin: .35rem 0 0; }
.curseur-periode .crans { position: relative; height: 1.3rem; margin: 0 9px; }
.curseur-periode .crans button { position: absolute; transform: translateX(-50%); border: 0; background: transparent; color: var(--muted);
  font: inherit; font-size: .72rem; padding: .15rem .1rem; cursor: pointer; white-space: nowrap; }
.curseur-periode .crans button:hover { color: var(--text); }

/* Carte Région de l'éditeur : lieux cités hors de la région, résumé */
.hors-region { margin-top: .9rem; padding: .7rem .8rem .8rem; border: 1px solid var(--border); border-radius: var(--r-controle); background: var(--surface-2); }
.hors-region .titre-bloc { font-weight: 700; font-size: .9rem; margin-bottom: .45rem; }
.hors-region .chips { background: var(--surface); }
.hors-region .interrupteur { margin-top: .6rem; padding: .5rem 0 0; border-top: 1px dashed var(--border); }
.departements { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin-top: .5rem; font-size: .78rem; color: var(--muted); }
.departements button { border: 1px dashed var(--border); background: transparent; color: var(--text); font: inherit; font-size: .78rem;
  border-radius: 999px; padding: .1rem .55rem; cursor: pointer; display: inline-flex; align-items: center; gap: .2rem; }
.departements button:hover { border-color: var(--accent); color: var(--accent); }
.departements [data-tous], .departements .toutes { color: var(--muted); border-style: solid; }
.groupe .variantes { margin-top: .35rem; }
.resume-region { margin-top: .8rem; padding: .55rem .7rem; border-radius: var(--r-controle); background: var(--surface-2); font-size: .84rem; line-height: 1.5; }
.resume-region div { display: flex; gap: .45rem; align-items: baseline; }
.resume-region .puce { width: .55rem; height: .55rem; border-radius: 50%; flex: none; transform: translateY(-.05rem); background: var(--accent); }
.resume-region .puce.lieu { background: var(--lieu); }
.resume-region .puce.non { background: var(--muted); opacity: .5; }
mark.lieu { background: color-mix(in srgb, var(--lieu) 25%, transparent); }
.badge-hors { font-size: .68rem; border: 1px solid color-mix(in srgb, var(--lieu) 60%, var(--border)); color: var(--lieu); border-radius: 999px; padding: 0 .4rem; white-space: nowrap; }

/* Liste des critères : boutons en haut à droite, informations en dessous */
.carte-critere .droite { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; flex: none; }
.carte-critere .boutons { display: flex; gap: .1rem; }
.carte-critere .infos { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.enregistrer-bas { display: flex; justify-content: flex-end; margin-top: 1rem; }
.tout-cocher { display: flex; align-items: center; gap: .4rem; padding: .3rem .5rem .4rem; border-bottom: 1px solid var(--border); margin-bottom: .2rem; }
.tout-cocher button { border: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; font-size: .78rem;
  border-radius: 999px; padding: .1rem .6rem; cursor: pointer; }
.tout-cocher button:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 700px) {
  .carte-critere { position: relative; }
  .carte-critere .corps { padding-right: 4.2rem; }
  .carte-critere .boutons { position: absolute; top: .55rem; right: .55rem; }
  .liste-cartes .carte-critere .droite { margin-left: 56px; align-items: flex-start; }
  .carte-critere .infos { justify-content: flex-start; }
}

/* ---- Résumé par email et flux RSS (éditeur, carte « Recevoir ») ---- */
.ligne-reglage { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap; padding: .55rem 0; border-top: 1px solid var(--border); }
.ligne-reglage .gauche { display: flex; gap: .6rem; align-items: flex-start; min-width: 0; }
.ligne-reglage .gauche > div { min-width: 0; overflow-wrap: anywhere; }
.adresse-flux { display: flex; gap: .4rem; align-items: center; margin-top: .45rem; width: 100%; }
.adresse-flux code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-petit); padding: .3rem .55rem; color: var(--muted); }

/* ---- Graphique d'activité (liste des critères, éditeur) : histogramme ou courbe (ui.graphiqueTendance) ---- */
.activite { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.activite .graphique { flex: 1 1 300px; height: 70px; position: relative; cursor: pointer; }
.activite .barres span.survol { background: var(--accent); }
.point-survol { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--accent);
  border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--accent); pointer-events: none; }
.etiquette-survol { position: absolute; white-space: nowrap; pointer-events: none; font-size: .75rem; padding: .15rem .45rem; border-radius: var(--r-petit);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); box-shadow: 0 2px 8px rgb(0 0 0 / .25); z-index: 2; }
.etiquette-survol b { color: var(--text); }
.activite .barres { display: flex; align-items: flex-end; gap: 2px; height: 100%; }
.activite .barres span { flex: 1; background: color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 2px 2px 0 0; min-height: 2px; }
.activite .barres span.pic { background: var(--accent); }
.activite svg { width: 100%; height: 100%; display: block; overflow: visible; }
.activite svg .aire { fill: color-mix(in srgb, var(--accent) 18%, transparent); }
.activite svg .ligne { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.activite .chiffres { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.activite .chiffres b { color: var(--text); font-size: 1.1rem; }
.bandeau-pic { display: flex; gap: .5rem; align-items: center; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid var(--accent);
  border-radius: var(--r-controle); padding: .45rem .7rem; font-size: .85rem; margin-bottom: .8rem; }
.bandeau-pic svg { color: var(--accent); flex: none; }
.mini-barres { display: inline-flex; align-items: flex-end; gap: 1px; height: 14px; vertical-align: middle; margin-left: .4rem; }
.mini-barres span { width: 3px; background: color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 1px; }
.mini-barres span.pic { background: var(--accent); }
.mini-barres { cursor: pointer; }
.mini-barres svg { height: 100%; display: block; overflow: visible; }
.mini-barres polyline { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* ---- Reprises d'une même dépêche ---- */
.tag.importance { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent); font-size: .72rem; }
.reprises { margin-top: .4rem; }
.reprises > button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .8rem; cursor: pointer; padding: .1rem 0;
  display: inline-flex; align-items: center; gap: .35rem; text-align: left; }
.reprises > button:hover { color: var(--text); }
.reprises .logos { display: inline-flex; flex: none; }
.reprises .logos .logo { width: 18px; height: 18px; border-radius: min(4px, var(--r-petit)); border: 1px solid var(--surface); margin: 0 0 0 -5px; font-size: .6rem; }
.reprises .logos .logo:first-child { margin-left: 0; }
.reprises > button svg { transition: transform var(--duree-menu) var(--ease-out); flex: none; }
.reprises.ouvert > button svg { transform: rotate(180deg); }
.reprises ul { list-style: none; margin: .35rem 0 0; padding: .3rem 0 0 .6rem; border-left: 2px solid var(--border); font-size: .82rem; }
.reprises li { padding: .15rem 0; }
.reprises li b { margin-right: .4rem; }
.reprises li a { color: var(--text); }
.reprises li .q { color: var(--muted); font-size: .76rem; white-space: nowrap; margin-left: .4rem; }
.fil-compacte .reprises { display: none; }

/* ---- Recherche avancée ---- */
.lien-avance { border: 0; background: transparent; color: var(--accent); font: inherit; font-size: .85rem; cursor: pointer; padding: .2rem 0;
  margin-top: .7rem; display: inline-flex; align-items: center; gap: .35rem; }
.lien-avance svg:last-child { transition: transform var(--duree-menu) var(--ease-out); }
.lien-avance[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
.recherche-avancee { margin-top: .5rem; padding: .3rem .9rem .9rem; border: 1px solid var(--border); border-radius: var(--r-controle); background: var(--surface-2); }
.recherche-avancee .chips, .recherche-avancee input[type=text], .recherche-avancee input[type=date] { background: var(--surface); }
.puces-choix { display: flex; flex-wrap: wrap; gap: .3rem; }
.puces-choix button { border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .8rem;
  border-radius: 999px; padding: .15rem .6rem; cursor: pointer; }
.puces-choix button.actif { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.dates { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
.dates input { width: auto; color-scheme: light dark; padding: .35rem .55rem; border: 1px solid var(--border); border-radius: var(--r-controle);
  background: var(--surface); color: var(--text); font: inherit; font-size: .88rem; }
.attenue { opacity: .45; }
.barre-resultats { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; }
.barre-resultats .espace { flex: 1; }

/* ---- Modèles publics (liste des critères) ---- */
.titre-section { display: flex; align-items: baseline; gap: .3rem .6rem; flex-wrap: wrap; margin: 1.6rem 0 .6rem; }
.titre-section h2 { margin: 0; font-size: 1.05rem; }
.modeles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.modeles .card.modele { display: flex; flex-direction: column; gap: .45rem; margin: 0; }
.modele h3 { margin: 0; font-size: .98rem; display: flex; align-items: center; gap: .45rem; }
.modele p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.4; }
.modele .mots { font-size: .78rem; color: var(--muted); }
.modele .mots b { color: var(--text); font-weight: 600; }
.modele .bas { display: flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: .3rem; }
.modele .bas .espace { flex: 1; }
.tag.modele-public { background: color-mix(in srgb, var(--lieu) 18%, var(--surface)); color: var(--lieu); }

/* ---- Comptes Mastodon et Bluesky (admin, Collecte) ---- */
.ajout-compte { display: flex; gap: .5rem; flex-wrap: wrap; }
.ajout-compte input { flex: 1; min-width: 220px; }
.compte-social { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-top: 1px solid var(--border); }
.compte-social .reseau { width: 32px; height: 32px; border-radius: var(--r-petit); display: grid; place-items: center; flex: none; background: var(--surface-2); }
.compte-social .reseau.mastodon { color: #8c8dff; } .compte-social .reseau.bluesky { color: #3d8eff; }
.compte-social .corps { flex: 1; min-width: 0; }
.compte-social .corps b { font-size: .92rem; }
.compte-social .corps div { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Groupe de lieux (éditeur de critère) et fenêtre « Lieux sur la carte » (carte.js) */
.boutons-groupes { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.boutons-groupes .deroulant { min-width: 0; }
.boutons-groupes .deroulant .popover { min-width: 260px; }
.groupe.lieux { border-color: color-mix(in srgb, var(--lieu) 45%, var(--border)); }
.groupe.lieux .entete-groupe { color: var(--lieu); }
.tag.lieu { background: color-mix(in srgb, var(--lieu) 16%, var(--surface)); color: var(--lieu); font-weight: 600; }
.resume-zone { font-size: .78rem; color: var(--muted); margin: .1rem 0 .4rem; }
.lien-discret { border: 0; background: none; color: var(--muted); font: inherit; font-size: .78rem; cursor: pointer; text-decoration: underline; padding: 0; }
.lien-discret:hover { color: var(--text); }

.fenetre.fenetre-carte { width: min(1060px, 100%); }
.carte-lieux { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1rem; }
@media (max-width: 780px) { .carte-lieux { grid-template-columns: minmax(0, 1fr); } }
.ligne-carte { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .45rem; }
.ligne-carte .aller-a { flex: 1; min-width: 0; margin-bottom: 0; }
.favoris-zones .popover { z-index: 1000; min-width: 260px; max-height: 320px; overflow: auto; }
.favori { display: flex; align-items: center; }
.favori button[data-favori] { flex: 1; min-width: 0; }
.popover .favori button.retirer { width: auto; flex: none; color: var(--muted); }
.vide-favoris { padding: .4rem .6rem; }
.ajout-favori { display: flex; gap: .3rem; margin-top: .3rem; padding-top: .3rem; border-top: 1px solid var(--border); }
.ajout-favori input { flex: 1; min-width: 0; }
.popover .ajout-favori button { width: auto; flex: none; }
.aller-a { position: relative; display: block; margin-bottom: .45rem; }
.aller-a input { width: 100%; }
.resultats-aller { position: absolute; z-index: 1000; left: 0; right: 0; top: 100%; margin-top: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-controle); overflow: hidden; }
.resultats-aller button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); font: inherit; font-size: .85rem; padding: .4rem .6rem; cursor: pointer; }
.resultats-aller button:hover { background: var(--surface-2); }
.resultats-aller small { color: var(--muted); }
.carte-zone { height: 440px; border-radius: var(--r-controle); border: 1px solid var(--border); background: var(--surface-2); font-family: inherit; }
@media (max-width: 780px) { .carte-zone { height: 340px; } }
.carte-zone.trace { cursor: crosshair; }
/* Maj (ajouter) / Alt (retirer) enfoncée pendant un tracé : petit + ou − en bas à droite du curseur (carte.js) */
.carte-zone.trace.ajout { cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26'><g stroke='white' stroke-width='3'><path d='M11 2v18M2 11h18'/><path d='M20 16v9M15.5 20.5h9'/></g><g stroke='black' stroke-width='1.3'><path d='M11 2v18M2 11h18'/><path d='M20 16v9M15.5 20.5h9'/></g></svg>") 11 11, crosshair; }
.carte-zone.trace.retrait { cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26'><g stroke='white' stroke-width='3'><path d='M11 2v18M2 11h18'/><path d='M15.5 20.5h9'/></g><g stroke='black' stroke-width='1.3'><path d='M11 2v18M2 11h18'/><path d='M15.5 20.5h9'/></g></svg>") 11 11, crosshair; }
.outils-carte { display: flex; flex-direction: column; }
.outils-carte.leaflet-bar button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-bottom: 1px solid #ccc; background: #fff; color: #333; cursor: pointer; padding: 0; }
.outils-carte.leaflet-bar button:last-child { border-bottom: 0; }
.outils-carte.leaflet-bar button:hover { background: #f4f4f4; }
.outils-carte.leaflet-bar button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.outils-carte .separation { height: 6px; border-bottom: 1px solid #ccc; }
.aide-trace { font-size: .76rem; color: var(--muted); margin-top: .4rem; line-height: 1.5; }
.aide-trace kbd { font: inherit; font-size: .72rem; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: min(4px, var(--r-petit)); padding: 0 .3rem; color: var(--text); }
.etat-zone { font-size: .8rem; margin-top: .35rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.etat-zone .alerte { color: var(--warn); }
.liste-lieux { display: flex; flex-direction: column; min-height: 0; }
.liste-lieux [data-filtre] { margin-bottom: .5rem; }
.categories-lieux { max-height: 470px; overflow: auto; padding-right: .2rem; }
.categorie-lieux { border-top: 1px solid var(--border); padding: .45rem 0; }
.categorie-lieux:first-child { border-top: 0; }
.categorie-lieux summary { display: flex; align-items: center; gap: .5rem; cursor: pointer; list-style: none; font-weight: 700; font-size: .9rem; }
.categorie-lieux summary::-webkit-details-marker { display: none; }
.categorie-lieux summary .espace { flex: 1; }
.categorie-lieux summary .muted { font-weight: 400; }
.categorie-lieux .chev { transition: transform var(--duree-menu) var(--ease-out); color: var(--muted); display: inline-flex; }
.categorie-lieux[open] .chev { transform: rotate(180deg); }
.noms-lieux { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.nom-lieu { border: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; font-size: .8rem; border-radius: 99px; padding: .15rem .55rem; cursor: pointer; }
.nom-lieu[aria-pressed="true"] { background: color-mix(in srgb, var(--lieu) 16%, var(--surface)); color: var(--lieu); border-color: transparent; font-weight: 600; }
.noms-lieux .suite { border: 0; background: none; color: var(--muted); font: inherit; font-size: .78rem; cursor: pointer; text-decoration: underline; }
.pied-carte { display: flex; align-items: center; gap: .6rem; margin-top: .9rem; padding-top: .7rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.pied-carte .espace { flex: 1; }
.vide-carte { color: var(--muted); font-size: .88rem; padding: 2rem .5rem; text-align: center; line-height: 1.5; }
/* Médias locaux d'un groupe de lieux */
.medias-locaux { margin-top: .55rem; padding-top: .55rem; border-top: 1px dashed var(--border); }
.medias-locaux .interrupteur { padding: 0 0 .4rem; }
.medias-locaux .chips { margin-top: .2rem; }
.medias-locaux .chips input { min-width: 220px; }
.medias-locaux.coupe .detail { opacity: .45; }
.sources-acceptees { font-size: .78rem; color: var(--muted); margin-top: .45rem; line-height: 1.5; }
.sources-acceptees b { color: var(--text); font-weight: 600; }
.avertissement { display: flex; gap: .5rem; align-items: flex-start; font-size: .78rem; color: var(--warn); margin-top: .5rem; line-height: 1.45; }
.avertissement svg { flex: none; margin-top: .1rem; }
.avertissement a { color: inherit; }
.tag.dep { background: color-mix(in srgb, var(--lieu) 16%, var(--surface)); color: var(--lieu); font-weight: 600; }

/* ---- Page Articles : fenêtre de chat (docs/UI_TECHNIQUE.md § 32 à 34). La carte tient dans l'écran, seuls les articles
   défilent (#fil). Colonne des critères repliable et réglable ; tiroir dans la carte sous 900 px. ---- */
body.sur-articles main { padding: var(--esp-3); }
body.sur-articles main > * { max-width: none; }
.page-articles { position: relative; display: grid; grid-template-columns: var(--nav-w, 230px) minmax(0, 1fr); padding: 0; overflow: hidden; box-shadow: none;
  height: calc(100dvh - var(--topbar-h) - 2 * var(--esp-3)); }
.col-criteres { box-sizing: border-box; width: var(--nav-w, 230px); min-height: 0; overflow: hidden auto; scrollbar-width: none; background: var(--surface-2); border-right: 1px solid var(--border); }
.col-criteres nav { position: relative; padding: .9rem 30px .6rem .4rem; }
.nav-sec { position: relative; display: flex; align-items: center; margin: .9rem .45rem .25rem; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); overflow-wrap: anywhere; }
.nav-sec .icon-btn { position: absolute; right: -28px; padding: .15rem; opacity: 0; transition: opacity 120ms var(--ease-out); }
.nav-sec:hover .icon-btn, .nav-sec .icon-btn:focus-visible { opacity: 1; }
@media (hover: none) { .nav-sec .icon-btn { opacity: 1; } }
.nav-item { position: relative; z-index: 1; display: flex; align-items: center; gap: .45rem; margin-right: -28px; padding: .42rem .35rem .42rem .55rem;
  border-radius: max(2px, calc(var(--r-controle) / 2)); color: var(--muted); font-size: .92rem; }
.nav-item.derive { padding-left: 1.5rem; }
.nav-item > svg { color: var(--text); }
.nav-item .nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item.actif, .nav-item.actif > svg { color: var(--accent); } .nav-item.actif { font-weight: 600; }
.col-criteres nav > .pilule { position: absolute; left: 0; top: 0; z-index: 0; background: color-mix(in srgb, var(--accent) 15%, transparent); opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease-out); }
.col-criteres nav > .pilule.on { opacity: 1; }
.nav-fin { display: inline-flex; align-items: center; gap: .3rem; flex: none; color: var(--muted); font-weight: 400; font-size: .78rem; }
.nav-fin .non-lus:not([hidden]) ~ .nb { display: none; }
.non-lus { min-width: 18px; padding: 0 .35rem; border-radius: 99px; background: var(--accent); color: var(--accent-text); font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; }
.cloche-coupee:not([hidden]) + .non-lus { background: var(--border); color: var(--muted); }
/* Crayon et cloche d'un critère : prennent leur place au survol, sans rien recouvrir */
.nav-outils { display: inline-flex; max-width: 0; overflow: hidden; margin: -.3rem 0; }
.nav-outils span { display: inline-flex; padding: .25rem; border-radius: 4px; }
@media (hover: hover) {
  .nav-item:hover { background: var(--surface); color: var(--text); z-index: 6; }
  .nav-item.actif:hover { background: none; color: var(--accent); }
  .nav-item:hover .nav-outils, .nav-outils:focus-within { max-width: 3.5rem; }
  .nav-outils span:hover { color: var(--accent); }
}
.poignee-col { position: absolute; top: 0; bottom: 0; left: calc(var(--nav-w) - 3px); width: 6px; z-index: 4; cursor: col-resize; touch-action: none; }
.poignee-col::after { content: ""; position: absolute; inset: 0 auto 0 2px; width: 1px; transition: background-color 120ms var(--ease-out); }
.poignee-col:hover::after, .etire .poignee-col::after { background: var(--accent); }
.etire { user-select: none; cursor: col-resize; }
/* Languette : dans la colonne contre son bord droit ; colonne repliée, au bord gauche de la carte, teintée s'il y a du non-lu ailleurs */
.languette { position: absolute; top: 50%; left: calc(var(--nav-w) - 23px); translate: 0 -50%; z-index: 5; width: 22px; height: 64px; padding: 0;
  display: grid; place-items: center; border: 1px solid var(--border); border-right: 0; border-radius: 10px 0 0 10px;
  background: var(--surface); color: var(--muted); cursor: pointer; opacity: .7; }
.languette:hover, .languette:focus-visible { opacity: 1; color: var(--text); background: var(--surface-2); }
.languette svg { rotate: 90deg; transition: rotate var(--duree-menu) var(--ease-out); }
.replie .languette svg { rotate: -90deg; }
.replie .languette { border-right: 1px solid var(--border); border-left: 0; border-radius: 0 10px 10px 0; }
.languette.non-lu { opacity: 1; color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.voile-col { display: none; }
@media (min-width: 901px) {
  /* Repli : la colonne passe à 0 pendant que la liste, de largeur fixe, glisse du même pas ; son texte ne se tasse pas */
  .page-articles { transition: grid-template-columns var(--duree-menu) var(--ease-out); }
  .col-criteres { transition: translate var(--duree-menu) var(--ease-out); }
  .languette { transition: opacity 150ms var(--ease-out), left var(--duree-menu) var(--ease-out); }
  .page-articles.replie { grid-template-columns: 0px minmax(0, 1fr); transition: grid-template-columns var(--duree-sortie) var(--ease-in); }
  .replie .col-criteres { translate: -100% 0; visibility: hidden; transition: translate var(--duree-sortie) var(--ease-in), visibility 0s linear var(--duree-sortie); }
  .replie .languette { left: 0; transition: opacity 150ms var(--ease-out), left var(--duree-sortie) var(--ease-in); }
  .replie .poignee-col { display: none; }
  .etire, .etire :is(.col-criteres, .languette) { transition: none; }
}

/* En-tête du fil : nom, histogramme, états, envoi à la main, nombre d'articles */
.volet { display: flex; flex-direction: column; min-width: 0; min-height: 0; grid-column: 2; }
.tete-fil { position: relative; display: flex; align-items: center; gap: .5rem; min-height: 2.9rem; padding: .45rem .8rem; flex: none; border-bottom: 2px solid var(--accent); cursor: pointer; }
.tete-titre { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.tete-titre > svg { color: var(--accent); flex: none; }
.tete-fil .espace { flex: 1; }
.mini-tete { display: inline-flex; flex: none; } .mini-tete .mini-barres { margin-left: 0; height: 18px; }
.nom-fil { min-width: 2.5em; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 1rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: color 150ms var(--ease-out); }
@media (hover: hover) { .nom-fil:hover { color: var(--accent); } }
.etats { display: flex; gap: .25rem; flex: none; overflow: hidden; } .etats:empty { display: none; }
.etat-fil { display: inline-flex; align-items: center; gap: .25rem; min-width: 0; padding: .12rem .5rem .12rem .4rem; border: 0; border-radius: 99px; background: var(--surface-2); color: var(--muted);
  font: inherit; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.etat-fil > span { overflow: hidden; text-overflow: ellipsis; max-width: 14em; }
.descr-fil { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.envoi-manuel { display: flex; align-items: center; gap: .4rem; flex: none; cursor: default; }
/* Bandeau des filtres sous l'en-tête : mots, sources, « Plus de filtres » qui se déplie (grille 0fr -> 1fr) ; débordement
   visible une fois ouvert, pour le menu du tri */
.zone-filtres { position: relative; z-index: 4; flex: none; padding: .6rem .8rem; background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); border-bottom: 1px solid var(--border); }
.zone-filtres .outils { margin-bottom: 0; cursor: pointer; }
.zone-filtres .suite { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--duree-menu) var(--ease-out); }
.zone-filtres .suite > div { min-height: 0; overflow: hidden; }
.zone-filtres.deplie .suite { grid-template-rows: 1fr; }
.zone-filtres.ouverte .suite > div { overflow: visible; }
.zone-filtres .ligne-reglages { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .55rem; margin-top: .7rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.zone-filtres .ligne-periode { padding: .75rem 0; }
.zone-filtres #mots:not(:empty) { border-top: 1px solid var(--border); padding-top: .7rem; }
.zone-filtres [data-effacer] { margin-top: .6rem; }
.affichage-tri { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .55rem; }
#menu-tri button { display: flex; align-items: center; gap: .4rem; }
#menu-tri .place-fleche { width: 14px; flex: none; }
.bouton-suite { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: none; color: var(--muted); font: inherit; font-size: .8rem; cursor: pointer; padding: .3rem .2rem; white-space: nowrap; }
.bouton-suite:hover { color: var(--text); }
.bouton-suite svg { transition: transform var(--duree-menu) var(--ease-out); }
.bouton-suite .resume { display: inline-flex; align-items: center; gap: .25rem; }
.zone-filtres.deplie .bouton-suite > svg:last-child { transform: rotate(180deg); }
.zone-filtres.deplie .bouton-suite .resume { display: none; }
/* Menu « Toutes les sources » : cases à cocher, reste ouvert pendant les choix */
.menu-sources > button { max-width: 240px; }
.menu-sources > button .libelle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-sources > button.actif { color: var(--accent); border-color: var(--accent); }
.menu-sources .popover { width: 300px; padding: .5rem; left: 0; right: auto; }
.menu-sources .popover.a-droite { left: auto; right: 0; }
.menu-sources .popover input[type=text] { width: 100%; }
.menu-sources .liste-sources { max-height: 300px; overflow-y: auto; }
.menu-sources .pied { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); margin-top: .4rem; padding-top: .4rem; }
.menu-sources .pied button { width: auto; }
.ligne-panneau { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 40px; padding: .35rem .5rem; border: 0; border-radius: var(--r-controle); background: none; color: var(--text); font: inherit; text-align: left; }
.ligne-panneau b { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
label.ligne-panneau { cursor: pointer; }
@media (hover: hover) { label.ligne-panneau:hover { background: var(--surface-2); } }
.corps-fil { flex: 1; min-height: 0; display: flex; position: relative; }
.boite-fil { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.liste-sources { margin: .5rem 0; }

/* Fil : articles en pleine largeur, un sur deux à peine éclairci ; actions en barre à cheval sur le haut de l'article */
.bandeau-fil { flex: none; display: flex; align-items: center; gap: .5rem; min-height: 2.9rem; padding: .4rem .7rem; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface)); font-size: .92rem; cursor: pointer; }
.bandeau-fil > svg { color: var(--accent); } .bandeau-fil b { color: var(--accent); } .bandeau-fil span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.page-articles .fil { flex: 1; min-height: 0; overflow: hidden auto; overscroll-behavior: contain; padding: .5rem 0 1rem; overflow-wrap: anywhere; }
.fil-vignettes .articles { padding: 0 .8rem; }
.page-articles .fil:not(.fil-vignettes) .article { position: relative; padding: .6rem 1rem .6rem .8rem; border-top: 0; }
.page-articles .fil:not(.fil-vignettes) .article:nth-of-type(even) { background: color-mix(in srgb, var(--text) 1.5%, transparent); }
@media (hover: hover) { .page-articles .fil:not(.fil-vignettes) .article:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); } }
.fil-liste .vignette.sans-image { width: 40px; background: none; border-radius: max(4px, calc(var(--r-controle) * .7)); }
.fil-liste .vignette.sans-image .logo { width: 40px; height: 40px; border-radius: inherit; }
.page-articles .fil-liste .article .meta > .logo { display: none; }
.page-articles .fil-liste .article:has(.vignette:not(.sans-image)) .meta > .logo { display: block; }
.fil-liste .article .meta .journal { color: var(--text); font-size: .9rem; }
.fil-liste .article .titre { margin: .05rem 0 .15rem; }
.page-articles .fil:not(.fil-vignettes) .actions { position: absolute; right: .8rem; top: -1.1rem; display: none; gap: .1rem; padding: .2rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); z-index: 3; }
.page-articles .fil:not(.fil-vignettes) .actions .icon-btn { width: 36px; height: 32px; min-width: 0; min-height: 0; padding: 0; border-radius: 8px; }
@media (hover: hover) { .page-articles .fil:not(.fil-vignettes) .article:is(:hover, :focus-within) .actions { display: flex; } .actions [data-hors-sujet]:hover { color: var(--danger); } }
.article.actions-ouvertes { background: var(--surface-2) !important; } .page-articles .article.actions-ouvertes .actions { display: flex !important; }
/* Sélection pour l'envoi manuel : case en haut à gauche de l'article, au survol, à l'appui au doigt et en mode sélection */
.article input.coche-article { position: absolute; top: .45rem; left: .35rem; z-index: 3; margin: 0; display: none; }  /* plus précis que le style commun des cases */
.fil-vignettes .article input.coche-article { top: .6rem; left: .6rem; }
@media (hover: hover) { .page-articles .article:is(:hover, :focus-within) .coche-article { display: block; } }
.page-articles .article.actions-ouvertes .coche-article, .mode-selection .article .coche-article { display: block; }
.mode-selection .article { cursor: pointer; } .mode-selection .article .actions { display: none !important; }
.article.choisi { background: var(--accent-soft) !important; }
/* Revue des posts Bluesky (js/bluesky.js) : texte modifiable puis aperçu de la carte du lien */
.revue-bluesky textarea { width: 100%; resize: vertical; }
.revue-bluesky .compteur-post { text-align: right; font-variant-numeric: tabular-nums; }
.carte-lien { display: block; margin-top: .6rem; border: 1px solid var(--border); border-radius: var(--r-carte); overflow: hidden; color: inherit; text-decoration: none; }
.carte-lien img { display: block; width: 100%; aspect-ratio: 1.91 / 1; max-height: 200px; object-fit: cover; background: var(--surface-2); }
.carte-lien div { display: grid; gap: .2rem; padding: .6rem .8rem; }
.carte-lien span { font-size: .85rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.carte-lien small { font-size: .75rem; color: var(--muted); }
.nouveaux-articles { grid-column: 1 / -1; display: flex; align-items: center; gap: .6rem; margin: .5rem .8rem; color: var(--accent); font-size: .75rem; font-weight: 700; }
.nouveaux-articles span { display: inline-flex; align-items: center; gap: .3rem; }
.nouveaux-articles::before, .nouveaux-articles::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.fin-fil { text-align: center; padding: .4rem 0; min-height: 1.2rem; }
/* « Dernier article » : pastille = articles pas encore lus ; flèche vers le haut si les nouveaux sont en haut */
.vers-dernier { position: absolute; right: .9rem; bottom: .9rem; z-index: 4; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--r-carte); background: var(--surface-2); color: var(--text); box-shadow: var(--shadow); opacity: 0; transform: scale(.8); pointer-events: none; visibility: hidden;
  transition: opacity var(--duree-sortie) var(--ease-in), transform var(--duree-sortie) var(--ease-in), visibility 0s var(--duree-sortie); }
.vers-dernier.on { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity var(--duree-menu) var(--ease-out), transform var(--duree-menu) var(--ease-out), visibility 0s; }
.vers-dernier.on:active { transform: scale(.97); } .vers-dernier.haut > svg { rotate: 180deg; }
.vers-dernier-n { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--accent-text); font-size: .7rem; font-weight: 700; line-height: 20px; }
@media (max-width: 900px) {
  .page-articles { grid-template-columns: minmax(0, 1fr); } .volet { grid-column: 1; } .poignee-col { display: none; }
  /* Colonne en tiroir dans la carte, à la largeur de ses noms */
  .col-criteres { position: absolute; inset: 0 auto 0 0; z-index: 6; width: max-content; min-width: 200px; max-width: 82%; transition: transform var(--duree-menu) var(--ease-out), visibility 0s; box-shadow: 0 0 30px rgb(0 0 0 / .3); }
  .replie .col-criteres { transform: translateX(-102%); visibility: hidden; box-shadow: none; transition: transform var(--duree-sortie) var(--ease-in), visibility 0s linear var(--duree-sortie); }
  .col-criteres nav { padding-right: .4rem; } .nav-item { margin-right: 0; min-height: 44px; } .nav-sec .icon-btn { right: 0; }
  .languette { left: var(--tiroir-w, 240px); z-index: 7; opacity: .85; border-right: 1px solid var(--border); border-left: 0; border-radius: 0 10px 10px 0; transition: left var(--duree-menu) var(--ease-out); }
  .replie .languette { left: 0; transition: left var(--duree-sortie) var(--ease-in); }
  .voile-col { display: block; position: absolute; inset: 0; z-index: 5; background: rgb(0 0 0 / .35); transition: opacity var(--duree-menu) var(--ease-out); }
  .replie .voile-col { opacity: 0; pointer-events: none; transition: opacity var(--duree-sortie) var(--ease-in); }
  .descr-fil { display: none; }
}
/* Colonne repliée : la languette ne recouvre pas les logos */
.replie .fil:not(.fil-vignettes) .article { padding-left: 32px !important; } .replie :is(.tete-fil, .zone-filtres) { padding-left: 36px; } .replie .fil-vignettes .articles { padding-left: 32px; }
@media (max-width: 700px) {
  body.sur-articles main { padding: 16px var(--bas-marge); }
  .card.page-articles { padding: 0; height: calc(100dvh - var(--topbar-h) - var(--bas-h) - 32px); border-radius: 27px; }
  .fil-liste .vignette.sans-image, .fil-liste .vignette.sans-image .logo { width: 32px; height: 32px; }
  .fil-liste .article:has(.vignette.sans-image):not(#x) { row-gap: .1rem; }
  .fil-liste .article:has(.vignette.sans-image):not(#x) :is(.titre, .extrait, .reprises, .trouve) { grid-column: 2 / -1; }
  .fil-liste .article:has(.vignette.sans-image):not(#x) .vignette { grid-row: 1 / span 4; }
  .etat-fil > span, .envoi-manuel .texte-btn { display: none; } .etat-fil { padding: .2rem .35rem; }
  .zone-filtres .outils .chips { flex: 1 1 100%; } .bouton-suite .resume { display: none; }
}

/* Nom d'un groupe de mots (éditeur) : modifiable au clic */
.nom-groupe { display: inline-flex; align-items: center; gap: .3rem; border: 0; background: none; color: inherit; font: inherit;
  padding: .1rem .3rem; margin-left: -.3rem; border-radius: var(--r-petit); cursor: text; }
.nom-groupe svg { opacity: 0; transition: opacity 150ms var(--ease-out); }
.nom-groupe:hover { background: var(--surface-2); }
.nom-groupe:hover svg, .nom-groupe:focus-visible svg { opacity: .7; }
.nom-groupe.defaut { color: var(--muted); }
.champ-nom-groupe { font: inherit; font-weight: 600; padding: .15rem .4rem; width: 14rem; max-width: 60%; }

/* Cloche coupée d'un critère (colonne de la page Articles) */
.cloche-coupee { display: inline-flex; vertical-align: -1px; margin-left: .3rem; color: var(--muted); }

/* Onglet admin « Messages » (menu Contact) */
.liste-messages { margin-top: .9rem; }
.message-contact { padding: .8rem 0; border-top: 1px solid var(--border); }
.message-contact.traite { opacity: .55; }
.entete-message { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.message-contact p { margin: .45rem 0 .25rem; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---- Téléphone : place maximale pour le contenu (marges réduites, rien ne dépasse à droite) ---- */
@media (max-width: 700px) {
  main { padding: .8rem var(--bas-marge) calc(var(--bas-h) + 20px); }   /* bords alignés sur les pilules du haut et du bas */
  .card { padding: .8rem .75rem; }
  .page-head { margin-bottom: .8rem; gap: .5rem; }
  /* Éditeur : parenthèses imbriquées sans retrait à droite, mots longs qui passent à la ligne */
  .parentheses { padding: .2rem .3rem .4rem .4rem; }
  .groupe { padding: .5rem .5rem .55rem; }
  .groupe .chips input { min-width: 90px; }
  .groupe .mot-chip, .groupe .etiquettes-sources .tag { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
  .grid-editeur > *, .groupe, .parentheses { min-width: 0; }
  /* Administration : les tableaux défilent dans leur carte, jamais la page */
  #onglet .card { overflow-x: auto; }
  /* Tuiles de chiffres : compactes, deux par ligne */
  .stats { gap: .5rem; }
  .stat { gap: .55rem; padding: .55rem .6rem; }
  .stat .pastille { width: 32px; height: 32px; border-radius: var(--r-petit); }
  .stat .pastille svg { width: 17px; height: 17px; }
  .stat b { font-size: 1.05rem; }
  .stat span { font-size: .72rem; line-height: 1.25; display: block; }
  .liste-cartes .pastille { width: 36px; height: 36px; border-radius: var(--r-controle); }
  /* Fenêtres : presque tout l'écran */
  .voile { padding: 8px; }
  .fenetre { max-height: calc(100dvh - 16px); }
}

/* ---- Page Sources (pages/sources.js, maquette/sources.html) ---- */
.outils-sources { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.outils-sources .search { flex: 1 1 220px; max-width: none; margin: 0; }
.outils-sources .seg { max-width: 100%; overflow-x: auto; }
.barre-selection { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--border); }
.barre-selection .compte { font-size: .85rem; color: var(--muted); margin-right: .3rem; }
.groupe-sources h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1.3rem 0 .4rem; }
.groupe-sources h3 { font-size: .85rem; margin: .9rem 0 .2rem; color: var(--text); }
.source { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: .2rem .7rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--border); }
.groupe-sources h2 + .source, .groupe-sources h3 + .source { border-top: 0; }
.source .case { width: 18px; height: 18px; accent-color: var(--accent); }
.source > .logo { width: 26px; height: 26px; border-radius: var(--r-petit); }
.source .nom { font-weight: 600; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; min-width: 0; cursor: pointer; }
.source .details { grid-column: 3; font-size: .78rem; color: var(--muted); display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; overflow-wrap: anywhere; cursor: pointer; }
.source .droite { grid-row: 1 / span 2; grid-column: 4; display: flex; align-items: center; gap: .1rem; }
.source .deplier svg { transition: transform var(--duree-menu) var(--ease-out); transform: rotate(-90deg); }
.source .deplier.ouvert svg { transform: none; }
.source.masquee > :not(.droite) { opacity: .45; }
.source.bloquee { background: repeating-linear-gradient(-45deg, transparent 0 8px, color-mix(in srgb, var(--danger) 6%, transparent) 8px 16px); }
.source .pages { grid-column: 3 / -1; margin-top: .3rem; font-size: .8rem; }
.source .pages div { display: flex; gap: .5rem; align-items: center; padding: .25rem 0; color: var(--muted); flex-wrap: wrap; }
.adresse { font-family: var(--mono); font-size: .78rem; color: var(--text); overflow-wrap: anywhere; }
.proposees .proposee { padding: .7rem 0; border-top: 1px solid var(--border); display: grid; gap: .3rem; }
.proposees .intertitre + .proposee { border-top: 0; }
.proposee .haut { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.proposee .boutons { display: flex; gap: .4rem; flex-wrap: wrap; }
/* Lignes à cocher d'une fenêtre (canaux, critères) */
.ligne-case { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; cursor: pointer; }
.ligne-case input { accent-color: var(--accent); }

/* Article vérifié par l'IA : coche verte seule, libellé en bulle au survol */
.verifie-ia { display: inline-flex; align-items: center; color: var(--ok); }

@media (max-width: 700px) {
  .source { column-gap: .5rem; }
  .source .details { grid-column: 2 / 4; }
}

/* ---- Réduction de mouvement et de transparence (réglages du système) ---- */
/* Mouvement réduit : on garde les fondus, on retire déplacements, échelles et flous */
@media (prefers-reduced-motion: reduce) {
  @keyframes entree-ligne { from { opacity: 0; } }
  @keyframes entree-carte { from { opacity: 0; } }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  :is(.btn, .icon-btn, .round, .side-link, .seg button, .me-link, .card.cliquable):is(:active, :hover) { transform: none !important; }
  .toast-temps { animation-duration: var(--duree-toast, 3s) !important; }  /* la barre de temps est une information, pas une décoration */
}
@media (prefers-reduced-motion: reduce) {
  .col-criteres, .page-articles, .languette, .tiroir, .vers-dernier { transition: opacity 150ms linear, visibility 0s !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar-verre, .sidebar-verre { background: var(--surface) !important; }
  * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .connexion-boite { background: var(--surface); }
}
.pied-formulaire { margin-top: .9rem; }

/* ---- Téléphone : deux pilules de verre flottantes (barre du haut, barre du bas), tiroir ☰ (docs/UI_TECHNIQUE.md § 24 et 27).
   Le verre est sur un calque à part : un backdrop-filter sur une barre en ferait le repère de ses fenêtres fixes. Concentricité :
   haut 56 px (28) − liseré 1 − marge 5 = 44 px (22) ; bas 66 px (33) − 6 = entrées de 54 px, dont la pastille a la taille. ---- */
.menu-bas, .profil-bas, .tiroir, .voile-tiroir { display: none; }
@media (max-width: 700px) {
  :root { --sidebar-w: 0px; --bas-barre: 66px; --bas-sous: 10px; --bas-marge: 16px; --bas-pad: 5px; --bas-h: calc(var(--bas-barre) + var(--bas-sous));
    --haut-dessus: 4px; --haut-barre: 56px; --haut-pad: 5px; --topbar-h: calc(var(--haut-dessus) + var(--haut-barre)); --marge-fenetre: var(--bas-marge); }
  .topbar { inset: var(--haut-dessus) var(--bas-marge) auto; height: var(--haut-barre); grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 4px;
    padding: 0 var(--haut-pad); border: 1px solid transparent; border-radius: 99px; background: none; }
  .topbar-verre, .sidebar-verre { display: block; position: fixed; left: var(--bas-marge); right: var(--bas-marge); pointer-events: none; border-radius: 99px;
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); background: color-mix(in srgb, var(--surface) 68%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
    box-shadow: 0 8px 28px rgb(0 0 0 / .18), inset 0 1px 0 rgb(255 255 255 / .12); }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .topbar-verre, .sidebar-verre { background: var(--surface); } }
  .topbar-verre { z-index: 29; top: var(--haut-dessus); height: var(--haut-barre); }
  .sidebar-verre { z-index: 25; bottom: var(--bas-sous); height: var(--bas-barre); }
  .topbar-ombre, .sidebar-ombre { display: block; position: fixed; z-index: 24; left: 0; right: 0; pointer-events: none; }
  .topbar-ombre { top: 0; height: calc(var(--topbar-h) + 20px); background: linear-gradient(to bottom, var(--paliers)); }
  .sidebar-ombre { bottom: 0; height: calc(var(--bas-h) + 34px); background: linear-gradient(to top, var(--paliers)); }
  .brand, .brand-name, .topbar .me-link, .topbar .abo-pill, .search kbd, .side-bord, .reglage-barre { display: none; }
  .menu-bas { display: grid; }
  .topbar .round { width: 44px; height: 44px; }
  .search input[type=text] { height: 44px; padding: 0 8px 0 40px; text-overflow: ellipsis; }
  .search > svg { left: 14px; }
  .search .dropdown { position: fixed; top: calc(var(--topbar-h) + var(--esp-2)); left: var(--bas-marge); right: var(--bas-marge); max-height: calc(100dvh - var(--topbar-h) - var(--bas-h) - 16px); }
  /* Barre du bas : cinq entrées par écran, en parts égales ; au-delà (outils de l'admin) elle défile */
  .sidebar { top: auto; bottom: var(--bas-sous); left: var(--bas-marge); right: var(--bas-marge); width: auto; height: var(--bas-barre); flex-direction: row;
    align-items: stretch; gap: 0; padding: var(--bas-pad); border: 1px solid transparent; border-radius: 99px; background: none; overflow: auto hidden;
    overscroll-behavior-x: contain; scrollbar-width: none; touch-action: pan-x; }
  .sidebar::-webkit-scrollbar { display: none; }
  .side-sep, .side-space, .sidebar .hors-bas { display: none; }
  .side-link { flex: 0 0 calc((100vw - 2 * var(--bas-marge) - 2 * var(--bas-pad) - 2px) / 5); width: auto; min-width: 0; padding: 0; gap: 3px; justify-content: center;
    font-size: .62rem; line-height: 1.1; white-space: nowrap; overflow: hidden; border-radius: 99px; order: var(--ordre-bas, 0); }
  .profil-bas { display: flex; order: 99; }
  .profil-bas .avatar { width: 20px; height: 20px; font-size: .7rem; border: 0; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px transparent; transition: box-shadow .2s var(--ease-out); }
  .profil-bas.ouvert .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--accent); }
  /* Tiroir ☰ : panneau flottant entre les deux barres, même marge qu'elles ; le voile n'intercepte rien (app.js) */
  .tiroir { display: block; position: fixed; top: calc(var(--topbar-h) + var(--esp-2)); bottom: calc(var(--bas-h) + var(--esp-2)); left: var(--bas-marge); z-index: 41;
    width: max-content; min-width: 220px; max-width: 86vw; padding: .6rem .5rem .8rem; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-menu); box-shadow: 0 12px 32px -12px rgb(0 0 0 / .4);
    transform: translateX(calc(-100% - var(--bas-marge) - 2px)); visibility: hidden;
    transition: transform var(--duree-sortie) var(--ease-in), visibility 0s linear var(--duree-sortie); }
  .tiroir.ouvert { transform: none; visibility: visible; transition: transform 260ms var(--ease-out), visibility 0s; }
  .voile-tiroir { display: block; position: fixed; inset: 0; z-index: 28; background: rgb(0 0 0 / .4); opacity: 0; pointer-events: none; transition: opacity var(--duree-sortie) var(--ease-in); }
  .voile-tiroir.ouvert { opacity: 1; transition: opacity 260ms var(--ease-out); }
  /* Tiroir tiré au doigt depuis le bord gauche (geste.js) : il suit sans transition */
  .tiroir.suit, .voile-tiroir.suit { visibility: visible; transition: none; }
  .mh-titre { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .45rem .55rem .2rem; }
  .mh-sep { height: 1px; background: var(--border); margin: .35rem .55rem; }
  .mh-ligne { display: flex; align-items: center; gap: .65rem; width: 100%; min-height: 44px; padding: .45rem .55rem; border: 0; background: none; color: var(--text); font: inherit; font-size: .95rem;
    text-align: left; cursor: pointer; border-radius: max(calc(var(--r-menu) - 9px), calc(var(--r-menu) / 2)); transition: background-color 150ms var(--ease-out), transform 120ms var(--ease-out); }
  .mh-ligne:active { transform: scale(.97); }
  .mh-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: var(--r-controle); background: var(--surface-2); color: var(--muted); }
  .mh-ligne.actif { background: var(--accent-soft); color: var(--accent); } .mh-ligne.actif .mh-ic { color: inherit; }
}
/* iPhone : arrondi parallèle au coin de l'écran. Même écart sur les côtés et dessous = rayon du coin − moitié de la barre ; le
   rayon du coin (--ecran-r, en points) se devine à la largeur de l'écran en portrait */
@supports (-webkit-touch-callout: none) { @media (max-width: 700px) {
  :root { --ecran-r: 55px; --bas-barre: 74px; --bas-sous: max(14px, calc(var(--ecran-r) - var(--bas-barre) / 2)); --bas-marge: var(--bas-sous); }
  @media (max-width: 379px) { :root { --ecran-r: 39px; } }                          /* X, XS, 11 Pro, mini */
  @media (min-width: 380px) and (max-width: 392px) { :root { --ecran-r: 47px; } }  /* 12 à 14 */
  @media (min-width: 400px) and (max-width: 409px) { :root { --ecran-r: 62px; } }  /* 16 Pro, 17, 17 Pro */
  @media (min-width: 410px) and (max-width: 419px) { :root { --ecran-r: 41px; } }  /* XR, 11, XS Max */
  @media (min-width: 420px) and (max-width: 429px) { :root { --ecran-r: 47px; } }  /* Pro Max et Plus */
  @media (min-width: 436px) { :root { --ecran-r: 62px; } }                          /* 16 et 17 Pro Max */
} }
@media (pointer: coarse) {
  .round { width: 40px; height: 40px; }
  .tag button { min-width: 24px; min-height: 24px; place-items: center; }
  .curseur-periode .crans button { padding: .35rem .2rem; }
}
/* Couleur d'accent (page Compte) : pastilles rondes, l'active entourée */
.accents { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.puce { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); background: var(--c);
  cursor: pointer; padding: 0; transition: transform 120ms var(--ease-out), box-shadow 150ms var(--ease-out); }
.puce:active { transform: scale(.92); }
.puce.actif { box-shadow: 0 0 0 2px var(--text); }
@media (pointer: coarse) { .puce { width: 32px; height: 32px; } }

/* États vides : une icône, une phrase qui explique, une action */
.card.empty h3 { margin: 0; color: var(--text); }
.card.empty p { margin: .35rem auto 1rem; max-width: 46ch; }
.pastille.centre { margin: 0 auto .6rem; }

/* Carte « Tes premiers pas » (liste des critères) : progression, étapes cochées d'après le compte */
.entete-carte { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.entete-carte h3 { margin: 0; }
.entete-carte .espace { flex: 1; }
.progression { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: .3rem 0 .6rem; }
.progression div { height: 100%; background: var(--accent); border-radius: 99px; transform-origin: left; transition: transform 400ms var(--ease-in-out); }
.etape { display: flex; align-items: center; gap: .65rem; width: 100%; min-height: 44px; padding: .35rem .5rem; border: 0; background: none; color: var(--text);
  font: inherit; text-align: left; cursor: pointer; border-radius: max(3px, calc(var(--r-carte) - 8px));
  animation: revele 400ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * var(--decalage-ligne)); }
@media (hover: hover) { .etape:hover { background: var(--surface-2); } }
.etape .rond { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; flex: none; color: transparent; }
.etape.fait .rond { background: var(--ok); border-color: var(--ok); color: #fff; }
.etape.fait .nom { color: var(--muted); text-decoration: line-through; }
.etape small { display: block; color: var(--muted); }
.premiers-pas + .stats { margin-top: 1rem; }

/* Page 404 « Il n'y a rien par ici » (app.js, introuvable ; et app/static/404.html) */
.rien-par-ici { text-align: center; padding: 2.4rem 1.2rem; max-width: 560px; margin-top: 6vh !important; }
.rien-par-ici .grand { font: 700 3.6rem/1 var(--police-titre); color: color-mix(in srgb, var(--muted) 45%, transparent); }
.rien-par-ici h1 { margin: .5rem 0 0; font-size: 1.4rem; }
.rien-par-ici p { margin: .4rem auto 1.2rem; max-width: 36ch; }
.actions-rien { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.adresse-demandee { font: .78rem var(--mono); color: var(--muted); margin-top: 1rem; overflow-wrap: anywhere; }

/* Petites classes utilitaires (remplacent les styles en ligne répétés des pages) */
.m-0 { margin: 0 !important; } .mt-0 { margin-top: 0 !important; }
.libelle-reglage { font-size: .95rem; }
.defile-x { overflow-x: auto; }
.mono { font-family: var(--mono); }
.texte { color: var(--text); }
.couleur-heritee { color: inherit; }
.rang { display: flex; align-items: center; gap: .5rem; }
.flex-1 { flex: 1; }
.pleine-largeur { width: 100%; }
.nowrap { white-space: nowrap; }
.ajout-compte .erreur-formulaire { flex-basis: 100%; margin-top: 0; }

/* Entrée des listes de cartes (critères, canaux, modèles) : révélation décalée de 30 ms, plafonnée à 10 lignes.
   Jamais sur le fil des articles, qui défile et se recharge sans cesse. */
.liste-cartes > .card, .modeles > .card { animation: revele 400ms var(--ease-out) backwards; }
.liste-cartes > .card:nth-child(2), .modeles > .card:nth-child(2) { animation-delay: 30ms; }
.liste-cartes > .card:nth-child(3), .modeles > .card:nth-child(3) { animation-delay: 60ms; }
.liste-cartes > .card:nth-child(4), .modeles > .card:nth-child(4) { animation-delay: 90ms; }
.liste-cartes > .card:nth-child(5), .modeles > .card:nth-child(5) { animation-delay: 120ms; }
.liste-cartes > .card:nth-child(6), .modeles > .card:nth-child(6) { animation-delay: 150ms; }
.liste-cartes > .card:nth-child(7), .modeles > .card:nth-child(7) { animation-delay: 180ms; }
.liste-cartes > .card:nth-child(8), .modeles > .card:nth-child(8) { animation-delay: 210ms; }
.liste-cartes > .card:nth-child(9), .modeles > .card:nth-child(9) { animation-delay: 240ms; }
.liste-cartes > .card:nth-child(n+10), .modeles > .card:nth-child(n+10) { animation-delay: 270ms; }

/* Éditeur, carte « Recevoir » : interrupteur « Critère actif » en face du titre ; en pause, réglages grisés (gardés) */
.entete-recevoir { align-items: flex-start; }
.entete-recevoir .intertitre { flex: 1; min-width: 0; padding-top: .2rem; }
.entete-recevoir .espace { display: none; }
.actif-critere { flex: none; }
.actif-critere { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .9rem; cursor: pointer; }
.actif-critere .switch { display: inline-block; }
.reglages-recevoir { transition: opacity 200ms var(--ease-out), filter 200ms var(--ease-out); }
.reglages-recevoir.en-pause { opacity: .45; filter: grayscale(1); pointer-events: none; user-select: none; }
.panneau-vide { padding: .5rem; }
.panneau-aide { padding: 0 .5rem .3rem; }
.sources-recherche .chips { flex: 1; min-width: 0; }

/* Abonnement (abonnement.js, repris du Jeu des Explorateurs ; maquettes maquette/abonnement.html et abonnement-offres.html) */
.abo { display: flex; flex-direction: column; gap: .7rem; --h-carte: 62px; --ecart: 8px; }
.abo-sous-titre { margin: 0; color: var(--muted); font-size: .9rem; }
/* Onglets d'offre : bascule à trois positions, curseur qui glisse */
.abo-offres { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--border); }
.abo-offres button { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); font: inherit; font-size: .85rem;
  font-weight: 700; padding: .4rem .5rem; border-radius: 99px; cursor: pointer; transition: color var(--duree-menu) var(--ease-out); }
.abo-offres button[aria-selected="true"] { color: var(--accent-text); }
.abo-offres .curseur { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 99px;
  background: var(--accent); transition: transform 260ms var(--ease-in-out); }
.abo-offres[data-offre="structure"] .curseur { transform: translateX(100%); }
.abo-offres[data-offre="equipe"] .curseur { transform: translateX(200%); }
.abo-desc { margin: 0; height: 3em; line-height: 1.5; color: var(--muted); font-size: .88rem; }   /* même hauteur pour les trois offres */
.abo-change { opacity: 0; filter: blur(3px); }
.abo-desc, .abo-formules, .abo-action { transition: opacity 120ms var(--ease-out), filter 120ms var(--ease-out); }
.bientot { display: inline-block; margin-left: .35rem; padding: 0 7px; border: 1px solid var(--border); border-radius: 99px;
  font-size: .68rem; font-weight: 700; color: var(--muted); vertical-align: 1px; text-transform: uppercase; letter-spacing: .03em; }
/* Formules à hauteur fixe (trois cartes) : le tableau ne bouge pas d'une offre à l'autre ; deux cartes gardent le même
   écart, centrées dans la même hauteur */
.abo-formules { display: grid; height: calc(3 * var(--h-carte) + 4 * var(--ecart)); gap: var(--ecart); align-content: center; }
.abo-formule { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem;
  height: var(--h-carte); padding: 0 14px; border: 1.5px solid var(--border); border-radius: var(--r-controle); background: var(--surface-2); cursor: pointer;
  transition: border-color var(--duree-menu) var(--ease-out), background-color var(--duree-menu) var(--ease-out), transform 120ms var(--ease-out); }
.abo-formule:active { transform: scale(.99); }
.abo-formule input { position: absolute; opacity: 0; pointer-events: none; }
.abo-formule .rond { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center;
  transition: border-color var(--duree-menu) var(--ease-out); }
.abo-formule .rond::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: scale(0);
  transition: transform var(--duree-menu) var(--ease-out); }
.abo-formule:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.abo-formule:has(input:checked) .rond { border-color: var(--accent); }
.abo-formule:has(input:checked) .rond::after { transform: scale(1); }
.abo-formule:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.abo-formule b { display: block; }
.abo-formule small { color: var(--muted); font-size: .8rem; }
.abo-formule .prix { text-align: right; font-weight: 800; font-size: 1.05rem; }
.abo-formule .prix small { display: block; font-weight: 500; }
.abo-formule .economie { position: absolute; top: -9px; right: 12px; background: var(--accent); color: var(--accent-text); font-size: .7rem;
  font-weight: 800; padding: 1px 8px; border-radius: 99px; }
.abo-comparatif { border: 1px solid var(--border); border-radius: var(--r-controle); background: var(--surface-2); overflow: hidden; }
.abo-comparatif .c-tete, .abo-comparatif .c-ligne { display: grid; grid-template-columns: 1fr repeat(3, 76px); align-items: center; }
.abo-comparatif .c-tete { border-bottom: 1px solid var(--border); }
.abo-comparatif .c-tete button { border: 0; background: none; font: inherit; font-size: .76rem; font-weight: 700; color: var(--muted);
  padding: 9px 2px; cursor: pointer; align-self: stretch; transition: color var(--duree-menu) var(--ease-out), background-color 260ms var(--ease-in-out); }
.abo-comparatif .c-ligne { border-bottom: 1px solid var(--border); }
.abo-comparatif .c-ligne > span:first-child { padding: 8px 12px; }
.abo-comparatif b { display: block; font-size: .88rem; font-weight: 600; }
.abo-comparatif small { color: var(--muted); font-size: .76rem; }
.abo-comparatif .c-val { display: grid; place-items: center; align-self: stretch; text-align: center; font-size: .82rem; font-weight: 700;
  line-height: 1.15; padding: 4px 2px; transition: background-color 260ms var(--ease-in-out); }
.abo-comparatif .c-val small { display: block; font-weight: 500; font-size: .7rem; }
.abo-comparatif[data-offre="particulier"] [data-col="particulier"], .abo-comparatif[data-offre="structure"] [data-col="structure"],
.abo-comparatif[data-offre="equipe"] [data-col="equipe"] { background: var(--accent-soft); color: var(--text); }
.abo-comparatif .coche { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  color: var(--ok); background: color-mix(in srgb, var(--ok) 18%, transparent); }
.abo-comparatif .non { color: var(--muted); }
.abo-comparatif p { margin: 0; padding: 8px 12px; text-align: center; color: var(--muted); font-size: .8rem;
  background: color-mix(in srgb, var(--surface) 55%, var(--surface-2)); }
.abo-avis { margin: 0; padding: .55rem .7rem; border-radius: var(--r-controle); background: var(--surface-2); border: 1px dashed var(--border);
  font-size: .85rem; color: var(--muted); }
.abo-avis b { color: var(--text); }
@media (max-width: 480px) {
  .abo-desc { height: 4.5em; }
  .abo-comparatif .c-tete, .abo-comparatif .c-ligne { grid-template-columns: 1fr repeat(3, 60px); }
  .abo-comparatif .c-tete button { font-size: .64rem; } }
@media (prefers-reduced-motion: reduce) { .abo-offres .curseur { transition: none; } .abo-change { filter: none; } }
.abo-test { margin: 0; padding: .4rem .6rem; border-radius: var(--r-controle); background: var(--accent-soft); font-size: .85rem; }
.abo-cgv { margin: 0; color: var(--muted); font-size: .82rem; }
.abo-cgv a { color: var(--accent); }
.abo-pied { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .2rem; }
.abo-lien { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: .9rem; cursor: pointer; }
/* Fonction réservée, fin d'essai : icône dans une pastille et titre centrés (le titre de la fenêtre est masqué) */
.fenetre.avec-entete .entete-fenetre { margin-bottom: 0; }
.fenetre.avec-entete .entete-fenetre h2 { visibility: hidden; }
.abo-entete { display: grid; justify-items: center; text-align: center; gap: .3rem; margin-top: -1.6rem; padding-bottom: .2rem; }
.abo-entete .pastille { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.abo-entete h2 { margin: .2rem 0 0; font-size: 1.2rem; }
.tag.abonnes { background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .75rem; padding: 1px 8px; }
.carte-abo .statut { display: flex; align-items: center; gap: .7rem; }
.carte-abo .statut .pastille { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); flex: none; }
.carte-abo .statut b { display: block; }
.carte-abo .gratuit { margin: .8rem 0 0; padding: 0; list-style: none; display: grid; gap: .35rem; font-size: .88rem; color: var(--muted); }
.carte-abo .gratuit li { display: flex; align-items: center; gap: .45rem; }
.carte-abo .gratuit .verrouille { opacity: .55; }
