/* Thème inspiré de simaniger (header/footer + base UI) */

:root {
  /* Palette alignée sur le logo SIMA (orange terre cuite, vert forêt, doré discret) */
  --sima-green: #174a2d;
  --sima-green-mid: #1f5c38;
  --sima-green-deep: #0f3320;
  --sima-gold: #d4a84b;
  --sima-gold-deep: #b8923a;
  --sima-mint: #2d8a4e;
  --sima-mint-deep: #1a6b38;
  --sima-orange: #e07a1a;
  --sima-orange-light: #f0a040;
  --sima-orange-deep: #c45f12;
  --sima-surface: #ffffff;
  --sima-surface-2: #f7fbf8;
  --sima-brand-gradient: linear-gradient(
    102deg,
    var(--sima-orange-light) 0%,
    var(--sima-orange) 22%,
    #4a8f4a 58%,
    var(--sima-green-mid) 82%,
    var(--sima-green-deep) 100%
  );
  --sima-footer-bg: linear-gradient(
    180deg,
    #1a5535 0%,
    var(--sima-green-mid) 38%,
    var(--sima-green-deep) 100%
  );

  --ink: #0b1220;
  --muted: rgba(11, 18, 32, 0.65);
  --card: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 8px 18px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 14px 28px rgba(0, 0, 0, 0.10);

  --ring: 0 0 0 0.22rem rgba(31, 92, 56, 0.22);
  --font-nav: Georgia, 'Times New Roman', Times, 'Palatino Linotype', serif;
}

html, body {
  color: var(--ink);
  background:
    radial-gradient(1000px 420px at 8% 0%, rgba(230, 198, 92, 0.14), transparent 55%),
    radial-gradient(900px 420px at 92% 10%, rgba(47, 163, 78, 0.12), transparent 55%),
    #f5f7fb;
}

.muted { color: var(--muted) !important; }

/* Accessibilité : focus visible cohérent */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 10px;
}

/* Liens */
a { color: #176c34; }
a:hover { color: #0f5c2b; }

/* ===== Header — épuré, couleurs logo SIMA ===== */
.site-header {
  background: var(--sima-brand-gradient);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 20px rgba(15, 51, 32, 0.18);
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: visible;
  border-bottom: 2px solid rgba(212, 168, 75, 0.55);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 42%);
  pointer-events: none;
  z-index: 0;
}

.header-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.4rem 0.85rem 0.4rem 0.55rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1rem;
  position: relative;
  z-index: 1;
}

.header-brand {
  grid-column: 1;
  flex-shrink: 0;
  padding-right: 1rem;
  margin-right: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.brand-badge {
  margin-right: 0;
  background: #ffffff;
  padding: 4px;
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--sima-green-deep);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  flex-shrink: 0;
}

.brand-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.brand-badge__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  border-radius: 7px;
}

.brand-badge__mark {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--sima-green-mid), var(--sima-green));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-family: var(--font-nav);
}

.brand-badge__name { display: none; }

.main-nav { display: flex; }

.header-nav {
  grid-column: 2;
  min-width: 0;
  margin-left: 1.25rem;
  padding-left: 0;
  padding-right: 0.35rem;
  border-left: none;
  flex: none;
}

.site-header .navbar {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  min-width: 0;
  margin-left: 0;
  padding-left: 0;
  flex: none;
}

.site-header .navbar-collapse {
  justify-content: flex-start;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.nav-menu li { display: flex; align-items: center; }
.nav-menu li.nav-platform-link { margin-left: 0.25rem; }

/* Sélecteur de langue — coin droit */
.header-tools {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: 0;
  padding-left: 1rem;
  justify-self: end;
  position: relative;
  z-index: 2;
}

.header-lang {
  flex-shrink: 0;
  position: relative;
}

.header-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.75rem 0.32rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: #fff;
  color: var(--sima-green-deep);
  font-family: var(--font-nav);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  box-shadow: 0 2px 10px rgba(15, 51, 32, 0.14);
  max-width: 100%;
}

