/*
 * Conseil E-Learning 20
 * Theme: Custom semantic CSS — Palette #5 (Cyan/Rose) | Fonts #4 (Poppins/Source Sans 3)
 * No framework dependency. Pure CSS.
 */

/* ========================================================================
   DESIGN TOKENS
   ======================================================================== */

:root {
  /* Palette */
  --c-primary: #0891b2;
  --c-primary-dark: #0e7490;
  --c-primary-light: #ecfeff;
  --c-primary-muted: #cffafe;
  --c-accent: #ec4899;
  --c-accent-dark: #db2777;
  --c-accent-light: #fdf2f8;

  /* Neutrals */
  --c-text: #1e293b;
  --c-text-secondary: #64748b;
  --c-text-light: #94a3b8;
  --c-bg: #f8fafc;
  --c-surface: #ffffff;
  --c-border: #e2e8f0;
  --c-border-light: #f1f5f9;
  --c-dark: #0f172a;
  --c-dark-lighter: #1e293b;

  /* Typography */
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;

  /* Spacing */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;

  /* Layout */
  --max-w: 72rem;
  --max-w-narrow: 48rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --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);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 200ms;
}


/* ========================================================================
   RESET & BASE
   ======================================================================== */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--duration) var(--ease); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; line-height: 1.3; color: var(--c-text); }


/* ========================================================================
   LAYOUT
   ======================================================================== */

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-lg); }
.container--narrow { max-width: var(--max-w-narrow); }


/* ========================================================================
   HEADER
   ======================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border-light);
  transition: box-shadow var(--duration) var(--ease), padding var(--duration) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-md) var(--sp-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xl);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-shrink: 0;
}
.brand-logo { width: 36px; height: 36px; border-radius: var(--radius); object-fit: cover; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--c-text);
  transition: color var(--duration) var(--ease);
}
.site-brand:hover .brand-name { color: var(--c-primary); }

/* Desktop nav */
.nav-list { display: flex; align-items: center; gap: var(--sp-xl); }
.nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  padding: var(--sp-xs) 0;
  position: relative;
  transition: color var(--duration) var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-primary);
  transition: width var(--duration) var(--ease);
}
.nav-link:hover,
.nav-link.is-active { color: var(--c-primary); }
.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-sm);
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 1px;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-surface);
    border-top: 1px solid var(--c-border-light);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; padding: var(--sp-lg); gap: 0; }
  .nav-item { width: 100%; }
  .nav-link {
    display: block;
    padding: var(--sp-md) 0;
    font-size: var(--fs-base);
    border-bottom: 1px solid var(--c-border-light);
  }
  .nav-link::after { display: none; }
}


/* ========================================================================
   HERO
   ======================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,116,144,0.88) 0%, rgba(15,23,42,0.75) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-4xl) var(--sp-lg);
  width: 100%;
}
.hero-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary-muted);
  margin-bottom: var(--sp-lg);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  max-width: 36rem;
  margin-bottom: var(--sp-lg);
  line-height: 1.15;
}
.hero-text {
  font-size: var(--fs-xl);
  color: rgba(255,255,255,0.85);
  max-width: 32rem;
  line-height: 1.6;
  margin-bottom: var(--sp-2xl);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  background: var(--c-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-base);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-lg);
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.hero-cta:hover { background: var(--c-accent-dark); transform: translateY(-1px); color: #fff; }
.hero-cta svg { width: 18px; height: 18px; transition: transform var(--duration) var(--ease); }
.hero-cta:hover svg { transform: translateX(3px); }

@media (max-width: 768px) {
  .hero { min-height: 420px; }
  .hero-content { padding: var(--sp-3xl) var(--sp-lg); }
}


/* ========================================================================
   SECTIONS
   ======================================================================== */

