/*
Theme Name: GoWouf
Description: Thème SEO programmatique pour gowouf.com
Version: 4.24
Author: GoWouf
*/

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

:root {
  --green:       #1E5C3A;
  --green-mid:   #2D7A52;
  --green-light: #EAF3EE;
  --green-hover: #DAF0E3;
  --green-pale:  #f0f7f3;
  --amber:       #D4931A;
  --amber-light: #FDF3E0;
  --bg:          #F8F7F4;
  --white:       #FFFFFF;
  --text:        #141414;
  --muted:       #6A6A6A;
  --border:      #E2E1DC;
  --dark:        #1A2E1F;
  --radius:      12px;
  --radius-sm:   8px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Fraunces', serif; line-height: 1.15; }
h2[id], h3[id] { scroll-margin-top: 88px; }
.admin-bar h2[id], .admin-bar h3[id] { scroll-margin-top: 120px; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; object-fit: cover; }

/* ─── GRAIN ─── */
.grain { position: relative; overflow: hidden; }
.home-hero.grain { overflow: visible; }
.grain::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.grain > * { position: relative; z-index: 1; }

/* ─── ACCENT HEADING ─── */
.accent-heading { display: inline-block; position: relative; padding-bottom: 10px; }
.accent-heading::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: var(--amber); border-radius: 2px;
}

/* ─── HEADER ─── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.admin-bar .site-header { top: 32px; }
.admin-bar .transv-sidebar,
.admin-bar .article-sidebar,
.admin-bar .sante-sidebar,
.admin-bar .race-sidebar,
.admin-bar .hub-sidebar { top: 120px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-logo { display: flex; align-items: center; text-decoration: none; transition: transform 0.18s ease; }
.site-logo:hover { text-decoration: none; transform: scale(1.04); }
.logo-wordmark { font-family: 'Nunito', sans-serif; font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-style: normal; display: inline-flex; align-items: baseline; }
.logo-go   { font-size: 38px; color: #D4620A; }
.logo-w    { font-size: 35px; color: #1E5C3A; }
.logo-o2   { font-size: 32px; color: #1E5C3A; }
.logo-u    { font-size: 29px; color: #1E5C3A; }
.logo-f    { font-size: 27px; color: #1E5C3A; }
.logo-com  { font-size: 15px; color: #1E5C3A; opacity: 0.8; letter-spacing: 0; font-weight: 700; }

.site-nav { display: flex; align-items: center; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; }
.site-nav li { position: relative; }
.site-nav a {
  font-size: 0.85rem; font-weight: 500; color: var(--muted);
  position: relative; transition: color 0.15s;
}
.site-nav a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease; border-radius: 1px;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a:hover::after,
.site-nav .current-menu-item > a::after { transform: scaleX(1); }
.site-nav .current-menu-item > a { color: var(--green); font-weight: 600; }

/* Dropdown */
.site-nav li:hover > ul,
.site-nav li:focus-within > ul { display: block; }
.site-nav ul ul {
  display: none;
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  min-width: 180px; padding: 8px 0; z-index: 200;
  flex-direction: column; gap: 0;
}
.site-nav ul ul::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-bottom: 6px solid var(--border);
}
.site-nav ul ul li { width: 100%; }
.site-nav ul ul a {
  display: block; padding: 9px 18px;
  font-size: 0.82rem; color: var(--text); white-space: nowrap;
}
.site-nav ul ul a::after { display: none; }
.site-nav ul ul a:hover { background: var(--green-hover); color: var(--green); }
.site-nav > ul > li > a { padding-bottom: 4px; }

.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 6px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-quiz-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #D4620A; color: white; font-size: 0.82rem; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; text-decoration: none;
  transition: background .15s; white-space: nowrap;
}
.header-quiz-btn:hover { background: #b8510a; text-decoration: none; color: white; }

/* ── Navigation dropdowns ── */
.nav-item-wrap { position: relative; }
details.nav-item-wrap > summary { list-style: none; }
details.nav-item-wrap > summary::-webkit-details-marker { display: none; }
.nav-item-wrap::after {
  content: ''; position: absolute;
  top: 100%; left: 0; right: 0;
  height: 12px;
}
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.85rem; font-weight: 500; color: var(--muted);
  background: none; border: none; cursor: pointer;
  padding: 8px 10px; border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  font-family: 'Inter', sans-serif; text-decoration: none;
}
a.nav-link { color: var(--muted); }
a.nav-link::after,
.nav-dropdown a::after { display: none; }
.nav-link:hover,
.nav-item-wrap:hover .nav-link { color: var(--text); background: var(--green-light); }
a.nav-link:hover { color: var(--text); text-decoration: none; }
.nav-chevron { font-size: 0.62rem; opacity: 0.5; }
.nav-dropdown {
  display: none; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  z-index: 300; overflow: hidden;
}
.nav-item-wrap:hover .nav-dropdown,
details.nav-item-wrap[open] .nav-dropdown { display: block; }
.nav-item-wrap:hover .nd-races,
.nav-item-wrap:hover .nd-sante,
.nav-item-wrap:hover .nd-quotidien,
details.nav-item-wrap[open] .nd-races,
details.nav-item-wrap[open] .nd-sante,
details.nav-item-wrap[open] .nd-quotidien { display: grid; }

/* Races dropdown */
.nd-races { grid-template-columns: 260px 1fr; min-width: 760px; }
.nd-races-featured { position: relative; display: block; text-decoration: none; overflow: hidden; }
.nd-races-featured img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 340px; transition: transform 0.3s ease; }
.nd-races-featured:hover img { transform: scale(1.03); }
.nd-races-featured-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 32px 16px 16px;
  display: flex; flex-direction: column; gap: 3px;
}
.nd-races-featured-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.75); }
.nd-races-featured-title { font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 700; color: white; line-height: 1.2; }
.nd-races-featured-cta { font-size: 0.75rem; color: rgba(255,255,255,0.85); text-decoration: underline; }
.nd-races-nav { padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 16px; }
.nd-section-title { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 8px; }
.nd-races-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.nd-race-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px;
  text-decoration: none; color: var(--text); font-size: 0.82rem; font-weight: 500; transition: background 0.1s;
}
.nd-race-row:hover { background: var(--green-hover); }
.nd-race-row img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--border); }
.nd-race-all { color: var(--green); }
.nd-race-all-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.nd-races-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.nd-pill {
  font-size: 0.75rem; padding: 4px 10px;
  border: 1px solid var(--border); border-radius: 20px;
  color: var(--text); text-decoration: none; white-space: nowrap;
  transition: background 0.1s, border-color 0.1s;
}
.nd-pill:hover { background: var(--green-light); border-color: var(--green); color: var(--green); }
.nd-races-tools { display: flex; gap: 8px; }
.nd-tool-btn {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  text-decoration: none; color: var(--text); transition: background 0.1s;
}
.nd-tool-btn:hover { background: var(--green-pale); border-color: var(--green); }
.nd-tool-icon { font-size: 1.3rem; flex-shrink: 0; }
.nd-tool-body { display: flex; flex-direction: column; gap: 1px; }
.nd-tool-body strong { font-size: 0.8rem; font-weight: 600; color: var(--green); display: block; }
.nd-tool-body span { font-size: 0.72rem; color: var(--muted); }

/* Santé dropdown */
.nd-sante { grid-template-columns: 1fr 180px; min-width: 420px; }
.nd-sante-links { padding: 10px 6px; display: flex; flex-direction: column; gap: 1px; }
.nd-sante-link {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 7px;
  text-decoration: none; color: var(--text); font-size: 0.85rem; font-weight: 500; transition: background 0.1s;
}
.nd-sante-link:hover { background: var(--green-hover); color: var(--green); }
.nd-sante-hub { font-weight: 700; color: var(--green); border-bottom: 1px solid var(--border); margin-bottom: 4px; padding-bottom: 11px; }
.nd-sante-photo { position: relative; overflow: hidden; }
.nd-sante-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-sante-photo-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(30,92,58,0.85));
  padding: 20px 10px 12px; font-size: 0.72rem; color: white; font-style: italic; line-height: 1.4;
}

/* Au quotidien mega-menu */
.nd-quotidien { grid-template-columns: repeat(3, 1fr); min-width: 720px; }
.nd-hub-card {
  display: flex !important; gap: 12px; align-items: flex-start; padding: 14px;
  text-decoration: none; color: var(--text);
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.nd-hub-card:hover { background: var(--green-pale); }
.nd-hub-card:nth-child(3n) { border-right: none; }
.nd-hub-card:nth-child(n+4) { border-bottom: none; }
.nd-hub-thumb { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.nd-hub-body { flex: 1; min-width: 0; }
.nd-hub-title { font-family: 'Fraunces', serif; font-size: 0.92rem; font-weight: 700; color: var(--green); margin-bottom: 5px; display: block; text-decoration: none; }
.nd-hub-title:hover { text-decoration: underline; }
.nd-hub-card .nd-hub-links { list-style: none !important; display: flex !important; flex-direction: column !important; gap: 2px !important; align-items: flex-start !important; margin: 0 !important; padding: 0 !important; }
.nd-hub-card .nd-hub-links li { font-size: 0.74rem; color: var(--muted); width: auto !important; }
.nd-hub-card .nd-hub-links li a { font-size: 0.74rem; color: var(--muted); display: inline !important; padding: 0 !important; white-space: normal !important; }

/* ─── HOMEPAGE — HERO ─── */
.hero-trail {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}

.home-hero {
  background: var(--dark);
  padding: 72px 32px 96px;
  text-align: center;
  position: relative; overflow: visible;
  margin-bottom: -48px;
}
.home-hero::before {
  content: '';
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(45,122,82,0.4) 0%, transparent 65%);
}
.home-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 48px; z-index: 1; pointer-events: none;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.home-hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: #7EC8A0; margin-bottom: 24px;
}
.home-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 900;
  color: white; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 20px;
}
.home-hero h1 em { font-style: italic; color: #7EC8A0; }
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.55);
  line-height: 1.7; max-width: 500px; margin: 0 auto 36px;
}
.hero-search {
  display: flex; max-width: 440px; margin: 0 auto;
  background: white; border-radius: 10px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.hero-search input {
  flex: 1; border: none; padding: 14px 18px;
  font-family: 'Inter', sans-serif; font-size: 0.95rem; color: var(--text); outline: none;
}
.hero-search input::placeholder { color: var(--muted); }
.hero-search button {
  background: var(--green); color: white; border: none;
  padding: 14px 22px; font-family: 'Inter', sans-serif;
  font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: background 0.15s;
}
.hero-search button:hover { background: var(--green-mid); }

/* ─── SEARCH DROPDOWN ─── */
.hero-search { overflow: visible; }
.search-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; width: 100%;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 9999; display: none; max-height: 420px; overflow-y: auto;
  text-align: left;
}
.search-dropdown.open { display: block; }
.search-group-label {
  padding: 8px 14px 5px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: lowercase; color: var(--muted);
  border-top: 1px solid var(--border);
}
.search-group-label:first-child { border-top: none; }
.search-item {
  display: block; padding: 9px 14px;
  text-decoration: none; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background 0.1s;
}
.search-item:hover, .search-item.active { background: var(--green-hover); text-decoration: none; }
.si-title {
  font-size: 0.875rem; font-weight: 500; color: var(--text);
}
.si-title mark {
  background: var(--amber-light); color: var(--amber);
  border-radius: 2px; padding: 0 1px; font-style: normal; font-weight: 600;
}
.search-empty {
  padding: 16px 14px; font-size: 0.85rem; color: var(--muted); text-align: center;
}

