/* =========================================================
   Éclair — fond crème, cartes blanches à filet fin, Fraunces pour les titres, IBM Plex Sans pour le texte.
   Le vert sert seulement de petites touches (barres, coches, courbe, onglet actif).
   Les couleurs des notes et des statuts sont le code d'Éclair : on n'y touche pas.
   ========================================================= */
:root {
  --bg: #FAF7F0;
  --card: #FFFFFF;
  --text: #1B1B18;
  --muted: #6B6A63;
  --faint: #A29E92;          /* axes, courbe du CAC 40 */
  --line: #E3DED2;
  --line-fort: #D2CCBD;
  --soft: #F6F2E9;           /* en-têtes de tableaux, survols */
  --rond: #EFEBE1;           /* cercles numérotés */
  --accent: #1F4D3A;         /* vert : petites touches */
  --accent-pale: #EEF3EC;    /* fond vert très pâle (écran des fiches) */
  --accent-doux: #DCE7DD;
  /* Statuts de l'IA (acheter, attendre, éviter) */
  --go: #7c3aed; --go-bg: #f1eaff;
  --wait: #f2780c; --wait-bg: #fff1e3;
  --stop: #e0243f; --stop-bg: #ffe8eb;
  /* Notes sur 100 */
  --n-violet: var(--go); --n-vert: #16a34a; --n-bleu: #2563eb; --n-orange: #f2780c; --n-rouge: #e0243f;
  /* Gains et pertes */
  --pos: #1E7A4C; --neg: #B3261E;
  --radius: 10px;
  --r-sm: 6px;
  --ombre-survol: 0 12px 28px -14px rgba(27, 27, 24, .22), 0 2px 6px rgba(27, 27, 24, .05);
  --ombre-flottante: 0 18px 44px -16px rgba(27, 27, 24, .3);
  --doux: cubic-bezier(.4, 0, .2, 1);
  --police: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --police-titre: "Fraunces", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--police);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}
::selection { background: var(--accent-doux); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
html { scrollbar-color: var(--line-fort) transparent; }
button { font: inherit; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* ---------- Typographie ---------- */
h1, h2, h3, .carte-titre, .section-titre, .ecran-titre, .prochaine-titre {
  font-family: var(--police-titre); font-weight: 500; font-optical-sizing: auto; letter-spacing: -.015em;
}
h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.04; letter-spacing: -.025em; margin: 48px 0 8px; }
h2 { font-size: 24px; line-height: 1.2; margin: 40px 0 14px; }
h3 { font-size: 18px; line-height: 1.25; }
.lead { color: var(--muted); margin: 0; font-size: 16px; max-width: 70ch; }
.muted { color: var(--muted); }
a.muted:hover { color: var(--text); }
.up { color: var(--pos); } .down { color: var(--neg); }
.kicker { margin: 0; font-size: 12.5px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
p.note { font-size: 14px; color: var(--muted); }
.sub { margin: 26px 0 10px; font-size: 17px; }
code { font-family: ui-monospace, Menlo, monospace; font-size: .92em; background: var(--soft); padding: 1px 6px; border-radius: 4px; }

/* ---------- Boutons et petits éléments ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--text); color: #fff; border: 1px solid var(--text); padding: 12px 22px; border-radius: var(--r-sm);
  font-weight: 500; font-size: 15px; transition: background .15s, transform .15s var(--doux), box-shadow .2s;
}
.btn-primary:hover { background: #33332e; box-shadow: 0 6px 16px -8px rgba(27, 27, 24, .5); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .55; cursor: progress; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  background: var(--card); color: var(--text); border: 1px solid var(--line); padding: 11px 18px; border-radius: var(--r-sm);
  font-weight: 500; font-size: 15px; transition: border-color .15s, background .15s;
}
.btn-ghost:hover { border-color: var(--line-fort); background: var(--soft); }
.btn-danger { display: inline-flex; align-items: center; background: var(--card); color: var(--neg); border: 1px solid #E6C2BE; padding: 11px 18px; border-radius: var(--r-sm); font-weight: 500; }
.btn-danger:hover { background: #FBF1EF; }
.btn-ghost.petit, .btn-danger.petit { padding: 7px 14px; font-size: 14px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.lien-discret { font-size: 14px; font-weight: 500; color: var(--accent); }
.lien-discret:hover { text-decoration: underline; text-underline-offset: 3px; }
.chip { display: inline-flex; align-items: center; background: var(--card); border: 1px solid var(--line); padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 500; }
.groupe-nb { font-family: var(--police); font-size: 16px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.lib { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.spinner { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 8px; opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--muted); padding: 140px 0; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100;
  max-width: min(520px, calc(100% - 32px)); background: var(--text); color: #fff;
  padding: 12px 18px; border-radius: var(--r-sm); font-size: 14px; box-shadow: var(--ombre-flottante);
  animation: toastIn .3s var(--doux); transition: opacity .5s, transform .5s;
}
.toast.out { opacity: 0; transform: translate(-50%, 10px); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }
.disclaimer { font-size: 12.5px; color: var(--muted); margin-top: 56px; border-top: 1px solid var(--line); padding-top: 18px; max-width: 90ch; }

/* Cercle numéroté (fiches, règles, classements) */
.rond {
  display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--rond); color: var(--text); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums;
}
.rond.grand { width: 60px; height: 60px; font-family: var(--police-titre); font-size: 26px; background: var(--card); border: 1px solid var(--line); }

/* ---------- Cartes ---------- */
.carte, .panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0;
  transition: transform .2s var(--doux), box-shadow .2s var(--doux), border-color .2s;
}
.carte { padding: 26px 28px; }
.panel { padding: 22px 24px; margin-top: 16px; }
.carte:hover, .panel:hover { transform: translateY(-2px); box-shadow: var(--ombre-survol); }
.carte-titre { font-size: 22px; line-height: 1.2; margin: 0; display: flex; align-items: baseline; gap: 4px; }
.carte-sous { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.carte-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.carte-tete .muted { font-size: 13.5px; }
.carte-vide { margin: 6px 0 0; font-size: 14.5px; }
.error-box { margin-top: 48px; }
.empty { color: var(--muted); }
.warn-box { border-left: 3px solid var(--wait); font-size: 14.5px; }
.ok-box { border-left: 3px solid var(--accent); font-size: 14.5px; }
.warn-box a, .fact-d a { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* Message d'une carte encore vide */
.vide { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 16px 20px; }
.vide-ic { color: #CBBFA6; width: 52px; margin-bottom: 18px; }
.vide-ic svg { width: 52px; height: 60px; display: block; }
.vide b { font-weight: 500; font-size: 17px; }
.vide p { margin: 8px 0 0; color: var(--muted); max-width: 36ch; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.entete-in { max-width: 1240px; margin: 0 auto; height: 68px; padding: 0 32px; display: flex; align-items: center; gap: 40px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--police-titre); font-weight: 500; font-size: 27px; letter-spacing: -.02em; color: var(--text); }
.logo svg { width: 22px; height: 26px; color: var(--accent); flex: none; transform: translateY(-1px); }
.onglets { display: flex; align-items: stretch; gap: 6px; height: 100%; }
.onglet { display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 15px; color: var(--muted); position: relative; transition: color .15s; }
.onglet svg { display: none; width: 20px; height: 20px; flex: none; }
.onglet:hover, .onglet.on { color: var(--text); }
.onglet.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--accent); }
.entete-droite { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.son-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: none; border: 1px solid transparent; color: var(--muted); transition: color .15s, border-color .15s; }
.son-btn:hover { color: var(--text); border-color: var(--line); }
.son-btn svg { width: 19px; height: 19px; }
/* Crédit restant dans l'en-tête (le panneau « Crédit Claude » de Profil porte aussi la classe credit : sans « a. »,
   il héritait du nowrap et élargissait toute la page sur téléphone) */
a.credit { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
a.credit:empty { display: none; }
a.credit:hover { color: var(--text); }
.panel.credit { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.moi-menu { position: relative; }
.moi { display: flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 4px; font-size: 15px; color: var(--text); }
.moi svg { width: 16px; height: 16px; color: var(--muted); transition: transform .2s var(--doux); }
.moi[aria-expanded="true"] svg { transform: rotate(180deg); }
.moi-liste {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px; z-index: 30;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--ombre-flottante);
  animation: menuIn .16s var(--doux);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px); } }
