/* ==========================================
   OEUVRAY CUSTOM THEME — MAIN STYLES
   ========================================== */

/* --- Variables --- */
:root {
  --accent:       #DDF55D;
  --accent-dark:  #b8d63a;
  --primary:      #111827;
  --text:         #374151;
  --muted:        #6B7280;
  --bg:           #FFFFFF;
  --bg-alt:       #F9FAFB;
  --border:       #E5E7EB;
  --link:         #1D4ED8;
  --link-hover:   #1e40af;
  --radius:       8px;
  --shadow:       0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --max-w:        1200px;
  --content-w:    760px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: .5em;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.875rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1.25em; }
ul, ol { padding-left: 1.5em; margin-bottom: 1.25em; }
li { margin-bottom: .35em; }

blockquote {
  border-left: 4px solid var(--accent);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--muted);
}

code, pre {
  font-family: 'Courier New', Courier, monospace;
  font-size: .9em;
  background: var(--bg-alt);
  border-radius: 4px;
}
code { padding: .15em .4em; }
pre { padding: 1.2em; overflow-x: auto; margin-bottom: 1.5em; border: 1px solid var(--border); }

table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; font-size: .9em; }
th, td { padding: .65em 1em; border: 1px solid var(--border); text-align: left; }
th { background: var(--bg-alt); font-weight: 600; color: var(--primary); }
tr:hover td { background: var(--bg-alt); }

hr { border: none; border-top: 1px solid var(--border); margin: 2.5em 0; }

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }

/* ==========================================
   HEADER
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.1); }

.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 8px;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none !important;
  margin-right: 24px;
  color: #E11D48; /* rouge — currentColor pour le SVG */
}
.site-logo img { height: 36px; width: auto; }
.site-logo svg { height: 36px; width: auto; color: inherit; }
.site-logo svg text { fill: currentColor; }

/* Wordmark logo — red on white, white on dark */
.logo-wordmark {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -.04em;
  color: #E11D48;
  font-family: var(--font);
  line-height: 1;
}
.site-logo:hover { text-decoration: none !important; opacity: .85; }
.footer-logo .site-logo,
.footer-logo { color: #fff; }
.footer-logo .logo-wordmark { color: #fff; }
.footer-logo .site-logo svg text { fill: #fff; }
.footer-logo a { text-decoration: none !important; }

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; }

.main-nav a {
  padding: 7px 13px;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: background .15s, color .15s;
  position: relative;
}
.main-nav a:hover { background: var(--bg-alt); color: var(--primary); text-decoration: none; }
.main-nav a.current-menu-item {
  color: var(--link);
  background: rgba(29,78,216,.07);
}
.main-nav a.current-menu-item::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--link);
  border-radius: 2px 2px 0 0;
}

/* Header right side actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Search toggle icon button */
.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  flex-shrink: 0;
}
.header-icon-btn svg { width: 17px; height: 17px; }
.header-icon-btn:hover { background: var(--bg-alt); border-color: var(--primary); color: var(--primary); }
.header-icon-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--link);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .875rem;
  white-space: nowrap;
  transition: background .15s, transform .1s, box-shadow .15s;
  text-decoration: none !important;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(29,78,216,.3);
}
.btn-cta:hover { background: var(--link-hover); transform: translateY(-1px); box-shadow: 0 3px 8px rgba(29,78,216,.35); }

/* Search bar (slides below header) */
.header-search-bar {
  border-top: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
  max-height: 0;
  transition: max-height .25s ease, padding .25s ease;
  padding: 0;
}
.header-search-bar.is-open {
  max-height: 72px;
  padding: 12px 0;
}
.header-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.header-search-form .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}
.header-search-input {
  flex: 1;
  padding: 11px 14px 11px 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-alt);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  min-width: 0;
}
.header-search-input:focus {
  border-color: var(--link);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}
.header-search-submit {
  background: var(--link);
  color: #fff;
  border: none;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.header-search-submit:hover { background: var(--link-hover); }
.header-search-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color .15s, background .15s;
  flex-shrink: 0;
}
.header-search-close svg { width: 18px; height: 18px; }
.header-search-close:hover { color: var(--primary); background: var(--bg-alt); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 7px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
}
.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, width .2s ease;
  transform-origin: center;
}
.nav-toggle.is-open .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .hamburger-bar:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.is-open .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay + drawer */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 190;
  opacity: 0;
  transition: opacity .25s ease;
  backdrop-filter: blur(2px);
}
.mobile-nav-overlay.is-open { opacity: 1; }

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 88vw);
  background: #fff;
  z-index: 195;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}