.header-lang__btn:hover,
.header-lang__btn.show,
.header-lang__btn:focus-visible {
  background: #fff;
  color: var(--sima-orange-deep);
  border-color: var(--sima-gold);
  box-shadow: 0 4px 14px rgba(15, 51, 32, 0.2);
}

.header-lang__btn::after {
  margin-left: 0.1rem;
  vertical-align: middle;
  border-top-color: var(--sima-green-mid);
}

.header-lang__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(224, 122, 26, 0.14), rgba(31, 92, 56, 0.12));
  color: var(--sima-green-mid);
  flex-shrink: 0;
}

.header-lang__btn:hover .header-lang__icon-wrap,
.header-lang__btn.show .header-lang__icon-wrap {
  color: var(--sima-orange-deep);
}

.header-lang__icon {
  flex-shrink: 0;
  display: block;
}

.header-lang__text {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  line-height: 1.2;
}

.header-lang__check--selected {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sima-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.header-lang__check-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  flex-shrink: 0;
}

.header-lang__option.active .header-lang__check-slot:empty::before,
.header-lang__check-slot:empty::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}

.header-lang__option.active .header-lang__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sima-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.header-lang__menu {
  min-width: 188px;
  margin-top: 0.45rem;
  padding: 0.35rem 0;
  border-top: 3px solid var(--sima-orange);
}

.header-lang__menu .dropdown-header {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted) !important;
  padding: 0.35rem 1rem 0.5rem;
}

.header-lang__option {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 1rem !important;
  font-size: 13px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.header-lang__option.active {
  background: rgba(224, 122, 26, 0.1) !important;
  color: var(--sima-green-deep) !important;
  font-weight: 700 !important;
}

.header-lang__check {
  color: var(--sima-orange);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
}

.nav-menu a,
.nav-menu button.nav-linklike {
  font-family: var(--font-nav);
  text-decoration: none;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  padding: 0.35rem 0.52rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.96);
}

.nav-menu a:hover,
.nav-menu button.nav-linklike:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
}

.nav-menu a.active {
  color: var(--sima-gold);
  background: rgba(0, 0, 0, 0.22);
  border-color: var(--sima-gold);
  box-shadow: none;
}

.nav-menu a.active:hover,
.nav-menu .dropdown-toggle.show:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
}

.nav-menu .dropdown-toggle.show {
  color: var(--sima-gold);
  background: rgba(0, 0, 0, 0.22);
  border-color: var(--sima-gold);
}

.nav-menu .dropdown-toggle::after {
  border-top-color: currentColor;
  opacity: 0.85;
}

.nav-menu li.nav-platform-link a {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 700;
}

.nav-menu li.nav-platform-link a:hover {
  color: var(--sima-green-deep);
  background: var(--sima-gold);
  border-color: var(--sima-gold-deep);
}

.dropdown-menu.sima-dd {
  --bs-dropdown-bg: #fff;
  --bs-dropdown-link-color: var(--sima-green-deep);
  --bs-dropdown-link-hover-color: var(--sima-green-deep);
  --bs-dropdown-link-hover-bg: rgba(212, 168, 75, 0.12);
  --bs-dropdown-link-active-color: var(--sima-green-deep);
  --bs-dropdown-link-active-bg: rgba(31, 92, 56, 0.1);
  background: #fff;
  min-width: 260px;
  max-width: 340px;
  box-shadow: 0 12px 32px rgba(15, 51, 32, 0.18);
  border-radius: 10px;
  border: 1px solid rgba(31, 92, 56, 0.12);
  border-top: 3px solid var(--sima-orange);
  padding: 0.35rem 0;
  overflow: hidden;
}

.dropdown-menu.sima-dd .dropdown-item {
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--sima-green-deep);
  padding: 0.45rem 0.8rem;
  background: #fff;
}

