/* ActifBase — design system commun (mobile d'abord, mode sombre automatique). */

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #efede6;
  --ink: #14202e;
  --muted: #55606d;
  --line: #dedad0;
  --accent: #0d5c4b;
  --accent-ink: #ffffff;
  --accent-soft: #e2efe9;
  --brass: #8a6420;
  --danger: #a3261b;
  --focus: #1a66d6;
  --c-verse: #3a5573;
  --c-gains: #2f8f6f;
  --c-reel: #b07a1f;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgb(20 32 46 / 6%), 0 8px 24px rgb(20 32 46 / 6%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-titre: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --pad: clamp(0.875rem, 4vw, 1.5rem);
  --max: 72rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c131b;
    --surface: #121b25;
    --surface-2: #18232f;
    --ink: #e7ebef;
    --muted: #a0abb7;
    --line: #263443;
    --accent: #5cc4a1;
    --accent-ink: #062019;
    --accent-soft: #143229;
    --brass: #dcb36a;
    --danger: #ff8a7d;
    --focus: #7fb0ff;
    --c-verse: #7d97b5;
    --c-gains: #4fbf95;
    --c-reel: #e0b45e;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
}
main { flex: 1; overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-titre); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 6vw, 2.6rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.3rem, 4.5vw, 1.75rem); margin: 2.5rem 0 0.75rem; }
h3 { font-size: clamp(1.1rem, 3.8vw, 1.3rem); margin: 1.75rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }
strong { font-weight: 650; }
code, .formule { font-family: var(--mono); font-size: 0.92em; }
.formule {
  display: block;
  overflow-x: auto;
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
[hidden] { display: none !important; }
.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lien-evitement { position: absolute; left: 0.5rem; top: -3rem; z-index: 10; padding: 0.5rem 1rem; background: var(--surface); }
.lien-evitement:focus { top: 0.5rem; }

/* Mise en page */
.conteneur { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.etroit { max-width: 46rem; }
.section { padding: 2rem 0; }

/* En-tête */
.entete { border-bottom: 1px solid var(--line); background: var(--surface); }
.entete .conteneur { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem; min-height: 3.75rem; padding-block: 0.5rem; }
.logo { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); text-decoration: none; font: 650 1.15rem/1 var(--font-titre); letter-spacing: 0.01em; }
.logo svg { width: 1.6rem; height: 1.6rem; flex: none; }
.nav ul { display: flex; flex-wrap: wrap; gap: 0 1.1rem; list-style: none; margin: 0; padding: 0; }
.nav li + li { margin: 0; }
.nav a { display: inline-block; padding: 0.45rem 0; color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }

/* Fil d'Ariane */
.ariane { font-size: 0.85rem; color: var(--muted); margin: 1.25rem 0 0.75rem; }
.ariane ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.ariane li + li { margin: 0; }
.ariane li + li::before { content: "›"; margin-right: 0.35rem; color: var(--muted); }
.ariane a { color: var(--muted); }

/* En-tête de page */
.chapeau { font-size: 1.075rem; color: var(--muted); max-width: 46rem; }
.hero { padding: 2.5rem 0 1.5rem; }
.hero .sur-titre { color: var(--brass); font-size: 0.8rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.5rem; }

/* Cartes */
.carte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--pad); box-shadow: var(--shadow); }
.grille { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.carte-outil { position: relative; display: flex; flex-direction: column; gap: 0.5rem; }
.carte-outil h2, .carte-outil h3 { margin: 0; font-size: 1.2rem; }
.carte-outil p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.carte-outil a.etirer { color: var(--ink); text-decoration: none; }
.carte-outil a.etirer::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.carte-outil:hover { border-color: var(--accent); }
.hero-exemple { margin: 0.9rem 0 0; font-size: 0.92rem; color: var(--muted); max-width: 46rem; }
.hero-exemple strong { color: var(--brass); }
.carte-outil .exemple-carte { margin: 0.25rem 0 0; padding: 0.55rem 0.75rem; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink); font-size: 0.85rem; line-height: 1.5; }
.carte-outil .exemple-carte strong { color: var(--brass); font-weight: 650; }
.carte-outil .lien-action { margin-top: auto; padding-top: 0.5rem; color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.carte-outil.bientot { box-shadow: none; background: transparent; border-style: dashed; }
.carte-outil.bientot:hover { border-color: var(--line); }
.carte-outil.bientot h3 { color: var(--muted); }
.badge { align-self: flex-start; font-size: 0.72rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.badge.neutre { background: var(--surface-2); color: var(--muted); }

.atouts { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); padding: 0; list-style: none; }
.atouts li + li { margin: 0; }
.atouts strong { display: block; font-family: var(--font-titre); font-size: 1.1rem; margin-bottom: 0.25rem; }
.atouts span { color: var(--muted); font-size: 0.95rem; }

/* Formulaires */
.champs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
fieldset { border: 0; margin: 0 0 1.25rem; padding: 0; min-width: 0; }
legend { font-weight: 650; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; padding: 0; }
.champs + .champ { margin-top: 1rem; }
.champ { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.champ label, .champ .etiquette { font-weight: 600; font-size: 0.92rem; }
.champ.large { grid-column: 1 / -1; }
.champ-pied { display: flex; flex-direction: column; gap: 0.3rem; }
.champ-pied:has(.aide:empty):has(.erreur:empty) { display: none; }
.saisie { position: relative; display: flex; }
.saisie input, .saisie select, .champ textarea, .champ > input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  appearance: none;
}
.saisie select { padding-right: 2.2rem; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 1.1rem center, right 0.8rem center; background-size: 0.3rem 0.3rem; background-repeat: no-repeat; }
.saisie .unite { position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: 0.95rem; }
.saisie:has(.unite) input { padding-right: 2.4rem; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.aide { font-size: 0.82rem; color: var(--muted); }
.erreur { font-size: 0.85rem; color: var(--danger); font-weight: 600; }
.erreur:empty { display: none; }
.choix { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choix label { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 500; cursor: pointer; background: var(--surface); min-height: 2.75rem; }
.choix label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choix input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; margin: 0; }
.choix label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choix input:focus-visible { outline: none; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.75rem; padding: 0.55rem 1.1rem; font: 600 0.95rem/1.2 var(--font); border-radius: var(--radius-sm); border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none; }
.bouton:hover { filter: brightness(1.08); }
.bouton.secondaire { background: transparent; color: var(--accent); }
.bouton.discret { background: transparent; border-color: var(--line); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.statut { font-size: 0.85rem; color: var(--muted); min-height: 1.3em; }

/* Outil */
.outil { display: grid; gap: 1.25rem; margin: 1.5rem 0 2rem; }
.outil-resultats { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
@media (min-width: 60rem) {
  .outil { grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); align-items: start; }
  .outil-formulaire { position: sticky; top: 1rem; }
  .outil-formulaire .champs { grid-template-columns: 1fr 1fr; }
  /* Alignement : les libellés, saisies et aides d'une même rangée partagent les mêmes lignes de grille. */
  @supports (grid-template-rows: subgrid) {
    .outil-formulaire .champs { row-gap: 0; }
    .outil-formulaire .champs > .champ { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0.3rem; align-content: start; padding-bottom: 1rem; }
    .outil-formulaire .champs > .champ > :first-child { align-self: end; }
  }
}
.chiffres { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); margin: 0; }
.chiffre { padding: 0.85rem 1rem; border-radius: var(--radius-sm); background: var(--surface-2); min-width: 0; }
.chiffre dt { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.chiffre dd { overflow-wrap: anywhere; margin: 0.15rem 0 0; font: 650 clamp(1.05rem, 4.2vw, 1.3rem)/1.25 var(--font); font-variant-numeric: tabular-nums; }
.chiffre.principal { grid-column: 1 / -1; background: var(--accent); color: var(--accent-ink); }
.chiffre.principal dt { color: inherit; opacity: 0.85; }
.chiffre.principal dd { font-size: clamp(1.5rem, 7vw, 2.1rem); }
.phrase-resultat { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Bandeau de résultat (mobile) : collé en bas tant que le formulaire est affiché et les résultats hors écran */
.bandeau-resultat { position: fixed; left: 0.5rem; right: 0.5rem; bottom: max(0.5rem, env(safe-area-inset-bottom)); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.6rem 0.9rem; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); text-decoration: none; box-shadow: var(--shadow); font-variant-numeric: tabular-nums; line-height: 1.3; transform: translateY(calc(100% + 1rem)); visibility: hidden; }
.bandeau-resultat.visible { transform: none; visibility: visible; }
.bandeau-libelle { display: block; font-size: 0.78rem; opacity: 0.9; }
.bandeau-resultat strong { font-size: 1.15rem; }
.bandeau-lien { flex: none; font-size: 0.85rem; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { .bandeau-resultat { transition: transform 0.2s ease, visibility 0.2s; } }
@media (min-width: 60rem) { .bandeau-resultat { display: none; } }

/* Comparatif (calcul de la flat tax) */
.verdict { padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); }
.verdict p { margin: 0; }
.verdict .verdict-titre { font: 650 clamp(1.15rem, 4.5vw, 1.4rem)/1.3 var(--font); }
.verdict .verdict-detail { margin-top: 0.3rem; font-size: 0.92rem; opacity: 0.92; }
.comparatif td:first-child, .comparatif th:first-child { white-space: normal; }
.comparatif tfoot td, .comparatif tfoot th { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; }
.comparatif .gagnant { background: var(--accent-soft); }
.notes { display: grid; gap: 0.6rem; padding: 0; margin: 0; list-style: none; font-size: 0.92rem; }
.notes li + li { margin: 0; }
.notes li { padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); background: var(--surface-2); border-left: 3px solid var(--line); }
.notes li.attention { border-left-color: var(--brass); }
details > .notes { margin-top: 0.75rem; }
.autres-outils h2 { margin-top: 3rem; }

/* Graphique */
.legende { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; list-style: none; padding: 0; margin: 0 0 0.75rem; font-size: 0.85rem; color: var(--muted); }
.legende li + li { margin: 0; }
.legende i { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 3px; margin-right: 0.35rem; vertical-align: -0.1rem; }
.legende .ligne i { height: 3px; border-radius: 2px; vertical-align: 0.2rem; }
.legende .verse i { background: var(--c-verse); }
.legende .gains i { background: var(--c-gains); }
.legende .reel i { background: var(--c-reel); }
.outil-resultats h2 { margin: 0; }
.outil-resultats h3 { margin: 0.5rem 0 0.5rem; }
details > .tableau-defilant { margin-top: 0.75rem; }
details > summary.bouton { list-style: none; }
details > summary.bouton::-webkit-details-marker { display: none; }
.graphique { position: relative; aspect-ratio: 16 / 10; min-height: 14rem; max-height: 26rem; width: 100%; touch-action: pan-y; }
.graphique svg { display: block; width: 100%; height: 100%; overflow: visible; }
.graphique text { fill: var(--muted); font: 11px var(--font); font-variant-numeric: tabular-nums; }
.graphique .grille-axe { stroke: var(--line); stroke-width: 1; }
.graphique .curseur { stroke: var(--muted); stroke-dasharray: 3 3; }
.infobulle { position: absolute; top: 0; z-index: 2; min-width: 11rem; padding: 0.55rem 0.7rem; font-size: 0.8rem; line-height: 1.45; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); pointer-events: none; font-variant-numeric: tabular-nums; }
.infobulle[hidden] { display: none; }
.infobulle b { display: block; margin-bottom: 0.15rem; }
.infobulle span { display: flex; justify-content: space-between; gap: 0.75rem; }
.legende .pea i { background: var(--c-gains); }
.legende .av i { background: var(--c-verse); }
.legende .cto i { background: var(--c-reel); }
.legende .ligne.verse i { height: 0; background: none; border-top: 2px dashed var(--muted); }

.legende .reinvesti i { background: var(--c-gains); }
.legende .percu i { background: var(--c-reel); }

/* Onglets (simulateur de dividendes) : défilement horizontal sur petit écran, hauteur fixe */
.onglets { display: flex; gap: 0.25rem; margin: 1.5rem 0 0; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.onglets [role="tab"] { flex: none; min-height: 2.9rem; padding: 0.6rem 1rem; font: 600 0.95rem/1.2 var(--font); color: var(--muted); background: transparent; border: 0; border-bottom: 3px solid transparent; border-radius: var(--radius-sm) var(--radius-sm) 0 0; cursor: pointer; }
.onglets [role="tab"]:hover { color: var(--ink); background: var(--surface-2); }
.onglets [role="tab"][aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.onglets [role="tab"]:focus-visible { outline-offset: -3px; }
.onglets + .outil { margin-top: 1.25rem; }

/* Comparateur d'enveloppes : classement et emplacements d'affiliation (inactifs) */
.comparatif tr.gagnant > * { background: var(--accent-soft); }
.affiliation h3 { margin-top: 0; }
.affiliation .actions { margin-bottom: 0.5rem; }
.bouton:disabled { opacity: 0.6; cursor: not-allowed; filter: none; }

/* Calendrier des dividendes du CAC 40 */
.mentions-donnees { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: 0.85rem; color: var(--muted); }
.mentions-donnees li + li { margin: 0; }
.mentions-donnees li::before { content: "●"; color: var(--accent); font-size: 0.6em; margin-right: 0.45rem; vertical-align: 0.2em; }
.filtres { display: grid; gap: 0.75rem 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); margin: 0 0 0.5rem; }
.tableau-cac40 { max-height: none; }
.tableau-cac40 thead tr + tr th { top: 2.05rem; }
th .tri { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 0.25rem; }
th .tri::after { content: "↕"; opacity: 0.45; font-size: 0.9em; }
th[aria-sort="ascending"] .tri::after { content: "↑"; opacity: 1; }
th[aria-sort="descending"] .tri::after { content: "↓"; opacity: 1; }
th .tri:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
th.groupe { text-align: center; }
tbody th { font-weight: 600; text-align: left; white-space: nowrap; }
tbody th a { color: var(--ink); }
.secteur, .sous { display: block; font-size: 0.75rem; font-weight: 400; color: var(--muted); }
td.verification { text-align: left; color: var(--muted); font-style: italic; }
tr.estimation td, tr.estimation th { font-style: italic; color: var(--muted); }
.estime { font-style: italic; }
.nd { color: var(--muted); }
.duree { font-size: 0.75rem; color: var(--muted); }
abbr.deduit { text-decoration: none; color: var(--brass); cursor: help; margin-left: 0.1rem; }
.statut-div { display: inline-block; font-size: 0.72rem; font-weight: 650; padding: 0.15rem 0.5rem; border-radius: 99px; font-style: normal; white-space: nowrap; }
.statut-div.verse { background: var(--surface-2); color: var(--muted); }
.statut-div.annonce { background: var(--accent-soft); color: var(--accent); }
.statut-div.propose { background: var(--accent-soft); color: var(--ink); }
.statut-div.estimation { background: transparent; color: var(--brass); border: 1px dashed var(--brass); }
.statut-div.yahoo { background: transparent; color: var(--muted); border: 1px solid var(--line); white-space: normal; }
td.non-annonce { text-align: center; color: var(--muted); }
.mois-habituels li { margin: 0.2rem 0; }
.chiffre .statut-div { font-size: 0.8rem; }
.graphique-dividendes { margin: 0 0 1rem; }
.graphique-dividendes svg { display: block; width: 100%; height: auto; aspect-ratio: 640 / 260; }
.graphique-dividendes text { fill: var(--muted); font: 11px var(--font); font-variant-numeric: tabular-nums; }
.graphique-dividendes .grille-axe { stroke: var(--line); stroke-width: 1; }
.barre-ordinaire { fill: var(--c-gains); }
.barre-exceptionnel { fill: var(--c-reel); }
.barre-estimation { fill: var(--accent-soft); stroke: var(--brass); stroke-width: 1.5; stroke-dasharray: 4 3; }
.legende .ordinaire i { background: var(--c-gains); }
.legende .exceptionnel i { background: var(--c-reel); }
.legende .estime i { background: var(--accent-soft); border: 1.5px dashed var(--brass); font-style: normal; }
.legende .estime { font-style: normal; }

/* Valorisation d'obligation */
.statut-obligation { display: inline-block; font-size: 0.85rem; font-weight: 650; padding: 0.15rem 0.6rem; border-radius: 99px; }
.statut-obligation.surcote { background: var(--accent-soft); color: var(--accent); }
.statut-obligation.decote { color: var(--danger); border: 1px solid var(--danger); }
.statut-obligation.pair { background: var(--surface-2); color: var(--ink); }
.graphique .ligne-pair { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; }
.graphique .texte-pair { font-weight: 600; }
.graphique .point-actuel { fill: var(--c-reel); stroke: var(--surface); stroke-width: 2; }
.graphique .point-survol { fill: var(--c-gains); stroke: var(--surface); stroke-width: 2; }
.legende .ligne.gains i { background: var(--c-gains); }
.legende .ligne.pair i { height: 0; background: none; border-top: 2px dashed var(--muted); }
.legende .actuel i { background: var(--c-reel); border-radius: 50%; }

/* Calendrier des résultats du CAC 40 */
.actions-agenda { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0.75rem 0 0.25rem; }
.actions-agenda .source { margin: 0; }
.agenda-groupe h3 { margin: 1.5rem 0 0.5rem; font-size: 1.05rem; }
.agenda-liste { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.evenement { display: flex; gap: 0.85rem; align-items: flex-start; padding: 0.7rem 0.85rem; margin: 0; }
.evenement + .evenement { border-top: 1px solid var(--line); }
.evenement-date { flex: none; width: 3.4rem; display: grid; justify-items: center; padding: 0.3rem 0; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); line-height: 1.15; font-variant-numeric: tabular-nums; }
.evenement-date .sem, .evenement-date .mois { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; }
.evenement-date .jour { font-size: 1.25rem; font-weight: 700; }
.evenement.estime .evenement-date { background: transparent; color: var(--brass); border: 1.5px dashed var(--brass); font-style: italic; }
.evenement-corps { min-width: 0; }
.evenement-corps p { margin: 0; }
.evenement-titre a { font-weight: 650; color: var(--ink); margin-right: 0.35rem; }
.evenement.estime .evenement-titre span { font-style: italic; }
.evenement-meta, .evenement-note { font-size: 0.82rem; color: var(--muted); }
.evenement-note { margin-top: 0.2rem !important; }
.statut-pub { display: inline-block; font-size: 0.72rem; font-weight: 650; padding: 0.05rem 0.45rem; border-radius: 99px; font-style: normal; }
.statut-pub.confirme { background: var(--accent-soft); color: var(--accent); }
.statut-pub.estime { color: var(--brass); border: 1px dashed var(--brass); }
.legende-agenda .statut-pub { margin-right: 0.2rem; }
.ics-societes { margin: 0.5rem 0 0; font-size: 0.9rem; }
.ics-societes summary { cursor: pointer; color: var(--accent); }
.ics-societes ul { columns: 2 11rem; padding-left: 1.1rem; }
.agenda-liste.compacte { margin-bottom: 0.75rem; }
.tableau-publications { max-width: 100%; }
.tableau-publications td { text-align: left; }

/* Accueil : présentation */
.hero-accueil { position: relative; padding: 3rem 0 2rem; }
.hero-accueil::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: radial-gradient(60rem 22rem at 15% 0%, var(--accent-soft), transparent 70%); }
.hero-accueil h1 { font-size: clamp(1.9rem, 7vw, 3.1rem); max-width: 22ch; }
.hero-accueil .actions { margin-top: 1.5rem; }
.chiffres-cles { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); margin: 2rem 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.chiffres-cles div { padding: 0.9rem 1.1rem; background: var(--surface); }
.chiffres-cles dt { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.chiffres-cles dd { margin: 0.1rem 0 0; font: 600 clamp(1.3rem, 5vw, 1.7rem)/1.2 var(--font-titre); color: var(--accent); }
.presentation { display: grid; gap: 1.5rem; align-items: start; }
.presentation h2 { margin-top: 0; }
@media (min-width: 52rem) { .presentation { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 2.5rem; } }
.fondateur p { margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--muted); }
.fondateur p:last-child { margin: 0; }
.fondateur-initiales { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink) !important; font: 600 1.15rem/1 var(--font-titre) !important; letter-spacing: 0.04em; margin-bottom: 0.75rem !important; }
.fondateur .fondateur-nom { font: 600 1.2rem/1.3 var(--font-titre); color: var(--ink); margin: 0; }
.fondateur .fondateur-role { font-size: 0.82rem; color: var(--brass); font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.carte-vedette { margin: 1rem 0 0.5rem; padding: clamp(1.1rem, 4vw, 1.75rem); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 78%, var(--ink))); color: var(--accent-ink); border-color: transparent; }
.carte-vedette h3 { font-size: clamp(1.3rem, 4.5vw, 1.6rem) !important; }
.carte-vedette a.etirer { color: var(--accent-ink) !important; }
.carte-vedette p { color: var(--accent-ink) !important; opacity: 0.92; font-size: 1.02rem !important; max-width: 44rem; }
.carte-vedette .badge { background: color-mix(in srgb, var(--accent-ink) 18%, transparent); color: var(--accent-ink); }
.carte-vedette .lien-action { color: var(--accent-ink) !important; }
.carte-vedette:hover { border-color: var(--brass); }
.groupe-outils { margin-top: 1.75rem; }
.groupe-entete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.85rem; margin-bottom: 0.75rem; }
.groupe-entete p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.groupe-titre { margin: 0; font-size: 1.25rem; }
.groupe-titre a { color: var(--ink); text-decoration: none; }
.groupe-titre a:hover { color: var(--accent); }
.derniers-ajouts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.derniers-ajouts li { display: grid; gap: 0.1rem 1rem; padding: 0.8rem 0; margin: 0; border-bottom: 1px solid var(--line); }
.derniers-ajouts time { font-size: 0.8rem; color: var(--brass); font-weight: 650; font-variant-numeric: tabular-nums; }
.derniers-ajouts a { font-weight: 650; }
.derniers-ajouts span { color: var(--muted); font-size: 0.92rem; }
@media (min-width: 48rem) { .derniers-ajouts li { grid-template-columns: 9rem minmax(0, 1fr); } .derniers-ajouts span { grid-column: 2; } }
.bouton.petit { min-height: 2.4rem; padding: 0.35rem 0.8rem; font-size: 0.85rem; }

