/**
 * bourso.tn - Styles personnalisés
 * Charte graphique Finance Professionnelle
 */

/* ─── Google Fonts ───────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@600;700;800&family=Roboto+Mono:wght@400;500&display=swap');

/* ─── Variables CSS ──────────────────────────────────────────────────────────── */
:root {
  --bleu-marine:    #0B1220;
  --bleu-ardoise:   #1E2D3D;
  --bleu-moyen:     #2D4A6B;
  --vert-finance:   #1FB872;
  --vert-clair:     #3FD08C;
  --rouge-corail:   #E84040;
  --or-discret:     #C9A84C;
  --blanc-casse:    #F7F9FC;
  --gris-texte:     #94A3B8;
  --blanc-pur:      #FFFFFF;
  --bordure:        #1E2D3D;
  --surface-card:   #111827;
  --font-corps:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-titres:    'Poppins', 'Inter', -apple-system, sans-serif;
  --font-chiffres:  'Roboto Mono', 'Courier New', monospace;
  --ombre-carte:    0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.6);
  --radius:         8px;
  --radius-lg:      16px;
  --transition:     0.15s ease;
}

h1, h2, h3, .navbar-brand, .font-heading { font-family: var(--font-titres); }

/* ─── Reset & Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-corps);
  background-color: var(--bleu-marine);
  color: var(--blanc-pur);
  line-height: 1.6;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body[dir="rtl"] { font-family: 'Tajawal', var(--font-corps); }

a { color: var(--vert-finance); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--vert-clair); }

/* ─── Typographie ────────────────────────────────────────────────────────────── */
.font-mono, .cours, .prix, .variation, .chiffre {
  font-family: var(--font-chiffres);
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--blanc-pur);
  margin: 0 0 0.75rem;
}