.dropdown-menu.sima-dd .dropdown-item:hover,
.dropdown-menu.sima-dd .dropdown-item:focus {
  background: rgba(212, 168, 75, 0.12);
  color: var(--sima-green-deep);
}

.dropdown-menu.sima-dd .dropdown-item:active,
.dropdown-menu.sima-dd .dropdown-item.active {
  background: rgba(31, 92, 56, 0.1);
  color: var(--sima-green-deep);
}

.dropdown-menu.sima-dd .dropdown-item .text-muted {
  color: var(--muted) !important;
}

.header-menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(15, 51, 32, 0.14);
}

.header-menu-toggle:hover,
.header-menu-toggle:focus-visible,
.header-menu-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 14px rgba(15, 51, 32, 0.2);
}

.header-menu-toggle__bar {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-menu-toggle[aria-expanded="true"] .header-menu-toggle__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.header-menu-toggle[aria-expanded="true"] .header-menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.header-menu-toggle[aria-expanded="true"] .header-menu-toggle__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 991.98px) {
  .header-container {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    padding: 0.4rem 0.65rem;
  }
  .header-brand {
    order: 0;
    grid-column: 1;
    grid-row: 1;
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }
  .header-tools {
    order: 1;
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
    justify-self: end;
    gap: 0.4rem;
  }
  .header-menu-toggle {
    display: inline-flex;
  }
  .header-nav {
    order: 2;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding-top: 0.5rem;
    margin-top: 0.35rem;
  }
  .navbar { width: 100%; justify-content: flex-end !important; }
  .navbar-collapse {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 51, 32, 0.72);
    backdrop-filter: blur(8px);
  }
  .nav-menu {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.2rem;
  }
  .nav-menu li,
  .nav-menu li.nav-platform-link { margin-left: 0; }
  .nav-menu a,
  .nav-menu button.nav-linklike {
    width: 100%;
    justify-content: space-between;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
  }
  .dropdown-menu.sima-dd {
    position: static;
    float: none;
    width: 100%;
    max-width: none;
    margin-top: 0.25rem;
    border-radius: 8px;
  }
}

@media (min-width: 992px) {
  .header-container {
    padding: 0.45rem 1rem 0.45rem 0.65rem;
    column-gap: 1.25rem;
  }
  .header-brand {
    padding-right: 1.25rem;
    margin-right: 1.25rem;
  }
  .header-nav {
    margin-left: 1.5rem;
    padding-left: 0;
    padding-right: 0.5rem;
  }
  .header-tools {
    margin-left: 0;
    padding-left: 1.15rem;
    padding-right: 0.15rem;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
  }
  .nav-menu { flex-wrap: nowrap; gap: 0.08rem; }
  .nav-menu a,
  .nav-menu button.nav-linklike {
    font-size: 11.5px;
    padding: 0.35rem 0.52rem;
    letter-spacing: 0.03em;
  }
}

/* ===== Page sections ===== */
.page-hero {
  background: radial-gradient(1200px 340px at 20% 0%, rgba(230, 198, 92, 0.16), transparent 55%),
              linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 { font-size: 1.9rem; letter-spacing: 0.01em; }

/* Containers un peu plus larges sur grands écrans (look “dashboard”) */
@media (min-width: 1200px) {
  .container { max-width: 1220px; }
}

@media (min-width: 1400px) {
  .container { max-width: 1320px; }
}

.card-soft {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* ===== Statistiques (plein écran) ===== */
/* Les pages stats utilisent souvent des cards + charts : on améliore la lisibilité en grand écran */
main > section.py-4 .container-fluid {
  max-width: 1680px;
}

main > section.py-4 .ppa-card .card-header {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

main > section.py-4 .ppa-card .card-body {
  padding: 1rem;
}

@media (min-width: 992px) {
  main > section.py-4 .ppa-card .card-body {
    padding: 1.1rem 1.25rem;
  }
}

/* Header titre (UI/UX) */
.sima-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background:
    radial-gradient(900px 220px at 10% 0%, rgba(230, 198, 92, 0.18), transparent 55%),
    radial-gradient(900px 240px at 90% 10%, rgba(47, 163, 78, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.84));
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.sima-page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(12, 45, 18, 0.75);
  background: rgba(47, 163, 78, 0.10);
  border: 1px solid rgba(47, 163, 78, 0.18);
}

.sima-page-title {
  margin: 0;
  font-weight: 950;
  letter-spacing: 0.01em;
  color: rgba(12, 45, 18, 0.95);
  font-size: clamp(1.25rem, 1.1rem + 1.1vw, 2rem);
  line-height: 1.15;
}

.sima-page-title::after {
  content: '';
  display: block;
  width: min(180px, 40%);
  height: 4px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sima-mint-deep), var(--sima-gold));
  opacity: 0.95;
}

