/* L'Indépendant — Design éditorial professionnel */
:root {
  --red: #E30613;
  --red-hover: #c00510;
  --red-soft: rgba(227, 6, 19, 0.08);
  --navy: #0B192E;
  --navy-light: #1a3050;
  --gold: #b8860b;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-display: 'Source Serif 4', Georgia, serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --header-h: 72px;
  --nav-h: 48px;
  --bottom-nav-h: 64px;
  --max-w: 1440px;
  --transition: 0.2s ease;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-page: #f4f6f8;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-input: #f1f3f5;
  --text: #1a1a1a;
  --text-muted: #5c6370;
  --text-soft: #8b929a;
  --border: #e2e5ea;
  --border-soft: #eef0f3;
  --hero-overlay: linear-gradient(90deg, rgba(26, 35, 50, 0.92) 0%, rgba(26, 35, 50, 0.55) 55%, transparent 100%);
  --header-bg: rgba(255, 255, 255, 0.97);
  --tag-bg: #f1f3f5;
  --card-shadow: var(--shadow);
  --accent-link: #1a2332;
}

[data-theme="dark"] {
  --bg: #0f1419;
  --bg-page: #0c1015;
  --bg-card: #1a2028;
  --bg-elevated: #222a35;
  --bg-input: #151b22;
  --text: #f0f2f5;
  --text-muted: #9aa3b0;
  --text-soft: #6b7585;
  --border: #2d3640;
  --border-soft: #232b35;
  --hero-overlay: linear-gradient(90deg, rgba(15, 20, 25, 0.95) 0%, rgba(15, 20, 25, 0.6) 55%, transparent 100%);
  --header-bg: rgba(15, 20, 25, 0.97);
  --tag-bg: #222a35;
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --accent-link: #e8ecf0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(200, 16, 46, 0.2);
  color: var(--text);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 1024px) {
  .container { padding: 0 32px; }
}

#app, main, .site-header, .site-footer, .bottom-nav, .top-band, .home-main {
  position: relative;
  z-index: 1;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
}
.menu-btn:hover {
  border-color: var(--text-muted);
  background: var(--bg-input);
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.logo img { height: 30px; width: auto; }
@media (min-width: 768px) { .logo img { height: 34px; } }
.logo-tagline {
  display: none;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  font-weight: 400;
}
@media (min-width: 1100px) { .logo-tagline { display: block; } }

.header-meta {
  display: none;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
@media (min-width: 1100px) { .header-meta { display: flex; } }
.header-meta .meta-sep { opacity: 0.4; }
.header-meta .meta-edition {
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}

.search-bar {
  display: none;
  flex: 1;
  max-width: 480px;
  position: relative;
}
@media (min-width: 1024px) { .search-bar { display: flex; } }

.search-bar input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-bar input:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(26, 35, 50, 0.08);
}
[data-theme="dark"] .search-bar input:focus {
  border-color: var(--text-muted);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}
.search-bar input::placeholder { color: var(--text-soft); }
.search-bar svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-soft);
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
}
.icon-btn:hover {
  border-color: var(--text-muted);
  background: var(--bg-input);
}
.icon-btn svg { width: 18px; height: 18px; }

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-link {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.user-link:hover { color: var(--text); background: var(--bg-input); }
.user-link.active {
  color: var(--red);
  background: var(--red-soft);
  font-weight: 700;
}
.user-link svg { width: 16px; height: 16px; }
@media (min-width: 768px) { .user-link { display: flex; } }

.btn-subscribe,
.btn-read {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-subscribe:hover,
.btn-read:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
}

.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.search-mobile { display: flex; }
@media (min-width: 1024px) { .search-mobile { display: none; } }

.main-nav {
  display: none;
  border-top: 1px solid var(--border-soft);
}
@media (min-width: 1024px) { .main-nav { display: block; } }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  flex-shrink: 0;
  padding: 14px 4px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition), transform 0.15s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  color: var(--red);
  border-bottom-color: var(--red);
  font-weight: 700;
}
.nav-links a.nav-pressed { transform: scale(0.96); }

.nav-rubriques {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.nav-rubriques:hover { color: var(--red); }
.nav-rubriques.active {
  color: var(--red);
  background: var(--red-soft);
  border-color: rgba(227, 6, 19, 0.25);
  font-weight: 700;
}
.nav-rubriques svg { width: 16px; height: 16px; }

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}
.mobile-drawer.open {
  pointer-events: auto;
  visibility: visible;
}
.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--transition);
}
.mobile-drawer.open .drawer-overlay { opacity: 1; }
.drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateX(-100%);
  transition: transform var(--transition);
  overflow-y: auto;
  padding: 28px 24px;
}
.mobile-drawer.open .drawer-panel { transform: translateX(0); }
.drawer-panel h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--text-soft);
}
.drawer-panel a {
  display: block;
  padding: 12px 14px;
  margin: 0 -14px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-soft);
  border-left: 3px solid transparent;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.drawer-panel a:hover { color: var(--red); }
.drawer-panel a.active {
  color: var(--red);
  font-weight: 700;
  background: var(--red-soft);
  border-left-color: var(--red);
}
.drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* ===== MAIN ===== */
main { padding-bottom: calc(var(--bottom-nav-h) + 16px); }
@media (min-width: 1024px) { main { padding-bottom: 48px; } }

.page-header { padding: 32px 0 16px; }
.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.2;
}
.page-header p { color: var(--text-muted); font-size: 15px; }

/* ===== HERO ===== */
.top-band {
  background: transparent;
  color: #fff;
  padding: 12px 0 8px;
}

.hero-section {
  display: grid;
  gap: 14px;
  padding: 0;
}
@media (min-width: 1024px) {
  .hero-section {
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
    align-items: stretch;
  }
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.hero-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-slide {
  position: relative;
  min-width: 100%;
  flex-shrink: 0;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  max-height: 480px;
  object-fit: cover;
}
@media (min-width: 768px) {
  .hero-slide img { min-height: 440px; }
}

.hero-content {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: min(62%, 520px);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--hero-overlay);
  z-index: 2;
}
.hero-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 22ch;
  color: #fff;
}
.hero-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin: 12px 0 20px;
  max-width: 42ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
}
.tag-red {
  background: var(--red);
  color: #fff;
}
.tag-muted {
  background: var(--tag-bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.tag-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}
.hero-meta span { display: flex; align-items: center; gap: 5px; }

.hero-dots {
  display: flex;
  gap: 8px;
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all var(--transition);
  cursor: pointer;
}
.hero-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

.side-articles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.side-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.side-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border);
}
.side-card img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}
.side-card-content { flex: 1; min-width: 0; }
.side-cat {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.side-card h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.side-card .read-time,
.read-time {
  font-size: 12px;
  color: var(--text-soft);
}

.home-main { background: transparent; }

/* ===== FLASH ===== */
.flash-bar {
  background: var(--bg-card);
  border-block: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.flash-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}
.flash-label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--red);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.flash-more {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}
.flash-more:hover { color: var(--red); }

