/* Proposition visuelle V8.0 — surfaces, hiérarchie et lisibilité. */
html { --v8-surface:#fff; --v8-soft:#f6f4f5; --v8-ink:#2c2025; --v8-muted:#685960; --v8-line:#e8dfe2; --v8-accent:#921b35; --v8-shadow:0 8px 28px rgba(62,19,32,.07); }
html[data-theme="dark"] { --v8-surface:#21161b; --v8-soft:#2a1b21; --v8-ink:#f8ebee; --v8-muted:#d5c0c6; --v8-line:#65434d; --v8-accent:#f1a1b4; --v8-shadow:0 10px 30px rgba(0,0,0,.18); }

/* Barre de commande : identité conservée, contrôles mieux alignés. */
body:not(.session-pending)>header .header-top { min-height:70px; padding:10px clamp(16px,2vw,30px); gap:20px; }
body:not(.session-pending)>header .brand { gap:12px; }
body:not(.session-pending)>header .brand-wordmark h1 { letter-spacing:.02em; }
body:not(.session-pending)>header .head-actions { gap:8px; }
body:not(.session-pending)>header .head-actions .btn,
body:not(.session-pending)>header .head-actions .fullscreen-link { min-height:34px; border-radius:9px; padding:7px 11px; font-size:12px; font-weight:750; }
body:not(.session-pending)>header nav.tabs { gap:5px!important; padding:7px clamp(16px,2vw,30px)!important; }
body:not(.session-pending)>header nav.tabs button:not(.nav-toggle) { border-radius:9px!important; padding:8px 11px!important; transition:background-color .16s ease,box-shadow .16s ease!important; }
body:not(.session-pending)>header nav.tabs button:not(.nav-toggle).active { box-shadow:0 3px 12px rgba(24,1,4,.22)!important; }

/* Fond apaisé : le bordeaux sert de repère, pas de surface principale. */
html:not([data-theme="dark"]) body:not(.session-pending)>.app { background:linear-gradient(160deg,#faf8f9,#f5f1f3 65%,#f3edef)!important; box-shadow:none!important; }
html:not([data-theme="dark"]) body:not(.session-pending)>.app:before { opacity:.04; }
body:not(.session-pending)>.app { padding:clamp(18px,2vw,30px)!important; }
body:not(.session-pending) .view>.hero { margin-bottom:19px; align-items:center; }
body:not(.session-pending) .view>.hero h2 { margin:0; font-size:clamp(23px,2vw,30px); line-height:1.15; letter-spacing:-.025em; }
body:not(.session-pending) .view>.hero p { margin:5px 0 0; font-size:13px; line-height:1.45; }

/* Un vocabulaire commun pour les panneaux de consultation. */
body:not(.session-pending) :is(.card,.upcoming,.dashboard-panel,.dashboard-today) { border-radius:14px; }
html:not([data-theme="dark"]) body:not(.session-pending) :is(.card,.upcoming,.dashboard-panel,.dashboard-today) { border-color:var(--v8-line); background:var(--v8-surface); box-shadow:var(--v8-shadow); }

/* Tableau de bord : titres, filtres, listes et cartes. */
#dashboardView .dashboard-global-filter-v452 { border-radius:14px; box-shadow:var(--v8-shadow); }
#dashboardView .dashboard-global-filter-head-v452 { min-height:48px; padding:9px 16px; }
#dashboardView .dashboard-global-filter-head-v452 strong { font-size:13px; }
#dashboardView .dashboard-global-filter-head-v452 small { font-size:11px; opacity:.9; }
#dashboardView .dashboard-global-sites-v452 { gap:8px; padding:10px 13px; }
#dashboardView .dashboard-site-chip-v452 { min-height:34px; font-size:12px; font-weight:750; }
#dashboardView .dashboard-panel,#dashboardView .dashboard-today { overflow:hidden; margin-bottom:13px; border-radius:14px; }
#dashboardView .dashboard-panel-head,#dashboardView .dashboard-panel>h3,#dashboardView .dashboard-week-head { min-height:49px; padding:10px 15px; border-bottom:1px solid var(--v8-line); }
#dashboardView :is(.dashboard-panel-head,.dashboard-week-head) :is(h3,strong) { font-size:14px; line-height:1.3; }
#dashboardView .dashboard-pills.dashboard-list-v452 { gap:10px!important; padding:13px!important; }
#dashboardView .dashboard-pill.dashboard-card-v452 { min-height:100px!important; grid-template-columns:77px minmax(0,1fr)!important; gap:0!important; border-radius:11px!important; box-shadow:0 2px 8px rgba(35,19,25,.05); transition:transform .16s ease,box-shadow .16s ease!important; }
#dashboardView button.dashboard-card-v452:hover { transform:translateY(-2px); box-shadow:0 8px 20px rgba(35,19,25,.12); }
#dashboardView .dashboard-card-date-v452 { padding:10px 7px; }
#dashboardView .dashboard-card-date-v452 strong { font-size:11px; }
#dashboardView .dashboard-card-date-v452 small { font-size:10px; }
#dashboardView .dashboard-card-body-v452 { padding:11px 12px; }
#dashboardView .dashboard-card-title-v452 { font-size:13px; line-height:1.35; }
#dashboardView .dashboard-card-place-v452 { margin-top:6px; font-size:11px; line-height:1.35; }
#dashboardView .dashboard-card-meta-v452 { margin-top:6px; font-size:10px; line-height:1.35; }
#dashboardView .dashboard-empty-v452,#dashboardView .dashboard-empty { min-height:58px; padding:17px 14px; font-size:12px; font-weight:600; color:var(--v8-muted); }
#dashboardView .dashboard-count-v452 { min-width:25px!important; height:25px!important; font-size:11px!important; }

/* Citation en cartouche discret. */
#dashboardView .daily-quote { border-radius:12px; padding:11px 16px; box-shadow:var(--v8-shadow); }
#dashboardView .daily-quote-text { font-size:14px; line-height:1.45; }
#dashboardView .daily-quote-kicker { font-size:10px; letter-spacing:.09em; }

/* Le thème sombre conserve les surfaces validées en V7.1.5. */
html[data-theme="dark"] #dashboardView .dashboard-pill.dashboard-card-v452 { background:var(--v8-surface)!important; border-color:var(--v8-line)!important; border-left-color:var(--site-color,#9c6675)!important; color:var(--v8-ink)!important; }
html[data-theme="dark"] #dashboardView .dashboard-card-date-v452 { background:var(--v8-soft)!important; border-right-color:var(--v8-line)!important; }
html[data-theme="dark"] #dashboardView .dashboard-card-title-v452 { color:var(--v8-ink)!important; }
html[data-theme="dark"] #dashboardView .dashboard-card-place-v452,
html[data-theme="dark"] #dashboardView .dashboard-card-meta-v452 { color:var(--v8-muted)!important; }
html[data-theme="dark"] #dashboardView .dashboard-panel-head,
html[data-theme="dark"] #dashboardView .dashboard-week-head { border-bottom-color:var(--v8-line)!important; }

@media (max-width:900px) {
  body:not(.session-pending)>header .header-top { padding:12px 16px; }
  #dashboardView .dashboard-pills.dashboard-list-v452 { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
}
@media (max-width:600px) {
  body:not(.session-pending)>.app { padding:15px!important; }
  #dashboardView .dashboard-pills.dashboard-list-v452 { grid-template-columns:1fr!important; }
  #dashboardView .dashboard-pill.dashboard-card-v452 { min-height:88px!important; }
}
@media (prefers-reduced-motion:reduce) {
  #dashboardView button.dashboard-card-v452 { transition:none!important; }
}