.sima-page-subtitle {
  margin: 0.35rem 0 0;
  max-width: 70ch;
  font-size: 0.96rem;
  line-height: 1.45;
}

.sima-page-meta {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
  text-align: right;
}

.sima-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: linear-gradient(135deg, rgba(230, 198, 92, 0.22), rgba(25, 140, 61, 0.10));
  color: rgba(12, 45, 18, 0.92);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.sima-meta-muted {
  color: rgba(11, 18, 32, 0.62);
  font-size: 0.86rem;
  font-weight: 800;
}

@media (max-width: 575.98px) {
  .sima-page-head { padding: 0.8rem 0.85rem; }
  .sima-page-subtitle { font-size: 0.92rem; }
  .sima-page-meta { justify-items: start; text-align: left; width: 100%; }
}

/* ===== Tables "dashboard" (Statistiques) ===== */
.sima-data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 61, 20, 0.06), rgba(15, 61, 20, 0.03));
  color: rgba(12, 45, 18, 0.92);
  font-weight: 900;
  font-size: 0.76rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  padding: 0.85rem 0.9rem;
}

.sima-data-table tbody td {
  padding: 0.8rem 0.9rem;
  border-top-color: rgba(0, 0, 0, 0.06);
  vertical-align: middle;
}

.sima-data-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.55);
}

.sima-data-table.table-hover tbody tr:hover {
  background: rgba(25, 140, 61, 0.06);
}

/* Colonnes numériques: meilleure lecture */
.sima-data-table td.text-end,
.sima-data-table th.text-end {
  font-variant-numeric: tabular-nums;
}

/* Table responsive: on évite le "collé" aux bords */
.table-responsive {
  padding: 0.25rem;
}

/* Badges colorés (logo SIMA: vert + doré, avec états) */
.sima-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  user-select: none;
}

.sima-badge--neutral {
  background: rgba(255, 255, 255, 0.85);
  color: rgba(11, 18, 32, 0.78);
  border-color: rgba(0, 0, 0, 0.10);
}

.sima-badge--info {
  background: rgba(25, 140, 61, 0.10);
  color: rgba(15, 61, 20, 0.92);
  border-color: rgba(25, 140, 61, 0.22);
}

.sima-badge--good {
  background: linear-gradient(135deg, rgba(25, 140, 61, 0.14), rgba(47, 163, 78, 0.08));
  color: rgba(15, 61, 20, 0.95);
  border-color: rgba(25, 140, 61, 0.26);
}

.sima-badge--warn {
  background: linear-gradient(135deg, rgba(230, 198, 92, 0.22), rgba(230, 198, 92, 0.10));
  color: rgba(128, 90, 0, 0.92);
  border-color: rgba(201, 162, 39, 0.35);
}

.sima-badge--bad {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.16), rgba(220, 53, 69, 0.08));
  color: rgba(154, 32, 45, 0.95);
  border-color: rgba(220, 53, 69, 0.28);
}

