/**
 * Hayatoky Editorial Design System
 * High-performance, clean, modular CSS
 */

:root {
  /* Colors */
  --primary: #b70c36;
  --primary-container: #db2f4c;
  --on-primary: #ffffff;
  --primary-fixed: #ffdada;
  --primary-fixed-dim: #ffb3b6;
  --on-primary-fixed: #40000c;
  --on-primary-fixed-variant: #920028;
  --breaking-ticker-bg: #df324f;
  
  --secondary: #5e5e63;
  --secondary-container: #e0dfe4;
  --on-secondary: #ffffff;
  --on-secondary-container: #626267;
  --secondary-fixed: #e3e2e7;
  --secondary-fixed-dim: #c7c6cb;
  
  --tertiary: #a82d47;
  --tertiary-container: #c9465e;
  --on-tertiary: #ffffff;
  --tertiary-fixed: #ffd9dc;
  --tertiary-fixed-dim: #ffb2ba;
  --on-tertiary-fixed-variant: #8b1433;
  
  --on-surface: #191c1f;
  --on-surface-variant: #5b4041;
  --surface: #f8f9fd;
  --surface-dim: #d8dade;
  --surface-bright: #f8f9fd;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f2f3f7;
  --surface-container: #eceef2;
  --surface-container-high: #e7e8ec;
  --surface-container-highest: #e1e2e6;
  
  --inverse-surface: #2e3134;
  --inverse-on-surface: #eff1f4;
  --inverse-primary: #ffb3b6;
  
  --editorial-paper: #ffffff;
  --editorial-canvas: #faf8f5;
  --editorial-muted: #5d6169;
  --editorial-border: #e3ded6;
  --editorial-border-light: #ece7e0;
  --ad-container-bg: #f4f0e8;
  --ad-label-color: #8c9099;
  
  /* Fonts */
  --font-headline: 'Newsreader', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Radii */
  --radius-sm: 0.125rem;
  --radius-default: 0.25rem;
  --radius-lg: 0.25rem;
  --radius-xl: 0.5rem;
  --radius-2xl: 0.75rem;
  --radius-full: 9999px;
  
  /* Spacing */
  --max-width: 1280px;
  --gutter: 1.5rem;
}

/* Base resets & typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-surface);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background-color: var(--editorial-canvas);
  color: var(--on-surface);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

::selection {
  background-color: var(--primary);
  color: var(--on-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Material Symbols font setup */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* Typography tokens matching DESIGN.md */
