/*
Theme Name: Le Code
Theme URI: https://lecode.fr
Author: Le Code Agency
Description: Theme WordPress premium pour Instinct Masculin — landing page haut de gamme + blog. Esthetique dark + or.
Version: 1.0.3
License: GPL v2 or later
Text Domain: le-code
*/

:root {
  --bg: #0a0a0a;
  --bg-deep: #050505;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --text: #f5f5f5;
  --text-muted: #8a8a8a;
  --text-faded: #555;
  --gold: #D4AF37;
  --gold-light: #E8C766;
  --gold-dark: #A8821C;
  --border: rgba(212, 175, 55, 0.15);
  --border-strong: rgba(212, 175, 55, 0.35);

  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--gold); }
button { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.6rem 0;
  transition: all 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-logo .accent { color: var(--gold); font-style: italic; }
.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-menu a {
  position: relative;
  padding: 0.5rem 0;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-menu a:hover::after { width: 100%; }
.nav-menu .nav-cta,
.nav-menu .menu-item.nav-cta a {
  color: var(--gold);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 2.4rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  position: relative;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--bg);
  box-shadow: 0 14px 50px -10px rgba(212, 175, 55, 0.55);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
}
.btn-arrow::after {
  content: '\2192';
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn-arrow::after { transform: translateX(5px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 9rem 0 5rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 25% 20%, rgba(212, 175, 55, 0.09), transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 80%, rgba(212, 175, 55, 0.05), transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.2rem;
  padding-left: 4rem;
  position: relative;
}
.hero-eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 3rem; height: 1px;
  background: var(--gold);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7.2vw, 6.8rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 2.2rem;
}
.hero-title .accent {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 3rem;
  line-height: 1.65;
  font-weight: 300;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
/* ============================================
   SECTIONS COMMON
   ============================================ */
.section {
  padding: 8rem 0;
  position: relative;
}
.section-alt { background: var(--surface); }
.section-header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-number {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}
.section-title .accent {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* ============================================
   VALEUR
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.value-card {
  padding: 3.2rem 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.5s var(--ease);
  overflow: hidden;
}
.value-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.value-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(212, 175, 55, 0.25);
}
.value-card:hover::before { opacity: 1; }
.value-number {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 1.5rem;
  line-height: 1;
  position: relative;
}
.value-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}
.value-text {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.75;
  font-weight: 300;
  position: relative;
}

/* ============================================
   BIO
   ============================================ */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}
.bio-image {
  aspect-ratio: 4/5;
  position: relative;
  max-width: 480px;
}
.bio-image::before {
  content: '';
  position: absolute;
  inset: -24px -24px 24px 24px;
  border: 1px solid var(--gold);
  z-index: 0;
}
.bio-content .section-number,
.bio-content .section-title {
  text-align: left;
}
.bio-content .section-header {
  text-align: left;
  margin: 0 0 2rem 0;
  max-width: none;
}
.bio-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
  font-weight: 300;
}
.bio-signature {
  margin-top: 2.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
}

/* ============================================
   PROGRAMMES
   ============================================ */
.programmes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.programme-card {
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}
.programme-card:hover {
  border-color: var(--gold);
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -30px rgba(212, 175, 55, 0.3);
}
.programme-image {
  aspect-ratio: 16/10;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.programme-body {
  padding: 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.programme-tag {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 600;
}
.programme-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.programme-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  flex: 1;
  font-weight: 300;
}
.programme-link {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
}
.programme-link::after {
  content: '\2192';
  transition: transform 0.3s var(--ease);
}
.programme-link:hover::after { transform: translateX(4px); }
.programme-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.programme-price { color: var(--gold); font-weight: 600; }

/* ============================================
   TEMOIGNAGES
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.testimonial-card {
  padding: 3rem;
  background: var(--bg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -1.5rem;
  right: 1.5rem;
  font-family: var(--font-serif);
  font-size: 12rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.12;
  font-style: italic;
  pointer-events: none;
}
.testimonial-stars {
  color: var(--gold);
  margin-bottom: 1.5rem;
  letter-spacing: 0.2em;
  font-size: 1rem;
}
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.55;
  margin-bottom: 2rem;
  font-style: italic;
  position: relative;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  position: relative;
}
.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px dashed var(--border-strong);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.02));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 0.98rem; }
.testimonial-role { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ============================================
   CTA FINAL
   ============================================ */
.cta-final {
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, #1a1611 100%);
  padding: 10rem 0;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at center, rgba(212, 175, 55, 0.12), transparent 60%);
  pointer-events: none;
}
.cta-final .container {
  position: relative;
  z-index: 2;
}
.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.015em;
}
.cta-title .accent {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}
.cta-text {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 3rem;
  line-height: 1.6;
  font-weight: 300;
}
.cta-btn-large {
  padding: 1.5rem 3.5rem;
  font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-deep);
  padding: 5rem 0 2.5rem;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-col h4 {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.footer-col ul { list-style: none; }
.footer-col li {
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.footer-brand .site-logo {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  display: inline-block;
}
.footer-tagline {
  color: var(--text-muted);
  max-width: 340px;
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-faded);
}
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  transition: all 0.3s var(--ease);
}
.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
}