/* Tri tableau */
.sima-sort {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 1.35rem !important;
}
.sima-sort::after {
  content: '⇅';
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.45;
  font-weight: 900;
}
.sima-sort[data-sort-dir="asc"]::after { content: '↑'; opacity: 0.75; }
.sima-sort[data-sort-dir="desc"]::after { content: '↓'; opacity: 0.75; }

/* Libellé tendance (hausse/baisse/stable) */
.sima-delta {
  font-weight: 900;
  letter-spacing: 0.02em;
}
.sima-delta--up { color: rgba(154, 32, 45, 0.95); }
.sima-delta--down { color: rgba(15, 61, 20, 0.95); }
.sima-delta--stable { color: rgba(128, 90, 0, 0.92); }

/* ===== Bootstrap overrides (harmonisation SIMA) ===== */
.btn {
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.btn-success {
  --bs-btn-bg: var(--sima-mint-deep);
  --bs-btn-border-color: rgba(16, 107, 48, 0.95);
  --bs-btn-hover-bg: #1d9441;
  --bs-btn-hover-border-color: rgba(16, 107, 48, 0.95);
  --bs-btn-active-bg: #167636;
  --bs-btn-active-border-color: rgba(16, 107, 48, 0.95);
  --bs-btn-focus-shadow-rgb: 25, 140, 61;
  box-shadow: 0 10px 22px rgba(25, 140, 61, 0.18);
}
.btn-outline-secondary {
  --bs-btn-color: rgba(12, 45, 18, 0.88);
  --bs-btn-border-color: rgba(0, 0, 0, 0.16);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.95);
  --bs-btn-hover-color: rgba(12, 45, 18, 0.92);
  --bs-btn-hover-border-color: rgba(25, 140, 61, 0.28);
  --bs-btn-active-bg: rgba(25, 140, 61, 0.10);
  --bs-btn-active-border-color: rgba(25, 140, 61, 0.35);
}
.badge {
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Dropdown (menus) plus clean */
.dropdown-menu {
  --bs-dropdown-bg: #fff;
  --bs-dropdown-link-hover-bg: rgba(212, 168, 75, 0.12);
  --bs-dropdown-link-active-bg: rgba(31, 92, 56, 0.1);
  border-radius: 14px;
  border: 1px solid rgba(31, 92, 56, 0.12);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
  background: #fff;
}
.dropdown-item {
  font-weight: 600;
  font-size: 11px;
  background: #fff;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(212, 168, 75, 0.12);
  color: var(--sima-green-deep);
}
.dropdown-item:active {
  background: rgba(31, 92, 56, 0.1);
  color: var(--sima-green-deep);
}

/* ===== UI blocks (shared) ===== */
.sima-panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.sima-panel:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 61, 20, 0.14);
}

.sima-panel__head {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sima-panel__title {
  margin: 0;
  font-weight: 900;
  font-size: 1.05rem;
}

/* Petits “titres de section” uniformisés */
.section-title {
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: rgba(12, 45, 18, 0.92);
}

.sima-panel__body {
  padding: 0.85rem 1rem 1rem;
}

.sima-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.sima-kpi {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
  padding: 0.8rem 0.9rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.sima-kpi__label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, 0.6);
  font-weight: 800;
}

.sima-kpi__value {
  font-weight: 900;
  margin-top: 0.15rem;
}

.sima-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sima-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 45, 18, 0.16);
  background: rgba(255, 255, 255, 0.85);
  color: rgba(12, 45, 18, 0.9);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.sima-chip:hover {
  background: #fff;
  border-color: rgba(13, 138, 57, 0.25);
}