.font-headline-lg {
  font-family: var(--font-headline);
  font-size: 36px;
  line-height: 44px;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.font-headline-md {
  font-family: var(--font-headline);
  font-size: 24px;
  line-height: 30px;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.font-headline-sm {
  font-family: var(--font-headline);
  font-size: 19px;
  line-height: 25px;
  font-weight: 600;
}
.font-display-hero {
  font-family: var(--font-headline);
  font-size: 52px;
  line-height: 60px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.font-display-hero-mobile {
  font-family: var(--font-headline);
  font-size: 34px;
  line-height: 40px;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.font-body-lead {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}
.font-body-md {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
  font-weight: 400;
}
.font-body-sm {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
}
.font-label-editorial {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
}
.font-label-ticker {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.font-caption {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
}

/* Mobile Typo Adjustments */
@media (max-width: 767px) {
  .font-headline-lg {
    font-size: 26px;
    line-height: 32px;
  }
  .font-headline-md {
    font-size: 20px;
    line-height: 26px;
  }
  .font-headline-sm {
    font-size: 16px;
    line-height: 22px;
  }
  .font-body-lead {
    font-size: 16px;
    line-height: 24px;
  }
}

/* Layout Utilities */
.max-w-7xl {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-0 { left: 0; right: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.bottom-4 { bottom: 1rem; }
.bottom-6 { bottom: 1.5rem; }
.bottom-8 { bottom: 2rem; }
.bottom-20 { bottom: 5rem; }
.bottom-24 { bottom: 6rem; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }
.right-5 { right: 1.25rem; }
.right-6 { right: 1.5rem; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-\[60\] { z-index: 60; }

/* Flex & Grid */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .sm\:flex { display: flex; }
  .sm\:hidden { display: none; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:w-5\/12 { width: 41.666667%; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:col-span-6 { grid-column: span 6 / span 6; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:h-14 { height: 3.5rem; }
  .lg\:p-8 { padding: 2rem; }
  .lg\:pb-0 { padding-bottom: 0 !important; }
  .lg\:pb-8 { padding-bottom: 2rem !important; }
  .lg\:bottom-6 { bottom: 1.5rem; }
  .lg\:bottom-8 { bottom: 2rem; }
  .lg\:right-6 { right: 1.5rem; }
  .lg\:pr-8 { padding-right: 2rem; }
}

@media (min-width: 1280px) {
  .xl\:inline { display: inline; }
}

/* Spacing & Gaps */
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-3\.5 { gap: 0.875rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pt-16 { padding-top: 4rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-24 { padding-bottom: 6rem; }

.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-2\.5 { margin-top: 0.625rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-2\.5 { margin-bottom: 0.625rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-16 { margin-bottom: 4rem; }
.ml-auto { margin-left: auto; }

/* Safe Area Paddings for Modern Mobile Devices */
.pt-safe { padding-top: env(safe-area-inset-top, 0px); }
.pb-safe { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* Aspect Ratios */
.aspect-\[16\/9\] { aspect-ratio: 16 / 9; }
.aspect-\[16\/10\] { aspect-ratio: 16 / 10; }
.aspect-\[16\/11\] { aspect-ratio: 16 / 11; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.whitespace-nowrap { white-space: nowrap; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Colors Utilities */
.bg-primary { background-color: var(--primary); }
.bg-primary-container { background-color: var(--primary-container); }
.bg-primary-fixed { background-color: var(--primary-fixed); }
.bg-breaking-ticker-bg { background-color: var(--breaking-ticker-bg); }
.bg-editorial-paper { background-color: var(--editorial-paper); }
.bg-editorial-canvas { background-color: var(--editorial-canvas); }
.bg-surface { background-color: var(--surface); }
.bg-surface-container { background-color: var(--surface-container); }
.bg-surface-container-low { background-color: var(--surface-container-low); }
.bg-surface-container-lowest { background-color: var(--surface-container-lowest); }
.bg-surface-container-high { background-color: var(--surface-container-high); }
.bg-surface-container-highest { background-color: var(--surface-container-highest); }
.bg-on-surface { background-color: var(--on-surface); }
.bg-inverse-surface { background-color: var(--inverse-surface); }
.bg-ad-container-bg { background-color: var(--ad-container-bg); }

.text-primary { color: var(--primary); }
.text-tertiary { color: var(--tertiary); }
.text-on-primary { color: var(--on-primary); }
.text-on-primary-container { color: #fffbff; }
.text-on-surface { color: var(--on-surface); }
.text-on-surface-variant { color: var(--on-surface-variant); }
.text-surface-bright { color: var(--surface-bright); }
.text-editorial-muted { color: var(--editorial-muted); }
.text-ad-label-color { color: var(--ad-label-color); }
.text-inverse-on-surface { color: var(--inverse-on-surface); }
.text-white { color: #ffffff; }

/* Borders & Outlines */
.border { border: 1px solid var(--editorial-border); }
.border-2 { border: 2px solid; }
.border-b { border-bottom: 1px solid var(--editorial-border); }
.border-t { border-top: 1px solid var(--editorial-border); }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-editorial-border { border-color: var(--editorial-border); }
.border-editorial-border-light { border-color: var(--editorial-border-light); }
.border-l-primary { border-left-color: var(--primary); }
.border-rose-500 { border-color: #f43f5e; }
.border-emerald-600 { border-color: #059669; }
.border-sky-500 { border-color: #0ea5e9; }
.border-dashed { border-style: dashed; }
.divide-y > * + * { border-top: 1px solid var(--editorial-border-light); }

/* Border Radius */
.rounded-DEFAULT, .rounded { border-radius: var(--radius-default); }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: var(--radius-full); }

/* Shadows */
.shadow-xs { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.shadow-sm { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03); }
.shadow { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06); }

/* Transitions & Animations */
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 0.2s; }
.transition-transform { transition-property: transform; transition-duration: 0.3s; }
.transition-all { transition-property: all; transition-duration: 0.25s; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }

.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:scale-\[1\.02\] { transform: scale(1.02); }
.group:hover .group-hover\:text-primary { color: var(--primary); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(4px); }

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}
.animate-ping {
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin {
  animation: spin 1s linear infinite;
}

/* Backdrop Blur */
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.backdrop-blur-xl { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

/* Ticker smooth scrolling */
.ticker-scroll {
  display: flex;
  white-space: nowrap;
  animation: ticker-loop 35s linear infinite;
}
.ticker-scroll:hover {
  animation-play-state: paused;
}
@keyframes ticker-loop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Reading Progress Bar */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--breaking-ticker-bg));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Drop cap for articles */
.has-drop-cap:first-letter {
  float: left;
  font-family: var(--font-headline);
  font-size: 4.8rem;
  line-height: 0.8;
  padding-top: 4px;
  padding-right: 12px;
  padding-bottom: 2px;
  font-weight: 700;
  color: var(--primary);
}

/* Article rich content typography */
.article-content {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: #25282b;
}
.article-content p {
  margin-bottom: 1.5rem;
}
.article-content h2 {
  font-family: var(--font-headline);
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
  color: var(--on-surface);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.article-content h3 {
  font-family: var(--font-headline);
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  color: var(--on-surface);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background-color: var(--surface-container-low);
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 21px;
  line-height: 1.5;
  color: var(--on-surface);
  border-radius: 0 var(--radius-default) var(--radius-default) 0;
}
.article-content ul, .article-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}
.article-content li {
  margin-bottom: 0.5rem;
}
.article-content img {
  border-radius: var(--radius-default);
  margin: 2rem auto;
}

/* Mobile Drawer */
#mobile-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background-color: var(--editorial-paper);
  z-index: 1000;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
#mobile-drawer.open {
  transform: translateX(320px);
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Search Modal */
#search-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(25, 28, 31, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}
#search-modal.open {
  display: flex;
}

/* Scrollbar clean */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--surface-container-low);
}
::-webkit-scrollbar-thumb {
  background: var(--editorial-border);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Mobile Tab Active */
.mobile-tab-active {
  color: var(--primary) !important;
  font-weight: 600;
}

/* Mobile Bottom Nav — hauteur réelle + safe area iOS */
.mobile-bottom-nav {
  height: calc(4rem + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobile-bottom-nav .flex {
  height: 4rem;
}

/* Back to Top — au-dessus de la barre de navigation mobile */
#back-to-top {
  /* Garantit que le bouton reste au-dessus de la bottom nav (z-50) */
  z-index: 60 !important;
}

/* Icônes sociales dans le ticker sur mobile */
@media (max-width: 767px) {
  .ticker-social-mobile svg {
    width: 14px !important;
    height: 14px !important;
  }
}

/* Corrections espacement responsive */
@media (max-width: 639px) {
  /* Réduit les gaps dans le ticker sur petit écran */
  .ticker-social-wrap {
    gap: 0.375rem;
  }
}

/* Print Optimization */
@media print {
  header, footer, aside, .mobile-bottom-nav, .ad-zone, #load-more-btn {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
}

/* Color Badge & Accent Utilities */
.bg-rose-50 { background-color: #fff1f2; }
.text-rose-600 { color: #e11d48; }
.text-rose-700 { color: #be123c; }
.border-rose-200 { border-color: #fecdd3; }
.border-rose-200\/60 { border-color: rgba(254, 205, 211, 0.6); }

.bg-emerald-50 { background-color: #ecfdf5; }
.text-emerald-700 { color: #047857; }
.border-emerald-200 { border-color: #a7f3d0; }
.border-emerald-200\/60 { border-color: rgba(167, 243, 208, 0.6); }

.bg-amber-50 { background-color: #fffbeb; }
.bg-amber-100 { background-color: #fef3c7; }
.bg-amber-200\/80 { background-color: rgba(253, 230, 138, 0.8); }
.text-amber-700 { color: #b45309; }
.text-amber-900 { color: #78350f; }
.border-amber-100 { border-color: #fef3c7; }
.border-amber-400\/40 { border-color: rgba(251, 191, 36, 0.4); }

.bg-sky-50 { background-color: #f0f9ff; }
.bg-sky-100\/70 { background-color: rgba(224, 242, 254, 0.7); }
.text-sky-500 { color: #0ea5e9; }
.text-sky-700 { color: #0369a1; }
.text-sky-700\/80 { color: rgba(3, 105, 161, 0.8); }
.border-sky-100 { border-color: #e0f2fe; }

.bg-orange-50 { background-color: #fff7ed; }
.bg-orange-100\/70 { background-color: rgba(254, 215, 170, 0.7); }
.text-orange-500 { color: #f97316; }
.text-orange-700 { color: #c2410c; }
.text-orange-700\/80 { color: rgba(194, 65, 12, 0.8); }
.border-orange-100 { border-color: #ffedd5; }

.bg-cyan-50 { background-color: #ecfeff; }
.bg-cyan-100\/70 { background-color: rgba(207, 250, 254, 0.7); }
.text-cyan-600 { color: #0891b2; }
.text-cyan-700 { color: #0e7490; }
.border-cyan-100 { border-color: #cffafe; }

.bg-violet-50 { background-color: #f5f3ff; }
.text-violet-700 { color: #6d28d9; }

/* Gradients */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops, transparent, transparent));
}
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops, transparent, transparent));
}
.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-stops, transparent, transparent));
}
.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops, transparent, transparent));
}

.from-red-50\/70 { --tw-gradient-from: rgba(254, 242, 242, 0.7); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(254, 242, 242, 0)); }
.via-editorial-paper { --tw-gradient-stops: var(--tw-gradient-from), var(--editorial-paper), var(--tw-gradient-to, rgba(255, 255, 255, 0)); }
.to-amber-50\/50 { --tw-gradient-to: rgba(255, 251, 235, 0.5); }

.from-rose-500 { --tw-gradient-from: #f43f5e; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(244, 63, 94, 0)); }
.to-pink-500 { --tw-gradient-to: #ec4899; }
.to-amber-500 { --tw-gradient-to: #f59e0b; }

.from-emerald-600 { --tw-gradient-from: #059669; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(5, 150, 105, 0)); }
.to-teal-500 { --tw-gradient-to: #14b8a6; }

.from-sky-500 { --tw-gradient-from: #0ea5e9; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(14, 165, 233, 0)); }
.to-indigo-500 { --tw-gradient-to: #6366f1; }

.from-primary { --tw-gradient-from: var(--primary); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(183, 12, 54, 0)); }
.to-primary-container { --tw-gradient-to: var(--primary-container); }
.to-tertiary { --tw-gradient-to: var(--tertiary); }

.from-on-surface\/90 { --tw-gradient-from: rgba(25, 28, 31, 0.9); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(25, 28, 31, 0)); }
.via-on-surface\/30 { --tw-gradient-stops: var(--tw-gradient-from), rgba(25, 28, 31, 0.3), var(--tw-gradient-to, transparent); }
.to-transparent { --tw-gradient-to: transparent; }

.scrollbar-none {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

/* ==========================================================================
   VIBRANT EDITORIAL THEMES & RICH COLOR ACCENTS
   ========================================================================== */

/* Themed Section Backdrops */
.section-theme-hero {
  background: linear-gradient(160deg, #ffffff 0%, #fff7f8 45%, #fffdf9 100%);
  border: 1px solid rgba(183, 12, 54, 0.12);
  box-shadow: 0 4px 20px -2px rgba(183, 12, 54, 0.04);
  border-radius: var(--radius-xl);
}

.section-theme-beauty {
  background: linear-gradient(145deg, #fff2f5 0%, #fff8f9 55%, #fff1f4 100%);
  border: 1px solid #fed7df;
  box-shadow: 0 6px 20px -2px rgba(225, 29, 72, 0.06);
  border-radius: var(--radius-xl);
}

.section-theme-eco {
  background: linear-gradient(145deg, #fffdf8 0%, #faf8f2 50%, #f4fbf7 100%);
  border: 1px solid #f2e8d5;
  box-shadow: 0 6px 20px -2px rgba(217, 119, 6, 0.06);
  border-radius: var(--radius-xl);
}

.section-theme-life {
  background: linear-gradient(145deg, #f0f7ff 0%, #f6faff 50%, #faf5ff 100%);
  border: 1px solid #bae6fd;
  box-shadow: 0 6px 20px -2px rgba(2, 132, 199, 0.06);
  border-radius: var(--radius-xl);
}

/* Card elevation with vibrant top ribbon */
.editorial-card {
  background-color: #ffffff;
  border: 1px solid var(--editorial-border);
  border-radius: var(--radius-default);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.editorial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary), #f43f5e, #fb923c);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.editorial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(31, 32, 36, 0.08), 0 4px 12px -2px rgba(183, 12, 54, 0.06);
  border-color: rgba(183, 12, 54, 0.35);
}
.editorial-card:hover::before {
  opacity: 1;
}

/* Ranking gradient numerals */
.rank-num-01 {
  background: linear-gradient(135deg, #b70c36 0%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.rank-num-02 {
  background: linear-gradient(135deg, #db2777 0%, #be123c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.rank-num-03 {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.rank-num-04, .rank-num-05 {
  color: #717680;
  font-weight: 700;
}

/* Sticky Navbar subtle top brand hairline */
.sticky-nav-bar {
  border-top: 2px solid var(--primary);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* Section Theme: Culture, Cinéma & Art de Vivre */
.section-theme-culture {
  background: linear-gradient(145deg, #fdf9f7 0%, #faf3f5 50%, #f4eef9 100%);
  border: 1px solid #ebd9ea;
  box-shadow: 0 6px 20px -2px rgba(147, 51, 234, 0.06);
  border-radius: var(--radius-xl);
}

/* ==========================================================================
   Hero Slider Magazine ("À la Une")
   ========================================================================== */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  border-radius: var(--radius-default);
  background-color: #0f172a;
}
@media (max-width: 1024px) {
  .hero-slider-wrapper {
    height: 460px;
  }
}
@media (max-width: 640px) {
  .hero-slider-wrapper {
    height: 400px;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slide.active .hero-slide-img {
  transform: scale(1);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.25) 0%,
    rgba(15, 23, 42, 0.45) 45%,
    rgba(15, 23, 42, 0.94) 85%,
    #0f172a 100%
  );
  pointer-events: none;
}

.hero-slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.25rem;
  color: #ffffff;
  z-index: 10;
}
@media (max-width: 640px) {
  .hero-slide-content {
    padding: 1.25rem;
  }
}

.hero-slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.hero-slider-nav-btn:hover {
  background: #b70c36;
  border-color: #b70c36;
  transform: translateY(-50%) scale(1.08);
}
.hero-slider-prev {
  left: 1rem;
}
.hero-slider-next {
  right: 1rem;
}

.hero-slider-dots-container {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 20;
}

.hero-slider-dot {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.hero-slider-dot.active {
  width: 42px;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Hero Playlist (4 cols companion) */
.hero-playlist-card {
  background: #ffffff;
  border: 1px solid var(--editorial-border);
  border-radius: var(--radius-default);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  height: 520px;
  overflow: hidden;
}
@media (max-width: 1024px) {
  .hero-playlist-card {
    height: auto;
  }
}

.hero-playlist-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-left: 3px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}
.hero-playlist-item:not(:last-child) {
  border-bottom: 1px solid var(--editorial-border-light);
}
.hero-playlist-item:hover {
  background-color: #faf8f5;
}
.hero-playlist-item.active {
  background-color: #fff6f8;
  border-left-color: #b70c36;
}
.hero-playlist-item.active h4 {
  color: #b70c36;
  font-weight: 700;
}
.hero-playlist-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #b70c36;
  width: 0%;
  transition: width 0.1s linear;
}
.hero-playlist-item.active .hero-playlist-progress {
  animation: heroProgressAnim 5s linear forwards;
}

@keyframes heroProgressAnim {
  from { width: 0%; }
  to { width: 100%; }
}


