/* =============================================================
   Gni Media — child theme custom CSS
   Design system : Magazine Modern Auto (DB pick)
   Palette       : Ouest-France SIPA UI (concurrent extraction)
   Layout        : header logo-left-menu-center-cta-right
                   hero mosaic-categories
                   category single-top
   ============================================================= */

/* -------------------------------------------------------------
   1. ROOT VARIABLES & RESET
   ------------------------------------------------------------- */
:root {
  --e20-primary:    #122431;
  --e20-accent:     #e2001a;
  --e20-text:       #222222;
  --e20-text-soft:  #666666;
  --e20-bg:         #ffffff;
  --e20-surface:    #fafafa;
  --e20-line:       #e4e3e1;
  --e20-line-soft:  #f0eeee;
  --e20-shadow-sm:  0 1px 3px rgba(18, 36, 49, 0.08);
  --e20-shadow-md:  0 6px 18px rgba(18, 36, 49, 0.10);
  --e20-shadow-lg:  0 16px 40px rgba(18, 36, 49, 0.14);
  --e20-radius:     6px;
  --e20-radius-lg:  10px;
  --e20-font-headings: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --e20-font-body:     "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --e20-container:  1280px;
  --e20-container-narrow: 880px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.e20-body {
  margin: 0;
  font-family: var(--e20-font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--e20-text);
  background: var(--e20-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--e20-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--e20-accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--e20-font-headings);
  color: var(--e20-primary);
  margin-top: 0;
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.35rem; }

p { margin-top: 0; margin-bottom: 1rem; }

main.e20-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
  min-height: 60vh;
}

.e20-container {
  max-width: var(--e20-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* -------------------------------------------------------------
   2. HEADER — logo-left-menu-center-cta-right
   ------------------------------------------------------------- */
.e20-header {
  background: var(--e20-bg);
  border-bottom: 1px solid var(--e20-line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--e20-shadow-sm);
}

.e20-header-topbar {
  background: var(--e20-primary);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.e20-header-topbar-inner {
  max-width: var(--e20-container);
  margin: 0 auto;
  padding: 0.45rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.e20-header-topbar a { color: #fff; opacity: 0.85; }
.e20-header-topbar a:hover { color: #fff; opacity: 1; }

.e20-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--e20-container);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
}

.e20-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--e20-primary);
}

.e20-brand-logo { display: block; width: auto; }

.e20-brand-name {
  font-family: var(--e20-font-headings);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--e20-primary);
  letter-spacing: -0.005em;
}

/* Casing B = Title Case → pas de text-transform */
.e20-brand-tagline {
  display: block;
  font-size: 0.7rem;
  color: var(--e20-text-soft);
  margin-top: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.e20-nav-desktop {
  display: none;
  min-width: 0;
}

.e20-nav-desktop-list {
  display: flex;
  gap: 0.5rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

/* Break element : forces a wrap after the 7th category
   so the menu balances on two rows of 7 + 6 instead of 10 + 3. */
.e20-nav-desktop-list .e20-nav-break {
  flex-basis: 100%;
  width: 100%;
  height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.e20-nav-desktop-list a {
  font-family: var(--e20-font-body);
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--e20-primary);
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.e20-nav-desktop-list a:hover,
.e20-nav-desktop-list .current-menu-item > a,
.e20-nav-desktop-list .current-cat > a {
  color: var(--e20-accent);
  border-bottom-color: var(--e20-accent);
}

.e20-header-cta-wrap { display: flex; align-items: center; gap: 0.5rem; }

.e20-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--e20-primary);
  background: var(--e20-bg);
  color: var(--e20-primary);
  font-family: var(--e20-font-body);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--e20-radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.25s;
}

.e20-btn:hover {
  background: var(--e20-primary);
  color: #fff;
  transform: translateY(-1px);
}

/* CTA — rotating_icon_button : icône qui tourne au survol */
.e20-btn--cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.78rem 1.4rem;
  background: var(--e20-accent);
  color: #fff;
  border: 0;
  border-radius: var(--e20-radius);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s;
  box-shadow: 0 2px 6px rgba(226, 0, 26, 0.25);
}

.e20-btn--cta:hover {
  background: #c00018;
  color: #fff;
  transform: translateY(-1px);
}

.e20-btn--cta .e20-btn-icon {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.e20-btn--cta:hover .e20-btn-icon { transform: rotate(135deg); }

.e20-burger {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 44px;
  min-width: 44px;
  padding: 0 0.85rem;
  background: var(--e20-primary);
  border: 0;
  border-radius: var(--e20-radius);
  color: #fff;
  font-family: var(--e20-font-body);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(18, 36, 49, 0.18);
  transition: background 0.2s, transform 0.2s;
}

.e20-burger:hover { background: #1d3a4f; transform: translateY(-1px); }

.e20-burger-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 22px;
}

.e20-burger-bars > span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.e20-burger-label {
  display: inline-block;
  line-height: 1;
}

/* Drawer mobile — caché par défaut, visible quand .is-open */
.e20-nav-mobile { display: none; }

.e20-nav-mobile.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 86%;
  max-width: 380px;
  background: #ffffff;
  padding: 4.5rem 1.5rem 2rem;
  z-index: 9999;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  animation: rpDrawerSlide 0.25s ease-out;
}

@keyframes rpDrawerSlide {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.e20-nav-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.e20-nav-mobile-list li {
  border-bottom: 1px solid var(--e20-line);
}

.e20-nav-mobile-list a {
  display: block;
  padding: 1rem 0.4rem;
  color: #0a0a0a;
  font-family: var(--e20-font-body);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}

.e20-nav-mobile-list a:hover { color: var(--e20-accent); }

.e20-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 36, 49, 0.55);
  z-index: 9998;
}