.moi-liste a, .moi-liste button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: var(--r-sm); background: none; border: 0; font-size: 14.5px; }
.moi-liste a:hover, .moi-liste button:hover { background: var(--soft); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px 80px; }

/* ---------- Recherche ---------- */
.search {
  background: var(--card); border: 1px solid var(--line); color: var(--text); padding: 10px 14px; border-radius: var(--r-sm);
  font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s; min-width: 0;
}
.search::placeholder { color: var(--muted); opacity: .85; }
.search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-pale); }
.search-box { position: relative; flex: 0 1 460px; min-width: 260px; }
.search-box .loupe { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text); pointer-events: none; }
.search-box .search { width: 100%; padding: 14px 22px 14px 52px; border-radius: 99px; }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 15; max-height: 70vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: var(--ombre-flottante);
}
.sr-titre { font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 6px 10px; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-sm); }
.sr-item:hover, .sr-item:focus-visible { background: var(--soft); outline: none; }
.sr-nom { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sr-nom b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-nom small { font-size: 12.5px; color: var(--muted); }
.sr-type { flex: none; width: 92px; text-align: center; font-size: 11.5px; padding: 3px 6px; border-radius: 99px; background: var(--soft); color: var(--muted); }
.sr-info { padding: 12px 10px; color: var(--muted); font-size: 14px; }
.sr-note { padding: 8px 10px 4px; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 6px; }

/* ---------- Tête de page ---------- */
.page-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 56px 0 38px; }
.page-tete h1 { margin: 0; }
.page-sous { margin: 12px 0 0; color: var(--muted); font-size: 19px; }
.page-tete .search-box { margin-top: 10px; }

/* Ligne d'état de l'IA, discrète (analyses en cours, en pause, IA absente) */
.etat-ia { display: flex; align-items: baseline; gap: 10px; margin: -18px 0 24px; font-size: 13.5px; color: var(--muted); max-width: 110ch; }
.etat-ia > i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); transform: translateY(-1px); }
.etat-ia.pause > i { background: var(--wait); }
.etat-ia b { color: var(--text); font-weight: 500; }
.etat-ia .spinner { width: 11px; height: 11px; margin-right: 0; }