.mobile-nav-drawer.is-open { transform: translateX(0); }

.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-brand {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
}
.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  color: var(--text);
}
.mobile-nav-close svg { width: 16px; height: 16px; }

.mobile-nav-list { list-style: none; padding: 12px 12px 0; margin: 0; flex: 1; }
.mobile-nav-list li { margin: 0; }
.mobile-nav-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  transition: background .15s, color .15s;
}
.mobile-nav-list a:hover,
.mobile-nav-list .current-menu-item > a { background: rgba(29,78,216,.07); color: var(--link); text-decoration: none; }

.mobile-nav-search {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.mobile-nav-search form { display: flex; gap: 8px; }
.mobile-nav-search input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: var(--font);
  background: var(--bg-alt);
  outline: none;
  min-width: 0;
}
.mobile-nav-search input:focus { border-color: var(--link); background: #fff; }
.mobile-nav-search button {
  background: var(--link);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: .9rem;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-nav-cta {
  margin: 0 20px 20px;
  display: flex;
  justify-content: center;
  padding: 13px;
  background: var(--link);
  color: #fff !important;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
}
.mobile-nav-cta:hover { background: var(--link-hover); }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav-overlay { display: block; pointer-events: none; }
  .mobile-nav-overlay.is-open { pointer-events: auto; }
}
@media (max-width: 520px) {
  .btn-cta { display: none; }
}

/* ==========================================
   HERO (page d'accueil)
   ========================================== */
.hero {
  background: var(--primary);
  padding: 64px 0 56px;
  text-align: center;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  max-width: 700px;
  margin: 0 auto .75em;
}
.hero h1 span { color: var(--accent); }
.hero p {
  color: rgba(255,255,255,.72);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 1.75em;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--primary);
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: background .15s;
}
.btn-hero:hover { background: var(--accent-dark); text-decoration: none; color: var(--primary); }
.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.35);
  padding: 11px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: border-color .15s;
}
.btn-hero-outline:hover { border-color: rgba(255,255,255,.7); text-decoration: none; color: #fff; }

/* ==========================================
   ARTICLES GRID
   ========================================== */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--border);
}
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1em;
  background: var(--accent);
  margin-right: .5em;
  vertical-align: middle;
  border-radius: 2px;
}
.section-link { font-size: .875rem; color: var(--link); font-weight: 500; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .posts-grid { grid-template-columns: 1fr; } }

/* Article Card */
.post-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.post-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-alt);
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }

.post-card-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.post-card-cat {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--link);
  margin-bottom: .5rem;
}
.post-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: .5rem;
  flex: 1;
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--link); text-decoration: none; }
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--muted);
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.post-card-meta svg { width: 14px; height: 14px; flex-shrink: 0; }
.post-card-excerpt { font-size: .9rem; color: var(--muted); margin-bottom: .75rem; line-height: 1.55; }

/* Featured post (large) */
.post-card-featured {
  grid-column: span 2;
  flex-direction: row;
}
.post-card-featured .post-card-thumb {
  width: 45%;
  flex-shrink: 0;
  aspect-ratio: auto;
}
.post-card-featured .post-card-title { font-size: 1.2rem; }
@media (max-width: 900px) {
  .post-card-featured { grid-column: span 1; flex-direction: column; }
  .post-card-featured .post-card-thumb { width: 100%; aspect-ratio: 16/9; }
}

/* ==========================================
   SINGLE POST / PAGE
   ========================================== */
