/* ============================================
   DONOVA BLOG — Feuille de style
   ============================================
   ▼▼▼ ZONE À PERSONNALISER ▼▼▼
   Ajustez ces variables pour coller EXACTEMENT
   à votre charte donova.fr. Récupérez les codes
   couleur via l'inspecteur de votre site
   (clic droit > Inspecter > Styles).
   ============================================ */
:root {
  /* Couleurs principales — alignées sur la charte donova-site */
  --couleur-primaire: #17914a;        /* Vert principal (boutons, liens, accents) — var(--green) du site */
  --couleur-primaire-foncee: #0e6b37;  /* Vert au survol — var(--green-d) du site */
  --couleur-secondaire: #0a1b12;       /* var(--ink) du site, pour les titres */
  --couleur-accent: #d9e021;           /* var(--lime) du site */

  /* Neutres */
  --texte: #2b2b2b;
  --texte-doux: #5f5f5f;
  --fond: #ffffff;
  --fond-doux: #f6f8f6;
  --fond-carte: #ffffff;
  --bordure: #e6e9e6;

  /* Typographie — alignée sur donova-site (Sora / DM Sans / Fraunces) */
  --police-titre: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --police-texte: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --police-accent: 'Fraunces', Georgia, serif;

  /* Mesures */
  --largeur-max: 1200px;
  --rayon: 14px;
  --rayon-petit: 8px;
  --ombre: 0 4px 20px rgba(0, 0, 0, 0.06);
  --ombre-forte: 0 8px 30px rgba(0, 0, 0, 0.1);
  --transition: 0.25s ease;
}
/* ▲▲▲ FIN ZONE À PERSONNALISER ▲▲▲ */

/* ============================================
   RESET & BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--police-texte);
  color: var(--texte);
  background: var(--fond);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--police-titre);
  color: var(--couleur-secondaire);
  line-height: 1.25;
  font-weight: 700;
}

.container {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   NAVBAR — pilule flottante (alignée sur donova-site)
   ============================================ */
.nav-shell { position: sticky; top: 0; z-index: 60; padding: 16px 0; }
.navbar {
  width: min(1160px, calc(100% - 32px)); margin-inline: auto;
  display: flex; align-items: center; gap: 24px; height: 62px; padding: 0 12px 0 22px;
  background: rgba(255,255,255,.7); backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255,255,255,.7); border-radius: 999px;
  box-shadow: 0 10px 40px rgba(10,40,22,.10);
  transition: box-shadow .3s, transform .3s;
}
.nav-shell.scrolled .navbar { box-shadow: 0 14px 46px rgba(10,40,22,.16); }
.brand img { height: 34px; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a {
  font-family: var(--police-titre); font-weight: 600; font-size: 15px;
  color: var(--couleur-secondaire); position: relative; padding: 6px 0;
  opacity: .85; transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--couleur-primaire); border-radius: 2px; transition: width .28s cubic-bezier(.16,1,.3,1);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a.nav-cta { margin-left: 4px; --pad: 14px 28px; font-size: 16px; color: #fff; opacity: 1; padding: var(--pad); }
.nav-links a.nav-cta::after { display: none; }
.burger {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  background: none; border: 0; padding: 10px; margin-left: auto; cursor: pointer;
}
.burger span { height: 2.5px; background: var(--couleur-secondaire); border-radius: 3px; transition: .3s cubic-bezier(.16,1,.3,1); }

.btn {
  --pad: 14px 24px;
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--police-titre); font-weight: 600; font-size: 16px; line-height: 1;
  padding: var(--pad); border-radius: 999px; border: 0; cursor: pointer; overflow: hidden;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .3s cubic-bezier(.16,1,.3,1), background-color .25s;
  white-space: nowrap; text-decoration: none;
}
.btn .arr { transition: transform .3s cubic-bezier(.16,1,.3,1); }
.btn:hover .arr { transform: translateX(5px); }
.btn-primary { background: linear-gradient(180deg, #2fb45e, var(--couleur-primaire)); color: #fff; box-shadow: 0 10px 26px rgba(23,145,74,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(23,145,74,.4); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-18deg);
}
.btn-primary:hover::after { animation: navbtn-shine .8s cubic-bezier(.16,1,.3,1); }
@keyframes navbtn-shine { to { left: 130%; } }

@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .nav-shell.open .nav-links {
    display: flex; position: absolute; top: 84px; left: 16px; right: 16px;
    flex-direction: column; gap: 0; background: #fff; border-radius: 20px;
    box-shadow: var(--ombre-forte); padding: 8px 0;
  }
  .nav-shell.open .nav-links a { padding: 14px 22px; border-top: 1px solid var(--bordure); }
  .nav-shell.open .nav-links a:first-child { border-top: 0; }
  .nav-shell.open .nav-links a.nav-cta {
    display: flex; justify-content: center; margin: 10px 14px 6px; border-top: 0; border-radius: 999px;
  }
  .nav-shell.open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-shell.open .burger span:nth-child(2) { opacity: 0; }
  .nav-shell.open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--fond-doux) 0%, #eef4ef 100%);
  padding: 72px 0 64px;
  text-align: center;
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  margin-bottom: 18px;
}