/* Tables */
.table {
  border-color: rgba(0, 0, 0, 0.06);
}
.table thead th {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.table tbody tr:hover {
  background: rgba(25, 140, 61, 0.04);
}

/* ===== Carte des marchés (filtres latéraux + actions) ===== */
.carte-filtres-card {
  border-radius: 14px;
  border: 1px solid rgba(15, 61, 20, 0.16);
  background: linear-gradient(180deg, #fafdfb 0%, #f4fbf6 100%);
  box-shadow: 0 6px 18px rgba(13, 138, 57, 0.10);
}

.carte-filtres-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(13, 138, 57, 0.14);
}

.carte-filtres-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0d8a39;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.carte-filtres-card .form-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #1b4332;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

.carte-filtres-card .form-select {
  font-size: 0.86rem;
  border-radius: 12px;
  border-color: rgba(12, 45, 18, 0.14);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  box-shadow: none;
}

.carte-filtres-card .form-select:focus {
  border-color: rgba(13, 138, 57, 0.85);
  box-shadow: 0 0 0 0.18rem rgba(13, 138, 57, 0.18);
}

.carte-filtres-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.btn-sima {
  border-radius: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem !important;
  padding: 0.7rem 0.9rem !important;
}

.btn-sima-primary {
  background: linear-gradient(135deg, #198c3d 0%, #2fa34e 100%) !important;
  border-color: rgba(16, 107, 48, 0.9) !important;
  box-shadow: 0 10px 18px rgba(24, 119, 54, 0.20);
}

.btn-sima-primary:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.btn-sima-soft {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(12, 45, 18, 0.16) !important;
  color: rgba(12, 45, 18, 0.88) !important;
}

.btn-sima-soft:hover {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(13, 138, 57, 0.28) !important;
}

/* ===== Partenaires ===== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.partner-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.partner-card__inner {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
  padding: 1.15rem 1.1rem 1.05rem;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.partner-card:hover .partner-card__inner {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
  border-color: rgba(15, 61, 20, 0.18);
}

.partner-card__logoWrap {
  height: 78px;
  display: grid;
  place-items: center;
  margin-bottom: 0.65rem;
}

.partner-card__logo {
  max-height: 74px;
  max-width: 132px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: saturate(1.02) contrast(1.02);
}

.partner-card__logo--fews {
  max-width: 210px;
}

.partner-card__logoFallback {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(22, 74, 28, 0.92), rgba(15, 61, 20, 0.92));
  color: #fff;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: grid;
  place-items: center;
  border: 1px solid rgba(230, 198, 92, 0.35);
}

.partner-card__name {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 800;
  color: var(--sima-green);
  margin: 0.25rem 0 0.35rem;
  line-height: 1.2;
}

.partner-card__desc {
  color: rgba(11, 18, 32, 0.66);
  font-size: 0.92rem;
  line-height: 1.45;
  min-height: 2.9em;
}

.partner-card__cta {
  margin-top: 0.75rem;
  color: #8a6a18;
  font-weight: 800;
  font-size: 0.9rem;
}

.partner-card:hover .partner-card__cta {
  color: var(--sima-gold-deep);
}

@media (max-width: 1200px) {
  .partners-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .partners-grid { grid-template-columns: 1fr; }
  .partner-card__desc { min-height: auto; }
}

/* ===== Footer ===== */
.sima-footer {
  --ft-bg: #0a3010;
  --ft-bg-mid: #0f3d14;
  --ft-text: rgba(255, 255, 255, 0.92);
  --ft-muted: rgba(255, 255, 255, 0.68);
  --ft-line: rgba(255, 255, 255, 0.12);
  --ft-gold: #e6c65c;
  --ft-mint: #5cb87a;
  --ft-card: rgba(255, 255, 255, 0.05);
  --ft-card-hover: rgba(255, 255, 255, 0.09);

  position: relative;
  margin-top: 4rem;
  color: var(--ft-text);
  background:
    radial-gradient(900px 280px at 85% 0%, rgba(245, 133, 41, 0.08), transparent 55%),
    radial-gradient(700px 240px at 15% 0%, rgba(47, 163, 78, 0.1), transparent 50%),
    var(--sima-footer-bg);
  overflow: hidden;
}

.sima-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 6px,
    rgba(255, 255, 255, 0.018) 6px,
    rgba(255, 255, 255, 0.018) 7px
  );
  pointer-events: none;
  z-index: 0;
}