/* ============================================
   IMAGE PLACEHOLDERS
   ============================================ */
.placeholder {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.07), rgba(212, 175, 55, 0.02));
  border: 1px dashed var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  font-weight: 500;
}
.placeholder::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(212, 175, 55, 0.08);
  pointer-events: none;
}
.bio-image .placeholder,
.programme-image .placeholder,
.post-thumbnail .placeholder,
.article-feature-image .placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.bio-image > img,
.programme-image > img,
.article-feature-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
}

.testimonial-avatar { overflow: hidden; }
.testimonial-avatar:has(img) {
  border-style: solid;
  border-color: var(--border);
  background: none;
}
.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ============================================
   BLOG LISTING
   ============================================ */
.blog-hero {
  padding: 12rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at center top, rgba(212, 175, 55, 0.1), transparent 60%);
  pointer-events: none;
}
.blog-hero .container { position: relative; z-index: 2; }
.blog-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.blog-hero h1 .accent { color: var(--gold); font-style: italic; font-weight: 400; }
.blog-hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding: 4rem 0 2rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease);
}
.post-card:hover { transform: translateY(-6px); }
.post-thumbnail {
  aspect-ratio: 4/3;
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
  display: block;
}
.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.post-card:hover .post-thumbnail img { transform: scale(1.06); }
.post-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.post-meta .category { color: var(--gold); }
.post-card h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  transition: color 0.3s var(--ease);
}
.post-card:hover h2 { color: var(--gold); }
.post-card h2 a { color: inherit; }
.post-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
}
.post-read-more {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 3rem 0 8rem;
}
.pagination a,
.pagination span,
.pagination .page-numbers {
  min-width: 44px;
  height: 44px;
  padding: 0 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  transition: all 0.3s var(--ease);
}
.pagination a:hover,
.pagination .current,
.pagination .page-numbers.current {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

/* ============================================
   SINGLE ARTICLE (white reading area)
   ============================================ */
.single-article {
  background: var(--bg);
  padding: 1rem 0 0;
  position: relative;
}
.article-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 4rem;
}
.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.article-meta .category { color: var(--gold); }
.article-meta .dot { color: var(--text-faded); }
.article-title {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.article-excerpt {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
  font-family: var(--font-serif);
  font-weight: 400;
}
.article-feature-image {
  max-width: 700px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  position: relative;
}
.article-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content-wrap {
  background: #ffffff;
  color: #1a1a1a;
  margin-top: -120px;
  position: relative;
  z-index: 2;
  padding: 7rem 0 5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.85;
  color: #2a2a2a;
}
.article-content > * + * { margin-top: 1.5rem; }
.article-content > p { font-weight: 400; }
.article-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-top: 3.5rem;
  line-height: 1.2;
  color: #111;
  letter-spacing: -0.01em;
}
.article-content h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  margin-top: 2.5rem;
  color: #111;
}
.article-content a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.article-content a:hover { color: var(--gold); }
.article-content strong { color: #111; font-weight: 700; }
.article-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 0 1rem 2.2rem;
  margin: 2.5rem 0;
  font-size: 1.4rem;
  font-style: italic;
  color: #111;
  line-height: 1.5;
  position: relative;
}
.article-content blockquote::before {
  content: '\201C';
  position: absolute;
  left: -1.2rem;
  top: -1.8rem;
  font-size: 5rem;
  color: var(--gold);
  font-family: var(--font-serif);
  line-height: 1;
}
.article-content ul,
.article-content ol { padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.6rem; }
.article-content img {
  margin: 2.5rem 0;
  width: 100%;
  display: block;
}
.article-content figure { margin: 2.5rem 0; }
.article-content figcaption {
  font-size: 0.88rem;
  color: #777;
  text-align: center;
  margin-top: 0.8rem;
  font-style: italic;
  font-family: var(--font-sans);
}
.article-content code {
  background: #f5f0e6;
  color: var(--gold-dark);
  padding: 0.15rem 0.45rem;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 0.88em;
  border-radius: 2px;
}
.article-content pre {
  background: #1a1a1a;
  color: #f5f5f5;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  font-size: 0.9em;
}
.article-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.article-content hr {
  border: none;
  text-align: center;
  margin: 3rem 0;
}
.article-content hr::after {
  content: '\2767';
  color: var(--gold);
  font-size: 1.5rem;
}