.ticker-track {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.ticker-content {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
}
.ticker-item { font-size: 14px; font-weight: 500; }
.ticker-sep { opacity: 0.35; color: var(--text-soft); }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.breaking-ticker {
  background: var(--red);
  color: #fff;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  overflow: hidden;
}
.ticker-label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* ===== CATEGORIES ===== */
.cats-journal {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 32px 0 8px;
}
@media (min-width: 1024px) {
  .cats-journal { grid-template-columns: 1fr 300px; }
}
.categories-section { padding: 32px 0; }
.categories-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}
.categories-row::-webkit-scrollbar { display: none; }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (min-width: 640px) { .categories-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1024px) { .categories-grid { grid-template-columns: repeat(9, 1fr); } }

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 72px;
  text-align: center;
  transition: transform var(--transition);
}
.category-tile:hover { transform: translateY(-2px); }
.category-icon-box {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.category-icon-box svg { width: 22px; height: 22px; }
.category-tile:hover .category-icon-box {
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
  .category-icon-box { width: 60px; height: 60px; }
}
.category-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
[data-theme="light"] .content-light .category-label {
  color: #374151;
}

.journal-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  min-height: 120px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.journal-banner:hover { box-shadow: var(--shadow); }
.journal-banner::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--red);
}
.journal-banner h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}
.journal-banner p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.journal-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}
.journal-banner img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

/* ===== FEED / CARDS ===== */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
  transition: opacity var(--transition);
}
.section-link:hover { opacity: 0.8; }
.title-bar {
  display: inline-block;
  width: 3px;
  height: 18px;
  background: var(--red);
  vertical-align: middle;
  margin-right: 10px;
  border-radius: 2px;
}

.content-layout {
  display: grid;
  gap: 32px;
  padding-bottom: 32px;
}
@media (min-width: 1024px) {
  .content-layout { grid-template-columns: 1fr 320px; }
}

.home-feed {
  display: grid;
  gap: 20px;
  padding: 18px 0;
}
@media (min-width: 1100px) {
  .home-feed { grid-template-columns: minmax(0, 1fr) 340px; }
}

.news-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .home-feed .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .home-feed .news-grid { grid-template-columns: repeat(2, 1fr); } }

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.news-card-body { padding: 16px 18px 18px; }
.news-cat {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.news-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-soft);
}

.home-aside { display: flex; flex-direction: column; gap: 24px; }
.essentiel-card {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.essentiel-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
}
.essentiel-card ol { list-style: none; }
.essentiel-card li + li { margin-top: 14px; }
.essentiel-card a {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: opacity var(--transition);
}
.essentiel-card a:hover { opacity: 0.85; }
.ess-num {
  width: 24px;
  height: 24px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}
[data-theme="dark"] .ess-num { background: var(--red); }
.essentiel-card li:nth-child(1) .ess-num { background: var(--red); }
.essentiel-card em {
  display: block;
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  margin-bottom: 3px;
}
.essentiel-card span { font-size: 14px; line-height: 1.4; font-weight: 500; }
.ess-more {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}

.videos-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.videos-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}
.video-featured {
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: var(--radius);
  display: block;
}
.video-featured img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}
.video-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 50%);
  pointer-events: none;
}
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.video-play-btn {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.video-featured:hover .video-play-btn { transform: scale(1.08); }
.video-play-btn svg { width: 18px; height: 18px; margin-left: 2px; }
.video-cap {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  z-index: 2;
  line-height: 1.35;
}
.video-list-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  transition: opacity var(--transition);
}
.video-list-item:hover { opacity: 0.85; }
.video-list-item:last-child { border-bottom: none; }
.video-list-item img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}
.video-list-item h4 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-list-item .duration {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 500;
}

.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.widget-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.widget-header h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
}
.widget-body { padding: 20px; }
.journal-widget { display: flex; gap: 16px; align-items: flex-start; }
.journal-widget img { width: 80px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.journal-widget p { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.journal-date { font-size: 12px; color: var(--text-soft); margin-bottom: 8px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: all var(--transition);
}
.btn-outline:hover {
  border-color: var(--text);
  background: var(--bg-input);
}

/* ===== ARTICLE ===== */
.article-page { padding: 32px 0 56px; }
.article-header { max-width: 720px; margin: 0 auto 28px; }
.article-header .tag { margin-bottom: 14px; }
.article-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.article-hero-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  margin-bottom: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
  font-family: var(--font-heading);
}
.article-body p { margin-bottom: 1.4em; }

.articles-list { display: flex; flex-direction: column; gap: 16px; }
.list-card {
  display: flex;
  gap: 16px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.list-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong, var(--border));
}
.list-card-media {
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.list-card-media img,
.list-card > img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
@media (min-width: 640px) {
  .list-card-media img,
  .list-card > img { width: 200px; height: 130px; }
}
.list-card:hover .list-card-media img { transform: scale(1.04); }
.list-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  margin: 8px 0 6px;
  line-height: 1.35;
  transition: color var(--transition);
}
.list-card:hover h3 { color: var(--red); }
.list-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-soft);
}
.list-card-meta svg { width: 12px; height: 12px; }

.search-results { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.search-result-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.search-result-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--red);
}
.search-result-thumb {
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.search-result-thumb img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  display: block;
}
@media (min-width: 640px) {
  .search-result-thumb img { width: 120px; height: 84px; }
}
.search-result-body { flex: 1; min-width: 0; }
.search-result-body .tag { margin-bottom: 6px; }
.search-result-body h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.35;
  transition: color var(--transition);
}
.search-result-item:hover h3 { color: var(--red); }
.search-result-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.search-result-meta svg { width: 12px; height: 12px; }
.no-results {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.no-results-rich {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.no-results-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-input);
  color: var(--text-soft);
}
.no-results-rich .btn-outline { margin-top: 4px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 48px;
  padding-bottom: calc(var(--bottom-nav-h) + 16px);
}
@media (min-width: 1024px) { .site-footer { padding-bottom: 0; } }
.footer-grid {
  display: grid;
  gap: 32px;
  padding: 56px 0 40px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 3fr 1fr 1fr 1fr; } }