.section { padding: var(--sp-4xl) 0; }
.section--alt { background: var(--c-surface); }
.section--dark { background: var(--c-dark); color: #fff; }
.section--dark .section-title { color: #fff; }
.section--dark .section-subtitle { color: var(--c-text-light); }

.section-header { text-align: center; margin-bottom: var(--sp-3xl); }
.section-title { font-size: var(--fs-3xl); margin-bottom: var(--sp-md); }
.section-subtitle { font-size: var(--fs-lg); color: var(--c-text-secondary); max-width: 36rem; margin: 0 auto; }


/* ========================================================================
   CARDS (articles)
   ======================================================================== */

.card-grid {
  display: grid;
  gap: var(--sp-2xl);
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1024px) {
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .card-grid.cols-2,
  .card-grid.cols-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--c-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.card:hover .card-media img { transform: scale(1.04); }

.card-body { padding: var(--sp-lg); }

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: var(--fs-xs);
  color: var(--c-text-light);
  margin-bottom: var(--sp-sm);
}
.card-category {
  font-weight: 600;
  color: var(--c-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-category:hover { color: var(--c-primary-dark); }

.card-title {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--sp-sm);
  line-height: 1.4;
}
.card-title a { color: var(--c-text); }
.card-title a:hover { color: var(--c-primary); }

.card-excerpt {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Featured card (larger, horizontal on desktop) */
.card--featured { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .card--featured { display: grid; grid-template-columns: 1fr 1fr; }
  .card--featured .card-media { aspect-ratio: auto; }
  .card--featured .card-body { display: flex; flex-direction: column; justify-content: center; padding: var(--sp-2xl); }
  .card--featured .card-title { font-size: var(--fs-2xl); }
  .card--featured .card-excerpt { -webkit-line-clamp: 4; font-size: var(--fs-base); }
}


/* ========================================================================
   PILLARS (section sous hero)
   ======================================================================== */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2xl);
}
@media (max-width: 768px) { .pillars-grid { grid-template-columns: 1fr; } }

.pillar {
  text-align: center;
  padding: var(--sp-2xl) var(--sp-lg);
}
.pillar-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--sp-lg);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary-light);
}
.pillar-icon svg { width: 28px; height: 28px; stroke: var(--c-primary-dark); }
.pillar h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-sm); }
.pillar p { font-size: var(--fs-sm); color: var(--c-text-secondary); line-height: 1.7; }


/* ========================================================================
   CTA BANNER (with background image)
   ======================================================================== */

.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  min-height: 320px;
  display: flex;
  align-items: center;
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
}
.cta-banner-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15,23,42,0.9) 0%, rgba(14,116,144,0.7) 100%);
}
.cta-banner-content {
  position: relative;
  z-index: 1;
  padding: var(--sp-3xl);
  max-width: 32rem;
}
.cta-banner-content h2 { color: #fff; font-size: var(--fs-3xl); margin-bottom: var(--sp-md); }
.cta-banner-content p { color: rgba(255,255,255,0.8); font-size: var(--fs-lg); margin-bottom: var(--sp-xl); line-height: 1.6; }


/* ========================================================================
   EXPERTISE (image + text split)
   ======================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: center;
}
@media (max-width: 768px) { .split { grid-template-columns: 1fr; } }

.split-media { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

.split-content h2 { font-size: var(--fs-3xl); margin-bottom: var(--sp-lg); }
.split-content p { color: var(--c-text-secondary); line-height: 1.8; margin-bottom: var(--sp-lg); }
.split-content ul { padding-left: 0; }
.split-content li {
  position: relative;
  padding-left: var(--sp-xl);
  margin-bottom: var(--sp-md);
  color: var(--c-text-secondary);
}
.split-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--c-primary);
  border-radius: 50%;
}


/* ========================================================================
   ARTICLE HERO (single page)
   ======================================================================== */

.article-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}
.article-hero__bg {
  position: absolute;
  inset: 0;
}
.article-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.5) 50%, rgba(15,23,42,0.2) 100%);
}
.article-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--sp-3xl) 0 var(--sp-3xl);
}
.article-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  color: #fff;
  margin-bottom: var(--sp-lg);
  max-width: 40rem;
}
.article-hero__lead {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  max-width: 36rem;
  margin-bottom: var(--sp-xl);
}
.article-hero__lead--dark { color: var(--c-text-secondary); }
.article-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
}
.article-hero__meta--dark { color: var(--c-text-light); }
.article-hero__meta a { color: inherit; }
.article-hero__meta a:hover { color: var(--c-primary-muted); }
.article-hero__sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}
.article-hero__cat {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Minimal hero (no image) */
.article-hero--minimal {
  min-height: auto;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border-light);
  padding: var(--sp-3xl) 0;
}
.article-hero--minimal h1 { color: var(--c-text); }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--sp-xl);
}
.article-hero--minimal .breadcrumb { color: var(--c-text-light); }
.breadcrumb a { color: inherit; transition: color var(--duration) var(--ease); }
.breadcrumb a:hover { color: var(--c-primary-muted); }
.article-hero--minimal .breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb__current { color: rgba(255,255,255,0.75); font-weight: 500; }
.article-hero--minimal .breadcrumb__current { color: var(--c-text-secondary); }