.e20-drawer-overlay.is-open { display: block; }

.e20-drawer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--e20-line);
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  color: #0a0a0a;
}

/* Desktop : nav horizontale visible, burger masqué */
@media (min-width: 1024px) {
  .e20-nav-desktop { display: flex; flex: 1; justify-content: center; margin: 0 1rem; min-width: 0; }
  .e20-burger { display: none !important; }
  .e20-nav-mobile { display: none !important; }
}

/* -------------------------------------------------------------
   3. HERO — mosaic-categories
   ------------------------------------------------------------- */
.e20-hero {
  position: relative;
  background: var(--e20-bg);
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid var(--e20-line);
}

.e20-hero-inner {
  max-width: var(--e20-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.e20-hero-head { text-align: center; margin-bottom: 2rem; }

.e20-hero-title {
  font-family: var(--e20-font-headings);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 0.6rem;
  color: var(--e20-primary);
  letter-spacing: -0.01em;
}

.e20-hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--e20-text-soft);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.55;
}

.e20-hero-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 240px 200px;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.e20-hero-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--e20-radius);
  background-size: cover;
  background-position: center;
  background-color: var(--e20-primary);
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.1rem;
  transition: transform 0.35s ease;
  box-shadow: var(--e20-shadow-sm);
}

.e20-hero-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 36, 49, 0) 30%, rgba(18, 36, 49, 0.78) 100%);
  z-index: 1;
}

.e20-hero-tile:hover { transform: translateY(-2px); }

.e20-hero-tile-label {
  position: relative;
  z-index: 2;
  font-family: var(--e20-font-headings);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.e20-hero-tile--xl { grid-column: span 3; grid-row: span 2; }
.e20-hero-tile--xl .e20-hero-tile-label { font-size: 1.9rem; }
.e20-hero-tile--lg { grid-column: span 3; }
.e20-hero-tile--md { grid-column: span 2; }
.e20-hero-tile--sm { grid-column: span 2; }

@media (max-width: 980px) {
  .e20-hero-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 180px 180px 180px;
  }
  .e20-hero-tile--xl,
  .e20-hero-tile--lg,
  .e20-hero-tile--md,
  .e20-hero-tile--sm { grid-column: span 1; grid-row: auto; }
}

/* -------------------------------------------------------------
   4. EDITORIAL BLOCK (after hero) — SEO 400-700 words
   ------------------------------------------------------------- */
.e20-editorial {
  background: var(--e20-surface);
  padding: 3rem 0;
  border-bottom: 1px solid var(--e20-line);
}