.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
  margin-top: 16px;
  max-width: 360px;
}
.footer-brand strong { color: #fff; }
.footer-brand img { filter: brightness(0) invert(1); opacity: 0.95; }
.footer-contact { margin-top: 20px; font-size: 13px; color: rgba(255, 255, 255, 0.6); line-height: 1.7; }
.footer-contact a { color: #fff; font-weight: 500; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  color: #fff;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  padding: 5px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-bottom p { font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.footer-bottom strong { color: rgba(255, 255, 255, 0.85); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--red); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--header-bg);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}
@media (min-width: 1024px) { .bottom-nav { display: none; } }
.bottom-nav ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 512px;
  margin: 0 auto;
}
.bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px 10px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), transform 0.15s ease;
  position: relative;
}
.bottom-nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--red);
  border-radius: 0 0 3px 3px;
  transition: width var(--transition);
}
.bottom-nav-link.active::before { width: 28px; }
.bottom-nav-link.active {
  color: var(--red);
  font-weight: 700;
}
.bottom-nav-link.active .bottom-nav-icon {
  background: var(--red-soft);
  border-radius: var(--radius-sm);
}
.bottom-nav-link.nav-pressed { transform: scale(0.92); }
.bottom-nav-icon {
  display: flex;
  padding: 4px 10px;
  transition: background var(--transition);
}
.bottom-nav-icon svg { width: 22px; height: 22px; }
.bottom-nav-label { line-height: 1.1; }

/* ===== APP MODALS (welcome, etc.) ===== */
body.modal-open,
body.pwa-install-open { overflow: hidden; }

.app-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 25, 46, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.app-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.app-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 32px 28px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  text-align: center;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.35s ease;
}
.app-modal-overlay.show .app-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.app-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--bg-input);
  color: var(--text-muted);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.app-modal-close:hover { background: var(--border); color: var(--text); }
.app-modal-close svg { width: 18px; height: 18px; }

.welcome-modal-visual { position: relative; margin-bottom: 20px; }
.welcome-success-ring {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #ecfdf5, var(--bg-card));
  border: 2px solid #6ee7b7;
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.25);
  animation: welcomePop 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}
[data-theme="dark"] .welcome-success-ring {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.15), var(--bg-card));
  border-color: rgba(16, 185, 129, 0.45);
}
.welcome-success-icon { color: #059669; display: flex; }
.welcome-success-icon svg { width: 36px; height: 36px; stroke-width: 2.5; }
@keyframes welcomePop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
.welcome-modal h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.welcome-modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.welcome-modal-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  text-align: left;
  padding: 14px 16px;
  background: var(--bg-input);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
}
.welcome-modal-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.welcome-modal-perks li svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; }
.welcome-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.welcome-modal-actions .btn-subscribe,
.welcome-modal-actions .btn-outline {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ===== PWA INSTALL MODAL ===== */

.pwa-install-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(11, 25, 46, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
@media (min-width: 640px) {
  .pwa-install-overlay {
    align-items: center;
    padding: 24px;
  }
}
.pwa-install-overlay.show {
  opacity: 1;
  visibility: visible;
}

.pwa-install-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 28px 24px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  text-align: center;
}
@media (min-width: 640px) {
  .pwa-install-modal {
    border-radius: var(--radius-lg);
    transform: translateY(24px) scale(0.96);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.35s ease;
  }
}
.pwa-install-overlay.show .pwa-install-modal {
  transform: translateY(0);
  opacity: 1;
}

.pwa-install-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--bg-input);
  color: var(--text-muted);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.pwa-install-close:hover {
  background: var(--border);
  color: var(--text);
  transform: scale(1.05);
}

.pwa-install-visual {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
}
.pwa-install-icon-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto;
  padding: 8px;
  background: linear-gradient(145deg, var(--red-soft), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(227, 6, 19, 0.12);
}
.pwa-install-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}
.pwa-install-badge {
  position: absolute;
  bottom: -6px;
  right: -8px;
  padding: 3px 8px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(227, 6, 19, 0.4);
}

.pwa-install-modal h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}
.pwa-install-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

.pwa-install-features {
  list-style: none;
  text-align: left;
  margin-bottom: 22px;
  padding: 16px;
  background: var(--bg-input);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
}
.pwa-install-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 0;
}
.pwa-install-features li:not(:last-child) {
  border-bottom: 1px solid var(--border-soft);
}
.pwa-feature-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--red);
}
.pwa-feature-icon svg { width: 16px; height: 16px; }

.pwa-install-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pwa-btn-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--red) 0%, #c00510 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(227, 6, 19, 0.35);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.pwa-btn-install:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(227, 6, 19, 0.45);
}
.pwa-btn-install:disabled { opacity: 0.7; cursor: wait; }
.pwa-btn-later {
  padding: 10px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
}
.pwa-btn-later:hover { color: var(--text); }

.pwa-install-note {
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
  .pwa-install-overlay,
  .pwa-install-modal { transition: none; }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.hidden { display: none !important; }

.offline-badge {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  background: #d97706;
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-100%);
  transition: transform var(--transition);
}
.offline-badge.show { transform: translateY(0); }

/* ===== TRENDING / EDITOR / MOST READ / NEWSLETTER ===== */
.trending-section { padding: 18px 0; }
.trend-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.trend-tag {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.trend-tag:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-soft);
}

.editor-picks { padding: 18px 0; }
.editor-picks-grid { display: grid; gap: 20px; }
@media (min-width: 768px) {
  .editor-picks-grid {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
  }
  .editor-pick-card.featured { grid-row: span 2; }
}
.editor-pick-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: block;
  transition: transform var(--transition), box-shadow var(--transition);
}
.editor-pick-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.editor-pick-card img { width: 100%; height: 180px; object-fit: cover; }
.editor-pick-card.featured img { height: 100%; min-height: 320px; }
@media (min-width: 768px) {
  .editor-pick-card.featured img { min-height: 400px; }
}
.editor-pick-body { padding: 18px 20px 20px; }
.editor-pick-body h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.editor-pick-card.featured .editor-pick-body h3 {
  font-size: 22px;
  -webkit-line-clamp: 3;
}

.most-read-section { padding: 18px 0; border-top: none; }
.most-read-grid {
  display: grid;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 768px) { .most-read-grid { grid-template-columns: repeat(2, 1fr); } }
.most-read-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-soft);
  transition: background var(--transition);
}
.most-read-item:hover { background: var(--bg-input); }
.most-read-rank {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  min-width: 36px;
  opacity: 0.85;
}
.most-read-item h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}