@media (max-width: 768px) {
  .article-hero { min-height: 340px; }
  .article-hero__content { padding: var(--sp-2xl) 0; }
}


/* ========================================================================
   ARTICLE PAGE (body)
   ======================================================================== */

.article-page { padding: var(--sp-3xl) 0 0; }

/* Prose / Content */
.article-content { font-size: var(--fs-lg); line-height: 1.85; }

/* First paragraph — distinguished lead */
.article-content > p:first-child {
  font-size: var(--fs-xl);
  line-height: 1.7;
  color: var(--c-text);
  font-weight: 400;
}

.article-content h2 {
  font-size: var(--fs-2xl);
  margin: var(--sp-2xl) 0 var(--sp-lg);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--c-border-light);
}
.article-content > h2:first-child,
.article-content > p:first-child + h2 { border-top: none; padding-top: 0; }
.article-content h3 {
  font-size: var(--fs-xl);
  margin: var(--sp-2xl) 0 var(--sp-md);
  color: var(--c-primary-dark);
}
.article-content p { margin-bottom: var(--sp-lg); color: var(--c-text); }
.article-content a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-content a:hover { color: var(--c-primary-dark); text-decoration-thickness: 2px; }
.article-content ul, .article-content ol { margin-bottom: var(--sp-lg); padding-left: 0; }
.article-content li {
  margin-bottom: var(--sp-sm);
  padding-left: var(--sp-xl);
  position: relative;
  list-style: none;
}
.article-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
}
.article-content ol { counter-reset: ol-counter; }
.article-content ol li { counter-increment: ol-counter; }
.article-content ol li::before {
  content: counter(ol-counter) ".";
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--c-primary);
  font-size: var(--fs-sm);
}
.article-content strong { font-weight: 600; color: var(--c-text); }
.article-content blockquote {
  border-left: 3px solid var(--c-primary);
  margin: var(--sp-2xl) 0;
  padding: var(--sp-lg) var(--sp-xl);
  background: var(--c-primary-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-content blockquote p { color: var(--c-text-secondary); margin-bottom: 0; }
.article-content table { width: 100%; border-collapse: collapse; margin: var(--sp-2xl) 0; font-size: var(--fs-base); }
.article-content th { font-weight: 600; text-align: left; padding: var(--sp-md); border-bottom: 2px solid var(--c-border); background: var(--c-bg); }
.article-content td { padding: var(--sp-md); border-bottom: 1px solid var(--c-border-light); }
.article-content img { border-radius: var(--radius-lg); margin: var(--sp-2xl) 0; box-shadow: var(--shadow-md); }

/* Article footer (tags + nav) */
.article-footer {
  margin-top: var(--sp-3xl);
  padding-top: var(--sp-2xl);
  border-top: 1px solid var(--c-border);
}

/* Tags */
.article-tags { margin-bottom: var(--sp-2xl); }
.article-tags__label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-light);
  margin-bottom: var(--sp-md);
}
.article-tags__list { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }
.tag {
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: var(--sp-xs) var(--sp-md);
  background: var(--c-bg);
  color: var(--c-text-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  transition: all var(--duration) var(--ease);
}
.tag:hover { background: var(--c-primary-light); color: var(--c-primary-dark); border-color: var(--c-primary-muted); }

/* Prev / Next navigation */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  padding-top: var(--sp-2xl);
  border-top: 1px solid var(--c-border-light);
}
.article-nav__link {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  padding: var(--sp-lg);
  border-radius: var(--radius-lg);
  transition: background var(--duration) var(--ease);
}
.article-nav__link:hover { background: var(--c-bg); }
.article-nav__link--next { text-align: right; align-items: flex-end; }
.article-nav__direction {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-primary);
}
.article-nav__direction svg { flex-shrink: 0; }
.article-nav__title {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
}
.article-nav__link:hover .article-nav__title { color: var(--c-primary); }