.e20-editorial-inner {
  max-width: var(--e20-container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.e20-editorial h2 {
  font-size: 1.55rem;
  margin: 1.6rem 0 0.7rem;
  color: var(--e20-primary);
}

.e20-editorial h2:first-of-type { margin-top: 0; }

.e20-editorial p {
  font-size: 1.05rem;
  color: var(--e20-text);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.e20-editorial .e20-edito-line {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--e20-accent);
  margin: 0 0 1.2rem;
}

.e20-editorial a {
  color: var(--e20-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.e20-editorial-card {
  background: var(--e20-bg);
  border-left: 4px solid var(--e20-accent);
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--e20-radius) var(--e20-radius) 0;
}

.e20-editorial-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--e20-primary);
}

.e20-editorial-card p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--e20-text-soft);
}

/* -------------------------------------------------------------
   5. CATEGORIES GRID (home section "Rubriques")
   ------------------------------------------------------------- */
.e20-categories {
  padding: 3rem 0;
  background: var(--e20-bg);
}

.e20-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.e20-section-head h2 {
  font-size: 1.7rem;
  margin: 0;
  position: relative;
  padding-left: 1rem;
}

.e20-section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 80%;
  background: var(--e20-accent);
  border-radius: 2px;
}

.e20-section-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--e20-text-soft);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.e20-section-link:hover { color: var(--e20-accent); }

.e20-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.e20-cat-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--e20-radius);
  background: var(--e20-surface);
  border: 1px solid var(--e20-line);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  min-height: 220px;
}

.e20-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--e20-shadow-md);
  border-color: var(--e20-accent);
}

.e20-cat-card-img {
  display: block;
  width: 100%;
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: var(--e20-primary);
  position: relative;
}

.e20-cat-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 36, 49, 0) 60%, rgba(18, 36, 49, 0.4) 100%);
}

.e20-cat-card-body { padding: 0.9rem 1rem 1.1rem; flex: 1; }

.e20-cat-card-name {
  font-family: var(--e20-font-headings);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--e20-primary);
  margin: 0 0 0.3rem;
}

.e20-cat-card-cta {
  display: inline-block;
  color: var(--e20-accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* -------------------------------------------------------------
   6. LATEST ARTICLES (home — 18 articles classique)
   ------------------------------------------------------------- */
.e20-latest {
  padding: 3rem 0;
  background: var(--e20-surface);
}

.e20-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 980px) { .e20-latest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .e20-latest-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------
   7. ARTICLE CARDS (CTR — hover_reveal_card)
   ------------------------------------------------------------- */
.e20-card {
  display: flex;
  flex-direction: column;
  background: var(--e20-bg);
  border: 1px solid var(--e20-line);
  border-radius: var(--e20-radius);
  overflow: hidden;
  position: relative;
  transition: transform 0.35s, box-shadow 0.35s;
}

.e20-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--e20-shadow-md);
}

.e20-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--e20-surface);
}

.e20-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.e20-card:hover .e20-card-thumb img { transform: scale(1.04); }

.e20-card-body { padding: 1rem 1.1rem 1.2rem; }

.e20-card-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--e20-accent);
  margin-bottom: 0.45rem;
}

.e20-card-title {
  font-family: var(--e20-font-headings);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.e20-card-title a { color: var(--e20-primary); }
.e20-card-title a:hover { color: var(--e20-accent); }

.e20-card-excerpt {
  font-size: 0.94rem;
  color: var(--e20-text-soft);
  margin: 0 0 0.6rem;
  line-height: 1.5;
}

.e20-card-meta {
  font-size: 0.82rem;
  color: var(--e20-text-soft);
  opacity: 0.65;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.e20-card:hover .e20-card-meta { opacity: 1; }

.e20-card-cta {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.35s ease, margin-top 0.35s ease;
  margin-top: 0;
}

.e20-card:hover .e20-card-cta {
  max-height: 60px;
  opacity: 1;
  margin-top: 0.6rem;
  animation: rpRevealUp 0.35s ease both;
}

.e20-card-cta a {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--e20-accent);
}

@keyframes rpRevealUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------
   8. CTO — new_badge_animation
   ------------------------------------------------------------- */
@keyframes rpNewBadge {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(226, 0, 26, 0.6); }
  50%      { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(226, 0, 26, 0); }
}