.newsletter-section { padding: 18px 0 32px; }
.newsletter-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 28px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .newsletter-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.newsletter-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.newsletter-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.25;
}
.newsletter-content p { font-size: 15px; color: rgba(255, 255, 255, 0.75); max-width: 480px; line-height: 1.6; }
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 280px;
  position: relative;
  z-index: 1;
}
@media (min-width: 480px) { .newsletter-form { flex-direction: row; } }
.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter-form input:focus { border-color: rgba(255, 255, 255, 0.4); }
.newsletter-form .btn-subscribe {
  background: #fff;
  color: var(--navy);
}
.newsletter-form .btn-subscribe:hover { background: #f0f0f0; }

.date-bar {
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.date-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.date-dot { opacity: 0.4; }

/* ===== RUBRIQUES / INTERVIEWS / OPINIONS ===== */
.rubriques-row {
  display: grid;
  gap: 36px;
  padding: 20px 0 36px;
}
@media (min-width: 900px) { .rubriques-row { grid-template-columns: 1fr 1fr 1fr; } }
.rubrique-grid { display: grid; gap: 14px; }
.rubrique-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.rubrique-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.rubrique-card img {
  width: 100%;
  height: 100%;
  min-height: 88px;
  object-fit: cover;
}
.rubrique-card.lead { grid-template-columns: 1fr; }
.rubrique-card.lead img { min-height: 180px; }
.rubrique-body { padding: 14px 16px 16px; }
.rubrique-body h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin: 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.interviews-section { padding: 18px 0; }
.interviews-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .interviews-grid { grid-template-columns: 1fr 1fr; } }
.interview-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.interview-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.interview-card img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
}
.interview-body { padding: 18px 20px; }
.interview-body h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  margin: 10px 0;
  line-height: 1.35;
  font-weight: 600;
}
.interview-body p { font-size: 14px; color: var(--text-muted); }

.opinions-section { padding: 18px 0; }
.opinions-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .opinions-grid { grid-template-columns: 1fr 1fr; } }
.opinion-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}
.opinion-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.opinion-avatar {
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  border-radius: 50%;
}
[data-theme="dark"] .opinion-avatar { background: var(--red); }
.opinion-role {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}
.opinion-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin: 4px 0;
  line-height: 1.35;
}
.opinion-card p { font-size: 14px; color: var(--text-muted); }

img:not([src]), img[src=""] {
  background: var(--bg-input);
  min-height: 80px;
}

@media (max-width: 1023px) {
  .hero-content {
    width: 100%;
    background: linear-gradient(to top, rgba(15, 20, 25, 0.95) 0%, rgba(15, 20, 25, 0.4) 55%, transparent 100%);
    justify-content: flex-end;
    padding: 28px 24px;
  }
  .hero-content h2 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== MAQUETTE — HERO BAND & CONTENT LIGHT ===== */
.hero-band {
  background: var(--navy);
  padding: 12px 0 14px;
}
[data-theme="light"] .hero-band {
  background: transparent;
  padding: 10px 0 0;
}
[data-theme="dark"] .hero-band {
  background: var(--navy);
}
[data-theme="dark"] .hero-band .hero-carousel {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.content-light {
  background: var(--bg);
  color: var(--text);
}
[data-theme="light"] .content-light {
  background: #ffffff;
  color: #1a1a1a;
}
[data-theme="dark"] .content-light {
  background: var(--bg);
  color: var(--text);
}

/* Dark mode header */
[data-theme="dark"] .site-header {
  background: var(--navy);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .site-header .logo img { filter: brightness(0) invert(1); }
[data-theme="dark"] .site-header .logo-tagline { color: rgba(255, 255, 255, 0.6); }
[data-theme="dark"] .site-header .menu-btn,
[data-theme="dark"] .site-header .icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}
[data-theme="dark"] .site-header .search-bar input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}
[data-theme="dark"] .site-header .search-bar input::placeholder { color: rgba(255, 255, 255, 0.5); }
[data-theme="dark"] .site-header .search-bar svg { color: rgba(255, 255, 255, 0.5); }
[data-theme="dark"] .site-header .user-link { color: rgba(255, 255, 255, 0.75); }
[data-theme="dark"] .site-header .main-nav { border-top-color: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .site-header .nav-links a { color: rgba(255, 255, 255, 0.65); }
[data-theme="dark"] .site-header .nav-links a:hover { color: #fff; }
[data-theme="dark"] .site-header .nav-links a.active { color: var(--red); border-bottom-color: var(--red); }
[data-theme="dark"] .site-header .nav-rubriques { color: rgba(255, 255, 255, 0.65); }

/* Hero white button */
.btn-read-hero {
  background: #fff !important;
  color: var(--navy) !important;
  font-weight: 600;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.btn-read-hero:hover {
  background: #f5f5f5 !important;
  transform: translateY(-1px);
}

/* Side card arrow */
.side-card {
  align-items: center;
  position: relative;
}
.side-card-arrow {
  flex-shrink: 0;
  color: var(--text-soft);
  opacity: 0.5;
  transition: opacity var(--transition), transform var(--transition);
}
.side-card:hover .side-card-arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* Category photos (circular) */
.category-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: var(--bg-input);
  border: 3px solid var(--bg-card);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}
.category-tile:hover .category-photo {
  transform: scale(1.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}
@media (min-width: 768px) {
  .category-photo { width: 80px; height: 80px; }
}

/* Compact home sections */
.home-section {
  padding: 18px 0;
}
.home-section + .home-section {
  border-top: 1px solid var(--border-soft);
}
.content-light .home-section {
  border-top-color: #eef0f3;
}
.home-section .section-header-row {
  margin-bottom: 12px;
}
.home-section .section-title {
  margin-bottom: 0;
  font-size: 1.15rem;
}

.categories-section { padding: 18px 0; }

/* Category tag colors */
.tag-politique { background: var(--red); color: #fff; }
.tag-economie { background: #059669; color: #fff; }
.tag-societe { background: #7c3aed; color: #fff; }
.tag-afrique { background: #ea580c; color: #fff; }
.tag-international { background: #2563eb; color: #fff; }
.tag-culture { background: #db2777; color: #fff; }
.tag-sport { background: #0891b2; color: #fff; }
.tag-securite { background: #475569; color: #fff; }

/* L'ESSENTIEL DU MALI — always dark */
.essentiel-card {
  background: var(--navy) !important;
  color: #fff !important;
  border: none !important;
}
.essentiel-card h3 {
  color: #fff !important;
  border-bottom-color: var(--red) !important;
}
.essentiel-card em { color: rgba(255, 255, 255, 0.55) !important; }
.essentiel-card span { color: #fff !important; }
.essentiel-card .ess-more { color: rgba(255, 255, 255, 0.75) !important; }
.essentiel-card li:nth-child(1) .ess-num { background: var(--red); }
.essentiel-card li:nth-child(2) .ess-num { background: #f97316; }
.essentiel-card li:nth-child(3) .ess-num { background: #7c3aed; }
.essentiel-card li:nth-child(4) .ess-num { background: #059669; }
.essentiel-card li:nth-child(5) .ess-num { background: #64748b; }

/* News grid top — 2×2 */
.news-grid-top {
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  .home-feed .news-grid-top { grid-template-columns: repeat(2, 1fr); }
}

/* ===== CATEGORY CAROUSEL ===== */
.cat-carousel {
  overflow: hidden;
  padding: 8px 0 12px;
}
.cat-carousel::before,
.cat-carousel::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 32px;
  z-index: 2;
  pointer-events: none;
}
.cat-carousel { position: relative; }
.cat-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.cat-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}
[data-theme="light"] .content-light .cat-carousel::before {
  background: linear-gradient(to right, #fff, transparent);
}
[data-theme="light"] .content-light .cat-carousel::after {
  background: linear-gradient(to left, #fff, transparent);
}
.cat-carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}
.cat-carousel .category-tile {
  min-width: 88px;
}
.cat-carousel .category-photo {
  width: 76px;
  height: 76px;
  border: 3px solid var(--border);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .cat-carousel .category-photo {
  border-color: var(--bg-elevated);
}
@media (min-width: 768px) {
  .cat-carousel .category-photo { width: 84px; height: 84px; }
  .cat-carousel .category-tile { min-width: 96px; }
}

/* ===== LIVE BRIEF ===== */
.live-brief-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.content-light .live-brief-inner {
  background: #f8f9fb;
  border-color: #e5e7eb;
}
.live-brief-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.live-brief-stat strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.live-brief-stat span:last-child { color: var(--text-soft); }
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-live 1.4s ease-in-out infinite;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ===== SERVICE HUB (harmonisé) ===== */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 900px) {
  .hub-grid { grid-template-columns: repeat(4, 1fr); }
}

.hub-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 140px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform var(--transition), box-shadow var(--transition);
}
.hub-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.hub-highlight {
  box-shadow: 0 0 0 2px var(--red);
}
.hub-card-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: transform 0.5s ease;
}
.hub-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}
.hub-card:hover .hub-card-bg img { transform: scale(1.08); }
.hub-card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 25, 46, 0.92) 0%, rgba(11, 25, 46, 0.35) 100%);
}
.hub-card-content {
  position: relative;
  z-index: 1;
  padding: 16px;
  height: 100%;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}
.hub-card-meta {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}
.hub-card-content strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2px;
}
.hub-card-content > span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}
.hub-cart-btn {
  margin-top: 8px;
  align-self: flex-start;
  padding: 5px 10px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
}
.hub-cart-btn:hover { background: var(--red-hover); }

/* Sidebar hub — vertical stack */
.hub-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hub-sidebar .hub-card {
  min-height: 100px;
}
.hub-sidebar .hub-card-content {
  min-height: 100px;
  padding: 12px 14px;
}
.hub-sidebar .hub-card-content strong { font-size: 13px; }

/* Sidebar most read */
.sidebar-read-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}
.sidebar-read-block h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.sidebar-read-list { display: flex; flex-direction: column; gap: 0; }
.sidebar-read-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: flex-start;
}
.sidebar-read-item:last-child { border-bottom: none; }
.sidebar-read-rank {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  min-width: 28px;
}
.sidebar-read-item h4 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 4px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-aside { gap: 16px; }

/* ===== SUBSCRIPTION & PAYMENT ===== */
.subscription-page {
  padding: 0 0 64px;
  background: var(--bg-page, var(--bg));
}
.subscription-wrap { padding-top: 8px; }

.sub-demo-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #92400e;
  margin-bottom: 16px;
}
[data-theme="dark"] .sub-demo-banner {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}
.sub-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f59e0b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sub-demo-badge svg { width: 12px; height: 12px; display: block; }

.sub-trust-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.sub-trust-pills li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.sub-trust-pills li svg { width: 14px; height: 14px; color: var(--red); flex-shrink: 0; }

.subscription-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}
@media (min-width: 960px) {
  .subscription-layout { grid-template-columns: 1fr 300px; gap: 32px; }
}
@media (min-width: 1100px) {
  .subscription-layout { grid-template-columns: 1fr 320px; }
}

.subscription-section-head { margin-bottom: 20px; }
.subscription-section-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 6px;
}
.subscription-section-head p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.subscription-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 960px) {
  .subscription-aside { position: sticky; top: 88px; }
}

.demo-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  font-size: 14px;
  color: #92400e;
  margin-bottom: 28px;
}
.demo-badge {
  background: #f59e0b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.payment-showcase-compact {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.payment-showcase-compact h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.payment-showcase-compact h3 svg { width: 16px; height: 16px; color: var(--red); }
.payment-showcase-compact .payment-showcase-desc {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 12px;
  line-height: 1.45;
}
.payment-showcase-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.payment-showcase-pill {
  flex: 1;
  min-width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}
.payment-showcase-pill:hover { border-color: var(--red); }
.payment-showcase-pill img {
  height: 28px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.payment-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 36px;
  text-align: center;
}
.payment-showcase h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.payment-showcase-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.payment-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .payment-showcase-grid { grid-template-columns: repeat(4, 1fr); }
}
.payment-showcase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}
.payment-showcase-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.payment-showcase-item img {
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.payment-showcase-item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.checkout-demo-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.security-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  font-size: 13px;
  color: #065f46;
  margin-bottom: 32px;
}
[data-theme="dark"] .security-banner {
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.3);
  color: #6ee7b7;
}

