/* ============================================================
   PayerMoinsCher — main.css
   Extrait de la maquette, complété pour WordPress
   ============================================================ */

/* ── VARIABLES ── */
:root {
  --vert: #1a7a3c;
  --vert-clair: #25a855;
  --vert-pale: #e8f7ed;
  --accent: #f5a623;
  --rouge: #e74c3c;
  --texte: #1a1a2e;
  --gris: #6b7280;
  --gris-clair: #f4f6f4;
  --blanc: #ffffff;
  --border: #e2ebe4;
}

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--blanc);
  color: var(--texte);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── TICKER ── */
.ticker-bar {
  background: var(--vert);
  padding: 9px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-flex;
  gap: 48px;
  animation: ticker 25s linear infinite;
  will-change: transform;
}

.ticker-inner:hover { animation-play-state: paused; }

.ticker-item {
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.03em;
}

.ticker-item span { color: var(--accent); }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── HEADER ── */
.site-header {
  background: var(--blanc);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(26,122,60,0.07);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* ── LOGO ── */
.site-logo,
.custom-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.custom-logo { width: 42px; height: 42px; object-fit: contain; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-payer {
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--gris);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-moins-cher {
  font-family: 'Figtree', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--vert);
  letter-spacing: -0.02em;
}

.logo-moins-cher span { color: var(--accent); }

/* ── NAVIGATION ── */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-navigation ul li a {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--texte);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s;
  display: block;
}

.main-navigation ul li a:hover {
  background: var(--vert-pale);
  color: var(--vert);
}

.main-navigation ul li.nav-cta a {
  background: var(--vert);
  color: var(--blanc);
  margin-left: 8px;
}

.main-navigation ul li.nav-cta a:hover {
  background: var(--vert-clair);
}

.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a {
  background: var(--vert-pale);
  color: var(--vert);
}

/* Burger mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--texte);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── LAYOUT GLOBAL ── */
.site-content {
  min-height: 60vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* ── SECTION HELPERS ── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-title {
  font-family: 'Figtree', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--texte);
  margin-bottom: 6px;
}

.section-sub {
  font-size: 15px;
  color: var(--gris);
  margin-bottom: 36px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
}

.voir-tout {
  font-size: 13px;
  font-weight: 700;
  color: var(--vert);
  text-decoration: none;
  border-bottom: 2px solid var(--vert-clair);
  padding-bottom: 1px;
  transition: color 0.2s;
}

.voir-tout:hover { color: var(--vert-clair); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #0f5a28 0%, #1a7a3c 50%, #25a855 100%);
  padding: 72px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -50px;
  width: 300px; height: 300px;
  background: rgba(245,166,35,0.08);
  border-radius: 50%;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-badge::before { content: '⚡'; font-size: 13px; }

.hero h1 {
  font-family: 'Figtree', sans-serif;
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 32px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(245,166,35,0.35);
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,166,35,0.45);
  color: #fff;
}

.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.btn-secondary:hover { background: rgba(255,255,255,0.2); color: #fff; }

.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 40px;
}

.stat { text-align: center; }