/* ─── HOMEPAGE — SECTION COMMUNE ─── */
.home-section { padding: 64px 0; }
.home-section-white { background: var(--white); }
.home-section-bg { background: var(--bg); }
.section-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.section-heading { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; }
.section-heading em { font-style: italic; color: var(--green); }
.section-link { font-size: 0.83rem; color: var(--green); font-weight: 600; }

/* topic cards — grille 4 colonnes par thème */
.topics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.topic-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s; min-height: 80px;
}
.topic-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); transform: translateY(-2px); text-decoration: none; }
.topic-card-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.topic-card-body { flex: 1; min-width: 0; }
.topic-card-name { font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.topic-card-desc { font-size: 0.75rem; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.topic-card-count { font-size: 0.72rem; font-weight: 600; color: var(--green); margin-top: 4px; }
.topic-card-arrow { font-size: 1rem; color: var(--green); opacity: 0.5; flex-shrink: 0; transition: opacity 0.15s; }
.topic-card:hover .topic-card-arrow { opacity: 1; }

/* ─── SHOP ─── */
.home-shop { background: var(--dark); padding: 64px 0; }
.shop-heading { font-size: 1.7rem; font-weight: 700; color: white; letter-spacing: -0.02em; margin-bottom: 8px; }
.shop-heading em { font-style: italic; color: #7EC8A0; }
.shop-sub { font-size: 0.9rem; color: rgba(255,255,255,0.4); margin-bottom: 32px; }
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shop-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; overflow: hidden; text-decoration: none;
  transition: background 0.15s, transform 0.15s; display: flex; flex-direction: column;
}
.shop-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); text-decoration: none; }
.shop-card-img { height: 120px; overflow: hidden; background: rgba(255,255,255,0.05); position: relative; }
.shop-card-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.shop-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--amber); color: white;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 3px 8px; border-radius: 4px;
}
.shop-card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.shop-card-name { font-family: 'Fraunces', serif; font-size: 0.98rem; font-weight: 700; color: white; line-height: 1.3; flex: 1; margin-bottom: 12px; }
.shop-card-cta { font-size: 0.78rem; font-weight: 600; color: #7EC8A0; }

/* ─── ARTICLE PAGE ─── */
.article-hero { background: var(--white); padding: 20px 0 16px; }
.article-hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.article-hero-content { max-width: 740px; }

.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.78rem; color: var(--muted); padding-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green); text-decoration: none; }
.breadcrumb-sep { opacity: 0.4; }

.article-tag {
  display: inline-block; background: var(--green-light); color: var(--green);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 4px 12px; border-radius: 4px; margin-bottom: 18px;
}
.article-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900;
  color: var(--green); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 0;
}
.article-hero h1 em { font-style: italic; color: var(--green-mid); }
.article-meta-bar {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem; color: rgba(255,255,255,0.45); flex-wrap: wrap;
}
.article-meta-bar strong { color: rgba(255,255,255,0.75); font-weight: 500; }

.article-lead-section { background: var(--white); padding: 20px 0 32px; border-bottom: 1px solid var(--border); }
.article-lead-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start;
}
.article-lead p { font-size: 1.05rem; line-height: 1.75; }
.article-lead strong { color: var(--green); font-weight: 600; }

.quick-facts { background: var(--green-light); border-radius: 12px; padding: 18px 20px; }
.quick-facts-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--green); margin-bottom: 14px; }
.quick-fact-row { display: flex; justify-content: space-between; font-size: 0.83rem; padding: 6px 0; border-bottom: 1px solid rgba(45,122,82,0.12); gap: 8px; }
.quick-fact-row:last-child { border-bottom: none; }
.quick-fact-label { color: var(--muted); }
.quick-fact-val { font-weight: 600; text-align: right; }

.article-layout {
  max-width: 1200px; margin: 0 auto;
  padding: 48px 32px 60px;
  display: grid; grid-template-columns: 1fr 280px; gap: 60px; align-items: start;
}
.article-body { max-width: 680px; }
.article-body h2 { font-size: 1.65rem; font-weight: 700; margin: 44px 0 14px; letter-spacing: -0.02em; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.1rem; font-weight: 600; margin: 28px 0 8px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.article-body strong { font-weight: 600; }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 44px 0; }
.article-body a { color: var(--green); text-decoration: underline; }

/* ─── PAGE TRANSVERSALE ─── */
.transv-hero {
  background: var(--dark);
  padding: 60px 0 52px;
}
.transv-hero-inner { }
.transv-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: #7EC8A0; margin-bottom: 20px;
}
.transv-hero-title {
  font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900;
  color: white; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 20px;
}
.transv-hero-lead {
  font-size: 1.05rem; color: rgba(255,255,255,0.65); line-height: 1.75;
  max-width: 680px; margin-bottom: 28px;
}
.transv-hero-lead p { margin: 0; }
.transv-hero-stat {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 12px 20px;
}
.transv-stat-n {
  font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 900;
  color: #7EC8A0; letter-spacing: -0.03em; line-height: 1;
}
.transv-stat-l {
  font-size: 0.85rem; color: rgba(255,255,255,0.5); max-width: 200px; line-height: 1.4;
}

.transv-body-wrap { padding: 56px 0 80px; }
.transv-layout {
  display: grid; grid-template-columns: 1fr 280px; gap: 56px; align-items: start;
}
.transv-content { }
.transv-content-inner h2 {
  font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em;
  margin: 48px 0 20px; color: var(--text);
}
.transv-content-inner h2:first-child { margin-top: 0; }
.transv-content-inner > p { margin-bottom: 16px; color: var(--muted); line-height: 1.75; }
.transv-content-inner ul, .transv-content-inner ol {
  padding-left: 22px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; color: var(--muted);
}
.transv-content-inner a { color: var(--green); }

/* Content H3 — breed items styled via CSS */
.transv-content-inner > h3 {
  font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 700;
  color: var(--text); margin: 0; padding: 24px 0 0; line-height: 1.25;
  border-top: 1px solid var(--border);
}
.transv-content-inner > h3:first-of-type { border-top: none; }
.transv-content-inner > h3 a { color: var(--text); text-decoration: none; }
.transv-content-inner > h3 a:hover { color: var(--green); }
.transv-content-inner > h3 + p {
  font-size: 0.92rem; color: var(--muted); margin: 10px 0 24px; line-height: 1.7;
}
.transv-content-inner > h3 + p + ul,
.transv-content-inner > h3 + p + p { margin-bottom: 24px; }