.article-footer {
  max-width: 720px;
  margin: 4rem auto 0;
  padding: 2.5rem 2rem 0;
  border-top: 1px solid #eee;
  font-family: var(--font-sans);
}
.article-share {
  color: #555;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.article-share a {
  margin-left: 1.2rem;
  color: var(--gold-dark);
  font-weight: 600;
}
.article-share a:hover { color: var(--gold); }

/* ============================================
   GENERIC PAGES + 404
   ============================================ */
.page-header {
  padding: 12rem 0 4rem;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
}
.page-content-wrap {
  background: #fff;
  color: #1a1a1a;
  padding: 5rem 0;
}
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2a2a2a;
}
.page-content > * + * { margin-top: 1.5rem; }
.page-content h2 { font-size: 2rem; color: #111; margin-top: 3rem; }
.page-content a { color: var(--gold-dark); text-decoration: underline; }

.error-page {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12rem 0 6rem;
}
.error-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(6rem, 18vw, 14rem);
  line-height: 0.9;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.error-page p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.2rem;
  font-weight: 300;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .values-grid,
  .programmes-grid,
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr; gap: 3rem; }
  .bio-image { max-width: 380px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .section { padding: 6rem 0; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }
  .nav-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    font-size: 1.4rem;
    gap: 2rem;
  }
  .nav-menu.open { display: flex; }
  .menu-toggle { display: block; z-index: 101; position: relative; }
  .section { padding: 5rem 0; }
  .section-header { margin-bottom: 3.5rem; }
  .values-grid,
  .programmes-grid,
  .posts-grid { grid-template-columns: 1fr; }
  .hero { padding: 7rem 0 4rem; min-height: 90vh; }
  .hero-eyebrow { padding-left: 2rem; }
  .hero-eyebrow::before { width: 1.5rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .testimonial-card { padding: 2rem; }
  .testimonial-card::before { font-size: 8rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .article-content-wrap { margin-top: -60px; padding: 4rem 0 3rem; }
  .article-content { padding: 0 1.5rem; }
  .cta-final { padding: 7rem 0; }
}

/* ============================================================
   SEO / TEMPLATES — Breadcrumbs, bio auteur, articles connexes,
   tags article, archives, recherche, author page.
============================================================ */

.breadcrumbs {
  padding: 5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
}
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--text-faded);
}
.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs li[aria-current="page"] span { color: var(--text); }

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
}
.article-tags a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.2s var(--ease);
}
.article-tags a:hover {
  color: var(--gold);
  border-color: var(--border-strong);
}

.author-bio {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 3rem;
  margin: 4rem auto;
  max-width: 800px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.author-bio .author-avatar img {
  border-radius: 50%;
  display: block;
}
.author-bio .author-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.author-bio .author-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin: 0 0 1rem;
}
.author-bio .author-name a {
  color: var(--text);
  text-decoration: none;
}
.author-bio .author-name a:hover { color: var(--gold); }
.author-bio .author-text {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.related-posts {
  max-width: var(--container);
  margin: 5rem auto 3rem;
  padding: 0 2rem;
}
.related-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  margin: 0 0 2.5rem;
  text-align: center;
}

