/* ============================================
   Quantior.fr — Premium Design System v2
   Inspired by Clic Renov premium patterns
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #0B2545;
  --primary-light: #13345A;
  --primary-dark: #071A33;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-light: #3B82F6;
  --accent-glow: rgba(37,99,235,0.15);
  --accent-glow-strong: rgba(37,99,235,0.25);
  --accent-gold: #C9A84C;
  --accent-gold-light: #E0C373;
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-subtle: #F1F5F9;
  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1200px;
  --container-narrow: 800px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* --- Keyframe Animations --- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, 30px); }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

h1 { font-size: 2.5rem; letter-spacing: -0.03em; }
h2 { font-size: 1.875rem; letter-spacing: -0.02em; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Gradient Text Utility --- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section--light {
  background: var(--bg-light);
}

/* --- Background Patterns --- */
.bg-grid-pattern {
  position: relative;
}

.bg-grid-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 8s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.bg-radial-glow {
  position: relative;
  overflow: hidden;
}

.bg-radial-glow::after {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.24s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.36s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.48s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.6s; }

/* --- Header --- */
.site-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-gold), var(--accent));
  background-size: 200% auto;
  animation: gradientShift 4s ease infinite;
}

.site-header.scrolled {
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
  border-bottom-color: var(--border);
  background: rgba(255,255,255,0.97);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--primary);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
}

.header-logo svg {
  width: 36px;
  height: 36px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-nav a {
  color: var(--text-secondary);
  font-size: 0.938rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.header-nav a:hover::after,
.header-nav a.active::after {
  width: 100%;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--primary);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #fff !important;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.header-cta::after {
  display: none;
}

.header-cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.938rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.2);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,99,235,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,99,235,0.25);
}

.btn--white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.btn--white:hover {
  background: #fff;
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.btn--ghost {
  background: rgba(37,99,235,0.08);
  color: var(--accent);
  border: 1px solid rgba(37,99,235,0.2);
}

.btn--ghost:hover {
  background: rgba(37,99,235,0.12);
  color: var(--accent-hover);
  transform: translateY(-2px);
  border-color: rgba(37,99,235,0.35);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* ============================================
   HERO — Light background with grid + gradients
   ============================================ */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

/* Animated grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: -30px;
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 12s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* Radial glow top-right */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Second radial glow bottom-left */
.hero-glow {
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1.25rem;
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 100px;
  background: rgba(37,99,235,0.05);
  animation: fadeInUp 0.8s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseGlow 2s ease infinite;
}

.hero h1 {
  color: var(--primary);
  font-size: 3.25rem;
  margin-bottom: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

/* Remove old hero-bg / hero-label styles (replaced) */
.hero-bg { display: none; }
.hero-label { display: none; }

/* ============================================
   CARDS — Glow effect on hover
   ============================================ */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

/* Bottom accent line */
.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.card:hover {
  border-color: rgba(37,99,235,0.15);
  transform: translateY(-6px);
  box-shadow:
    0 4px 6px rgba(37,99,235,0.04),
    0 10px 25px rgba(37,99,235,0.08),
    0 20px 50px rgba(37,99,235,0.04);
}

.card:hover::after {
  transform: scaleX(1);
}

.card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
}

.card-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.card-title a {
  color: inherit;
  transition: color var(--transition);
}

.card-title a:hover {
  color: var(--accent);
}

.card-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ============================================
   CATEGORY CARDS — Glow design
   ============================================ */
.category-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

/* Gradient top line on hover */
.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: transform var(--transition);
}

/* Subtle glow overlay on hover */
.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(37,99,235,0.04) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card:hover::after {
  opacity: 1;
}

.category-card:hover {
  border-color: rgba(37,99,235,0.2);
  color: var(--text-primary);
  transform: translateY(-4px);
  box-shadow:
    0 4px 6px rgba(37,99,235,0.04),
    0 10px 25px rgba(37,99,235,0.08),
    0 20px 50px rgba(37,99,235,0.04);
}

.category-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(37,99,235,0.03));
  border-radius: var(--radius-md);
  flex-shrink: 0;
  transition: all var(--transition);
}

.category-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-card:hover .category-icon {
  background: var(--accent);
  box-shadow: 0 4px 15px rgba(37,99,235,0.3);
}

.category-card:hover .category-icon svg {
  stroke: #fff;
}

.category-info h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.category-info p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* --- Grid layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ============================================
   FEATURED ARTICLE (A la une)
   ============================================ */
.featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.featured-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  position: relative;
}

.featured-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
  pointer-events: none;
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-img:hover img {
  transform: scale(1.03);
}

.featured-content .card-category {
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
}

.featured-content h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.featured-content h3 a {
  color: var(--primary);
  transition: color var(--transition);
}

.featured-content h3 a:hover {
  color: var(--accent);
}

.featured-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.featured-content .card-meta {
  margin-bottom: 1.5rem;
}

/* ============================================
   WHY SECTION — Dark with photo overlay
   ============================================ */
.section--dark {
  background: var(--primary-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.section--dark .section-header h2 {
  color: #fff;
}

.section--dark .section-header p {
  color: rgba(255,255,255,0.6);
}

.why-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.why-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(37,99,235,0.2);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.why-card:hover::after {
  transform: scaleX(1);
}

.why-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  background: rgba(37,99,235,0.12);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.why-card:hover .why-icon {
  background: var(--accent);
  box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}

.why-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent-light);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--transition);
}