@media (max-width: 640px) {
  .article-nav { grid-template-columns: 1fr; }
  .article-nav__link--next { text-align: left; align-items: flex-start; }
}


/* ========================================================================
   LIST PAGE
   ======================================================================== */

.list-header {
  text-align: center;
  padding: var(--sp-3xl) 0 var(--sp-2xl);
}
.list-header h1 { font-size: var(--fs-4xl); margin-bottom: var(--sp-md); }
.list-header p { font-size: var(--fs-lg); color: var(--c-text-secondary); max-width: 32rem; margin: 0 auto; }


/* ========================================================================
   PAGINATION
   ======================================================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-3xl);
  font-size: var(--fs-sm);
}
.pagination .page-item { display: inline-block; }
.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--sp-sm);
  border-radius: var(--radius);
  color: var(--c-text-secondary);
  transition: all var(--duration) var(--ease);
}
.pagination .page-link:hover { background: var(--c-primary-light); color: var(--c-primary); }
.pagination .page-item.active .page-link { background: var(--c-primary); color: #fff; }
.pagination .page-item.disabled .page-link { opacity: 0.4; pointer-events: none; }


/* ========================================================================
   RELATED SECTION
   ======================================================================== */

.related-section {
  padding: var(--sp-4xl) 0;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border-light);
}
.related-section .card-grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}


/* ========================================================================
   FOOTER
   ======================================================================== */

.site-footer {
  background: var(--c-dark);
  color: var(--c-text-light);
  margin-top: var(--sp-4xl);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-4xl) var(--sp-lg) var(--sp-2xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--sp-3xl);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: var(--sp-2xl); } }

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: #fff;
  margin-bottom: var(--sp-lg);
}
.footer-brand img { width: 28px; height: 28px; border-radius: var(--sp-xs); }

.footer-about { font-size: var(--fs-sm); line-height: 1.7; color: var(--c-text-light); }

.footer-heading {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-lg);
}
.footer-links li { margin-bottom: var(--sp-sm); }
.footer-links a {
  font-size: var(--fs-sm);
  color: var(--c-text-light);
  transition: color var(--duration) var(--ease);
}
.footer-links a:hover { color: var(--c-primary-muted); }

.footer-bottom {
  margin-top: var(--sp-3xl);
  padding-top: var(--sp-xl);
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--c-text-light);
}


/* ========================================================================
   UTILITIES
   ======================================================================== */

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  border: none;
}
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--c-primary); border: 2px solid var(--c-primary); }
.btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn--accent { background: var(--c-accent); color: #fff; }
.btn--accent:hover { background: var(--c-accent-dark); color: #fff; }

.text-center { text-align: center; }
.mt-section { margin-top: var(--sp-3xl); }

/* Featured article spacer */
.card-grid--spaced { margin-bottom: var(--sp-2xl); }

/* Rubrique cards */
.card--rubrique { text-decoration: none; }
.card--rubrique .card-body { padding: var(--sp-2xl); }
.card--rubrique .card-title { margin-bottom: var(--sp-xs); }
.card--rubrique .rubrique-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--sp-lg);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary-light);
}
.card--rubrique .rubrique-icon svg { width: 24px; height: 24px; stroke: var(--c-primary-dark); }

/* Featured card CTA */
.card--featured .btn { margin-top: var(--sp-lg); }