.single-layout {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.post-header { margin-bottom: 2rem; }
.post-breadcrumb {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.post-breadcrumb a { color: var(--muted); }
.post-breadcrumb a:hover { color: var(--link); }
.post-breadcrumb-sep { color: var(--border); }

.post-categories { margin-bottom: .75rem; display: flex; gap: 6px; flex-wrap: wrap; }
.post-cat-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--link);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.post-cat-badge:hover { background: var(--accent); color: var(--primary); border-color: var(--accent); text-decoration: none; }

.post-title {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: .75rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .875rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.post-meta-item { display: flex; align-items: center; gap: 5px; }
.post-meta-item svg { width: 15px; height: 15px; }

.post-featured-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 16/7;
}
.post-featured-img img { width: 100%; height: 100%; object-fit: cover; }

/* Post content */
.entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
}
.entry-content h2 {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid var(--border);
}
.entry-content h3 { margin-top: 1.5em; }
.entry-content a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--link-hover); }
.entry-content img { border-radius: var(--radius); margin: 1.5em 0; }

/* Table of contents */
.toc-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.toc-box-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc-box ol { margin: 0; padding-left: 1.25rem; }
.toc-box li { font-size: .9rem; margin-bottom: .3rem; }
.toc-box a { color: var(--link); text-decoration: none; }
.toc-box a:hover { text-decoration: underline; }

/* Author box */
.author-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 3rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.author-avatar { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; background: var(--border); overflow: hidden; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-weight: 700; color: var(--primary); margin-bottom: .25rem; }
.author-bio { font-size: .875rem; color: var(--muted); margin: 0; }

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.nav-post {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  transition: border-color .15s;
}
.nav-post:hover { border-color: var(--link); text-decoration: none; }
.nav-post-dir { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .3rem; }
.nav-post-title { font-size: .9rem; font-weight: 600; color: var(--primary); }
.nav-post.next { text-align: right; }
@media (max-width: 560px) { .post-navigation { grid-template-columns: 1fr; } }

/* ==========================================
   SIDEBAR & LAYOUT (archive, search)
   ========================================== */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px 60px;
}
@media (max-width: 960px) { .content-layout { grid-template-columns: 1fr; } }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--accent);
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: .4rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text); }
.widget ul li a:hover { color: var(--link); text-decoration: none; }
.widget-search { display: flex; gap: 8px; }
.widget-search input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: var(--font);
}
.widget-search button {
  background: var(--accent);
  color: var(--primary);
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
}
.widget-search button:hover { background: var(--accent-dark); }

/* Archive list */
.archive-post-list { display: flex; flex-direction: column; gap: 20px; }
.archive-post-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow .2s;
}
.archive-post-item:hover { box-shadow: var(--shadow-md); }
.archive-post-thumb {
  width: 120px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-alt);
}
.archive-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.archive-post-content { flex: 1; }
.archive-post-cat { font-size: .75rem; font-weight: 600; color: var(--link); text-transform: uppercase; letter-spacing: .05em; }
.archive-post-title { font-size: 1rem; font-weight: 700; color: var(--primary); margin: .3rem 0 .5rem; line-height: 1.35; }
.archive-post-title a { color: inherit; }
.archive-post-title a:hover { color: var(--link); text-decoration: none; }
.archive-post-meta { font-size: .8rem; color: var(--muted); }
@media (max-width: 480px) {
  .archive-post-item { flex-direction: column; }
  .archive-post-thumb { width: 100%; height: 160px; }
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: all .15s;
}
.pagination .page-numbers:hover { background: var(--bg-alt); text-decoration: none; }
.pagination .page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .page-numbers.dots { border: none; background: none; cursor: default; }
.pagination .next, .pagination .prev { width: auto; padding: 0 14px; gap: 6px; }

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.7);
  padding: 56px 0 0;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo { margin-bottom: 1rem; }
.footer-logo img,
.footer-logo svg { height: 28px; width: auto; filter: brightness(0) invert(1); }
.footer-logo-text { color: #fff; font-size: 1.2rem; font-weight: 800; }

.footer-desc { font-size: .9rem; line-height: 1.65; margin-bottom: 1.25rem; }
.footer-socials { display: flex; gap: 10px; }
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.75);
  transition: background .15s;
  font-size: .9rem;
}
.footer-social-link:hover { background: var(--accent); color: var(--primary); text-decoration: none; }
.footer-social-link svg { width: 16px; height: 16px; }

.footer-col-title {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1rem;
}
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: .5rem; }
.footer-nav a { color: rgba(255,255,255,.65); font-size: .9rem; transition: color .15s; }
.footer-nav a:hover { color: var(--accent); text-decoration: none; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; margin-bottom: .65rem; }
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--accent); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--accent); text-decoration: none; }