/* Conception de simulateur sur-mesure : chatbot */
.chat { margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: 1rem; max-width: 52rem; }
.chat-entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.chat-entete h2 { margin: 0; font-size: clamp(1.15rem, 4vw, 1.4rem); }
.chat-indispo { margin: 0; }
.chat-messages { display: flex; flex-direction: column; gap: 0.75rem; min-height: 12rem; max-height: min(30rem, 60vh); overflow-y: auto; overscroll-behavior: contain; padding: 0.85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.msg { max-width: min(36rem, 88%); padding: 0.6rem 0.85rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.msg p { margin: 0; }
.msg-auteur { font-size: 0.75rem; font-weight: 650; letter-spacing: 0.03em; color: var(--muted); margin-bottom: 0.15rem !important; }
.msg-texte { white-space: pre-wrap; font-size: 0.97rem; }
.msg-visiteur { align-self: flex-end; background: var(--accent-soft); border-color: transparent; }
.msg-visiteur .msg-auteur { color: var(--accent); text-align: right; }
.msg-moshe { background: var(--surface); border: 1px solid var(--brass); border-left-width: 4px; box-shadow: var(--shadow); }
.msg-moshe .msg-auteur { color: var(--brass); }
.chat-attente { margin: 0; display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.points { display: inline-flex; gap: 0.2rem; }
.points i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--accent); opacity: 0.4; }
@media (prefers-reduced-motion: no-preference) {
  .points i { animation: point 1.2s infinite ease-in-out; }
  .points i:nth-child(2) { animation-delay: 0.2s; }
  .points i:nth-child(3) { animation-delay: 0.4s; }
}
@keyframes point { 0%, 80%, 100% { opacity: 0.25; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }
.chat-form { display: flex; flex-direction: column; gap: 1rem; }
.chat-form textarea { resize: vertical; min-height: 5.5rem; }
.chat-pied-saisie { display: flex; justify-content: space-between; gap: 1rem; }
.chat-compteur { flex: none; font-variant-numeric: tabular-nums; }
.chat-compteur.limite { color: var(--brass); font-weight: 650; }
.chat-options { display: grid; gap: 0.75rem; padding: 0.85rem 1rem; border-radius: var(--radius-sm); background: var(--surface-2); }
.chat-options .champ > input { background: var(--surface); }
.case { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; cursor: pointer; }
.case input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; accent-color: var(--accent); }
/* Piège à robots : hors écran (et non display:none), ignoré des lecteurs d'écran et du clavier. */
.pot-de-miel { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.etapes { padding-left: 1.4rem; }
.etapes li + li { margin-top: 0.6rem; }

/* Tableaux */
.tableau-defilant { overflow: auto; max-height: 28rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-weight: 600; padding: 0.6rem 0.75rem; }
th, td { padding: 0.5rem 0.75rem; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
thead th { position: sticky; top: 0; background: var(--surface-2); font-size: 0.78rem; color: var(--muted); font-weight: 650; }
tbody tr:last-child td { border-bottom: 0; }

/* Encadrés */
.encadre { padding: 1rem 1.15rem; border-radius: var(--radius-sm); background: var(--surface-2); border-left: 4px solid var(--brass); margin: 1.5rem 0; font-size: 0.95rem; }
.encadre p:last-child { margin: 0; }
.source { font-size: 0.85rem; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; cursor: pointer; font-weight: 650; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 1rem; color: var(--ink); }

/* Emplacements publicitaires (inactifs : hauteur réservée pour éviter tout décalage) */
.pub-slot { min-height: 280px; margin: 2rem 0; border-radius: var(--radius-sm); background: repeating-linear-gradient(135deg, transparent 0 10px, var(--surface-2) 10px 11px); border: 1px dashed var(--line); display: grid; place-items: center; }
.pub-slot::before { content: "Advertisement"; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 48rem) { .pub-slot { min-height: 250px; } }

/* Contenu éditorial */
.prose { max-width: 46rem; }
.prose > h2:first-child { margin-top: 0; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }

/* Pied de page */
.pied { margin-top: 3rem; padding: 2.5rem 0 1.5rem; background: var(--surface); border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.pied-colonnes { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.pied h2 { font: 650 0.78rem/1.4 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin: 0 0 0.6rem; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied a { color: var(--muted); }
.pied a:hover { color: var(--ink); }
.pied .lien-bouton { padding: 0; border: 0; background: none; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; cursor: pointer; }
.pied .lien-bouton:hover:enabled { color: var(--ink); }
.pied .lien-bouton:disabled { text-decoration: none; cursor: default; }
.pied .mention { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; font-size: 0.82rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  .entete, .pied, .pub-slot, .actions, .ariane { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   Navigation (refonte du 2026-10-09) : en-tête collant + recherche, barre latérale
   à gauche sur grand écran, tiroir sur téléphone, Galaxy Fold et tablette.
   ========================================================================== */
:root { --entete-h: 3.75rem; --barre-l: 16.5rem; }
.visuellement-masque { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.entete { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); }
.entete-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; min-height: var(--entete-h); padding: 0.45rem var(--pad); }
.entete .logo { margin-right: auto; }

.bouton-menu { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 0.9rem/1 var(--font); cursor: pointer; }
.bouton-menu:hover { border-color: var(--accent); }
.bouton-menu-icone, .bouton-menu-icone::before, .bouton-menu-icone::after { display: block; width: 1rem; height: 2px; border-radius: 2px; background: currentColor; content: ""; }
.bouton-menu-icone { position: relative; }
.bouton-menu-icone::before { position: absolute; top: -5px; }
.bouton-menu-icone::after { position: absolute; top: 5px; }

.recherche { position: relative; flex: 1 1 15rem; max-width: 26rem; }
.recherche input { width: 100%; padding: 0.6rem 0.9rem 0.6rem 2.3rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355606d' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 0.8rem 50% / 1rem; color: var(--ink); font: 400 0.95rem/1.2 var(--font); }
.recherche input:focus { outline: 2px solid var(--focus); outline-offset: 1px; background-color: var(--surface); }
.recherche-resultats { position: absolute; left: 0; right: 0; top: calc(100% + 0.35rem); z-index: 60; max-height: min(70vh, 26rem); overflow-y: auto; margin: 0; padding: 0.35rem; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.recherche-resultats li + li { margin: 0; }
.recherche-resultats a { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; padding: 0.55rem 0.7rem; border-radius: 7px; color: var(--ink); text-decoration: none; }
.recherche-resultats small { flex: none; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.recherche-resultats [aria-selected="true"] a, .recherche-resultats a:hover { background: var(--accent-soft); }
.recherche-vide { padding: 0.6rem 0.7rem; color: var(--muted); font-size: 0.9rem; }

.cadre { display: block; }
.barre { background: var(--surface); border-right: 1px solid var(--line); font-size: 0.93rem; }
.barre nav { display: flex; flex-direction: column; gap: 1rem; min-height: 100%; padding: 1rem 0.75rem 1.5rem; }
.barre ul { list-style: none; margin: 0; padding: 0; }
.barre li + li { margin: 0; }
.barre-liste { display: grid; gap: 0.15rem; }
.groupe-titre { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.65rem; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; text-decoration: none; }
.groupe-titre .icone { width: 1.15rem; height: 1.15rem; flex: none; color: var(--accent); }
.groupe > ul { margin: 0.1rem 0 0.45rem 1.4rem; padding-left: 0.85rem; border-left: 1px solid var(--line); }
.groupe > ul a { display: block; padding: 0.38rem 0.6rem; border-radius: 7px; color: var(--muted); text-decoration: none; line-height: 1.35; }
.barre a:hover { background: var(--bg); color: var(--ink); }
.barre a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); }
.groupe > ul a[aria-current="page"] { font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); }
.groupe-vedette .groupe-titre { margin-top: 0.4rem; border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
.groupe-vedette .icone { color: var(--brass) !important; }
.barre-bas { margin-top: auto !important; padding-top: 0.9rem !important; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.2rem 0.4rem; }
.barre-bas a { display: inline-block; padding: 0.35rem 0.6rem; border-radius: 7px; color: var(--muted); font-size: 0.88rem; text-decoration: none; }
.voile { position: fixed; inset: 0; z-index: 44; background: rgb(12 19 27 / 45%); }

/* Téléphone, Galaxy Fold (plié ou déplié) et tablette : tiroir latéral */
@media (max-width: 69.99rem) {
  .barre { position: fixed; z-index: 45; top: 0; bottom: 0; left: 0; width: min(19rem, 86vw); overflow-y: auto; overscroll-behavior: contain; transform: translateX(-102%); visibility: hidden; box-shadow: var(--shadow); }
  .menu-ouvert .barre { transform: none; visibility: visible; }
  .menu-ouvert { overflow: hidden; }
  .barre nav { padding-top: 1.25rem; }
}
@media (max-width: 69.99rem) and (prefers-reduced-motion: no-preference) { .barre { transition: transform 0.22s ease, visibility 0.22s; } }
@media (max-width: 34rem) {
  .bouton-menu span:last-child { display: none; }
  .bouton-menu { padding: 0.6rem; }
  .recherche { order: 3; flex-basis: 100%; max-width: none; }
  .entete-ligne { padding-bottom: 0.6rem; }
}

/* Grand écran : barre latérale fixe à gauche */
@media (min-width: 70rem) {
  .bouton-menu { display: none; }
  .cadre { display: grid; grid-template-columns: var(--barre-l) minmax(0, 1fr); align-items: start; }
  .barre { position: sticky; top: var(--entete-h); height: calc(100vh - var(--entete-h)); overflow-y: auto; }
  .voile { display: none; }
  .entete .logo { margin-right: 0; width: calc(var(--barre-l) - var(--pad) - 0.9rem); }
  .recherche { margin-right: auto; }
}
@media print { .barre, .bouton-menu, .recherche, .voile { display: none !important; } .cadre { display: block; } }
.barre { font-size: 0.93rem; line-height: 1.35; }
.groupe-titre { font-size: 0.98rem; line-height: 1.25; }
.groupe > ul a { font-size: 0.9rem; }

/* Chatbot : interface de messagerie (refonte du 2026-10-09) */
.chat { gap: 0; max-width: 46rem; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.chat-entete { flex-wrap: nowrap; justify-content: flex-start; gap: 0.75rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-avatar svg { display: block; width: 2.4rem; height: 2.4rem; }
.chat-titre { min-width: 0; flex: 1; }
.chat-titre h2 { margin: 0; font: 650 1.05rem/1.2 var(--font); }
.chat-titre p { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.3; }
.chat-nouveau { display: inline-flex; align-items: center; gap: 0.3rem; flex: none; padding: 0.4rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--muted); font: 600 0.8rem/1 var(--font); cursor: pointer; }
.chat-nouveau svg { width: 0.95rem; height: 0.95rem; }
.chat-nouveau:hover { color: var(--ink); border-color: var(--accent); }
.chat-indispo { margin: 0.75rem 1rem 0; }
.chat-messages { gap: 0.55rem; min-height: 18rem; max-height: min(34rem, 62vh); padding: 1rem; border: 0; border-radius: 0; background: var(--bg); scroll-behavior: smooth; }
.msg { max-width: min(30rem, 82%); padding: 0.55rem 0.8rem 0.6rem; border: 0; border-radius: 1.1rem 1.1rem 1.1rem 0.3rem; background: var(--surface); box-shadow: 0 1px 1px rgb(20 32 46 / 6%); }
.msg-texte { font-size: 0.95rem; line-height: 1.45; }
.msg-auteur { font-size: 0.72rem; }
.msg-visiteur { border-radius: 1.1rem 1.1rem 0.3rem 1.1rem; background: var(--accent); }
.msg-visiteur .msg-texte { color: var(--accent-ink); }
.msg-visiteur .msg-auteur { color: color-mix(in srgb, var(--accent-ink) 75%, transparent); }
.msg-moshe { border: 0; border-left: 3px solid var(--brass); box-shadow: 0 1px 1px rgb(20 32 46 / 6%); background: color-mix(in srgb, var(--brass) 9%, var(--surface)); }
.chat-attente { padding: 0.5rem 1rem 0; background: var(--bg); font-size: 0.85rem; }
.chat-form { gap: 0.4rem; padding: 0.75rem 1rem 0.9rem; border-top: 1px solid var(--line); background: var(--surface); }
.chat-saisie { display: flex; align-items: flex-end; gap: 0.5rem; }
.chat-saisie textarea { flex: 1; min-height: 2.9rem; max-height: 9rem; resize: none; field-sizing: content; padding: 0.7rem 1rem; border: 1px solid var(--line); border-radius: 1.4rem; background: var(--bg); font: 400 0.98rem/1.4 var(--font); color: var(--ink); }
.chat-saisie textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; background: var(--surface); }
.chat-envoyer { display: grid; place-items: center; flex: none; width: 2.9rem; height: 2.9rem; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.chat-envoyer svg { width: 1.25rem; height: 1.25rem; }
.chat-envoyer:hover:enabled { filter: brightness(1.08); }
.chat-envoyer:disabled { opacity: 0.55; cursor: default; }
.chat-pied-saisie { padding: 0 0.4rem; font-size: 0.78rem; }
.chat-form .statut:empty, .chat-form .erreur:empty { display: none; }
.chat-notif { margin-top: 0.2rem; font-size: 0.88rem; }
.chat-notif summary { cursor: pointer; color: var(--muted); padding: 0.3rem 0.4rem; border-radius: 7px; list-style-position: inside; }
.chat-notif summary span { font-size: 0.8rem; }
.chat-notif summary:hover { color: var(--ink); }
.chat-notif[open] summary { color: var(--ink); }
.chat-notif .chat-options { margin-top: 0.5rem; }
@media (max-width: 34rem) { #chat-aide { display: none; } .chat-titre p { font-size: 0.78rem; } .chat-nouveau span { display: none; } .chat-messages { min-height: 16rem; } }
p.groupe-titre { margin: 0.6rem 0 0.1rem; padding-bottom: 0.25rem; color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
p.groupe-titre .icone { width: 1rem; height: 1rem; }
.groupe > ul { margin-left: 0.55rem; }

/* English edition: currency prefix inside inputs, source lists, result breakdown tables */
.saisie .unite.prefixe { right: auto; left: 0.8rem; }
.saisie:has(.prefixe) input { padding-left: 1.9rem; }
.saisie:has(.prefixe):not(:has(.unite:not(.prefixe))) input { padding-right: 0.85rem; }
.sources { font-size: 0.92rem; }
.note { font-size: 0.88rem; color: var(--muted); }
.ventilation td:last-child, .ventilation th:last-child { text-align: right; }