/* ---------- Accueil : tableau de bord du fonds ---------- */
.grille { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.carte-valeur { grid-column: span 8; }
.carte-chiffres { grid-column: span 4; }
.carte-repartition { grid-column: span 5; }
.carte-mouvements { grid-column: span 7; }
.carte-table { grid-column: span 12; padding: 26px 0 0; overflow: hidden; }
.carte-table .carte-tete { padding: 0 28px; }
.carte-surveillance { grid-column: span 6; }
.carte-suggestions { grid-column: span 6; }
.carte-histo { grid-column: span 12; padding: 6px 28px; }

/* Valeur et courbe */
.cv-valeur { font-family: var(--police-titre); font-size: 58px; font-weight: 500; letter-spacing: -.035em; line-height: 1; margin-top: 18px; font-variant-numeric: tabular-nums lining-nums; }
.cv-puces { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.puce { font-size: 14px; font-weight: 500; padding: 5px 14px; border-radius: 99px; background: var(--accent-pale); color: var(--accent); border: 1px solid var(--accent-doux); font-variant-numeric: tabular-nums; }
.puce.down { background: #FBF1EF; color: var(--neg); border-color: #F0D6D2; }
.cv-depuis { font-size: 13.5px; color: var(--muted); }
.carte-valeur .chart-box { margin-top: 20px; min-height: 200px; }
.pf-legende { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 13.5px; color: var(--text); margin-top: 6px; padding-left: 8px; }
.pf-legende i { display: inline-block; width: 22px; height: 0; vertical-align: middle; margin-right: 8px; border-top: 2px solid var(--accent); }
.pf-legende i.l-cac { border-top: 2px dashed var(--faint); }

/* Chiffres clés */
.carte-chiffres .carte-titre { margin-bottom: 10px; }
.kpi { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.kpi:last-child { border-bottom: 0; padding-bottom: 0; }
.kpi-l { display: block; font-size: 15.5px; color: #4C4B45; }
.kpi small { display: block; font-size: 12.5px; color: var(--faint); margin-top: 1px; }
.kpi b { font-size: 17px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Répartition en anneau */
.anneau { display: block; width: 200px; height: 200px; margin: 18px auto 20px; }
.anneau .arc-fond { fill: none; stroke: var(--soft); stroke-width: 16; }
.anneau .arc { fill: none; stroke: var(--nc, var(--line-fort)); stroke-width: 16; transition: stroke-width .15s, opacity .15s; }
.anneau .arc-cash { stroke: var(--accent); }
.anneau:hover .arc:not(:hover):not(.lie) { opacity: .45; }
.anneau .arc.lie, .anneau .arc:hover { stroke-width: 20; }
.anneau-n { font-family: var(--police-titre); font-size: 24px; font-weight: 500; fill: var(--text); }
.anneau-l { font-size: 13px; fill: var(--muted); }
.rep-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 14.5px; }
.rep-liste li > a, .rep-liste li.rep-cash { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 6px; padding: 6px 8px; border-radius: var(--r-sm); }
.rep-liste.seul li.rep-cash { grid-template-columns: 22px 1fr auto; }
.rep-liste li span:not(.note) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-liste li b { font-weight: 400; font-variant-numeric: tabular-nums; }
.rep-liste li.lie > a, .rep-liste li > a:hover { background: var(--soft); }

/* Derniers mouvements */
.mvts { list-style: none; margin: 0; padding: 0; }
.mvts li { display: grid; grid-template-columns: 118px 1fr auto 96px; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.mvts li:last-child { border-bottom: 0; }
.mvt-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvt-date { color: var(--muted); font-size: 13.5px; }
.mvts b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.op-t { justify-self: start; flex: none; align-self: flex-start; font-size: 12.5px; font-weight: 500; padding: 3px 10px; border-radius: 99px; }
.op-achat { background: var(--accent-pale); color: var(--accent); }
.op-vente { background: #FBF1EF; color: var(--neg); }
.op-remplacement { background: var(--soft); color: var(--text); }
/* Ordre en attente : pastille au filet pointillé, sans couleur de statut (il n'est pas encore passé) */
.op-attente { background: transparent; color: var(--muted); border: 1px dashed var(--line-fort); padding: 2px 9px; }
.mvt-attente .mvt-nom { color: var(--muted); white-space: normal; }   /* « Remplacement · A → B » ne doit pas être coupé */
.mvt-attente b { color: var(--muted); font-weight: 400; }
.mvts-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }

/* Tableaux (positions, surveillance) */
.table-pos { overflow-x: auto; }
.table-pos table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 680px; }
.table-pos th { text-align: left; font-size: 14px; font-weight: 400; color: var(--muted); padding: 15px 18px; background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-pos td { padding: 13px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-pos th:first-child, .table-pos td:first-child { padding-left: 28px; }
.table-pos th:last-child, .table-pos td:last-child { padding-right: 28px; }
.table-pos tbody tr { transition: background .12s; }
.table-pos tbody tr:hover, .table-pos tr.lie { background: #FBF9F4; }
.table-pos tr:last-child td { border-bottom: 0; }
.table-pos .num { text-align: right; }
.table-pos td.num small { display: block; font-size: 12.5px; }
.table-pos td.up { color: var(--pos); } .table-pos td.down { color: var(--neg); }
.table-pos td b { font-weight: 500; }
.carte-table .vide { padding: 44px 16px 48px; }
.carte-table .vide b { font-size: 17px; }
.tp-nom { display: inline-flex; align-items: center; gap: 12px; }
.tp-nom > span:not(.note) { display: flex; flex-direction: column; min-width: 0; white-space: normal; }
.tp-nom small { color: var(--muted); font-size: 12.5px; max-width: 460px; }
.tp-nom .note { min-width: 34px; font-weight: 500; }
.tp-cash td { color: var(--muted); }
.tp-pret { color: var(--accent); }
.carte-surveillance .table-pos { margin: 0 -28px; }
.carte-surveillance .table-pos table { min-width: 520px; }

/* Produits en surveillance, en attente de note */
.en-analyse { margin-top: 18px; }
.en-analyse .lib { display: block; margin-bottom: 10px; }
.puces-produits { display: flex; flex-wrap: wrap; gap: 12px; }
.puce-produit {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 14px; border-radius: 99px; font-size: 15px;
  background: var(--accent-pale); border: 1px solid var(--accent-doux); transition: transform .2s var(--doux), box-shadow .2s;
}
.puce-produit i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.puce-produit:hover { transform: translateY(-2px); box-shadow: var(--ombre-survol); }

/* Suggestions de la semaine (accueil) */
.sugg-liste { list-style: none; margin: 0; padding: 0; }
.sugg-liste li { border-bottom: 1px solid var(--line); }
.sugg-liste li:last-child { border-bottom: 0; }
.sugg-liste a { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.sugg-liste a > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sugg-liste b { font-weight: 500; font-size: 16px; }
.sugg-liste small { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugg-liste svg { width: 18px; height: 18px; color: var(--muted); flex: none; transition: transform .2s var(--doux); }
.sugg-liste a:hover svg { transform: translateX(3px); color: var(--text); }

/* Historique */
.pf-histo summary { cursor: pointer; font-family: var(--police-titre); font-size: 20px; padding: 18px 0; display: flex; align-items: baseline; gap: 4px; list-style: none; }
.pf-histo summary::-webkit-details-marker { display: none; }
.pf-histo summary::after { content: "+"; margin-left: auto; font-family: var(--police); color: var(--muted); font-size: 20px; }
.pf-histo[open] summary::after { content: "−"; }
.pf-histo[open] summary { border-bottom: 1px solid var(--line); }
.pf-histo > p { margin: 14px 0 18px; }
.ops { padding-bottom: 8px; }
.op { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.op:last-child { border-bottom: 0; }
.op-txt { min-width: 0; flex: 1; }
.op-l { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.op-l > span:first-child { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.op-l b { font-weight: 500; }
.op-txt small { color: var(--muted); font-size: 12.5px; }
.op-txt p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }

/* Remise à zéro : lien discret puis confirmation sur place */
.zero { display: flex; justify-content: flex-end; margin-top: 22px; min-height: 36px; align-items: center; }
.lien-zero { background: none; border: 0; padding: 4px 0; color: var(--muted); font-size: 13.5px; text-decoration: underline; text-decoration-color: var(--line-fort); text-underline-offset: 4px; }
.lien-zero:hover { color: var(--neg); text-decoration-color: currentColor; }
.zero-confirm { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; font-size: 14px; animation: menuIn .2s var(--doux); }
.zero-confirm p { margin: 0 6px 0 0; color: var(--text); }

/* ---------- Graphiques ---------- */
.chart-box { position: relative; width: 100%; }
.chart-vide { margin: 30px 0; }
.chart-svg { display: block; touch-action: pan-y; cursor: crosshair; }
.chart-svg .grid { stroke: #F1EDE3; stroke-width: 1; }
.chart-svg .axe { stroke: var(--line); stroke-width: 1; }
.chart-svg .axis { fill: var(--muted); font-family: var(--police); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.chart-svg .cross { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-svg .dot { stroke: var(--card); stroke-width: 3; }
.chart-tip {
  position: absolute; pointer-events: none; z-index: 2; white-space: nowrap;
  background: var(--text); color: #fff; border-radius: var(--r-sm); padding: 8px 12px;
  display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; box-shadow: var(--ombre-flottante);
}
.chart-tip b { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.chart-tip .var.up { color: #8FD4AE; } .chart-tip .var.down { color: #F2A49B; }
.chart-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.spark { width: 84px; height: 30px; }

/* ---------- Notes sur 100 et statuts (code couleur d'Éclair) ---------- */
.note { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.note i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--nc); flex: none; }
.n-violet { --nc: var(--n-violet); } .n-vert { --nc: var(--n-vert); } .n-bleu { --nc: var(--n-bleu); }
.n-orange { --nc: var(--n-orange); } .n-rouge { --nc: var(--n-rouge); }
.n-aucune { --nc: var(--line-fort); }
.n-cash { --nc: var(--accent); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.s-go { background: var(--go); } .dot.s-wait { background: var(--wait); } .dot.s-stop { background: var(--stop); } .dot.s-pending { background: var(--line-fort); }
.status-ic { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; }
.status-ic svg { width: 18px; height: 18px; }
.s-go { color: var(--go); background: var(--go-bg); }
.s-wait { color: var(--wait); background: var(--wait-bg); }
.s-stop { color: var(--stop); background: var(--stop-bg); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border-radius: 99px; font-size: 13px; font-weight: 500; align-self: flex-start; }
.pill svg { width: 14px; height: 14px; }
.var { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.var.up { color: var(--pos); } .var.down { color: var(--neg); }

/* ---------- Lignes produit ---------- */
.rows { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); transition: background .15s; }
.rows > .row:last-child { border-bottom: 0; }
.row:hover { background: #FBF9F4; }
.row-logo { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--rond); font-weight: 500; font-size: 14px; }
.row-logo .dot { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border: 2.5px solid var(--card); }
.row-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.row-txt b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-txt small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-txt em { font-style: normal; font-weight: 500; }
.row-txt em.decouv { color: var(--accent); }
.row-txt em.m-pending { color: var(--muted); }
.row-spark .spark { opacity: .8; }
.row-prix { display: flex; flex-direction: column; align-items: flex-end; min-width: 92px; }
.row-prix b { font-weight: 500; font-variant-numeric: tabular-nums; }
.row-prix small { font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- Fiche produit ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; color: var(--muted); font-size: 14.5px; }
.back:hover { color: var(--text); }
.product-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.product-head h1 { margin: 16px 0 6px; font-size: clamp(34px, 4.4vw, 48px); }
.head-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.big-price { font-family: var(--police-titre); font-size: 38px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; text-align: right; }
.follow { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; background: var(--card); color: var(--text); border: 1px solid var(--line); padding: 8px 14px; border-radius: var(--r-sm); font-size: 14px; }
.follow.on { background: var(--accent-pale); color: var(--accent); border-color: var(--accent-doux); }
.synthese { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.synth-col { padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; min-width: 0; border-left: 1px solid var(--line); }
.synth-col:first-child { border-left: 0; }
.synth-val { font-family: var(--police-titre); font-size: 24px; font-weight: 500; display: flex; align-items: center; gap: 8px; min-height: 34px; }
.synth-val .note { font-family: var(--police-titre); font-size: 30px; font-weight: 500; gap: 9px; }
.synth-val .note i { width: 11px; height: 11px; }
.synth-sur { font-size: 15px; color: var(--muted); font-family: var(--police); }
.synth-col small { font-size: 13px; color: var(--muted); }
.synth-val.moment { font-family: var(--police); font-size: 17px; font-weight: 500; background: none; }
.synth-val.moment .status-ic { width: 26px; height: 26px; }
.synth-val.moment .status-ic svg { width: 15px; height: 15px; }
.synth-val.s-go { color: var(--go); } .synth-val.s-wait { color: var(--wait); } .synth-val.s-stop { color: var(--stop); } .synth-val.s-pending { color: var(--muted); }
.analyse h2, .pf-ligne h2 { margin: 0 0 10px; font-size: 21px; }
.analyse h3 { margin: 24px 0 4px; font-size: 17px; }
.analyse > p { margin: 0; max-width: 75ch; }
.analyse .analyse-pot { margin-top: 10px; color: var(--muted); }
.analyse-resume { margin: 0; color: var(--muted); font-size: 14.5px; }
.criteres { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin-top: 18px; }
.critere-l { display: flex; justify-content: space-between; font-size: 14.5px; font-weight: 500; }
.critere p { margin: 0; font-size: 13.5px; color: var(--muted); }
.jauge { display: block; height: 5px; border-radius: 99px; background: var(--soft); overflow: hidden; margin: 7px 0; }
.jauge i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.pf-ligne-g { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 8px; }
.pf-ligne-g > div { display: flex; flex-direction: column; gap: 2px; }
.pf-ligne-g b { font-weight: 500; font-variant-numeric: tabular-nums; }
.chart-panel { padding: 20px 22px 14px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.chart-var { font-size: 14px; color: var(--muted); }
.chart-var .var { display: inline; font-size: 15px; }
/* Sélecteur segmenté (périodes, type de compte, connexion) */
.periodes, .segments { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 99px; padding: 3px; gap: 2px; }
.periode, .segments button { border: 0; background: transparent; color: var(--muted); font-size: 14px; padding: 7px 16px; border-radius: 99px; transition: background .15s, color .15s; }
.periode:hover, .segments button:hover { color: var(--text); }
.periode.on, .segments button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(27, 27, 24, .08), 0 0 0 1px var(--line); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 16px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.fact.f-bon { box-shadow: inset 3px 0 0 var(--pos); }
.fact.f-mauvais { box-shadow: inset 3px 0 0 var(--neg); }
.fact-l { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.fact-v { font-size: 18px; font-weight: 500; margin: 5px 0 3px; }
.fact-d { font-size: 13.5px; color: var(--muted); }
.dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--text); }
.avis-bar { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--soft); margin: 7px 0; }
.avis-bar i { display: block; height: 100%; }
.a-achat { background: var(--pos); } .a-cons { background: #C9A25A; } .a-vente { background: var(--neg); }
.news { display: flex; flex-direction: column; gap: 10px; }
.news-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; display: flex; gap: 14px; transition: transform .2s var(--doux), box-shadow .2s; }
a.news-item:hover { transform: translateY(-2px); box-shadow: var(--ombre-survol); }
.news-item > div { flex: 1; min-width: 0; }
.news-bar { width: 3px; border-radius: 3px; flex: none; }
.news-item.positif .news-bar { background: var(--pos); }
.news-item.negatif .news-bar { background: var(--neg); }
.news-item.neutre .news-bar { background: var(--line); }
.news-t { font-weight: 500; }
.news-m { font-size: 12.5px; color: var(--muted); margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.news-link { margin-left: auto; color: var(--text); }
.tag { font-weight: 500; }
.positif .tag { color: var(--pos); } .negatif .tag { color: var(--neg); }

/* ---------- Suggestions ---------- */
.suggs { display: grid; gap: 16px; margin-top: 22px; }
.sugg { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 24px 22px; transition: transform .2s var(--doux), box-shadow .2s; }
.sugg:hover { transform: translateY(-2px); box-shadow: var(--ombre-survol); }
.sugg .sugg-head { padding: 14px 0; border-bottom: 0; margin: 0 -6px; }
.sugg .sugg-head:hover { background: none; }
.sugg-statut { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sugg-statut .pot { font-style: normal; font-size: 13.5px; color: var(--muted); }
.sugg h3 { font-family: var(--police); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 20px 0 6px; }
.sugg p, .sugg ul { margin: 0; font-size: 15px; }
.sugg ul { padding-left: 20px; }
.sugg-risque { margin-top: 16px !important; padding: 12px 14px; border-radius: var(--r-sm); background: var(--soft); font-size: 14.5px !important; }
.bloc { margin-top: 30px; }
.bloc-head h3 { margin: 0 0 10px; }
.sel-liste { display: grid; gap: 10px; }
.sel-item .row { border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; background: var(--card); }
.sel-ia { margin: 0; padding: 10px 18px 14px; font-size: 14px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- Fiabilité ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.bench { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.bench th, .bench td { text-align: left; vertical-align: middle; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.bench thead th { font-size: 13.5px; font-weight: 400; color: var(--muted); background: var(--soft); }
.bench tbody th { font-weight: 500; white-space: nowrap; }
.bench tbody tr:last-child th, .bench tbody tr:last-child td { border-bottom: 0; }
.bench td { color: var(--muted); font-variant-numeric: tabular-nums; }
.fiab td.up { color: var(--pos); font-weight: 500; } .fiab td.down { color: var(--neg); font-weight: 500; }
.fiab tbody th { display: flex; align-items: center; gap: 10px; }
.fiab .status-ic { width: 26px; height: 26px; }
.fiab .status-ic svg { width: 15px; height: 15px; }

/* ---------- Profil ---------- */
.p-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding: 26px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); font-weight: 500; font-size: 15px; background: var(--accent-pale); }
.avatar.xl { width: 68px; height: 68px; font-family: var(--police-titre); font-size: 30px; }
.p-id { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 220px; }
.p-nom { display: flex; align-items: center; gap: 12px; }
.p-nom input { font-family: var(--police-titre); font-size: 34px; font-weight: 500; letter-spacing: -.02em; color: var(--text); background: transparent; border: 0; border-bottom: 1px dashed transparent; padding: 0; width: 100%; max-width: 340px; outline: none; }
.p-nom input:hover, .p-nom input:focus { border-bottom-color: var(--line-fort); }
.p-nom .link-btn { color: var(--accent); opacity: 0; transition: opacity .2s; }
.p-nom:focus-within .link-btn { opacity: 1; }
.p-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.p-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .2s var(--doux), box-shadow .2s; }
.p-tile:hover { transform: translateY(-2px); box-shadow: var(--ombre-survol); }
.p-l { font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.p-tile b { font-size: 17px; font-weight: 500; }
.p-tile small { font-size: 13px; color: var(--muted); }
.p-tile small a { color: var(--accent); }
.stats .p-tile b { font-family: var(--police-titre); font-size: 30px; }
.credit-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.pf-l { font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pf-valeur { font-family: var(--police-titre); font-size: 40px; font-weight: 500; letter-spacing: -.02em; margin: 4px 0; font-variant-numeric: tabular-nums lining-nums; }
.cr-grille, .cr-postes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; margin-top: 18px; }
.cr-postes { padding-top: 16px; border-top: 1px solid var(--line); }
.cr-ligne { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.cr-ligne span { color: var(--muted); }
.cr-ligne b { font-weight: 500; font-variant-numeric: tabular-nums; }
.cr-form { margin-top: 20px; }
.cr-form label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.cr-form > div { display: flex; gap: 8px; }
.cr-form input { flex: 1; }
.cr-note { font-size: 12.5px; margin: 14px 0 0; }
.p-compte { display: grid; gap: 16px; }
.p-compte summary { cursor: pointer; font-weight: 500; }
.mdp-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.mdp-form .search { flex: 1 1 220px; }
.p-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Apprendre ---------- */
.learn .page-tete { margin-bottom: 30px; }
.sous-onglets { display: flex; gap: 36px; border-bottom: 1px solid var(--line); margin-bottom: 34px; overflow-x: auto; scrollbar-width: none; }
.sous-onglets button { position: relative; flex: none; background: none; border: 0; padding: 12px 0 16px; font-size: 16px; color: var(--muted); transition: color .15s; }
.sous-onglets button:hover { color: var(--text); }
.sous-onglets button[aria-selected="true"] { color: var(--text); }
.sous-onglets button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); animation: souligne .25s var(--doux); }
@keyframes souligne { from { transform: scaleX(.4); opacity: 0; } }
.panneau { animation: panneauIn .25s var(--doux); }
@keyframes panneauIn { from { opacity: 0; transform: translateY(6px); } }
.section-tete { margin: 52px 0 18px; }
.panneau > .section-tete:first-child { margin-top: 0; }
.section-titre { font-size: 34px; line-height: 1.1; margin: 0; letter-spacing: -.02em; }
.section-tete .muted { margin: 8px 0 0; }

.learn-haut { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(240px, 1fr); gap: 24px; }
.prochaine { padding: 30px 32px 32px; transition: transform .2s var(--doux), box-shadow .2s, opacity .2s; }
.prochaine.change { opacity: 0; }
.prochaine-titre { font-size: clamp(32px, 3.6vw, 42px); line-height: 1.1; margin: 10px 0 12px; }
.prochaine-txt { margin: 0 0 26px; color: #4C4B45; font-size: 16px; max-width: 58ch; }
.progression { display: flex; flex-direction: column; justify-content: center; }
.prog-n { font-family: var(--police-titre); font-size: 64px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums lining-nums; }
.prog-barre { height: 6px; border-radius: 99px; background: #EEEAE0; overflow: hidden; margin: 26px 0 12px; }
.prog-barre i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .9s var(--doux); }
.prog-pct { margin: 0; font-size: 14px; color: var(--muted); }

/* Liste des fiches : cercle numéroté, titre, description, statut */
.fiches { list-style: none; margin: 0; padding: 0; }
.fiches li { border-bottom: 1px solid var(--line); }
.fiche {
  display: flex; align-items: center; gap: 22px; text-align: left; padding: 18px 12px; margin: 0 -12px; width: calc(100% + 24px);
  background: transparent; border: 1px solid transparent; border-radius: var(--radius); color: var(--text);
  transition: transform .2s var(--doux), box-shadow .2s var(--doux), background .2s, border-color .2s;
}
.fiche:hover { background: var(--card); border-color: var(--line); box-shadow: var(--ombre-survol); transform: translateY(-2px); }
.fiche:focus-visible { outline-offset: -2px; }
.fiche-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 3px; }
.fiche-txt b { font-family: var(--police-titre); font-weight: 500; font-size: 21px; letter-spacing: -.01em; }
.fiche-txt small { font-size: 14.5px; color: var(--muted); }
.fiche-statut { display: flex; align-items: center; gap: 8px; flex: none; min-width: 170px; font-size: 14.5px; color: var(--muted); }
.fiche-chev { flex: none; display: grid; place-items: center; color: var(--muted); transition: transform .2s var(--doux); }
.fiche-chev svg { width: 18px; height: 18px; }
.fiche:hover .fiche-chev { transform: translateX(3px); color: var(--text); }
.coche { display: inline-grid; place-items: center; width: 20px; height: 20px; color: var(--accent); }
.coche svg { width: 20px; height: 20px; }
.coche.anime { animation: cochePop .45s var(--doux) .15s both; }
.coche.anime path { stroke-dasharray: 21; stroke-dashoffset: 21; animation: trace .4s var(--doux) .3s forwards; }
@keyframes cochePop { from { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } to { transform: scale(1); } }
@keyframes trace { to { stroke-dashoffset: 0; } }
.fiche.comprise .fiche-statut { color: var(--text); }
.anciennes { margin-top: 26px; }
.anciennes summary { cursor: pointer; font-weight: 500; }

/* Règles d'or */
.regles { list-style: none; margin: 0; padding: 8px 28px; }
.regles li { display: flex; align-items: flex-start; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.regles li:last-child { border-bottom: 0; }
.regles p { margin: 7px 0 0; font-size: 16px; }

/* Enveloppes */
.env-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.env-card { position: relative; padding: 26px 22px 20px; }
.env-card.conseil { border-color: var(--accent); }
.env-tag { position: absolute; top: -11px; left: 18px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 99px; }
.env-card h3 { margin: 0 0 2px; font-size: 24px; }
.env-acc { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }
.env-card dl { margin: 0; display: grid; }
.env-card dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; padding: 9px 0; border-top: 1px solid var(--line); }
.env-card dt { color: var(--muted); }
.env-card dd { margin: 0; font-weight: 500; text-align: right; }
.env-quoi { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }

/* Fiscalité */
.taux-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.taux-card { padding: 20px; }
.taux-v { font-family: var(--police-titre); font-size: 40px; font-weight: 500; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums lining-nums; }
.taux-n { font-weight: 500; margin-top: 8px; }
.taux-d { font-size: 13px; color: var(--muted); margin-top: 4px; }
.t-cto .taux-v, .t-pea_avant .taux-v { color: var(--neg); }
.t-pea_apres .taux-v, .t-av .taux-v { color: #9A6412; }
.t-livret .taux-v { color: var(--pos); }
.impots { margin-top: 20px; }
.impots-q { display: block; font-size: 18px; }
.impots-in { display: inline-flex; align-items: baseline; gap: 4px; border-bottom: 2px solid var(--accent); padding: 0 4px; margin: 0 4px; }
.impots-in input { width: 110px; border: 0; background: transparent; color: var(--accent); font: inherit; font-family: var(--police-titre); font-size: 22px; text-align: right; outline: none; }
.bars { display: grid; gap: 12px; margin-top: 18px; }
.bar-row { display: grid; grid-template-columns: 200px 1fr 90px; align-items: center; gap: 14px; font-size: 14.5px; }
.bar-row b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.bar { height: 10px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: #B9AF9A; border-radius: 99px; transition: width .4s var(--doux); }
.bon { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 20px; }
.bon details { padding: 16px 20px; }
.bon summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.bon summary::-webkit-details-marker { display: none; }
.bon summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.bon details[open] summary::after { content: "−"; }
.bon details p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }
.sources { font-size: 14px; margin-top: 30px; color: var(--muted); }
.sources summary { cursor: pointer; font-weight: 500; color: var(--text); }
.sources ul { margin: 10px 0; padding-left: 20px; }
.sources a { color: var(--accent); }

/* Courtiers */
.segments { margin-bottom: 18px; }
.podium { display: grid; gap: 12px; }
.rang-card { display: flex; align-items: center; gap: 18px; width: 100%; text-align: left; padding: 16px 22px; color: var(--text); }
.rang-logo { flex: none; width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; color: #fff; font-weight: 500; font-size: 17px; }
.rang-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.rang-txt b { font-family: var(--police-titre); font-weight: 500; font-size: 20px; }
.rang-txt small { color: var(--muted); font-size: 14px; }
.rang-notes { display: flex; gap: 18px; }
.rang-notes > span { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.rang-notes em { font-style: normal; font-size: 12px; color: var(--muted); }
.rang-notes i { display: flex; gap: 4px; }
.rang-notes s { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.rang-notes s.on { background: var(--accent); }
.rang-card:hover .fiche-chev { transform: translateX(3px); color: var(--text); }

/* ---------- Écran plein écran (fiche, quiz, courtier) ---------- */
.ecran { position: fixed; inset: 0; z-index: 60; background: var(--accent-pale); color: var(--text); display: flex; flex-direction: column; }
.ecran-haut { flex: none; position: relative; display: flex; align-items: center; justify-content: center; height: 68px; padding: 0 76px; }
.ecran-fermer, .ecran-haut .son-btn { position: absolute; top: 15px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.ecran-fermer { left: 20px; background: var(--card); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.ecran-fermer:hover { border-color: var(--line-fort); }
.ecran-fermer svg { width: 16px; height: 16px; }
.ecran-haut .son-btn { right: 20px; }
.ecran-repere { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecran-corps { flex: 1; overflow-y: auto; padding: 4px 24px 64px; }
.ecran-contenu { max-width: 680px; margin: 0 auto; transition: opacity .18s var(--doux), transform .18s var(--doux); animation: contenuIn .35s var(--doux) .12s backwards; }
.ecran-contenu.sort { opacity: 0; transform: translateY(6px); }
@keyframes contenuIn { from { opacity: 0; transform: translateY(10px); } }
.lecture { padding-top: 5vh; }
.lecture.large { max-width: none; }
.ecran-contenu:has(.lecture.large) { max-width: 1000px; }
.lecture .rond.grand { margin-bottom: 24px; }
.ecran-titre { font-size: clamp(36px, 5.4vw, 54px); line-height: 1.05; letter-spacing: -.025em; margin: 10px 0 20px; }
.ecran-titre.petit { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.18; margin-bottom: 26px; }
.lecture-texte { margin: 0; font-size: 19px; line-height: 1.65; }
.exemple { margin-top: 28px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.exemple > p:last-child { margin: 8px 0 0; font-size: 16px; }
.ecran-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; }

/* Quiz */
.quiz-q { padding-top: 5vh; }
.quiz-points { display: flex; gap: 6px; margin-bottom: 22px; }
.quiz-points i { width: 32px; height: 4px; border-radius: 99px; background: var(--accent-doux); transition: background .3s; }
.quiz-points i.fait { background: var(--accent); }
.reponses { display: grid; gap: 10px; }
.reponse {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 16px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font-size: 16px;
  transition: transform .2s var(--doux), box-shadow .2s var(--doux), border-color .2s, background .2s, opacity .2s;
}
.reponse:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--ombre-survol); border-color: var(--line-fort); }
.reponse:disabled { cursor: default; }
.reponse:disabled:not(.bonne):not(.fausse) { opacity: .5; }
.reponse-l { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--rond); font-size: 13px; font-weight: 500; transition: background .2s, color .2s; }
.reponse.bonne { border-color: var(--accent); background: #F7FAF6; }
.reponse.bonne .reponse-l { background: var(--accent); color: #fff; }
.reponse.fausse { border-color: #E2B8B2; background: #FCF4F2; }
.reponse.fausse .reponse-l { background: var(--neg); color: #fff; }
.retour-q { margin-top: 18px; padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); animation: contenuIn .25s var(--doux); }
.retour-q.ko { border-left-color: var(--neg); }
.retour-q p { margin: 0 0 14px; }
.retour-q b { font-weight: 500; }

/* Résultat */
.resultat { padding-top: 10vh; text-align: center; display: flex; flex-direction: column; align-items: center; }
.resultat .ecran-titre { margin-top: 8px; }
.resultat-txt { margin: 0; color: #4C4B45; font-size: 17px; max-width: 46ch; }
.resultat .ecran-actions { justify-content: center; }
.rond.score { margin-bottom: 22px; font-size: 21px; }
.coche-anim { width: 78px; height: 78px; margin-bottom: 20px; }
.coche-anim circle { fill: var(--card); stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 151; stroke-dashoffset: 151; animation: trace .5s var(--doux) forwards; }
.coche-anim path { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 34; stroke-dashoffset: 34; animation: trace .35s var(--doux) .4s forwards; }

/* Courtier */
.courtier-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.courtier-cols .exemple { margin-top: 20px; }
.frais-liste { margin: 8px 0 0; display: grid; }
.frais-liste div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.frais-liste div:last-child { border-bottom: 0; }
.frais-liste dt { color: var(--muted); }
.frais-liste dd { margin: 0; font-weight: 500; text-align: right; }
.pm { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.pm li { padding-left: 22px; position: relative; }
.pm.plus li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }
.pm.moins li::before { content: "–"; position: absolute; left: 2px; color: var(--neg); }

/* ---------- Connexion ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-box { width: min(420px, 100%); padding: 36px 34px 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); animation: contenuIn .4s var(--doux) both; }
.auth-logo { margin-bottom: 26px; }
.auth-titre { font-size: 34px; margin: 0; }
.auth-sous { margin: 6px 0 24px; color: var(--muted); }
.auth-tabs { display: flex; margin-bottom: 22px; }
.auth-tabs button { flex: 1; }
.auth-form { display: grid; gap: 16px; }
.auth-form label { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.auth-form .search { font-size: 16px; padding: 12px 14px; }
.auth-form .btn-primary { margin-top: 6px; padding: 13px; }
.auth-erreur { margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: #FBF1EF; color: var(--neg); font-size: 14px; }
.auth-note { margin: 18px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------- Détail du portefeuille (écran plein écran depuis la carte « Valeur ») ---------- */
.carte-valeur.cliquable { cursor: pointer; }
.cv-haut { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lien-detail { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 4px 0; font-size: 14px; font-weight: 500; color: var(--accent); }
.lien-detail svg { width: 16px; height: 16px; transition: transform .2s var(--doux); }
.carte-valeur:hover .lien-detail svg { transform: translateX(3px); }
.pf-legende i.l-sp500 { border-top: 2px dashed var(--faint); }
.pf-legende i.l-ndx { border-top: 2px dotted var(--muted); }
.pf-legende i.l-panier { border-top: 2px dashed var(--text); }
.ecran-contenu.large { max-width: 1120px; }
.detail { padding-top: 2vh; }
.detail-charge { padding-top: 10vh; text-align: center; }
.detail-tete .ecran-titre { margin: 8px 0 14px; font-variant-numeric: tabular-nums lining-nums; }
.detail-note { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.detail-graph { margin-top: 24px; padding: 22px 24px 18px; }
.detail-graph .chart-box { min-height: 260px; }
.detail-bloc { margin-top: 40px; }
.detail-bloc .section-tete { margin: 0 0 16px; }
.detail-bloc .section-titre { font-size: 26px; display: flex; align-items: baseline; gap: 6px; }
.chart-svg .fin-l { fill: var(--text); font-weight: 500; }
.chart-svg .ring-surface { stroke: var(--card); stroke-width: 2; }
.stats-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.stat { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.stat b { font-family: var(--police-titre); font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums lining-nums; }
.stat small { font-size: 12.5px; color: var(--muted); }
.lignes-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.ligne-fiche { padding: 20px 22px; }
.lf-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lf-nom { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; }
.lf-nom b { font-weight: 500; }
.lf-valeur { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.lf-valeur b { font-weight: 500; font-size: 16px; }
.lf-valeur small { font-size: 13px; }
.lf-meta { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.lf-courbe { margin-top: 12px; }
.lf-courbe svg { display: block; width: 100%; height: 40px; }
.lf-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin: 12px 0 0; }
.lf-chiffres div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.lf-chiffres dt { color: var(--muted); }
.lf-chiffres dd { margin: 0; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.lf-raison { margin: 12px 0 0; font-size: 13.5px; color: #4C4B45; }
.lf-raison .lib { display: block; margin-bottom: 4px; }
.lf-cash .lf-meta { margin-top: 10px; }
.regles-ia { padding: 18px 24px; margin-bottom: 16px; }
.regles-ia ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; }
.regles-ia b { font-weight: 500; }
.crit-barre { display: flex; gap: 2px; width: 140px; height: 7px; }
.crit-barre i { display: block; height: 100%; background: var(--rond); border-radius: 2px; overflow: hidden; }
.crit-barre b { display: block; height: 100%; background: var(--accent); }
.statut-mini { display: inline-flex; align-items: center; gap: 7px; }
.statut-mini .dot { width: 8px; height: 8px; }
.place { font-size: 12.5px; padding: 3px 10px; border-radius: 99px; background: var(--soft); color: var(--muted); }
.place.detenu { background: var(--accent-pale); color: var(--accent); }
.place.ecarte { background: #FBF1EF; color: var(--neg); }
.place.attente { background: transparent; border: 1px dashed var(--line-fort); padding: 2px 9px; white-space: nowrap; }
.detail .carte-table { padding: 0; }
.detail .carte-table .table-pos th { border-top: 0; }
.detail .table-pos td:nth-child(2) .tp-nom { min-width: 280px; }
.detail .table-pos td:nth-child(2) small { max-width: 340px; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .coche-anim circle, .coche-anim path, .coche.anime path { stroke-dashoffset: 0; }
}

/* ---------- Écrans moyens ---------- */
@media (max-width: 1100px) {
  .carte-valeur, .carte-chiffres, .carte-repartition, .carte-mouvements, .carte-surveillance, .carte-suggestions { grid-column: span 12; }
  .learn-haut { grid-template-columns: 1fr; }
  .courtier-cols { grid-template-columns: 1fr; }
}

/* ---------- Téléphone : onglets en barre fixe en bas ---------- */
@media (max-width: 900px) {
  .entete { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .entete-in { padding: 0 16px; gap: 12px; height: 58px; }
  .logo { font-size: 23px; }
  .onglets { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: auto; gap: 0;
    padding: 6px 6px max(6px, env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
  .onglet { flex: 1; flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 11.5px; }
  .onglet svg { display: block; }
  .onglet.on::after { display: none; }
  .onglet.on { color: var(--accent); }
  .entete-droite { gap: 8px; }
  .wrap { padding: 0 16px 104px; }
  .toast { bottom: 92px; }
  .pf-ligne-g { grid-template-columns: repeat(3, 1fr); }
  .fiche-statut { min-width: 0; }
  .fiche-statut span:not(.coche) { display: none; }
  .rang-notes { display: none; }
}
@media (max-width: 640px) {
  .page-tete { margin: 32px 0 26px; }
  .page-sous { font-size: 16px; }
  .search-box { flex-basis: 100%; min-width: 0; }
  .grille { gap: 14px; }
  .carte { padding: 20px 18px; }
  .carte-table { padding: 20px 0 0; }
  .carte-table .carte-tete { padding: 0 18px; }
  .carte-surveillance .table-pos { margin: 0 -18px; }
  .table-pos th:first-child, .table-pos td:first-child { padding-left: 18px; }
  .carte-histo { padding: 4px 18px; }
  .cv-valeur { font-size: 44px; }
  .mvts li { grid-template-columns: 1fr auto; }
  .mvts .op-t, .mvt-date { display: none; }
  .mvts li.mvt-attente { grid-template-columns: auto 1fr auto; row-gap: 2px; }
  .mvts .mvt-attente .op-t { display: inline-block; }
  /* L'heure de passage reste visible, sous le nom */
  .mvts .mvt-attente .mvt-date { display: block; grid-column: 2; grid-row: 2; font-size: 12.5px; }
  .mvts .mvt-attente b { grid-column: 3; grid-row: 1; }
  .ordres { grid-template-columns: 1fr; }
  .synthese { grid-template-columns: 1fr; }
  .synth-col { border-left: 0; border-top: 1px solid var(--line); }
  .synth-col:first-child { border-top: 0; }
  .criteres, .cr-grille, .cr-postes { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .sous-onglets { gap: 24px; margin-bottom: 26px; }
  .section-titre { font-size: 28px; }
  .prochaine { padding: 22px 20px 24px; }
  .prog-n { font-size: 52px; }
  .fiche { gap: 14px; padding: 16px 8px; margin: 0 -8px; width: calc(100% + 16px); }
  .fiche-txt b { font-size: 19px; }
  .bar-row { grid-template-columns: 1fr 80px; }
  .bar-row .bar { grid-column: 1 / -1; grid-row: 2; }
  .row-spark { display: none; }
  .ecran-haut { padding: 0 64px; }
  .ecran-corps { padding: 4px 18px 48px; }
  .lecture-texte { font-size: 17px; }
  .zero-confirm { justify-content: flex-start; }
  .lignes-grille, .lf-chiffres { grid-template-columns: 1fr; }
  .detail-graph { padding: 16px 14px 14px; }
}

/* ---------- Profil : budget de l'IA et état de l'IA ---------- */
.budget-ia { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.budget-l { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.budget-l b { font-weight: 500; font-variant-numeric: tabular-nums; }
.budget-ia .prog-barre { margin: 10px 0 8px; }
.budget-ia p { margin: 0; font-size: 13px; }
.cle-test { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; }
.ia-montage { margin: 0; font-size: 14px; }
.ia-etat .cr-grille { margin-top: 14px; }
.urgences { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; }
.urgences li { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.urgences b { font-weight: 500; }
.urgences li > span:last-child { color: var(--muted); }
.ia-calme { margin: 14px 0 0; font-size: 13.5px; }

/* Ordres en attente (écran détaillé du portefeuille) */
.ordres { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.ordre { padding: 18px 22px; border-style: dashed; }
.ordre-tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ordre-tete b { font-weight: 500; }
.ordre-reserve { margin-left: auto; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ordre-raison { margin: 10px 0 0; font-size: 13.5px; color: #4C4B45; }
.ordres-regle { margin: 14px 0 0; font-size: 13px; max-width: 72ch; }
.ordres-annules { margin-top: 14px; font-size: 13.5px; }
.ordres-annules summary { cursor: pointer; color: var(--muted); }
.ordres-annules ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.ordres-annules li { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ordres-annules li b { font-weight: 500; }
.ordres-annules li span { color: var(--muted); }
.secours { display: block; margin-top: 6px; max-width: 260px; margin-left: auto; font-size: 12.5px; }

/* Sources de données (Profil) */
.src-cle { margin: 14px 0 0; }
.sources .table-wrap { margin-top: 16px; }
.src-table tbody th { display: table-cell; white-space: normal; }
.src-table td.down { color: var(--neg); font-weight: 500; }
.src-err { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Ce que l'IA apprend (Fiabilité) */
.lecons .kicker { margin-bottom: 10px; }
.lecons-bilan { margin: 0; font-size: 15.5px; }
.lecons-liste { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 15px; }
.lecons-liste li::marker { color: var(--accent); font-weight: 500; }
.erreurs-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.erreurs-liste li { display: grid; gap: 2px; padding-left: 12px; border-left: 2px solid var(--line-fort); }
.erreurs-liste a { color: var(--text); }
.erreurs-liste span { color: var(--muted); }
.lecons-histo { margin-top: 18px; }
.lecons-ancien { padding: 16px 0; border-bottom: 1px solid var(--line); }
.lecons-ancien:last-child { border-bottom: 0; }
.lecons-ancien p { margin: 6px 0 10px; font-size: 14.5px; }

/* Cadre du test : ligne d'état, bilan, carnet */
.ligne-test { margin: 0 0 18px; padding: 10px 14px; background: var(--soft); border-left: 3px solid var(--accent); border-radius: 4px; font-size: 14px; color: var(--muted); }
.ligne-test b { color: var(--text); font-weight: 500; }
.zero-test { margin: 0; font-size: 13px; }
.carte-bilan { padding: 22px 24px; margin-bottom: 24px; }
.bilan-criteres { list-style: none; margin: 14px 0 0; padding: 0; }
.bilan-criteres li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.bilan-criteres li:first-child { border-top: 0; }
.bilan-criteres small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.bilan-criteres b { flex: none; font-size: 13px; font-weight: 500; }
.bilan-criteres .reussi b { color: var(--pos); }
.bilan-criteres .rate b { color: var(--neg); }
.bilan-criteres .a-venir b { color: var(--muted); }
.bilan-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 24px; margin-top: 14px; }
.contributions { list-style: none; margin: 8px 0 0; padding: 0; columns: 2; column-gap: 32px; }
.contributions li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; break-inside: avoid; font-variant-numeric: tabular-nums; }
.carnet-form { display: grid; gap: 8px; justify-items: start; margin-bottom: 16px; }
.carnet-form label { font-size: 13.5px; color: var(--muted); }
.carnet-form textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line-fort); border-radius: 6px; font: inherit; font-size: 14px; background: var(--card); color: var(--text); resize: vertical; }
.carnet { list-style: none; margin: 0; padding: 0; }
.carnet li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.carnet small { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 2px; }
@media (max-width: 640px) { .contributions { columns: 1; } }