/* ==========================================
   MISC
   ========================================== */
/* Accent bar on sections */
.section-pad { padding: 40px 0; }
.section-pad-lg { padding: 60px 0; }

/* Search form */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
}
.search-form input[type="search"]:focus { border-color: var(--link); }
.search-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
}
.search-form button:hover { background: var(--link); }

/* 404 */
.error-404 { text-align: center; padding: 80px 24px; }
.error-404 .error-code { font-size: 6rem; font-weight: 900; color: var(--accent); line-height: 1; }
.error-404 h1 { font-size: 2rem; margin: .5rem 0 1rem; }
.error-404 p { color: var(--muted); max-width: 480px; margin: 0 auto 2rem; }

/* Page header (archives) */
.page-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  margin-bottom: 32px;
}
.page-header-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .5rem; }
.page-header-desc { color: var(--muted); font-size: 1rem; }

/* No results */
.no-results { text-align: center; padding: 60px 24px; }
.no-results p { color: var(--muted); }

/* Skip link */
.skip-link {
  position: absolute;
  top: -999px;
  left: 6px;
  background: var(--accent);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  z-index: 999;
}
.skip-link:focus { top: 0; }

/* Gutenberg blocks compat */
.entry-content .wp-block-image { margin: 1.5em 0; }
.entry-content .wp-block-quote { border-left: 4px solid var(--accent); padding: 1em 1.5em; background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }
.entry-content .wp-block-table table { width: 100%; }
.entry-content .wp-block-cover { border-radius: var(--radius); overflow: hidden; }
.entry-content figure.wp-block-image img { border-radius: var(--radius); }
.entry-content .wp-block-separator { border-color: var(--border); }
.entry-content .wp-block-button__link {
  background: var(--link);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
}
.entry-content .wp-block-button__link:hover { background: var(--link-hover); text-decoration: none; }

/* Table overflow in articles */
.entry-content table { display: block; overflow-x: auto; max-width: 100%; }
.entry-content pre { max-width: 100%; overflow-x: auto; }

/* Alignments */
@media (min-width: 820px) {
  .entry-content .alignwide { margin-left: -80px; margin-right: -80px; max-width: none; }
  .entry-content .alignfull { margin-left: -24px; margin-right: -24px; max-width: calc(100% + 48px); }
}

/* Smooth transitions */
.post-card, .archive-post-item, .nav-post { transition: box-shadow .2s ease, transform .2s ease, border-color .15s ease; }

/* =============================================
   FOOTER NEWSLETTER
   ============================================= */