.stat-nb {
  font-family: 'Figtree', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-demo {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 24px;
  width: 320px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.hero-card-demo .card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.deal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.deal-item:hover { opacity: 0.8; }

.deal-item:last-child { border-bottom: none; }

.deal-emoji { font-size: 22px; }

.deal-info { flex: 1; }

.deal-title { font-size: 13px; font-weight: 700; color: #fff; }

.deal-sub { font-size: 11px; color: rgba(255,255,255,0.6); }

.deal-promo {
  background: var(--rouge);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ── CATÉGORIES ── */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.cat-card {
  background: var(--gris-clair);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}

.cat-card:hover {
  border-color: var(--vert);
  background: var(--vert-pale);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,122,60,0.12);
}

.cat-emoji { font-size: 32px; margin-bottom: 10px; }

.cat-name {
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--texte);
}

.cat-count {
  font-size: 11px;
  color: var(--gris);
  margin-top: 3px;
}

/* ── BONS PLANS ── */
.bons-plans-bg {
  background: var(--gris-clair);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.deal-card {
  background: var(--blanc);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
}

/* Overlay transparent qui rend toute la carte cliquable (lien vers l'article) */
.card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Le bouton deal et les prix restent cliquables au-dessus de l'overlay */
.deal-btn,
.deal-prices {
  position: relative;
  z-index: 1;
}

.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26,122,60,0.14);
  border-color: var(--vert);
}

.deal-card-top {
  background: var(--vert-pale);
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  position: relative;
  min-height: 110px;
}

.deal-card-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.deal-card-top .deal-card-emoji {
  font-size: 52px;
  position: relative;
  z-index: 1;
}

.deal-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--rouge);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  z-index: 2;
}

.deal-tag.new { background: var(--vert); }

.deal-card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.deal-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vert);
  margin-bottom: 6px;
}

.deal-card-title {
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--texte);
  margin-bottom: 8px;
  line-height: 1.3;
}

.deal-card-desc {
  font-size: 13.5px;
  color: var(--gris);
  flex: 1;
  margin-bottom: 14px;
}

.deal-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.price-new {
  font-family: 'Figtree', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--vert);
}

.price-old {
  font-size: 14px;
  color: var(--gris);
  text-decoration: line-through;
}

.deal-btn {
  display: block;
  background: var(--vert);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
}

.deal-btn:hover { background: var(--vert-clair); color: #fff; }

/* ── GUIDES ── */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-card {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.guide-card:hover {
  border-color: var(--vert);
  box-shadow: 0 8px 24px rgba(26,122,60,0.1);
  transform: translateY(-2px);
}

.guide-icon {
  width: 52px;
  height: 52px;
  background: var(--vert-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.guide-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vert);
  margin-bottom: 4px;
}

.guide-title {
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--texte);
  margin-bottom: 5px;
  line-height: 1.3;
}

.guide-desc { font-size: 13px; color: var(--gris); }

.guide-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.guide-read {
  font-size: 12px;
  color: var(--vert);
  font-weight: 700;
}

/* ── NEWSLETTER ── */
.newsletter-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f5a28 100%);
  padding: 64px 24px;
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-inner h2 {
  font-family: 'Figtree', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.newsletter-inner p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  outline: none;
}

.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }

.newsletter-input:focus {
  border-color: rgba(255,255,255,0.5);
}

.newsletter-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 22px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.newsletter-btn:hover { background: #e8951f; }

.newsletter-reassurance {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 14px;
}

/* ── FOOTER ── */
.site-footer {
  background: #0d1117;
  padding: 48px 24px 28px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-moins-cher { font-size: 20px; }

.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--vert-clair); }

.footer-col ul { list-style: none; }

.footer-col ul li a {
  display: block;
  font-size: 13.5px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--vert-clair); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.6); }

/* ── SIDEBAR ── */
.sidebar {
  min-width: 0;
}

.widget {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.widget-title {
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--texte);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--vert-pale);
}

.widget ul { list-style: none; }

.widget ul li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.widget ul li:last-child { border-bottom: none; }

.widget ul li a {
  color: var(--texte);
  text-decoration: none;
  transition: color 0.2s;
}

.widget ul li a:hover { color: var(--vert); }

/* ── ARCHIVE / LISTE D'ARTICLES ── */
.archive-header {
  background: var(--vert-pale);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
}

.archive-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.archive-header .archive-title {
  font-family: 'Figtree', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--vert);
  margin-bottom: 6px;
}

.archive-header .archive-desc {
  font-size: 15px;
  color: var(--gris);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26,122,60,0.14);
  border-color: var(--vert);
}

.post-card-thumb {
  background: var(--vert-pale);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  overflow: hidden;
}