.plans-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .plans-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

.plan-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong, var(--border));
}
.plan-popular {
  border-color: var(--red);
  box-shadow: 0 4px 24px rgba(227, 6, 19, 0.12);
}
.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.plan-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.plan-card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid var(--border);
}
.plan-card-icon svg { width: 20px; height: 20px; display: block; }
.plan-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.2;
}
.plan-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}
.plan-price {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.plan-price strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.plan-price span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.plan-features {
  list-style: none;
  margin-bottom: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
}
.plan-features li svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--red);
}
.plan-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}
.plan-btn svg { width: 16px; height: 16px; }

.checkout-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 40px;
}
.checkout-panel h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.checkout-note {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 12px;
  line-height: 1.5;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}
@media (min-width: 640px) {
  .payment-methods { grid-template-columns: repeat(4, 1fr); }
}
.payment-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  text-align: center;
}
.payment-method input { display: none; }
.payment-method img { height: 36px; width: auto; object-fit: contain; }
.payment-method span { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.payment-method.selected,
.payment-method:hover {
  border-color: var(--red);
  background: var(--red-soft);
}

.subscription-contact {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.subscription-contact h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}
.subscription-contact h3 svg { width: 16px; height: 16px; color: var(--red); }
.subscription-contact p { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin: 0 0 6px; }
.sub-phones { font-weight: 600; color: var(--text) !important; }
.sub-contact-btn {
  width: 100%;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.sub-contact-btn svg { width: 16px; height: 16px; }

.sub-faq-mini {
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.sub-faq-mini h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.sub-faq-mini h4 svg { width: 14px; height: 14px; color: var(--red); }
.sub-faq-mini ul { list-style: none; }
.sub-faq-mini li {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 0 4px 12px;
  position: relative;
  line-height: 1.45;
}
.sub-faq-mini li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* Checkout modal */
.checkout-modal { text-align: left; max-width: 460px; }
.checkout-modal-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}
.checkout-modal-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--red-soft);
  color: var(--red);
}
.checkout-modal-icon svg { width: 22px; height: 22px; }
.checkout-modal-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.checkout-modal-head h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2px 0;
}
.checkout-modal-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  margin: 0;
}
.checkout-pay-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.checkout-login-prompt {
  text-align: center;
  padding: 12px 0 4px;
}
.checkout-login-prompt svg {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.checkout-login-prompt p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.checkout-login-prompt .btn-subscribe,
.checkout-login-prompt .btn-outline {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.checkout-success-modal { text-align: center; }

.loading-text { text-align: center; color: var(--text-muted); padding: 40px; }

/* ===== ACCOUNT PAGE ===== */
.account-page {
  padding: 28px 0 64px;
  min-height: 65vh;
  background: var(--bg-page, var(--bg));
}
.account-alert { max-width: 960px; margin: 0 auto 16px; padding: 0 16px; }

.account-layout {
  display: grid;
  gap: 0;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg, var(--shadow));
}
@media (min-width: 768px) {
  .account-layout { grid-template-columns: 0.95fr 1.05fr; min-height: 580px; }
}
@media (min-width: 1024px) {
  .account-layout { max-width: 1020px; }
}

.account-brand-panel {
  background: linear-gradient(145deg, var(--navy) 0%, #152a4a 100%);
  color: #fff;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}
.account-brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 100% 0%, rgba(227, 6, 19, 0.2), transparent 60%);
  pointer-events: none;
}
.account-brand-inner { position: relative; z-index: 1; }
.account-brand-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(227, 6, 19, 0.9);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  margin-bottom: 16px;
}
.account-brand-panel h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}
.account-brand-panel > .account-brand-inner > p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  margin-bottom: 24px;
}
.account-benefits { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.account-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}
.account-benefit-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.95);
}
.account-benefit-icon svg { width: 18px; height: 18px; }

