/* =====================================================
   modern-override.css — Express Medias v6.0 EDITORIAL
   Charge APRES style.css et modern.css
   ===================================================== */

*, *::before, *::after { box-sizing: border-box !important; }
html, html[data-theme="light"], html[data-theme="dark"] {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
body {
  font-family: 'Inter', sans-serif !important;
  background: #f3f4f6 !important;
  color: #111827 !important;
  line-height: 1.65 !important;
}
[data-theme="dark"] body { background: #0d1117 !important; color: #e6edf3 !important; }
img { max-width: 100% !important; height: auto !important; }
a { text-decoration: none !important; }

/* Large viewports: wider container to eliminate empty margins (sensation de vide) */
@media (min-width: 1200px) {
  .container {
    max-width: 1360px !important;
  }
}


/* 1. TOPBAR */
.em-topbar {
  background: #0a1628 !important;
  padding: 0 !important; width: 100% !important;
  display: block !important; position: relative !important;
}
.em-topbar::after {
  content: '' !important; position: absolute !important;
  bottom: 0 !important; left: 0 !important; right: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, #cc1a1a, #0e8cc6, #cc1a1a) !important;
}
.em-topbar__inner {
  max-width: 1360px !important; margin: 0 auto !important;
  padding: 0 24px !important; display: flex !important;
  align-items: center !important; justify-content: space-between !important;
  height: 38px !important;
}
.em-topbar__date {
  color: rgba(255,255,255,.65) !important; font-size: 12px !important;
  font-weight: 500 !important; display: flex !important;
  align-items: center !important; gap: 6px !important; letter-spacing: .2px !important;
}
.em-topbar__socials { display: flex !important; align-items: center !important; gap: 3px !important; }
.em-topbar__socials a {
  color: rgba(255,255,255,.65) !important; font-size: 12px !important;
  width: 26px !important; height: 26px !important; display: inline-flex !important;
  align-items: center !important; justify-content: center !important;
  border-radius: 50% !important; transition: all .2s !important;
  text-decoration: none !important;
}
.em-topbar__socials a:hover { color: #fff !important; background: rgba(255,255,255,.15) !important; }

/* 2. HEADER */
.em-header {
  background: linear-gradient(112deg, #e6ecea 0%, #f5f6f1 48%, #dfe8ea 100%) !important;
  border-bottom: 1px solid #c9d3d1 !important;
  position: sticky !important; top: 0 !important; z-index: 1040 !important;
  transition: box-shadow .3s !important;
}
.em-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.1) !important; }
[data-theme="dark"] .em-header { background: #111827 !important; border-bottom-color: #21262d !important; }
.em-header__inner {
  max-width: 1360px !important; margin: 0 auto !important;
  padding: 10px 24px !important; display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items: center !important; gap: 16px !important; position: relative !important;
}
.em-header__inner::after {
  position: absolute !important;
  right: 24px !important;
  bottom: 0 !important;
  left: 24px !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(36, 82, 107, .24) 35%, rgba(227, 74, 54, .38) 68%, transparent) !important;
  content: "" !important;
  pointer-events: none !important;
}
.em-menu-btn {
  display: inline-flex !important; align-items: center !important; gap: 7px !important;
  background: transparent !important; border: 1.5px solid #e5e7eb !important;
  border-radius: 8px !important; padding: 7px 14px !important;
  cursor: pointer !important; font-size: 13px !important; font-weight: 600 !important;
  color: #111827 !important; font-family: 'Inter', sans-serif !important;
  transition: all .2s !important; white-space: nowrap !important;
}
.em-menu-btn:hover { border-color: #cc1a1a !important; color: #cc1a1a !important; background: rgba(204,26,26,.05) !important; }
[data-theme="dark"] .em-menu-btn { color: #e6edf3 !important; border-color: #30363d !important; }
.em-header__logo { display: flex !important; justify-content: center !important; align-items: center !important; }
.em-header__logo img { height: 64px !important; width: auto !important; padding: 4px 8px !important; border-radius: 12px !important; background: #f3f4f6 !important; box-shadow: none !important; }
[data-theme="dark"] .em-header__logo img { background: #1c2431 !important; }
.em-header__actions { display: flex !important; align-items: center !important; gap: 8px !important; justify-content: flex-end !important; }
.em-search-wrap { position: relative !important; }
.em-search-input {
  background: #f3f4f6 !important; border: 1.5px solid #e5e7eb !important;
  border-radius: 50px !important; padding: 7px 16px 7px 36px !important;
  font-size: 13px !important; width: 210px !important; color: #111827 !important;
  transition: all .25s !important; outline: none !important; font-family: 'Inter', sans-serif !important;
}
.em-search-input:focus {
  border-color: #0e8cc6 !important; background: #fff !important;
  width: 260px !important; box-shadow: 0 0 0 3px rgba(14,140,198,.15) !important;
}
.em-search-overlay {
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 24px 16px 0 !important;
  background: rgba(8, 18, 36, .78) !important;
  backdrop-filter: blur(6px) !important;
}
.em-search-modal {
  position: relative !important;
  width: min(100%, 540px) !important;
  padding: 26px 24px 24px !important;
  border: 1px solid #dfe3e8 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .24) !important;
}
.em-search-modal h3 {
  margin: 0 44px 18px 0 !important;
  color: #17212b !important;
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 22px !important;
}
.em-search-modal form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 48px !important;
  gap: 8px !important;
}
.em-search-modal input {
  min-width: 0 !important;
  width: 100% !important;
  height: 50px !important;
  padding: 0 14px !important;
  border: 1px solid #cfd6dc !important;
  border-radius: 4px !important;
  color: #17212b !important;
  font: 14px 'Inter', sans-serif !important;
}
.em-search-modal form button {
  display: grid !important;
  width: 48px !important;
  height: 50px !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #c61f32 !important;
  color: #fff !important;
  cursor: pointer !important;
}
.em-search-close-btn {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  display: grid !important;
  width: 34px !important;
  height: 34px !important;
  float: none !important;
  place-items: center !important;
  margin: 0 !important;
  border: 1px solid #dfe3e8 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #394550 !important;
  cursor: pointer !important;
}
.em-search-icon {
  position: absolute !important; left: 12px !important; top: 50% !important;
  transform: translateY(-50%) !important; color: #6b7280 !important;
  pointer-events: none !important; font-size: 13px !important;
}
[data-theme="dark"] .em-search-input { background: #161b22 !important; border-color: #30363d !important; color: #e6edf3 !important; }
.em-darkmode-toggle {
  width: 36px !important; height: 36px !important; border-radius: 50% !important;
  background: #f3f4f6 !important; border: 1.5px solid #e5e7eb !important;
  color: #111827 !important; font-size: 15px !important; cursor: pointer !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  transition: all .2s !important; flex-shrink: 0 !important;
}
.em-darkmode-toggle:hover { background: #0a1628 !important; border-color: #0a1628 !important; color: #fff !important; }
[data-theme="dark"] .em-darkmode-toggle { background: #161b22 !important; border-color: #30363d !important; color: #e6edf3 !important; }

/* 3. NAVBAR */
.em-navbar {
  background: #fff !important; border-bottom: 2px solid #cc1a1a !important;
  position: sticky !important; top: 85px !important; z-index: 999 !important;
  width: 100% !important;
}
[data-theme="dark"] .em-navbar { background: #111827 !important; border-bottom-color: #cc1a1a !important; }
.em-navbar__inner {
  max-width: 1360px !important; margin: 0 auto !important;
  padding: 0 24px !important; display: flex !important; align-items: center !important;
  overflow-x: auto !important; scrollbar-width: none !important; gap: 0 !important;
}
.em-navbar__inner::-webkit-scrollbar { display: none !important; }
.em-nav-item {
  display: inline-flex !important; align-items: center !important;
  padding: 11px 12px !important; font-size: 11px !important; font-weight: 700 !important;
  color: #374151 !important; text-transform: uppercase !important; letter-spacing: .5px !important;
  white-space: nowrap !important; border-bottom: 2px solid transparent !important;
  margin-bottom: -2px !important; text-decoration: none !important;
  transition: all .2s !important; font-family: 'Inter', sans-serif !important;
}
.em-nav-item:hover { color: #cc1a1a !important; border-bottom-color: #cc1a1a !important; }
.em-nav-item.active { color: #cc1a1a !important; border-bottom-color: #cc1a1a !important; }
.em-nav-item--aune { color: #cc1a1a !important; font-weight: 800 !important; }
[data-theme="dark"] .em-nav-item { color: #9ca3af !important; }
[data-theme="dark"] .em-nav-item:hover,
[data-theme="dark"] .em-nav-item.active { color: #cc1a1a !important; }
.em-nav-dropdown { flex: 0 0 auto !important; }
.em-nav-dropdown__toggle { gap: 7px !important; border: 0 !important; background: transparent !important; cursor: pointer !important; }
.em-nav-dropdown__toggle:focus-visible,
.em-nav-dropdown__link:focus-visible { outline: 2px solid #cc1a1a !important; outline-offset: -2px !important; }
.em-nav-dropdown__toggle .bi { font-size: 9px !important; transition: transform .16s ease !important; }
.em-nav-dropdown.is-open .em-nav-dropdown__toggle .bi { transform: rotate(180deg) !important; }
.em-nav-dropdown__menu {
  position: fixed !important; z-index: 1205 !important;
  display: grid !important; width: min(280px, calc(100vw - 16px)) !important;
  max-height: min(60vh, 420px) !important; overflow-y: auto !important;
  padding: 5px !important; border: 1px solid #dfe6e2 !important; border-radius: 4px !important;
  background: #fff !important; color: #27352f !important;
}
.em-nav-dropdown__menu[hidden] { display: none !important; }
.em-nav-dropdown__link {
  display: block !important; padding: 9px 10px !important; border-radius: 2px !important;
  color: #35443e !important; font: 700 11px 'Inter', sans-serif !important;
  text-decoration: none !important; text-transform: uppercase !important;
}
.em-nav-dropdown__link:hover,
.em-nav-dropdown__link.active { background: #f2f6f4 !important; color: #b52e2c !important; }
[data-theme="dark"] .em-nav-dropdown__menu { border-color: #34423c !important; background: #151d1b !important; color: #e8efeb !important; }
[data-theme="dark"] .em-nav-dropdown__link { color: #c4d0ca !important; }
[data-theme="dark"] .em-nav-dropdown__link:hover,
[data-theme="dark"] .em-nav-dropdown__link.active { background: #222f29 !important; color: #ef716a !important; }

/* 4. TICKER */
.em-ticker {
  background: #fff !important; border-bottom: 1px solid #e5e7eb !important;
  display: flex !important; align-items: center !important;
  height: 38px !important; overflow: hidden !important; width: 100% !important;
}
[data-theme="dark"] .em-ticker { background: #111827 !important; border-bottom-color: #21262d !important; }
.em-ticker__label {
  background: #cc1a1a !important; color: #fff !important;
  font-size: 10px !important; font-weight: 900 !important;
  text-transform: uppercase !important; letter-spacing: 2px !important;
  padding: 0 16px !important; height: 100% !important;
  display: flex !important; align-items: center !important;
  gap: 7px !important; white-space: nowrap !important;
  flex-shrink: 0 !important; font-family: 'Inter', sans-serif !important;
}
.dot {
  width: 6px !important; height: 6px !important; background: #fff !important;
  border-radius: 50% !important; animation: pulse-dot 1.2s ease infinite !important;
  flex-shrink: 0 !important;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.65); }
}
.em-ticker__track { overflow: hidden !important; flex: 1 !important; }
.em-ticker__items {
  display: inline-flex !important;
  animation: em-ticker-scroll 80s linear infinite !important;
  white-space: nowrap !important;
}
.em-ticker__items:hover { animation-play-state: paused !important; }
@keyframes em-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.em-ticker__item {
  font-size: 13px !important; font-weight: 500 !important; color: #111827 !important;
  padding: 0 32px !important; display: inline-flex !important;
  align-items: center !important; gap: 8px !important; font-family: 'Inter', sans-serif !important;
}
.em-ticker__item::before { content: "bullet" !important; color: #cc1a1a !important; font-size: 7px !important; flex-shrink: 0 !important; }
[data-theme="dark"] .em-ticker__item { color: #e6edf3 !important; }

/* 5. HERO CAROUSEL (refonte — ancien bloc 3-col neutralise, voir lignes 1531+ pour les styles actifs) */
/* 6. SECTIONS */
.em-section { max-width: 1360px !important; margin: 0 auto 44px !important; padding: 0 24px !important; }
.em-section__header { display: flex !important; align-items: baseline !important; justify-content: space-between !important; margin-bottom: 20px !important; padding-bottom: 12px !important; border-bottom: 2px solid #e5e7eb !important; position: relative !important; }
.em-section__header::before { content: '' !important; position: absolute !important; left: 0 !important; bottom: -2px !important; width: 48px !important; height: 2px !important; background: #cc1a1a !important; }
.em-section__title { font-family: 'Playfair Display', Georgia, serif !important; font-size: 21px !important; font-weight: 800 !important; color: #111827 !important; text-transform: uppercase !important; letter-spacing: .3px !important; margin: 0 !important; }
[data-theme="dark"] .em-section__title { color: #e6edf3 !important; }
.em-section__more { font-size: 11px !important; font-weight: 800 !important; color: #cc1a1a !important; text-transform: uppercase !important; letter-spacing: 1px !important; display: inline-flex !important; align-items: center !important; gap: 4px !important; text-decoration: none !important; transition: gap .2s !important; font-family: 'Inter', sans-serif !important; }
.em-section__more:hover { gap: 8px !important; color: #0a1628 !important; }
[data-theme="dark"] .em-section__more:hover { color: #e6edf3 !important; }

/* 7. CARTES */
/* em-cat-grid: 2 colonnes par défaut (dans le contexte 3col de la homepage)
   La section 3col centre veut 2 cols — la grille globale est alignée */
.em-cat-grid { display: grid !important; grid-template-columns: repeat(2,1fr) !important; gap: 16px !important; }
@media (max-width: 600px) { .em-cat-grid { grid-template-columns: 1fr !important; } }
/* category.php pleine largeur : 3 cols */
.em-page-category .em-cat-grid { grid-template-columns: repeat(3,1fr) !important; gap: 20px !important; }
@media (max-width: 900px) { .em-page-category .em-cat-grid { grid-template-columns: repeat(2,1fr) !important; } }
@media (max-width: 480px) { .em-page-category .em-cat-grid { grid-template-columns: 1fr !important; } }
.em-card { background: #fff !important; border-radius: 10px !important; overflow: hidden !important; border: 1px solid #e5e7eb !important; display: flex !important; flex-direction: column !important; transition: all .25s cubic-bezier(.4,0,.2,1) !important; will-change: transform !important; }
.em-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12) !important; transform: translateY(-4px) !important; border-color: transparent !important; }
[data-theme="dark"] .em-card { background: #161b22 !important; border-color: #21262d !important; }
[data-theme="dark"] .em-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.4) !important; }
.em-card__img-wrap { position: relative !important; overflow: hidden !important; aspect-ratio: 16/9 !important; display: block !important; width: 100% !important; }
.em-card__img-wrap img { width: 100% !important; height: 100% !important; object-fit: cover !important; transition: transform .5s ease !important; display: block !important; }
.em-card:hover .em-card__img-wrap img { transform: scale(1.06) !important; }
.em-card__cat { position: absolute !important; top: 10px !important; left: 10px !important; background: #cc1a1a !important; color: #fff !important; font-size: 9px !important; font-weight: 900 !important; font-family: 'Inter', sans-serif !important; text-transform: uppercase !important; letter-spacing: 1.5px !important; padding: 3px 8px !important; border-radius: 2px !important; }
.em-card__body { padding: 16px !important; flex: 1 !important; display: flex !important; flex-direction: column !important; }
.em-card__title { font-family: 'Playfair Display', Georgia, serif !important; font-size: 15px !important; font-weight: 700 !important; color: #111827 !important; line-height: 1.35 !important; margin-bottom: 8px !important; flex: 1 !important; display: -webkit-box !important; -webkit-line-clamp: 3 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; text-decoration: none !important; transition: color .2s !important; }
.em-card__title:hover { color: #cc1a1a !important; }
[data-theme="dark"] .em-card__title { color: #e6edf3 !important; }
.em-card__meta { display: flex !important; align-items: center !important; gap: 10px !important; font-size: 11px !important; color: #6b7280 !important; font-family: 'Inter', sans-serif !important; margin-top: auto !important; padding-top: 10px !important; border-top: 1px solid #f3f4f6 !important; }
[data-theme="dark"] .em-card__meta { border-top-color: #21262d !important; }
.em-card__meta i { color: #cc1a1a !important; font-size: 10px !important; }
.em-card--featured { grid-column: span 2 !important; flex-direction: row !important; }
.em-card--featured .em-card__img-wrap { width: 46% !important; flex-shrink: 0 !important; aspect-ratio: unset !important; min-height: 200px !important; }
.em-card--featured .em-card__title { font-size: 18px !important; -webkit-line-clamp: 4 !important; }
@media (max-width: 480px) { .em-card--featured { grid-column: span 1 !important; flex-direction: column !important; } .em-card--featured .em-card__img-wrap { width: 100% !important; aspect-ratio: 16/9 !important; min-height: auto !important; } }

/* 8. SIDEBAR */
.em-sidebar-widget { background: #fff !important; border: 1px solid #e5e7eb !important; border-radius: 10px !important; overflow: hidden !important; margin-bottom: 22px !important; }
.em-sidebar-widget--ad {
  padding: 0 !important;
  border: 1px solid #23364b !important;
  border-radius: 8px !important;
  background: #081525 !important;
  box-shadow: 0 12px 28px rgba(8, 21, 37, .12) !important;
}
.em-sidebar-ad-topline {
  display: flex !important;
  min-height: 34px !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 0 12px !important;
  background: linear-gradient(90deg, #0b1c31, #11253a) !important;
  color: #c5d1dd !important;
  font: 500 9px 'DM Mono', monospace !important;
  letter-spacing: .8px !important;
}
.em-sidebar-ad-topline > span:first-child { display: inline-flex !important; align-items: center !important; gap: 8px !important; }
.em-sidebar-ad-indicator { width: 6px !important; height: 6px !important; border-radius: 50% !important; background: #dd453e !important; box-shadow: 0 0 10px rgba(221, 69, 62, .65) !important; }
.em-sidebar-ad-label { color: #9baebf !important; }
.em-sidebar-ad-media {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
  aspect-ratio: 1.3 / 1 !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: #102239 !important;
  isolation: isolate !important;
}
.em-sidebar-ad-backdrop {
  position: absolute !important;
  z-index: -1 !important;
  inset: -10% !important;
  width: 120% !important;
  height: 120% !important;
  max-width: none !important;
  object-fit: cover !important;
  filter: blur(18px) brightness(.55) saturate(.8) !important;
  transform: scale(1.05) !important;
}
.em-sidebar-ad-media::after {
  position: absolute !important;
  z-index: -1 !important;
  inset: 0 !important;
  background: linear-gradient(90deg, rgba(5, 15, 28, .48), rgba(5, 15, 28, .08) 50%, rgba(5, 15, 28, .48)) !important;
  content: "" !important;
  pointer-events: none !important;
}
.em-sidebar-ad-image {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: auto !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .24) !important;
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .em-sidebar-ad-media { aspect-ratio: 2 / 1 !important; }
}
@media (max-width: 767.98px) {
  .em-sidebar-ad-media { aspect-ratio: 1.15 / 1 !important; }
}
[data-theme="dark"] .em-sidebar-widget { background: #161b22 !important; border-color: #21262d !important; }
.em-sidebar-widget__title { background: #0a1628 !important; color: #fff !important; font-family: 'Inter', sans-serif !important; font-size: 10.5px !important; font-weight: 800 !important; text-transform: uppercase !important; letter-spacing: 1.8px !important; padding: 11px 16px !important; margin: 0 !important; display: flex !important; align-items: center !important; gap: 8px !important; }
.em-sidebar-widget__body { padding: 6px 12px 10px !important; }
.em-sidebar-article { display: flex !important; gap: 10px !important; padding: 10px 4px !important; border-bottom: 1px solid #f3f4f6 !important; align-items: flex-start !important; }
[data-theme="dark"] .em-sidebar-article { border-bottom-color: #21262d !important; }
.em-sidebar-article:last-child { border-bottom: none !important; }
.em-sidebar-article__num { font-size: 24px !important; font-weight: 900 !important; color: #e5e7eb !important; line-height: 1 !important; flex-shrink: 0 !important; width: 30px !important; font-family: 'Playfair Display', serif !important; }
[data-theme="dark"] .em-sidebar-article__num { color: #30363d !important; }
.em-sidebar-article__title { font-size: 13px !important; font-weight: 700 !important; color: #111827 !important; line-height: 1.35 !important; font-family: 'Playfair Display', serif !important; display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; text-decoration: none !important; transition: color .2s !important; display: block !important; }
.em-sidebar-article__title:hover { color: #cc1a1a !important; }
[data-theme="dark"] .em-sidebar-article__title { color: #e6edf3 !important; }
.em-sidebar-article__meta { font-size: 11px !important; color: #9ca3af !important; margin-top: 3px !important; font-family: 'Inter', sans-serif !important; }
.em-tags { display: flex !important; flex-wrap: wrap !important; gap: 7px !important; padding: 12px !important; }
.em-tag { display: inline-block !important; padding: 5px 12px !important; border-radius: 50px !important; font-size: 11px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: .5px !important; background: #f3f4f6 !important; color: #374151 !important; border: 1.5px solid #e5e7eb !important; transition: all .2s !important; font-family: 'Inter', sans-serif !important; text-decoration: none !important; }
.em-tag:hover { background: #cc1a1a !important; color: #fff !important; border-color: #cc1a1a !important; transform: translateY(-1px) !important; }
[data-theme="dark"] .em-tag { background: #1c2431 !important; color: #9ca3af !important; border-color: #30363d !important; }

/* 9. DRAWER */
.em-sidebar-drawer { position: fixed !important; top: 0 !important; left: 0 !important; width: 300px !important; height: 100% !important; background: linear-gradient(155deg, #e6ecea, #f5f6f1 58%, #dfe8ea) !important; z-index: 9999 !important; transform: translateX(-100%) !important; transition: transform .32s cubic-bezier(.4,0,.2,1) !important; box-shadow: 0 16px 40px rgba(0,0,0,.2) !important; overflow-y: auto !important; display: flex !important; flex-direction: column !important; }
.em-sidebar-drawer.open { transform: translateX(0) !important; }
[data-theme="dark"] .em-sidebar-drawer { background: #111827 !important; }
.em-drawer-overlay { position: fixed !important; inset: 0 !important; background: rgba(0,0,0,.6) !important; z-index: 9998 !important; opacity: 0 !important; pointer-events: none !important; transition: opacity .32s !important; backdrop-filter: blur(3px) !important; }
.em-drawer-overlay.open { opacity: 1 !important; pointer-events: auto !important; }
.em-drawer-header { display: flex !important; align-items: center !important; justify-content: space-between !important; padding: 16px 20px !important; border-bottom: 1px solid #e5e7eb !important; }
.em-drawer-header img { display: block !important; width: auto !important; height: 54px !important; max-width: 110px !important; object-fit: contain !important; background: transparent !important; box-shadow: none !important; }
[data-theme="dark"] .em-drawer-header { border-bottom-color: #21262d !important; }
.em-drawer-close { width: 34px !important; height: 34px !important; border-radius: 50% !important; background: #f3f4f6 !important; border: 1.5px solid #e5e7eb !important; color: #111827 !important; font-size: 15px !important; cursor: pointer !important; display: flex !important; align-items: center !important; justify-content: center !important; transition: all .2s !important; }
.em-drawer-close:hover { background: #cc1a1a !important; border-color: #cc1a1a !important; color: #fff !important; }
.em-drawer-nav { list-style: none !important; margin: 0 !important; padding: 12px !important; flex: 1 !important; }
.em-drawer-nav li { margin-bottom: 2px !important; }
.em-drawer-nav a { display: flex !important; align-items: center !important; gap: 11px !important; padding: 11px 14px !important; border-radius: 8px !important; font-size: 14px !important; font-weight: 600 !important; color: #111827 !important; transition: all .2s !important; font-family: 'Inter', sans-serif !important; text-decoration: none !important; }
.em-drawer-nav a:hover { background: rgba(204,26,26,.07) !important; color: #cc1a1a !important; padding-left: 18px !important; }
[data-theme="dark"] .em-drawer-nav a { color: #e6edf3 !important; }
.em-drawer-socials { display: flex !important; gap: 8px !important; padding: 16px 20px !important; border-top: 1px solid #e5e7eb !important; flex-wrap: wrap !important; }
[data-theme="dark"] .em-drawer-socials { border-top-color: #21262d !important; }
.em-drawer-socials a { width: 36px !important; height: 36px !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; color: #fff !important; font-size: 14px !important; text-decoration: none !important; transition: transform .2s !important; }
.em-drawer-socials a:hover { transform: translateY(-2px) !important; }

/* 10. COOKIE */
.em-cookie-banner { position: fixed !important; bottom: 24px !important; right: 24px !important; z-index: 9990 !important; background: #fff !important; border: 1px solid #e5e7eb !important; border-radius: 16px !important; padding: 20px 24px !important; max-width: 340px !important; box-shadow: 0 12px 40px rgba(0,0,0,.14) !important; transform: translateX(calc(100% + 32px)) !important; transition: transform .4s cubic-bezier(.4,0,.2,1) !important; }
[data-theme="dark"] .em-cookie-banner { background: #161b22 !important; border-color: #21262d !important; }
.em-cookie-banner.show { transform: translateX(0) !important; }
.em-cookie-banner h3 img { display: block !important; width: auto !important; height: 22px !important; max-width: 120px !important; object-fit: contain !important; flex-shrink: 0 !important; }
.em-cookie-actions { display: flex !important; gap: 10px !important; margin-top: 14px !important; }
.em-cookie-accept { flex: 1 !important; padding: 9px 16px !important; background: #cc1a1a !important; color: #fff !important; border: none !important; border-radius: 8px !important; font-size: 13px !important; font-weight: 700 !important; cursor: pointer !important; font-family: 'Inter', sans-serif !important; transition: background .2s !important; }
.em-cookie-accept:hover { background: #0a1628 !important; }
.em-cookie-decline { flex: 1 !important; padding: 9px 16px !important; background: #f3f4f6 !important; color: #6b7280 !important; border: 1.5px solid #e5e7eb !important; border-radius: 8px !important; font-size: 13px !important; font-weight: 600 !important; cursor: pointer !important; font-family: 'Inter', sans-serif !important; transition: all .2s !important; }
.em-cookie-decline:hover { border-color: #9ca3af !important; color: #374151 !important; }

/* 11. FOOTER */
.em-footer { background: #080e1c !important; color: #9ca3af !important; padding: 56px 0 0 !important; font-family: 'Inter', sans-serif !important; position: relative !important; border-top: none !important; }
.em-footer::before { content: '' !important; position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; height: 3px !important; background: linear-gradient(90deg, #cc1a1a 0%, #0e8cc6 50%, #cc1a1a 100%) !important; }
.em-footer__inner { max-width: 1360px !important; margin: 0 auto !important; padding: 0 24px !important; display: grid !important; grid-template-columns: 1.6fr 1fr 1fr 1fr !important; gap: 40px !important; }
.em-footer-heading { color: #fff !important; font-size: 11px !important; font-weight: 800 !important; text-transform: uppercase !important; letter-spacing: 2px !important; margin-bottom: 20px !important; padding-bottom: 10px !important; border-bottom: 1px solid rgba(255,255,255,.07) !important; font-family: 'Inter', sans-serif !important; }
.em-footer-links { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex !important; flex-direction: column !important; gap: 10px !important; }
.em-footer-links a { color: #6b7280 !important; font-size: 13.5px !important; display: flex !important; align-items: center !important; gap: 7px !important; text-decoration: none !important; transition: color .2s, padding-left .2s !important; }
.em-footer-links a:hover { color: #fff !important; padding-left: 4px !important; }
.em-footer-links a::before { content: ">" !important; color: #cc1a1a !important; font-size: 14px !important; font-weight: 700 !important; }
.em-footer-socials { display: flex !important; gap: 8px !important; margin-bottom: 14px !important; flex-wrap: wrap !important; }
.em-footer-social-btn { width: 36px !important; height: 36px !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; color: #fff !important; font-size: 14px !important; text-decoration: none !important; transition: transform .2s !important; }
.em-footer-social-btn:hover { transform: translateY(-2px) !important; }
.em-footer-desc { font-size: 13.5px !important; color: #6b7280 !important; line-height: 1.7 !important; margin-bottom: 18px !important; }
.em-footer-address > div { display: flex !important; align-items: center !important; gap: 10px !important; font-size: 13px !important; color: #6b7280 !important; margin-bottom: 7px !important; }
.em-footer-address i { color: #cc1a1a !important; }
.em-footer__bottom { margin-top: 48px !important; border-top: 1px solid rgba(255,255,255,.05) !important; padding: 18px 0 !important; }

/* 12. BACK TO TOP */
.em-back-top { position: fixed !important; bottom: 28px !important; right: 28px !important; width: 42px !important; height: 42px !important; border-radius: 50% !important; background: #0a1628 !important; color: #fff !important; border: none !important; cursor: pointer !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 15px !important; box-shadow: 0 4px 16px rgba(0,0,0,.2) !important; opacity: 0 !important; pointer-events: none !important; transition: all .25s !important; z-index: 999 !important; text-decoration: none !important; }
.em-back-top.visible { opacity: 1 !important; pointer-events: auto !important; }
.em-back-top:hover { background: #cc1a1a !important; transform: translateY(-3px) !important; box-shadow: 0 8px 24px rgba(204,26,26,.4) !important; color: #fff !important; }

/* 13. RESPONSIVE */
@media (min-width: 768px) and (max-width: 991px) {
  .em-search-input { display: block !important; width: 210px !important; }
  .em-search-btn-mobile { display: none !important; }
}
@media (max-width: 768px) {
  .em-hero { padding: 0 12px !important; }
  .em-section { padding: 0 12px !important; }
  .em-footer__inner { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
}
@media (max-width: 480px) {
  .em-footer__inner { grid-template-columns: 1fr !important; }
}

/* ══════════════════════════════════════════════════════
   PART 5 — NAVBAR ARROWS + TICKER STICKY + 3-COL SECTIONS
   ══════════════════════════════════════════════════════ */

/* ── Navbar wrapper avec flèches ── */
.em-navbar-wrapper {
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  max-width: 1360px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  width: 100% !important;
  overflow: hidden !important;
}
.em-navbar__inner {
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
}
.em-navbar__inner::-webkit-scrollbar { display: none !important; }

/* Flèches de navigation premium */
.em-navbar-arrow {
  flex-shrink: 0 !important;
  width: 36px !important;
  height: 100% !important;
  min-height: 38px !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #cc1a1a !important;
  font-size: 12px !important;
  z-index: 10 !important;
  position: relative !important;
  transition: all .2s !important;
  padding: 0 !important;
}
.em-navbar-arrow--left {
  background: linear-gradient(to right, #fff 60%, transparent) !important;
}
.em-navbar-arrow--right {
  background: linear-gradient(to left, #fff 60%, transparent) !important;
}
[data-theme="dark"] .em-navbar-arrow--left {
  background: linear-gradient(to right, #111827 60%, transparent) !important;
  color: #cc1a1a !important;
}
[data-theme="dark"] .em-navbar-arrow--right {
  background: linear-gradient(to left, #111827 60%, transparent) !important;
  color: #cc1a1a !important;
}
.em-navbar-arrow:hover .fa-chevron-left,
.em-navbar-arrow:hover .fa-chevron-right {
  transform: scale(1.35) !important;
}
.em-navbar-arrow .fa-chevron-left,
.em-navbar-arrow .fa-chevron-right {
  transition: transform .2s cubic-bezier(.4,0,.2,1) !important;
  display: block !important;
}

/* ── Ticker sticky ── */
.em-ticker {
  position: sticky !important;
  top: 126px !important;
  z-index: 997 !important;
  border-bottom: 1px solid #e5e7eb !important;
}
[data-theme="dark"] .em-ticker { border-bottom-color: #21262d !important; }

/* Ticker animé plus lent (180s) — déclaration unique */
.em-ticker__items {
  animation: em-ticker-scroll 180s linear infinite !important;
}
/* Note: @keyframes en-dessous dans modern.css — on surcharge la durée seulement */

/* ── LAYOUT 3 COLONNES PAR SECTION ── */
.em-section-3col {
  display: grid !important;
  grid-template-columns: 220px 1fr 210px !important;
  gap: 18px !important;
  align-items: start !important;
}

/* Colonnes latérales : sticky pendant le scroll de leur section */
.em-section-col--left,
.em-section-col--right {
  position: sticky !important;
  top: var(--em-sticky-offset, 181px) !important;
  align-self: start !important;
  overflow: hidden !important;
}

/* Featured vertical gauche */
.em-card--col-featured {
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  transition: all .25s cubic-bezier(.4,0,.2,1) !important;
}
.em-card--col-featured:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
  transform: translateY(-3px) !important;
}
[data-theme="dark"] .em-card--col-featured {
  background: #161b22 !important;
  border-color: #21262d !important;
}
.em-card--col-featured .cf-img {
  width: 100% !important;
  aspect-ratio: 4/3 !important;
  object-fit: cover !important;
  display: block !important;
}
.em-card--col-featured .cf-body { padding: 14px !important; }
.em-card--col-featured .cf-cat {
  font-size: 9px !important; font-weight: 900 !important;
  font-family: 'Inter', sans-serif !important;
  text-transform: uppercase !important; letter-spacing: 1.5px !important;
  color: #cc1a1a !important; display: block !important; margin-bottom: 6px !important;
}
.em-card--col-featured .cf-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 15px !important; font-weight: 700 !important;
  color: #111827 !important; line-height: 1.35 !important;
  text-decoration: none !important; display: block !important;
  transition: color .2s !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 4 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
.em-card--col-featured .cf-title:hover { color: #cc1a1a !important; }
[data-theme="dark"] .em-card--col-featured .cf-title { color: #e6edf3 !important; }
.em-card--col-featured .cf-meta {
  font-size: 11px !important; color: #9ca3af !important;
  font-family: 'Inter', sans-serif !important;
  margin-top: 10px !important; padding-top: 10px !important;
  border-top: 1px solid #f3f4f6 !important;
  display: flex !important; gap: 10px !important;
}
[data-theme="dark"] .em-card--col-featured .cf-meta { border-top-color: #21262d !important; }

/* Centre grid — toujours 2 colonnes dans la section 3col */
.em-section-col--main .em-cat-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}
@media (max-width: 1200px) {
  .em-section-col--main .em-cat-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Colonne droite : liste compacte */
.em-col-list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.em-col-list-item {
  display: flex !important;
  gap: 10px !important;
  padding: 9px 0 !important;
  border-bottom: 1px solid #f3f4f6 !important;
  align-items: flex-start !important;
}
[data-theme="dark"] .em-col-list-item { border-bottom-color: #21262d !important; }
.em-col-list-item:last-child { border-bottom: none !important; }
.em-col-list-img {
  width: 62px !important; height: 48px !important;
  object-fit: cover !important; border-radius: 4px !important;
  flex-shrink: 0 !important; display: block !important;
}
.em-col-list-body { flex: 1 !important; min-width: 0 !important; }
.em-col-list-cat {
  font-size: 8.5px !important; font-weight: 800 !important;
  font-family: 'Inter', sans-serif !important;
  text-transform: uppercase !important; letter-spacing: 1px !important;
  color: #cc1a1a !important; display: block !important; margin-bottom: 2px !important;
}
.em-col-list-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 11.5px !important; font-weight: 700 !important;
  color: #111827 !important; line-height: 1.3 !important;
  display: -webkit-box !important; -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important; overflow: hidden !important;
  text-decoration: none !important; transition: color .2s !important;
}
.em-col-list-title:hover { color: #cc1a1a !important; }
[data-theme="dark"] .em-col-list-title { color: #e6edf3 !important; }
.em-col-list-time {
  font-size: 9.5px !important; color: #9ca3af !important;
  font-family: 'Inter', sans-serif !important; margin-top: 3px !important;
}

/* Responsive 3col */
@media (max-width: 1200px) {
  .em-section-3col {
    grid-template-columns: 260px minmax(0, 1fr) 200px !important;
  }
  .em-section-col--left,
  .em-section-col--right {
    display: block !important;
    position: static !important;
  }
}
@media (max-width: 900px) {
  .em-section-3col { grid-template-columns: 1fr !important; }
  .em-section-col--right { display: none !important; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  body {
    min-width: 0 !important;
  }

  .em-homepage-main .em-section-3col,
  .em-section-3col {
    display: grid !important;
    grid-template-columns: 260px minmax(0, 1fr) 210px !important;
    gap: 16px !important;
  }

  .em-section-col--left,
  .em-section-col--right {
    display: block !important;
    position: static !important;
    min-width: 0 !important;
  }

  .em-section-col--main {
    min-width: 0 !important;
  }

  .em-topbar__inner,
  .em-header__inner,
  .em-navbar__inner,
  .em-section,
  .em-hero,
  .em-datastory-section {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .em-header__inner {
    grid-template-columns: 120px 1fr 160px !important;
    gap: 12px !important;
  }

  .em-header__logo img {
    height: 42px !important;
  }

  .em-search-wrap {
    display: none !important;
  }

  .em-nav-item {
    padding: 12px 10px !important;
    font-size: 10px !important;
  }

  .em-hero__grid {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    height: 360px !important;
    gap: 0 !important;
  }

  .em-hero__left,
  .em-hero__right {
    display: none !important;
  }

  .em-hero__main {
    min-height: 360px !important;
    height: 360px !important;
  }

  .em-homepage-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .em-homepage-aside,
  .em-section-col--right {
    display: none !important;
    position: static !important;
  }

  .em-homepage-main .em-section-3col,
  .em-section-3col {
    display: grid !important;
    grid-template-columns: 260px minmax(0, 1fr) 210px !important;
    gap: 16px !important;
  }

  .em-section-col--main {
    display: block !important;
    width: 100% !important;
  }

  .em-section-center-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .em-card,
  .em-card--col-featured,
  .em-section-center-grid .em-card {
    border-radius: 12px !important;
  }

  .em-card__body,
  .em-section-center-grid .em-card__body,
  .em-card--col-featured .cf-body {
    padding: 18px !important;
  }

  .em-section-col--main .em-card__title,
  .em-card__title,
  .em-card--col-featured .cf-title {
    font-size: 19px !important;
    line-height: 1.38 !important;
  }

  .em-card__meta,
  .em-section-center-grid .em-card__meta,
  .em-card--col-featured .cf-meta {
    font-size: 11px !important;
    gap: 12px !important;
  }

  .em-section {
    margin-bottom: 28px !important;
    padding-bottom: 24px !important;
  }
}

/* ── DATA STORY SECTION ── */
.em-datastory-section {
  max-width: 1360px !important;
  margin: 0 auto 44px !important;
  padding: 0 24px !important;
}
.em-datastory-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 20px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid #0e8cc6 !important;
  position: relative !important;
}
.em-datastory-header::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important; bottom: -2px !important;
  width: 56px !important; height: 2px !important;
  background: #cc1a1a !important;
}
.em-datastory-header h2 {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 21px !important; font-weight: 800 !important;
  color: #111827 !important; text-transform: uppercase !important;
  letter-spacing: .3px !important; margin: 0 !important;
  display: flex !important; align-items: center !important; gap: 10px !important;
}
[data-theme="dark"] .em-datastory-header h2 { color: #e6edf3 !important; }
.em-datastory-badge {
  background: linear-gradient(135deg, #0e8cc6, #0a1628) !important;
  color: #fff !important; font-family: 'Inter', sans-serif !important;
  font-size: 9px !important; font-weight: 900 !important;
  text-transform: uppercase !important; letter-spacing: 2px !important;
  padding: 3px 9px !important; border-radius: 3px !important;
  vertical-align: middle !important;
}
.em-datastory-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 18px !important;
}
@media (max-width: 900px) {
  .em-datastory-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 480px) {
  .em-datastory-grid { grid-template-columns: 1fr !important; }
}
.em-datastory-card {
  background: #0a1628 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  position: relative !important;
  display: block !important;
  text-decoration: none !important;
  transition: all .28s cubic-bezier(.4,0,.2,1) !important;
  aspect-ratio: 16/10 !important;
}
.em-datastory-card:hover { transform: translateY(-4px) !important; box-shadow: 0 12px 32px rgba(14,140,198,.3) !important; }
.em-datastory-card img {
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; display: block !important;
  opacity: .55 !important; transition: opacity .3s, transform .5s !important;
}
.em-datastory-card:hover img { opacity: .4 !important; transform: scale(1.04) !important; }
.em-datastory-card-overlay {
  position: absolute !important; inset: 0 !important;
  background: linear-gradient(to top, rgba(10,22,40,.95) 0%, rgba(10,22,40,.4) 60%, transparent 100%) !important;
  display: flex !important; flex-direction: column !important;
  justify-content: flex-end !important; padding: 18px !important;
}
.em-datastory-card-label {
  font-family: 'Inter', sans-serif !important;
  font-size: 9px !important; font-weight: 900 !important;
  color: #0e8cc6 !important; text-transform: uppercase !important;
  letter-spacing: 2px !important; margin-bottom: 6px !important;
  display: flex !important; align-items: center !important; gap: 5px !important;
}
.em-datastory-card-label::before {
  content: '' !important;
  display: inline-block !important;
  width: 20px !important; height: 1.5px !important;
  background: #0e8cc6 !important;
}
.em-datastory-card-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 15px !important; font-weight: 800 !important;
  color: #fff !important; line-height: 1.3 !important;
}
.em-datastory-chart-icon {
  position: absolute !important; top: 12px !important; right: 14px !important;
  color: rgba(14,140,198,.7) !important; font-size: 24px !important;
}

/* ══ CARTES DANS LA SECTION 3COL — Compactes et lisibles ══ */
.em-section-col--main .em-card__img-wrap {
  aspect-ratio: 3/2 !important;
}
.em-section-col--main .em-card__body {
  padding: 12px !important;
}
.em-section-col--main .em-card__title {
  font-size: 13.5px !important;
  -webkit-line-clamp: 4 !important;
  margin-bottom: 6px !important;
}
.em-section-col--main .em-card__meta {
  padding-top: 8px !important;
  font-size: 10.5px !important;
}

/* ══ COLONNE DROITE : Agrandir les images miniatures ══ */
.em-col-list-img {
  width: 72px !important;
  height: 54px !important;
}

/* ══ COLONNE GAUCHE : Image du featured proportionée ══ */
.em-card--col-featured .cf-img {
  aspect-ratio: 3/2 !important;
  min-height: 160px !important;
}
.em-card--col-featured .cf-body {
  padding: 12px !important;
}
.em-card--col-featured .cf-title {
  font-size: 14px !important;
}

/* ══ SECTIONS : Espacement entre les rubriques ══ */
.em-section {
  margin-bottom: 36px !important;
  padding-bottom: 36px !important;
  border-bottom: 1px solid #e5e7eb !important;
}
[data-theme="dark"] .em-section { border-bottom-color: #21262d !important; }
.em-section:last-child { border-bottom: none !important; }

/* ══ HEADER SECTION : Titre rubrique unifié ══ */
.em-section__header {
  border-bottom: 2px solid #cc1a1a !important;
  padding-bottom: 10px !important;
  margin-bottom: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.em-section__title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0a1628 !important;
  text-transform: uppercase !important;
  letter-spacing: .3px !important;
  margin: 0 !important;
  position: relative !important;
}
[data-theme="dark"] .em-section__title { color: #e6edf3 !important; }


/* ══ FORCE SURCHARGE : grille centre TOUJOURS 2 colonnes ══
   Specificitee maximale pour vaincre le repeat(4,1fr) global */
div.em-section-col--main div.em-cat-grid,
.em-section-3col .em-section-col--main .em-cat-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
}
/* S'assurer que les cartes dans cette grille n ont pas de spanning */
.em-section-3col .em-section-col--main .em-cat-grid .em-card--featured {
  grid-column: span 1 !important;
  flex-direction: column !important;
}
.em-section-3col .em-section-col--main .em-cat-grid .em-card--featured .em-card__img-wrap {
  width: 100% !important;
  aspect-ratio: 3/2 !important;
  min-height: unset !important;
}


/* ══════════════════════════════════════════
   HOMEPAGE GRID : Main + Sidebar (rem. Bootstrap col-lg-8)
══════════════════════════════════════════ */
.em-homepage-body { padding: 24px 0 40px; }
.em-homepage-grid {
  display: grid !important;
  grid-template-columns: 1fr 310px !important;
  gap: 28px !important;
  align-items: start !important;
}
@media (max-width: 1024px) { .em-homepage-grid { grid-template-columns: 1fr !important; } }
.em-homepage-aside { position: sticky !important; top: var(--em-aside-top, var(--em-sticky-offset, 181px)) !important; }
@media (max-width: 1024px) { .em-homepage-aside { position: static !important; } }

/* Retire le col-lg-4 que sidebar.php injecte via Bootstrap */
.em-homepage-aside .col-lg-4,
.em-homepage-aside [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: unset !important;
  padding: 0 !important;
}

/* ══════════════════════════════════════════
   SECTION CENTER GRID : 2 colonnes propres
══════════════════════════════════════════ */
.em-section-center-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
}
@media (max-width: 600px) {
  .em-section-center-grid { grid-template-columns: 1fr !important; }
}
/* Assure que em-card dedans n est pas featured (pas de span-2) */
.em-section-center-grid .em-card--featured {
  grid-column: span 1 !important;
  flex-direction: column !important;
}
.em-section-center-grid .em-card--featured .em-card__img-wrap {
  width: 100% !important;
  aspect-ratio: 3/2 !important;
  min-height: unset !important;
}

/* ══════════════════════════════════════════
   SECTION 3COL : avec la nouvelle main column pleine largeur
   La grille ne change pas mais les proportions s ajustent
══════════════════════════════════════════ */
.em-section-3col {
  grid-template-columns: 200px 1fr 200px !important;
  gap: 16px !important;
}
@media (max-width: 900px) {
  .em-section-3col { grid-template-columns: 1fr !important; }
  .em-section-col--left, .em-section-col--right { position: static !important; }
}


/* ═══════════════════════════════════════════════════════════════
   AUDIT FIX v7.0 — Corrections complètes et cohérentes
   ExpressMedias.net — 2026-07-27
   ═══════════════════════════════════════════════════════════════ */

/* ── 2. HERO : liens sans déco et structure propre ── */
.em-hero__left-link,
.em-hero__main-link,
.em-hero__feed-link {
  display: block !important;
  text-decoration: none !important;
  color: inherit !important;
}
.em-hero__left-body { padding-top: 8px !important; }
.em-hero__main-link { position: absolute !important; inset: 0 !important; z-index: 0 !important; }
.em-hero__main { position: relative !important; }
.em-hero__main-overlay { position: relative !important; z-index: 2 !important; pointer-events: none !important; }
.em-hero__main-overlay a { pointer-events: auto !important; }
/* h1 dans hero : pas de marge parasite */
.em-hero__main-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: clamp(19px, 2.2vw, 28px) !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.22 !important;
  margin: 0 0 14px !important;
  text-decoration: none !important;
  display: block !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.5) !important;
}
.em-hero__feed-link { display: flex !important; gap: 10px !important; align-items: flex-start !important; }

/* ── 3. ARTICLE VEDETTE GAUCHE : nouvelle structure cf-img-wrap ── */
.cf-img-wrap {
  width: 100% !important;
  overflow: hidden !important;
  line-height: 0 !important;
}
.cf-img {
  width: 100% !important;
  aspect-ratio: 4/3 !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform .4s ease !important;
}
.em-card--col-featured:hover .cf-img { transform: scale(1.04) !important; }

/* ── 4. CARTES CENTRALES : images affichées correctement ── */
.em-section-center-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
}
@media (max-width: 640px) {
  .em-section-center-grid { grid-template-columns: 1fr !important; }
}
.em-card__img-link {
  display: block !important;
  text-decoration: none !important;
  overflow: hidden !important;
}
.em-section-center-grid .em-card__img-wrap {
  width: 100% !important;
  aspect-ratio: 16/10 !important;
  overflow: hidden !important;
  position: relative !important;
  display: block !important;
  background: #f3f4f6 !important;
}
.em-section-center-grid .em-card__img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform .4s ease !important;
}
.em-section-center-grid .em-card:hover .em-card__img-wrap img {
  transform: scale(1.05) !important;
}
.em-section-center-grid .em-card__body {
  padding: 12px !important;
}
.em-section-center-grid .em-card__title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  line-height: 1.35 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 4 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-decoration: none !important;
  transition: color .2s !important;
  margin-bottom: 8px !important;
  display: block !important;
}
.em-section-center-grid .em-card__title:hover { color: #cc1a1a !important; }
[data-theme="dark"] .em-section-center-grid .em-card__title { color: #e6edf3 !important; }
.em-section-center-grid .em-card__cat {
  position: absolute !important;
  top: 8px !important; left: 8px !important;
  background: #cc1a1a !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  font-family: 'Inter', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  padding: 3px 7px !important;
  border-radius: 2px !important;
}
.em-section-center-grid .em-card__meta {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 10.5px !important;
  color: #6b7280 !important;
  font-family: 'Inter', sans-serif !important;
  padding-top: 8px !important;
  border-top: 1px solid #f3f4f6 !important;
}
[data-theme="dark"] .em-section-center-grid .em-card__meta { border-top-color: #21262d !important; color: #9ca3af !important; }

/* ── 5. LISTE DROITE : image lien ── */
.em-col-list-img-link {
  display: block !important;
  flex-shrink: 0 !important;
  line-height: 0 !important;
}

/* ── 6. HOMEPAGE GRID (main + aside) ── */
.em-homepage-body { padding: 28px 0 48px !important; background: transparent !important; }
.em-homepage-grid {
  display: grid !important;
  grid-template-columns: 1fr 300px !important;
  gap: 32px !important;
  align-items: start !important;
}
@media (max-width: 1100px) { .em-homepage-grid { grid-template-columns: 1fr !important; } }
.em-homepage-main { min-width: 0 !important; }
.em-homepage-aside {
  position: sticky !important;
  top: var(--em-aside-top, var(--em-sticky-offset, 181px)) !important;
  min-width: 0 !important;
}
@media (max-width: 1100px) { .em-homepage-aside { position: static !important; } }

/* Neutralise Bootstrap col-lg-4 dans l'aside */
.em-homepage-aside > [class*="col-"],
.em-homepage-aside > .col-lg-4 {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ── 7. SECTION (dans main, pas de container externe) ── */
.em-homepage-main .em-section {
  max-width: none !important;
  padding: 0 !important;
  margin-bottom: 40px !important;
  padding-bottom: 40px !important;
  border-bottom: 1px solid #e5e7eb !important;
}
[data-theme="dark"] .em-homepage-main .em-section { border-bottom-color: #21262d !important; }
.em-homepage-main .em-section:last-of-type { border-bottom: none !important; margin-bottom: 0 !important; }

/* ── 8. SECTION 3COL : proportions correctes dans la homepage ── */
.em-homepage-main .em-section-3col {
  grid-template-columns: 210px 1fr 195px !important;
  gap: 18px !important;
}
@media (max-width: 900px) {
  .em-homepage-main .em-section-3col {
    grid-template-columns: 1fr !important;
  }
  .em-section-col--left, .em-section-col--right {
    position: static !important;
  }
}

/* ── 9. DATA-STORY : plus de titres complets ── */
.em-datastory-card-date {
  font-size: 10px !important;
  color: rgba(255,255,255,.5) !important;
  font-family: 'Inter', sans-serif !important;
  margin-top: 6px !important;
  display: block !important;
}
.em-datastory-more { color: #0e8cc6 !important; }
.em-datastory-more:hover { color: #fff !important; }

/* ── 10. SIDEBAR : supprimer le col-lg-4 Bootstrap ── */
.em-homepage-aside .em-sidebar {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}
/* Pub carousel dans sidebar : aspect propre */
.em-sidebar-widget .carousel img {
  border-radius: 8px !important;
  max-height: 240px !important;
  object-fit: cover !important;
  width: 100% !important;
}

/* ── 11. NAVBAR ARROW : assurer que le texte ne déborde pas ── */
.em-navbar-arrow { overflow: hidden !important; text-overflow: clip !important; }
.em-navbar-arrow i { font-size: 11px !important; }

/* ── 12. TICKER BULLET : vrai bullet Unicode ── */
.em-ticker__item::before {
  content: "•" !important;
  color: #cc1a1a !important;
  font-size: 12px !important;
  flex-shrink: 0 !important;
}

/* ── 13. IMAGES : fallback quand src manquante ── */
img[src=""],
img:not([src]) {
  background: #f3f4f6 !important;
  min-height: 40px !important;
}


/* ── 14. NAVBAR ARROWS : Supprimer l'effet de transparence qui laisse un L visible ── */
.em-navbar-arrow--left {
  background: #ffffff !important;
  box-shadow: 4px 0 8px rgba(0,0,0,0.05) !important;
}
.em-navbar-arrow--right {
  background: #ffffff !important;
  box-shadow: -4px 0 8px rgba(0,0,0,0.05) !important;
}
[data-theme="dark"] .em-navbar-arrow--left,
[data-theme="dark"] .em-navbar-arrow--right {
  background: #111827 !important;
  box-shadow: none !important;
}
.em-navbar-wrapper {
  position: relative;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════
   BLOC AUTEUR / META PREMIUM — single.php
   ══════════════════════════════════════════════════ */

/* Conteneur global du bloc */
.em-author-meta-block {
  margin: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Carte auteur ── */
.em-author-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--em-surface-2, #f8f9fb);
  border: 1px solid var(--em-border, #e5e7eb);
  transition: box-shadow 0.2s;
}
[data-theme="dark"] .em-author-card {
  background: #161b22;
  border-color: #30363d;
}
.em-author-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.07); }

/* Avatar */
.em-author-avatar-wrap { flex-shrink: 0; }
.em-author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e8f0fe;
  box-shadow: 0 2px 8px rgba(15,93,180,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #0f5db4; background: #e8f0fe;
}
[data-theme="dark"] .em-author-avatar {
  border-color: #1a3557; background: #1a3557; color: #60a5fa;
}
.em-author-avatar--placeholder { font-size: 24px; }

/* Nom auteur */
.em-author-name {
  display: block; font-size: 15px; font-weight: 700;
  color: var(--em-text-primary, #111827);
  letter-spacing: -.01em; line-height: 1.3;
}
[data-theme="dark"] .em-author-name { color: #e6edf3; }

/* Ligne meta */
.em-author-metarow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px;
}
.em-meta-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500; color: var(--em-text-muted, #6b7280);
}
.em-meta-chip i { font-size: 11px; opacity: .8; }
.em-meta-sep { color: #d1d5db; font-size: 14px; line-height: 1; }
[data-theme="dark"] .em-meta-chip  { color: #8b949e; }
[data-theme="dark"] .em-meta-sep   { color: #30363d; }

/* ── Barre de partage premium ── */
.em-share-bar {
  position: static !important;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 12px 16px; border-radius: 12px;
  background: var(--em-surface-2, #f8f9fb);
  border: 1px solid var(--em-border, #e5e7eb);
}
[data-theme="dark"] .em-share-bar { background: #161b22; border-color: #30363d; }
.em-share-label {
  font-size: 12px; font-weight: 700; color: var(--em-text-secondary, #374151);
  text-transform: uppercase; letter-spacing: .06em;
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
[data-theme="dark"] .em-share-label { color: #8b949e; }
.em-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Pills */
.em-share-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 50px;
  font-size: 13px; font-weight: 600;
  text-decoration: none !important; border: none; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  line-height: 1; white-space: nowrap;
}
.em-share-pill i { font-size: 13px; }
.em-share-pill span { font-size: 12px; font-weight: 600; }
.em-share-pill:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.15); filter: brightness(1.07); }
.em-share-pill:active { transform: translateY(0); }
.em-share-pill--fb  { background: #1877f2; color: #fff !important; }
.em-share-pill--tw  { background: #000;    color: #fff !important; }
.em-share-pill--wa  { background: #25d366; color: #fff !important; }
.em-share-pill--copy {
  background: var(--em-surface, #fff);
  color: var(--em-text-primary, #111827) !important;
  border: 1.5px solid var(--em-border, #e5e7eb);
}
[data-theme="dark"] .em-share-pill--copy { background: #21262d; color: #e6edf3 !important; border-color: #30363d; }

/* ── Chips éditoriales ── */
.em-editorial-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 12px 16px; border-radius: 12px;
  background: var(--em-surface-2, #f8f9fb);
  border: 1px solid var(--em-border, #e5e7eb);
}
[data-theme="dark"] .em-editorial-chips { background: #161b22; border-color: #30363d; }
.em-editorial-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 50px; font-size: 12px;
  background: rgba(15,93,180,.07);
  border: 1px solid rgba(15,93,180,.16);
  color: var(--em-text-primary, #111827);
  transition: background 0.18s, box-shadow 0.18s;
}
.em-editorial-chip:hover { background: rgba(15,93,180,.13); box-shadow: 0 2px 8px rgba(15,93,180,.1); }
[data-theme="dark"] .em-editorial-chip { background: rgba(96,165,250,.09); border-color: rgba(96,165,250,.2); color: #e6edf3; }
.em-editorial-chip i { font-size: 11px; color: #0f5db4; flex-shrink: 0; }
[data-theme="dark"] .em-editorial-chip i { color: #60a5fa; }
.em-editorial-chip__label {
  font-weight: 700; color: #0f5db4;
  font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
}
[data-theme="dark"] .em-editorial-chip__label { color: #60a5fa; }
.em-editorial-chip__value { font-weight: 500; color: var(--em-text-secondary, #374151); }
[data-theme="dark"] .em-editorial-chip__value { color: #c9d1d9; }

/* Mobile */
@media (max-width: 576px) {
  .em-author-card { padding: 12px; gap: 12px; }
  .em-author-avatar { width: 44px; height: 44px; }
  .em-share-pill span { display: none; }
  .em-share-pill { padding: 8px 12px; }
  .em-share-bar { gap: 6px; padding: 10px 12px; }
}

/* ══════════════════════════════════════════════════
   HERO CAROUSEL PREMIUM — index.php
   ══════════════════════════════════════════════════ */

/* Grille hero : carousel + fil EN CONTINU */
.em-hero {
  background: #0a1628;
  padding: 0;
  width: 100%;
}
.em-hero__grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  min-height: 480px;
  max-height: 520px;
}

/* ── Wrapper carousel ── */
.em-hero__carousel-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
.em-hero__carousel-wrap .carousel,
.em-hero__carousel-wrap .carousel-inner {
  height: 100%;
}

/* ── Slide ── */
.em-hero-slide { height: 480px; position: relative; }
.em-hero-slide__link {
  display: block;
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
}
.em-hero-slide__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 7s ease;
  display: block;
}
.carousel-item.active .em-hero-slide__img {
  transform: scale(1.04);
}

/* Gradient overlay noir en bas */
.em-hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.88) 0%,
    rgba(0,0,0,.55) 40%,
    rgba(0,0,0,.08) 70%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
}

/* Contenu textuel de la slide */
.em-hero-slide__body {
  padding: 28px 32px;
  width: 100%;
  transform: translateY(6px);
  transition: transform 0.5s ease;
}
.carousel-item.active .em-hero-slide__body {
  transform: translateY(0);
}

/* Badge catégorie */
.em-hero-slide__cat {
  display: inline-block;
  background: #e41e26;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}

/* Titre */
.em-hero-slide__title {
  color: #fff;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 10px;
  font-family: 'Inter', sans-serif;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Méta date / vues */
.em-hero-slide__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,.75);
  font-size: 12px;
  margin-bottom: 14px;
}
.em-hero-slide__meta i { margin-right: 4px; }

/* Bouton CTA */
.em-hero-slide__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.25);
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none !important;
}
.em-hero-slide__link:hover .em-hero-slide__cta {
  background: #e41e26;
  border-color: #e41e26;
}

/* ── Indicateurs (points) ── */
.em-carousel-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 20;
  margin: 0;
  padding: 0;
  list-style: none;
}
.em-carousel-indicators button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  padding: 0; cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  flex-shrink: 0;
}
.em-carousel-indicators button.active,
.em-carousel-indicators button:hover {
  background: #fff;
  transform: scale(1.3);
}

/* ── Flèches de navigation ── */
.em-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.em-hero-arrow:hover {
  background: rgba(228,30,38,.85);
  border-color: #e41e26;
  transform: translateY(-50%) scale(1.08);
}
.em-hero-arrow--prev { left: 14px; }
.em-hero-arrow--next { right: 14px; }

/* ── Fil EN CONTINU (droite) ── */
.em-hero__right {
  background: #fff;
  border-left: 3px solid #e41e26;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
[data-theme="dark"] .em-hero__right {
  background: #0d1117;
  border-left-color: #e41e26;
}
.em-hero__right-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #0a1628;
  color: #fff;
  flex-shrink: 0;
}
.em-hero__right-header-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.em-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e41e26;
  animation: livePulse 1.2s infinite;
  flex-shrink: 0;
}
@keyframes livePulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.3); }
}
.em-hero__right-date {
  font-size: 11px;
  opacity: .7;
  font-variant-numeric: tabular-nums;
}
.em-hero__feed {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
}
.em-hero__feed-item {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}
[data-theme="dark"] .em-hero__feed-item { border-bottom-color: #21262d; }
.em-hero__feed-item:hover { background: #f9fafb; }
[data-theme="dark"] .em-hero__feed-item:hover { background: #161b22; }
.em-hero__feed-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none !important;
}
.em-hero__feed-img {
  width: 72px; height: 54px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.em-hero__feed-info { flex: 1; min-width: 0; }
.em-hero__feed-cat {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #e41e26;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 3px;
}
.em-hero__feed-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #111827;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-theme="dark"] .em-hero__feed-title { color: #e6edf3; }
.em-hero__feed-time {
  font-size: 11px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 4px;
}
.em-hero__right-footer {
  padding: 10px 14px;
  border-top: 1px solid #f0f0f0;
  text-align: right;
  flex-shrink: 0;
}
[data-theme="dark"] .em-hero__right-footer { border-top-color: #21262d; }
.em-hero__right-footer a {
  font-size: 12px;
  font-weight: 700;
  color: #e41e26 !important;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none !important;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .em-hero__grid {
    grid-template-columns: 1fr;
    max-height: none;
  }
  .em-hero-slide { height: 360px; }
  .em-hero__right { max-height: 320px; }
  .em-hero-slide__body { padding: 20px 20px; }
  .em-hero-slide__title { font-size: 18px; }
}
@media (max-width: 576px) {
  .em-hero-slide { height: 260px; }
  .em-hero-slide__body { padding: 16px; }
  .em-hero-slide__title { font-size: 15px; -webkit-line-clamp: 2; }
  .em-hero-slide__cta { display: none; }
  .em-hero-arrow { width: 36px; height: 36px; font-size: 14px; }
}

/* ═══════════════════════════════════════════════════════════
   CORRECTIONS CAROUSEL HERO & LAYOUT AÉRÉ
   ═══════════════════════════════════════════════════════════ */

/* Section Hero globale */
.em-hero {
  background: #f8f9fa !important;
  padding: 30px 0 !important;
}
[data-theme="dark"] .em-hero {
  background: #0d1117 !important;
}

/* Grille Hero : 2 colonnes, aérée, avec un beau gap */
.em-hero__grid {
  display: grid !important;
  grid-template-columns: 1fr 340px !important;
  gap: 24px !important;
  height: 480px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-bottom: 20px !important;
}

/* Wrap Carousel (colonne de gauche) */
.em-hero__carousel-wrap {
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
  height: 100% !important;
  position: relative;
}
[data-theme="dark"] .em-hero__carousel-wrap {
  box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important;
}

/* Fix pour Owl Carousel pour qu'il prenne 100% de la hauteur */
.em-hero__carousel, .em-hero__carousel .owl-stage-outer, .em-hero__carousel .owl-stage, .em-hero__carousel .owl-item {
  height: 100% !important;
}
.em-hero-slide {
  height: 100% !important;
  position: relative !important;
}
.em-hero-slide__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.em-hero-slide__overlay {
  background: linear-gradient(to top, rgba(10,22,40,0.95) 0%, rgba(10,22,40,0.4) 50%, transparent 100%) !important;
  padding: 40px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  position: absolute !important;
  inset: 0 !important;
}
.em-hero-slide__title {
  font-family: 'Playfair Display', serif !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
  margin-bottom: 12px !important;
}
.em-hero-slide__cat {
  background: #e41e26 !important;
  color: #fff !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  display: inline-block !important;
  margin-bottom: 12px !important;
  align-self: flex-start !important;
}

/* Custom Navigation Owl Carousel */
.em-hero__carousel .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}
.em-hero__carousel .owl-nav button {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.2) !important;
  backdrop-filter: blur(8px);
  border-radius: 50% !important;
  color: #fff !important;
  font-size: 18px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease !important;
}
.em-hero__carousel .owl-nav button:hover {
  background: #e41e26 !important;
  transform: scale(1.1);
}
.em-hero__carousel .owl-dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.em-hero__carousel .owl-dots .owl-dot span {
  width: 10px !important;
  height: 10px !important;
  background: rgba(255,255,255,0.4) !important;
  border-radius: 50% !important;
  margin: 0 !important;
  transition: all 0.3s ease !important;
}
.em-hero__carousel .owl-dots .owl-dot.active span {
  background: #e41e26 !important;
  width: 24px !important;
  border-radius: 10px !important;
}

/* Colonne droite EN CONTINU - Aérée et Scrollable */
.em-hero__right {
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
  height: 100% !important;
}
[data-theme="dark"] .em-hero__right {
  background: #161b22 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}
.em-hero__right-header {
  padding: 16px 20px !important;
  background: #0a1628 !important;
  color: #fff !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}
.em-hero__feed {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 0 !important;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.em-hero__feed::-webkit-scrollbar {
  width: 6px;
}
.em-hero__feed::-webkit-scrollbar-track {
  background: transparent;
}
.em-hero__feed::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 20px;
}
[data-theme="dark"] .em-hero__feed::-webkit-scrollbar-thumb {
  background-color: #30363d;
}
.em-hero__feed-item {
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 14px 20px !important;
}
[data-theme="dark"] .em-hero__feed-item {
  border-bottom-color: #21262d !important;
}
.em-hero__feed-link {
  display: flex !important;
  gap: 14px !important;
  text-decoration: none !important;
}
.em-hero__feed-img {
  width: 80px !important;
  height: 60px !important;
  border-radius: 8px !important;
  object-fit: cover !important;
}
.em-hero__feed-title {
  font-size: 14px !important;
  line-height: 1.4 !important;
  margin-bottom: 6px !important;
}

/* Responsive */
@media (max-width: 992px) {
  .em-hero__grid {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }
  .em-hero__carousel-wrap {
    height: 400px !important;
  }
  .em-hero__right {
    height: 400px !important;
    margin-top: 24px;
  }
}
@media (max-width: 576px) {
  .em-hero__carousel-wrap {
    height: 320px !important;
  }
  .em-hero-slide__overlay {
    padding: 20px !important;
  }
  .em-hero-slide__title {
    font-size: 20px !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   CHARGEMENT PROGRESSIF AJAX & ÉCONOMIE DE DONNÉES MOBILES
   ══════════════════════════════════════════════════════════════ */
@keyframes emFadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.em-fade-in {
  animation: emFadeInUp 0.35s ease-out forwards;
}

.em-ajax-loader-wrap {
  margin: 32px 0 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.em-ajax-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.em-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #cc1a1a;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(204, 26, 26, 0.22);
  transition: all 0.25s ease;
  outline: none;
}

.em-load-more-btn:hover {
  background: #b01414;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(204, 26, 26, 0.32);
  color: #ffffff !important;
}

.em-load-more-btn:active {
  transform: translateY(0);
}

.em-load-more-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.em-data-saver-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #64748b;
  background: #ffffff;
  padding: 6px 16px;
  border-radius: 30px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

[data-theme="dark"] .em-data-saver-badge {
  background: #161b22;
  border-color: #30363d;
  color: #94a3b8;
}

.em-all-loaded-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #e2e8f0;
}

[data-theme="dark"] .em-all-loaded-pill {
  background: #161b22;
  border-color: #30363d;
  color: #94a3b8;
}

/* Shimmer Skeleton */
@keyframes emShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.em-ajax-skeleton {
  width: 100%;
  margin-bottom: 24px;
}

.em-skeleton-header {
  height: 26px;
  width: 180px;
  border-radius: 6px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: emShimmer 1.5s infinite;
}

[data-theme="dark"] .em-skeleton-header {
  background: linear-gradient(90deg, #21262d 25%, #30363d 50%, #21262d 75%);
  background-size: 200% 100%;
}

.em-skeleton-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr;
  gap: 16px;
  height: 220px;
}

@media (max-width: 992px) {
  .em-skeleton-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
}

.em-skeleton-card {
  height: 100%;
  min-height: 160px;
  border-radius: 12px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: emShimmer 1.5s infinite;
}

[data-theme="dark"] .em-skeleton-card {
  background: linear-gradient(90deg, #21262d 25%, #30363d 50%, #21262d 75%);
  background-size: 200% 100%;
}


/* ══════════════════════════════════════════
   Correctifs du 29/10/2026
══════════════════════════════════════════ */

/* Classes Bootstrap 5 utilisées dans les gabarits alors que le site charge Bootstrap 4 */
.me-1 { margin-right: .25rem !important; }
.me-2 { margin-right: .5rem !important; }
.ms-1 { margin-left: .25rem !important; }
.ms-2 { margin-left: .5rem !important; }
.row.g-3 { margin-left: -8px; margin-right: -8px; row-gap: 16px; }
.row.g-3 > [class*="col"] { padding-left: 8px; padding-right: 8px; }
.gap-3 { gap: 1rem !important; }

/* Widget WhatsApp de la sidebar : le fond générique blanc (!important) masquait le dégradé et l'icône */
.em-sidebar-widget.em-whatsapp-widget {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%) !important;
    border: 0 !important;
    color: #fff;
    padding: 22px 20px !important;
    text-align: center;
}
.em-whatsapp-widget__icon { display: block; font-size: 40px; margin-bottom: 10px; color: #fff; }
.em-whatsapp-widget__title { font-family: var(--em-font-display, 'Playfair Display', serif); font-weight: 700; font-size: 19px; color: #fff !important; margin: 0 0 8px; }
.em-whatsapp-widget__text { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.92); margin: 0 0 15px; }
.em-whatsapp-widget__btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: #128C7E !important; font-weight: 700; font-size: 13px;
    border-radius: 50px; padding: 9px 20px; text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease;
}
.em-whatsapp-widget__btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }

/* Bandeau cookies : ne déborde plus de l'écran sur mobile */
@media (max-width: 480px) {
    .em-cookie-banner { left: 12px !important; right: 12px !important; bottom: 12px !important; max-width: none !important; padding: 16px 18px !important; }
    .em-cookie-banner:not(.show) { transform: translateY(calc(100% + 40px)) !important; }
}

/* Bouton « Copier le lien » : retour visuel */
.em-share-pill--copy.is-copied { background: #16a34a !important; color: #fff !important; border-color: #16a34a !important; }

/* Page introuvable */
.em-not-found { max-width: 620px; margin: 64px auto; text-align: center; padding: 0 16px; }
.em-not-found__code { font-family: var(--em-font-display, 'Playfair Display', serif); font-size: 64px; font-weight: 700; color: #cc1a1a; line-height: 1; margin-bottom: 12px; }
.em-not-found h1 { font-size: 26px; margin-bottom: 10px; }
.em-not-found p { color: var(--em-text-secondary, #4b5563); margin-bottom: 22px; }
.em-not-found a { display: inline-flex; align-items: center; gap: 8px; background: #cc1a1a; color: #fff !important; padding: 10px 22px; border-radius: 50px; font-weight: 600; text-decoration: none !important; }

/* Message après envoi d'un commentaire */
.em-flash { border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px; }
.em-flash--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.em-flash--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
[data-theme="dark"] .em-flash--ok { background: #052e22; color: #a7f3d0; border-color: #065f46; }
[data-theme="dark"] .em-flash--error { background: #2a0f0f; color: #fecaca; border-color: #7f1d1d; }

/* Pagination des rubriques : points de suspension */
.pagination .page-item.is-gap .page-link { pointer-events: none; background: transparent; border-color: transparent; }

/* Bouton d'envoi des commentaires (remplace les styles en ligne et onmouseover) */
.em-comment-submit {
    background: #cc1a1a !important; color: #fff !important; border: none !important; border-radius: 6px !important;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .5px;
    padding: 10px 24px !important; display: inline-flex !important; align-items: center; gap: 8px; cursor: pointer;
    transition: background .2s, transform .1s;
}
.em-comment-submit:hover { background: #a81515 !important; }
.em-comment-submit:active { transform: translateY(1px); }

/* Colonnes collantes : décalages calculés en JavaScript (includes/header.php) à partir de la hauteur
   réelle de l'en-tête, de la navigation et du fil ACTU, au lieu de valeurs fixes (85/126/160 px)
   qui laissaient le contenu glisser sous les barres. */
.em-homepage-aside { top: var(--em-aside-top, 176px) !important; align-self: start !important; }
.em-section-col--left,
.em-section-col--right { top: var(--em-sticky-offset, 176px) !important; }

/* ══════════════════════════════════════════
   Module Data Story de l'accueil (données réelles de l'administration)
══════════════════════════════════════════ */
.em-ds-module {
    margin: 0 0 44px; padding: 26px 26px 22px; border-radius: 18px;
    background: #ffffff; border: 1px solid #e5e9ef;
    box-shadow: 0 1px 0 rgba(15,23,42,.02), 0 24px 48px -36px rgba(15,23,42,.35);
    position: relative; overflow: hidden;
}
.em-ds-module::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #cc1a1a 0 22%, #0e8cc6 22% 100%); }
[data-theme="dark"] .em-ds-module { background: #11161d; border-color: #222b36; }
.em-ds-module__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.em-ds-module__kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.em-ds-module__badge { display: inline-flex; align-items: center; gap: 6px; background: #0a1628; color: #fff; padding: 5px 10px; border-radius: 999px; font-weight: 600; }
[data-theme="dark"] .em-ds-module__badge { background: #0e8cc6; }
.em-ds-module__tag { color: #cc1a1a; font-weight: 600; }
.em-ds-module__update { color: #64748b; font-weight: 500; }
.em-ds-module__all { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; color: #0e8cc6 !important; text-decoration: none !important; letter-spacing: .02em; }
.em-ds-module__all:hover { color: #cc1a1a !important; }

.em-ds-feature__title { font-family: var(--em-font-display, 'Playfair Display', serif); font-size: 27px; line-height: 1.22; font-weight: 600; margin: 0 0 8px; }
.em-ds-feature__title a { color: inherit !important; text-decoration: none !important; }
.em-ds-feature__title a:hover { color: #cc1a1a !important; }
.em-ds-feature__lede { font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.6; color: #475569; margin: 0 0 20px; max-width: 760px; }
[data-theme="dark"] .em-ds-feature__lede { color: #94a3b8; }

.em-ds-kpis { display: grid; grid-template-columns: repeat(var(--em-ds-kpi-count, 4), minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.em-ds-kpi { border: 1px solid #e8edf3; border-radius: 14px; padding: 14px 14px 12px; background: linear-gradient(180deg, #fbfcfe 0%, #f5f8fb 100%); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
[data-theme="dark"] .em-ds-kpi { background: #161d26; border-color: #253040; }
.em-ds-kpi__label { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: #64748b; }
.em-ds-kpi__value { font-family: 'Inter', sans-serif; font-size: 26px; font-weight: 600; line-height: 1.15; color: #0a1628; letter-spacing: -.01em; overflow-wrap: anywhere; }
[data-theme="dark"] .em-ds-kpi__value { color: #f1f5f9; }
.em-ds-kpi__unit { font-family: 'Inter', sans-serif; font-size: 12px; color: #64748b; }
.em-ds-kpi__delta { margin-top: 6px; font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.em-ds-kpi__delta--up { color: #b42318; }
.em-ds-kpi__delta--down { color: #15803d; }
.em-ds-kpi__delta--neutral { color: #64748b; }

.em-ds-chart { margin: 0 0 14px; border: 1px solid #e8edf3; border-radius: 14px; padding: 14px 16px 10px; background: #fff; }
[data-theme="dark"] .em-ds-chart { background: #0f141a; border-color: #253040; }
.em-ds-chart__caption { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-family: 'Inter', sans-serif; font-size: 11.5px; color: #64748b; margin-bottom: 8px; }
.em-ds-chart__hint { opacity: .75; }
.em-ds-chart__canvas { position: relative; height: 300px; }
.em-ds-chart__canvas--pie, .em-ds-chart__canvas--doughnut { height: 280px; }
.em-ds-feature__image img { width: 100%; height: 280px; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }

.em-ds-feature__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.em-ds-feature__source { margin: 0; font-family: 'Inter', sans-serif; font-size: 12px; color: #64748b; line-height: 1.5; flex: 1 1 320px; }
.em-ds-feature__source strong { font-weight: 600; color: #334155; }
[data-theme="dark"] .em-ds-feature__source strong { color: #cbd5e1; }
.em-ds-feature__cta { display: inline-flex; align-items: center; gap: 8px; background: #cc1a1a; color: #fff !important; text-decoration: none !important; padding: 9px 18px; border-radius: 999px; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; transition: background .2s, transform .1s; }
.em-ds-feature__cta:hover { background: #a81515; }

.em-ds-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed #e2e8f0; }
[data-theme="dark"] .em-ds-more { border-top-color: #253040; }
.em-ds-card { display: flex; flex-direction: column; border: 1px solid #e8edf3; border-radius: 14px; overflow: hidden; text-decoration: none !important; color: inherit !important; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.em-ds-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -20px rgba(15,23,42,.45); }
[data-theme="dark"] .em-ds-card { background: #161d26; border-color: #253040; }
.em-ds-card__chart { position: relative; height: 92px; padding: 10px 12px 4px; background: linear-gradient(180deg, #f7fafc 0%, #fff 100%); }
[data-theme="dark"] .em-ds-card__chart { background: #11161d; }
.em-ds-card__chart img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.em-ds-card__body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.em-ds-card__type { font-family: 'Inter', sans-serif; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: #0e8cc6; font-weight: 600; }
.em-ds-card__figure { font-family: 'Inter', sans-serif; font-size: 20px; font-weight: 600; color: #0a1628; }
.em-ds-card__figure small { font-size: 11px; font-weight: 500; color: #64748b; }
[data-theme="dark"] .em-ds-card__figure { color: #f1f5f9; }
.em-ds-card__title { font-family: var(--em-font-display, 'Playfair Display', serif); font-size: 14.5px; line-height: 1.35; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 900px) {
    .em-ds-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
    .em-ds-module { padding: 20px 16px 18px; border-radius: 14px; }
    .em-ds-feature__title { font-size: 22px; }
    .em-ds-kpi__value { font-size: 21px; }
    .em-ds-chart__canvas { height: 240px; }
    .em-ds-chart__canvas--pie, .em-ds-chart__canvas--doughnut { height: 300px; }
}

/* Carrousel du module Data Story (accueil) */
.em-ds-feature[hidden] { display: none !important; }
.em-ds-feature.is-active { animation: emDsFade .45s ease; }
@keyframes emDsFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .em-ds-feature.is-active { animation: none; } }
.em-ds-module__nav { display: flex; align-items: center; gap: 8px; }
.em-ds-arrow {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid #dbe3ec; background: #fff; color: #0a1628;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px;
    transition: background .2s, color .2s, border-color .2s;
}
.em-ds-arrow:hover, .em-ds-arrow:focus-visible { background: #0a1628; color: #fff; border-color: #0a1628; outline: none; }
[data-theme="dark"] .em-ds-arrow { background: #161d26; border-color: #2a3442; color: #e2e8f0; }
.em-ds-module__all { margin-left: 6px; }
.em-ds-feature__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: #64748b; }
.em-ds-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.em-ds-dot { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: #cbd5e1; cursor: pointer; transition: width .25s ease, background .25s ease; }
.em-ds-dot.is-active { width: 26px; background: #cc1a1a; }
.em-ds-card { font: inherit; text-align: left; padding: 0; cursor: pointer; width: 100%; }
.em-ds-card__chart, .em-ds-card__body { display: block; }
.em-ds-card__body { display: flex; }
.em-ds-card.is-active { border-color: #cc1a1a; box-shadow: 0 0 0 1px #cc1a1a inset, 0 14px 28px -22px rgba(204,26,26,.6); }
.em-ds-card:focus-visible { outline: 2px solid #0e8cc6; outline-offset: 2px; }
@media (max-width: 576px) {
    .em-ds-module__head { align-items: flex-start; }
    .em-ds-module__all { display: none; }
    .em-ds-more { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
    .em-ds-more .em-ds-card { flex: 0 0 72%; scroll-snap-align: start; }
}
.em-ds-card:focus:not(:focus-visible), .em-ds-arrow:focus:not(:focus-visible), .em-ds-dot:focus:not(:focus-visible) { outline: none; }