.hero p {
  font-size: 18px;
  color: var(--texte-doux);
  margin-bottom: 32px;
}

.search-bar {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: 50px;
  padding: 6px;
  box-shadow: var(--ombre);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 20px;
  font-size: 15px;
  background: transparent;
  font-family: var(--police-texte);
}

.search-bar button {
  background: var(--couleur-primaire);
  color: #fff;
  border: none;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: background var(--transition);
}

.search-bar button:hover {
  background: var(--couleur-primaire-foncee);
}

/* ============================================
   FILTRES
   ============================================ */
.filters {
  padding: 44px 0 12px;
}

.filters h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.filter-btn {
  background: var(--fond-doux);
  border: 1px solid var(--bordure);
  color: var(--texte-doux);
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--police-texte);
}

.filter-btn:hover {
  border-color: var(--couleur-primaire);
  color: var(--couleur-primaire);
}

.filter-btn.active {
  background: var(--couleur-primaire);
  border-color: var(--couleur-primaire);
  color: #fff;
}

/* ============================================
   GRILLE D'ARTICLES
   ============================================ */
.blog-grid {
  padding: 32px 0 64px;
}

.articles-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--fond-carte);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ombre-forte);
}

.article-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--fond-doux);
}

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

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

.article-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--couleur-primaire);
  color: #fff;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.article-card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--texte-doux);
  margin-bottom: 12px;
}

.article-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.35;
}

.article-card h3 a:hover {
  color: var(--couleur-primaire);
}

.article-card p {
  color: var(--texte-doux);
  font-size: 15px;
  margin-bottom: 18px;
  flex: 1;
}

.article-card-link {
  color: var(--couleur-primaire);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.article-card-link:hover {
  gap: 11px;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--texte-doux);
  font-size: 17px;
  grid-column: 1 / -1;
}

/* ============================================
   FOOTER
   ============================================ */
/* ============================================
   FOOTER DONOVA
   ============================================ */
.ehp-flex-footer {
  background: #081410;  /* même fond sombre que le footer de donova-site */
  padding: 56px 24px;
  border-top: none;
}

.ehp-flex-footer__groups-row {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto 40px;
  align-items: flex-start;
}

.ehp-flex-footer__group {
  display: flex;
  flex-direction: column;
}

.ehp-flex-footer__group--business-details {
  grid-column: 1;
}

.ehp-flex-footer__site-link-container {
  margin-bottom: 16px;
}

.ehp-flex-footer__site-logo {
  height: 30px;
  width: auto;
}

.ehp-flex-footer__group--business-details .ehp-flex-footer__list--social-links {
  margin-top: 22px;
}

.ehp-flex-footer__description {
  color: #86988d;
  font-size: 15px;
  line-height: 1.7;
  max-width: 420px;
}

.ehp-flex-footer__subheading {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
  font-family: var(--police-titre);
}

.ehp-flex-footer__menu,
.ehp-flex-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ehp-flex-footer__menu-item,
.ehp-flex-footer__link {
  color: #9cada3;
  font-size: 14.5px;
  text-decoration: none;
  transition: color .2s, transform .2s;
  display: inline-block;
  margin-bottom: 6px;
  padding: 6px 0;
}

.ehp-flex-footer__menu-item:hover,
.ehp-flex-footer__link:hover {
  color: #d9e021;
  transform: translateX(3px);
}

.ehp-flex-footer__list--social-links {
  display: flex;
  gap: 10px;
}

.ehp-flex-footer__list-item--social-link {
  display: inline-flex;
}

.ehp-flex-footer__link--social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  margin-bottom: 0;
  transition: background .2s, transform .2s, border-color .2s;
}

.ehp-flex-footer__link--social:hover {
  background: #17914a;
  border-color: #17914a;
  transform: translateY(-3px);
}

.ehp-flex-footer__social-icon {
  width: 18px;
  height: 18px;
  fill: #cfe0d7;
  transition: fill .2s;
}

.ehp-flex-footer__link--social:hover .ehp-flex-footer__social-icon {
  fill: white;
}