.account-main-col {
  background: var(--bg-card);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) { .account-main-col { padding: 32px 36px 28px; } }

.account-auth-card { flex: 1; }
.account-auth-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.account-auth-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid var(--border);
}
.account-auth-icon svg { width: 22px; height: 22px; }
.account-auth-head h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.account-auth-head p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

.account-oauth-block { margin-bottom: 8px; }
.google-btn-wrap {
  display: flex;
  justify-content: center;
  min-height: 44px;
}
.google-btn-wrap > div { width: 100% !important; }
.google-demo-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--bg-input);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.demo-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 999px;
}
.demo-hint { font-size: 12px; color: var(--text-soft); }
.btn-google-icon { display: inline-flex; flex-shrink: 0; }
.btn-google-icon svg { width: 20px; height: 20px; }
[data-theme="dark"] .demo-chip {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.35);
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.btn-google:hover {
  background: var(--bg-input);
  border-color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}
.btn-google:disabled { opacity: 0.65; cursor: wait; }

.account-captcha {
  margin-bottom: 14px;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--red);
}
.account-captcha-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.account-captcha-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.account-captcha-label svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
  color: var(--red);
}
.account-captcha-question {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin: 0 0 8px;
}
.account-captcha-refresh {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  transition: color var(--transition), border-color var(--transition);
}
.account-captcha-refresh:hover { color: var(--red); border-color: var(--red); }
.account-captcha-refresh svg {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}
.account-captcha-field { margin-bottom: 0; gap: 4px; }
.account-captcha-field > span { font-size: 12px; }
.account-input-wrap-sm input {
  padding: 8px 12px 8px 36px;
  font-size: 14px;
}
.account-input-wrap-sm .account-input-icon { left: 10px; }
.account-input-wrap-sm .account-input-icon svg { width: 16px; height: 16px; }
.account-captcha-field input.captcha-error {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
.account-captcha svg {
  max-width: 16px;
  max-height: 16px;
}

.account-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 18px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.account-divider::before,
.account-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.account-tabs-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px;
  background: var(--bg-input);
  border-radius: var(--radius);
  border: none;
}
.account-tabs-pills .account-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  border: none;
  margin: 0;
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.account-tabs-pills .account-tab svg { width: 16px; height: 16px; flex-shrink: 0; }
.account-tabs-pills .account-tab.active {
  color: var(--text);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  border-bottom: none;
}

.account-form-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.account-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.account-field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.account-field em { font-weight: 400; font-style: normal; opacity: 0.8; }
.account-field input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.account-field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}
.account-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.account-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  pointer-events: none;
  display: flex;
}
.account-input-icon svg { width: 18px; height: 18px; }
.account-input-wrap input {
  width: 100%;
  padding-left: 42px;
}
.btn-account-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-account-submit svg { width: 18px; height: 18px; }

.account-error {
  display: none;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600;
}
.account-error.show { display: block; }
[data-theme="dark"] .account-error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.account-dashboard-modern {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}
.account-profile-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}
.account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--red-soft), var(--bg-input));
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.account-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.account-avatar-initials {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--red);
}
.account-provider-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  background: var(--bg-input);
  border-radius: 999px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.account-profile-head h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.account-profile-head p { font-size: 14px; color: var(--text-muted); }

.account-sub-status {
  margin: 0 0 20px;
  padding: 16px 18px;
  background: var(--bg-input);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
}
.account-sub-status h3 { font-size: 13px; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.sub-active { color: #059669; font-size: 14px; line-height: 1.5; }
.sub-none { color: var(--text-muted); font-size: 14px; }
.sub-none a { color: var(--red); font-weight: 600; }

.account-quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.account-quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}
.account-quick-link:hover {
  border-color: var(--red);
  transform: translateY(-1px);
}
.account-quick-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--red);
}
.account-quick-icon svg { width: 20px; height: 20px; }
.account-quick-link strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.account-quick-link span { font-size: 12px; color: var(--text-muted); }

.account-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.account-actions .btn-subscribe,
.account-actions .btn-outline {
  flex: 1;
  min-width: 160px;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.account-actions svg { width: 18px; height: 18px; }

.account-policy {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  padding-left: 0;
  background: transparent;
  border-left: none;
  border-radius: 0;
}
.account-policy h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.account-policy h3 svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; }
.account-policy ul { list-style: none; }
.account-policy li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 5px 0;
  line-height: 1.5;
}
.account-policy li svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--red);
}