.sima-footer__wave {
  position: relative;
  margin-top: -1px;
  height: 48px;
  color: #f5f7fb;
  line-height: 0;
  background: #f5f7fb;
}

.sima-footer__wave svg {
  display: block;
  width: 100%;
  height: 48px;
}

.sima-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2rem;
  position: relative;
  z-index: 1;
}

.sima-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--ft-line);
  position: relative;
  z-index: 1;
}

.sima-footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: opacity .15s ease;
}

.sima-footer__brand:hover { color: inherit; opacity: 0.92; }

.sima-footer__brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(230, 198, 92, 0.35);
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sima-footer__brandName {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.25;
}

.sima-footer__brandTag {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--ft-muted);
  line-height: 1.4;
  max-width: 28rem;
}

.sima-footer__quickNav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sima-footer__quickNav a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--ft-line);
  background: var(--ft-card);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}

.sima-footer__quickNav a:hover {
  background: var(--ft-card-hover);
  border-color: rgba(92, 184, 122, 0.35);
  color: #fff;
  transform: translateY(-1px);
}

.sima-footer__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.05fr;
  gap: 2rem 2.5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.sima-footer__block { min-width: 0; }

.sima-footer__heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.sima-footer__headingIcon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(92, 184, 122, 0.15);
  border: 1px solid rgba(92, 184, 122, 0.25);
  display: grid;
  place-items: center;
  color: var(--ft-mint);
  flex-shrink: 0;
}

.sima-footer__headingIcon svg { width: 16px; height: 16px; }

.sima-footer__srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sima-footer__partnerList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.sima-footer__partnerList a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .12s ease;
}

.sima-footer__partnerList a:hover {
  background: var(--ft-card);
  border-color: var(--ft-line);
  transform: translateX(2px);
  color: inherit;
}

.sima-footer__partnerAbbr {
  min-width: 4.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(230, 198, 92, 0.14);
  border: 1px solid rgba(230, 198, 92, 0.22);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ft-gold);
  text-align: center;
}

.sima-footer__partnerDesc {
  font-size: 0.84rem;
  color: var(--ft-muted);
  line-height: 1.35;
}

.sima-footer__extIcon {
  width: 14px;
  height: 14px;
  opacity: 0.45;
  transition: opacity .15s ease, transform .12s ease;
}

.sima-footer__partnerList a:hover .sima-footer__extIcon {
  opacity: 0.9;
  transform: translate(1px, -1px);
}

.sima-footer__contactCards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.sima-footer__contactCards li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: var(--ft-card);
  border: 1px solid var(--ft-line);
  transition: background .18s ease, border-color .18s ease;
}

.sima-footer__contactCards li:hover {
  background: var(--ft-card-hover);
  border-color: rgba(92, 184, 122, 0.22);
}

.sima-footer__contactIcon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--ft-line);
  display: grid;
  place-items: center;
  color: var(--ft-mint);
}

.sima-footer__contactIcon svg { width: 18px; height: 18px; }

.sima-footer__contactLabel {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.25rem;
}

.sima-footer__contactCards p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

.sima-footer__contactCards a {
  color: #b8e6c8;
  text-decoration: none;
  font-size: 0.9rem;
  word-break: break-word;
  transition: color .15s ease;
}

.sima-footer__contactCards a:hover {
  color: #fff;
  text-decoration: underline;
}

.sima-footer__block--subscribe {
  padding: 1.35rem;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.sima-footer__lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ft-muted);
}

.sima-footer__subscribeRow {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.sima-footer__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #111;
  font-size: 0.9rem;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.sima-footer__input::placeholder { color: rgba(0, 0, 0, 0.42); }

.sima-footer__input:focus {
  border-color: var(--ft-mint);
  box-shadow: 0 0 0 3px rgba(92, 184, 122, 0.22);
}

.sima-footer__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 44px;
  padding: 0 1.1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sima-mint-deep) 0%, var(--sima-mint) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  white-space: nowrap;
  transition: filter .15s ease, transform .12s ease, box-shadow .15s ease;
  box-shadow: 0 4px 14px rgba(25, 140, 61, 0.35);
}