.ehp-flex-footer__copyright {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 0;
}

.ehp-flex-footer__copyright-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 22px 24px;
}

.ehp-flex-footer__copyright-text {
  color: #75897e;
  font-size: 13.5px;
}

/* Mobile responsive */
@media (max-width: 1024px) {
  .ehp-flex-footer__groups-row {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .ehp-flex-footer__group--business-details {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .ehp-flex-footer {
    padding: 40px 16px;
  }

  .ehp-flex-footer__groups-row {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
  }

  .ehp-flex-footer__group--business-details {
    grid-column: 1;
  }

  .ehp-flex-footer__subheading {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .ehp-flex-footer__menu-item,
  .ehp-flex-footer__link {
    font-size: 14px;
    margin-bottom: 10px;
  }
}

/* ============================================
   PAGE ARTICLE
   ============================================ */
.article-hero {
  padding: 48px 0 32px;
  background: var(--fond-doux);
}

.article-hero .container {
  max-width: 820px;
}

.breadcrumb {
  font-size: 14px;
  color: var(--texte-doux);
  margin-bottom: 20px;
}

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

.article-hero-badge {
  display: inline-block;
  background: var(--couleur-primaire);
  color: #fff;
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  text-transform: capitalize;
}

.article-hero h1 {
  font-size: clamp(28px, 4.5vw, 42px);
  margin-bottom: 18px;
}

.article-hero-meta {
  display: flex;
  gap: 20px;
  color: var(--texte-doux);
  font-size: 14px;
  flex-wrap: wrap;
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.article-cover {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--rayon);
  margin-bottom: 40px;
}

.article-content {
  font-size: 17px;
  line-height: 1.85;
  color: var(--texte);
}

.article-content h2 {
  font-size: 28px;
  margin: 40px 0 16px;
}

.article-content h3 {
  font-size: 22px;
  margin: 30px 0 12px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 22px 24px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content a {
  color: var(--couleur-primaire);
  font-weight: 500;
  text-decoration: underline;
}

.article-content blockquote {
  border-left: 4px solid var(--couleur-primaire);
  background: var(--fond-doux);
  padding: 18px 24px;
  margin: 28px 0;
  border-radius: 0 var(--rayon-petit) var(--rayon-petit) 0;
  font-style: italic;
  color: var(--texte-doux);
}

.article-content img {
  border-radius: var(--rayon);
  margin: 28px 0;
}

/* Tableaux d'article — build.js génère des <table> sans classe, ils n'héritaient
   d'aucun style et s'affichaient sans bordures ni espacement. Apparence alignée
   sur .itable de pages.css (site principal), avec les variables du blog. */
.article-content table {
  width: 100%;
  margin: 28px 0;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--fond-carte);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  overflow: hidden;
  font-size: 15px;
}

.article-content th,
.article-content td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--bordure);
  vertical-align: top;
}

.article-content th {
  font-family: var(--police-titre);
  font-weight: 600;
  color: var(--couleur-secondaire);
  background: var(--fond-doux);
}

.article-content td:first-child {
  font-weight: 600;
  color: var(--couleur-secondaire);
}

.article-content tr:last-child td {
  border-bottom: 0;
}

/* Sur mobile, un tableau de 4 à 6 colonnes déborde : il devient scrollable
   horizontalement plutôt que de faire défiler la page entière de travers.
   Pas de white-space: nowrap ici — les cellules contiennent des phrases
   entières, qui s'étireraient sur une ligne interminable. Le min-width suffit
   à empêcher l'écrasement des colonnes. */
@media (max-width: 700px) {
  .article-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .article-content table tbody,
  .article-content table thead {
    display: table;
    width: 100%;
    min-width: 560px;
  }

  .article-content th,
  .article-content td {
    padding: 12px 14px;
  }
}

/* Table des matières */
.toc {
  background: var(--fond-doux);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 20px 24px;
  margin: 0 0 36px;
}

.toc-title {
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 15px;
  color: var(--couleur-secondaire);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

.toc li {
  margin-bottom: 8px;
  font-size: 15px;
}

/* Spécificité plus haute que .article-content a pour écraser le border-bottom */
.article-content .toc a {
  color: var(--couleur-primaire);
  text-decoration: none;
  border-bottom: none;
  font-weight: 500;
  transition: color var(--transition);
}

.article-content .toc a:hover {
  color: var(--couleur-primaire-foncee);
  text-decoration: underline;
}

/* Décalage scroll pour compenser le header sticky (≈ 84px) */
.article-content h2 {
  scroll-margin-top: 100px;
}

.article-content a {
  color: var(--couleur-primaire);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid var(--couleur-primaire);
  transition: all var(--transition);
}

.article-content a:hover {
  color: var(--couleur-primaire-foncee);
  border-bottom-color: var(--couleur-primaire-foncee);
}

/* FAQ (accordéon) */
.article-faq {
  margin: 44px 0;
}

.article-faq .faq-item {
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-petit);
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
}

.article-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 48px 18px 20px;
  position: relative;
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 17px;
  color: var(--couleur-secondaire);
}