.footer-newsletter-desc {
    font-size: .875rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 1rem;
    line-height: 1.5;
}
.footer-newsletter-form { width: 100%; }
.footer-newsletter-row {
    display: flex;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.2);
}
.footer-newsletter-input {
    flex: 1;
    background: rgba(255,255,255,.08);
    border: none;
    padding: 11px 14px;
    font-size: .9rem;
    color: #fff;
    font-family: var(--font);
    outline: none;
    min-width: 0;
}
.footer-newsletter-input::placeholder { color: rgba(255,255,255,.4); }
.footer-newsletter-input:focus { background: rgba(255,255,255,.13); }
.footer-newsletter-btn {
    background: var(--accent);
    border: none;
    padding: 0 16px;
    cursor: pointer;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s;
}
.footer-newsletter-btn svg { width: 16px; height: 16px; }
.footer-newsletter-btn:hover { background: var(--accent-dark); }
.footer-newsletter-msg {
    font-size: .8rem;
    margin-top: .5rem;
    min-height: 1.2em;
}
.footer-newsletter-msg.success { color: #86efac; }
.footer-newsletter-msg.error   { color: #fca5a5; }

/* =============================================
   AUTO TABLE OF CONTENTS
   ============================================= */
.toc-box {
    background: #f0f4ff;
    border: 1px solid rgba(29,78,216,.15);
    border-left: 4px solid var(--link);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}
.toc-box-title {
    font-size: .875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: 7px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.toc-box-title svg { width: 15px; height: 15px; color: var(--link); }
.toc-list { margin: 0; padding-left: 1.25rem; }
.toc-list li { font-size: .875rem; margin-bottom: .3rem; }
.toc-list li.toc-sub { padding-left: 1em; list-style-type: circle; }
.toc-list a { color: var(--link); text-decoration: none; transition: color .15s; }
.toc-list a:hover { text-decoration: underline; }
.toc-list a.toc-active { color: var(--primary); font-weight: 600; }

/* =============================================
   POST TAGS
   ============================================= */
.post-tags {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.post-tags-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.post-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: .8rem;
    color: var(--text);
    transition: background .15s, border-color .15s, color .15s;
}
.post-tag:hover { background: var(--accent); border-color: var(--accent); color: var(--primary); text-decoration: none; }

/* =============================================
   INLINE NEWSLETTER CTA (article)
   ============================================= */
.article-newsletter-cta {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    background: linear-gradient(135deg, #1D4ED8 0%, #1e40af 100%);
    border-radius: 12px;
    padding: 24px;
    margin-top: 2.5rem;
}
@media (max-width: 640px) {
    .article-newsletter-cta {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .article-nl-icon { margin: 0 auto; }
}
.article-nl-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.article-nl-icon svg { width: 22px; height: 22px; }
.article-nl-text strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    margin-bottom: .25rem;
}
.article-nl-text p {
    color: rgba(255,255,255,.75);
    font-size: .875rem;
    margin: 0;
    line-height: 1.5;
}
.article-nl-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
}
@media (max-width: 640px) { .article-nl-form { min-width: 0; } }
.article-nl-form input[type="email"] {
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: var(--radius);
    font-size: .875rem;
    font-family: var(--font);
    background: rgba(255,255,255,.12);
    color: #fff;
    outline: none;
    width: 100%;
}
.article-nl-form input[type="email"]::placeholder { color: rgba(255,255,255,.5); }
.article-nl-form input[type="email"]:focus { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.6); }
.article-nl-form button {
    background: var(--accent);
    color: var(--primary);
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: .875rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: background .15s;
    width: 100%;
}
.article-nl-form button:hover { background: var(--accent-dark); }
.article-nl-msg { font-size: .78rem; color: rgba(255,255,255,.8); margin: 0; min-height: 1em; }

/* =============================================
   RELATED ARTICLES SECTION
   ============================================= */
.related-articles {
    background: var(--bg-alt);
    padding: 48px 0 56px;
    border-top: 1px solid var(--border);
    margin-top: 0;
}
.related-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .related-grid { grid-template-columns: 1fr; } }

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */
#back-to-top {
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 150;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease, background .15s;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    pointer-events: none;
}
#back-to-top svg { width: 18px; height: 18px; }
#back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-to-top:hover { background: var(--link); }

/* =============================================
   MEGA MENU
   ============================================= */

/* Trigger button inside nav */
.nav-mega-wrap { position: static; }

.nav-mega-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
  font-family: var(--font);
}
.nav-mega-btn:hover { background: var(--bg-alt); color: var(--primary); }
.nav-mega-btn[aria-expanded="true"] { color: var(--link); background: rgba(29,78,216,.07); }

.nav-chevron {
  width: 14px;
  height: 14px;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.nav-mega-btn[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

/* Highlighted nav link */
.main-nav a.nav-highlight {
  color: var(--link);
  font-weight: 600;
}
.main-nav a.nav-highlight:hover { background: rgba(29,78,216,.07); }

/* Mega panel — full-width strip below header */
.mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 3px solid var(--link);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  pointer-events: none;
}
.mega-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Needs position relative on parent */
.site-header { position: sticky; top: 0; z-index: 200; }
.header-main { position: relative; }

/* 4-column mega layout */
.mega-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 20px 0 8px;
}
@media (max-width: 1100px) { .mega-columns { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .mega-columns { grid-template-columns: 1fr; } }

.mega-col {
  padding: 0 20px 8px;
  border-right: 1px solid var(--border);
}
.mega-col:first-child { padding-left: 0; }
.mega-col:last-child  { border-right: none; padding-right: 0; }

.mega-col-title {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.mega-col-links { display: flex; flex-direction: column; gap: 1px; }

.mega-link {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 10px;
  border-radius: 7px;
  text-decoration: none;
  transition: background .12s, color .12s;
  border: 1px solid transparent;
}
.mega-link:hover {
  background: rgba(29,78,216,.06);
  border-color: rgba(29,78,216,.1);
  text-decoration: none;
}
.mega-link strong {
  font-size: .84rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}
.mega-link span {
  font-size: .74rem;
  color: var(--muted);
  line-height: 1.35;
}
.mega-link:hover strong { color: var(--link); }

/* Mega footer bar */
.mega-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 16px;
  border-top: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.mega-tool-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: background .15s, color .15s, border-color .15s;
}
.mega-tool-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.mega-tool-link:hover { background: rgba(29,78,216,.07); border-color: var(--link); color: var(--link); text-decoration: none; }

.mega-all-link {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--link);
  text-decoration: none;
}
.mega-all-link:hover { color: var(--link-hover); text-decoration: underline; }