.alert-success {
  padding: 14px 18px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  color: #065f46;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ===== HEADER MODERNE ÉLARGI ===== */
.site-header-modern {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}
.header-utility {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}
.header-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  gap: 12px;
}
.utility-edition {
  font-weight: 600;
  letter-spacing: 0.02em;
}
.utility-links {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.utility-links::-webkit-scrollbar { display: none; }
.utility-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.utility-chip svg { flex-shrink: 0; opacity: 0.9; }
.utility-chip:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}
.utility-chip-accent {
  background: var(--red);
  border-color: var(--red);
}
.utility-chip-accent:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
}
.utility-chip.active {
  background: #fff !important;
  color: var(--navy) !important;
  border-color: #fff !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.utility-chip-accent.active {
  background: #fff !important;
  color: var(--red) !important;
  border-color: #fff !important;
}
.utility-chip.nav-pressed { transform: scale(0.95); }
@media (max-width: 480px) {
  .header-utility-inner { flex-wrap: wrap; }
  .utility-edition { font-size: 11px; }
  .utility-chip { padding: 5px 11px; font-size: 11px; }
}

.site-header-modern .header-top {
  padding: 16px 0;
  gap: 20px;
}
.site-header-modern .logo img { height: 36px; }
@media (min-width: 768px) { .site-header-modern .logo img { height: 40px; } }
.site-header-modern .search-bar {
  max-width: 560px;
  flex: 1;
}
.site-header-modern .search-bar input {
  padding: 12px 16px 12px 44px;
  border-radius: 999px;
  font-size: 14px;
}
.site-header-modern .btn-subscribe {
  padding: 11px 22px;
  border-radius: 999px;
}

[data-theme="dark"] .header-utility {
  background: #060d18;
}

/* ===== PANIER ===== */
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  visibility: hidden;
}
.cart-drawer.open {
  pointer-events: auto;
  visibility: visible;
}
.cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--transition);
}
.cart-drawer.open .cart-overlay { opacity: 1; }
.cart-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(400px, 92vw);
  height: 100%;
  background: var(--bg-elevated);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open .cart-panel { transform: translateX(0); }
.cart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}
.cart-panel-head h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}
.cart-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
}
.cart-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
}
.cart-empty p { margin-bottom: 16px; }
.cart-items { list-style: none; flex: 1; }
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}
.cart-item strong { display: block; margin-bottom: 4px; }
.cart-item span { color: var(--text-muted); font-size: 13px; }
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.cart-item-actions button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: var(--bg-input);
}
.cart-remove { color: var(--red) !important; }
.cart-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 16px;
}
.cart-total strong { color: var(--red); font-size: 1.2rem; }
.cart-checkout { width: 100%; margin-bottom: 8px; justify-content: center; }
.cart-clear { width: 100%; justify-content: center; }

/* ===== FEED CONTENT (espace rempli) ===== */
.feed-promo-strip {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}
@media (min-width: 768px) {
  .feed-promo-strip { grid-template-columns: 1fr 1fr; }
}
.feed-promo-card {
  display: flex;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid #e5e7eb;
  background: #fff;
  align-items: center;
}
.feed-promo-journal { background: linear-gradient(135deg, #f8f9fb, #fff); }
.feed-promo-sub {
  background: linear-gradient(135deg, rgba(227, 6, 19, 0.06), #fff);
  border-color: rgba(227, 6, 19, 0.2);
}
.feed-promo-img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.feed-promo-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 4px;
}
.feed-promo-card strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
}
.feed-promo-card > div > span:last-of-type {
  font-size: 12px;
  color: #6b7280;
  display: block;
  margin-bottom: 10px;
}
.feed-promo-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-add-cart {
  padding: 8px 14px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-add-cart:hover { background: var(--red-hover); }
.feed-promo-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}

.feed-list-block {
  margin: 16px 0;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.feed-subtitle {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}
.feed-list { display: flex; flex-direction: column; gap: 0; }
.feed-list-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  transition: background var(--transition);
}
.feed-list-item:last-child { border-bottom: none; }
.feed-list-item:hover { opacity: 0.85; }
.feed-list-item img {
  width: 100px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .feed-list-item img { width: 120px; height: 84px; }
}
.feed-list-body { flex: 1; min-width: 0; }
.feed-list-body h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin: 6px 0 4px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-dossier {
  margin-top: 16px;
  padding: 18px;
  background: var(--bg-input);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.feed-dossier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.feed-dossier-head h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.feed-dossier-grid {
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) {
  .feed-dossier-grid { grid-template-columns: 1fr 1fr; }
}
.dossier-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  display: block;
  min-height: 180px;
}
.dossier-card img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.dossier-card:hover img { transform: scale(1.05); }
.dossier-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 25, 46, 0.92) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #fff;
}
.dossier-overlay h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 8px;
}

[data-theme="light"] .content-light .news-card,
[data-theme="light"] .content-light .news-card h3,
[data-theme="light"] .content-light .news-card-footer {
  color: #1a1a1a;
}
[data-theme="light"] .content-light .news-card-footer span { color: #6b7280; }

/* Mode nuit — textes et cartes lisibles dans content-light */
[data-theme="dark"] .content-light .home-section {
  border-top-color: var(--border);
}
[data-theme="dark"] .content-light .live-brief-inner {
  background: var(--bg-card);
  border-color: var(--border);
}
[data-theme="dark"] .content-light .live-brief-stat { color: var(--text-muted); }
[data-theme="dark"] .content-light .live-brief-stat strong { color: var(--text); }
[data-theme="dark"] .sidebar-read-block,
[data-theme="dark"] .feed-list-block,
[data-theme="dark"] .feed-promo-card,
[data-theme="dark"] .feed-dossier {
  background: var(--bg-card);
  border-color: var(--border);
}
[data-theme="dark"] .sidebar-read-block h3,
[data-theme="dark"] .sidebar-read-item h4,
[data-theme="dark"] .feed-subtitle,
[data-theme="dark"] .feed-list-body h3,
[data-theme="dark"] .feed-dossier-head h3,
[data-theme="dark"] .feed-promo-card strong {
  color: var(--text);
}
[data-theme="dark"] .sidebar-read-item,
[data-theme="dark"] .feed-list-item {
  border-bottom-color: var(--border);
}
[data-theme="dark"] .feed-promo-card > div > span:last-of-type {
  color: var(--text-muted);
}
[data-theme="dark"] .feed-promo-journal {
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
}
[data-theme="dark"] .feed-promo-sub {
  background: linear-gradient(135deg, rgba(227, 6, 19, 0.12), var(--bg-card));
  border-color: rgba(227, 6, 19, 0.35);
}
[data-theme="dark"] .content-light .news-card {
  background: var(--bg-card);
  border-color: var(--border);
}
[data-theme="dark"] .content-light .news-card h3 { color: var(--text); }
[data-theme="dark"] .content-light .news-card-footer span { color: var(--text-muted); }
[data-theme="dark"] .content-light .section-title { color: var(--text); }
[data-theme="dark"] .content-light .section-link { color: var(--red); }
[data-theme="dark"] .content-light .category-label { color: var(--text); }

/* ===== PAGES INTÉRIEURES — DESIGN UNIFIÉ ===== */
.page-shell {
  padding-bottom: 16px;
  background: var(--bg-page);
}
.inner-page { min-height: 50vh; }

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #152a4a 100%);
  color: #fff;
  padding: 28px 0 32px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(227, 6, 19, 0.18), transparent 55%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(227, 6, 19, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  margin-bottom: 12px;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
  max-width: 22ch;
}
.page-hero p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 52ch;
  line-height: 1.55;
}
.page-hero-compact { padding: 22px 0 26px; }
.page-hero-compact h1 { max-width: none; font-size: clamp(1.5rem, 3.5vw, 2rem); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.55);
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { opacity: 0.45; }
.breadcrumb-light {
  padding: 14px 0 0;
  color: var(--text-muted);
}
.breadcrumb-light a { color: var(--text-muted); }
.breadcrumb-light a:hover { color: var(--red); }

