/* =====================================================================
   Espace privé : menu latéral + thème sombre violet / rose.
   Actif uniquement quand <body> porte la classe "shell" (espace membre et
   pages boutiques). Le site public garde son thème clair.
   ===================================================================== */

body.shell {
  /* Thème par défaut : « Violet nuit ». Les autres thèmes (en bas du fichier) ne changent que ces variables. */
  --a1-rgb: 168, 85, 247; --a2-rgb: 236, 72, 153; --av-rgb: 184, 107, 255; --ln-rgb: 190, 140, 255;
  --cd-rgb: 30, 19, 48; --g3-rgb: 124, 58, 237; --sb1-rgb: 88, 28, 135; --sb2-rgb: 20, 10, 34; --sb3-rgb: 12, 6, 20;
  --base: #0b0613; --tip-bg: #1d1030; --toast-bg: #2a1840; --bar1: #c084fc; --bar2: #a855f7;
  --grad: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  --violet: #b86bff;
  --pink: #f472d0;
  --pz-rgb: 244, 114, 208; --pz-ink: #f9a8e0; /* bouton Pause */
  --tm-rgb: 216, 180, 254; --tm: #e4c9ff; /* compteur */
  --glass: rgba(255, 255, 255, 0.035);

  /* variables du site (espace membre) */
  --cream: var(--base);
  --ink: #f4eefb;
  --ink-soft: #ab9fc2;
  --border: rgba(var(--ln-rgb), 0.17);
  --card: rgba(var(--cd-rgb), 0.66);
  --accent: #f472d0;
  --ok: #4ade80;
  --warn: #fbbf24;

  /* variables des pages boutiques */
  --d-bg: transparent;
  --d-card: rgba(var(--cd-rgb), 0.66);
  --d-line: rgba(var(--ln-rgb), 0.15);
  --d-ink: #f4eefb;
  --d-soft: #ab9fc2;
  --d-mute: #7f7396;
  --d-blue: #b86bff;
  --d-blue-soft: rgba(var(--av-rgb), 0.17);
  --d-up: #4ade80;
  --d-down: #fb7185;

  color: var(--ink);
  color-scheme: dark;
  padding-left: 248px;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 12% -12%, rgba(var(--a1-rgb), 0.30), transparent 62%),
    radial-gradient(900px 520px at 105% 0%, rgba(var(--a2-rgb), 0.17), transparent 58%),
    radial-gradient(700px 500px at 50% 115%, rgba(var(--g3-rgb), 0.14), transparent 60%),
    var(--base);
  background-attachment: fixed;
}
html:has(body.shell) { background: #0b0613; }

/* ---------- Menu latéral ---------- */
.sb { display: none; }
body.shell .sb {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 30;
  top: 0; left: 0; bottom: 0;
  width: 248px;
  padding: 22px 14px 14px;
  background: linear-gradient(180deg, rgba(var(--sb1-rgb), 0.34) 0%, rgba(var(--sb2-rgb), 0.74) 45%, rgba(var(--sb3-rgb), 0.86) 100%);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.sb-logo { display: flex; justify-content: center; padding: 6px 6px 22px; }
.sb-logo img { width: 150px; height: auto; display: block; filter: drop-shadow(0 0 14px rgba(var(--av-rgb), 0.45)); }
.sb-nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; flex: 1; }
.sb-label { margin: 16px 12px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--d-mute); }
.sb-label:first-child { margin-top: 4px; }
.sb-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 12px;
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; transition: background .15s, color .15s;
}
.sb-link:hover { background: var(--glass); color: var(--ink); }
.sb-link.is-active {
  color: #fff; background: linear-gradient(90deg, rgba(var(--a1-rgb), 0.28), rgba(var(--a2-rgb), 0.14));
  border-color: rgba(var(--ln-rgb), 0.32);
  box-shadow: 0 0 24px rgba(var(--a1-rgb), 0.16);
}
.sb-link.is-active svg { color: var(--pink); }
.sb-user {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding: 10px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--border);
}
.sb-avatar {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--grad);
}
.sb-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sb-who b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-who small { color: var(--d-mute); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-logout { background: none; border: none; color: var(--ink-soft); cursor: pointer; padding: 6px; border-radius: 8px; display: grid; }
.sb-logout:hover { color: #fb7185; background: rgba(251, 113, 133, 0.1); }

/* Sous-menu des boutiques */
.sb-tree { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 4px 14px; padding-left: 10px; border-left: 1px solid var(--border); }
.sb-shop { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 13.5px; }
.sb-shop:hover { background: var(--glass); color: var(--ink); }
.sb-shop.is-open { color: #fff; }
.sb-shop-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--d-mute); flex: none; }
.sb-shop.is-open .sb-shop-dot { background: var(--grad); box-shadow: 0 0 8px rgba(var(--a2-rgb), 0.7); }
.sb-chev { margin-left: auto; flex: none; transition: transform .18s; opacity: .7; }
.sb-chev.is-open { transform: rotate(180deg); }
.sb-health svg { width: 15px; height: 15px; flex: none; }
.sb-health.is-open { background: rgba(var(--a1-rgb), 0.22); }
.sb-subs { display: flex; flex-direction: column; gap: 1px; margin: 0 0 6px 8px; padding-left: 10px; border-left: 1px solid var(--border); }
.sb-sub { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 9px; color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 13px; }
.sb-sub svg { width: 15px; height: 15px; flex: none; }
.sb-sub:hover { background: var(--glass); color: var(--ink); }
.sb-sub.is-active { color: #fff; background: rgba(var(--a1-rgb), 0.22); }
.sb-sub.is-active svg { color: var(--pink); }

/* Anciens en-têtes remplacés par le menu */
body.shell .d-top { display: none; }
body.shell .topbar { display: none; }

/* ---------- Titres de vue ---------- */
.shell-main { min-width: 0; }
.eyebrow { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pink); }
.view-title { margin: 0; font-family: var(--font-display); font-size: 34px; letter-spacing: -0.02em; }
.view-sub { margin: 6px 0 0; color: var(--ink-soft); }
.set-wrap { padding-top: 36px; }
#view-timer .set-wrap { padding-bottom: 0; }
body.shell .app-main { padding-top: 22px; }
body.shell .wrap { max-width: 1060px; }

/* ---------- Cartes, boutons, champs (espace membre) ---------- */
body.shell .timer-card, body.shell .report-card, body.shell .d-card, body.shell .set-card {
  background: var(--card);
  border-color: var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 40px rgba(5, 0, 12, 0.35);
  backdrop-filter: blur(6px);
}
body.shell .btn-dark { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 22px rgba(var(--a1-rgb), 0.32); }
body.shell .btn-dark:hover { background: var(--grad); filter: brightness(1.1); }
body.shell .btn-dark.is-pause { background: rgba(var(--pz-rgb), 0.14); color: var(--pz-ink); border-color: rgba(var(--pz-rgb), 0.55); box-shadow: none; }
body.shell .btn-dark.is-pause:hover { background: rgba(var(--pz-rgb), 0.22); }
body.shell .btn-light { color: var(--ink); border-color: var(--border); background: var(--glass); }
body.shell .btn-light:hover { border-color: var(--pink); }
body.shell .btn-icon { background: var(--glass); border-color: var(--border); color: var(--ink); }
body.shell .btn-icon:hover { border-color: var(--pink); }
body.shell .btn-link, body.shell .link-btn { color: var(--pink); }

body.shell .status-chip { background: var(--glass); border-color: var(--border); color: var(--ink-soft); }
body.shell .status-dot { background: #7f7396; }
body.shell .status-chip[data-state="running"] { color: #86efac; border-color: rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.1); }
body.shell .status-chip[data-state="paused"] { color: #fcd34d; border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.1); }
body.shell .timer-display { background: none; -webkit-text-fill-color: var(--tm); color: var(--tm); text-shadow: 0 0 28px rgba(var(--tm-rgb), 0.45); }

body.shell .segments-list li, body.shell .week-totals li, body.shell .stat-tile, body.shell .m-day { background: var(--glass); border-color: var(--border); }
body.shell .segments-list .seg-time, body.shell .stat-tile .v { color: var(--ink); }
body.shell .seg-delete { color: #7f7396; }
body.shell .seg-delete:hover { color: #fb7185; }
body.shell .seg-tabs { background: var(--glass); border-color: var(--border); }
body.shell .seg-tab.active { background: var(--grad); color: #fff; }
body.shell .bar { background: rgba(255, 255, 255, 0.10); }
body.shell .bar-col.has-time .bar { background: linear-gradient(180deg, var(--bar1), var(--bar2)); }
body.shell .bar-col.is-today .bar, body.shell .bar-col.has-time.is-today .bar { background: var(--grad); }
body.shell .bar-col.is-today .bar-label { color: var(--pink); }
body.shell .m-day.has-time { background: rgba(var(--av-rgb), calc(0.14 + var(--lvl, 0) * 0.55)); }
body.shell .m-day.is-today { box-shadow: 0 0 0 2px var(--pink); }
body.shell .week-totals li .w-bar { background: rgba(255, 255, 255, 0.09); }
body.shell .week-totals li .w-bar i { background: var(--grad); }
body.shell .manual-form input, body.shell .m-fields input, body.shell .d-custom input, body.shell .decl-pick select {
  background: rgba(255, 255, 255, 0.05); color: var(--ink); border-color: var(--border);
}
body.shell .toast { background: var(--toast-bg); color: var(--ink); border: 1px solid var(--border); }
body.shell .empty { color: var(--ink-soft); }

/* ---------- Pages boutiques ---------- */
body.shell.dash { background-color: var(--base); }
body.shell .d-seg { background: var(--glass); border-color: var(--d-line); }
body.shell .d-seg button.on { background: var(--d-blue-soft); color: #e9c9ff; }
body.shell .d-tag { color: #fcd34d; background: rgba(251, 191, 36, 0.13); }
body.shell .d-tip { background: var(--tip-bg); border-color: var(--border); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); color: var(--ink); }
body.shell .d-error { background: rgba(251, 113, 133, 0.12); color: #fda4af; }
body.shell .d-apply { background: var(--grad); color: #fff; }
body.shell .d-apply:hover { background: var(--grad); filter: brightness(1.1); }
body.shell .d-decl { background: var(--glass); border-color: var(--d-line); color: var(--d-ink); }
body.shell .d-decl:hover { border-color: var(--pink); color: #fff; }
body.shell .d-decl svg { color: var(--pink); }
body.shell .d-kpi.d-profit, body.shell .m-hero { background: rgba(74, 222, 128, 0.09); border-color: rgba(74, 222, 128, 0.25); }
body.shell .d-kpi.d-profit:hover { background: rgba(74, 222, 128, 0.15); }
body.shell .d-kpi.d-profit .l, body.shell .d-kpi.d-profit .s, body.shell .m-hero .lbl { color: #86efac; }
body.shell .d-kpi.d-profit .v, body.shell .m-hero .big { color: #bbf7d0; }
body.shell .d-kpi.d-profit.neg, body.shell .m-hero.neg { background: rgba(251, 113, 133, 0.09); border-color: rgba(251, 113, 133, 0.28); }
body.shell .d-kpi.d-profit.neg .l, body.shell .d-kpi.d-profit.neg .s, body.shell .m-hero.neg .lbl { color: #fda4af; }
body.shell .d-kpi.d-profit.neg .v, body.shell .m-hero.neg .big { color: #fecdd3; }
body.shell .m-warn { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.3); color: #fcd34d; }
body.shell .decl-table td.neg, body.shell .m-ko, body.shell .s-actions .ko, body.shell .s-error .s-msg { color: #fda4af; }
body.shell .decl-table td.pos, body.shell .m-ok, body.shell .s-actions .ok { color: #86efac; }
body.shell .s-sum.ok { color: #86efac; background: rgba(74, 222, 128, 0.12); }
body.shell .s-sum.bad { color: #fda4af; background: rgba(251, 113, 133, 0.12); }
body.shell .s-warn .s-dot { background: #fbbf24; }
body.shell .d-wrap { max-width: 1120px; }
body.shell main.d-wrap { padding-top: 28px; }
body.shell .d-head { margin-top: 0; }
body.shell .d-title h1 { font-size: 24px; }

/* ---------- Page Paramètres ---------- */
.set-hero {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 24px 0 18px; padding: 20px 22px; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 40px rgba(5, 0, 12, 0.35);
}
.set-avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 700; color: #fff; background: var(--grad); box-shadow: 0 0 0 3px rgba(var(--ln-rgb), 0.3); }
.set-hero-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.set-hero-text b { font-size: 22px; font-family: var(--font-display); }
.set-hero-text span { color: var(--ink-soft); font-size: 14px; overflow-wrap: anywhere; }
.set-since { display: flex; flex-direction: column; padding: 10px 16px; border-radius: 12px; background: var(--glass); border: 1px solid var(--border); }
.set-since small { color: var(--d-mute); font-size: 11.5px; }
.set-since b { font-size: 14px; }
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; align-items: start; }
.set-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.set-card header h2 { margin: 0; font-family: var(--font-display); font-size: 18px; }
.set-card header p { margin: 4px 0 18px; color: var(--ink-soft); font-size: 13.5px; }
.set-form { display: flex; flex-direction: column; gap: 14px; }
.set-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.set-form input {
  font: inherit; font-size: 14.5px; padding: 11px 13px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); color: var(--ink); border: 1px solid var(--border); outline: none; width: 100%;
}
.set-form input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(var(--av-rgb), 0.22); }
.set-form input:disabled { opacity: 0.55; cursor: not-allowed; }
.set-form small { font-weight: 400; color: var(--d-mute); }
.set-form .btn-small { align-self: flex-start; }
.form-error { min-height: 1.2em; margin: 0; font-size: 13px; color: #fda4af; }
.form-error.is-ok { color: #86efac; }
.set-backup { margin-bottom: 14px; }
.bk-drive { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--glass); }
.bk-drive-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 260px; }
.bk-drive-text span { color: var(--ink-soft); font-size: 13px; }
.bk-drive-text span.ok { color: var(--ok); } .bk-drive-text span.ko { color: #fb7185; }
.bk-drive-btns { display: flex; gap: 8px; }
.bk-drive-btns a { text-decoration: none; }
.bk-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.bk-actions .ok { color: var(--ok); font-size: 13.5px; } .bk-actions .ko { color: #fb7185; font-size: 13.5px; }
.bk-list { list-style: none; margin: 0; padding: 0; }
.bk-list li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.bk-main { display: flex; flex-direction: column; min-width: 120px; }
.bk-main span { color: var(--ink-soft); font-size: 12.5px; }
.bk-files { flex: 1 1 220px; min-width: 0; font-size: 12.5px; color: var(--ink-soft); overflow-wrap: anywhere; }
.bk-files a { color: var(--pink); text-decoration: none; } .bk-files a:hover { text-decoration: underline; }
.bk-dl { text-decoration: none; margin-left: auto; }
.bk-empty { color: var(--ink-soft); font-size: 13.5px; border-top: none !important; } .bk-err { color: #fb7185; }
.set-session { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 18px 22px; }
.set-session header p { margin-bottom: 0; }

/* ---------- Mobile : le menu passe en barre du haut ---------- */
@media (max-width: 900px) {
  body.shell { padding-left: 0; }
  body.shell .sb {
    position: sticky; top: 0; bottom: auto; width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px;
    padding: 10px 12px 8px; border-right: none; border-bottom: 1px solid var(--border);
  }
  .sb-logo { order: 1; }
  .sb-user { order: 2; margin-left: auto; }
  .sb-nav { order: 3; flex: 0 0 100%; }
  .sb-logo { padding: 0; }
  .sb-logo img { width: 96px; }
  .sb-nav { flex-direction: row; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .sb-nav::-webkit-scrollbar { display: none; }
  .sb-label { display: none; }
  .sb-link { padding: 8px 10px; white-space: nowrap; font-size: 13px; }
  .sb-link svg { display: none; }
  .sb-link[data-k="site"] { display: none; }
  #sb-shops { display: contents; }
  .sb-tree, .sb-subs { flex-direction: row; margin: 0; padding: 0; border: none; gap: 4px; }
  .sb-subs { display: contents; }
  .sb-shop, .sb-sub { white-space: nowrap; padding: 8px 10px; font-size: 13px; }
  .sb-sub svg, .sb-shop-dot { display: none; }
  .sb-user { padding: 2px 4px; background: none; border: none; margin-top: 0; }
  .sb-who { display: none; }
  .set-grid { grid-template-columns: 1fr; }
  .view-title { font-size: 28px; }
}

/* Pas de bandeau cookies dans l'espace privé (aucune mesure d'audience ici) */
body.shell #consent-banner { display: none !important; }


/* ---------- Choix du thème (bouton en bas à droite) ---------- */
.theme-fab { display: none; }
body.shell .theme-fab {
  display: grid; place-items: center; position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  background: rgba(var(--cd-rgb), 0.92); color: var(--ink); border: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}
body.shell .theme-fab:hover { border-color: var(--pink); }
.theme-pop {
  position: fixed; right: 18px; bottom: 70px; z-index: 61; width: 236px; padding: 8px;
  background: rgba(var(--cd-rgb), 0.98); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); color: var(--ink);
}
.theme-pop h3 { margin: 6px 8px 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.theme-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px;
  background: none; border: 1px solid transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; text-align: left;
}
.theme-opt:hover { background: var(--glass); }
.theme-opt.on { border-color: var(--border); background: var(--glass); }
.theme-dots { display: inline-flex; flex: none; }
.theme-dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); margin-right: -6px; }
.theme-opt .tick { margin-left: auto; opacity: 0; }
.theme-opt.on .tick { opacity: 1; }

/* ---------- Thèmes ---------- */
/* Graphite : anthracite neutre, texte blanc cassé, accent gris-bleu */
html[data-theme="graphite"]:has(body.shell) { background: #101113; }
html[data-theme="graphite"] body.shell {
  --a1-rgb: 120, 132, 156; --a2-rgb: 160, 170, 190; --av-rgb: 150, 162, 186; --ln-rgb: 170, 178, 196;
  --cd-rgb: 28, 29, 33; --g3-rgb: 70, 78, 96; --sb1-rgb: 52, 56, 66; --sb2-rgb: 24, 25, 29; --sb3-rgb: 17, 18, 21;
  --base: #101113; --tip-bg: #25272c; --toast-bg: #2a2c32; --bar1: #aab3c5; --bar2: #7b869c;
  --grad: linear-gradient(135deg, #5d6980 0%, #8a96ad 100%);
  --violet: #aab3c5; --pink: #c9d0de; --accent: #c9d0de;
  --pz-rgb: 201, 208, 222; --pz-ink: #e3e7ef; --tm-rgb: 226, 231, 240; --tm: #e6eaf2;
  --ink: #ececee; --ink-soft: #a7abb4; --d-ink: #ececee; --d-soft: #a7abb4; --d-mute: #7c808a;
  --d-blue: #9fb0cc; --d-blue-soft: rgba(159, 176, 204, 0.17);
}
/* Océan : bleu nuit, texte bleu-blanc, accent bleu ciel */
html[data-theme="ocean"]:has(body.shell) { background: #06121c; }
html[data-theme="ocean"] body.shell {
  --a1-rgb: 14, 165, 233; --a2-rgb: 20, 184, 166; --av-rgb: 56, 189, 248; --ln-rgb: 125, 200, 240;
  --cd-rgb: 10, 30, 46; --g3-rgb: 3, 105, 161; --sb1-rgb: 7, 89, 133; --sb2-rgb: 6, 24, 38; --sb3-rgb: 4, 16, 26;
  --base: #06121c; --tip-bg: #0c2638; --toast-bg: #0f3048; --bar1: #7dd3fc; --bar2: #0ea5e9;
  --grad: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  --violet: #38bdf8; --pink: #5eead4; --accent: #5eead4;
  --pz-rgb: 94, 234, 212; --pz-ink: #99f6e4; --tm-rgb: 125, 211, 252; --tm: #7dd3fc;
  --ink: #e6f3fc; --ink-soft: #94b3c9; --d-ink: #e6f3fc; --d-soft: #94b3c9; --d-mute: #6b8aa1;
  --d-blue: #38bdf8; --d-blue-soft: rgba(56, 189, 248, 0.17);
}
/* Forêt : vert très sombre, texte crème, accent vert sauge */
html[data-theme="foret"]:has(body.shell) { background: #08120d; }
html[data-theme="foret"] body.shell {
  --a1-rgb: 34, 160, 100; --a2-rgb: 190, 170, 80; --av-rgb: 90, 200, 140; --ln-rgb: 140, 200, 165;
  --cd-rgb: 15, 33, 25; --g3-rgb: 20, 110, 70; --sb1-rgb: 16, 84, 55; --sb2-rgb: 10, 26, 19; --sb3-rgb: 7, 18, 13;
  --base: #08120d; --tip-bg: #12301f; --toast-bg: #17402a; --bar1: #86d9ad; --bar2: #22a064;
  --grad: linear-gradient(135deg, #15803d 0%, #0f766e 100%);
  --violet: #5ac88c; --pink: #e7d58a; --accent: #e7d58a;
  --pz-rgb: 231, 213, 138; --pz-ink: #f1e4a6; --tm-rgb: 134, 239, 172; --tm: #8aeeb0;
  --ink: #f1efe2; --ink-soft: #a6bdb0; --d-ink: #f1efe2; --d-soft: #a6bdb0; --d-mute: #77917f;
  --d-blue: #5ac88c; --d-blue-soft: rgba(90, 200, 140, 0.17);
}


/* ---------- Navigation fluide : le menu de gauche reste en place d'une page à l'autre ---------- */
/* (Chrome, Edge, Safari récents ; ailleurs la page se charge normalement.) */
@view-transition { navigation: auto; }
body.shell .sb { view-transition-name: sidebar; }
body.shell .theme-fab { view-transition-name: theme-fab; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.14s; }
::view-transition-group(sidebar), ::view-transition-old(sidebar), ::view-transition-new(sidebar),
::view-transition-group(theme-fab), ::view-transition-old(theme-fab), ::view-transition-new(theme-fab) { animation: none; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