/* Tables in transversal content */
.transv-content-inner table {
  width: 100%; border-collapse: collapse;
  margin: 28px 0; font-size: 0.875rem;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.transv-content-inner thead th {
  background: var(--dark); color: white;
  font-weight: 600; padding: 12px 16px;
  text-align: left; font-size: 0.8rem; letter-spacing: 0.02em;
  font-family: 'Inter', sans-serif;
}
.transv-content-inner tbody tr:nth-child(even) { background: var(--green-light); }
.transv-content-inner tbody tr:hover { background: #dceee3; }
.transv-content-inner tbody td {
  padding: 11px 16px; border-bottom: 1px solid var(--border); color: var(--text);
}
.transv-content-inner tbody tr:last-child td { border-bottom: none; }

/* Transversal FAQ */
.transv-faq {
  background: var(--amber-light); border-top: 1px solid #E8D8B0; padding: 64px 0;
}
.transv-faq-inner { max-width: 760px; }
.transv-faq-inner > h2 {
  font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 32px; font-family: 'Fraunces', serif;
}
/* Accordion */
.transv-faq-list {
  display: flex; flex-direction: column;
  border: 1px solid #E0CFA0; border-radius: 14px; overflow: hidden;
  background: var(--white);
}
.transv-faq-item { border-bottom: 1px solid #EDE4C8; }
.transv-faq-item:last-child { border-bottom: none; }
.transv-faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 20px; cursor: pointer; list-style: none;
  font-family: 'Fraunces', serif; font-size: 0.97rem; font-weight: 700;
  color: var(--text); line-height: 1.3; user-select: none;
  transition: background .12s;
}
.transv-faq-q::-webkit-details-marker { display: none; }
.transv-faq-q::after { content: '+'; font-size: 1.4rem; font-weight: 300; font-family: monospace; color: var(--green); flex-shrink: 0; line-height: 1; }
details[open].transv-faq-item > .transv-faq-q { background: #FBF6E9; }
details[open].transv-faq-item > .transv-faq-q::after { content: '−'; }
.transv-faq-q:hover { background: #FBF6E9; }
.transv-faq-a { padding: 4px 20px 16px; font-size: 0.88rem; color: var(--muted); line-height: 1.75; }
/* Fallback pour ancien format H3/P */
.transv-faq-inner > h3 {
  font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 700;
  color: var(--text); margin: 0 0 10px; line-height: 1.3;
  padding: 20px 0 0; border-top: 1px solid #E8D8B0;
}
.transv-faq-inner > h3:first-of-type { padding-top: 0; border-top: none; }
.transv-faq-inner > p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin: 0; }

/* Sidebar */
.transv-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.transv-sidebar-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 22px;
}
.tsb-title {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--muted); margin-bottom: 14px;
}
.tsb-toc { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.tsb-toc li { }
.tsb-toc a {
  display: block; font-size: 0.85rem; color: var(--text);
  padding: 6px 10px; border-radius: 6px; transition: background 0.12s, color 0.12s;
}
.tsb-toc a:hover { background: var(--green-hover); color: var(--green); text-decoration: none; }
.transv-sidebar-cta { background: var(--green); border-color: transparent; text-align: center; }
.tsb-cta-emoji { font-size: 2rem; margin-bottom: 10px; }
.tsb-cta-text { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-bottom: 14px; line-height: 1.5; }
.tsb-cta-btn {
  display: block; background: var(--amber); color: white;
  font-weight: 700; font-size: 0.88rem; padding: 10px 20px;
  border-radius: 8px; text-decoration: none; transition: background 0.15s;
}
.tsb-cta-btn:hover { background: #b8510a; text-decoration: none; color: white; }
.tsb-see-also { display: flex; flex-direction: column; gap: 2px; }
.tsb-link {
  display: block; font-size: 0.85rem; color: var(--text);
  padding: 7px 10px; border-radius: 6px; transition: background 0.12s, color 0.12s;
}
.tsb-link:hover { background: var(--green-hover); color: var(--green); text-decoration: none; }

/* ─── PAGE TEMPLATE ─── */
.page-content-wrap { padding: 48px 0 80px; }
.page-article { max-width: 800px; margin: 0 auto; }
.page-title { font-family: 'Fraunces', serif; font-size: 2.2rem; font-weight: 900; color: var(--text); letter-spacing: -0.03em; margin-bottom: 32px; line-height: 1.15; }

/* WordPress content styles */
.entry-content h2 { font-size: 1.65rem; font-weight: 700; margin: 44px 0 14px; letter-spacing: -0.02em; font-family: 'Fraunces', serif; }
.entry-content h3 { font-size: 1.1rem; font-weight: 600; margin: 28px 0 8px; font-family: 'Fraunces', serif; }
.entry-content p { margin-bottom: 16px; }
.entry-content ul, .entry-content ol { padding-left: 22px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.entry-content strong { font-weight: 600; }
.entry-content hr { border: none; border-top: 1px solid var(--border); margin: 44px 0; }
.entry-content a { color: var(--green); }
.entry-content img { border-radius: 10px; margin: 24px 0; max-width: 100%; }
.entry-content blockquote {
  border-left: 3px solid var(--green); padding: 16px 20px;
  margin: 24px 0; font-style: italic;
  background: var(--green-light); border-radius: 0 8px 8px 0;
}

.callout { border-radius: 10px; padding: 18px 22px; margin: 24px 0; font-size: 0.93rem; }
.callout-info { background: var(--amber-light); border-left: 4px solid var(--amber); }
.callout-info strong { color: #7A5000; }

.stat-block { background: var(--dark); border-radius: 14px; padding: 28px 24px; margin: 32px 0; text-align: center; color: white; }
.stat-block .num { font-family: 'Fraunces', serif; font-size: 3.5rem; font-weight: 900; color: #7EC8A0; display: block; line-height: 1; letter-spacing: -0.03em; }
.stat-block .unit { font-family: 'Fraunces', serif; font-size: 1.3rem; font-style: italic; color: #7EC8A0; }
.stat-block .desc { font-size: 0.88rem; color: rgba(255,255,255,0.5); margin-top: 8px; }

.pull-quote { border-top: 3px solid var(--green); border-bottom: 1px solid var(--border); padding: 20px 0; margin: 32px 0; }
.pull-quote p { font-family: 'Fraunces', serif; font-size: 1.25rem; font-style: italic; color: var(--text); line-height: 1.5; margin: 0; }

.article-sidebar { position: sticky; top: 88px; }
.sb-box { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.toc-box { }
.toc-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 14px; }
.toc-box ol { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.toc-box li { font-size: 0.85rem; }
.toc-box li.toc-h3 { padding-left: 12px; font-size: 0.8rem; border-left: 2px solid var(--border); margin-left: 4px; }
.toc-box a { color: var(--text); text-decoration: none; display: block; padding: 3px 0; }
.toc-box a:hover { color: var(--green); }

.related-box { overflow: hidden; }
.related-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 14px; }
.related-link { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-size: 0.85rem; color: var(--text); padding: 8px 20px; margin: 0 -20px; text-decoration: none; transition: background 0.15s, color 0.15s; }
.related-link-text { }
.related-link::after { content: '→'; color: var(--muted); flex-shrink: 0; transition: transform 0.15s, color 0.15s; }
.related-link:hover { background: var(--green-hover); color: var(--green); text-decoration: none; }
.related-link:hover::after { color: var(--green); transform: translateX(3px); }
.sidebar-hub-back { margin-bottom: 16px; }
.sidebar-hub-back a { display: block; font-size: 0.82rem; color: var(--green); font-weight: 600; text-decoration: none; padding: 10px 14px; background: var(--green-hover); border-radius: var(--radius-sm); }
.sidebar-hub-back a:hover { background: var(--green-light); text-decoration: none; }

/* ─── HUB THEMES ─── */
.hub-themes-section { background: var(--bg); padding: 60px 0; }
.hub-themes-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.hub-themes-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 36px; }
.hub-themes-heading { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; }
.hub-themes-heading em { font-style: italic; color: var(--green); }
.hub-themes-count { font-size: 0.82rem; color: var(--muted); }

.theme-row { display: grid; grid-template-columns: 280px 1fr; border-bottom: 1px solid var(--border); padding: 28px 0; align-items: start; }
.theme-row:last-child { border-bottom: none; }
.theme-row-left { display: flex; gap: 16px; align-items: flex-start; padding-right: 32px; }
.theme-icon-wrap { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.theme-name { font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 700; color: var(--text); display: block; margin-bottom: 4px; transition: color 0.15s; }
.theme-name:hover { color: var(--green); text-decoration: none; }
.theme-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.theme-row-articles { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--border); padding-left: 32px; }
.theme-article-link { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 8px; font-size: 0.9rem; color: var(--text); text-decoration: none; gap: 16px; transition: background 0.12s, color 0.12s; }
.theme-article-link:hover { background: var(--white); color: var(--green); text-decoration: none; }
.theme-article-link span { font-size: 0.75rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.theme-see-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 8px 12px; font-size: 0.82rem; font-weight: 600; color: var(--green); text-decoration: none; border-radius: 6px; transition: background 0.12s; }
.theme-see-all:hover { background: var(--white); text-decoration: none; }

/* ─── HUB THÈME — topic hub par race ─── */
.hub-topic-intro {
  color: var(--text); margin-top: 16px;
  font-size: 1rem; max-width: 620px; line-height: 1.8;
}
.topic-race-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.topic-race-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}
.topic-race-header {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px 16px; border-bottom: 1px solid var(--border);
}
.topic-race-thumb {
  width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
}
.topic-race-thumb-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--green-light); font-size: 1.5rem;
}
.topic-race-name {
  font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 700;
  color: var(--text); line-height: 1.2; margin-bottom: 4px;
}
.topic-race-all {
  font-size: 0.75rem; font-weight: 600; color: var(--green);
}
.topic-race-all:hover { text-decoration: none; opacity: 0.8; }
.topic-race-articles { padding: 8px 0; }
.topic-race-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 20px; gap: 12px; text-decoration: none;
  transition: background 0.12s;
}
.topic-race-link:hover { background: var(--bg); text-decoration: none; }
.topic-race-link-title {
  font-size: 0.87rem; color: var(--text); line-height: 1.4; flex: 1;
}
.topic-race-link:hover .topic-race-link-title { color: var(--green); }
.topic-race-link-time {
  font-size: 0.73rem; color: var(--muted); white-space: nowrap; flex-shrink: 0;
}

/* ─── ARTICLE — section bas de page "Autres guides" ─── */
.article-more-section {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 48px 0;
}
.article-more-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.article-more-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 24px;
}
.article-more-title {
  font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.02em;
}
.article-more-title em { font-style: italic; color: var(--green); }
.article-more-all { font-size: 0.83rem; font-weight: 600; color: var(--green); }
.article-more-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.article-more-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px; text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.article-more-card:hover {
  border-color: var(--green); box-shadow: 0 4px 16px rgba(30,92,58,0.08);
  text-decoration: none;
}
.article-more-card-title {
  font-size: 0.9rem; color: var(--text); line-height: 1.45; flex: 1;
}
.article-more-card:hover .article-more-card-title { color: var(--green); }
.article-more-card-time {
  font-size: 0.73rem; color: var(--muted);
}
.related-link-all {
  font-size: 0.8rem; font-weight: 600; color: var(--green); margin-top: 6px;
}

/* ─── FAQ ─── */
.faq-item { background: var(--white); padding: 24px 26px; }
.faq-q { font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.faq-a { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

/* ─── FOOTER ─── */
.site-footer { background: var(--text); padding: 48px 32px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 200px 1fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-logo-link { display: inline-block; text-decoration: none; margin-bottom: 10px; }
.footer-logo-link:hover { text-decoration: none; }
.footer-wordmark .logo-go { color: white; }
.footer-wordmark .logo-w,
.footer-wordmark .logo-o2,
.footer-wordmark .logo-u,
.footer-wordmark .logo-f { color: #7EC8A0; }
.footer-brand p { font-size: 0.82rem; color: rgba(255,255,255,0.3); line-height: 1.6; }
.footer-col-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.25); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.5); padding: 4px 0; }
.footer-col a:hover { color: white; text-decoration: none; }
.footer-bottom { max-width: 1200px; margin: 24px auto 0; font-size: 0.78rem; color: rgba(255,255,255,0.2); display: flex; justify-content: space-between; }
.footer-bottom a { color: rgba(255,255,255,0.2); }
.footer-bottom a:hover { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-quiz-link { display: inline-block; margin-top: 14px; font-size: 0.82rem; font-weight: 600; color: #7EC8A0; text-decoration: none; }
.footer-quiz-link:hover { color: white; text-decoration: none; }
.footer-see-all { margin-top: 6px; font-size: 0.78rem; color: rgba(255,255,255,0.35) !important; font-style: italic; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .transv-layout { grid-template-columns: 1fr 240px; gap: 36px; }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-race-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}


@media (max-width: 768px) {
  html { font-size: 16px; }
  .site-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 32px 24px; gap: 16px; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-inner { position: relative; }
  .header-quiz-btn { display: none; }
  .home-hero { padding: 48px 24px 72px; }
  .home-hero h1 { font-size: 2.2rem; }
  .topics-grid { grid-template-columns: 1fr 1fr; }
  .topic-race-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr 1fr; }
  .article-lead-inner { grid-template-columns: 1fr; }
  .quick-facts { display: none; }
  .article-layout { grid-template-columns: 1fr; padding: 32px 24px 48px; }
  .article-sidebar { display: none; }
  .article-body { max-width: 100%; }
  .theme-row { grid-template-columns: 1fr; }
  .theme-row-left { padding-right: 0; margin-bottom: 16px; }
  .theme-row-articles { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 16px; }
  .transv-layout { grid-template-columns: 1fr; }
  .transv-sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .section-wrap { padding: 0 20px; }
  .home-section { padding: 48px 0; }

  /* Dropdowns mobile */
  .nav-item-wrap { width: 100%; }
  .nav-item-wrap .nav-link { width: 100%; justify-content: space-between; padding: 10px 4px; border-radius: 0; background: none !important; font-size: 0.92rem; color: var(--text); }
  .nav-dropdown { display: none; position: static; box-shadow: none; border: none; border-top: 1px solid var(--border); border-radius: 0; overflow: hidden; }
  details.nav-item-wrap[open] .nav-dropdown { display: block !important; }
  .nav-item-wrap:hover .nav-dropdown,
  .nav-item-wrap:focus-within .nav-dropdown { display: none; }
  .nd-races { grid-template-columns: 1fr; }
  .nd-races-featured { display: none; }
  .nd-races-nav { padding: 8px 4px; }
  .nd-races-list { grid-template-columns: 1fr 1fr; }
  .nd-sante { grid-template-columns: 1fr; }
  .nd-sante-photo { display: none; }
  .nd-quotidien { grid-template-columns: 1fr; }
  .nd-hub-card { border-right: none; }
  .nd-hub-card:nth-child(n+4) { border-bottom: 1px solid var(--border); }
  .nd-hub-card:last-child { border-bottom: none; }
}

/* ─── SCORE DOTS ─── */
.sdots { display: inline-flex; gap: 4px; align-items: center; }
.sdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.sdot-on  { background: #1E5C3A; }
.sdot-off { background: #D5E8DC; }

/* ─── RACES HUB v2 ─── */
.races-page-hero { background: #F7FBF8; padding: 56px 0 48px; border-bottom: 1px solid #E5EDE8; }
.races-page-hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.races-page-eyebrow { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #1E5C3A; margin-bottom: 12px; }
.races-page-hero h1 { font-family: var(--font-display); font-size: 2.6rem; color: #142A1C; margin: 0 0 12px; }
.races-page-hero-sub { font-size: 1.05rem; color: #4A5E50; max-width: 540px; margin: 0 0 28px; }
.quiz-hero-btn { display: inline-block; background: #D4620A; color: white; font-size: 0.95rem; font-weight: 600; padding: 12px 24px; border-radius: 8px; text-decoration: none; transition: background .15s; }
.quiz-hero-btn:hover { background: #b8510a; text-decoration: none; color: white; }

.races-filter-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 32px 0; }
.races-filter-inner { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.races-guides-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid #E8EDE8; font-size: 0.78rem; }
.races-guides-label { color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; flex-shrink: 0; }
.races-guides-links a { color: #3A5042; text-decoration: none; padding: 4px 10px; border-radius: 999px; background: #F2F5F2; transition: background .15s; }
.races-guides-links a:hover { background: #E0EBE3; color: #1E5C3A; }
.filter-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; padding: 7px 14px; border: 1.5px solid #D0DDD5; border-radius: 999px; background: white; cursor: pointer; color: #3A5042; transition: all .15s; }
.filter-pill:hover { border-color: #1E5C3A; color: #1E5C3A; }
.filter-pill.active { background: #1E5C3A; border-color: #1E5C3A; color: white; }
.filter-sep { width: 1px; height: 20px; background: #D0DDD5; display: inline-block; margin: 0 4px; }
.filter-count { font-size: 0.75rem; font-weight: 700; }

.races-page-wrap { max-width: 1200px; margin: 0 auto; }
.races-no-result { text-align: center; padding: 40px; color: #7A9B82; font-size: 0.95rem; }
.races-grid-v2 { padding: 28px 32px 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.race-card-v2 { background: white; border-radius: 14px; border: 1.5px solid #E5EDE8; overflow: hidden; transition: box-shadow .2s, transform .2s; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.race-card-v2:hover { box-shadow: 0 6px 24px rgba(30,92,58,.12); transform: translateY(-3px); text-decoration: none; color: inherit; }
.race-card-v2-img { width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.race-card-v2-img img { width: 100%; height: 100%; object-fit: cover; }
.race-card-v2-placeholder { width: 100%; aspect-ratio: 4/3; background: #E8F2EB; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.race-card-v2-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.race-card-v2-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: #142A1C; margin-bottom: 3px; }
.race-card-v2-life { font-size: 0.73rem; color: #7A9B82; margin-bottom: 10px; }
.race-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; margin-bottom: 10px; }
.race-score-row { display: flex; align-items: center; gap: 5px; }
.race-score-label { font-size: 0.68rem; color: #6B8272; min-width: 42px; }
.race-card-v2-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 8px; }
.race-tag { font-size: 0.67rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #EAF3EE; color: #1E5C3A; }

/* ─── QUIZ PAGE ─── */
.quiz-page { min-height: 80vh; }
.quiz-hero { background: linear-gradient(135deg, #0d3a22 0%, #1E5C3A 100%); padding: 52px 32px 44px; text-align: center; color: white; }
.quiz-hero-inner { max-width: 620px; margin: 0 auto; }
.quiz-eyebrow { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; opacity: .75; margin-bottom: 14px; }
.quiz-hero h1 { font-family: var(--font-display); font-size: 2.2rem; margin: 0 0 14px; line-height: 1.2; }
.quiz-hero-sub { font-size: 1rem; opacity: .8; margin: 0; }

.quiz-wrap { max-width: 680px; margin: 0 auto; padding: 40px 24px 80px; }
.quiz-progress { margin-bottom: 32px; }
.quiz-progress-track { height: 4px; background: #E5EDE8; border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.quiz-progress-bar { height: 100%; background: #1E5C3A; border-radius: 999px; transition: width .4s ease; }
.quiz-progress-label { font-size: 0.78rem; color: #7A9B82; }

.quiz-step { animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.quiz-step-icon { font-size: 2rem; margin-bottom: 12px; }
.quiz-step-q { font-family: var(--font-display); font-size: 1.5rem; color: #142A1C; margin: 0 0 24px; }
.quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 20px; border: 2px solid #E0EAE3; border-radius: 12px; background: white; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.quiz-opt:hover { border-color: #1E5C3A; background: #F7FBF8; }
.quiz-opt.selected { border-color: #1E5C3A; background: #EAF3EE; }
.quiz-opt-label { font-size: 0.95rem; font-weight: 600; color: #142A1C; }
.quiz-opt-sub { font-size: 0.8rem; color: #7A9B82; }

.quiz-results { animation: fadeIn .35s ease; }
.quiz-results-head { text-align: center; margin-bottom: 28px; }
.quiz-results-head h2 { font-family: var(--font-display); font-size: 1.7rem; color: #142A1C; margin: 0 0 8px; }
.quiz-results-sub { font-size: 0.95rem; color: #4A5E50; margin: 0; }
.quiz-results-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }

.res-card { display: flex; align-items: center; gap: 16px; background: white; border: 1.5px solid #E5EDE8; border-radius: 14px; padding: 14px 18px; text-decoration: none; color: inherit; transition: box-shadow .2s, border-color .2s; }
.res-card:hover { box-shadow: 0 4px 18px rgba(30,92,58,.1); border-color: #1E5C3A; text-decoration: none; color: inherit; }
.res-card:first-child { border-color: #1E5C3A; background: #F7FBF8; }
.res-rank { font-size: 1.1rem; font-weight: 700; color: #1E5C3A; min-width: 24px; text-align: center; }
.res-thumb { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.res-thumb-placeholder { width: 58px; height: 58px; border-radius: 50%; background: #D5E8DC; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; color: #1E5C3A; flex-shrink: 0; }
.res-info { flex: 1; min-width: 0; }
.res-name { font-weight: 700; color: #142A1C; font-size: 0.95rem; display: flex; align-items: center; gap: 6px; }
.res-medal { font-size: 1rem; }
.res-life { font-size: 0.73rem; color: #7A9B82; margin-top: 2px; }
.res-score-wrap { text-align: right; min-width: 80px; }
.res-pct { font-size: 1.3rem; font-weight: 700; color: #1E5C3A; }
.res-bar-track { height: 5px; background: #D5E8DC; border-radius: 999px; margin-top: 5px; overflow: hidden; }
.res-bar-fill { height: 100%; background: #1E5C3A; border-radius: 999px; transition: width .8s ease; }

.quiz-results-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.quiz-share-btn, .quiz-restart-btn { padding: 12px 22px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; border: none; }
.quiz-share-btn { background: #1E5C3A; color: white; transition: background .15s; }
.quiz-share-btn:hover { background: #174d30; }
.quiz-restart-btn { background: white; color: #3A5042; border: 1.5px solid #D0DDD5; transition: border-color .15s; }
.quiz-restart-btn:hover { border-color: #1E5C3A; color: #1E5C3A; }

/* ─── HUB RACE SCORES ROW ─── */
.hub-scores-row { display: flex; gap: 24px; padding: 20px 0; border-top: 1px solid var(--border); margin-top: 20px; flex-wrap: wrap; }
.hub-score-item { display: flex; flex-direction: column; gap: 4px; }
.hub-score-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

/* ─── PROFIL DE LA RACE ─── */
.race-profile { background: var(--white); border-top: 1px solid var(--border); padding: 48px 0; }
.race-profile-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.race-profile-heading { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }
.race-stat-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.race-stat-label { font-size: 0.82rem; color: var(--text); width: 170px; flex-shrink: 0; }
.race-stat-bar-wrap { flex: 1; background: #EEF0EC; border-radius: 99px; height: 7px; overflow: hidden; }
.race-stat-bar { height: 100%; background: var(--green); border-radius: 99px; }
.race-stat-score { font-size: 0.73rem; color: var(--muted); width: 30px; text-align: right; flex-shrink: 0; }
.race-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.race-tag { font-size: 0.78rem; background: #F0F7F3; color: #1a4a2a; border: 1px solid #cde3d5; border-radius: 99px; padding: 5px 14px; }

/* ─── RACES SIMILAIRES ─── */
.hub-similar-section { background: #F7FBF8; border-top: 1px solid #E5EDE8; padding: 40px 0 48px; }
.hub-similar-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.hub-similar-title { font-family: var(--font-display); font-size: 1.3rem; color: #142A1C; margin: 0 0 20px; }
.hub-similar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.similar-card { display: flex; align-items: center; gap: 14px; background: white; border: 1.5px solid #E5EDE8; border-radius: 12px; padding: 14px; text-decoration: none; color: inherit; transition: box-shadow .2s, border-color .2s; }
.similar-card:hover { box-shadow: 0 4px 16px rgba(30,92,58,.1); border-color: #1E5C3A; text-decoration: none; color: inherit; }
.similar-card-img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.similar-card-placeholder { width: 56px; height: 56px; border-radius: 50%; background: #D5E8DC; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.similar-card-body { flex: 1; min-width: 0; }
.similar-card-name { font-weight: 700; color: #142A1C; font-size: 0.9rem; }
.similar-card-life { font-size: 0.72rem; color: #7A9B82; margin-top: 2px; }

/* Responsive additions */
@media (max-width: 1024px) {
  .races-grid-v2 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .races-grid-v2 { grid-template-columns: repeat(2, 1fr); padding: 20px 16px 48px; }
  .races-filter-wrap { padding: 16px 16px 0; }
  .races-page-hero { padding: 40px 0 32px; }
  .races-page-hero-inner { padding: 0 20px; }
  .races-page-hero h1 { font-size: 1.9rem; }
  .quiz-hero h1 { font-size: 1.7rem; }
  .quiz-wrap { padding: 32px 16px 64px; }
  .quiz-step-q { font-size: 1.25rem; }
  .res-card { padding: 12px 14px; gap: 12px; }
  .hub-scores-row { gap: 16px; }
  .hub-similar-grid { grid-template-columns: 1fr; }
  .race-profile-inner { grid-template-columns: 1fr; gap: 32px; }
  .race-stat-label { width: 130px; }
}

/* ─── COMPARATEUR ─── */
.cmp-page { min-height: 80vh; }
.cmp-hero { background: linear-gradient(135deg, #0d2d4a 0%, #184673 100%); padding: 52px 32px 44px; text-align: center; color: white; }
.cmp-hero-inner { max-width: 620px; margin: 0 auto; }
.cmp-hero h1 { font-family: var(--font-display); font-size: 2.2rem; margin: 0 0 14px; line-height: 1.2; }

.cmp-wrap { max-width: 780px; margin: 0 auto; padding: 40px 24px 80px; }
.cmp-selectors { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-bottom: 40px; }
.cmp-selector-col { display: flex; flex-direction: column; gap: 8px; }
.cmp-sel-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #7A9B82; }
.cmp-select { width: 100%; padding: 12px 14px; border: 2px solid #D0DDD5; border-radius: 10px; font-size: 0.95rem; font-family: inherit; background: white; color: #142A1C; cursor: pointer; transition: border-color .15s; }
.cmp-select:focus { outline: none; border-color: #1E5C3A; }
.cmp-vs { font-size: 0.85rem; font-weight: 800; color: #7A9B82; text-align: center; }

.cmp-empty { text-align: center; padding: 60px 24px; color: #7A9B82; }

.cmp-heads { display: grid; grid-template-columns: 1fr 48px 1fr; gap: 8px; align-items: center; margin-bottom: 28px; text-align: center; }
.cmp-head-card { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cmp-head-thumb { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid #E5EDE8; }
.cmp-thumb-placeholder { width: 72px; height: 72px; border-radius: 50%; background: #D5E8DC; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.4rem; color: #1E5C3A; }
.cmp-head-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: #142A1C; }
.cmp-head-mid { color: #CCC; font-size: 0.75rem; }

.cmp-table { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.cmp-row { display: grid; grid-template-columns: 1fr 130px 1fr; gap: 8px; align-items: center; }
.cmp-bar-wrap { height: 8px; background: #EDF3EF; border-radius: 999px; overflow: hidden; }
.cmp-bar-left { direction: rtl; }
.cmp-bar-fill { height: 100%; border-radius: 999px; background: #A8CDB5; transition: width .5s ease; }
.cmp-bar-fill.winner { background: #1E5C3A; }
.cmp-bar-fill-b { background: #A8BAD1; }
.cmp-bar-fill-b.winner { background: #184673; }
.cmp-row-label { text-align: center; }
.cmp-row-lname { display: block; font-size: 0.78rem; font-weight: 600; color: #3A5042; }
.cmp-row-vals { font-size: 0.68rem; color: #7A9B82; }

.cmp-life-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; background: #F7FBF8; border-radius: 12px; padding: 14px 20px; margin-bottom: 20px; text-align: center; }
.cmp-life-val { font-size: 1rem; font-weight: 700; color: #142A1C; }
.cmp-life-mid { font-size: 0.75rem; color: #7A9B82; white-space: nowrap; }

.cmp-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.cmp-link-btn { display: block; text-align: center; padding: 11px 16px; border: 1.5px solid #D0DDD5; border-radius: 8px; font-size: 0.82rem; font-weight: 600; color: #3A5042; text-decoration: none; transition: border-color .15s, color .15s; }
.cmp-link-btn:hover { border-color: #1E5C3A; color: #1E5C3A; text-decoration: none; }

.cmp-share { text-align: center; }

/* Bouton "Comparer" dans les résultats du quiz */
.quiz-compare-btn { display: inline-block; padding: 12px 22px; background: #f0f5f2; color: #1E5C3A; border: 1.5px solid #c4ddc9; border-radius: 8px; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s; }
.quiz-compare-btn:hover { background: #e0ede6; border-color: #1E5C3A; text-decoration: none; color: #1E5C3A; }

@media (max-width: 768px) {
  .cmp-selectors { grid-template-columns: 1fr; }
  .cmp-vs { transform: rotate(90deg); width: fit-content; margin: 0 auto; }
  .cmp-row { grid-template-columns: 1fr 90px 1fr; }
  .cmp-hero h1 { font-size: 1.7rem; }
  .cmp-links { grid-template-columns: 1fr; }
}

/* ─── HOMEPAGE V2 ─── */

/* Section bg variante C : fond vert pâle sans bordure */
.home-section-bg { background: var(--green-pale); border-top: none; }
.home-section-white { background: var(--white); }

/* Hero search V2 : pill shape */
.hero-search {
  align-items: center; border-radius: 999px;
  padding: 6px 6px 6px 22px; max-width: 490px;
  margin: 0 auto 16px; gap: 8px; overflow: visible;
}
.hero-search input {
  padding: 0; background: transparent;
}
.hero-search button {
  padding: 10px 22px; border-radius: 999px;
  font-size: 0.85rem; white-space: nowrap;
}

/* Hero V2 : H1 eyebrow + display slogan */
.home-hero h1.hero-eyebrow-v2 {
  font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55); margin-bottom: 18px; line-height: 1;
}
.hero-display {
  font-family: 'Fraunces', serif; font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1.06;
  color: white; margin-bottom: 16px;
}
.hero-display em { font-style: italic; color: #7EC8A0; }
.hero-quick {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 7px; margin-top: 14px; font-size: 0.79rem;
}
.hero-quick-label { color: rgba(255,255,255,0.35); }
.hero-quick a {
  color: rgba(255,255,255,0.65); border: 1px solid rgba(255,255,255,0.18);
  padding: 4px 13px; border-radius: 999px; text-decoration: none; transition: all 0.15s;
}
.hero-quick a:hover { background: rgba(255,255,255,0.12); color: white; text-decoration: none; }

/* Section header avec lien à droite */
.section-top .section-heading-plain {
  font-family: 'Fraunces', serif; font-size: 1.7rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text);
}
.section-top-link {
  font-size: 0.83rem; font-weight: 600; color: var(--green); text-decoration: none;
}
.section-top-link:hover { text-decoration: underline; }

/* ─── BREEDS GRID ─── */
.breeds-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.breed-card {
  border: 1.5px solid var(--border); border-radius: 16px; overflow: hidden;
  background: white; transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none; display: flex; flex-direction: column;
}
.breed-card:hover {
  box-shadow: 0 6px 24px rgba(30,92,58,0.12); transform: translateY(-2px);
  text-decoration: none; border-color: var(--green);
}
.breed-photo {
  height: 148px; background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; overflow: hidden;
}
.breed-photo img { width: 100%; height: 100%; object-fit: cover; }
.breed-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.breed-name {
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 0.97rem;
  color: var(--text); margin-bottom: 8px;
}
.breed-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.breed-chip {
  font-size: 0.68rem; font-weight: 600; color: var(--green);
  background: var(--green-light); padding: 3px 9px; border-radius: 999px;
}
.breed-link-label {
  font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-top: auto;
}
.breed-card:hover .breed-link-label { color: var(--green); }

/* ─── SITUATIONS GRID ─── */
.situations-grid-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sit-card {
  display: flex; flex-direction: column; gap: 14px;
  border: 1.5px solid var(--border); border-radius: 16px; padding: 22px 24px;
  background: white; transition: box-shadow 0.2s, transform 0.2s; text-decoration: none;
}
.sit-card:hover {
  border-color: var(--green); box-shadow: 0 6px 24px rgba(30,92,58,0.1);
  transform: translateY(-2px); text-decoration: none;
}
.sit-top { display: flex; align-items: center; gap: 13px; justify-content: space-between; }
.sit-top::after { content: '→'; color: var(--muted); font-size: 0.9rem; flex-shrink: 0; }
.sit-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; flex-shrink: 0;
}
.sit-title {
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 1rem;
  color: var(--text); line-height: 1.2; flex: 1;
}
.sit-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.5; }

/* ─── QUIZ BLOCK V2 ─── */
.quiz-block-v2 {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; background: var(--green); border-radius: 20px;
  padding: 32px 40px; flex-wrap: wrap;
}
.quiz-block-v2-left { display: flex; align-items: flex-start; gap: 20px; flex: 1; }
.quiz-block-v2-emoji { font-size: 2.2rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.quiz-block-v2-title {
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.15rem;
  color: white; margin-bottom: 6px;
}
.quiz-block-v2-desc { font-size: 0.87rem; color: rgba(255,255,255,0.72); line-height: 1.55; max-width: 520px; }
.quiz-block-v2-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #D4620A; color: white; padding: 13px 28px;
  border-radius: 999px; font-size: 0.9rem; font-weight: 700;
  white-space: nowrap; transition: background 0.15s; flex-shrink: 0;
  text-decoration: none;
}
.quiz-block-v2-cta:hover { background: #b8510a; text-decoration: none; color: white; }

/* Responsive V2 */
@media (max-width: 1024px) {
  .breeds-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .breeds-grid { grid-template-columns: repeat(2, 1fr); }
  .situations-grid-v2 { grid-template-columns: repeat(2, 1fr); }
  .quiz-block-v2 { padding: 24px 24px; }
  .quiz-block-v2-cta { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .situations-grid-v2 { grid-template-columns: 1fr; }
}

/* ─── GRILLE ARTICLES THÈME ─── */
.topic-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.topic-article-card {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  background: white;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.topic-article-card:hover {
  border-color: var(--green);
  box-shadow: 0 6px 20px rgba(30,92,58,0.1);
  transform: translateY(-2px);
  text-decoration: none;
}
.topic-article-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 10px;
}
.topic-article-card:hover .topic-article-title { color: var(--green); }
.topic-article-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: auto;
}
@media (max-width: 768px) {
  .topic-articles-grid { grid-template-columns: 1fr; }
}

/* ─── SECTION SAISONNIÈRE ─── */
.season-badge {
  display: inline-block;
  background: var(--amber-light);
  border: 1px solid #E8D8B0;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber);
}
.season-section-heading {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 10px;
}
.season-thumb-placeholder {
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
}
.season-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.season-card {
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: white;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.season-card:hover {
  box-shadow: 0 6px 24px rgba(30,92,58,0.12);
  transform: translateY(-2px);
  border-color: var(--green);
  text-decoration: none;
}
.season-thumb {
  height: 180px;
  overflow: hidden;
  background: var(--green-light);
}
.season-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.season-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.season-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}
.season-card:hover .season-title { color: var(--green); }
.season-excerpt {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 768px) {
  .season-cards-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ─── PAGE CATÉGORIE SAISONNIÈRE ─── */
.seasonal-hero { padding: 56px 0 48px; border-bottom: 1px solid rgba(0,0,0,0.07); }
.seasonal-hero-inner { }
.seasonal-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--green); margin-bottom: 14px;
}
.seasonal-hero-title {
  font-family: 'Fraunces', serif; font-size: 2.8rem; font-weight: 900;
  color: var(--dark); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px;
}
.seasonal-hero-title em { font-style: italic; color: var(--green); }
.seasonal-hero-lead { font-size: 1.05rem; color: var(--muted); line-height: 1.65; max-width: 580px; margin-bottom: 16px; }
.seasonal-hero-meta { font-size: 0.78rem; color: var(--muted); }

.seasonal-body { padding: 48px 0 56px; }
.seasonal-articles { display: flex; flex-direction: column; gap: 2px; margin-bottom: 40px; }
.seasonal-card-row {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 22px 24px; background: white; border: 1.5px solid var(--border);
  border-radius: 14px; margin-bottom: 8px; text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}
.seasonal-card-row:hover {
  border-color: var(--green); box-shadow: 0 6px 24px rgba(30,92,58,0.1);
  transform: translateY(-2px); text-decoration: none;
}
.seasonal-card-num {
  font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 900;
  color: var(--border); line-height: 1; min-width: 36px; padding-top: 2px;
}
.seasonal-card-row:hover .seasonal-card-num { color: var(--green-mid); }
.seasonal-card-body { flex: 1; }
.seasonal-card-title {
  font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 700;
  color: var(--text); line-height: 1.25; margin-bottom: 6px;
}
.seasonal-card-row:hover .seasonal-card-title { color: var(--green); }
.seasonal-card-excerpt { font-size: 0.88rem; color: var(--muted); line-height: 1.55; margin-bottom: 8px; }
.seasonal-card-meta { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.seasonal-card-arrow { font-size: 1.1rem; color: var(--border); align-self: center; transition: color 0.15s, transform 0.15s; }
.seasonal-card-row:hover .seasonal-card-arrow { color: var(--green); transform: translateX(4px); }

.seasonal-guide-cta {
  display: flex; align-items: center; gap: 20px;
  background: var(--green-light); border: 1.5px solid #c2dfd0;
  border-radius: 16px; padding: 24px 28px;
}
.seasonal-guide-cta-emoji { font-size: 2.4rem; flex-shrink: 0; }
.seasonal-guide-cta-body { flex: 1; }
.seasonal-guide-cta-title { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.05rem; color: var(--dark); margin-bottom: 4px; }
.seasonal-guide-cta-body p { font-size: 0.88rem; color: var(--muted); margin: 0; }
.seasonal-guide-cta-btn {
  flex-shrink: 0; display: inline-block; background: var(--green); color: white;
  font-size: 0.9rem; font-weight: 600; padding: 12px 20px; border-radius: 10px;
  text-decoration: none; white-space: nowrap; transition: background 0.15s;
}
.seasonal-guide-cta-btn:hover { background: var(--dark); text-decoration: none; color: white; }

.seasonal-nav-section { background: var(--bg); border-top: 1px solid var(--border); padding: 28px 0; }
.seasonal-nav-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin-bottom: 12px; }
.seasonal-nav-list { display: flex; flex-wrap: wrap; gap: 8px; }
.seasonal-nav-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 500; color: var(--text);
  background: white; border: 1.5px solid var(--border);
  border-radius: 999px; padding: 7px 16px; text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.seasonal-nav-pill:hover { border-color: var(--green); color: var(--green); text-decoration: none; }

@media (max-width: 768px) {
  .seasonal-hero { padding: 40px 0 32px; }
  .seasonal-hero-title { font-size: 2rem; }
  .seasonal-card-row { gap: 14px; padding: 18px 16px; }
  .seasonal-card-num { font-size: 1.2rem; min-width: 28px; }
  .seasonal-guide-cta { flex-direction: column; text-align: center; }
  .seasonal-guide-cta-btn { width: 100%; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE SANTÉ — category-sante.php
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero ── */
.sante-hero {
  background: linear-gradient(160deg, #7BBFA0 0%, #9DCFB4 40%, #BDE0CB 100%);
  padding: 60px 32px 52px;
  text-align: center;
  position: relative;
}
.sante-hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.sante-hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.sante-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: #1A2E1F; color: #7EC8A0;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 12px; border-radius: 5px; margin-bottom: 20px;
}
.sante-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: #1A2E1F;
  letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 14px;
}
.sante-hero h1 em { font-style: italic; color: #1A5C35; }
.sante-hero-lead {
  font-size: 1rem; color: rgba(26,46,31,0.65);
  max-width: 500px; margin: 0 auto 30px; line-height: 1.6;
}

/* ── Search ── */
.sante-search-wrap { position: relative; max-width: 580px; margin: 0 auto; }
.sante-search {
  display: flex; background: var(--white);
  border: 2px solid rgba(30,92,58,0.2); border-radius: 12px;
  box-shadow: 0 6px 24px rgba(26,46,31,0.15); transition: border-color .15s;
}
.sante-search:focus-within { border-color: var(--green); }
.sante-search-icon { display: flex; align-items: center; padding: 0 14px; font-size: 1rem; color: var(--muted); flex-shrink: 0; }
.sante-search input {
  flex: 1; border: none; outline: none;
  padding: 15px 0; font-family: 'Inter', sans-serif; font-size: 0.95rem; color: var(--text); background: transparent;
}
.sante-search input::placeholder { color: #aaa; }
.sante-search button {
  background: var(--green); color: #fff; border: none;
  padding: 0 24px; font-family: 'Inter', sans-serif;
  font-size: 0.88rem; font-weight: 600; cursor: pointer; border-radius: 0 10px 10px 0; flex-shrink: 0;
}
.sante-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 500; overflow: hidden; text-align: left;
}
.sante-dropdown.open { display: block; }
.sdd-label {
  padding: 8px 14px 4px; font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted);
  border-top: 1px solid var(--border);
}
.sdd-label:first-child { border-top: none; }
.sdd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer; transition: background .1s; text-decoration: none; color: var(--text);
}
.sdd-item:hover { background: var(--green-hover); text-decoration: none; color: var(--text); }
.sdd-icon { font-size: 0.9rem; flex-shrink: 0; }
.sdd-text { font-size: 0.85rem; flex: 1; }
.sdd-text mark { background: #FFF3A3; color: #1a1a1a; border-radius: 2px; font-weight: 700; font-style: normal; }
.sdd-empty { padding: 16px 14px; font-size: 0.85rem; color: var(--muted); text-align: center; }
.sdd-see-all { display: block; padding: 10px 14px; font-size: 0.82rem; color: var(--green); font-weight: 600; border-top: 1px solid var(--border); text-decoration: none; }
.sdd-see-all:hover { background: var(--bg); }

/* ── Intro texte SEO ── */
.sante-intro { background: var(--white); border-bottom: 1px solid var(--border); padding: 32px; }
.sante-intro-inner { max-width: 1200px; margin: 0 auto; }
.sante-intro p { font-size: 0.95rem; color: var(--muted); line-height: 1.75; max-width: 800px; }
.sante-intro strong { color: var(--text); font-weight: 600; }

/* ── Thèmes ── */
.sante-themes { padding: 48px 32px 0; }
.sante-wrap { max-width: 1200px; margin: 0 auto; }
.sante-section-eyebrow { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green); margin-bottom: 8px; }
.sante-section-title { font-size: 1.4rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.sante-section-title em { font-style: italic; color: var(--green); }
.sante-themes-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 24px; }
.sante-theme-card {
  background: var(--white); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 20px 12px 18px; text-align: center; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.sante-theme-card:hover { border-color: var(--green); box-shadow: 0 6px 20px rgba(30,92,58,0.1); transform: translateY(-3px); text-decoration: none; }
.sante-theme-card--urgent { border-color: #F5C2BB; background: #FFF5F4; }
.sante-theme-card--urgent:hover { border-color: #e05a4a; box-shadow: 0 6px 20px rgba(200,60,40,0.1); }
.sante-theme-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.sante-theme-name { font-family: 'Fraunces', serif; font-size: 0.92rem; font-weight: 700; color: var(--text); }
.sante-theme-desc { font-size: 0.68rem; color: var(--muted); line-height: 1.3; }

/* ── Layout body ── */
.sante-body { padding: 48px 32px 64px; }
.sante-layout { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.sante-main { display: flex; flex-direction: column; gap: 48px; }
.sante-section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.sante-section-link { font-size: 0.82rem; color: var(--green); font-weight: 600; }
.sante-section-link:hover { text-decoration: underline; }
.sante-saison-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--green-light); color: var(--green);
  font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 5px; margin-bottom: 8px;
}

/* ── Articles grid ── */
.sante-articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.sante-article-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; text-decoration: none; display: block;
  transition: box-shadow .15s, transform .15s;
}
.sante-article-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.07); transform: translateY(-2px); text-decoration: none; }
.sante-article-topic { font-size: 0.68rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.sante-article-title { font-family: 'Fraunces', serif; font-size: 0.95rem; font-weight: 700; color: var(--text); line-height: 1.25; margin-bottom: 8px; }
.sante-article-excerpt { font-size: 0.76rem; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.sante-article-meta { display: flex; align-items: center; gap: 8px; font-size: 0.68rem; color: var(--muted); }
.sante-article-race { background: var(--green-light); color: var(--green); padding: 2px 8px; border-radius: 4px; font-weight: 600; }

/* ── Race grid ── */
.sante-race-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sante-race-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
  transition: box-shadow .15s, transform .15s;
}
.sante-race-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.07); transform: translateY(-2px); text-decoration: none; }
.sante-race-img {
  height: 80px; background: var(--green-light);
  display: flex; align-items: center; justify-content: center; font-size: 2.2rem; overflow: hidden;
}
.sante-race-img img { width: 100%; height: 100%; object-fit: cover; }
.sante-race-body { padding: 12px 14px; }
.sante-race-name { font-family: 'Fraunces', serif; font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.sante-race-articles { display: flex; flex-direction: column; gap: 3px; }
.sante-race-link { font-size: 0.68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sante-race-link::before { content: '→ '; color: var(--green); font-weight: 700; }

/* ── FAQ ── */
.sante-faq-list { display: flex; flex-direction: column; gap: 8px; }
.sante-faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.sante-faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 20px; cursor: pointer; font-family: 'Fraunces', serif;
  font-size: 0.95rem; font-weight: 700; color: var(--text); list-style: none;
}
.sante-faq-q::-webkit-details-marker { display: none; }
.sante-faq-q::after { content: '+'; font-family: 'Inter', sans-serif; font-size: 1.2rem; font-weight: 400; color: var(--green); flex-shrink: 0; }
details[open] .sante-faq-q::after { content: '−'; }
.sante-faq-a { padding: 12px 20px 16px; font-size: 0.85rem; color: var(--muted); line-height: 1.7; border-top: 1px solid var(--border); }

/* ── Quiz discret ── */
.sante-quiz-subtle {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 20px; border: 1.5px solid var(--border); border-radius: 10px;
  background: var(--white); text-decoration: none; color: var(--muted); font-size: 0.82rem;
  transition: border-color .15s, color .15s;
}
.sante-quiz-subtle:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.sante-quiz-subtle strong { color: var(--text); font-weight: 600; }

/* ── Sidebar ── */
.sante-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 88px; }
.sante-sb-box { background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.sante-sb-title { padding: 14px 18px 10px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border-bottom: 1px solid var(--border); }

/* Urgence sidebar */
.sante-sb-urgence { border-color: #F5C6C2; border-left: 4px solid #C0392B; }
.sante-sb-urgence .sante-sb-title { color: #C0392B; border-bottom-color: #F5C6C2; background: #FFF0EE; }
.sante-urgence-list { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.sante-urgence-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; font-size: 0.78rem; font-weight: 500; color: var(--text);
  text-decoration: none; transition: background .1s, border-color .1s;
}
.sante-urgence-pill:hover { background: #FFF0EE; border-color: #F5C6C2; color: #C0392B; text-decoration: none; }
.sante-urgence-icon { font-size: 1rem; flex-shrink: 0; }
.sante-urgence-all {
  display: block; text-align: center; padding: 10px;
  font-size: 0.75rem; font-weight: 700; color: #C0392B;
  border-top: 1px solid #F5C6C2; background: #FFF0EE; text-decoration: none;
}
.sante-urgence-all:hover { background: #fde8e5; text-decoration: none; color: #C0392B; }

/* Assurance sidebar */
.sante-sb-assurance { background: #1A2E1F; border-color: transparent; }
.sante-sb-assurance .sante-sb-title { color: #D4931A; border-bottom-color: rgba(212,147,26,0.2); background: transparent; }
.sante-assurance-body { padding: 14px 18px 18px; }
.sante-assurance-title { font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; line-height: 1.3; }
.sante-assurance-title em { font-style: italic; color: #7EC8A0; }
.sante-assurance-sub { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-bottom: 14px; line-height: 1.5; }
.sante-assurance-btn {
  display: block; text-align: center;
  background: #D4931A; color: #fff; font-size: 0.82rem; font-weight: 700;
  padding: 11px; border-radius: 8px; text-decoration: none;
}
.sante-assurance-btn:hover { background: #b87d14; text-decoration: none; color: #fff; }
.sante-assurance-note { font-size: 0.65rem; color: rgba(255,255,255,0.3); text-align: center; margin-top: 8px; }

/* ── Mobile ── */
@media (max-width: 900px) {
  .sante-layout { grid-template-columns: 1fr; }
  .sante-sidebar { position: static; }
  .sante-themes-grid { grid-template-columns: repeat(3, 1fr); }
  .sante-articles-grid { grid-template-columns: 1fr; }
  .sante-race-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sante-hero { padding: 40px 20px 36px; }
  .sante-themes-grid { grid-template-columns: repeat(2, 1fr); }
  .sante-body { padding: 32px 20px 48px; }
}

/* ─── LAYOUT PARTAGÉ (cluster + race) ─── */

.bc { background: var(--white); border-bottom: 1px solid var(--border); padding: 8px 0; }
.bc-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; font-size: 0.75rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.bc-inner a { color: var(--muted); }
.bc-inner a:hover { color: var(--green); text-decoration: none; }

.race-body { max-width: 1200px; margin: 0 auto; padding: 40px 32px; display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; }
.race-sidebar { order: 2; position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.race-main { order: 1; display: flex; flex-direction: column; gap: 40px; }

.sb-box { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 18px 16px; }
.sb-label { font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin-bottom: 12px; }
.sb-stats { display: flex; flex-direction: column; }
.sb-stat { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.sb-stat:last-child { border-bottom: none; padding-bottom: 0; }
.sb-stat:first-child { padding-top: 0; }
.sb-stat-l { font-size: 0.78rem; color: var(--muted); }
.sb-stat-n { font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 900; color: var(--green); white-space: nowrap; }
.sb-theme-list { display: flex; flex-direction: column; gap: 6px; }
.sb-theme { display: flex; align-items: center; gap: 8px; font-size: 0.77rem; color: var(--text); padding: 6px 8px; border-radius: 8px; background: var(--bg); text-decoration: none; }
.sb-theme:hover { background: var(--green-hover); color: var(--green); text-decoration: none; }
.sb-theme-icon { font-size: 0.9rem; }

.s-eyebrow { font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--green); margin-bottom: 8px; }
.main-section-title { font-family: 'Fraunces', serif; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 20px; }
.main-section-title em { font-style: italic; color: var(--green); }

.guides-list { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--white); }
.guide-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); text-decoration: none; transition: background 0.12s; }
.guide-row:nth-child(even) { border-right: none; }
.guide-row:nth-last-child(-n+2) { border-bottom: none; }
.guide-row:hover { background: var(--bg); text-decoration: none; }
.gr-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.gr-title { font-size: 0.83rem; font-weight: 500; color: var(--text); line-height: 1.35; flex: 1; min-width: 0; }
.gr-arrow { font-size: 0.78rem; color: var(--green); opacity: 0.4; flex-shrink: 0; transition: opacity 0.12s; }
.guide-row:hover .gr-arrow { opacity: 1; }

@media (max-width: 900px) {
  .bc-inner { padding: 0 20px; }
  .race-body { grid-template-columns: 1fr; padding: 24px 20px; gap: 32px; }
  .race-sidebar { order: 2; position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .race-main { order: 1; gap: 32px; }
  .guides-list { grid-template-columns: 1fr; }
  .guide-row { border-right: none !important; }
  .guide-row:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .guide-row:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  .race-sidebar { grid-template-columns: 1fr; }
}

/* Cluster layout */

.cluster-intro { margin-bottom: 2.5rem; }
.cluster-intro p { margin-bottom: 1rem; line-height: 1.75; }

.cluster-tableau-wrap { margin: 2.5rem 0; overflow-x: auto; }
.cluster-tableau { width: 100%; border-collapse: collapse; font-size: 0.91rem; }
.cluster-tableau th {
  background: var(--green);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
.cluster-tableau td { padding: 9px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cluster-tableau tr:last-child td { border-bottom: none; }
.cluster-tableau tr:nth-child(even) td { background: var(--bg); }

.cluster-groups { margin: 2.5rem 0; }
.cluster-group { margin-bottom: 1.75rem; }
.cluster-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green);
  margin-bottom: 8px;
}
.cluster-group-icon { font-size: 1.15rem; }
.cluster-group-label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cluster-article-list { display: flex; flex-direction: column; gap: 2px; }

.cluster-faq { margin-top: 2.5rem; }

.cluster-urgence-text {
  font-size: 0.87rem;
  color: var(--dark);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 600px) {
  .cluster-group-label { font-size: 0.82rem; letter-spacing: 0.03em; }
  .cluster-article-list { gap: 4px; }
  .cluster-tableau { font-size: 0.84rem; }
  .cluster-tableau th, .cluster-tableau td { padding: 7px 10px; }
}

/* ═══════════════════════════════════════════════════════
   HUB TOPIC — /races/{race}/{topic}/
═══════════════════════════════════════════════════════ */
.hub-hero {
  background: var(--dark);
  color: #fff;
  padding: 48px 0 40px;
}
.hub-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.hub-hero-content h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin: 12px 0 0;
  line-height: 1.2;
}
.hub-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 64px;
}
.hub-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}
.hub-sidebar { position: sticky; top: 88px; }
.hub-sb-box { }
.hub-sb-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 12px;
}
.hub-sb-nav-link {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  transition: background .15s;
}
.hub-sb-nav-link:hover, .hub-sb-nav-link.active {
  background: var(--green-hover);
  color: var(--green);
}
.hub-sb-assurance-text { font-size: 0.85rem; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.hub-sb-assurance-link {
  display: block;
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.hub-sb-assurance-link:hover { opacity: .88; }
.hub-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--dark);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #E8E4DC;
}
.hub-intro p { margin: 0 0 1em; }
.hub-intro p:last-child { margin: 0; }
/* Liste verticale des sous-articles hub */
.hub-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 48px;
  border: 1.5px solid #E8E4DC;
  border-radius: 14px;
  overflow: hidden;
}
.hub-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  text-decoration: none;
  color: var(--dark);
  background: #fff;
  border-bottom: 1px solid #E8E4DC;
  transition: background .15s;
}
.hub-list-item:last-child { border-bottom: none; }
.hub-list-item:hover { background: var(--green-hover); text-decoration: none; }
.hub-list-body { flex: 1; }
.hub-list-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green);
  margin-bottom: 4px;
}
.hub-list-title {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.3;
  color: var(--dark);
}
.hub-list-desc { font-size: 0.83rem; color: #888; line-height: 1.45; display: block; }
.hub-list-arrow { font-size: 1.2rem; color: var(--green); flex-shrink: 0; }
.hub-back {
  font-size: 0.9rem;
  border-top: 1px solid #E8E4DC;
  padding-top: 24px;
}
.hub-back a { color: var(--green); text-decoration: none; }
.hub-back a:hover { text-decoration: underline; }

.hub-content {
  margin-top: 48px;
  margin-bottom: 40px;
}
.hub-content .hub-intro { font-size: 1.05rem; line-height: 1.75; margin-bottom: 32px; }
.hub-content .hub-intro p { margin: 0 0 .75em; }

/* Intro SEO — réponse immédiate au H1, avant la liste */
.hub-intro-lead { margin-bottom: 28px; }
.hub-intro-lead .hub-intro { font-size: 1.05rem; line-height: 1.75; color: var(--text); margin: 0; border-bottom: none; padding-bottom: 0; }
.hub-intro-lead .hub-intro p { margin: 0; }

/* Fact strip */
.hub-facts {
  display: flex;
  gap: 0;
  border: 1.5px solid #E8E4DC;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 40px;
}
.hub-fact {
  flex: 1;
  padding: 20px 24px;
  border-right: 1.5px solid #E8E4DC;
  text-align: center;
}
.hub-fact:last-child { border-right: none; }
.hub-fact-n { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 700; color: var(--green); }
.hub-fact-l { font-size: 0.78rem; color: #888; margin-top: 4px; }

/* Section title */
.hub-section-title {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 16px;
}

/* Tableau prédispositions */
.hub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 40px;
}
.hub-table th {
  background: var(--dark);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: .04em;
}
.hub-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #E8E4DC;
  vertical-align: top;
}
.hub-table tr:last-child td { border-bottom: none; }
.hub-table a { color: var(--green); text-decoration: none; }
.hub-table a:hover { text-decoration: underline; }
.hub-risk {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}
.hub-risk.high { background: #FDEEEC; color: #C0392B; }
.hub-risk.mid  { background: #FDF3E0; color: #D4931A; }

/* Encart urgences */
.hub-urgences {
  background: #FFF4F3;
  border: 1.5px solid #F5C6C2;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 40px;
}
.hub-urgences-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #C0392B;
  margin-bottom: 12px;
}
.hub-urgences-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hub-urgences-list span {
  background: #fff;
  border: 1px solid #F5C6C2;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.83rem;
  color: var(--dark);
}

/* Maillage croisé */
.hub-crosslinks {
  border-top: 1px solid #E8E4DC;
  padding-top: 24px;
  margin-bottom: 0;
}
.hub-crosslinks-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #888;
  margin-bottom: 12px;
}
.hub-crosslink {
  display: block;
  font-size: 0.9rem;
  color: var(--green);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid #F0EDE6;
}
.hub-crosslink:last-child { border-bottom: none; }
.hub-crosslink:hover { text-decoration: underline; }

/* Liste principale hub */
.hub-list { margin-top: 0; }

@media (max-width: 900px) {
  .hub-layout { grid-template-columns: 1fr; }
  .hub-sidebar { display: none; }
}
@media (max-width: 640px) {
  .hub-hero { padding: 32px 0 28px; }
  .hub-body { padding: 32px 20px 48px; }
  .hub-facts { flex-direction: column; }
  .hub-fact { border-right: none; border-bottom: 1.5px solid #E8E4DC; }
  .hub-fact:last-child { border-bottom: none; }
  .hub-table { font-size: 0.82rem; }
  .hub-table th, .hub-table td { padding: 8px 10px; }
}

/* ─── SYSTEME ASSURANCE (amber) ──────────────────────────── */

.badge-assurance {
  display: inline-block;
  background: var(--amber-light);
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.btn-assurance {
  display: inline-block;
  background: var(--amber);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 9px;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-assurance:hover {
  background: #b87d15;
  text-decoration: none;
  color: white;
}

/* Encadre assurance pour les hubs race et sante */
.assurance-block {
  background: var(--amber-light);
  border: 1px solid rgba(212,147,26,0.25);
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0;
}
.assurance-block-badge {
  display: inline-block;
  background: rgba(212,147,26,0.15);
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 9px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.assurance-block-title {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  margin-top: 0;
}
.assurance-block-text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
  margin-top: 0;
}

/* Sidebar quiz assurance (articles assurance) */
.sb-assurance-quiz {
  background: var(--amber-light);
  border: 1px solid rgba(212,147,26,0.2);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.sb-assurance-quiz-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.sb-assurance-quiz-text {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

/* ─── RACE SEARCH (hub assurance) ─── */
.assurance-race-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 20px;
  transition: border-color 0.15s;
}
.assurance-race-search:focus-within {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(212,147,26,0.1);
}
.assurance-race-search-icon {
  color: var(--muted);
  font-size: 1rem;
  flex-shrink: 0;
}
.assurance-race-search input {
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: transparent;
  width: 100%;
}
.assurance-race-search input::placeholder {
  color: var(--muted);
}
/* Race visitée récemment : remontée en premier et légèrement mise en avant */
.assurance-race-card.race-card-last-seen {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(212,147,26,0.18);
}
.assurance-race-card.race-card-last-seen::after {
  content: 'Votre race';
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--amber);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .assurance-block {
    padding: 18px 20px;
  }
  .btn-assurance {
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .article-hero-inner,
  .hub-hero-inner,
  .hub-themes-inner,
  .article-more-inner,
  .hub-similar-inner { padding: 0 20px; }

  .article-more-grid { grid-template-columns: repeat(2, 1fr); }

  .home-hero { padding: 40px 20px 64px; }
  .header-inner { padding: 0 20px; }
}

/* ── Maillage cross-hubs ────────────────────────────────────────────────────── */
.hub-related {
    background: #f9f8f6;
    padding: 48px 0;
    border-top: 1px solid #e8e8e3;
}
.hub-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 24px;
}
.hub-related-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8e8e3;
    border-radius: 12px;
    padding: 18px 16px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.hub-related-card:hover {
    border-color: #2d7a4f;
    box-shadow: 0 2px 8px rgba(45,122,79,0.08);
}
.hub-related-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.hub-related-body { flex: 1; }
.hub-related-name {
    font-weight: 600;
    font-size: 0.93rem;
    color: #1a1a1a;
    margin-bottom: 4px;
}
.hub-related-desc {
    font-size: 0.81rem;
    color: #666;
    line-height: 1.5;
}
.hub-related-arrow {
    color: #2d7a4f;
    font-size: 1rem;
    flex-shrink: 0;
    align-self: center;
}
@media (max-width: 640px) {
    .hub-related-grid { grid-template-columns: 1fr; }
}