.sima-footer__submit svg { width: 16px; height: 16px; }

.sima-footer__submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.sima-footer__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--ft-muted);
  font-size: 0.8rem;
  line-height: 1.45;
  cursor: pointer;
  user-select: none;
}

.sima-footer__consent input {
  width: 15px;
  height: 15px;
  margin-top: 0.12rem;
  accent-color: var(--ft-mint);
  flex-shrink: 0;
}

.sima-footer__socialWrap {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--ft-line);
}

.sima-footer__socialLabel {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.sima-footer__social {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.sima-footer__socialLink {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--ft-line);
  background: rgba(0, 0, 0, 0.22);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
}

.sima-footer__socialLink svg { width: 18px; height: 18px; }

.sima-footer__socialLink:hover {
  transform: translateY(-3px);
  color: #fff;
}

.sima-footer__socialLink--fb:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.sima-footer__socialLink--ig:hover {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  border-color: transparent;
}

.sima-footer__socialLink--in:hover {
  background: #0a66c2;
  border-color: #0a66c2;
}

.sima-footer__bottom {
  border-top: 1px solid var(--ft-line);
  background: rgba(0, 0, 0, 0.28);
  position: relative;
  z-index: 1;
}

.sima-footer__bottomInner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sima-footer__copy {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ft-muted);
}

.sima-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.sima-footer__legal a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease;
}

.sima-footer__legal a:hover {
  color: var(--ft-gold);
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .sima-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .sima-footer__block--subscribe {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .sima-footer { margin-top: 2.8rem; }
  .sima-footer__inner { padding: 2rem 1rem 1.5rem; }
  .sima-footer__top {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .sima-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .sima-footer__subscribeRow {
    flex-direction: column;
  }
  .sima-footer__submit {
    width: 100%;
    justify-content: center;
  }
  .sima-footer__bottomInner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .sima-footer__partnerList a {
    grid-template-columns: auto 1fr;
  }
  .sima-footer__extIcon { display: none; }
}

/* ====================================================================== */
/* Bandeau fixe bas “Marché en direct” (style ticker)                      */
/* ====================================================================== */

/* Réserve d’espace pour éviter que le bandeau masque le contenu */
body { padding-bottom: 56px; }

.sima-liveMarket {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  display: flex;
  align-items: stretch;
  z-index: 1100;
  background: linear-gradient(180deg, #0b1220 0%, #0a1020 100%);
  border-top: 2px solid rgba(230, 198, 92, 0.45);
  box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.28);
}

.sima-liveMarket__label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: linear-gradient(135deg, #c51616 0%, #e01b1b 100%);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.sima-liveMarket__pill {
  font-size: 12px;
  text-transform: uppercase;
}

.sima-liveMarket__meta {
  font-size: 12px;
  opacity: 0.92;
  font-weight: 800;
}

.sima-liveMarket__marquee {
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.sima-liveMarket__track {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-left: 20px;
  will-change: transform;
  animation: simaLiveMarketScroll 110s linear infinite;
}

.sima-liveMarket:hover .sima-liveMarket__track {
  animation-play-state: paused;
}

.sima-liveMarket__item {
  display: grid;
  grid-auto-flow: column;
  align-items: baseline;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sima-liveMarket__market {
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.96);
}

.sima-liveMarket__region {
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.sima-liveMarket__code {
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.96);
}

.sima-liveMarket__price {
  font-weight: 900;
  font-size: 12px;
  color: rgba(152, 255, 205, 0.95);
}

.sima-liveMarket__unit {
  margin-left: 6px;
  font-weight: 800;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}

.sima-liveMarket__sub {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.70);
}

@keyframes simaLiveMarketScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .sima-liveMarket__track { animation: none; }
}