/* Mobile nav section label */
.mobile-nav-section {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 12px 4px;
  cursor: default;
}

/* =============================================
   PAGE QUI SOMMES-NOUS — STORYTELLING
   ============================================= */
.about-hero {
  background: var(--primary);
  padding: 72px 0 60px;
  text-align: center;
}
.about-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.about-hero h1 span { color: var(--accent); }
.about-hero p {
  color: rgba(255,255,255,.75);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Story section */
.about-story {
  padding: 72px 0;
  background: #fff;
}
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) { .about-story-grid { grid-template-columns: 1fr; gap: 40px; } }

.about-story-label {
  display: inline-block;
  background: rgba(29,78,216,.08);
  color: var(--link);
  border: 1px solid rgba(29,78,216,.2);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.about-story-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.about-story-text p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.about-story-text p:last-child { margin-bottom: 0; }
.about-story-text strong { color: var(--primary); }

.about-story-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-stat-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
}
.about-stat-card:first-child {
  grid-column: span 2;
  background: var(--primary);
  border-color: transparent;
}
.about-stat-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .3rem;
}
.about-stat-card:not(:first-child) .about-stat-num { color: var(--link); font-size: 1.9rem; }
.about-stat-lbl {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  font-weight: 500;
  line-height: 1.3;
}
.about-stat-card:not(:first-child) .about-stat-lbl { color: var(--muted); }

/* Mission & Values */
.about-mission {
  background: var(--bg-alt);
  padding: 64px 0;
}
.about-mission-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.about-mission-header h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .75rem; }
.about-mission-header p { color: var(--muted); font-size: 1rem; line-height: 1.65; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values-grid { grid-template-columns: 1fr; } }

.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: box-shadow .2s, transform .2s;
}
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.value-icon svg { width: 22px; height: 22px; }
.value-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; color: var(--primary); }
.value-card p { font-size: .875rem; color: var(--muted); line-height: 1.6; margin: 0; }

/* Team section */
.about-team {
  background: #fff;
  padding: 64px 0;
}
.about-team-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}
.about-team-header h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .75rem; }
.about-team-header p { color: var(--muted); font-size: 1rem; line-height: 1.65; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: box-shadow .2s;
}
.team-card:hover { box-shadow: var(--shadow-md); }
.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--link);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.team-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; color: var(--primary); }
.team-card .team-role { font-size: .8125rem; color: var(--link); font-weight: 600; margin-bottom: .75rem; }
.team-card p { font-size: .8125rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* Commitment strip */
.about-commitment {
  background: var(--primary);
  padding: 64px 0;
  text-align: center;
}
.about-commitment h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}
.about-commitment p {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}
.about-commitment-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =============================================
   HOMEPAGE STORYTELLING SECTION
   ============================================= */
.fp-story {
  background: var(--bg);
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.fp-story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) { .fp-story-inner { grid-template-columns: 1fr; gap: 40px; } }
.fp-story-text .about-story-label { margin-bottom: 1rem; }
.fp-story-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.fp-story-text p {
  font-size: .975rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: .85rem;
}
.fp-story-text p:last-of-type { margin-bottom: 1.5rem; }
.fp-story-nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.fp-story-num {
  text-align: center;
  padding: 20px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.fp-story-num strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--link);
  line-height: 1;
  margin-bottom: .3rem;
}
.fp-story-num span {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.3;
  display: block;
}
#back-to-top:hover { background: var(--link); box-shadow: 0 6px 16px rgba(29,78,216,.35); }