.why-card:hover .why-icon svg {
  stroke: #fff;
}

.why-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.why-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ============================================
   CAROUSEL
   ============================================ */
.carousel-section {
  position: relative;
}

.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.carousel-header .section-header {
  text-align: left;
  margin-bottom: 0;
}

.carousel-controls {
  display: flex;
  gap: 0.5rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-white);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-secondary);
}

.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(37,99,235,0.25);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track .card {
  min-width: 340px;
  max-width: 340px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   NEWSLETTER CTA — Dark with radial glows
   ============================================ */
.newsletter-section {
  background: var(--primary-dark);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Grid pattern */
.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* Radial glow blue */
.newsletter-glow-1 {
  position: absolute;
  top: -40%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Radial glow gold */
.newsletter-glow-2 {
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.newsletter-section .container {
  position: relative;
  z-index: 1;
}

.newsletter-section h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.newsletter-section p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 0.938rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all var(--transition);
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.35);
}

.newsletter-form input[type="email"]:focus {
  border-color: rgba(37,99,235,0.5);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.newsletter-form button {
  padding: 0.85rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.938rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
}

/* ============================================
   FOOTER — Premium dark with gradient accents
   ============================================ */
.site-footer {
  background: var(--primary-dark);
  color: #CBD5E1;
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* Gradient top divider */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-gold), var(--accent));
  background-size: 200% auto;
  animation: gradientShift 4s ease infinite;
}

/* Subtle grid pattern */
.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 1.5rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #64748B;
  margin-top: 1rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-col a {
  display: block;
  color: #64748B;
  font-size: 0.875rem;
  padding: 0.35rem 0;
  transition: all var(--transition);
  position: relative;
}

.footer-col a:hover {
  color: #fff;
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: #475569;
}

.footer-bottom a {
  color: #475569;
}

.footer-bottom a:hover {
  color: #94A3B8;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: 1.25rem 1.5rem;
  z-index: 1000;
  display: none;
}

.cookie-banner.active {
  display: block;
}

.cookie-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cookie-text {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-text a {
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: all var(--transition);
}

.cookie-btn--accept {
  background: var(--accent);
  color: #fff;
}

.cookie-btn--accept:hover {
  background: var(--accent-hover);
}

.cookie-btn--refuse {
  background: var(--bg-light);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.cookie-btn--refuse:hover {
  background: var(--bg-subtle);
}

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: -30px;
  background-image:
    linear-gradient(rgba(37,99,235,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  position: relative;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  position: relative;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: var(--text-secondary);
}

/* --- Legal pages --- */
.legal-content {
  padding: 3rem 0;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.125rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  font-size: 0.938rem;
  line-height: 1.75;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content a {
  text-decoration: underline;
}

.legal-date {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

/* --- 404 --- */
.page-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.page-404 h1 {
  font-size: 6rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.page-404 h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.page-404 p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Newsletter standalone page --- */
.newsletter-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.newsletter-page .container {
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.newsletter-page h1 {
  margin-bottom: 1rem;
}

.newsletter-page .subtitle {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.newsletter-standalone-form {
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-standalone-form input[type="email"] {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  margin-bottom: 0.75rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.newsletter-standalone-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.newsletter-standalone-form button {
  width: 100%;
  padding: 0.9rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.newsletter-standalone-form button:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}

.newsletter-standalone-form .form-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  display: none;
}

.form-message--success {
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.form-message--error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* --- Confirmation page --- */
.confirmation-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.confirmation-icon {
  width: 80px;
  height: 80px;
  background: #F0FDF4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.confirmation-icon svg {
  width: 40px;
  height: 40px;
  stroke: #16A34A;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.confirmation-page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.confirmation-page p {
  color: var(--text-secondary);
  max-width: 450px;
  margin: 0 auto 2rem;
}

/* --- Article list (category / all) --- */
.article-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.article-card-image {
  height: 200px;
  overflow: hidden;
  background: var(--bg-light);
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .article-card-image img {
  transform: scale(1.05);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .featured-article { grid-template-columns: 1fr; gap: 2rem; }
  .carousel-track .card { min-width: 300px; max-width: 300px; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }

  .section { padding: 3.5rem 0; }

  /* Header mobile */
  .header-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0;
    box-shadow: var(--shadow-lg);
  }

  .header-nav.open { display: flex; }

  .header-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
  }

  .header-nav a::after { display: none; }

  .header-cta {
    margin-top: 0.5rem;
    justify-content: center;
  }

  .menu-toggle { display: block; }

  /* Hero mobile */
  .hero { padding: 3.5rem 0; min-height: auto; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Grids mobile */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .article-list { grid-template-columns: 1fr; }

  /* Featured article mobile */
  .featured-article { grid-template-columns: 1fr; }
  .featured-content h3 { font-size: 1.375rem; }

  /* Carousel mobile */
  .carousel-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .carousel-controls { display: none; }
  .carousel-track .card { min-width: 280px; max-width: 280px; }

  /* Footer mobile */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  /* Cookie banner mobile */
  .cookie-inner { flex-direction: column; text-align: center; }
  .cookie-buttons { width: 100%; }
  .cookie-btn { flex: 1; }

  /* Newsletter form mobile */
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }

  /* Page 404 mobile */
  .page-404 h1 { font-size: 4rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  h1 { font-size: 1.625rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero-badge { font-size: 0.75rem; padding: 0.35rem 1rem; }
  .carousel-track .card { min-width: 260px; max-width: 260px; }
}