.article-faq summary::-webkit-details-marker { display: none; }

.article-faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--couleur-primaire);
  transition: transform var(--transition);
}

.article-faq details[open] summary::after { content: "\2212"; }

.article-faq .faq-answer {
  padding: 0 20px 18px;
}

.article-faq .faq-answer p {
  margin-bottom: 12px;
}

.article-faq .faq-answer p:last-child { margin-bottom: 0; }

/* Sources & références */
.article-sources {
  margin: 44px 0;
  padding: 24px 28px;
  background: var(--fond-doux);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  font-size: 15px;
}

.article-sources h2 {
  font-size: 18px !important;
  margin: 0 0 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--couleur-secondaire);
}

.article-sources ul {
  margin: 0 0 0 18px !important;
  color: var(--texte-doux);
}

.article-sources li { margin-bottom: 8px; }

/* Encart auteur (E-E-A-T) */
.author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--fond-doux);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 24px 28px;
  margin: 44px 0;
}

.author-avatar {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--couleur-primaire);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.author-name {
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 18px;
  color: var(--couleur-secondaire);
  margin: 0;
}

.author-role {
  font-size: 14px;
  font-weight: 500;
  color: var(--couleur-primaire);
  margin: 2px 0 10px;
}

.author-bio {
  font-size: 15px;
  line-height: 1.65;
  color: var(--texte-doux);
  margin: 0;
}

.author-name a {
  color: inherit;
  text-decoration: none;
  border-bottom: none;
}

.author-name a:hover { color: var(--couleur-primaire); }

.author-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--couleur-primaire);
  text-decoration: none;
}

.author-link:hover { color: var(--couleur-primaire-foncee); }

/* Page auteur dédiée */
.author-page-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 10px;
}

.author-avatar--lg {
  width: 84px;
  height: 84px;
  font-size: 30px;
}

.author-page-role {
  color: var(--couleur-primaire);
  font-weight: 600;
  font-size: 17px;
  margin: 4px 0 0;
}

.article-cta {
  background: linear-gradient(135deg, var(--couleur-primaire) 0%, var(--couleur-primaire-foncee) 100%);
  border-radius: var(--rayon);
  padding: 36px;
  text-align: center;
  margin: 44px 0;
  color: #fff;
}

.article-cta h3 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 10px;
}

.article-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 22px;
}

.article-cta a {
  display: inline-block;
  background: #fff;
  color: var(--couleur-primaire);
  padding: 13px 30px;
  border-radius: var(--rayon-petit);
  font-weight: 700;
  transition: transform var(--transition);
}

.article-cta a:hover {
  transform: translateY(-2px);
}

/* Articles liés */
.related {
  background: var(--fond-doux);
  padding: 56px 0;
}

.related h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 36px;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--bordure);
  flex-wrap: wrap;
}

.pagination-btn {
  background: var(--fond-doux);
  border: 1px solid var(--bordure);
  color: var(--texte);
  padding: 10px 16px;
  border-radius: var(--rayon-petit);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--police-texte);
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--couleur-primaire);
  border-color: var(--couleur-primaire);
  color: #fff;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn.active {
  background: var(--couleur-primaire);
  border-color: var(--couleur-primaire);
  color: #fff;
}

.pagination-btn--prev,
.pagination-btn--next {
  min-width: 120px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu,
  .cta-button {
    display: none;
  }

  .nav-menu.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--bordure);
    box-shadow: var(--ombre);
  }

  .hamburger {
    display: flex;
  }

  .articles-container {
    grid-template-columns: 1fr;
  }

  .search-bar {
    flex-direction: column;
    border-radius: var(--rayon);
  }

  .search-bar input,
  .search-bar button {
    border-radius: var(--rayon-petit);
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .article-cover {
    height: 240px;
  }

  .pagination {
    gap: 8px;
    margin-top: 32px;
    padding-top: 32px;
  }

  .pagination-btn {
    padding: 9px 12px;
    min-width: 40px;
    height: 40px;
    font-size: 13px;
  }

  .pagination-btn--prev,
  .pagination-btn--next {
    min-width: 100px;
    font-size: 12px;
  }
}