.archive-description {
  color: var(--text-muted);
  max-width: 720px;
  margin-top: 1.5rem;
  line-height: 1.7;
}

.author-hero-inner {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.author-hero-avatar img {
  border-radius: 50%;
  border: 2px solid var(--border-strong);
}

.search-form {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
}
.search-form input[type="search"] {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border-radius: 2px;
}
.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--gold);
}
.search-form button {
  background: var(--gold);
  color: var(--bg);
  border: none;
  padding: 0 1.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s var(--ease);
}
.search-form button:hover { background: var(--gold-light); }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

@media (max-width: 720px) {
  .author-bio { flex-direction: column; gap: 1.25rem; padding: 2rem; }
  .author-hero-inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   LANDING — La renaissance de l'homme (front-page.php)
   Hero, countdown, waitlist form, constat, vs, parties, filter,
   recois, CTA finale.
============================================================ */

/* ----- variant: section-dark ----- */
.section-dark { background: var(--bg-deep); }

/* ============================================
   BOOK HERO
============================================ */
.book-hero {
  position: relative;
  min-height: 100vh;
  padding: 9rem 0 6rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.book-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  z-index: -2;
  filter: contrast(1.05) saturate(0.9);
}
.book-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5,5,5,0.96) 0%, rgba(5,5,5,0.82) 38%, rgba(5,5,5,0.35) 70%, rgba(5,5,5,0) 100%),
    linear-gradient(180deg, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.15) 40%, rgba(5,5,5,0.85) 100%);
}
.book-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 720px);
}
.book-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--border-strong);
  margin-bottom: 2rem;
  align-self: start;
}
.book-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
  max-width: 18ch;
}
.book-hero-title .accent {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}
.book-hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 56ch;
  line-height: 1.7;
  margin-bottom: 2.6rem;
  font-weight: 300;
}
.book-hero-sub strong { color: var(--text); font-weight: 600; }
.book-hero-sub em { color: var(--gold); font-style: italic; }

/* ============================================
   COUNTDOWN
============================================ */
.book-countdown {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  margin-bottom: 2.4rem;
  flex-wrap: wrap;
}
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
  padding: 1rem 0.8rem 0.8rem;
  background: rgba(20, 20, 20, 0.75);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.cd-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.35rem;
}
.cd-lbl {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cd-sep {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--gold);
  align-self: center;
  padding-bottom: 0.3rem;
  opacity: 0.5;
}

/* ============================================
   WAITLIST FORM
============================================ */
.waitlist-form { max-width: 560px; }
.wl-row {
  display: flex;
  gap: 0.6rem;
  position: relative;
}
.wl-input {
  flex: 1;
  min-width: 0;
  padding: 1.05rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.wl-input::placeholder { color: var(--text-faded); }
.wl-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.07);
}
.wl-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.wl-btn { white-space: nowrap; }
.wl-btn[disabled],
.waitlist-form.is-loading .wl-btn { opacity: 0.7; cursor: progress; }
.wl-note {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.wl-note strong { color: var(--text); font-weight: 600; }
.wl-note .accent { color: var(--gold); font-weight: 600; }
.wl-msg {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  min-height: 1.2rem;
}
.wl-msg.is-success { color: var(--gold-light); }
.wl-msg.is-error { color: #ff7a7a; }

/* ============================================
   SECTION I — CONSTAT
============================================ */
.constat-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.constat-text p {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.2rem;
  font-weight: 300;
}
.constat-text strong { color: var(--text); font-weight: 600; }
.constat-text em { color: var(--gold); font-style: italic; }
.constat-punch {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  font-size: 1.2rem !important;
  color: var(--text) !important;
}
.constat-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid var(--border);
}
.constat-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   SECTION II — CE QUE C'EST / N'EST PAS
============================================ */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.vs-col {
  padding: 3rem 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}
.vs-is { border-color: var(--border-strong); }
.vs-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faded);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--text-faded);
  margin-bottom: 2rem;
}
.vs-tag-is {
  color: var(--gold);
  border-color: var(--gold);
}
.vs-list { list-style: none; padding: 0; margin: 0; }
.vs-list li {
  position: relative;
  padding: 0.9rem 0 0.9rem 2rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  font-weight: 300;
}
.vs-list li:last-child { border-bottom: none; }
.vs-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 1rem;
  height: 1px;
  background: var(--text-faded);
}
.vs-is .vs-list li::before { background: var(--gold); }
.vs-is .vs-list li { color: var(--text); }
.vs-list em { color: var(--gold); font-style: italic; }