.inner-layout {
  display: grid;
  gap: 28px;
  padding: 24px 0 40px;
}
@media (min-width: 1024px) {
  .inner-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }
}
.inner-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 1024px) {
  .inner-sidebar { position: sticky; top: calc(var(--header-h) + 16px); }
}

.list-card-body { flex: 1; min-width: 0; }
.list-card-featured {
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
@media (min-width: 640px) {
  .list-card-featured {
    flex-direction: row;
    align-items: stretch;
  }
}
.list-card-featured .list-card-media,
.list-card-featured > img { width: 100%; border-radius: 0; }
.list-card-featured .list-card-media img,
.list-card-featured > img {
  width: 100%;
  height: 200px;
  border-radius: 0;
}
@media (min-width: 640px) {
  .list-card-featured .list-card-media,
  .list-card-featured > img { width: 42%; }
  .list-card-featured .list-card-media img,
  .list-card-featured > img {
    width: 100%;
    height: auto;
    min-height: 220px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  }
}
.list-card-featured .list-card-body { padding: 20px 22px; }
.list-card-featured h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

.articles-list-featured .list-card:first-child { margin-bottom: 4px; }

.search-hero-form {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  max-width: 520px;
}
.search-hero-form input {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 15px;
  outline: none;
}
.search-hero-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.search-hero-form input:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
}
.search-hero-form button {
  padding: 12px 22px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}
.search-hero-form button:hover { background: var(--red-hover); }

.content-page {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.7;
}
.content-page-wide { max-width: none; }
.content-page p { margin-bottom: 1.2em; }
.content-page p:last-child { margin-bottom: 0; }

.content-surface {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
}
@media (min-width: 768px) {
  .content-surface { padding: 28px 28px; }
}
.inner-layout-single { max-width: 820px; margin: 0 auto; }

.page-intro {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.4em !important;
  padding-bottom: 1.2em;
  border-bottom: 1px solid var(--border-soft);
}

.section-header-block {
  margin: 28px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.section-header-block h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.section-header-block p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.content-footer-block {
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--bg-input);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}
.content-footer-block strong { color: var(--text); }

.page-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 1024px) {
  .page-aside { position: sticky; top: calc(var(--header-h) + 16px); }
}

.info-grid {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}
@media (min-width: 640px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}
.info-card {
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.info-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-soft);
  color: var(--red);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.info-card-icon svg { width: 22px; height: 22px; }
.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.info-card p, .info-card a {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}
.info-card a { color: var(--red); font-weight: 600; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 28px 0;
}
@media (min-width: 640px) {
  .about-stats { grid-template-columns: repeat(4, 1fr); }
}
.about-stat {
  text-align: center;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.about-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 6px;
}
.about-stat span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.video-grid {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}
@media (min-width: 768px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
.video-grid .video-card:first-child {
  grid-column: 1 / -1;
}
.video-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: block;
  transition: transform var(--transition), box-shadow var(--transition);
}
.video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.video-card-media {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.video-card-media > img,
.video-card-media > a > img {
  width: 100%;
  display: block;
}
.video-card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.video-card:first-child .video-card-media img { aspect-ratio: 21 / 9; min-height: 220px; }
.video-card:hover .video-card-media img { transform: scale(1.04); }
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 25, 46, 0.35);
  transition: background var(--transition);
}
.video-card:hover .video-play { background: rgba(11, 25, 46, 0.5); }
.video-play-btn {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition);
}
.video-play-btn svg { width: 22px; height: 22px; margin-left: 3px; }
.video-card:hover .video-play-btn { transform: scale(1.08); }
.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.video-card-body { padding: 16px 18px 18px; }
.video-card-body h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-card:first-child .video-card-body h3 { font-size: 20px; -webkit-line-clamp: 3; }

.journal-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}
@media (min-width: 768px) {
  .journal-layout { grid-template-columns: 280px 1fr; }
}
.journal-cover-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.journal-cover-wrap img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.journal-cover-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}
.journal-info h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.journal-info p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.journal-price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin: 16px 0 20px;
  padding: 10px 16px;
  background: var(--red-soft);
  border-radius: var(--radius);
}
.journal-price strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red);
}
.journal-price span { font-size: 13px; color: var(--text-muted); }
.journal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.article-layout {
  display: grid;
  gap: 32px;
  padding: 0 0 48px;
}
@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
}
.article-main { min-width: 0; }
.article-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 1024px) {
  .article-aside { position: sticky; top: calc(var(--header-h) + 16px); }
}
.related-block {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.related-block h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}
.related-item {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.related-item:last-child { border-bottom: none; padding-bottom: 0; }
.related-item h4 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin: 6px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-item:hover h4 { color: var(--red); }

.subscription-page .page-hero { margin-bottom: 0; }

.categories-page-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 8px;
}
@media (min-width: 640px) {
  .categories-page-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .categories-page-grid { grid-template-columns: repeat(4, 1fr); }
}
.category-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.category-nav-card:hover {
  transform: translateY(-2px);
  border-color: var(--red);
  box-shadow: var(--shadow-sm);
}
.category-nav-card .category-photo {
  width: 64px;
  height: 64px;
}
.category-nav-card span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.legal-block {
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.legal-block h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.legal-block p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ===== GLOBAL PAGE POLISH ===== */
.article-page.content-surface,
.article-main.content-surface {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
}
.article-page { padding: 24px 0 56px; }
.article-hero-img {
  border: 1px solid var(--border);
}
.related-block,
.sidebar-read-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
}
.related-block h3,
.sidebar-read-block h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}
.category-nav-card {
  box-shadow: var(--shadow-sm);
}
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* ===== PERFORMANCE ===== */
.news-card,
.video-card,
.feed-row,
.rubrique-block,
.category-tile {
  content-visibility: auto;
  contain-intrinsic-size: auto 280px;
}
img {
  max-width: 100%;
  height: auto;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