/* ─── Navbar ─────────────────────────────────────────────────────────────────── */
.navbar {
  background: linear-gradient(135deg, #060f1e 0%, var(--bleu-marine) 100%);
  border-bottom: 1px solid rgba(31,184,114,0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
/* Logo bourso.tn */
.navbar-brand .brand-tn,
.navbar-brand .accent,
.navbar-brand .domain { color: var(--blanc-pur); }
.navbar-brand .brand-main { color: var(--vert-finance); }

/* Live badge dans la navbar (à côté du logo) */
.nav-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.nav-live-badge.open {
  background: rgba(31,184,114,0.16);
  color: #1FB872;
  border-color: rgba(31,184,114,0.45);
}
.nav-live-badge.open:hover { background: rgba(31,184,114,0.26); }
.nav-live-badge.closed {
  background: rgba(148,163,184,0.10);
  color: #94A3B8;
  border-color: rgba(148,163,184,0.25);
  cursor: not-allowed;
  pointer-events: auto;
}
.nav-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
}
.nav-live-badge.open .nav-live-dot {
  animation: pulse-green 1.5s ease infinite;
}

.nav-link {
  color: var(--gris-texte);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--blanc-pur);
  background: rgba(31,184,114,0.1);
}
.nav-link.active { color: var(--vert-finance); }

/* ─── Ticker Bar - design modernisé ──────────────────────────────────────────── */
.ticker-bar {
  background: linear-gradient(90deg, #0A1628 0%, #101e35 50%, #0A1628 100%);
  border-top: 1px solid rgba(31,184,114,0.18);
  border-bottom: 1px solid rgba(31,184,114,0.12);
  position: relative;
  overflow: hidden;
  height: 40px;
  display: flex;
  align-items: center;
}
.ticker-bar::before,
.ticker-bar::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.ticker-bar::before { left: 0;  background: linear-gradient(90deg, #0A1628 20%, rgba(10,22,40,0)); }
.ticker-bar::after  { right: 0; background: linear-gradient(270deg,#0A1628 20%, rgba(10,22,40,0)); }

/* Badge LIVE / Marché fermé devant le bandeau (le SEUL à basculer) */
.ticker-live-badge {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  margin: 0 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  z-index: 3;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.ticker-live-badge.open {
  background: linear-gradient(135deg, rgba(31,184,114,0.22), rgba(31,184,114,0.08));
  border: 1px solid rgba(31,184,114,0.45);
  color: #00E5A8;
}
.ticker-live-badge.closed {
  background: rgba(148,163,184,0.10);
  border: 1px solid rgba(148,163,184,0.30);
  color: #94A3B8;
}
.ticker-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(0,229,168,0.7);
}
.ticker-live-badge.open .ticker-live-dot {
  animation: ticker-pulse 1.8s infinite;
}
@keyframes ticker-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(0,229,168,0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(0,229,168,0);   }
  100% { box-shadow: 0 0 0 0   rgba(0,229,168,0);   }
}

/* Horloge « Mis à jour » dans le ticker bar - lisible (gris clair, mono, espacement net) */
.ticker-maj {
  align-items: center;
  gap: 6px;
  font-family: var(--font-chiffres, 'Roboto Mono', monospace);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  z-index: 3;
}
.ticker-maj-label {
  color: #94A3B8;
  text-transform: uppercase;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}
.ticker-maj-time {
  color: #E2E8F0;
  font-weight: 600;
}
html.theme-light .ticker-maj-label,
html.theme-light .ticker-maj-time { color: #FFFFFF; }
.market-update-meta,
.market-update-meta .ticker-maj-time {
  color: #94A3B8;
}
html.theme-light .market-update-meta,
html.theme-light .market-update-meta .ticker-maj-time {
  color: #64748B !important;
}
.top-baisses .societe-link .societe-nom,
.top-baisses .societe-nom { color: var(--rouge-corail) !important; }
html.theme-light .top-baisses .societe-link .societe-nom,
html.theme-light .top-baisses .societe-nom { color: #B4232E !important; }
.home-quicklink {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1.15rem;
  border-radius: 100px;
  border: none;
  background: #FFFFFF;
  color: #0B1220;
  font-size: .92rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(15,23,42,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.home-quicklink:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(15,23,42,.14); color: #0B1220; }
.home-quicklink-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.home-quicklink-icon svg { width: 15px; height: 15px; }
.home-quicklink-icon-green  { background: rgba(31,184,114,.14);  color: #149A5D; }
.home-quicklink-icon-blue   { background: rgba(59,91,219,.14);   color: #3B5BDB; }
.home-quicklink-icon-gold   { background: rgba(183,121,31,.14);  color: #B7791F; }
.home-quicklink-icon-purple { background: rgba(142,78,198,.14);  color: #8E4EC6; }
.home-quicklink-icon-red    { background: rgba(217,54,75,.14);   color: #D9364B; }

.mode-trading-btn { display: none; }
@media (min-width: 768px) { .mode-trading-btn { display: inline-flex; } }
html.theme-light .home-quicklink,
html[data-theme] .home-quicklink { background: #FFFFFF !important; color: #0B1220 !important; }

/* Halo degrade derriere le hero (accueil) : evoque l'energie sans sacrifier la lisibilite. */
.home-hero-glow {
  background:
    radial-gradient(700px 380px at 8% -10%, rgba(31,184,114,.16), transparent 60%),
    radial-gradient(520px 340px at 100% 0%, rgba(201,168,76,.12), transparent 55%);
}

/* Carte Tunindex : toujours claire, quel que soit le theme (comme avant en sombre) - c'est un choix delibere pour la mettre en valeur. */
.home-tunindex-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #FFFFFF !important;
  color: #0B1220;
  border-radius: 22px;
  box-shadow: 0 20px 44px rgba(31,184,114,.12);
  overflow: hidden;
}
.home-tunindex-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid #EEF1F3;
  font-weight: 700;
  font-size: .85rem;
  color: #0B1220;
}
.home-tunindex-card-body { flex: 1; display: flex; flex-direction: column; padding: 1.2rem 1.4rem 1.5rem; }
.home-tunindex-card .home-index-chart-wrap { flex: 1; min-height: 138px; }
.home-tunindex-card .home-index-tabs { background: #F1F3F5; border-color: #E5E8EC; }
.home-tunindex-card .home-index-tab { color: #5B6472; }
.home-tunindex-card .home-index-tab.active { background: rgba(31,184,114,.14); color: #149A5D; box-shadow: inset 0 0 0 1px rgba(31,184,114,.28); }
.home-tunindex-card .home-index-last { color: #0B1220; }
.home-tunindex-card .home-index-loader { background: linear-gradient(180deg, rgba(255,255,255,.4), rgba(241,243,245,.7)); color: #8A929B; }

.home-actions-grid { align-items: stretch; }
.home-action-card,
.home-news-row,
.home-event-row {
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.home-action-card {
  position: relative;
  overflow: hidden;
  min-height: 136px;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(148,163,184,.22) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)), rgba(12,24,44,.94);
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}
.home-action-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(31,184,114,.9), rgba(201,168,76,.65));
  opacity: .74;
  transition: opacity .18s ease;
}
.home-action-card > .text-sm {
  font-size: .98rem;
  letter-spacing: 0;
  line-height: 1.2;
}
.home-action-card > p {
  max-width: 18rem;
  color: #AEBBD0 !important;
}
.home-action-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .62rem;
  margin-bottom: .65rem;
  color: #34D399;
  background: rgba(31,184,114,.12);
  border: 1px solid rgba(31,184,114,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.home-action-icon svg {
  width: 1.22rem;
  height: 1.22rem;
  stroke-width: 2;
}
.home-action-live {
  border-color: rgba(31,184,114,.38) !important;
  background: linear-gradient(180deg, rgba(31,184,114,.13), rgba(255,255,255,.018)), rgba(10,22,40,.98);
}
.home-action-live .home-action-icon {
  color: #A7F3D0;
  background: rgba(31,184,114,.16);
  border-color: rgba(31,184,114,.30);
}
html.theme-light .home-action-icon {
  color: var(--bx-accent, #0070C9);
  background: rgba(31,184,114,.07);
  border-color: rgba(4,120,87,.16);
}
html.theme-light .home-action-live .home-action-icon {
  color: var(--bx-accent, #0070C9);
  background: var(--bx-accent-soft, #EAF3FB);
  border-color: rgba(4,120,87,.20);
}
.home-action-card:hover,
.home-news-row:hover,
.home-event-row:hover {
  background: rgba(31,184,114,0.16);
  border-color: var(--vert-finance) !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.20), 0 0 0 1px rgba(31,184,114,.16) inset;
}
.home-action-card:hover {
  transform: translateY(-2px);
}
.home-action-card:hover .home-action-icon {
  background: rgba(31,184,114,.22);
  border-color: var(--vert-finance);
  color: var(--vert-finance);
}
.home-action-card:hover > .text-sm {
  color: var(--vert-finance) !important;
}
.home-action-card:hover::after {
  opacity: .95;
}
.home-action-card:focus-visible {
  outline: 3px solid rgba(31,184,114,.45);
  outline-offset: 2px;
}
.home-action-card:active {
  transform: translateY(-1px) scale(.99);
  border-color: rgba(201,168,76,.65) !important;
}
.home-news-row:hover .text-white,
.home-event-row:hover .text-white {
  color: var(--vert-finance) !important;
}
html.theme-light .home-news-row:hover,
html.theme-light .home-event-row:hover,
html.theme-light .home-action-card:hover {
  background: #F0FDF9 !important;
}
html.theme-light .home-action-card {
  background: #FFFFFF !important;
  border-color: #C7D2DF !important;
  box-shadow: 0 8px 22px rgba(15,23,42,.07);
}
html.theme-light .home-action-card > p {
  color: #475569 !important;
}
html.theme-light .home-action-card:hover {
  border-color: rgba(31,184,114,.58) !important;
  box-shadow: 0 12px 28px rgba(15,23,42,.11);
}
@media (max-width: 640px) {
  .home-actions-grid {
    gap: .85rem;
  }
  .home-action-card {
    min-height: 124px;
    padding: 1rem !important;
  }
  .home-action-icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: .5rem;
  }
  .home-action-card > .text-sm { font-size: .92rem; }
}
.allocation-bars { display: flex; flex-direction: column; gap: .75rem; }
.allocation-panel.hidden { display: none; }
.allocation-row { display: grid; gap: .35rem; }
.allocation-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; font-size: .78rem; }
.allocation-label { color: #E2E8F0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.allocation-value { color: #94A3B8; font-family: var(--font-mono, monospace); white-space: nowrap; }
.allocation-track { height: .48rem; border-radius: 999px; overflow: hidden; background: rgba(148,163,184,.14); }
.allocation-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1FB872, #C9A84C); min-width: 2px; }
html.theme-light .allocation-label { color: #0F172A; }
html.theme-light .allocation-value { color: #475569; }
html.theme-light .allocation-track { background: #E2E8F0; }
.global-search { position: relative; flex: 1 1 16rem; max-width: 22rem; margin: 0 .75rem; }
.global-search-box { display: flex; align-items: center; gap: .45rem; height: 2.25rem; border: 1px solid rgba(148,163,184,.24); background: rgba(15,32,64,.72); border-radius: .65rem; padding: 0 .65rem; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.global-search-box:focus-within { border-color: rgba(31,184,114,.62); box-shadow: 0 0 0 3px rgba(31,184,114,.12); }
.global-search-input { min-width: 0; width: 100%; background: transparent; border: 0; outline: 0; color: #E2E8F0; font-size: .82rem; }
.global-search-input::placeholder { color: #64748B; }
.global-search-kbd { border: 1px solid rgba(148,163,184,.25); border-radius: .35rem; padding: .05rem .32rem; color: #94A3B8; font-size: .68rem; line-height: 1.1; }
.global-search-results { position: absolute; left: 0; right: 0; top: calc(100% + .35rem); z-index: 90; border: 1px solid rgba(148,163,184,.24); background: #0F2040; border-radius: .7rem; box-shadow: 0 18px 42px rgba(0,0,0,.30); overflow: hidden; max-height: 21rem; overflow-y: auto; }
.global-search-results.hidden { display: none; }
.global-search-item { display: flex; align-items: center; gap: .75rem; padding: .65rem .75rem; color: #E2E8F0; cursor: pointer; }
.global-search-item:hover,
.global-search-item.active { background: rgba(31,184,114,.12); }
.global-search-logo { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 28px; height: 28px; }
.global-search-logo .company-logo,
.global-search-logo .company-logo-sm,
.global-search-logo .company-logo-md,
.global-search-logo img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; background: #FFFFFF; border: 1px solid rgba(148,163,184,.2); }
.global-search-isin { color: #94A3B8; font-weight: 400; font-size: .76rem; font-family: var(--font-mono, monospace); margin-left: .25rem; }
html.theme-light .global-search-isin { color: #64748B; }
.global-search-price { margin-left: auto; color: #1FB872; font-family: var(--font-mono, monospace); font-weight: 700; font-size: .78rem; white-space: nowrap; }
.global-search-trigger { display: none; }
html.theme-light .global-search-box { background: #FFFFFF; border-color: #CBD5E1; }
html.theme-light .global-search-input { color: #0F172A; }
html.theme-light .global-search-results { background: #FFFFFF; border-color: #CBD5E1; box-shadow: 0 18px 38px rgba(15,23,42,.16); }
html.theme-light .global-search-item { color: #0F172A; }
@media (max-width: 1180px) {
  .global-search { max-width: 18rem; }
}
@media (max-width: 1024px) {
  .global-search { position: absolute; top: 3.65rem; left: 1rem; right: 1rem; max-width: none; margin: 0; z-index: 95; display: none; }
  .global-search.is-open { display: block; }
  .global-search-trigger { display: inline-flex; }
}
.market-stat-card {
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
  backdrop-filter: blur(10px);
}
.market-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,.14);
}
.market-stat-card.stat-value {
  border-color: rgba(79,142,247,.22) !important;
}
.market-stat-card.stat-value:hover {
  border-color: rgba(79,142,247,.42) !important;
  background: rgba(79,142,247,.07) !important;
}
.market-stat-card.stat-up {
  background: linear-gradient(180deg, rgba(31,184,114,.11), rgba(255,255,255,.025)), color-mix(in srgb, var(--theme-surface) 82%, transparent) !important;
  border-color: rgba(31,184,114,.24) !important;
  border-left: 3px solid #1FB872 !important;
}
.market-stat-card.stat-down {
  background: linear-gradient(180deg, rgba(232,64,64,.105), rgba(255,255,255,.025)), color-mix(in srgb, var(--theme-surface) 82%, transparent) !important;
  border-color: rgba(232,64,64,.24) !important;
  border-left: 3px solid #E84040 !important;
}
.market-stat-card.stat-flat {
  background: linear-gradient(180deg, rgba(148,163,184,.13), rgba(255,255,255,.025)), color-mix(in srgb, var(--theme-surface) 82%, transparent) !important;
  border-color: rgba(148,163,184,.28) !important;
}
.market-stat-card.stat-up:hover { border-color: rgba(31,184,114,.48) !important; background: rgba(31,184,114,.08) !important; }
.market-stat-card.stat-down:hover { border-color: rgba(232,64,64,.48) !important; background: rgba(232,64,64,.08) !important; }
.market-stat-card.stat-flat:hover { border-color: rgba(148,163,184,.46) !important; background: rgba(148,163,184,.10) !important; }
.home-sidebar-flow {
  position: relative;
  isolation: isolate;
}
.home-sidebar-flow .sidebar-marche {
  position: static;
  top: auto;
}
.home-sidebar-flow > * {
  position: relative;
  z-index: 1;
}
.home-events-card {
  z-index: 3;
}

/* Petite flèche d'ouverture nouvel onglet sur le badge LIVE du header */
.nav-live-arrow { opacity: 0.85; }
.nav-live-badge:hover .nav-live-arrow { opacity: 1; }

/* ─── Sélecteur de mode graphique (fiche société) ─────────────────────── */
.chart-mode-switch {
  display: inline-flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}
.chart-mode-btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--gris-texte);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background .15s ease, color .15s ease;
}
.chart-mode-btn:hover { color: var(--blanc-pur); background: rgba(255,255,255,0.06); }
.chart-mode-btn.active {
  background: linear-gradient(135deg, rgba(31,184,114,0.22), rgba(31,184,114,0.10));
  color: #00E5A8;
  box-shadow: inset 0 0 0 1px rgba(31,184,114,0.45);
}
html.theme-light .chart-mode-switch { background: #F1F5F9; border-color: #CBD5E1; }
html.theme-light .chart-mode-btn { color: #475569; }
html.theme-light .chart-mode-btn:hover { color: #0F172A; background: #E2E8F0; }
html.theme-light .chart-mode-btn.active {
  background: #D9FBEF;
  color: #035C46;
  box-shadow: inset 0 0 0 1px rgba(4,120,87,.45), 0 1px 3px rgba(15,23,42,.08);
}

/* ─── Tableau Chiffres clés (fiche société) ───────────────────────────── */
.chiffres-cles-table {
  border-collapse: collapse;
}
.chiffres-cles-table thead th {
  background: rgba(255,255,255,0.03);
  color: #94A3B8;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.chiffres-cles-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: #E2E8F0;
  white-space: nowrap;
}
.chiffres-cles-table tbody td.font-mono {
  font-size: 0.82rem;
}
.chiffres-cles-table tbody tr:hover td { background: rgba(31,184,114,0.05); }
.chiffres-cles-table .indicateur {
  color: #CBD5E1;
  font-weight: 500;
  display: flex; align-items: center; gap: 6px;
}
.chiffres-cles-table .cc-info {
  display: inline-flex;
  width: 14px; height: 14px;
  font-size: 9px;
  font-weight: 700;
  color: #94A3B8;
  background: rgba(148,163,184,0.15);
  border-radius: 50%;
  align-items: center; justify-content: center;
  cursor: help;
}
.chiffres-cles-table .val-pos { color: #10b981; }
.chiffres-cles-table .val-neg { color: #ef4444; }

/* Première colonne (libellé) collante pour scroll horizontal sur mobile */
.chiffres-cles-table thead th:first-child,
.chiffres-cles-table tbody td:first-child {
  position: sticky;
  left: 0;
  background: var(--bleu-ardoise, #0f1c2c);
  z-index: 1;
  min-width: 180px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.chiffres-cles-table tbody tr:hover td:first-child { background: rgba(31,184,114,0.08); }

/* Colonne du dernier exercice (année la plus récente) légèrement mise en valeur */
.chiffres-cles-table .cc-current {
  background: rgba(31,184,114,0.05) !important;
  color: #FFFFFF;
}
.chiffres-cles-table thead th.cc-current { color: #00E5A8; }

/* Colonne Évolution */
.chiffres-cles-table thead th.cc-evol-head {
  background: rgba(31,184,114,0.07);
  color: #00E5A8;
  border-left: 1px solid rgba(31,184,114,0.18);
}
.chiffres-cles-table tbody td.cc-evol {
  background: rgba(31,184,114,0.02);
  border-left: 1px solid rgba(31,184,114,0.18);
}
.chiffres-cles-table th,
.chiffres-cles-table td {
  white-space: nowrap;
}

html.theme-light .chiffres-cles-table thead th { background: #F8FAFC; color: #475569; border-bottom-color: #E2E8F0; }
html.theme-light .chiffres-cles-table tbody td { color: #0F172A; border-bottom-color: #F1F5F9; }
html.theme-light .chiffres-cles-table tbody tr:hover td { background: rgba(31,184,114,0.06); }
html.theme-light .chiffres-cles-table .indicateur { color: #1e293b; }
html.theme-light .chiffres-cles-table thead th:first-child,
html.theme-light .chiffres-cles-table tbody td:first-child { background: #FFFFFF; border-right-color: #E2E8F0; }
html.theme-light .chiffres-cles-table .cc-current { background: rgba(31,184,114,0.10) !important; color: #064E3B; }
html.theme-light .chiffres-cles-table thead th.cc-current { color: var(--bx-accent, #0070C9); }
html.theme-light .chiffres-cles-table thead th.cc-evol-head { background: var(--bx-accent-soft, #EAF3FB); color: var(--bx-accent, #0070C9); }
html.theme-light .chiffres-cles-table tbody td.cc-evol { background: rgba(31,184,114,0.04); }

.ticker-track {
  display: flex;
  animation: ticker-scroll var(--ticker-duration, 55s) linear infinite;
  white-space: nowrap;
  gap: 0;
  width: max-content;
  min-width: max-content;
  will-change: transform;
}
.ticker-track:hover,
.ticker-bar:hover .ticker-track,
.ticker-bar.ticker-paused .ticker-track {
  animation-play-state: paused !important;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Item : pilule sobre, flèche variation, prix mono */
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  font-family: var(--font-chiffres, 'Roboto Mono', monospace);
  font-size: 0.82rem;
  position: relative;
  transition: background 0.2s;
}
.ticker-item:hover { background: rgba(255,255,255,0.04); }
.ticker-item + .ticker-item { border-left: 1px solid rgba(255,255,255,0.06); }

.ticker-sym   { font-weight: 700; color: #E2E8F0; letter-spacing: 0.02em; }
.ticker-prix  { color: #CBD5E1; font-weight: 500; }
.ticker-var   { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; padding: 2px 7px; border-radius: 4px; font-size: 0.72rem; }
.ticker-var.up   { background: rgba(31,184,114,0.14);  color: #00E5A8; }
.ticker-var.down { background: rgba(232,64,64,0.14);  color: #FF6B6B; }
.ticker-var.flat { background: rgba(148,163,184,0.12); color: #94A3B8; }
.ticker-var::before { font-size: 0.6rem; }
.ticker-var.up::before   { content: "\25B2"; }
.ticker-var.down::before { content: "\25BC"; }
.ticker-var.flat::before { content: "\25A0"; font-size: 0.5rem; }

/* ─── Cartes ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bleu-ardoise);
  border: 1px solid #1a2d40;
  border-radius: var(--radius-lg);
  box-shadow: var(--ombre-carte);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { border-color: rgba(31,184,114,0.3); }

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #1a2d40;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gris-texte);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body { padding: 1.25rem; }

/* ─── Tableau de cours ───────────────────────────────────────────────────────── */
.table-cours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table-cours thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.table-cours thead th {
  background: #0d1f33;
  color: var(--gris-texte);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem;
  text-align: right;
  border-bottom: 1px solid #1a2d40;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.table-cours thead th:first-child { text-align: left; }
/* Watchlist & screener : Valeur + Secteur alignés gauche (entête + cellules) */
#watchlist-table thead th[data-col="1"],
#watchlist-table thead th[data-col="2"] { text-align: left !important; }
#watchlist-table tbody td.col-valeur,
#watchlist-table tbody td:nth-child(3) { text-align: left !important; }
.table-cours thead th.sort-asc::after  { content: ' \2191'; color: var(--vert-finance); }
.table-cours thead th.sort-desc::after { content: ' \2193'; color: var(--rouge-corail); }

.table-cours tbody tr {
  border-bottom: 1px solid #12243a;
  transition: background var(--transition);
  cursor: pointer;
}
.table-cours tbody tr:hover { background: rgba(45,74,107,0.4); }

.table-cours td {
  padding: 0.75rem 1rem;
  font-family: var(--font-chiffres);
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
}
.table-cours td:first-child, .table-cours td.col-valeur, td.col-valeur { text-align: left !important; font-family: var(--font-corps); }
#watchlist-table td.col-valeur { text-align: left !important; font-family: var(--font-corps); }

/* Screener Sorting */
th[data-sort] { position: relative; }
th[data-sort]::after {
  content: '\2195';
  position: absolute;
  right: 8px;
  opacity: 0.2;
  font-size: 0.8em;
}
th[data-sort].sort-asc::after { content: '\2191'; opacity: 1; color: var(--finance); }
th[data-sort].sort-desc::after { content: '\2193'; opacity: 1; color: var(--finance); }

.societe-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blanc-pur);
  font-weight: 500;
}
/* Pas d'effet hover sur le NOM d'une action dans les tableaux : seule la
   ligne reagit au survol. Le nom garde sa couleur de base sans transition. */
.societe-link:hover { color: var(--blanc-pur); }
a.societe-nom, a.societe-nom:hover, a.societe-nom:focus { color: var(--vert-finance) !important; text-decoration: none !important; }
/* Nom de valeur (vert gras) au-dessus, ticker (blanc, non gras) en dessous */
.societe-nom { display: block; color: var(--vert-finance); font-weight: 700; font-size: 0.9rem; font-family: var(--font-corps); line-height: 1.15; }
.societe-sym { display: block; color: var(--blanc-pur); font-weight: 400; font-family: var(--font-chiffres); font-size: 0.78rem; letter-spacing: 0.02em; opacity: 0.85; }

/* ─── Variations ────────────────────────────────────────────────────────────── */
.var-pos { color: var(--vert-finance); font-weight: 600; }
.var-neg { color: var(--rouge-corail); font-weight: 600; }
.var-neu { color: var(--gris-texte); }

.badge-var {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-chiffres);
}
.badge-var.pos { background: rgba(31,184,114,0.15); color: var(--vert-finance); }
.badge-var.neg { background: rgba(232,64,64,0.15);  color: var(--rouge-corail); }
.badge-var.neu { background: rgba(148,163,184,0.1); color: var(--gris-texte); }

/* ─── Flash animation mise à jour ───────────────────────────────────────────── */
@keyframes flash-green  { 0%,100%{background:transparent} 50%{background:rgba(31,184,114,0.2)} }
@keyframes flash-red    { 0%,100%{background:transparent} 50%{background:rgba(232,64,64,0.2)} }
.flash-up   { animation: flash-green 0.8s ease; }
.flash-down { animation: flash-red   0.8s ease; }

/* ─── Statut marché ─────────────────────────────────────────────────────────── */
.statut-ouvert { background: rgba(31,184,114,0.15); color: var(--vert-finance); border: 1px solid rgba(31,184,114,0.3); border-radius: 20px; padding: 4px 12px; font-size: 0.75rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.statut-ferme  { background: rgba(232,64,64,0.1);  color: var(--rouge-corail); border: 1px solid rgba(232,64,64,0.2);  border-radius: 20px; padding: 4px 12px; font-size: 0.75rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.statut-dot    { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.statut-ouvert .statut-dot { background: var(--vert-finance); animation: pulse-green 1.5s ease infinite; }
.statut-ferme  .statut-dot { background: var(--rouge-corail); }

@keyframes pulse-green {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.7; }
}

/* ─── Indices ────────────────────────────────────────────────────────────────── */
.indice-card {
  background: linear-gradient(135deg, #0e1f35 0%, var(--bleu-ardoise) 100%);
  border: 1px solid #1a2d40;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: border-color var(--transition);
}
.indice-card:hover { border-color: rgba(31,184,114,0.3); }
.indice-nom  { color: var(--gris-texte); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.indice-val  { font-family: var(--font-chiffres); font-size: 1.5rem; font-weight: 700; color: var(--blanc-pur); margin: 4px 0; }

/* ─── Graphique ──────────────────────────────────────────────────────────────── */
#graphique-container {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bleu-marine);
}
#graphique-standard-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.graphique-modern-summary {
  position: absolute;
  top: .75rem;
  left: .85rem;
  right: .85rem;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(9rem, 1.4fr) repeat(3, minmax(7rem, 1fr));
  gap: .5rem;
  pointer-events: none;
}
.graphique-modern-kpi {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: .65rem;
  background: rgba(8, 17, 31, .72);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
  backdrop-filter: blur(10px);
  padding: .55rem .7rem;
}
.graphique-modern-label {
  display: block;
  margin-bottom: .1rem;
  color: var(--gris-texte);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.graphique-modern-kpi strong {
  display: block;
  color: var(--blanc-pur);
  font-family: var(--font-chiffres);
  font-size: .92rem;
  line-height: 1.15;
  white-space: nowrap;
}
.graphique-modern-kpi small {
  display: block;
  margin-top: .1rem;
  color: var(--gris-texte);
  font-family: var(--font-chiffres);
  font-size: .7rem;
  white-space: nowrap;
}
.graphique-modern-kpi.is-up strong,
.graphique-modern-kpi.is-up small { color: var(--vert-finance); }
.graphique-modern-kpi.is-down strong,
.graphique-modern-kpi.is-down small { color: var(--rouge-corail); }
html.theme-light .graphique-modern-kpi {
  background: rgba(255, 255, 255, .88);
  border-color: rgba(15, 23, 42, .10);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
}
@media (max-width: 760px) {
  .graphique-modern-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    top: .55rem;
    left: .55rem;
    right: .55rem;
  }
  .graphique-modern-kpi { padding: .45rem .55rem; }
  .graphique-modern-kpi strong { font-size: .78rem; }
  .graphique-modern-kpi small { display: none; }
}

.periode-btn {
  background: transparent;
  border: 1px solid #2d4a6b;
  color: var(--gris-texte);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
}
.periode-btn:hover, .periode-btn.active {
  background: var(--vert-finance);
  border-color: var(--vert-finance);
  color: #000;
}
.analysis-unit-btn.active {
  background: rgba(31,184,114,0.18);
  border-color: rgba(31,184,114,0.45);
  color: var(--vert-finance);
}
html.theme-light .periode-btn,
html.theme-light .analysis-unit-btn {
  border-color: #CBD5E1;
  color: #475569;
  background: #FFFFFF;
}
html.theme-light .periode-btn:hover,
html.theme-light .periode-btn.active,
html.theme-light .analysis-unit-btn:hover,
html.theme-light .analysis-unit-btn.active {
  background: #D9FBEF !important;
  border-color: #059669 !important;
  color: #035C46 !important;
  box-shadow: inset 0 0 0 1px rgba(4,120,87,.18);
}

.indicateur-btn {
  background: transparent;
  border: 1px solid #2d4a6b;
  color: var(--gris-texte);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition);
}
.indicateur-btn.active { background: rgba(31,184,114,0.15); border-color: var(--vert-finance); color: var(--vert-finance); }

/* ─── Fiche société - données live ──────────────────────────────────────────── */
.cours-principal {
  font-family: var(--font-chiffres);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--blanc-pur);
  line-height: 1;
}

.cours-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.cours-stat { background: #0d1f33; border: 1px solid #1a2d40; border-radius: 6px; padding: 0.75rem; }
.cours-stat-label { color: var(--gris-texte); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.cours-stat-val { font-family: var(--font-chiffres); font-size: 0.9375rem; font-weight: 600; color: var(--blanc-pur); margin-top: 2px; }

/* ─── Onglets ────────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid #1a2d40; margin-bottom: 1.5rem; }
.tab-btn { background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--gris-texte); padding: 0.75rem 1.25rem; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all var(--transition); margin-bottom: -1px; }
.tab-btn:hover  { color: var(--blanc-pur); }
.tab-btn.active { color: var(--vert-finance); border-bottom-color: var(--vert-finance); }
.tab-btn-anciennes { margin-left: auto; font-style: italic; color: var(--gris-texte); border-left: 1px solid #1a2d40; padding-left: 1.25rem; }
.tab-btn-anciennes:hover  { color: var(--or); }
.tab-btn-anciennes.active { color: var(--or); border-bottom-color: var(--or); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.2s ease; }

.bvmt-public-profile {
  border: 1px solid rgba(118, 148, 178, 0.24);
  border-radius: 10px;
  background: rgba(8, 19, 34, 0.72);
  padding: 1.25rem;
}
.bvmt-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.bvmt-profile-kicker {
  color: var(--vert-finance);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bvmt-profile-title-block h2 {
  margin: 0.2rem 0 0;
  color: var(--blanc-pur);
  font-size: 1.2rem;
  line-height: 1.25;
}
.bvmt-profile-title-block p {
  margin: 0.35rem 0 0;
  color: var(--gris-texte);
  font-size: 0.88rem;
}
.bvmt-official-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(31,184,114, 0.42);
  border-radius: 7px;
  color: var(--vert-finance);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}
.bvmt-official-link:hover { background: rgba(31,184,114, 0.08); }
.bvmt-profile-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  border-bottom: 1px solid rgba(118, 148, 178, 0.22);
  padding-bottom: 0.45rem;
  margin-bottom: 1rem;
  scrollbar-width: thin;
}
.bvmt-tab-btn {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--gris-texte);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.68rem;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.bvmt-tab-btn:hover {
  color: var(--blanc-pur);
  border-color: rgba(118, 148, 178, 0.28);
}
.bvmt-tab-btn.active {
  color: var(--vert-finance);
  background: rgba(31,184,114, 0.1);
  border-color: rgba(31,184,114, 0.35);
}
.bvmt-section-stack {
  display: grid;
  gap: 0.9rem;
}
.bvmt-info-section {
  border: 1px solid rgba(118, 148, 178, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  padding: 1rem;
}
.bvmt-info-section h3 {
  margin: 0 0 0.75rem;
  color: var(--blanc-pur);
  font-size: 0.95rem;
  font-weight: 800;
}
.bvmt-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 1.25rem;
}
.bvmt-kv-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) minmax(0, 1.2fr);
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.52rem 0;
  border-bottom: 1px solid rgba(118, 148, 178, 0.12);
}
.bvmt-kv-label {
  color: var(--gris-texte);
  font-size: 0.78rem;
  font-weight: 600;
}
.bvmt-kv-value {
  color: var(--blanc-pur);
  font-size: 0.88rem;
  font-weight: 750;
  text-align: right;
  overflow-wrap: anywhere;
}
.bvmt-kv-value a,
.bvmt-link-row {
  color: var(--vert-finance);
  text-decoration: none;
}
.bvmt-kv-value a:hover,
.bvmt-link-row:hover { text-decoration: underline; }
.bvmt-long-text {
  max-width: 78ch;
  color: #d8e3ee;
  font-size: 0.92rem;
  line-height: 1.72;
}
.bvmt-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(118, 148, 178, 0.18);
  border-radius: 8px;
}
.bvmt-data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.bvmt-data-table th {
  background: rgba(118, 148, 178, 0.09);
  color: var(--gris-texte);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}
.bvmt-data-table th,
.bvmt-data-table td {
  padding: 0.72rem 0.82rem;
  border-bottom: 1px solid rgba(118, 148, 178, 0.14);
  vertical-align: top;
}
.bvmt-data-table td {
  color: #e7edf5;
}
.bvmt-data-table tbody tr:last-child td { border-bottom: 0; }
.bvmt-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.bvmt-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(118, 148, 178, 0.18);
  border-radius: 8px;
  padding: 0.72rem 0.82rem;
  font-size: 0.88rem;
  font-weight: 700;
}
.bvmt-empty-state {
  border: 1px solid rgba(118, 148, 178, 0.2);
  border-radius: 8px;
  color: var(--gris-texte);
  padding: 1rem;
}
html.theme-light .bvmt-public-profile {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-color: #dbe6f0;
}
html.theme-light .bvmt-profile-title-block h2,
html.theme-light .bvmt-info-section h3,
html.theme-light .bvmt-kv-value { color: #0f172a; }
html.theme-light .bvmt-profile-title-block p,
html.theme-light .bvmt-kv-label,
html.theme-light .bvmt-data-table th,
html.theme-light .bvmt-empty-state { color: #64748b; }
html.theme-light .bvmt-info-section,
html.theme-light .bvmt-table-wrap,
html.theme-light .bvmt-link-row {
  background: rgba(255, 255, 255, 0.78);
  border-color: #e2e8f0;
}
html.theme-light .bvmt-profile-tabs,
html.theme-light .bvmt-kv-row,
html.theme-light .bvmt-data-table th,
html.theme-light .bvmt-data-table td { border-color: #e2e8f0; }
html.theme-light .bvmt-long-text,
html.theme-light .bvmt-data-table td { color: #334155; }
html.theme-light .bvmt-data-table th { background: #f1f5f9; }
html.theme-light .bvmt-tab-btn:hover { color: #0f172a; border-color: #cbd5e1; }
html.theme-light .bvmt-tab-btn.active {
  color: var(--bx-accent, #0070C9);
  background: var(--bx-accent-soft, #EAF3FB);
  border-color: var(--bx-border, #D9E2EC);
}
html[data-theme="dark2-maintenance"] .bvmt-public-profile {
  background: rgba(17, 24, 39, 0.78);
  border-color: rgba(148, 163, 184, 0.24);
}
html[data-theme="dark2-maintenance"] .bvmt-info-section {
  background: rgba(15, 23, 42, 0.34);
  border-color: rgba(148, 163, 184, 0.18);
}
@media (max-width: 768px) {
  .bvmt-public-profile { padding: 1rem; }
  .bvmt-profile-head { flex-direction: column; }
  .bvmt-official-link { width: 100%; justify-content: center; }
  .bvmt-kv-grid,
  .bvmt-link-list { grid-template-columns: 1fr; }
  .bvmt-kv-row {
    grid-template-columns: minmax(96px, 0.85fr) minmax(0, 1.15fr);
  }
  .bvmt-data-table { min-width: 560px; }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Formulaires ────────────────────────────────────────────────────────────── */
.form-input, .form-select {
  width: 100%;
  background: #0d1f33;
  border: 1px solid #2d4a6b;
  color: var(--blanc-pur);
  border-radius: var(--radius);
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-family: var(--font-corps);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus {
  border-color: var(--vert-finance);
  box-shadow: 0 0 0 3px rgba(31,184,114,0.15);
}
.form-input::placeholder { color: #4a6378; }
.form-label { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--gris-texte); margin-bottom: 0.375rem; }
.form-error { color: var(--rouge-corail); font-size: 0.8125rem; margin-top: 0.25rem; }

/* ─── Boutons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary  { background: var(--vert-finance); color: #000; }
.btn-primary:hover  { background: var(--vert-clair); color: #000; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(31,184,114,0.3); }
.btn-outline  { background: transparent; border-color: var(--vert-finance); color: var(--vert-finance); }
.btn-outline:hover  { background: rgba(31,184,114,0.1); color: var(--vert-finance); }
.btn-danger   { background: var(--rouge-corail); color: #fff; }
.btn-danger:hover   { background: #ff5555; }
.btn-ghost    { background: transparent; border-color: #2d4a6b; color: var(--gris-texte); }
.btn-ghost:hover    { border-color: var(--gris-texte); color: var(--blanc-pur); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }

/* ─── Badges ─────────────────────────────────────────────────────────────────── */
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-secteur { background: rgba(45,74,107,0.6); color: #7eb5d6; border: 1px solid rgba(45,74,107,0.8); }
.badge-marche  { background: rgba(201,168,76,0.15); color: var(--or-discret); border: 1px solid rgba(201,168,76,0.3); }
.doc-item {
  background: rgba(31, 41, 55, 0.4);
  border: 1px solid rgba(55, 65, 81, 0.45);
}
.doc-item:hover {
  background: rgba(31, 41, 55, 0.6);
}
.badge-achat-fort  { background: #14532d; color: #4ade80; }
.badge-achat       { background: #166534; color: #86efac; }
.badge-conserver   { background: #713f12; color: #fcd34d; }
.badge-vente       { background: #7f1d1d; color: #fca5a5; }
.badge-vente-forte { background: #450a0a; color: #f87171; }

/* ─── Gauge recommandations ──────────────────────────────────────────────────── */
.gauge-container { position: relative; width: 180px; height: 100px; margin: 0 auto; }
.gauge-arc { transform-origin: center bottom; }
.gauge-needle { transform-origin: bottom center; transition: transform 0.8s cubic-bezier(0.4,0,0.2,1); }

/* ─── Heatmap (inspirée de live.php) ─────────────────────────────────────────── */
.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 6px;
}
.hm-cell {
  border-radius: 8px;
  padding: 10px 10px 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .4s ease;
}
.hm-cell:hover { transform: scale(1.04); box-shadow: 0 6px 20px rgba(0,0,0,0.35); z-index: 2; }
.hm-cell.hm-up   { background: rgba(31,184,114,0.14); border-color: rgba(31,184,114,0.25); }
.hm-cell.hm-dn   { background: rgba(232,64,64,0.14); border-color: rgba(232,64,64,0.25); }
.hm-cell.hm-flat { background: rgba(148,163,184,0.08); border-color: rgba(148,163,184,0.2); }
.hm-cell.hm-up.i1 { background: rgba(31,184,114,0.08); }
.hm-cell.hm-up.i2 { background: rgba(31,184,114,0.14); }
.hm-cell.hm-up.i3 { background: rgba(31,184,114,0.22); }
.hm-cell.hm-up.i4 { background: rgba(31,184,114,0.32); }
.hm-cell.hm-up.i5 { background: rgba(31,184,114,0.45); }
.hm-cell.hm-dn.i1 { background: rgba(232,64,64,0.08); }
.hm-cell.hm-dn.i2 { background: rgba(232,64,64,0.14); }
.hm-cell.hm-dn.i3 { background: rgba(232,64,64,0.22); }
.hm-cell.hm-dn.i4 { background: rgba(232,64,64,0.32); }
.hm-cell.hm-dn.i5 { background: rgba(232,64,64,0.45); }
.hm-ticker { font-family: var(--font-chiffres); font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--gris-texte); margin-bottom: 2px; }
.hm-name   { font-family: var(--font-corps); font-size: 13px; font-weight: 700; color: var(--blanc-pur); line-height: 1.25; margin-bottom: 6px; }
.hm-price  { font-family: var(--font-chiffres); font-size: 14px; font-weight: 700; color: var(--blanc-pur); }
.hm-chg    { font-family: var(--font-chiffres); font-size: 13px; font-weight: 600; }
.hm-cell.hm-up .hm-chg { color: var(--vert-finance); }
.hm-cell.hm-dn .hm-chg { color: var(--corail); }
.hm-cell.hm-flat .hm-chg { color: var(--gris-texte); }
html.theme-light .hm-name, html.theme-light .hm-price { color: #0f172a; }
html.theme-light .hm-ticker { color: #475569; }
.hm-tooltip {
  position: fixed;
  z-index: 1200;
  width: min(320px, calc(100vw - 24px));
  padding: 12px;
  border-radius: 8px;
  background: #0A1628;
  border: 1px solid rgba(148,163,184,0.28);
  box-shadow: 0 18px 45px rgba(0,0,0,0.36);
  color: #E2E8F0;
  pointer-events: none;
}
.hm-tooltip.hidden { display: none; }
.hm-tip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.hm-tip-head strong {
  display: block;
  color: #FFFFFF;
  font-size: 0.9rem;
  line-height: 1.2;
}
.hm-tip-head span {
  display: block;
  color: #94A3B8;
  font-size: 0.75rem;
  margin-top: 2px;
}
.hm-tip-head b {
  font-family: var(--font-chiffres);
  font-size: 0.9rem;
}
.hm-tip-head b.pos { color: var(--vert-finance); }
.hm-tip-head b.neg { color: var(--rouge-corail); }
.hm-tip-head b.neu { color: #94A3B8; }
.hm-tip-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 14px;
  font-size: 0.78rem;
}
.hm-tip-grid span { color: #94A3B8; }
.hm-tip-grid strong {
  color: #F8FAFC;
  font-family: var(--font-chiffres);
  font-weight: 600;
}
html.theme-light .hm-tooltip {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 18px 45px rgba(15,23,42,0.16);
  color: #0F172A;
}
html.theme-light .hm-tip-head strong,
html.theme-light .hm-tip-grid strong { color: #0F172A; }
html.theme-light .hm-tip-head span,
html.theme-light .hm-tip-grid span { color: #64748B; }

/* ─── Simulateur CEA ─────────────────────────────────────────────────────────── */
.simulateur-hero {
  background: linear-gradient(135deg, #0A1628 0%, #1a2f47 50%, #0A1628 100%);
  border: 1px solid rgba(31,184,114,0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.simulateur-result {
  background: linear-gradient(135deg, #1FB872 0%, #008060 100%);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: #000;
}
.simulateur-result .chiffre { font-size: 2rem; font-weight: 800; font-family: var(--font-chiffres); }

/* Radio button alignment */
input[type="radio"] {
  margin-top: 1px;
  vertical-align: middle;
  cursor: pointer;
  accent-color: var(--vert-finance);
}
input[type="radio"]:checked {
  accent-color: var(--vert-finance);
}

.range-input {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #2d4a6b;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: var(--vert-finance);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--vert-finance), 0 2px 6px rgba(31,184,114,0.5);
  margin-top: -9px;
}
.range-input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--vert-finance);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--vert-finance), 0 2px 6px rgba(31,184,114,0.5);
}
.range-input::-webkit-slider-runnable-track {
  background: #2d4a6b;
  border-radius: 3px;
  height: 6px;
}
.range-input::-moz-range-track {
  background: #2d4a6b;
  border-radius: 3px;
  height: 6px;
}

.duration-scale {
  position: relative;
  height: 1.1rem;
  margin-right: 5rem;
}
.duration-scale span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.duration-scale span:first-child { transform: translateX(0); }
.duration-scale span:last-child { transform: translateX(-100%); }
@media (max-width: 520px) {
  .duration-scale {
    margin-right: 0;
    font-size: .68rem;
  }
}

/* ─── Forum ────────────────────────────────────────────────────────────────── */
.prose-forum {
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}
.prose-forum a { color: var(--vert-finance); }
.prose-forum a:hover { text-decoration: underline; }

/* ─── Portefeuille ───────────────────────────────────────────────────────────── */
.pf-summary-card {
  background: linear-gradient(135deg, #0e1f35 0%, #1a2f47 100%);
  border: 1px solid rgba(31,184,114,0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.pf-perf-pos { color: var(--vert-finance); }
.pf-perf-neg { color: var(--rouge-corail); }

/* ─── Toast notifications ────────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  background: #1E2D3D;
  border: 1px solid #2d4a6b;
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  color: var(--blanc-pur);
  font-size: 0.875rem;
  min-width: 280px;
  max-width: 360px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: slideInRight 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.success { border-left: 3px solid var(--vert-finance); }
.toast.error   { border-left: 3px solid var(--rouge-corail); }
.toast.info    { border-left: 3px solid #60a5fa; }

@keyframes slideInRight {
  from { transform: translateX(100px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ─── Loader ─────────────────────────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(31,184,114,0.2);
  border-top-color: var(--vert-finance);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Modal ──────────────────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-box { background: var(--bleu-ardoise); border: 1px solid #2d4a6b; border-radius: var(--radius-lg); padding: 2rem; width: 100%; max-width: 480px; position: relative; animation: modalIn 0.25s ease; }
@keyframes modalIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ─── Breadcrumb ─────────────────────────────────────────────────────────────── */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.8125rem; color: var(--gris-texte); margin-bottom: 1rem; }
.breadcrumb a { color: var(--gris-texte); }
.breadcrumb a:hover { color: var(--blanc-pur); }
.breadcrumb-sep { color: #3a5068; }

/* ─── Sidebar ────────────────────────────────────────────────────────────────── */
.sidebar-marche { position: sticky; top: 90px; }

/* ─── Scrollbar personnalisée ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bleu-marine); }
::-webkit-scrollbar-thumb { background: #2d4a6b; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3d5a7b; }

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.footer {
  background: linear-gradient(135deg, #060f1e 0%, #0A1628 100%);
  border-top: 1px solid #1a2d40;
  margin-top: auto;
}
.footer-disclaimer {
  background: rgba(232,64,64,0.05);
  border: 1px solid rgba(232,64,64,0.1);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  color: #9fb3c8;
  line-height: 1.5;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .table-cours thead th:nth-child(n+5) { display: none; }
  .table-cours td:nth-child(n+5)       { display: none; }
  .cours-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .navbar-brand { font-size: 1.25rem; }
  .cours-principal { font-size: 1.75rem; }
  .simulateur-hero { padding: 1.25rem; }
  .toast-container { left: 1rem; right: 1rem; }
  .toast { min-width: auto; }
}

@media (max-width: 480px) {
  .table-cours thead th:nth-child(n+4) { display: none; }
  .table-cours td:nth-child(n+4)       { display: none; }
  .heatmap-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
  .hm-ticker { font-size: 11px; }
  .hm-name { font-size: 12px; }
  .hm-price, .hm-chg { font-size: 12px; }
}

/* ─── RTL ────────────────────────────────────────────────────────────────────── */
[dir="rtl"] .table-cours thead th { text-align: left; }
[dir="rtl"] .table-cours thead th:first-child { text-align: right; }
[dir="rtl"] .table-cours td { text-align: left; }
[dir="rtl"] .table-cours td:first-child { text-align: right; }
[dir="rtl"] .toast-container { right: auto; left: 1.5rem; }
[dir="rtl"] .breadcrumb { flex-direction: row-reverse; }

/* ─── Print ──────────────────────────────────────────────────────────────────── */
@media print {
  .navbar, .ticker-bar, .sidebar-marche, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: 1px solid #ccc; }
}

/* ============================================================
   LIGHT MODE - theme-light class on <html>
   Charte : palette fintech moderne (Robinhood / TradingView-style)
   Base bleu-gris aéré, cartes blanches nettes, accents vert finance
   ============================================================ */

/* ── Palette light (modern fintech) ── */
html.theme-light {
  --bleu-marine:    #F1F5F9;   /* slate-100 - base aérée */
  --bleu-ardoise:   #FFFFFF;   /* carte blanche nette */
  --bleu-moyen:     #E2E8F0;   /* slate-200 */
  --vert-finance:   #00A878;
  --vert-clair:     #00C896;
  --rouge-corail:   #E63946;
  --or-discret:     #C18F2A;
  --blanc-pur:      #0F172A;   /* slate-900 - texte principal */
  --gris-texte:     #475569;   /* slate-600 */
  --blanc-casse:    #0F172A;
  --bordure:        #E2E8F0;
  --surface-card:   #FFFFFF;
  --ombre-carte:    0 1px 2px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04);
  --accent-bleu:    #0EA5E9;   /* sky-500 - liens info */
}

/* ── Body ── */
html.theme-light body {
  background: #F1F5F9;
  background-image:
    radial-gradient(circle at 100% 0%, rgba(31,184,114,0.06) 0%, transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(14,165,233,0.05) 0%, transparent 50%);
  background-attachment: fixed;
  color: #0F172A;
}

/* ── Navbar ── */
html.theme-light .navbar {
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
html.theme-light .navbar-brand .brand-tn,
html.theme-light .navbar-brand .accent,
html.theme-light .navbar-brand .domain { color: #0F172A; }
html.theme-light .navbar-brand .brand-main { color: var(--vert-finance); }

html.theme-light .nav-link {
  color: #475569;
}
html.theme-light .nav-link:hover {
  color: #00A878;
  background: rgba(31,184,114,0.08);
}
html.theme-light .nav-link.active {
  color: #00A878;
  background: rgba(31,184,114,0.12);
  font-weight: 600;
}

/* Theme toggle + lang buttons in light mode */
html.theme-light #theme-toggle,
html.theme-light .navbar .border-gray-700 {
  border-color: #E2E8F0 !important;
  color: #475569 !important;
}
html.theme-light #theme-toggle:hover,
html.theme-light a.border-gray-700:hover {
  background: #F1F5F9 !important;
  color: #0F172A !important;
}

/* ── Ticker bar stays dark ── */
/* ── Cards ── */
html.theme-light .card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 1px 3px rgba(15,23,42,0.03);
  border-radius: 12px;
}
html.theme-light .card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(15,23,42,0.08), 0 2px 6px rgba(31,184,114,0.06);
}
html.theme-light .card-header {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  color: #0F172A;
  font-weight: 600;
}

/* ── Table ── */
html.theme-light .table-cours thead th {
  background: #F8FAFC;
  color: #64748B;
  border-bottom-color: #E2E8F0;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
html.theme-light .table-cours tbody tr {
  border-bottom-color: #F1F5F9;
}
html.theme-light .table-cours tbody tr:hover {
  background: #F8FAFC;
}
html.theme-light .societe-nom { color: var(--bx-accent, #0070C9) !important; font-weight: 700 !important; }
html.theme-light .societe-sym { color: #64748B !important; font-weight: 400 !important; }

/* ── Forms ── */
html.theme-light .form-input,
html.theme-light .form-select {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
  border-radius: 8px;
}
html.theme-light .form-input::placeholder { color: #94A3B8; }
html.theme-light .form-input:focus,
html.theme-light .form-select:focus {
  border-color: #00A878;
  box-shadow: 0 0 0 3px rgba(31,184,114,0.15);
  outline: none;
}
html.theme-light .form-label { color: #475569; font-weight: 500; }

/* ── Buttons ── */
html.theme-light .btn-primary { background: #00A878; color: #fff; border: 1px solid #00A878; }
html.theme-light .btn-primary:hover { background: #00C896; border-color: #00C896; color: #fff; }
html.theme-light .btn-outline { border-color: #00A878; color: #00A878; background: transparent; }
html.theme-light .btn-outline:hover { background: #00A878; color: #fff; }
html.theme-light .btn-ghost { border-color: #CBD5E1; color: #475569; background: transparent; }
html.theme-light .btn-ghost:hover { border-color: #94A3B8; color: #0F172A; background: #F1F5F9; }

/* ── Range sliders in light mode ── */
html.theme-light .range-input { background: #CBD5E1; }
html.theme-light .range-input::-webkit-slider-runnable-track { background: #CBD5E1; }
html.theme-light .range-input::-moz-range-track { background: #CBD5E1; }
html.theme-light .range-input::-webkit-slider-thumb {
  background: #00A878;
  border-color: #fff;
  box-shadow: 0 0 0 2px #00A878, 0 2px 6px rgba(31,184,114,0.4);
}
html.theme-light .range-input::-moz-range-thumb {
  background: #00A878;
  border-color: #fff;
}

/* ── Market status ── */
html.theme-light .statut-ouvert {
  background: rgba(31,184,114,0.1);
  border-color: rgba(31,184,114,0.3);
  color: #00875E;
}
html.theme-light .statut-ferme {
  background: rgba(230,57,70,0.1);
  border-color: rgba(230,57,70,0.3);
  color: #B83240;
}

/* ── Color overrides for Tailwind utility classes (fintech slate) ── */
html.theme-light .text-white    { color: #0F172A !important; }
html.theme-light .text-gray-200 { color: #1E293B !important; }
html.theme-light .text-gray-300 { color: #334155 !important; }
html.theme-light .text-gray-400 { color: #475569 !important; }
html.theme-light .text-gray-500 { color: #64748B !important; }

/* ── Override inline styles for light mode ── */
html.theme-light [style*="color:#1FB872"],
html.theme-light [style*="color: #1FB872"] {
  color: #00A878 !important;
}

html.theme-light [style*="color:#C9A84C"],
html.theme-light [style*="color: #C9A84C"] {
  color: #0EA5E9 !important;
}

html.theme-light [style*="color:#E84040"],
html.theme-light [style*="color: #E84040"] {
  color: #E63946 !important;
}

html.theme-light [style*="background:#0A1628"],
html.theme-light [style*="background: #0A1628"] {
  background: #FFFFFF !important;
}

html.theme-light [style*="background:#1E2D3D"],
html.theme-light [style*="background: #1E2D3D"] {
  background: #F1F5F9 !important;
}

/* ── Soften colored translucent gradient backgrounds (hero/cards in apprendre) ── */
html.theme-light [style*="background: linear-gradient(135deg,rgba(31,184,114"],
html.theme-light [style*="background:linear-gradient(135deg,rgba(31,184,114"] {
  background: linear-gradient(135deg, rgba(31,184,114,0.10), rgba(31,184,114,0.03)) !important;
}
html.theme-light [style*="rgba(201,168,76"] {
  background: linear-gradient(135deg, rgba(14,165,233,0.10), rgba(14,165,233,0.03)) !important;
}
html.theme-light [style*="rgba(232,64,64"] {
  background: linear-gradient(135deg, rgba(230,57,70,0.10), rgba(230,57,70,0.03)) !important;
}

/* ── Sidebar links light mode ── */
html.theme-light .sidebar-link {
  color: #475569;
}
html.theme-light .sidebar-link:hover {
  color: #00A878;
  background: rgba(31,184,114,0.08);
}

/* ── Text with opacity in light mode (slate) ── */
html.theme-light .text-white\/70 { color: rgba(15, 23, 42, 0.78) !important; }
html.theme-light .text-white\/60 { color: rgba(15, 23, 42, 0.68) !important; }
html.theme-light .text-white\/50 { color: rgba(15, 23, 42, 0.58) !important; }
html.theme-light .text-white\/40 { color: rgba(15, 23, 42, 0.48) !important; }
html.theme-light .text-white\/30 { color: rgba(15, 23, 42, 0.38) !important; }
html.theme-light .bg-white\/5  { background: rgba(30, 41, 59, 0.04) !important; }
html.theme-light .bg-white\/3  { background: rgba(30, 41, 59, 0.025) !important; }
html.theme-light .bg-white\/10 { background: rgba(30, 41, 59, 0.07) !important; }
html.theme-light .text-gray-600 { color: #64748B !important; }
html.theme-light .border-white\/10 { border-color: rgba(30, 41, 59, 0.12) !important; }
html.theme-light .border-white\/5  { border-color: rgba(30, 41, 59, 0.07) !important; }
html.theme-light .divide-white\/5 > * { border-color: rgba(30, 41, 59, 0.07) !important; }
html.theme-light .hover\:bg-white\/3:hover { background: rgba(30, 41, 59, 0.04) !important; }

html.theme-light .border-gray-700,
html.theme-light .border-gray-800 { border-color: #E2E8F0 !important; }

html.theme-light .bg-ardoise  { background-color: #FFFFFF !important; }
html.theme-light .bg-marine   { background-color: #F1F5F9 !important; }

html.theme-light .bg-gray-800 { background-color: #F8FAFC !important; }
html.theme-light .bg-gray-900 { background-color: #F1F5F9 !important; }

html.theme-light [class*="bg-red-900"]    { background-color: #FEF2F2 !important; }
html.theme-light [class*="bg-green-900"]  { background-color: #ECFDF5 !important; }
html.theme-light [class*="bg-blue-900"]   { background-color: #EFF6FF !important; }
html.theme-light [class*="bg-yellow-900"] { background-color: #FFFBEB !important; }
html.theme-light [class*="bg-orange-900"] { background-color: #FFF7ED !important; }
html.theme-light [class*="bg-cyan-900"]   { background-color: #ECFEFF !important; }
html.theme-light [class*="bg-purple-900"] { background-color: #F5F3FF !important; }

html.theme-light [class*="text-green-400"] { color: #059669 !important; }
html.theme-light [class*="text-red-400"]   { color: #DC2626 !important; }
html.theme-light [class*="text-blue-300"]  { color: #0284C7 !important; }
html.theme-light [class*="text-yellow-300"]{ color: #D97706 !important; }
html.theme-light [class*="text-yellow-400"]{ color: #B45309 !important; }
html.theme-light [class*="text-orange-300"],
html.theme-light [class*="text-orange-400"]{ color: #C2410C !important; }
html.theme-light [class*="text-cyan-300"],
html.theme-light [class*="text-cyan-400"]  { color: #0E7490 !important; }
html.theme-light [class*="text-purple-300"],
html.theme-light [class*="text-purple-400"] { color: #7C3AED !important; }
html.theme-light [class*="border-orange-800"] { border-color: #FED7AA !important; }
html.theme-light [class*="border-cyan-800"]   { border-color: #A5F3FC !important; }
html.theme-light [class*="border-purple-800"] { border-color: #DDD6FE !important; }

html.theme-light .bg-finance\/5  { background: rgba(31,184,114,0.05) !important; }
html.theme-light .bg-finance\/10 { background: rgba(31,184,114,0.08) !important; }
html.theme-light .bg-finance\/20 { background: rgba(31,184,114,0.14) !important; }

/* Dropdown menus */
html.theme-light .bg-ardoise.border-gray-700 {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 10px 30px rgba(15,23,42,0.08);
}

/* Mobile menu */
html.theme-light #menu-mobile {
  background: #FFFFFF;
  border-top-color: #E2E8F0;
}

/* Toast */
html.theme-light .toast {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: #0F172A;
  box-shadow: 0 10px 30px rgba(15,23,42,0.12);
}

/* Indice cards */
html.theme-light .indice-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  border-color: #E2E8F0;
}
html.theme-light .indice-nom { color: #64748B; }
html.theme-light .indice-val { color: #0F172A; }

/* ── Additional light mode overrides for apprendre and other pages ── */
html.theme-light [style*="border-color:#1FB872"],
html.theme-light [style*="border-color: #1FB872"] {
  border-color: #00A878 !important;
}

html.theme-light [style*="border-color:#C9A84C"],
html.theme-light [style*="border-color: #C9A84C"] {
  border-color: #0EA5E9 !important;
}

html.theme-light [style*="border-color:#E84040"],
html.theme-light [style*="border-color: #E84040"] {
  border-color: #E63946 !important;
}

/* ── Section backgrounds in light mode ── */
html.theme-light .card p,
html.theme-light .card div {
  color: #0F172A;
}

html.theme-light .prose-custom { color: #0F172A; }
html.theme-light .prose-custom p { color: #334155; }
html.theme-light .prose-custom strong { color: #0F172A; }
html.theme-light .prose-custom h3 { color: #00875E; }

/* ── Light mode text and h-tags ── */
html.theme-light h1,
html.theme-light h2,
html.theme-light h3,
html.theme-light h4 { color: #0F172A; font-weight: 700; }
html.theme-light h1 strong,
html.theme-light h2 strong { color: #00875E; }

html.theme-light .card h3 { color: #0F172A; }
html.theme-light .card h4 { color: #0F172A; }
html.theme-light .card p { color: #334155; }

/* ── Table elements in light mode ── */
html.theme-light table tr:hover { background: rgba(14,165,233,0.05) !important; }
html.theme-light thead { background: #F8FAFC !important; }
html.theme-light thead tr { border-color: #E2E8F0 !important; }

/* Breadcrumb */
html.theme-light .breadcrumb a { color: #64748B; }
html.theme-light .breadcrumb a:hover { color: #00A878; }
html.theme-light .breadcrumb-sep { color: #CBD5E1; }

/* Table thead sticky in light mode */
html.theme-light .table-cours thead { background: #F8FAFC; }

/* Footer light mode */
html.theme-light footer {
  background: #FFFFFF !important;
  color: #334155 !important;
  border-top: 1px solid #DDE5ED !important;
}
html.theme-light footer .text-white,
html.theme-light footer h2,
html.theme-light footer h3,
html.theme-light footer h4 {
  color: #0F172A !important;
}
html.theme-light footer .text-gray-400,
html.theme-light footer .text-slate-400 {
  color: #64748B !important;
}
html.theme-light footer a {
  color: var(--bx-accent, #0070C9) !important;
}

/* Cours stats */
html.theme-light .cours-stat { background: #F8FAFC; border-color: #E2E8F0; }
html.theme-light .cours-stat-label { color: #64748B; }
html.theme-light .cours-stat-val { color: #0F172A; }

/* Simulateur hero */
html.theme-light .simulateur-hero {
  background: linear-gradient(135deg, #F1F5F9 0%, #FFFFFF 50%, #E0F2FE 100%);
  border-color: rgba(31,184,114,0.22);
}

html.theme-light section[class*="from-[#0d1e38]"],
html.theme-light section[class*="to-marine"] {
  background: #FFFFFF !important;
  border-bottom-color: #DDE5ED !important;
}

html.theme-light .badge.bg-moyen,
html.theme-light .bg-moyen {
  background: #EEF2F7 !important;
  color: #334155 !important;
  border: 1px solid #CBD5E1 !important;
}

.active-filter {
  background: rgba(31,184,114,0.15);
  color: #1FB872 !important;
}
html.theme-light .active-filter {
  background: rgba(0,143,106,0.10) !important;
  color: var(--bx-accent, #0070C9) !important;
}

html.theme-light .card .societe-nom,
html.theme-light table .societe-nom {
  color: var(--bx-accent, #0070C9) !important;
  font-weight: 700 !important;
}
html.theme-light .card .societe-sym,
html.theme-light table .societe-sym {
  color: #64748B !important;
  font-weight: 400 !important;
}
html.theme-light .badge-secteur {
  background: #F1F5F9 !important;
  color: #475569 !important;
  border-color: #DDE5ED !important;
}
html.theme-light .badge-marche {
  background: #FFF7E6 !important;
  color: #A16207 !important;
  border-color: #FCD34D !important;
}
.admin-type-badge {
  border: 1px solid transparent;
}
.admin-type-resultats { background: rgba(59,130,246,.20); color: #93C5FD; }
.admin-type-analyse { background: rgba(168,85,247,.20); color: #D8B4FE; }
.admin-type-recommandation { background: rgba(234,179,8,.20); color: #FACC15; }
.admin-type-communique { background: rgba(20,184,166,.20); color: #5EEAD4; }
.admin-type-flash { background: rgba(249,115,22,.20); color: #FDBA74; }
.admin-type-default { background: rgba(148,163,184,.18); color: #CBD5E1; }
html.theme-light .admin-type-resultats { background: #DBEAFE !important; color: #1D4ED8 !important; border-color: #BFDBFE; }
html.theme-light .admin-type-analyse { background: #F3E8FF !important; color: #7E22CE !important; border-color: #E9D5FF; }
html.theme-light .admin-type-recommandation { background: #FEF3C7 !important; color: #92400E !important; border-color: #FDE68A; }
html.theme-light .admin-type-communique { background: #CCFBF1 !important; color: #0F766E !important; border-color: #99F6E4; }
html.theme-light .admin-type-flash { background: #FFEDD5 !important; color: #C2410C !important; border-color: #FED7AA; }
html.theme-light .admin-type-default { background: #F1F5F9 !important; color: #334155 !important; border-color: #CBD5E1; }
html.theme-light .doc-item {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
}
html.theme-light .doc-item:hover {
  background: #F8FAFC !important;
}
html.theme-light .badge-conserver {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border: 1px solid #FCD34D !important;
}
html.theme-light .tab-btn:hover {
  color: #0F172A !important;
}
html.theme-light .societe-sym {
  color: #64748B !important;
}
html.theme-light #autocomplete-results,
html.theme-light #alerte-autocomplete,
html.theme-light #societe_suggestions {
  background: #FFFFFF !important;
  border-color: #D7E0E9 !important;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08) !important;
}
html.theme-light #autocomplete-results .autocomplete-item,
html.theme-light #alerte-autocomplete .autocomplete-item,
html.theme-light #societe_suggestions li {
  color: #0F172A !important;
}
html.theme-light #autocomplete-results .autocomplete-item:hover,
html.theme-light #alerte-autocomplete .autocomplete-item:hover,
html.theme-light #societe_suggestions li:hover {
  background: #EEF6F3 !important;
}
html.theme-light #autocomplete-results .text-gray-300,
html.theme-light #alerte-autocomplete .text-gray-300,
html.theme-light #societe_suggestions .text-slate-400 {
  color: #475569 !important;
}
html.theme-light .mon-espace-nav a:hover {
  color: #0F172A !important;
  background: #F8FAFC !important;
}
html.theme-light .mon-espace-nav a.active:hover,
html.theme-light .mon-espace-nav .tab-btn.active:hover {
  color: #00A878 !important;
}

/* ============================================================
   Appearance settings - admin driven public palette
   ============================================================ */
body {
  background:
    radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--main-accent-color) 13%, transparent), transparent 30%),
    radial-gradient(circle at 90% 12%, color-mix(in srgb, var(--main-ticker-color) 10%, transparent), transparent 34%),
    var(--main-bg);
  color: var(--main-text-primary);
}
.navbar {
  background: color-mix(in srgb, var(--main-bg-secondary) 88%, transparent);
  border-bottom-color: color-mix(in srgb, var(--main-accent-color) 24%, var(--main-border-color));
}
.card,
.home-action-card {
  background: color-mix(in srgb, var(--main-card-bg) 92%, transparent) !important;
  border-color: var(--main-border-color) !important;
  color: var(--main-text-primary);
}
.card-header {
  background: color-mix(in srgb, var(--main-bg-secondary) 78%, transparent) !important;
  border-bottom-color: var(--main-border-color) !important;
}
.form-input,
.form-select,
.global-search-box {
  background: var(--main-card-bg) !important;
  border-color: var(--main-border-color) !important;
  color: var(--main-text-primary) !important;
}
.btn-primary {
  background: var(--main-button-color) !important;
  border-color: var(--main-button-color) !important;
  color: #fff !important;
}
.btn-primary:hover {
  background: var(--main-button-hover-color) !important;
  border-color: var(--main-button-hover-color) !important;
}
.btn-outline {
  border-color: var(--main-button-color) !important;
  color: var(--main-button-color) !important;
}
.btn-outline:hover {
  background: var(--main-button-color) !important;
  color: #fff !important;
}
.ticker-bar {
  background: linear-gradient(90deg, var(--main-bg) 0%, var(--main-bg-secondary) 50%, var(--main-bg) 100%);
  border-color: color-mix(in srgb, var(--main-ticker-color) 22%, var(--main-border-color));
}
.nav-live-badge {
  gap: 5px;
  text-transform: none;
  letter-spacing: 0;
}
.nav-live-label {
  text-transform: none;
}
.nav-live-meta,
.nav-live-sep {
  font-weight: 600;
  color: color-mix(in srgb, currentColor 72%, var(--main-text-secondary));
}
.nav-live-arrow {
  margin-left: 2px;
}
.var-pos,
.text-green-400 {
  color: var(--main-positive-color) !important;
}
.var-neg,
.text-red-400 {
  color: var(--main-negative-color) !important;
}
html[data-theme="dark1"] .card,
html[data-theme="dark1"] .home-action-card {
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
}

/* ============================================================
   /apprendre - per-section fintech overrides
   ============================================================ */
html.theme-light .apprendre-hero,
html.theme-light [data-section="apprendre-hero"] {
  background: linear-gradient(135deg, #E0F2FE 0%, #FFFFFF 50%, #F1F5F9 100%) !important;
  border: 1px solid #E2E8F0;
}
html.theme-light .apprendre-hero h1,
html.theme-light .apprendre-hero h2,
html.theme-light [data-section="apprendre-hero"] h1 {
  color: #0F172A !important;
}
html.theme-light .apprendre-hero p,
html.theme-light [data-section="apprendre-hero"] p {
  color: #334155 !important;
}

/* Niveau cards (débutant/intermédiaire/avancé) */
html.theme-light .niveau-card,
html.theme-light [class*="niveau-"] {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}
html.theme-light .niveau-card h3,
html.theme-light .niveau-card h4 { color: #0F172A !important; }
html.theme-light .niveau-card p { color: #334155 !important; }

/* CTA buttons with gradient backgrounds on apprendre */
html.theme-light [style*="background: linear-gradient"][class*="btn"],
html.theme-light a[style*="background: linear-gradient"].btn,
html.theme-light button[style*="background: linear-gradient"] {
  background: linear-gradient(135deg, #00A878 0%, #00C896 100%) !important;
  color: #fff !important;
}

/* ============================================================
   Corrections produit 2026-04-25
   ============================================================ */

.sidebar-marche { z-index: 0; }

.chiffres-cles-table tbody td,
.chiffres-cles-table .indicateur,
.chiffres-cles-table .cc-current,
.chiffres-cles-table .cc-evol {
  font-weight: 400 !important;
}

.pro-drawing-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148,163,184,0.16);
  background: rgba(10,22,40,0.72);
}
.pro-drawing-toolbar button,
.hm-sort-btns button {
  min-height: 30px;
}
.pro-drawing-toolbar button {
  border: 1px solid rgba(148,163,184,0.28);
  background: rgba(255,255,255,0.04);
  color: #CBD5E1;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 0.75rem;
  cursor: pointer;
}
.pro-drawing-toolbar button:hover,
.pro-drawing-toolbar button.active {
  color: #001510;
  background: #1FB872;
  border-color: #1FB872;
}
.chart-pro-price-wrap {
  position: relative;
  min-height: 360px;
}
.chart-drawing-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  pointer-events: auto;
  z-index: 3;
}
.drawing-line,
.drawing-support,
.drawing-resistance,
.drawing-fib {
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.drawing-line { stroke: #C9A84C; }
.drawing-support { stroke: #1FB872; }
.drawing-resistance { stroke: #E84040; }
.drawing-fib { stroke: rgba(14,165,233,0.9); }
.drawing-zone {
  fill: rgba(201,168,76,0.12);
  stroke: #C9A84C;
  stroke-width: 1.5;
}
.drawing-label {
  fill: #E2E8F0;
  font-size: 11px;
  font-family: var(--font-chiffres);
  paint-order: stroke;
  stroke: rgba(10,22,40,0.85);
  stroke-width: 3px;
}
.chart-fallback-notice {
  margin: 10px 12px 0;
  padding: 8px 10px;
  border: 1px solid rgba(232,64,64,0.25);
  background: rgba(232,64,64,0.10);
  color: #FF7A7A;
  border-radius: 6px;
  font-size: 0.82rem;
}

.hm-sort-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.hm-sort-btns .active {
  background: rgba(31,184,114,0.14);
  border-color: var(--vert-finance);
  color: var(--vert-finance);
}
.hm-sector {
  color: rgba(203,213,225,0.58);
  font-size: 11px;
  line-height: 1.1;
  margin-top: 2px;
}
.variation-filter[data-var="hausse"]:hover,
.variation-filter[data-var="hausse"].active {
  background: rgba(31,184,114,0.16);
  border-color: var(--vert-finance);
  color: var(--vert-finance);
}
.variation-filter[data-var="baisse"]:hover,
.variation-filter[data-var="baisse"].active {
  background: rgba(232,64,64,0.14);
  border-color: var(--rouge-corail);
  color: var(--rouge-corail);
}
.variation-filter[data-var="stable"]:hover,
.variation-filter[data-var="stable"].active {
  background: rgba(148,163,184,0.14);
  border-color: #94A3B8;
  color: #CBD5E1;
}
.variation-filter[data-var="tous"].active {
  background: rgba(31,184,114,0.12);
  border-color: var(--vert-finance);
  color: var(--vert-finance);
}

/* Refonte light theme hors live.php : fintech sobre, dense et lisible */
html.theme-light {
  --bleu-marine: #F5F7FA;
  --bleu-ardoise: #FFFFFF;
  --bleu-moyen: #E6EBF1;
  --vert-finance: #008F6A;
  --vert-clair: #1FB872;
  --rouge-corail: #D92D3A;
  --or-discret: #A87918;
  --blanc-pur: #111827;
  --gris-texte: #4B5563;
  --bordure: #DDE5ED;
  --surface-card: #FFFFFF;
  --ombre-carte: 0 1px 2px rgba(17,24,39,0.05), 0 8px 24px rgba(17,24,39,0.04);
}
html.theme-light body {
  background: #F5F7FA !important;
  background-image: none !important;
  color: #111827;
}
html.theme-light .navbar {
  background: rgba(255,255,255,0.94);
  border-bottom-color: #DDE5ED;
  box-shadow: 0 1px 2px rgba(17,24,39,0.06);
}
html.theme-light .card {
  border-radius: 8px;
  border-color: #DDE5ED;
  box-shadow: var(--ombre-carte);
}
html.theme-light .card:hover {
  border-color: #BFD0DD;
  box-shadow: 0 4px 16px rgba(17,24,39,0.07);
}
html.theme-light .card-header {
  background: #FFFFFF;
  border-bottom-color: #E7EDF3;
  color: #1F2937;
  letter-spacing: 0.02em;
}
html.theme-light .table-cours thead th {
  background: #F0F4F8 !important;
  color: #4B5563;
  border-bottom-color: #DDE5ED;
}
html.theme-light .table-cours tbody tr {
  border-bottom-color: #E7EDF3;
}
html.theme-light .table-cours tbody tr:hover,
html.theme-light table tr:hover {
  background: #F7FAFC !important;
}
html.theme-light .badge-var.pos { background: rgba(0,143,106,0.10); color: #007A5C; }
html.theme-light .badge-var.neg { background: rgba(217,45,58,0.10); color: #B4232E; }
html.theme-light .badge-var.neu { background: rgba(75,85,99,0.09); color: #4B5563; }
html.theme-light .form-input,
html.theme-light .form-select {
  background: #FFFFFF;
  border-color: #C9D5E1;
  border-radius: 8px;
}
html.theme-light .btn {
  border-radius: 8px;
}
html.theme-light .btn-primary {
  background: #008F6A;
  border-color: #008F6A;
  color: #FFFFFF;
}
html.theme-light .btn-primary:hover {
  background: #00A878;
  border-color: #00A878;
}
html.theme-light .btn-outline {
  border-color: #008F6A;
  color: #007A5C;
}
html.theme-light .btn-ghost {
  border-color: #C9D5E1;
  color: #374151;
  background: #FFFFFF;
}
html.theme-light .btn-ghost:hover {
  background: #F0F4F8;
  border-color: #AAB8C5;
}
html.theme-light .navbar .absolute a:hover,
html.theme-light .navbar [class*="hover:bg-gray-700"]:hover {
  background: #EEF6F3 !important;
  color: #006B50 !important;
}
html.theme-light [style*="#0e1f35"],
html.theme-light [style*="#1a3040"],
html.theme-light [style*="#1a3347"],
html.theme-light [style*="#0d1e38"],
html.theme-light [style*="#0A1628"] {
  background: #FFFFFF !important;
}
html.theme-light [style*="linear-gradient(135deg,#0e1f35"],
html.theme-light [style*="linear-gradient(135deg,#1a3040"],
html.theme-light [style*="linear-gradient(135deg,#0d1e38"] {
  background: #FFFFFF !important;
  border-color: #DDE5ED !important;
}
html.theme-light .sidebar-marche .card[style],
html.theme-light .card[style*="#0e1f35"],
html.theme-light .card[style*="#1a3347"] {
  background: #FFFFFF !important;
  border-color: #DDE5ED !important;
}
html.theme-light .variation-filter[data-var="hausse"]:hover,
html.theme-light .variation-filter[data-var="hausse"].active {
  background: rgba(0,143,106,0.10) !important;
  border-color: #008F6A !important;
  color: #007A5C !important;
}
html.theme-light .variation-filter[data-var="baisse"]:hover,
html.theme-light .variation-filter[data-var="baisse"].active {
  background: rgba(217,45,58,0.10) !important;
  border-color: #D92D3A !important;
  color: #B4232E !important;
}
html.theme-light .variation-filter[data-var="stable"]:hover,
html.theme-light .variation-filter[data-var="stable"].active {
  background: #EEF2F7 !important;
  border-color: #B8C4D1 !important;
  color: #334155 !important;
}
html.theme-light #graphique-container {
  background: #FFFFFF;
}
html.theme-light .pro-drawing-toolbar {
  background: #F8FAFC;
  border-bottom-color: #E2E8F0;
}
html.theme-light .pro-drawing-toolbar button {
  background: #FFFFFF;
  color: #334155;
  border-color: #CBD5E1;
}
html.theme-light .pro-drawing-toolbar button:hover,
html.theme-light .pro-drawing-toolbar button.active {
  color: #FFFFFF;
  background: #008F6A;
  border-color: #008F6A;
}
html.theme-light .drawing-label {
  fill: #0F172A;
  stroke: rgba(255,255,255,0.85);
}
html.theme-light .hm-sector { color: #64748B; }

html.theme-light .societe-nom { color: var(--bx-accent, #0070C9) !important; font-weight: 700 !important; }
html.theme-light .societe-sym { color: #64748B !important; font-weight: 400 !important; }
html.theme-light [class*="text-orange-300"],
html.theme-light [class*="text-orange-400"] { color: #C2410C !important; }
html.theme-light [class*="text-cyan-300"],
html.theme-light [class*="text-cyan-400"] { color: #0E7490 !important; }
html.theme-light footer.footer {
  background: #FFFFFF !important;
  color: #334155 !important;
  border-top: 1px solid #DDE5ED !important;
}

.parametres-page .card {
  padding: 1.25rem;
}
.toggle-switch input:checked + .toggle-track {
  background: var(--vert-finance) !important;
}
.toggle-switch input:focus-visible + .toggle-track {
  outline: 2px solid var(--vert-finance);
  outline-offset: 2px;
}
html.theme-light .settings-info-note {
  background: #F0F9FF !important;
  border: 1px solid #BAE6FD !important;
  color: #334155 !important;
}
html.theme-light .settings-info-note span {
  color: var(--bx-accent, #0070C9) !important;
  font-weight: 600;
}

/* Themes bourso.tn actifs : Clair 1 + Dark 1 + Dark 2. Placed last to override legacy rules. */
html[data-theme="dark1"], html[data-theme="dark"] {
  --bleu-marine: #0A1628; --bleu-ardoise: #1E2D3D; --bleu-moyen: #2D4A6B;
  --surface-card: #111827; --bordure: #1E2D3D; --blanc-pur: #FFFFFF;
  --blanc-casse: #F7F9FC; --gris-texte: #94A3B8; --vert-finance: #1FB872;
  --vert-clair: #3FD08C; --rouge-corail: #E84040; --or-discret: #C9A84C;
  --theme-bg: #0A1628; --theme-surface: #111827; --theme-surface-2: #162033;
  --theme-text: #FFFFFF; --theme-muted: #94A3B8; --theme-border: rgba(148,163,184,.20);
  --theme-hover: rgba(31,184,114,.12); --theme-shadow: rgba(0,0,0,.30);
  --theme-ticker-a: #06111F; --theme-ticker-b: #0D2740; --theme-ticker-fade-rgb: 6,17,31;
}
html[data-theme="dark2-maintenance"] {
  --bleu-marine: #07111F; --bleu-ardoise: #0F1B2D; --bleu-moyen: #1C334C;
  --surface-card: rgba(12,20,35,.78); --bordure: rgba(80,160,180,.18); --blanc-pur: #F4F7FB;
  --blanc-casse: #EEF5FA; --gris-texte: #A9BDD8; --vert-finance: #00D8A4;
  --vert-clair: #20E7B7; --rouge-corail: #F05D63; --or-discret: #D7B86A;
  --theme-bg: #07111F; --theme-surface: rgba(12,20,35,.78); --theme-surface-2: rgba(16,29,48,.88);
  --theme-text: #F4F7FB; --theme-muted: #A9BDD8; --theme-border: rgba(80,160,180,.18);
  --theme-hover: rgba(0,216,164,.105); --theme-shadow: rgba(0,0,0,.34);
  --theme-ticker-a: #07111F; --theme-ticker-b: #0C2540; --theme-ticker-fade-rgb: 7,17,31;
}
html[data-theme="light1"], html[data-theme="light"] {
  --bleu-marine: #F5F7FB; --bleu-ardoise: #FFFFFF; --bleu-moyen: #D8E2EE;
  --surface-card: #FFFFFF; --bordure: #DDE5ED; --blanc-pur: #0F172A;
  --blanc-casse: #111827; --gris-texte: #64748B; --vert-finance: #1FB872;
  --vert-clair: #3FD08C; --rouge-corail: #D92D3A; --or-discret: #B7791F;
  --theme-bg: #F5F7FB; --theme-surface: #FFFFFF; --theme-surface-2: #F8FAFC;
  --theme-text: #0F172A; --theme-muted: #64748B; --theme-border: #DDE5ED;
  --theme-hover: rgba(31,184,114,.10); --theme-shadow: rgba(15,23,42,.09);
  --theme-ticker-a: #06111F; --theme-ticker-b: #0D2740; --theme-ticker-fade-rgb: 6,17,31;
}

html[data-theme] body,
html[data-theme] .bg-marine {
  background: var(--theme-bg) !important;
  color: var(--theme-text) !important;
}
html[data-theme] .navbar,
html[data-theme] #menu-mobile,
html[data-theme] .bg-ardoise {
  background: linear-gradient(135deg, var(--theme-surface) 0%, var(--theme-surface-2) 100%) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
}
html[data-theme] .card,
html[data-theme] .sidebar-marche .card {
  background: var(--theme-surface) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
  box-shadow: 0 10px 28px var(--theme-shadow) !important;
}
html[data-theme] .card-header {
  background: var(--theme-surface-2) !important;
  border-color: var(--theme-border) !important;
}
html[data-theme] .table-cours th,
html[data-theme] thead th {
  background: var(--theme-surface-2) !important;
  color: var(--theme-muted) !important;
  border-color: var(--theme-border) !important;
}
html[data-theme] .table-cours td,
html[data-theme] tbody td {
  border-color: var(--theme-border) !important;
}
html[data-theme] .nav-link,
html[data-theme] .text-gray-300,
html[data-theme] .text-gray-400,
html[data-theme] .text-gray-500,
html[data-theme] .text-slate-400,
html[data-theme] .text-slate-500 {
  color: var(--theme-muted) !important;
}
html[data-theme] .nav-link:hover,
html[data-theme] .nav-link.active,
html[data-theme] .societe-link:hover {
  color: var(--theme-text) !important;
  background: var(--theme-hover) !important;
}
html[data-theme] .btn,
html[data-theme] button,
html[data-theme] .form-input,
html[data-theme] input,
html[data-theme] select,
html[data-theme] textarea {
  border-color: var(--theme-border);
}
html[data-theme] .btn-primary {
  background: var(--vert-finance) !important;
  color: #FFFFFF !important;
}
html[data-theme] .btn-outline,
html[data-theme] .btn-ghost {
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
}
html[data-theme] .btn-outline:hover,
html[data-theme] .btn-ghost:hover {
  background: var(--theme-hover) !important;
  border-color: var(--vert-finance) !important;
}
html[data-theme] .form-input,
html[data-theme] input,
html[data-theme] select,
html[data-theme] textarea {
  background: var(--theme-surface) !important;
  color: var(--theme-text) !important;
}
html[data-theme] .ticker-bar {
  background: linear-gradient(90deg, var(--theme-ticker-a) 0%, var(--theme-ticker-b) 50%, var(--theme-ticker-a) 100%) !important;
  border-color: var(--theme-border) !important;
}
html[data-theme] .ticker-bar::before {
  background: linear-gradient(90deg, rgba(var(--theme-ticker-fade-rgb),1) 20%, rgba(var(--theme-ticker-fade-rgb),0)) !important;
}
html[data-theme] .ticker-bar::after {
  background: linear-gradient(270deg, rgba(var(--theme-ticker-fade-rgb),1) 20%, rgba(var(--theme-ticker-fade-rgb),0)) !important;
}
html[data-theme] .ticker-maj-label,
html[data-theme] .ticker-maj-time,
html[data-theme] .ticker-symbol {
  color: #F8FAFC !important;
}
html[data-theme] .ticker-sym,
html[data-theme] .ticker-prix,
html[data-theme] .ticker-maj-time {
  color: #F8FAFC !important;
}
html[data-theme] .ticker-maj-label {
  color: #CBD5E1 !important;
}
html[data-theme] .ticker-item:hover {
  background: rgba(255,255,255,.10) !important;
}
html[data-theme] .home-action-card::after {
  content: none !important;
}
html[data-theme] .home-action-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--vert-finance) 10%, transparent), transparent), var(--theme-surface) !important;
  border-color: color-mix(in srgb, var(--vert-finance) 34%, var(--theme-border)) !important;
  color: var(--theme-text) !important;
  box-shadow: 0 12px 28px var(--theme-shadow) !important;
}
html[data-theme] .home-action-card:hover {
  transform: translateY(-2px) scale(1.012);
  background: rgba(31,184,114,0.16) !important;
  border-color: var(--vert-finance) !important;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--vert-finance) 18%, var(--theme-shadow)) !important;
}
html[data-theme] .home-action-card:hover .home-action-icon {
  background: rgba(31,184,114,.22) !important;
  border-color: var(--vert-finance) !important;
  color: var(--vert-finance) !important;
}
html[data-theme] .home-action-card:hover > .text-sm {
  color: var(--vert-finance) !important;
}
html[data-theme] .home-action-icon {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, var(--vert-finance), var(--vert-clair)) !important;
  border-color: transparent !important;
}
html[data-theme] .home-action-card > p,
html[data-theme] .home-news-row p,
html[data-theme] .home-event-row p {
  color: var(--theme-muted) !important;
}
html[data-theme] .home-news-card .card-body,
html[data-theme] .home-events-card .card-body {
  display: grid;
  gap: .75rem;
  padding: 1rem !important;
}
html[data-theme] .home-news-row,
html[data-theme] .home-event-row {
  border: 1px solid var(--theme-border) !important;
  border-radius: 8px;
  background: var(--theme-surface-2) !important;
}
html[data-theme] .home-news-row:hover,
html[data-theme] .home-event-row:hover {
  background: var(--theme-hover) !important;
  border-color: var(--vert-finance) !important;
  transform: translateY(-1px);
}
html[data-theme] .home-event-row > div {
  align-items: flex-start;
}
html[data-theme] .home-event-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--theme-text) !important;
  line-height: 1.35;
}
html[data-theme] .home-event-row:hover .home-event-title {
  color: var(--vert-finance) !important;
}
html[data-theme] .table-cours tr[data-href] {
  cursor: pointer;
}
html[data-theme] footer.footer {
  background: var(--theme-surface) !important;
  color: var(--theme-muted) !important;
  border-top-color: var(--theme-border) !important;
}

@supports not (color: color-mix(in srgb, red, blue)) {
  html[data-theme] .home-action-card {
    background: var(--theme-surface) !important;
  }
  html[data-theme] .home-action-card:hover {
    background: var(--theme-surface-2) !important;
    box-shadow: 0 16px 34px var(--theme-shadow) !important;
  }
}

/* Choix locaux : bandeau defilant clair (raccourci X) */
html[data-ticker-style="light-mint"] {
  --theme-ticker-a: #E8FFF7; --theme-ticker-b: #BFF4E3; --theme-ticker-fade-rgb: 232,255,247;
  --ticker-text: #043F34; --ticker-muted: #0F766E; --ticker-up: #047857; --ticker-down: #B4232E; --ticker-flat: #334155;
}
html[data-ticker-style="light-sky"] {
  --theme-ticker-a: #EFF8FF; --theme-ticker-b: #CDEBFF; --theme-ticker-fade-rgb: 239,248,255;
  --ticker-text: #0B3558; --ticker-muted: #0369A1; --ticker-up: #047857; --ticker-down: #B4232E; --ticker-flat: #334155;
}
html[data-ticker-style="light-slate"] {
  --theme-ticker-a: #F8FAFC; --theme-ticker-b: #E2E8F0; --theme-ticker-fade-rgb: 248,250,252;
  --ticker-text: #0F172A; --ticker-muted: #475569; --ticker-up: #047857; --ticker-down: #B4232E; --ticker-flat: #334155;
}
html[data-ticker-style="light-gold"] {
  --theme-ticker-a: #FFF8E6; --theme-ticker-b: #FDE9A8; --theme-ticker-fade-rgb: 255,248,230;
  --ticker-text: #3F3210; --ticker-muted: #7C5F12; --ticker-up: #047857; --ticker-down: #B4232E; --ticker-flat: #334155;
}
html[data-ticker-style="light-rose"] {
  --theme-ticker-a: #FFF1F3; --theme-ticker-b: #FFDCE3; --theme-ticker-fade-rgb: 255,241,243;
  --ticker-text: #4B1223; --ticker-muted: #9F1239; --ticker-up: #047857; --ticker-down: #B4232E; --ticker-flat: #334155;
}
html[data-ticker-style="light-lavender"] {
  --theme-ticker-a: #F5F0FF; --theme-ticker-b: #DDD6FE; --theme-ticker-fade-rgb: 245,240,255;
  --ticker-text: #2E1065; --ticker-muted: #5B21B6; --ticker-up: #047857; --ticker-down: #B4232E; --ticker-flat: #334155;
}
html[data-ticker-style="light-peach"] {
  --theme-ticker-a: #FFF3E8; --theme-ticker-b: #FFD9B8; --theme-ticker-fade-rgb: 255,243,232;
  --ticker-text: #4A230C; --ticker-muted: #B45309; --ticker-up: #047857; --ticker-down: #B4232E; --ticker-flat: #334155;
}
html[data-ticker-style="light-aqua"] {
  --theme-ticker-a: #E6FFFB; --theme-ticker-b: #B8F5EE; --theme-ticker-fade-rgb: 230,255,251;
  --ticker-text: #064E4B; --ticker-muted: #0F766E; --ticker-up: #047857; --ticker-down: #B4232E; --ticker-flat: #334155;
}
html[data-ticker-style="light-lime"] {
  --theme-ticker-a: #F7FEE7; --theme-ticker-b: #D9F99D; --theme-ticker-fade-rgb: 247,254,231;
  --ticker-text: #254117; --ticker-muted: #4D7C0F; --ticker-up: #047857; --ticker-down: #B4232E; --ticker-flat: #334155;
}
html[data-ticker-style="light-steel"] {
  --theme-ticker-a: #EEF4FF; --theme-ticker-b: #D7E5FF; --theme-ticker-fade-rgb: 238,244,255;
  --ticker-text: #102A43; --ticker-muted: #315A85; --ticker-up: #047857; --ticker-down: #B4232E; --ticker-flat: #334155;
}
html[data-ticker-style="light-ivory"] {
  --theme-ticker-a: #FFFFF4; --theme-ticker-b: #F6F0C8; --theme-ticker-fade-rgb: 255,255,244;
  --ticker-text: #38320B; --ticker-muted: #6B5D16; --ticker-up: #047857; --ticker-down: #B4232E; --ticker-flat: #334155;
}
html[data-ticker-style="light-sand"] {
  --theme-ticker-a: #FFF7ED; --theme-ticker-b: #FED7AA; --theme-ticker-fade-rgb: 255,247,237;
  --ticker-text: #431D05; --ticker-muted: #9A3412; --ticker-up: #047857; --ticker-down: #B4232E; --ticker-flat: #334155;
}
html[data-ticker-style="light-coral"] {
  --theme-ticker-a: #FFF0EC; --theme-ticker-b: #FFC9BD; --theme-ticker-fade-rgb: 255,240,236;
  --ticker-text: #521B12; --ticker-muted: #B23A2E; --ticker-up: #047857; --ticker-down: #9F1239; --ticker-flat: #334155;
}
html[data-ticker-style="light-cyan"] {
  --theme-ticker-a: #ECFEFF; --theme-ticker-b: #A5F3FC; --theme-ticker-fade-rgb: 236,254,255;
  --ticker-text: #083344; --ticker-muted: #0E7490; --ticker-up: #047857; --ticker-down: #B4232E; --ticker-flat: #334155;
}
html[data-ticker-style="light-ice"] {
  --theme-ticker-a: #F0FDFF; --theme-ticker-b: #DDF6FF; --theme-ticker-fade-rgb: 240,253,255;
  --ticker-text: #123047; --ticker-muted: #25637F; --ticker-up: #047857; --ticker-down: #B4232E; --ticker-flat: #334155;
}
html[data-ticker-style="light-lilac"] {
  --theme-ticker-a: #FAF5FF; --theme-ticker-b: #E9D5FF; --theme-ticker-fade-rgb: 250,245,255;
  --ticker-text: #3B0764; --ticker-muted: #7E22CE; --ticker-up: #047857; --ticker-down: #B4232E; --ticker-flat: #334155;
}
html[data-ticker-style="light-blue"] {
  --theme-ticker-a: #EFF6FF; --theme-ticker-b: #BFDBFE; --theme-ticker-fade-rgb: 239,246,255;
  --ticker-text: #0B2853; --ticker-muted: #1D4ED8; --ticker-up: #047857; --ticker-down: #B4232E; --ticker-flat: #334155;
}
html[data-ticker-style="light-plum"] {
  --theme-ticker-a: #FDF2F8; --theme-ticker-b: #FBCFE8; --theme-ticker-fade-rgb: 253,242,248;
  --ticker-text: #500724; --ticker-muted: #BE185D; --ticker-up: #047857; --ticker-down: #9F1239; --ticker-flat: #334155;
}
html[data-ticker-style="light-sage"] {
  --theme-ticker-a: #F0FDF4; --theme-ticker-b: #BBF7D0; --theme-ticker-fade-rgb: 240,253,244;
  --ticker-text: #0F3D22; --ticker-muted: #15803D; --ticker-up: #047857; --ticker-down: #B4232E; --ticker-flat: #334155;
}
html[data-ticker-style="light-olive"] {
  --theme-ticker-a: #F7F7E8; --theme-ticker-b: #D9D99B; --theme-ticker-fade-rgb: 247,247,232;
  --ticker-text: #2D3510; --ticker-muted: #5D661D; --ticker-up: #047857; --ticker-down: #B4232E; --ticker-flat: #334155;
}
html[data-ticker-style="light-cream"] {
  --theme-ticker-a: #FFFBEB; --theme-ticker-b: #FDE68A; --theme-ticker-fade-rgb: 255,251,235;
  --ticker-text: #3F2F0A; --ticker-muted: #92400E; --ticker-up: #047857; --ticker-down: #B4232E; --ticker-flat: #334155;
}
html[data-ticker-style="dark-navy"] {
  --theme-ticker-a: #071529; --theme-ticker-b: #12345A; --theme-ticker-fade-rgb: 7,21,41;
  --ticker-text: #F8FAFC; --ticker-muted: #CBD5E1; --ticker-up: #7CFFCB; --ticker-down: #FFB4B4; --ticker-flat: #E2E8F0;
}
html[data-ticker-style="dark-emerald"] {
  --theme-ticker-a: #05342F; --theme-ticker-b: #075E54; --theme-ticker-fade-rgb: 5,52,47;
  --ticker-text: #F0FDFA; --ticker-muted: #CCFBF1; --ticker-up: #A7F3D0; --ticker-down: #FDA4AF; --ticker-flat: #E2E8F0;
}
html[data-ticker-style="dark-teal"] {
  --theme-ticker-a: #082F49; --theme-ticker-b: #0F766E; --theme-ticker-fade-rgb: 8,47,73;
  --ticker-text: #F0FDFA; --ticker-muted: #BAE6FD; --ticker-up: #A7F3D0; --ticker-down: #FCA5A5; --ticker-flat: #E2E8F0;
}
html[data-ticker-style="dark-plum"] {
  --theme-ticker-a: #2B0D3A; --theme-ticker-b: #5B1A6E; --theme-ticker-fade-rgb: 43,13,58;
  --ticker-text: #FAF5FF; --ticker-muted: #E9D5FF; --ticker-up: #86EFAC; --ticker-down: #FCA5A5; --ticker-flat: #E5E7EB;
}
html[data-ticker-style="dark-ruby"] {
  --theme-ticker-a: #3A0712; --theme-ticker-b: #7F1D1D; --theme-ticker-fade-rgb: 58,7,18;
  --ticker-text: #FFF7ED; --ticker-muted: #FECACA; --ticker-up: #BBF7D0; --ticker-down: #FFD0D0; --ticker-flat: #F3F4F6;
}
html[data-ticker-style="dark-coffee"] {
  --theme-ticker-a: #23170E; --theme-ticker-b: #4A2E18; --theme-ticker-fade-rgb: 35,23,14;
  --ticker-text: #FFF7ED; --ticker-muted: #FED7AA; --ticker-up: #BBF7D0; --ticker-down: #FCA5A5; --ticker-flat: #F8FAFC;
}
html[data-ticker-style="dark-graphite"] {
  --theme-ticker-a: #111827; --theme-ticker-b: #334155; --theme-ticker-fade-rgb: 17,24,39;
  --ticker-text: #F9FAFB; --ticker-muted: #D1D5DB; --ticker-up: #86EFAC; --ticker-down: #FCA5A5; --ticker-flat: #E5E7EB;
}
html[data-ticker-style="dark-indigo"] {
  --theme-ticker-a: #111447; --theme-ticker-b: #3730A3; --theme-ticker-fade-rgb: 17,20,71;
  --ticker-text: #EEF2FF; --ticker-muted: #C7D2FE; --ticker-up: #86EFAC; --ticker-down: #FCA5A5; --ticker-flat: #E5E7EB;
}
html[data-ticker-style="dark-gold"] {
  --theme-ticker-a: #2F260A; --theme-ticker-b: #6B4E0F; --theme-ticker-fade-rgb: 47,38,10;
  --ticker-text: #FFFDF2; --ticker-muted: #FDE68A; --ticker-up: #BBF7D0; --ticker-down: #FCA5A5; --ticker-flat: #F8FAFC;
}
html[data-theme][data-ticker-style] .ticker-sym,
html[data-theme][data-ticker-style] .ticker-prix,
html[data-theme][data-ticker-style] .ticker-maj-time,
html[data-theme][data-ticker-style] .ticker-symbol {
  color: var(--ticker-text) !important;
}
html[data-theme][data-ticker-style] .ticker-maj-label {
  color: var(--ticker-muted) !important;
}
html[data-theme][data-ticker-style] .ticker-var.up {
  color: var(--ticker-up) !important;
  background: rgba(4,120,87,.13) !important;
}
html[data-theme][data-ticker-style] .ticker-var.down {
  color: var(--ticker-down) !important;
  background: rgba(180,35,46,.12) !important;
}
html[data-theme][data-ticker-style] .ticker-var.flat {
  color: var(--ticker-flat) !important;
  background: rgba(51,65,85,.10) !important;
}

/* Accueil : style Glass unique pour les six boutons principaux */
html[data-theme] .home-action-card::after {
  content: none !important;
}
html[data-theme] .home-action-card {
  --home-button-title: var(--theme-text);
  --home-button-copy: var(--theme-muted);
  min-height: 148px;
  border-radius: 8px;
  isolation: isolate;
  will-change: transform;
  background: color-mix(in srgb, var(--theme-surface) 72%, transparent) !important;
  border-color: rgba(255,255,255,.22) !important;
  box-shadow: 0 14px 32px rgba(15,23,42,.12) !important;
  backdrop-filter: blur(12px);
}
html[data-theme] .home-action-card:hover {
  transform: translateY(-2px) scale(1.006);
  border-color: color-mix(in srgb, var(--vert-finance) 48%, rgba(255,255,255,.24)) !important;
  background: color-mix(in srgb, var(--theme-surface-2) 78%, transparent) !important;
}
html[data-theme] .home-action-card > .text-sm {
  color: var(--home-button-title) !important;
  font-size: 1rem;
}
html[data-theme] .home-action-card > p {
  color: var(--home-button-copy) !important;
}
html[data-theme] .home-action-icon {
  border-radius: 8px !important;
  background: rgba(255,255,255,.10) !important;
  color: var(--vert-finance) !important;
  border-color: rgba(255,255,255,.22) !important;
}

@media (max-width: 640px) {
  html[data-theme] .home-action-card {
    min-height: 132px;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   VARIANTES D INTERFACE SOIGNÉES - 2026-04-29
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Trois axes indépendants pilotés via attributs sur <html> :
     • data-theme           - 3 thèmes globaux (m)
     • data-banner-style    - 3 styles de bandeau homepage (x)
     • data-btn-style       - 3 modèles des 6 boutons d'accueil (b)
   Aucune classe existante n'est supprimée. Tous les overrides sont
   additifs, scopés par sélecteurs d'attribut pour ne s'appliquer que
   quand la variante correspondante est active.
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* ── Indicateur visuel des variantes actives (bas-droite) ─────────── */
.ui-variant-badge {
  position: fixed; right: 16px; bottom: 16px; z-index: 9000;
  display: flex; flex-direction: column; gap: 4px;
  padding: 9px 12px; border-radius: 10px;
  background: rgba(15,23,42,.92);
  border: 1px solid rgba(148,163,184,.20);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  font-family: var(--font-corps);
  font-size: 11px; font-weight: 500;
  color: #E2E8F0; letter-spacing: .01em;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  max-width: 320px; backdrop-filter: blur(6px);
}
.ui-variant-badge.show { opacity: 1; transform: translateY(0); }
.ui-variant-badge .uvb-row { white-space: nowrap; }
.ui-variant-badge kbd {
  display: inline-block; min-width: 18px; padding: 1px 5px;
  border-radius: 4px; background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  font-family: var(--font-chiffres); font-size: 10px;
  margin-right: 6px; color: #FFF;
}
.ui-variant-badge b { color: #34D399; font-weight: 600; }
html.theme-light .ui-variant-badge {
  background: rgba(255,255,255,.96);
  border-color: rgba(15,23,42,.12);
  color: #0F172A;
  box-shadow: 0 10px 28px rgba(15,23,42,.12);
}
html.theme-light .ui-variant-badge kbd {
  background: rgba(15,23,42,.06);
  border-color: rgba(15,23,42,.12);
  color: #0F172A;
}
html.theme-light .ui-variant-badge b { color: var(--bx-accent, #0070C9); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   BANDEAU HOMEPAGE - 3 variantes (data-banner-style)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Style 1 - Sobre (défaut, look actuel mais affiné) */
html[data-banner-style="1"] .home-banner {
  padding: 4px 0;
}
html[data-banner-style="1"] .home-banner-title {
  letter-spacing: -0.01em;
}

/* Style 2 - Trading desk : bandeau dark stripe avec accent gauche, mono */
html[data-banner-style="2"] .home-banner {
  padding: 18px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(10,22,40,.96) 0%, rgba(30,45,61,.78) 100%);
  border: 1px solid rgba(31,184,114,.22);
  box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.04);
  position: relative; overflow: hidden;
}
html[data-banner-style="2"] .home-banner::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--vert-finance), var(--or-discret));
  box-shadow: 0 0 18px rgba(31,184,114,.55);
}
html[data-banner-style="2"] .home-banner-title {
  font-family: var(--font-chiffres);
  letter-spacing: .02em; text-transform: uppercase; font-size: 1.55rem;
}
html[data-banner-style="2"] .home-banner-title .text-finance {
  text-shadow: 0 0 12px rgba(0,212,161,.45);
}
html[data-banner-style="2"] .home-banner-sub {
  position: relative; padding-left: 14px;
}
html[data-banner-style="2"] .home-banner-sub::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 8px; height: 2px; background: var(--vert-finance);
  border-radius: 2px; transform: translateY(-50%);
}
html.theme-light[data-banner-style="2"] .home-banner {
  background: linear-gradient(135deg, #FFFFFF 0%, #F1F5F9 100%);
  border-color: rgba(4,120,87,.22);
  box-shadow: 0 8px 22px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,1);
}

/* Style 3 - KPI soigné : titre + sous-titre + statut + 3 KPI compacts */
html[data-banner-style="3"] .home-banner {
  padding: 20px 24px; border-radius: 16px;
  background:
    radial-gradient(1200px 240px at 0% 0%, rgba(31,184,114,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.10)),
    rgba(12,24,44,.94);
  border: 1px solid rgba(148,163,184,.18);
  box-shadow: 0 14px 38px rgba(0,0,0,.28);
}
html[data-banner-style="3"] .home-banner-title {
  font-size: 1.85rem; letter-spacing: -0.02em;
}
html[data-banner-style="3"] .home-banner-sub {
  font-size: .82rem;
}
html[data-banner-style="3"] .home-banner-badge {
  align-self: center;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(31,184,114,.10); border: 1px solid rgba(31,184,114,.32);
}
html.theme-light[data-banner-style="3"] .home-banner {
  background:
    radial-gradient(1200px 240px at 0% 0%, rgba(4,120,87,.08), transparent 60%),
    linear-gradient(180deg, #FFFFFF, #F8FAFC);
  border-color: rgba(15,23,42,.10);
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   BOUTONS HOME - 3 modèles (data-btn-style)
   LIVE garde toujours un traitement plus fort (.home-action-live)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Modèle 1 - Card sobre (défaut, look actuel) - pas d'override */

/* Modèle 2 - Verre soigné : verre dépoli + glow sur hover, plus aérien */
html[data-btn-style="2"] .home-action-card {
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02)) !important;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid rgba(255,255,255,.16) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.10);
}
html[data-btn-style="2"] .home-action-card::after {
  background: linear-gradient(180deg, rgba(0,212,161,.85), rgba(99,102,241,.45));
  opacity: .85;
}
html[data-btn-style="2"] .home-action-card:hover {
  border-color: rgba(0,212,161,.55) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.30), 0 0 0 1px rgba(0,212,161,.25), inset 0 1px 0 rgba(255,255,255,.14);
  transform: translateY(-3px);
}
html[data-btn-style="2"] .home-action-icon {
  background: rgba(31,184,114,.20);
  border-color: rgba(0,212,161,.35);
  box-shadow: 0 0 0 1px rgba(0,212,161,.15), inset 0 1px 0 rgba(255,255,255,.18);
}
html[data-btn-style="2"] .home-action-live {
  background: linear-gradient(180deg, rgba(0,212,161,.18), rgba(31,184,114,.04)) !important;
  border-color: rgba(0,212,161,.50) !important;
  box-shadow: 0 14px 36px rgba(31,184,114,.22), inset 0 1px 0 rgba(255,255,255,.14);
}
html[data-btn-style="2"] .home-action-live::after { opacity: 1; }
html.theme-light[data-btn-style="2"] .home-action-card {
  background: rgba(255,255,255,.78) !important;
  border-color: rgba(15,23,42,.10) !important;
  backdrop-filter: blur(10px) saturate(110%);
  -webkit-backdrop-filter: blur(10px) saturate(110%);
  box-shadow: 0 10px 26px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.92);
}
html.theme-light[data-btn-style="2"] .home-action-card:hover {
  background: rgba(255,255,255,.95) !important;
  border-color: rgba(4,120,87,.45) !important;
  box-shadow: 0 16px 36px rgba(15,23,42,.12), 0 0 0 1px rgba(4,120,87,.20);
}

/* Modèle 3 - Trading terminal : mono, brackets, sober, pas de gradient */
html[data-btn-style="3"] .home-action-card {
  background: rgba(8,15,29,.88) !important;
  border: 1px solid rgba(148,163,184,.18) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font-family: var(--font-chiffres);
}
html[data-btn-style="3"] .home-action-card::after {
  background: var(--vert-finance);
  width: 2px; opacity: 1;
}
html[data-btn-style="3"] .home-action-card > .text-sm {
  letter-spacing: .04em; text-transform: uppercase; font-size: .82rem;
}
html[data-btn-style="3"] .home-action-card > .text-sm::before { content: "[ "; color: var(--vert-finance); }
html[data-btn-style="3"] .home-action-card > .text-sm::after  { content: " ]"; color: var(--vert-finance); }
html[data-btn-style="3"] .home-action-card > p {
  font-family: var(--font-corps);
  font-size: .72rem; color: #94A3B8 !important;
  letter-spacing: 0;
}
html[data-btn-style="3"] .home-action-icon {
  border-radius: 4px; width: 2rem; height: 2rem;
  background: rgba(31,184,114,.08);
  border-color: rgba(31,184,114,.30);
  color: var(--vert-clair);
}
html[data-btn-style="3"] .home-action-card:hover {
  background: rgba(12,22,42,.96) !important;
  border-color: var(--vert-finance) !important;
  transform: none;
  box-shadow: 0 0 0 1px rgba(31,184,114,.30), 0 6px 16px rgba(0,0,0,.25) !important;
}
html[data-btn-style="3"] .home-action-live {
  background: linear-gradient(180deg, rgba(31,184,114,.18), rgba(31,184,114,.04)) !important;
  border-color: var(--vert-finance) !important;
}
html[data-btn-style="3"] .home-action-live::after { width: 3px; box-shadow: 0 0 14px rgba(31,184,114,.55); }
html.theme-light[data-btn-style="3"] .home-action-card {
  background: #FFFFFF !important;
  border-color: rgba(15,23,42,.12) !important;
}
html.theme-light[data-btn-style="3"] .home-action-card > .text-sm::before,
html.theme-light[data-btn-style="3"] .home-action-card > .text-sm::after { color: #047857; }
html.theme-light[data-btn-style="3"] .home-action-card > p { color: #475569 !important; }
html.theme-light[data-btn-style="3"] .home-action-icon {
  background: #ECFDF5; border-color: rgba(4,120,87,.22); color: #047857;
}
html.theme-light[data-btn-style="3"] .home-action-card:hover {
  background: #F0FDF4 !important; border-color: #047857 !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   THÈMES - cycle public limite a Clair 1, Dark 1 et Dark 2.
   Les styles Light 2 / Light 3 ci-dessous restent des reliquats non exposes.
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Dark 1 - Bloomberg-like : graphite plus dense, accent cyan-mint */
html[data-theme="dark1"] {
  --bleu-marine:  #07101F;
  --bleu-ardoise: #14202F;
  --surface-card: #0E1626;
  --bordure:      #1B2738;
}
html[data-theme="dark1"] body {
  background: radial-gradient(1100px 600px at 100% 0%, rgba(0,212,161,.05), transparent 60%) #07101F;
}
html[data-theme="dark1"] .home-action-card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.014)), #0E1626 !important;
  border-color: rgba(148,163,184,.18) !important;
}
html[data-theme="dark1"] .home-action-card::after {
  background: linear-gradient(180deg, #3FD08C, #67E8F9);
}
html[data-theme="dark1"] .home-action-icon {
  background: rgba(103,232,249,.10);
  border-color: rgba(103,232,249,.30);
  color: #67E8F9;
}
html[data-theme="dark1"] .home-action-live {
  border-color: rgba(0,212,161,.45) !important;
  background: linear-gradient(180deg, rgba(0,212,161,.14), rgba(255,255,255,.018)), #0E1626 !important;
}
html[data-theme="dark1"] .navbar {
  background: linear-gradient(135deg, #050B17 0%, #0B1422 100%);
  border-bottom-color: rgba(103,232,249,.18);
}

/* Dark 2 - inspiration maintenance : bleu nuit, halos discrets, carte institutionnelle */
html[data-theme="dark2-maintenance"] body {
  background:
    radial-gradient(circle at 18% 18%, rgba(0,216,164,.115), transparent 31%),
    radial-gradient(circle at 84% 78%, rgba(55,111,190,.115), transparent 34%),
    linear-gradient(180deg, #081321 0%, #07111F 48%, #091522 100%) !important;
  background-attachment: fixed;
  color: #F4F7FB;
}
html[data-theme="dark2-maintenance"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(0,216,164,.035), transparent 38%),
    linear-gradient(300deg, rgba(79,142,247,.045), transparent 42%);
}
html[data-theme="dark2-maintenance"] .navbar {
  background: linear-gradient(135deg, rgba(7,17,31,.94), rgba(12,29,48,.90)) !important;
  border-bottom-color: rgba(0,216,164,.18) !important;
  box-shadow: 0 16px 46px rgba(0,0,0,.22);
}
html[data-theme="dark2-maintenance"] .navbar-brand .brand-main,
html[data-theme="dark2-maintenance"] .navbar-brand .accent {
  color: #00D8A4 !important;
}
html[data-theme="dark2-maintenance"] .navbar-brand .brand-tn,
html[data-theme="dark2-maintenance"] .navbar-brand .domain {
  color: #F4F7FB !important;
}
html[data-theme="dark2-maintenance"] .card,
html[data-theme="dark2-maintenance"] .sidebar-marche .card,
html[data-theme="dark2-maintenance"] .home-action-card,
html[data-theme="dark2-maintenance"] .portf-modal-panel,
html[data-theme="dark2-maintenance"] .global-search-box,
html[data-theme="dark2-maintenance"] .global-search-results {
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)), rgba(12,20,35,.78) !important;
  border-color: rgba(80,160,180,.18) !important;
  box-shadow: 0 20px 56px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.035) !important;
  backdrop-filter: blur(14px);
}
html[data-theme="dark2-maintenance"] .card:hover,
html[data-theme="dark2-maintenance"] .home-action-card:hover {
  border-color: rgba(0,216,164,.28) !important;
  box-shadow: 0 24px 62px rgba(0,0,0,.30), 0 0 0 1px rgba(0,216,164,.045) !important;
}
html[data-theme="dark2-maintenance"] .home-action-card:hover {
  background: rgba(0,216,164,0.16) !important;
  border-color: #00d8a4 !important;
  box-shadow: 0 24px 62px rgba(0,0,0,.30), 0 0 0 1px rgba(0,216,164,.16) inset !important;
}
html[data-theme="dark2-maintenance"] .card-header,
html[data-theme="dark2-maintenance"] thead th,
html[data-theme="dark2-maintenance"] .table-cours thead th {
  background: rgba(16,29,48,.86) !important;
  color: #A9BDD8 !important;
  border-color: rgba(80,160,180,.18) !important;
}
html[data-theme="dark2-maintenance"] tbody tr,
html[data-theme="dark2-maintenance"] .table-cours tbody tr {
  border-color: rgba(80,160,180,.12) !important;
}
html[data-theme="dark2-maintenance"] tbody tr:hover,
html[data-theme="dark2-maintenance"] .table-cours tbody tr:hover,
html[data-theme="dark2-maintenance"] .home-news-row:hover,
html[data-theme="dark2-maintenance"] .home-event-row:hover {
  background: rgba(0,216,164,.075) !important;
}
html[data-theme="dark2-maintenance"] .form-input,
html[data-theme="dark2-maintenance"] .form-select,
html[data-theme="dark2-maintenance"] input,
html[data-theme="dark2-maintenance"] select,
html[data-theme="dark2-maintenance"] textarea {
  background: rgba(7,17,31,.74) !important;
  border-color: rgba(80,160,180,.24) !important;
  color: #F4F7FB !important;
}
html[data-theme="dark2-maintenance"] .form-input::placeholder,
html[data-theme="dark2-maintenance"] input::placeholder,
html[data-theme="dark2-maintenance"] textarea::placeholder {
  color: #7F94B3 !important;
}
html[data-theme="dark2-maintenance"] .form-input:focus,
html[data-theme="dark2-maintenance"] .form-select:focus,
html[data-theme="dark2-maintenance"] input:focus,
html[data-theme="dark2-maintenance"] select:focus,
html[data-theme="dark2-maintenance"] textarea:focus {
  border-color: rgba(0,216,164,.62) !important;
  box-shadow: 0 0 0 3px rgba(0,216,164,.12) !important;
  outline: none;
}
html[data-theme="dark2-maintenance"] .form-label,
html[data-theme="dark2-maintenance"] .text-gray-400,
html[data-theme="dark2-maintenance"] .text-gray-500,
html[data-theme="dark2-maintenance"] .text-slate-400,
html[data-theme="dark2-maintenance"] .text-slate-500 {
  color: #A9BDD8 !important;
}
html[data-theme="dark2-maintenance"] .text-gray-600,
html[data-theme="dark2-maintenance"] .text-white\/50,
html[data-theme="dark2-maintenance"] .text-white\/60,
html[data-theme="dark2-maintenance"] .text-white\/70 {
  color: #7F94B3 !important;
}
html[data-theme="dark2-maintenance"] .btn-primary,
html[data-theme="dark2-maintenance"] .bg-finance {
  background: #00D8A4 !important;
  border-color: #00D8A4 !important;
  color: #04111C !important;
}
html[data-theme="dark2-maintenance"] .btn-primary:hover,
html[data-theme="dark2-maintenance"] .bg-finance:hover {
  background: #20E7B7 !important;
  border-color: #20E7B7 !important;
  color: #04111C !important;
}
html[data-theme="dark2-maintenance"] .btn-outline,
html[data-theme="dark2-maintenance"] .btn-ghost,
html[data-theme="dark2-maintenance"] #theme-toggle {
  background: rgba(7,17,31,.34) !important;
  border-color: rgba(80,160,180,.24) !important;
  color: #DCE6F5 !important;
}
html[data-theme="dark2-maintenance"] .btn-outline:hover,
html[data-theme="dark2-maintenance"] .btn-ghost:hover,
html[data-theme="dark2-maintenance"] #theme-toggle:hover {
  background: rgba(0,216,164,.10) !important;
  border-color: rgba(0,216,164,.42) !important;
  color: #F4F7FB !important;
}
html[data-theme="dark2-maintenance"] .nav-link {
  color: #A9BDD8 !important;
}
html[data-theme="dark2-maintenance"] .nav-link:hover,
html[data-theme="dark2-maintenance"] .nav-link.active,
html[data-theme="dark2-maintenance"] .societe-link:hover {
  color: #F4F7FB !important;
  background: rgba(0,216,164,.10) !important;
}
html[data-theme="dark2-maintenance"] .societe-nom,
html[data-theme="dark2-maintenance"] .text-finance {
  color: #00D8A4 !important;
}
html[data-theme="dark2-maintenance"] .societe-sym {
  color: #A9BDD8 !important;
}
html[data-theme="dark2-maintenance"] .ticker-bar {
  background: linear-gradient(90deg, rgba(7,17,31,.98), rgba(12,37,64,.96), rgba(7,17,31,.98)) !important;
  border-color: rgba(0,216,164,.16) !important;
}
html[data-theme="dark2-maintenance"] .badge,
html[data-theme="dark2-maintenance"] .nav-live-badge.open,
html[data-theme="dark2-maintenance"] .ticker-live-badge.open,
html[data-theme="dark2-maintenance"] [class*="bg-green-900"],
html[data-theme="dark2-maintenance"] [class*="bg-finance\/10"],
html[data-theme="dark2-maintenance"] [class*="bg-finance\/20"] {
  background: rgba(0,216,164,.105) !important;
  border-color: rgba(0,216,164,.28) !important;
  color: #00D8A4 !important;
}
html[data-theme="dark2-maintenance"] [class*="bg-red-900"] {
  background: rgba(240,93,99,.11) !important;
  border-color: rgba(240,93,99,.28) !important;
}
html[data-theme="dark2-maintenance"] [class*="text-red-400"],
html[data-theme="dark2-maintenance"] .text-corail {
  color: #F06B70 !important;
}
html[data-theme="dark2-maintenance"] .dropdown-menu,
html[data-theme="dark2-maintenance"] .bg-ardoise.border-gray-700,
html[data-theme="dark2-maintenance"] #menu-mobile {
  background: rgba(12,20,35,.94) !important;
  border-color: rgba(80,160,180,.18) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,.30);
}

/* Light 2 - Fintech moderne : blanc plus chaud + accent violet/mint */
/* Accueil : les raccourcis LIVE / Portefeuille / Calendrier suivent l'effet En hausse. */
html[data-theme] .home-action-card:hover,
html[data-btn-style] .home-action-card:hover {
  background: rgba(31,184,114,0.16) !important;
  border-color: var(--vert-finance) !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.20), 0 0 0 1px rgba(31,184,114,.16) inset !important;
}
html[data-theme] .home-action-card:hover .home-action-icon,
html[data-btn-style] .home-action-card:hover .home-action-icon {
  background: rgba(31,184,114,.22) !important;
  border-color: var(--vert-finance) !important;
  color: var(--vert-finance) !important;
}
html[data-theme] .home-action-card:hover > .text-sm,
html[data-btn-style] .home-action-card:hover > .text-sm {
  color: var(--vert-finance) !important;
}

html[data-theme="light2"] {
  --bleu-marine:  #F4F6FB;
  --bleu-ardoise: #E2E8F0;
  --surface-card: #FFFFFF;
  --bordure:      #DDE5ED;
}
html[data-theme="light2"] body {
  background: radial-gradient(1200px 500px at 0% 0%, rgba(99,102,241,.05), transparent 55%) #F4F6FB;
  color: #0F172A;
}
html[data-theme="light2"] h1, html[data-theme="light2"] h2,
html[data-theme="light2"] h3, html[data-theme="light2"] h4 { color: #0F172A; }
html[data-theme="light2"] .home-action-card {
  background: #FFFFFF !important;
  border-color: #DBE3EE !important;
  box-shadow: 0 8px 22px rgba(15,23,42,.06);
}
html[data-theme="light2"] .home-action-card::after {
  background: linear-gradient(180deg, #6366F1, #1FB872);
}
html[data-theme="light2"] .home-action-icon {
  background: #EEF2FF; border-color: rgba(99,102,241,.20); color: #4F46E5;
}
html[data-theme="light2"] .home-action-live {
  background: linear-gradient(180deg, #ECFDF5, #FFFFFF) !important;
  border-color: rgba(4,120,87,.30) !important;
}
html[data-theme="light2"] .home-action-live .home-action-icon {
  background: #ECFDF5; border-color: rgba(4,120,87,.22); color: #047857;
}
html[data-theme="light2"] .home-action-card > .text-sm,
html[data-theme="light2"] .home-banner-title { color: #0F172A !important; }
html[data-theme="light2"] .home-action-card > p { color: #64748B !important; }

/* Light 3 - Data/Sand : blanc cassé chaud, accent ambre */
html[data-theme="light3"] {
  --bleu-marine:  #FBF8F2;
  --bleu-ardoise: #F0EAE0;
  --surface-card: #FFFEFB;
  --bordure:      #E6DFD2;
}
html[data-theme="light3"] body {
  background: #FBF8F2; color: #1F2937;
}
html[data-theme="light3"] h1, html[data-theme="light3"] h2,
html[data-theme="light3"] h3, html[data-theme="light3"] h4 { color: #111827; }
html[data-theme="light3"] .home-action-card {
  background: #FFFEFB !important;
  border-color: #E6DFD2 !important;
  box-shadow: 0 6px 18px rgba(120,90,40,.06);
}
html[data-theme="light3"] .home-action-card::after {
  background: linear-gradient(180deg, #C9A84C, #047857);
}
html[data-theme="light3"] .home-action-icon {
  background: #FAF3DD; border-color: rgba(201,168,76,.32); color: #92500A;
}
html[data-theme="light3"] .home-action-live {
  background: linear-gradient(180deg, #FAF3DD, #FFFEFB) !important;
  border-color: rgba(201,168,76,.45) !important;
}
html[data-theme="light3"] .home-action-card > .text-sm,
html[data-theme="light3"] .home-banner-title { color: #111827 !important; }
html[data-theme="light3"] .home-action-card > p { color: #57534E !important; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TICKER - 5 mises en page (data-ticker-layout)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Indépendant des 29 palettes (data-ticker-style, touche t).
   Cible la STRUCTURE : densité, séparateurs, hauteur, présentation
   des items et variation. Cyclé par la touche y.
   Le badge LIVE/Marché fermé conserve son comportement (bascule
   ouvert/fermé indépendante du layout).
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Layout 1 - Sobre (défaut, look actuel). Pas d'override. */

/* Layout 2 - Wall Street : items en pills compactes, séparateurs accentués, hauteur 44px. */
html[data-ticker-layout="2"] .ticker-bar { height: 44px; }
html[data-ticker-layout="2"] .ticker-item {
  padding: 0 14px;
  margin: 6px 0;
  gap: 8px;
  border-radius: 6px;
}
html[data-ticker-layout="2"] .ticker-item + .ticker-item {
  border-left: 1px solid rgba(255,255,255,.12);
}
html[data-ticker-layout="2"] .ticker-sym {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.06);
  font-size: .80rem;
  letter-spacing: .04em;
}
html[data-ticker-layout="2"] .ticker-prix {
  font-weight: 600; font-size: .82rem;
}
html[data-ticker-layout="2"] .ticker-var {
  border-radius: 999px; padding: 2px 9px; font-size: .68rem;
}
html.theme-light[data-ticker-layout="2"] .ticker-item + .ticker-item {
  border-left-color: rgba(15,23,42,.10);
}
html.theme-light[data-ticker-layout="2"] .ticker-sym {
  background: rgba(15,23,42,.05);
}

/* Layout 3 - Trading desk mono compact : densité maximale, pas de bordure entre items, séparateurs "·" entre éléments. */
html[data-ticker-layout="3"] .ticker-bar { height: 36px; }
html[data-ticker-layout="3"] .ticker-item {
  padding: 0 12px;
  gap: 6px;
  font-family: var(--font-chiffres, 'Roboto Mono', monospace);
  font-size: .76rem;
}
html[data-ticker-layout="3"] .ticker-item + .ticker-item { border-left: none; }
html[data-ticker-layout="3"] .ticker-sym {
  font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
}
html[data-ticker-layout="3"] .ticker-sym::after {
  content: " \00B7"; color: rgba(148,163,184,.55); font-weight: 400;
}
html[data-ticker-layout="3"] .ticker-prix { font-weight: 500; }
html[data-ticker-layout="3"] .ticker-prix::after {
  content: " \00B7"; color: rgba(148,163,184,.45); margin-left: 3px; font-weight: 400;
}
html[data-ticker-layout="3"] .ticker-var {
  background: transparent !important;
  padding: 0; border-radius: 0;
  font-weight: 700; font-size: .74rem;
}
html.theme-light[data-ticker-layout="3"] .ticker-sym::after,
html.theme-light[data-ticker-layout="3"] .ticker-prix::after {
  color: rgba(15,23,42,.32);
}

/* Layout 4 - Halo lumineux : items aérés, prix en relief avec subtle text-shadow, badge variation minimaliste avec léger glow sur fortes variations. */
html[data-ticker-layout="4"] .ticker-bar {
  height: 46px;
  background: linear-gradient(90deg, rgba(10,22,40,.96) 0%, rgba(20,35,55,.92) 50%, rgba(10,22,40,.96) 100%);
  border-top-color: rgba(0,212,161,.22);
  border-bottom-color: rgba(0,212,161,.14);
}
html[data-ticker-layout="4"] .ticker-item {
  padding: 0 22px;
  gap: 12px;
  font-size: .85rem;
}
html[data-ticker-layout="4"] .ticker-item + .ticker-item { border-left: 1px solid rgba(255,255,255,.04); }
html[data-ticker-layout="4"] .ticker-sym {
  font-size: .82rem;
  letter-spacing: .04em;
}
html[data-ticker-layout="4"] .ticker-prix {
  font-weight: 600;
  text-shadow: 0 0 12px rgba(0,212,161,.10);
}
html[data-ticker-layout="4"] .ticker-var {
  background: transparent;
  padding: 1px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .68rem;
}
html[data-ticker-layout="4"] .ticker-var.up   { color: #00E5A8; box-shadow: 0 0 14px rgba(0,229,168,.18) inset; }
html[data-ticker-layout="4"] .ticker-var.down { color: #FF6B6B; box-shadow: 0 0 14px rgba(255,107,107,.18) inset; }
html[data-ticker-layout="4"] .ticker-var.flat { color: #94A3B8; box-shadow: none; }
html.theme-light[data-ticker-layout="4"] .ticker-bar {
  background: linear-gradient(90deg, #FFFFFF 0%, #F8FAFC 50%, #FFFFFF 100%);
  border-color: rgba(4,120,87,.18);
}
html.theme-light[data-ticker-layout="4"] .ticker-prix {
  text-shadow: 0 0 12px rgba(4,120,87,.10);
}

/* Layout 5 - Newsroom : style "broadcast TV" condense.
   Affiche uniquement TICKER + variation % (en gras). Le cours est masque. */
html[data-ticker-layout="5"] .ticker-bar {
  height: 48px;
  border-top-width: 2px;
  border-bottom-width: 2px;
}
html[data-ticker-layout="5"] .ticker-item {
  padding: 0 18px;
  gap: 11px;
  font-size: .88rem;
  position: relative;
}
html[data-ticker-layout="5"] .ticker-item::before {
  content: "";
  position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 2px; border-radius: 2px;
  background: rgba(148,163,184,.25);
  transition: background .18s ease;
}
html[data-ticker-layout="5"] .ticker-item:has(.ticker-var.up)::before   { background: var(--vert-finance); box-shadow: 0 0 10px rgba(31,184,114,.35); }
html[data-ticker-layout="5"] .ticker-item:has(.ticker-var.down)::before { background: var(--rouge-corail); box-shadow: 0 0 10px rgba(232,64,64,.35); }
html[data-ticker-layout="5"] .ticker-item + .ticker-item { border-left: none; }
html[data-ticker-layout="5"] .ticker-sym {
  font-weight: 800; font-size: .96rem; letter-spacing: .03em;
}
/* Newsroom : on cache le prix (cours), seuls TICKER + variation % sont affiches. */
html[data-ticker-layout="5"] .ticker-prix { display: none; }
html[data-ticker-layout="5"] .ticker-var {
  background: transparent !important;
  padding: 0; font-size: .92rem; font-weight: 800;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TRANSITIONS GLOBALES SOIGNÉES
   Évite les changements brutaux quand on bascule de thème/style.
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
html[data-theme] body,
html[data-theme] .home-action-card,
html[data-theme] .home-banner,
html[data-theme] .navbar,
html[data-theme] .card,
html[data-ticker-layout] .ticker-bar,
html[data-ticker-layout] .ticker-item {
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease;
}

/* Lot 6.2 - graphiques societe et logos societes */
.company-chart-container {
  min-height: 360px;
}
.company-chart-tooltip {
  position: absolute;
  z-index: 20;
  min-width: 210px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(10, 22, 40, .96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  color: #cbd5e1;
  pointer-events: none;
  font-size: 12px;
}
.company-chart-tooltip div:not(:first-child) {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  line-height: 1.75;
}
.company-chart-tooltip strong {
  color: #fff;
  font-family: var(--font-chiffres, "Roboto Mono", monospace);
}
html.theme-light .company-chart-tooltip {
  background: rgba(255, 255, 255, .98);
  border-color: #dbe3ef;
  color: #475569;
}
html.theme-light .company-chart-tooltip strong,
html.theme-light .company-chart-tooltip .text-white {
  color: #0f172a;
}
.company-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, .24);
  background: rgba(15, 23, 42, .72);
  color: var(--vert-finance);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  background: #fff;
}
.company-logo-sm { width: 24px; height: 24px; font-size: 9px; }
.company-logo-md { width: 36px; height: 36px; font-size: 12px; }
.company-logo-lg { width: 54px; height: 54px; font-size: 16px; }
.societe-link-logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
html.theme-light .company-logo {
  background: #f8fafc;
  border-color: #dbe3ef;
}

/* Accueil - indices boursiers */
.home-market-stat-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}
.home-market-stat-label svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-index-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem;
  padding: .2rem;
  border-radius: .65rem;
  background: rgba(15, 23, 42, .45);
  border: 1px solid rgba(148, 163, 184, .16);
  margin-bottom: .8rem;
}
.home-index-tab {
  border: 0;
  border-radius: .5rem;
  padding: .45rem .55rem;
  background: transparent;
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.home-index-tab.active {
  background: rgba(31,184,114, .15);
  color: var(--vert-finance);
  box-shadow: inset 0 0 0 1px rgba(31,184,114, .22);
}
.home-index-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .7rem;
}
.home-index-last {
  color: #f8fafc;
  font-size: 1.32rem;
  font-weight: 900;
  line-height: 1.15;
}
.home-index-var {
  font-weight: 900;
  line-height: 1.2;
}
.home-index-chart-wrap {
  position: relative;
  height: 138px;
}
.home-index-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: .76rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, .08), rgba(15, 23, 42, .36));
  border-radius: .5rem;
}
html.theme-light .home-index-tabs {
  background: #f1f5f9;
  border-color: #e2e8f0;
}
html.theme-light .home-index-last {
  color: #0f172a;
}

/* Les liens de valeur gardent le clic sans effet vert localise sur le nom. */
table .societe-link:hover,
.table-cours .societe-link:hover,
.data-table .societe-link:hover {
  color: inherit !important;
  background: transparent !important;
}
table .societe-link:hover .societe-nom,
.table-cours .societe-link:hover .societe-nom,
.data-table .societe-link:hover .societe-nom {
  color: inherit !important;
  text-decoration: none !important;
}
a.societe-nom:hover,
.societe-nom:hover,
.col-valeur a:hover,
.col-valeur a:hover .societe-nom,
.societe-link-logo a:hover,
.societe-link-logo a:hover .societe-nom {
  color: inherit !important;
  text-decoration: none !important;
}
tr:hover .societe-nom {
  text-decoration: none !important;
}
table .societe-link .societe-nom,
table .societe-link:hover .societe-nom,
.table-cours .societe-link .societe-nom,
.table-cours .societe-link:hover .societe-nom,
.data-table .societe-link .societe-nom,
.data-table .societe-link:hover .societe-nom,
.col-valeur .societe-nom,
.col-valeur a:hover .societe-nom {
  color: var(--vert-finance) !important;
}
.top-baisses .societe-link .societe-nom,
.top-baisses .societe-link:hover .societe-nom,
.top-baisses .societe-nom {
  color: var(--rouge-corail) !important;
}

/* Fiche societe - onglets mis en avant et alignes a droite. */
.societe-quick-tabs,
.societe-detail-tabs {
  justify-content: flex-end;
}
.societe-detail-tabs {
  gap: .45rem;
  border-bottom: 0;
  flex-wrap: wrap;
}
.societe-detail-tabs .tab-btn {
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: .65rem;
  background: rgba(15, 23, 42, .42);
  padding: .55rem .78rem;
  margin-bottom: 0;
  color: #cbd5e1;
}
.societe-detail-tabs .tab-btn.active,
.societe-detail-tabs .tab-btn:hover {
  color: var(--vert-finance);
  border-color: rgba(31,184,114, .38);
  background: rgba(31,184,114, .12);
}
html.theme-light .societe-detail-tabs .tab-btn {
  background: #f8fafc;
  border-color: #dbe3ef;
  color: #475569;
}
html.theme-light .societe-detail-tabs .tab-btn.active,
html.theme-light .societe-detail-tabs .tab-btn:hover {
  color: #047857;
  background: #ecfdf5;
  border-color: rgba(4, 120, 87, .24);
}

/* Recherche globale mise en avant sous le ticker, hors page live. */
.global-search-feature {
  position: relative;
  z-index: 70;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
  background:
    radial-gradient(circle at 18% 0%, rgba(31,184,114, .16), transparent 34%),
    linear-gradient(180deg, rgba(15, 32, 64, .98), rgba(10, 22, 40, .96));
}
.global-search-feature-inner {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: .85rem 1rem 1rem;
  display: grid;
  grid-template-columns: minmax(13rem, 18rem) minmax(18rem, 42rem);
  align-items: center;
  justify-content: center;
  gap: .85rem 1.2rem;
}
.global-search-feature-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}
.global-search-feature-title {
  color: #f8fafc;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.global-search-feature-status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .26rem .58rem;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, .12);
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}
.global-search-feature-status.open {
  color: #86efac;
  border-color: rgba(52, 211, 153, .42);
  background: rgba(16, 185, 129, .16);
}
.global-search-feature-dot {
  width: .43rem;
  height: .43rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .08);
}
.global-search-feature .global-search {
  width: 100%;
  max-width: none;
  margin: 0;
  flex: none;
}
.global-search-feature .global-search-box {
  height: 3.15rem;
  gap: .7rem;
  padding: 0 .95rem;
  border-radius: .8rem;
  border-color: rgba(31,184,114, .42);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22), 0 0 0 1px rgba(255, 255, 255, .08) inset;
}
.global-search-feature .global-search-box:focus-within {
  border-color: #1FB872;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .25), 0 0 0 4px rgba(31,184,114, .18);
}
.global-search-feature .global-search-input {
  color: #0f172a;
  font-size: .95rem;
  font-weight: 650;
}
.global-search-feature .global-search-input::placeholder {
  color: #64748b;
}
.global-search-feature .global-search-kbd {
  color: #334155;
  border-color: #cbd5e1;
  background: #f8fafc;
}
.global-search-feature .global-search-results {
  top: calc(100% + .45rem);
  border-color: rgba(31,184,114, .25);
}
html.theme-light .global-search-feature {
  background:
    radial-gradient(circle at 18% 0%, rgba(31,184,114, .14), transparent 34%),
    linear-gradient(180deg, #f8fafc, #eef4f8);
  border-bottom-color: #dbe3ef;
}
html.theme-light .global-search-feature-title {
  color: #0f172a;
}
html.theme-light .global-search-feature-status {
  color: #475569;
  background: #ffffff;
  border-color: #cbd5e1;
}
html.theme-light .global-search-feature-status.open {
  color: #047857;
  border-color: #86efac;
  background: #dcfce7;
}
html.theme-light .global-search-feature .global-search-box {
  border-color: rgba(4, 120, 87, .34);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}
html.theme-light .global-search-feature .global-search-box:focus-within {
  border-color: #047857;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .14), 0 0 0 4px rgba(4, 120, 87, .13);
}
@media (max-width: 1024px) {
  .global-search-feature-inner {
    grid-template-columns: 1fr;
    justify-content: stretch;
    padding: .8rem 1rem 1rem;
  }
  .global-search-feature .global-search {
    position: relative;
    inset: auto;
    display: block;
    max-width: none;
    z-index: 70;
  }
  .global-search-feature .global-search.is-open {
    display: block;
  }
  .global-search-feature .global-search-box {
    height: 3rem;
  }
  .global-search-trigger {
    display: none !important;
  }
}
@media (max-width: 640px) {
  .global-search-feature-inner {
    padding-inline: .8rem;
  }
  .global-search-feature-meta {
    justify-content: space-between;
  }
  .global-search-feature-title {
    font-size: .7rem;
  }
  .global-search-feature .global-search-input {
    font-size: .86rem;
  }
  .global-search-feature .global-search-kbd {
    display: none;
  }
}

/* Couleurs finales du ticker pour les deux themes gardes. */
html[data-theme] .ticker-bar {
  background: linear-gradient(90deg, #07111f 0%, #102a43 50%, #07111f 100%) !important;
  border-top-color: rgba(52, 211, 153, .26) !important;
  border-bottom-color: rgba(148, 163, 184, .22) !important;
}
html[data-theme] .ticker-bar::before {
  background: linear-gradient(90deg, #07111f 20%, rgba(7, 17, 31, 0)) !important;
}
html[data-theme] .ticker-bar::after {
  background: linear-gradient(270deg, #07111f 20%, rgba(7, 17, 31, 0)) !important;
}
html[data-theme] .ticker-sym,
html[data-theme] .ticker-prix,
html[data-theme] .ticker-maj-time,
html[data-theme] .ticker-symbol {
  color: #f8fafc !important;
}
html[data-theme] .ticker-maj-label {
  color: #a9b8c8 !important;
}
html[data-theme] .ticker-var {
  border: 1px solid transparent;
  font-weight: 850;
}
html[data-theme] .ticker-var.up {
  color: #34d399 !important;
  background: rgba(16, 185, 129, .2) !important;
  border-color: rgba(52, 211, 153, .38) !important;
}
html[data-theme] .ticker-var.down {
  color: #f87171 !important;
  background: rgba(248, 113, 113, .2) !important;
  border-color: rgba(248, 113, 113, .4) !important;
}
html[data-theme] .ticker-var.flat {
  color: #cbd5e1 !important;
  background: rgba(148, 163, 184, .16) !important;
  border-color: rgba(148, 163, 184, .26) !important;
}
html[data-theme] .ticker-live-badge.open {
  color: #34d399;
  background: rgba(16, 185, 129, .18);
  border-color: rgba(52, 211, 153, .48);
}
html[data-theme] .ticker-live-badge.closed {
  color: #cbd5e1;
  background: rgba(148, 163, 184, .14);
  border-color: rgba(148, 163, 184, .32);
}
html[data-theme][data-ticker-layout="5"] .ticker-item:has(.ticker-var.up)::before {
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, .38);
}
html[data-theme][data-ticker-layout="5"] .ticker-item:has(.ticker-var.down)::before {
  background: #f87171;
  box-shadow: 0 0 10px rgba(248, 113, 113, .38);
}
html.theme-light[data-theme] .ticker-bar {
  background: linear-gradient(90deg, #ffffff 0%, #eef4f8 50%, #ffffff 100%) !important;
  border-top-color: #d8e4ec !important;
  border-bottom-color: #cbd5e1 !important;
}
html.theme-light[data-theme] .ticker-bar::before {
  background: linear-gradient(90deg, #ffffff 20%, rgba(255, 255, 255, 0)) !important;
}
html.theme-light[data-theme] .ticker-bar::after {
  background: linear-gradient(270deg, #ffffff 20%, rgba(255, 255, 255, 0)) !important;
}
html.theme-light[data-theme] .ticker-sym,
html.theme-light[data-theme] .ticker-prix,
html.theme-light[data-theme] .ticker-maj-time,
html.theme-light[data-theme] .ticker-symbol {
  color: #0f172a !important;
}
html.theme-light[data-theme] .ticker-maj-label {
  color: #64748b !important;
}
html.theme-light[data-theme] .ticker-var.up {
  color: #047857 !important;
  background: #dcfce7 !important;
  border-color: #86efac !important;
}
html.theme-light[data-theme] .ticker-var.down {
  color: #b91c1c !important;
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
}
html.theme-light[data-theme] .ticker-var.flat {
  color: #475569 !important;
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
}
html.theme-light[data-theme] .ticker-live-badge.open {
  color: #047857;
  background: #dcfce7;
  border-color: #86efac;
}
html.theme-light[data-theme] .ticker-live-badge.closed {
  color: #475569;
  background: #f1f5f9;
  border-color: #cbd5e1;
}
html.theme-light[data-theme][data-ticker-layout="5"] .ticker-item:has(.ticker-var.up)::before {
  background: #047857;
  box-shadow: 0 0 8px rgba(4, 120, 87, .28);
}
html.theme-light[data-theme][data-ticker-layout="5"] .ticker-item:has(.ticker-var.down)::before {
  background: #b91c1c;
  box-shadow: 0 0 8px rgba(185, 28, 28, .28);
}

/* Accueil : composition compacte comme la maquette fournie. */
.home-page-shell {
  padding-top: .75rem !important;
}
.home-banner-legacy {
  display: none !important;
}
.home-page-shell .home-actions-grid {
  gap: .75rem !important;
  margin-bottom: 1.25rem !important;
}
.home-page-shell .home-action-card {
  min-height: 126px !important;
  border-radius: 6px !important;
  padding: 1.05rem !important;
  background: #ffffff !important;
  border: 1px solid #e7edf4 !important;
  box-shadow: none !important;
  transform: none;
}
.home-page-shell .home-action-card:hover {
  transform: translateY(-1px);
  background: #ffffff !important;
  border-color: rgba(31,184,114, .26) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08) !important;
}
.home-page-shell .home-action-icon {
  width: 1.45rem !important;
  height: 1.45rem !important;
  margin-bottom: 1.05rem !important;
  color: #1FB872 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.home-page-shell .home-action-icon svg {
  width: 1.1rem !important;
  height: 1.1rem !important;
  stroke-width: 2 !important;
}
.home-page-shell .home-action-card > .text-sm {
  color: #253044 !important;
  font-size: .91rem !important;
  line-height: 1.2 !important;
  margin-bottom: .45rem !important;
}
.home-page-shell .home-action-card > p {
  color: #6b7a90 !important;
  font-size: .74rem !important;
  line-height: 1.45 !important;
  max-width: none !important;
}
html[data-theme^="dark"] .home-page-shell .home-action-card,
html:not(.theme-light) .home-page-shell .home-action-card {
  background: #172033 !important;
  border-color: rgba(148, 163, 184, .16) !important;
}
html[data-theme^="dark"] .home-page-shell .home-action-card > .text-sm,
html:not(.theme-light) .home-page-shell .home-action-card > .text-sm {
  color: #f8fafc !important;
}
html[data-theme^="dark"] .home-page-shell .home-action-card > p,
html:not(.theme-light) .home-page-shell .home-action-card > p {
  color: #94a3b8 !important;
}

/* Recherche sous ticker : version maquette avec titre, recherche et statut sur une ligne. */
.global-search-feature {
  z-index: 70;
  border: 0;
  background: #f3f6fa;
}
.global-search-feature-inner {
  width: min(100%, 1280px);
  max-width: 1280px;
  min-height: 76px;
  margin: 0 auto;
  padding: 1rem 1rem .65rem;
  display: grid;
  grid-template-columns: minmax(18rem, 25rem) minmax(20rem, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
}
.global-search-feature-copy {
  min-width: 0;
}
.global-search-feature-title {
  color: #07142f;
  font-size: clamp(1.48rem, 2vw, 1.86rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.global-search-feature-title span {
  color: #1FB872;
}
.global-search-feature-subtitle {
  margin-top: .42rem;
  color: #64748b;
  font-size: .86rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}
.global-search-feature .global-search {
  width: 100%;
  max-width: none;
  margin: 0;
  flex: none;
}
.global-search-feature .global-search-box {
  height: 52px;
  gap: .85rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}
.global-search-feature .global-search-box:focus-within {
  box-shadow: 0 0 0 3px rgba(31,184,114, .14);
}
.global-search-feature .global-search-box svg {
  color: #718198;
}
.global-search-feature .global-search-input {
  color: #334155;
  font-size: .94rem;
  font-weight: 750;
}
.global-search-feature .global-search-input::placeholder {
  color: #64748b;
  opacity: 1;
}
.global-search-feature .global-search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.1rem;
  padding: 0 .28rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #718198;
  background: #f8fafc;
  font-size: .66rem;
  font-weight: 800;
}
.global-search-feature-status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  height: 32px;
  padding: 0 .9rem;
  border: 1px solid #f4b8bf;
  border-radius: 999px;
  color: #dc3545;
  background: #fff0f2;
  font-size: .78rem;
  font-weight: 850;
  white-space: nowrap;
}
.global-search-feature-status.open {
  color: #047857;
  border-color: #99e6bd;
  background: #e7fbf0;
}
.global-search-feature-dot {
  width: .42rem;
  height: .42rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: none;
}
html[data-theme^="dark"] .global-search-feature,
html:not(.theme-light) .global-search-feature {
  background: #0f172a;
}
html[data-theme^="dark"] .global-search-feature-title,
html:not(.theme-light) .global-search-feature-title {
  color: #f8fafc;
}
html[data-theme^="dark"] .global-search-feature-subtitle,
html:not(.theme-light) .global-search-feature-subtitle {
  color: #94a3b8;
}
@media (max-width: 980px) {
  .global-search-feature-inner {
    grid-template-columns: 1fr auto;
    gap: .85rem;
  }
  .global-search-feature .global-search {
    grid-column: 1 / -1;
    grid-row: 2;
    position: relative;
    inset: auto;
    display: block;
    z-index: 70;
  }
  .global-search-feature .global-search.is-open {
    display: block;
  }
  .global-search-feature-subtitle {
    white-space: normal;
  }
}
@media (max-width: 560px) {
  .global-search-feature-inner {
    grid-template-columns: 1fr;
    padding: .9rem .85rem .65rem;
  }
  .global-search-feature-title {
    white-space: normal;
  }
  .global-search-feature-status {
    justify-self: start;
  }
  .global-search-feature .global-search {
    grid-row: auto;
  }
  .global-search-feature .global-search-box {
    height: 48px;
  }
  .global-search-feature .global-search-input {
    font-size: .86rem;
  }
  .global-search-feature .global-search-kbd {
    display: none;
  }
}

/* Recherche sous ticker : alignement exact du modele fourni. */
.global-search-feature {
  z-index: 70;
  border: 0;
  border-bottom: 1px solid #e6edf5;
  background: #f3f6fa;
}
.global-search-feature-inner {
  width: 100%;
  max-width: none;
  min-height: 94px;
  margin: 0;
  padding: 1.35rem 1.8rem;
  display: grid;
  grid-template-columns: minmax(19rem, 32rem) minmax(24rem, 46rem) auto;
  align-items: center;
  gap: 1.55rem;
}
.global-search-feature-copy {
  min-width: 0;
}
.global-search-feature-title {
  color: #0f1b3d;
  font-size: clamp(1.65rem, 2.15vw, 2.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.global-search-feature-title span {
  color: #1FB872;
}
.global-search-feature-subtitle {
  margin-top: .48rem;
  color: #64748b;
  font-size: .96rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}
.global-search-feature .global-search {
  width: 100%;
  max-width: none;
  margin: 0;
  flex: none;
}
.global-search-feature .global-search-box {
  height: 54px;
  gap: .85rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
}
.global-search-feature .global-search-box:focus-within {
  border: 0;
  box-shadow: 0 0 0 3px rgba(31,184,114, .14);
}
.global-search-feature .global-search-box svg {
  color: #718198;
}
.global-search-feature .global-search-input {
  color: #334155;
  font-size: 1rem;
  font-weight: 750;
}
.global-search-feature .global-search-input::placeholder {
  color: #64748b;
  opacity: 1;
}
.global-search-feature .global-search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.15rem;
  padding: 0 .3rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #718198;
  background: #f8fafc;
  font-size: .68rem;
  font-weight: 800;
}
.global-search-feature .global-search-results {
  top: calc(100% + .45rem);
  border-color: #dbe3ef;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
}
.global-search-feature-status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  height: 34px;
  padding: 0 .95rem;
  border: 1px solid #f4b8bf;
  border-radius: 999px;
  color: #dc3545;
  background: #fff0f2;
  font-size: .82rem;
  font-weight: 850;
  white-space: nowrap;
}
.global-search-feature-status.open {
  color: #047857;
  border-color: #99e6bd;
  background: #e7fbf0;
}
.global-search-feature-dot {
  width: .44rem;
  height: .44rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: none;
}
html:not(.theme-light) .global-search-feature,
html[data-theme^="dark"] .global-search-feature {
  background: #111827;
  border-bottom-color: rgba(148, 163, 184, .18);
}
html:not(.theme-light) .global-search-feature-title,
html[data-theme^="dark"] .global-search-feature-title {
  color: #f8fafc;
}
html:not(.theme-light) .global-search-feature-subtitle,
html[data-theme^="dark"] .global-search-feature-subtitle {
  color: #94a3b8;
}
html:not(.theme-light) .global-search-feature .global-search-box,
html[data-theme^="dark"] .global-search-feature .global-search-box {
  background: #ffffff;
}
@media (max-width: 1180px) {
  .global-search-feature-inner {
    grid-template-columns: minmax(16rem, 28rem) minmax(20rem, 1fr) auto;
    gap: 1rem;
    padding-inline: 1.2rem;
  }
  .global-search-feature-subtitle {
    font-size: .88rem;
  }
}
@media (max-width: 900px) {
  .global-search-feature-inner {
    grid-template-columns: 1fr auto;
    min-height: 0;
    padding: 1rem;
  }
  .global-search-feature .global-search {
    grid-column: 1 / -1;
    grid-row: 2;
    position: relative;
    inset: auto;
    display: block;
    z-index: 70;
  }
  .global-search-feature .global-search.is-open {
    display: block;
  }
  .global-search-feature-title {
    white-space: normal;
  }
  .global-search-feature-subtitle {
    white-space: normal;
  }
}
@media (max-width: 560px) {
  .global-search-feature-inner {
    grid-template-columns: 1fr;
    gap: .75rem;
  }
  .global-search-feature-status {
    justify-self: start;
  }
  .global-search-feature .global-search {
    grid-row: auto;
  }
  .global-search-feature .global-search-box {
    height: 50px;
    border-radius: 12px;
  }
  .global-search-feature .global-search-input {
    font-size: .88rem;
  }
  .global-search-feature .global-search-kbd {
    display: none;
  }
}

/* Override final accueil maquette 06/05 : recherche + cartes compactes. */
.home-page-shell {
  padding-top: .75rem !important;
}
.home-banner-legacy {
  display: none !important;
}
.global-search-feature {
  border: 0 !important;
  background: #f3f6fa !important;
}
.global-search-feature-inner {
  width: min(100%, 1280px) !important;
  max-width: 1280px !important;
  min-height: 76px !important;
  margin: 0 auto !important;
  padding: 1rem 1rem .65rem !important;
  grid-template-columns: minmax(18rem, 25rem) minmax(20rem, 1fr) auto !important;
  gap: 1.2rem !important;
}
.global-search-feature-title {
  color: #07142f !important;
  font-size: clamp(1.48rem, 2vw, 1.86rem) !important;
  line-height: 1.05 !important;
}
.global-search-feature-subtitle {
  margin-top: .42rem !important;
  font-size: .86rem !important;
}
.global-search-feature .global-search-box {
  height: 52px !important;
  border-radius: 12px !important;
}
.global-search-feature .global-search-input {
  font-size: .94rem !important;
}
.global-search-feature-status {
  height: 32px !important;
  padding: 0 .9rem !important;
  font-size: .78rem !important;
}
.home-page-shell .home-actions-grid {
  gap: .75rem !important;
  margin-bottom: 1.25rem !important;
}
.home-page-shell .home-action-card {
  min-height: 126px !important;
  border-radius: 6px !important;
  padding: 1.05rem !important;
  background: #ffffff !important;
  border: 1px solid #e7edf4 !important;
  box-shadow: none !important;
}
.home-page-shell .home-action-icon {
  width: 1.45rem !important;
  height: 1.45rem !important;
  margin-bottom: 1.05rem !important;
  color: #1FB872 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.home-page-shell .home-action-icon svg {
  width: 1.1rem !important;
  height: 1.1rem !important;
}
.home-page-shell .home-action-card > .text-sm {
  color: #253044 !important;
  font-size: .91rem !important;
  line-height: 1.2 !important;
}
.home-page-shell .home-action-card > p {
  color: #6b7a90 !important;
  font-size: .74rem !important;
  line-height: 1.45 !important;
  max-width: none !important;
}
html[data-theme^="dark"] .global-search-feature,
html:not(.theme-light) .global-search-feature {
  background: #0f172a !important;
}
html[data-theme^="dark"] .global-search-feature-title,
html:not(.theme-light) .global-search-feature-title {
  color: #f8fafc !important;
}
@media (max-width: 980px) {
  .global-search-feature-inner {
    grid-template-columns: 1fr auto !important;
  }
  .global-search-feature .global-search {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    position: relative !important;
    inset: auto !important;
    display: block !important;
  }
}
@media (max-width: 560px) {
  .global-search-feature-inner {
    grid-template-columns: 1fr !important;
    padding: .9rem .85rem .65rem !important;
  }
  .global-search-feature-status {
    justify-self: start !important;
  }
  .global-search-feature .global-search {
    grid-row: auto !important;
  }
  .global-search-feature .global-search-kbd {
    display: none !important;
  }
}

/* Ajustements globaux : respiration latérale + hover uniquement sur les lignes. */
:root {
  --site-page-gutter: clamp(1rem, 4.8vw, 7rem);
  --site-page-max: 1680px;
}
.max-w-screen-xl,
.max-w-screen-2xl,
.max-w-7xl,
.page-container,
.main-container,
.container-site,
.global-search-feature-inner {
  width: min(100%, calc(100vw - var(--site-page-gutter) - var(--site-page-gutter))) !important;
  max-width: var(--site-page-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 768px) {
  :root { --site-page-gutter: .875rem; }
}
table a.societe-nom,
table a.societe-nom:hover,
table a.societe-nom:focus,
.table-cours a.societe-nom,
.table-cours a.societe-nom:hover,
.data-table a.societe-nom,
.data-table a.societe-nom:hover {
  color: var(--vert-finance) !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
table .societe-link:hover,
table .societe-link-logo a:hover,
.table-cours .societe-link:hover,
.data-table .societe-link:hover,
.col-valeur a:hover {
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
.top-baisses a.societe-nom,
.top-baisses a.societe-nom:hover,
.top-baisses .societe-link:hover .societe-nom {
  color: var(--rouge-corail) !important;
}