/* ============================================
   SECTION III — LES 4 PARTIES + COVER
============================================ */
.parties-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 5rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.parties-cover {
  position: sticky;
  top: 6rem;
}
.parties-cover img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 50px 80px rgba(0, 0, 0, 0.6));
}
.parties-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.part-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.8rem;
  align-items: start;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.part-card:first-child { border-top: none; padding-top: 0; }
.part-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
}
.part-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faded);
  margin-bottom: 0.6rem;
}
.part-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}
.part-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
  font-weight: 300;
}

/* ============================================
   SECTION IV — POUR QUI (filter)
============================================ */
.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}
.filter-yes,
.filter-no {
  list-style: none;
  padding: 0;
  margin: 0;
}
.filter-yes li,
.filter-no li {
  position: relative;
  padding: 1rem 0 1rem 3rem;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 300;
}
.filter-yes li { color: var(--text); }
.filter-no li { color: var(--text-faded); }
.filter-yes li::before,
.filter-no li::before {
  position: absolute;
  left: 0;
  top: 1rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1;
}
.filter-yes li::before {
  content: '✓';
  color: var(--gold);
}
.filter-no li::before {
  content: '✕';
  color: var(--text-faded);
}

/* ============================================
   SECTION VI — CE QUE TU REÇOIS
============================================ */
.recois-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.recois-card {
  padding: 3rem 2.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.5s var(--ease);
  position: relative;
}
.recois-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(212, 175, 55, 0.25);
}
.recois-icon {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.8rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1.5rem;
}
.recois-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.recois-text {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
  font-weight: 300;
}
.recois-text strong { color: var(--text); font-weight: 600; }
.recois-text .accent { color: var(--gold); font-weight: 600; }
.recois-text em { color: var(--gold); font-style: italic; }

/* ============================================
   CTA FINAL — book version
============================================ */
.book-cta-final .book-countdown { justify-content: center; margin: 2.5rem auto 2.4rem; }
.book-cta-final .waitlist-form-final { margin: 0 auto; }
.book-cta-final .wl-row { justify-content: center; }

/* ============================================
   RESPONSIVE — landing
============================================ */
@media (max-width: 1024px) {
  .parties-layout { grid-template-columns: 1fr; gap: 3rem; }
  .parties-cover { position: static; max-width: 320px; margin: 0 auto 2rem; }
  .constat-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .constat-image { max-width: 600px; margin: 0 auto; width: 100%; }
}
@media (max-width: 760px) {
  .book-hero { padding: 7rem 0 4rem; min-height: auto; }
  .book-hero-bg { background-position: center; opacity: 0.55; }
  .book-hero-overlay {
    background: linear-gradient(180deg, rgba(5,5,5,0.6) 0%, rgba(5,5,5,0.35) 35%, rgba(5,5,5,0.92) 95%);
  }
  .book-hero-title { font-size: clamp(2.1rem, 9vw, 3.2rem); }
  .book-countdown { gap: 0.4rem; }
  .cd-unit { min-width: 60px; padding: 0.75rem 0.5rem 0.6rem; }
  .cd-num { font-size: 1.6rem; }
  .cd-sep { font-size: 1.4rem; }
  .wl-row { flex-direction: column; }
  .wl-btn { width: 100%; justify-content: center; }
  .vs-grid { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr; gap: 2rem; }
  .recois-grid { grid-template-columns: 1fr; }
  .part-card { grid-template-columns: 60px 1fr; gap: 1.2rem; }
  .part-num { font-size: 2.2rem; }
}