.post-card-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vert);
  margin-bottom: 8px;
}

.post-card-title {
  font-family: 'Figtree', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--texte);
  margin-bottom: 8px;
  line-height: 1.3;
}

.post-card-excerpt {
  font-size: 13.5px;
  color: var(--gris);
  flex: 1;
  margin-bottom: 14px;
}

.post-card-meta {
  font-size: 12px;
  color: var(--gris);
  display: flex;
  gap: 12px;
}

/* ── ARTICLE SINGLE ── */
.single-article {
  max-width: 760px;
}

.single-header {
  margin-bottom: 32px;
}

.single-cat {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vert);
  margin-bottom: 12px;
  display: block;
}

.single-title {
  font-family: 'Figtree', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--texte);
  line-height: 1.15;
  margin-bottom: 16px;
}

.single-meta {
  font-size: 13px;
  color: var(--gris);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.single-thumbnail {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
}

.single-thumbnail img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.entry-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--texte);
}

.entry-content h2 {
  font-family: 'Figtree', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--texte);
  margin: 32px 0 12px;
}

.entry-content h3 {
  font-family: 'Figtree', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--texte);
  margin: 24px 0 10px;
}

.entry-content p { margin-bottom: 16px; }

.entry-content ul,
.entry-content ol {
  margin: 0 0 16px 24px;
}

.entry-content li { margin-bottom: 6px; }

.entry-content a {
  color: var(--vert);
  text-decoration: underline;
}

.entry-content a:hover { color: var(--vert-clair); }

.entry-content blockquote {
  border-left: 4px solid var(--vert);
  background: var(--vert-pale);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
  font-style: italic;
}

.entry-content strong { font-weight: 700; color: var(--texte); }

/* Deal box inside content */
.deal-box {
  background: var(--vert-pale);
  border: 2px solid var(--vert);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.deal-box .price-new { font-size: 28px; }

.deal-box-cta .deal-btn { display: inline-block; padding: 12px 24px; }

/* Post navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.nav-previous,
.nav-next {
  flex: 1;
}

.nav-next { text-align: right; }

.nav-previous a,
.nav-next a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--vert);
}

.nav-previous a:hover,
.nav-next a:hover { color: var(--vert-clair); }

/* ── PAGE STATIQUE ── */
.page-title {
  font-family: 'Figtree', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--texte);
  margin-bottom: 8px;
}

/* ── 404 ── */
.error-404 {
  text-align: center;
  padding: 80px 24px;
  max-width: 600px;
  margin: 0 auto;
}

.error-404 .error-code {
  font-family: 'Figtree', sans-serif;
  font-size: 96px;
  font-weight: 800;
  color: var(--vert);
  line-height: 1;
  margin-bottom: 16px;
}

.error-404 h2 {
  font-family: 'Figtree', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--texte);
  margin-bottom: 12px;
}

.error-404 p {
  color: var(--gris);
  margin-bottom: 32px;
}

/* ── SEARCH FORM ── */
.search-form {
  display: flex;
  gap: 8px;
}

.search-field {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: var(--texte);
  outline: none;
  transition: border-color 0.2s;
}

.search-field:focus { border-color: var(--vert); }

.search-submit {
  background: var(--vert);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-submit:hover { background: var(--vert-clair); }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--texte);
  border: 2px solid var(--border);
  transition: all 0.2s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--vert);
  border-color: var(--vert);
  color: #fff;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .deals-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .deals-grid { grid-template-columns: 1fr; }
  .guides-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero h1 { font-size: 36px; }

  .main-navigation ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--blanc);
    border-bottom: 2px solid var(--border);
    padding: 12px 24px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .main-navigation.toggled ul { display: flex; }

  .menu-toggle { display: flex; }

  .newsletter-form { flex-direction: column; }

  .single-title { font-size: 26px; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 12px; }
  .stat-nb { font-size: 22px; }
}