.e20-badge--new {
  display: inline-block;
  padding: 3px 9px;
  background: var(--e20-accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: 3px;
  animation: rpNewBadge 2.6s ease-in-out infinite;
}

/* -------------------------------------------------------------
   9. CATEGORY PAGE — single-top layout
   ------------------------------------------------------------- */
.e20-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--e20-primary);
}

.e20-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.e20-cat-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--e20-container);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 30%, rgba(18, 36, 49, 0.78) 100%);
}

.e20-cat-hero-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.e20-cat-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin: 0 0 1.4rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.e20-cat-intro {
  background: var(--e20-bg);
  padding: 2.4rem 0 2rem;
  border-bottom: 1px solid var(--e20-line);
}

.e20-cat-intro-inner {
  max-width: var(--e20-container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
  font-size: 1.04rem;
  color: var(--e20-text);
  line-height: 1.65;
}

.e20-cat-intro a {
  color: var(--e20-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.e20-cat-articles {
  padding: 2.5rem 0;
  background: var(--e20-surface);
}

.e20-cat-articles-grid {
  max-width: var(--e20-container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 980px) { .e20-cat-articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .e20-cat-articles-grid { grid-template-columns: 1fr; } }

.e20-cat-outro {
  background: var(--e20-bg);
  padding: 2.5rem 0;
  border-top: 1px solid var(--e20-line);
}

.e20-cat-outro-inner {
  max-width: var(--e20-container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.e20-cat-outro h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.e20-cat-outro a {
  color: var(--e20-accent);
  text-decoration: underline;
}

.e20-cat-pagination {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.e20-cat-pagination a,
.e20-cat-pagination span {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--e20-line);
  border-radius: var(--e20-radius);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--e20-primary);
  background: var(--e20-bg);
  text-decoration: none;
}

.e20-cat-pagination a:hover,
.e20-cat-pagination .current {
  background: var(--e20-accent);
  color: #fff;
  border-color: var(--e20-accent);
}

/* -------------------------------------------------------------
   10. SINGLE POST
   ------------------------------------------------------------- */
.e20-single { padding: 2.5rem 0; }

.e20-single-inner {
  max-width: var(--e20-container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.e20-single-meta {
  display: flex;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--e20-text-soft);
  margin-bottom: 0.5rem;
}

.e20-single-meta a { color: var(--e20-accent); font-weight: 700; }

.e20-single h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 1rem;
}

.e20-single-thumb {
  margin: 1.5rem 0;
  border-radius: var(--e20-radius);
  overflow: hidden;
}

.e20-single-content {
  font-size: 1.07rem;
  line-height: 1.75;
  color: var(--e20-text);
}

.e20-single-content h2,
.e20-single-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.e20-single-content a {
  color: var(--e20-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.e20-single-content blockquote {
  border-left: 4px solid var(--e20-accent);
  margin: 1.5rem 0;
  padding: 0.5rem 1rem;
  font-style: italic;
  color: var(--e20-text-soft);
}

/* -------------------------------------------------------------
   11. PAGES (about, contact, tools)
   ------------------------------------------------------------- */
.e20-page { padding: 2.5rem 0; }

.e20-page-inner {
  max-width: var(--e20-container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.e20-page h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1.5rem;
  text-align: center;
}

.e20-page-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--e20-text);
}

.e20-page-content h2 {
  font-size: 1.55rem;
  margin: 2rem 0 0.8rem;
}

.e20-page-content a {
  color: var(--e20-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.e20-persona-photo {
  display: block;
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: var(--e20-radius-lg);
  margin: 1.5rem auto;
  box-shadow: var(--e20-shadow-md);
}

.e20-about-figure {
  text-align: center;
  margin: 1.5rem 0 2rem;
}

.e20-about-caption {
  font-size: 0.88rem;
  color: var(--e20-text-soft);
  font-style: italic;
  margin-top: 0.5rem;
}

.e20-contact-form { margin: 1.8rem 0; }

.e20-contact-intro {
  font-size: 1.04rem;
  color: var(--e20-text);
  line-height: 1.7;
  background: var(--e20-surface);
  padding: 1.4rem 1.6rem;
  border-left: 4px solid var(--e20-accent);
  border-radius: 0 var(--e20-radius) var(--e20-radius) 0;
  margin-bottom: 1.5rem;
}

/* -------------------------------------------------------------
   12. METRICS LINKS (e20_render_metrics_links)
   ------------------------------------------------------------- */
.e20-metrics-links {
  background: var(--e20-primary);
  color: #fff;
  padding: 2.5rem 0;
}

.e20-metrics-links-inner {
  max-width: var(--e20-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.e20-metrics-links h2 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0 1.2rem;
}

.e20-metrics-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

.e20-metrics-links a {
  color: #fff;
  opacity: 0.85;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.e20-metrics-links a:hover { opacity: 1; color: #fff; }

/* -------------------------------------------------------------
   13. FOOTER — editorial_grid 4 columns
   ------------------------------------------------------------- */
.e20-footer {
  background: var(--e20-primary);
  color: #f5f0e5;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.e20-footer a { color: #f5f0e5; text-decoration: underline; text-underline-offset: 3px; }
.e20-footer a:hover { color: #fff; }

.e20-footer-inner {
  max-width: var(--e20-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.e20-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 980px) {
  .e20-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .e20-footer-grid { grid-template-columns: 1fr; }
}

.e20-footer-col {
  font-size: 0.93rem;
  line-height: 1.6;
}

.e20-footer-logo {
  display: block;
  margin-bottom: 1rem;
  height: auto;
  width: auto;
  max-width: 160px;
  filter: brightness(0) invert(1);
}

.e20-footer-brand-pitch {
  color: #d8d3c8;
  font-size: 0.93rem;
  margin: 0 0 1rem;
  line-height: 1.6;
}

.e20-footer-brand-cta {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.5rem 0.95rem;
  background: var(--e20-accent);
  color: #fff !important;
  border-radius: var(--e20-radius);
  font-weight: 700;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none !important;
}

.e20-footer-brand-cta:hover { background: #c00018; color: #fff !important; }

.e20-footer-title {
  font-family: var(--e20-font-headings);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 0.9rem;
  color: #fff;
  font-weight: 800;
}

.e20-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.e20-footer-links li { margin-bottom: 0.45rem; }

.e20-footer-tools .e20-footer-links a { color: #f5f0e5; }

.e20-footer-social {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
}

.e20-footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  text-decoration: none !important;
}

.e20-footer-social a:hover {
  background: var(--e20-accent);
  border-color: var(--e20-accent);
}

.e20-footer-social svg { width: 18px; height: 18px; }

.e20-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #d8d3c8;
}

.e20-footer-bottom a { color: #d8d3c8; }

/* -------------------------------------------------------------
   14. SECTION ABOUT TEASER (home, after rubriques)
   ------------------------------------------------------------- */
.e20-about-teaser {
  background: var(--e20-bg);
  padding: 3rem 0;
  border-top: 1px solid var(--e20-line);
}

.e20-about-teaser-inner {
  max-width: var(--e20-container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 720px) {
  .e20-about-teaser-inner { grid-template-columns: 1fr; }
}

.e20-about-teaser .e20-persona-photo {
  margin: 0;
  max-width: 240px;
}

.e20-about-teaser-text h2 {
  font-size: 1.7rem;
  margin: 0 0 0.6rem;
}

.e20-about-teaser-text .role {
  font-size: 0.92rem;
  color: var(--e20-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

/* -------------------------------------------------------------
   15. RESPONSIVE / MOBILE TWEAKS
   ------------------------------------------------------------- */
/* Mobile / tablette (< desktop breakpoint) : on bascule le header en flex
   pour garantir que le burger reste TOUJOURS visible en haut a droite.
   Le CTA "Discutons" du header est masque (il est deja present dans le
   drawer mobile, accessible via le burger). */
@media (max-width: 1023px) {
  .e20-header-inner {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .e20-header-brand { flex: 0 1 auto; min-width: 0; }
  .e20-nav-desktop { display: none !important; }
  .e20-header-cta-wrap {
    display: flex !important;
    flex: 0 0 auto;
    margin-left: auto;
    justify-content: flex-end;
    align-items: center;
  }
  .e20-header-cta-wrap .e20-btn--cta { display: none !important; }
  .e20-burger { display: inline-flex !important; }
}

@media (max-width: 720px) {
  .e20-header-topbar { display: none; }
  .e20-header-inner { padding: 0.7rem 1rem; gap: 0.8rem; }
  .e20-brand-name { font-size: 1.15rem; }
  .e20-hero { padding: 1.8rem 0 2rem; }
  .e20-hero-title { font-size: 1.9rem; }
  .e20-editorial { padding: 2rem 0; }
  .e20-categories, .e20-latest, .e20-cat-articles { padding: 2rem 0; }
  .e20-section-head h2 { font-size: 1.35rem; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.45rem; }
}

@media (hover: none) {
  .e20-card-cta { max-height: 60px; opacity: 1; margin-top: 0.6rem; }
}

/* -------------------------------------------------------------
   16. UTILS
   ------------------------------------------------------------- */
.e20-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

.e20-mb-1 { margin-bottom: 0.5rem; }
.e20-mb-2 { margin-bottom: 1rem; }
.e20-mb-3 { margin-bottom: 1.5rem; }
.e20-mt-1 { margin-top: 0.5rem; }
.e20-mt-2 { margin-top: 1rem; }
.e20-mt-3 { margin-top: 1.5rem; }

/* === [RP2G hotfix 2026-06-06] force burger button SIZE = 42x42 mobile === */
@media (max-width: 1023px) {
  [class*="-burger"], button[aria-controls*="nav"], button[aria-label*="menu" i] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 8px !important;
    background: rgba(255,255,255,0.92) !important;
    border: 1.5px solid rgba(0,0,0,0.18) !important;
    border-radius: 8px !important;
    color: #1a1a1a !important;
    cursor: pointer !important;
    z-index: 10000 !important;
    flex-shrink: 0 !important;
    position: relative !important;
  }
  [class*="-burger-bars"], [class*="-burger"] > span {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 24px !important;
    height: 16px !important;
  }
  [class*="-burger-bars"]::before, [class*="-burger-bars"]::after,
  [class*="-burger"] > span::before, [class*="-burger"] > span::after,
  [class*="-burger"] svg { display: block !important; }
  [class*="-burger-label"] { display: none !important; }
}
@media (min-width: 1024px) {
  [class*="-burger"] { display: none !important; }
}

/* === [RP2G hotfix 2026-06-06] BURGER PARENT WRAP visible on mobile === */
@media (max-width: 1023px) {
  /* Force every parent wrap of the burger to be visible mobile */
  [class*="-header-cta-wrap"], [class*="-header-actions"],
  [class*="-burger-wrap"], [class*="-mobile-toggle"],
  [class*="-header"] [class*="cta"] {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
}
@media (min-width: 1024px) {
  /* Hide burger desktop, show nav */
  [class*="-burger"], [class*="-burger-wrap"] { display: none !important; }
}

/* === [RP2G hotfix 2026-06-07] cat-hero bg + footer black === */

/* 1) Hero des pages categorie : image de fond depuis uploads */
.e20-cat-hero { position: relative; min-height: 280px; padding: 4rem 1.5rem 3rem; background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }
.e20-cat-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.65) 100%); z-index: 1; pointer-events: none; }
.e20-cat-hero > * { position: relative; z-index: 2; color: #fff !important; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.e20-cat-hero h1, .e20-cat-hero .e20-cat-title, .e20-cat-hero [class*="title"] { color: #fff !important; font-size: 2.5rem !important; font-weight: 700 !important; text-shadow: 0 3px 12px rgba(0,0,0,0.85) !important; margin: 0 0 .5rem !important; }

/* Mapping image par categorie via body.category-XXX */
body.category-actualites .e20-cat-hero { background-image: url(/wp-content/uploads/2026/06/e20-cat-actualites.jpg) !important; }
body.category-animaux .e20-cat-hero { background-image: url(/wp-content/uploads/2026/06/e20-cat-animaux.jpg) !important; }
body.category-auto .e20-cat-hero { background-image: url(/wp-content/uploads/2026/06/e20-cat-auto.jpg) !important; }
body.category-cuisine .e20-cat-hero { background-image: url(/wp-content/uploads/2026/06/e20-cat-cuisine.jpg) !important; }
body.category-culture .e20-cat-hero { background-image: url(/wp-content/uploads/2026/06/e20-cat-culture.jpg) !important; }
body.category-economie .e20-cat-hero { background-image: url(/wp-content/uploads/2026/06/e20-cat-economie.jpg) !important; }
body.category-emploi .e20-cat-hero { background-image: url(/wp-content/uploads/2026/06/e20-cat-emploi.jpg) !important; }
body.category-high-tech .e20-cat-hero { background-image: url(/wp-content/uploads/2026/06/e20-cat-high-tech.jpg) !important; }
body.category-maison .e20-cat-hero { background-image: url(/wp-content/uploads/2026/06/e20-cat-maison.jpg) !important; }
body.category-mode .e20-cat-hero { background-image: url(/wp-content/uploads/2026/06/e20-cat-mode.jpg) !important; }
body.category-sante .e20-cat-hero { background-image: url(/wp-content/uploads/2026/06/e20-cat-sante.jpg) !important; }
body.category-sport .e20-cat-hero { background-image: url(/wp-content/uploads/2026/06/e20-cat-sport.jpg) !important; }
body.category-voyage .e20-cat-hero { background-image: url(/wp-content/uploads/2026/06/e20-cat-voyage.jpg) !important; }

/* 2) Footer fond clair -> texte NOIR (lisibilité) */
footer, [class*="-footer"]:not([class*="-footer-"]) { background: #fafafa; color: #1a1a1a !important; }
footer p, footer span, footer li, footer h1, footer h2, footer h3, footer h4, footer h5, footer h6,
[class*="-footer"] p, [class*="-footer"] span, [class*="-footer"] li,
[class*="-footer"] h1, [class*="-footer"] h2, [class*="-footer"] h3, [class*="-footer"] h4, [class*="-footer"] h5, [class*="-footer"] h6 { color: #1a1a1a !important; -webkit-text-fill-color: #1a1a1a !important; }
footer a, [class*="-footer"] a { color: #1a1a1a !important; -webkit-text-fill-color: #1a1a1a !important; text-decoration: underline !important; }
footer a:hover, [class*="-footer"] a:hover { color: #444 !important; }
/* Sauf le CTA principal qui reste blanc sur fond rouge */
footer a[class*="-btn--cta"], footer a[class*="btn-cta"], [class*="-footer"] a[class*="-btn--cta"] { color: #fff !important; -webkit-text-fill-color: #fff !important; text-decoration: none !important; }

/* === [RP2G hotfix 2026-06-07-bis] footer CTA exception elargie === */
footer a[class*="cta"], [class*="-footer"] a[class*="cta"] { color: #fff !important; -webkit-text-fill-color: #fff !important; text-decoration: none !important; }

/* === [RP2G hotfix 2026-06-07-ter] cat-hero center vertical alignment === */
.e20-cat-hero {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 320px !important;
  padding: 5rem 1.5rem 3rem !important;
}
.e20-cat-hero h1, .e20-cat-hero .e20-cat-title, .e20-cat-hero [class*="title"] {
  margin: 0 !important;
  line-height: 1.15 !important;
  padding: 0 !important;
  font-size: clamp(1.8rem, 5vw, 2.8rem) !important;
}
.e20-cat-hero p, .e20-cat-hero .e20-cat-desc {
  margin: .75rem 0 0 !important;
  max-width: 720px !important;
  line-height: 1.5 !important;
}

/* === [RP2G hotfix 2026-06-07-quat] cat-hero taller + h1 perfect center === */
.e20-cat-hero { min-height: 380px !important; padding: 3.5rem 1.5rem 3.5rem !important; }
@media (max-width: 768px) { .e20-cat-hero { min-height: 280px !important; padding: 2.5rem 1rem !important; } .e20-cat-hero h1 { font-size: clamp(1.5rem, 6vw, 2rem) !important; } }
