@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

/* =====================================================
   CLÉS DES NOMBRES — Design System Global
   Pure CSS, No Frameworks
===================================================== */

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

:root {
  --cream:      #F8F9FB;
  --cream-card: #FFFFFF;
  --cream-warm: #EFF2F6;
  --brown:      #3e332d;
  --brown-dark: #3b2e27;
  --brown-mid:  #5a4b40;
  --brown-muted:#6b5b50;
  --sage:       #a6bba7;
  --sage-dark:  #8fa990;
  --celadon:    #aec7c4;
  --border:     #DDE3EA;
  --border-soft:rgba(143,169,144,0.18);
  --shadow-sm:  0 2px 12px rgba(143,169,144,0.06);
  --shadow-md:  0 8px 28px rgba(143,169,144,0.10);
  --shadow-lg:  0 16px 48px rgba(143,169,144,0.13);
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --max-w:      1120px;

  /* --- accent additions (built from / paired with existing colors) --- */
  --gold:       #d4a843;
  --gold-dark:  #b8872e;
  --gold-soft:  rgba(212,168,67,0.14);
  --gradient-brand: linear-gradient(135deg, var(--sage) 0%, var(--celadon) 100%);
  --shadow-glow: 0 10px 30px rgba(143,169,144,0.28);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  background-color: var(--cream);
  color: var(--brown);
  line-height: 1.7;
  font-size: 1rem;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
main { counter-reset: section-counter; }

::selection { background: rgba(166,187,167,0.35); color: var(--brown-dark); }

h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--brown-dark);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
h1 em, h2 em, h3 em { font-style: italic; color: inherit; }
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; }
p  { margin-bottom: 0.9rem; color: var(--brown-muted); }
strong { color: var(--brown); font-weight: 600; }

a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--sage-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- LAYOUT --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}
.section--sm { padding: 2.5rem 0; }
.section--lg { padding: 2.75rem 0; }

/* --- HEADER / NAV --- */
.site-header {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 8px 24px -16px rgba(61,51,45,0.12);
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0; /* annule toute marge héritée (évite l'espace header/section) */
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-logo {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brown-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-logo span { color: var(--sage-dark); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}
.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--brown-mid);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--sage);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: var(--brown-dark); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.nav-cta::after { display: none; }
.nav-cta {
  background: var(--gradient-brand);
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-weight: 600 !important;
  box-shadow: none; /* pas d'ombre sous le bouton */
  transition: filter 0.15s !important, transform 0.15s !important;
}
.nav-cta:hover { filter: brightness(0.96); transform: translateY(-1px); text-decoration: none; }

/* Bouton "Mon compte" révélé au survol de "Mon Thème" (glisse vers le bas) */
.nav-account-wrap { position: relative; }
.nav-account-wrap > .nav-account {
  position: absolute;
  top: calc(100% + 30px); /* plus bas que "Mon Thème", après le chemin de boules */
  left: 0;
  right: 0;
  text-align: center;
  white-space: nowrap;
  /* même style que le CTA "Mon Thème", sans ombre */
  background: var(--gradient-brand);
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-weight: 600 !important;
  box-shadow: none;
  /* animation d'apparition */
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), filter 0.15s;
  z-index: 60;
}
.nav-account-wrap > .nav-account::after { display: none; } /* pas de soulignement */
/* pont invisible pour ne pas perdre le survol dans l'espace entre les 2 boutons */
.nav-account-wrap > .nav-account::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -34px;
  height: 36px;
}
.nav-account-wrap:hover > .nav-account,
.nav-account-wrap:focus-within > .nav-account {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-account-wrap > .nav-account:hover { filter: brightness(0.96); }

/* Chemin de 2 boules (même couleur) entre les 2 boutons, synchronisé avec l'animation */
.nav-account-wrap::before,
.nav-account-wrap::after {
  content: '';
  position: absolute;
  left: 50%;
  border-radius: 50%;
  background: var(--gradient-brand);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  z-index: 59;
}
.nav-account-wrap::before { /* petite boule (proche de "Mon Thème") */
  width: 5px;
  height: 5px;
  top: calc(100% + 9px);
  transform: translate(-50%, -5px);
}
.nav-account-wrap::after { /* boule un peu plus grosse (vers "Mon compte") */
  width: 8px;
  height: 8px;
  top: calc(100% + 17px);
  transform: translate(-50%, -5px);
}
.nav-account-wrap:hover::before,
.nav-account-wrap:focus-within::before {
  opacity: 1;
  transform: translate(-50%, 0);
  transition-delay: 0.04s;
}
.nav-account-wrap:hover::after,
.nav-account-wrap:focus-within::after {
  opacity: 1;
  transform: translate(-50%, 0);
  transition-delay: 0.10s;
}

/* Aucun soulignement au survol sur les deux boutons */
.nav-links a.nav-cta:hover,
.nav-account-wrap a.nav-account:hover { text-decoration: none; }

/* Hamburger mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brown-mid);
  border-radius: 2px;
  transition: all 0.2s;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s var(--ease), background 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(166,187,167,0.35);
}
.btn-primary:hover { filter: brightness(0.95); box-shadow: 0 14px 34px rgba(143,169,144,0.42); }

.btn-secondary {
  background: var(--celadon);
  color: var(--brown-dark);
  box-shadow: 0 6px 18px rgba(174,199,196,0.3);
}
.btn-secondary:hover { background: #9db8b5; }

.btn-ghost {
  background: transparent;
  color: var(--brown-mid);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--sage); color: var(--sage-dark); }

.btn-sm { padding: 0.6rem 1.3rem; font-size: 0.88rem; }
.btn-lg { padding: 1rem 2.4rem; font-size: 1.05rem; }

/* --- CARDS --- */
.card {
  background: var(--cream-card);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card--warm {
  background: var(--cream-warm);
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
}
.card--bordered {
  border: 1px solid var(--border);
}

/* --- HERO --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  text-align: center;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle, rgba(61,51,45,0.05) 1px, transparent 1.6px),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
  background-size: 26px 26px, 100% 100%;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.hero::before {
  width: 420px; height: 420px;
  top: -200px; left: -140px;
  background: radial-gradient(circle, rgba(166,187,167,0.4), transparent 70%);
}
.hero::after {
  width: 380px; height: 380px;
  bottom: -180px; right: -120px;
  background: radial-gradient(circle, rgba(174,199,196,0.35), transparent 70%);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(166,187,167,0.12);
  color: var(--sage-dark);
  border: 1px solid rgba(166,187,167,0.35);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  animation: fadeInUp 0.7s var(--ease) both, softPulse 2.6s ease-in-out 1s infinite;
}
.hero h1 {
  max-width: 820px;
  margin: 0 auto 1.1rem;
  animation: fadeInUp 0.7s var(--ease) 0.08s both;
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  color: var(--brown-muted);
  animation: fadeInUp 0.7s var(--ease) 0.16s both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-bottom: 2rem;
  animation: fadeInUp 0.7s var(--ease) 0.24s both;
}
.hero-trust {
  font-size: 0.82rem;
  color: var(--brown-muted);
  opacity: 0.8;
  animation: fadeInUp 0.7s var(--ease) 0.32s both;
}

/* --- GRID HELPERS --- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; justify-content: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; justify-content: center; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; justify-content: center; }

/* --- STEP CARDS --- */
.step-card {
  background: var(--cream-card);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-number {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--sage-dark);
  margin-bottom: 0.4rem;
  flex-shrink: 0;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.step-card:hover .step-number { background: var(--gradient-brand); color: #fff; transform: scale(1.08); }

/* --- FEATURE ITEMS --- */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(166,187,167,0.1);
  border: 1px solid rgba(166,187,167,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.9rem;
  font-size: 1.4rem;
  transition: transform 0.25s var(--ease);
}
.card:hover .feature-icon { transform: scale(1.1); }

/* --- COMPARISON --- */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.comparison-col {
  background: var(--cream-card);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.comparison-col--sans h3 { color: #b04747; }
.comparison-col--avec h3 { color: var(--sage-dark); }
.comparison-col--avec {
  border: 1px solid var(--sage);
  box-shadow: 0 0 0 1px rgba(166,187,167,0.5), var(--shadow-md);
}
.comparison-col--avec:hover { transform: translateY(-2px); }
.comparison-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.comparison-col li { font-size: 0.93rem; color: var(--brown-muted); padding-left: 1.4rem; position: relative; }
.comparison-col li::before { content: "✗"; position: absolute; left: 0; color: #b04747; font-weight: 700; }
.comparison-col--avec li::before { content: "✓"; color: var(--sage-dark); }

/* --- STATS STRIP --- */
.stats-strip {
  background: linear-gradient(135deg, rgba(166,187,167,0.1) 0%, rgba(174,199,196,0.08) 100%);
  border: 1px solid rgba(166,187,167,0.22);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.stat-item .stat-number {
  display: block;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--brown-dark);
  line-height: 1;
}
.stat-item .stat-label { font-size: 0.88rem; color: var(--brown-muted); }

/* --- TESTIMONIALS --- */
.testimonial-card {
  background: var(--cream-card);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--sage);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.testimonial-card blockquote {
  font-style: italic;
  color: var(--brown-muted);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.65;
}
.testimonial-card blockquote::before { content: '"'; font-size: 2rem; color: var(--sage); line-height: 0; vertical-align: -0.5rem; margin-right: 0.2rem; }
.testimonial-author { font-weight: 700; font-size: 0.88rem; color: var(--brown); }
.testimonial-context { font-size: 0.82rem; color: var(--brown-muted); }
.stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 0.5rem; }

/* --- FAQ --- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream-card);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:has(.faq-answer.open) { border-color: var(--sage); box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%;
  padding: 1rem 1.2rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown-dark);
  text-align: left;
  gap: 1rem;
  transition: background 0.15s;
}
.faq-question:hover { background: rgba(166,187,167,0.06); }
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--sage-dark);
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer.open { max-height: 400px; }
.faq-answer-inner {
  padding: 0 1.2rem 1rem;
  font-size: 0.93rem;
  color: var(--brown-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}
.faq-answer > p {
  padding: 0 1.2rem 1rem;
  font-size: 0.93rem;
  color: var(--brown-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin: 0;
}
.faq-icon.open { transform: rotate(45deg); background: var(--sage); color: #fff; border-color: var(--sage); }

/* --- CTA SECTION --- */
.cta-section {
  position: relative;
  overflow: hidden;
  background: var(--cream-warm);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-brand);
}
.cta-section::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 280px; height: 280px;
  bottom: -140px; left: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(174,199,196,0.3), transparent 70%);
  filter: blur(55px);
  pointer-events: none;
}
.cta-section h2 { margin-bottom: 0.75rem; }
.cta-section p { max-width: 560px; margin: 0 auto 1.8rem; }

/* --- BREADCRUMB --- */
.breadcrumb {
  padding: 0.9rem 0;
  font-size: 0.84rem;
  color: var(--brown-muted);
}
.breadcrumb a { text-decoration: none; color: var(--brown-muted); }
.breadcrumb a:hover { color: var(--sage-dark); }
.breadcrumb span { margin: 0 0.35rem; }

/* --- ARTICLE CONTENT --- */
.article-header {
  padding: 3rem 0 2rem;
}
.article-header h1 { max-width: 820px; }
.article-meta {
  font-size: 0.84rem;
  color: var(--brown-muted);
  margin-bottom: 0.5rem;
}
.article-body {
  max-width: 820px;
}
.article-body h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.9rem;
  padding-top: 0;
  border-top: none;
}
.article-body h3 { margin-top: 1.4rem; margin-bottom: 0.6rem; }
.article-body p { color: var(--brown); line-height: 1.8; }
.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--brown-muted);
}
.article-body li { margin-bottom: 0.4rem; }
.article-body strong { color: var(--brown-dark); }

/* --- INTERNAL LINK CARDS (silo) --- */
.silo-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin-top: 1.2rem;
  justify-content: center;
}
.silo-links .silo-card h3 { font-size: 0.98rem; line-height: 1.25; }
/* Variante 2 colonnes (ex. 4 cartes : nombres karmiques) */
.silo-links--2 { grid-template-columns: repeat(2, 1fr); max-width: 560px; margin-left: auto; margin-right: auto; }
.silo-link {
  display: block;
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--brown-mid);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.15s, color 0.15s, transform 0.15s var(--ease);
}
.silo-link:hover { border-color: var(--sage); color: var(--sage-dark); transform: translateY(-2px); }

/* --- FORM --- */
.form-card {
  background: var(--cream-card);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2.4rem;
  box-shadow: var(--shadow-md);
  max-width: 640px;
  margin: 0 auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.2rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brown);
}
.form-group input,
.form-group select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.93rem;
  font-family: inherit;
  background: var(--cream);
  color: var(--brown);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(166,187,167,0.18);
}
.form-actions { grid-column: 1 / -1; margin-top: 0.5rem; }

/* --- PRICING TABLE --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
}
.pricing-card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pricing-card--featured {
  border-color: var(--sage);
  box-shadow: 0 0 0 2px var(--sage), var(--shadow-glow);
}
.pricing-card--featured:hover { transform: translateY(-4px); }
.pricing-badge {
  display: inline-block;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.pricing-name { font-size: 1.1rem; font-weight: 700; color: var(--brown-dark); margin-bottom: 0.4rem; }
.pricing-price { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 2.4rem; font-weight: 600; color: var(--brown-dark); line-height: 1; }
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--brown-muted); }
.pricing-desc { font-size: 0.88rem; color: var(--brown-muted); margin: 0.6rem 0 1.2rem; }
.pricing-features-list {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  margin-bottom: 1.5rem;
}
.pricing-features-list li {
  font-size: 0.9rem;
  color: var(--brown-muted);
  padding-left: 1.3rem;
  position: relative;
}
.pricing-features-list li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 700; }

/* --- FOOTER --- */
.site-footer {
  position: relative;
  background: var(--cream-card);
  border-top: 1px solid var(--border-soft);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0.55;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
/* Plus d'espace UNIQUEMENT entre Explorer (2e enfant) et Blog ; Blog↔Légal inchangé */
.footer-inner > div:nth-child(2) { margin-right: 1.5rem; }

/* ===== Section "À propos" (accueil) ===== */
.about-home { display: flex; align-items: center; gap: 2.5rem; max-width: 880px; margin: 0 auto; }
.about-home__photo { flex: 0 0 auto; }
.about-home__monogram,
.about-home__photo img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; }
.about-home__monogram {
  display: flex; align-items: center; justify-content: center;
  background: var(--sage); color: #fff; font-size: 2.6rem; font-weight: 700;
  letter-spacing: 0.05em; box-shadow: var(--shadow-md);
}
.about-home__text h2 { margin-bottom: 0.8rem; }
.about-home__text p { margin-bottom: 0.8rem; }
@media (max-width: 700px) {
  .about-home { flex-direction: column; text-align: center; gap: 1.3rem; }
}

/* ===== Dictionnaire de la numérologie (A→Z) ===== */
.dico-az { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 2rem; position: sticky; top: 66px; background: var(--cream); padding: 0.8rem 0; z-index: 50; }
.dico-az a { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 0.45rem; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; color: var(--brown-dark); font-weight: 700; font-size: 0.9rem; transition: background 0.12s, color 0.12s, border-color 0.12s; }
.dico-az a::after { display: none; }
.dico-az a:hover { background: var(--sage); color: #fff; border-color: var(--sage); }
.dico-letter { color: var(--sage-dark); border-bottom: 2px solid var(--border); padding-bottom: 0.3rem; margin-top: 2.2rem; scroll-margin-top: 130px; }
.dico-term { margin: 1rem 0 1.1rem; }
.dico-term h3 { margin-bottom: 0.2rem; font-size: 1.05rem; }
.dico-term p { margin: 0; }
.footer-brand .site-logo { margin-bottom: 0.7rem; display: inline-block; }
.footer-brand p { font-size: 0.88rem; color: var(--brown-muted); max-width: 240px; }
.footer-col h4 { font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brown-mid); margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { display: inline-block; text-decoration: none; color: var(--brown-muted); font-size: 0.88rem; transition: color 0.15s, transform 0.15s; }
.footer-col a:hover { color: var(--sage-dark); transform: translateX(2px); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding: 1.2rem 1.5rem 0;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--brown-muted);
}

/* --- TAGS --- */
.tag {
  display: inline-block;
  background: rgba(166,187,167,0.1);
  color: var(--sage-dark);
  border: 1px solid rgba(166,187,167,0.3);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* --- BLOG CARD --- */
.blog-card {
  background: var(--cream-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card-body { padding: 1.4rem; flex: 1; }
.blog-card-body h3 { font-size: 1.15rem; color: var(--brown-dark); margin-bottom: 0.5rem; }
.blog-card-body p { font-size: 0.88rem; color: var(--brown-muted); margin: 0; }
.blog-card-footer { padding: 0.8rem 1.4rem; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--brown-muted); }

/* --- UTILITY --- */
.text-center { text-align: center; }
.text-muted { color: var(--brown-muted); }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 1.8rem; }
.mt-lg { margin-top: 2.8rem; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 1.8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.highlight { color: var(--sage-dark); font-weight: 600; }

/* --- NUMBER BADGE (chemin de vie, etc.) --- */
.number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--gradient-brand);
  color: #fff;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 2.1rem;
  font-weight: 600;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-glow);
}

/* =====================================================
   SILO / ARTICLE / GUIDE PAGES (additive components)
===================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 3.4rem 0 2.6rem;
  text-align: center;
  background: var(--cream-warm);
  border-bottom: 1px solid var(--border-soft);
}
.hero-section::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 320px; height: 320px;
  top: -150px; right: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166,187,167,0.3), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hero-section h1 { animation: fadeInUp 0.7s var(--ease) 0.06s both; }
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--brown-muted);
  max-width: 660px;
  margin: 0.6rem auto 0;
  animation: fadeInUp 0.7s var(--ease) 0.14s both;
}
.hero-number .number-badge {
  width: 74px; height: 74px; font-size: 2.4rem;
  animation: fadeInUp 0.7s var(--ease) both;
}

.content-wrapper { max-width: 880px; margin: 0 auto; padding: 2.6rem 1.5rem 1rem; }
.content-section { margin-bottom: 2.8rem; }
.content-section h2 {
  counter-increment: section-counter;
  margin-top: 2.4rem;
  padding-top: 0;
  border-top: none;
  position: relative;
}
.content-section h2:first-of-type { margin-top: 1.6rem; padding-top: 0; border-top: none; }
.content-section h2::before {
  content: counter(section-counter, decimal-leading-zero);
  display: block;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--sage-dark);
  margin-bottom: 0.45rem;
}
.content-section h2 + p::first-letter {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--sage-dark);
  float: left;
  line-height: 1;
  padding: 0.02rem 0.35rem 0 0;
}
/* no drop cap on calcul / CTA blocks */
.calcul-section h2 + p::first-letter,
.calcul-section p::first-letter,
.cta-section h2 + p::first-letter,
.cta-section p::first-letter,
.cta-box h2 + p::first-letter,
.cta-box p::first-letter {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  float: none;
  line-height: inherit;
  padding: 0;
}
.content-section p { color: var(--brown); line-height: 1.8; }
.content-section ul, .content-section ol { padding-left: 1.4rem; margin-bottom: 1rem; color: var(--brown-muted); }
.content-section li { margin-bottom: 0.45rem; }

.traits-list {
  list-style: none;
  padding-left: 0 !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}
.traits-list li {
  flex: 1 1 260px;
  max-width: 360px;
  padding: 1.1rem 1.2rem 1.1rem 2.3rem;
  margin-bottom: 0;
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  color: var(--brown-muted);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s;
}
.traits-list li:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--sage); }
.traits-list li::before { content: "✦"; position: absolute; left: 1.1rem; top: 1.15rem; color: var(--sage); font-weight: 700; }
/* even-count lists: 2 columns with wider, elongated cards */
.traits-list.traits-2col { display: grid; grid-template-columns: repeat(2, 1fr); }
.traits-list.traits-2col li { max-width: none; }
@media (max-width: 560px) { .traits-list.traits-2col { grid-template-columns: 1fr; } }

.calcul-exemple {
  background: var(--cream-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  margin: 1.3rem 0;
  box-shadow: var(--shadow-sm);
}
.calcul-exemple h3 { margin-bottom: 0.6rem; }
.calcul-exemple p { margin-bottom: 0.35rem; color: var(--brown); }

.calcul-section {
  position: relative;
  overflow: hidden;
  background: var(--cream-warm);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  text-align: center;
}
.calcul-section::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 240px; height: 240px;
  top: -110px; right: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166,187,167,0.25), transparent 70%);
  filter: blur(45px);
  pointer-events: none;
}
.calcul-form { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin: 1rem 0; }
.calcul-input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--brown);
}
.calcul-input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(166,187,167,0.18); }
.calcul-form .btn-primary {
  padding: 0.75rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
}
.calcul-resultat {
  background: var(--cream-card);
  border: 1px solid var(--sage);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-top: 1rem;
}
.calcul-resultat a { color: var(--sage-dark); font-weight: 600; }
.calcul-note { font-size: 0.9rem; margin-top: 0.9rem; }
.calcul-note a { color: var(--sage-dark); font-weight: 600; }

.citation-block {
  position: relative;
  overflow: hidden;
  background: rgba(166,187,167,0.06);
  border-left: 3px solid var(--sage);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.6rem;
  margin: 1.6rem 0;
}
.citation-block::before {
  content: '"';
  position: absolute;
  top: -1.2rem;
  left: 0.8rem;
  font-family: 'Space Grotesk', serif;
  font-size: 5.5rem;
  color: rgba(166,187,167,0.16);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}
.citation-block blockquote { position: relative; z-index: 1; }
.citation-block blockquote p { font-style: italic; color: var(--brown-mid); margin-bottom: 0.6rem; }
.citation-block cite { font-size: 0.85rem; color: var(--brown-muted); font-style: normal; }

.silo-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "num title" "desc desc";
  align-items: center;
  column-gap: 0.85rem;
  row-gap: 0.5rem;
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  text-decoration: none;
  color: var(--brown-mid);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.2s;
}
.silo-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--sage); }
.silo-card .silo-number { grid-area: num; }
.silo-card h3 { grid-area: title; color: var(--brown-dark); margin: 0; }
.silo-card p { grid-area: desc; font-size: 0.9rem; color: var(--brown-muted); margin: 0; }
.silo-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(166,187,167,0.14);
  color: var(--sage-dark);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.silo-card:hover .silo-number { background: var(--gradient-brand); color: #fff; }

.cta-inner { max-width: 640px; margin: 0 auto; }
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--gradient-brand);
  color: #fff;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(166,187,167,0.35);
  transition: filter 0.15s, transform 0.15s var(--ease), box-shadow 0.2s;
}
.btn-cta:hover { filter: brightness(0.95); transform: translateY(-1px); box-shadow: 0 12px 30px rgba(143,169,144,0.4); }

/* legal / simple text pages */
.legal-wrapper { max-width: 800px; margin: 0 auto; padding: 2.4rem 1.5rem 1rem; }
.legal-wrapper h2 { margin-top: 2rem; }
.legal-wrapper p, .legal-wrapper li { color: var(--brown-mid); }
.legal-wrapper ul { padding-left: 1.4rem; margin-bottom: 1rem; }

/* blog index extras */
.page-hero { position: relative; padding: 2.6rem 0 1.4rem; text-align: center; }
.page-hero h1 { max-width: 760px; margin: 0 auto 0.8rem; }
.page-hero .hero-sub { max-width: 620px; margin: 0 auto; }
.blog-intro { margin: 1.5rem 0 2.5rem; }
.blog-intro .prose { max-width: 820px; margin: 0 auto; }
.blog-grid-section { margin-bottom: 2rem; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 1.2rem;
  justify-content: center;
}
.blog-card-tag {
  display: inline-block;
  background: rgba(166,187,167,0.12);
  color: var(--sage-dark);
  border: 1px solid rgba(166,187,167,0.3);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
}
.blog-card-body h3 a { text-decoration: none; color: var(--brown-dark); }
.blog-card-body h3 a:hover { color: var(--sage-dark); }
.blog-card-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sage-dark);
  text-decoration: none;
  transition: transform 0.15s var(--ease);
}
.blog-card-link:hover { text-decoration: underline; transform: translateX(3px); }

/* nombres-maitres parent page components */
.example-box {
  background: var(--cream-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  margin: 1rem 0;
  box-shadow: var(--shadow-sm);
}
.example-box h4 { color: var(--brown-dark); margin-bottom: 0.5rem; }
.example-box p { margin-bottom: 0.3rem; color: var(--brown); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin: 1.4rem auto;
  max-width: 560px;
  justify-content: center;
}
.cards-grid .card { text-decoration: none; text-align: center; transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.cards-grid .card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-number {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--gradient-brand);
  color: #fff;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 2.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.9rem;
  box-shadow: var(--shadow-glow);
}
.card-link { display: inline-block; margin-top: 0.8rem; color: var(--sage-dark); font-weight: 700; font-size: 0.9rem; }
.cta-box {
  position: relative;
  overflow: hidden;
  background: var(--cream-warm);
  border-radius: var(--radius-lg);
  padding: 2.6rem 2rem;
  text-align: center;
  margin: 2.5rem 0;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-brand);
}
.cta-box::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 260px; height: 260px;
  bottom: -130px; left: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(174,199,196,0.28), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
.cta-box h2 { margin-bottom: 0.7rem; }
.cta-box p { max-width: 580px; margin: 0 auto 1.5rem; }
.faq-section { margin-top: 2.5rem; }
.faq-section > h2 { text-align: center; margin-bottom: 1.4rem; }

/* ===== NAV MEGA-MENU (desktop hover dropdowns) ===== */
.nav-links > li { display: flex; align-items: center; }
.has-dropdown { position: relative; }
.has-dropdown > a { padding: 26px 0; }            /* fills header height = continuous hover zone */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 320px;
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.2rem 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 200;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-title {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brown-dark);
  text-decoration: none;
  padding-bottom: 0.6rem;
  margin-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}
.dropdown-title:hover { color: var(--sage-dark); }
.dropdown-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brown-muted);
  margin: 0.85rem 0 0.5rem;
}
.dropdown-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.15rem 0.85rem; }
.dropdown-grid a {
  font-size: 0.85rem;
  color: var(--brown-mid);
  text-decoration: none;
  padding: 0.24rem 0.45rem;
  border-radius: 7px;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.dropdown-grid a:hover { background: rgba(166,187,167,0.15); color: var(--sage-dark); }
.dropdown-grid + .dropdown-title { margin-top: 0.9rem; }
.dropdown--compact { min-width: 210px; }
.dropdown-grid--col { grid-template-columns: 1fr; }

/* Menu "Les Grands Axes" : titres de section empilés, libellés longs autorisés à passer à la ligne */
.dropdown--axes { min-width: 340px; }
.dropdown--axes .dropdown-grid a { white-space: normal; }
.dropdown-title + .dropdown-title { margin-top: 0.9rem; }

/* Bouton "Mon Thème" : encadré fin (sur un span interne) — le lien <a> garde la pleine
   hauteur du header pour que son menu déroulant s'aligne avec les autres. */
.nav-links > li.has-dropdown > a[href^="/theme-numerologique"]::after { display: none; }
.nav-theme-frame {
  display: inline-block;
  border: 1px solid var(--brown-dark);
  border-radius: 7px;
  padding: 0.22rem 0.6rem;
  line-height: 1.1;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links > li.has-dropdown > a[href^="/theme-numerologique"]:hover .nav-theme-frame {
  background: var(--brown-dark);
  color: var(--cream-card);
}

/* ===== Menu "Découvrir la numérologie" : sous-menu vertical + flyout latéral ===== */
.dropdown--discover { min-width: 240px; padding: 0.5rem; }
.dropdown-title--arbre { margin: 0.25rem 0.45rem 0.65rem; cursor: default; user-select: none; }
.dropdown-title--arbre:hover { color: var(--brown-dark); }
/* .discover-item statique => le flyout s'ancre sur le menu mère (.dropdown--discover, absolu),
   donc il ne peut pas descendre plus bas que le bas du menu mère. */
.discover-item { position: static; }
.discover-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brown-dark);
  text-decoration: none;
}
.discover-link::after { display: none; }
.discover-caret { color: var(--brown-muted); font-weight: 700; }
.discover-item:hover > .discover-link,
.discover-item:focus-within > .discover-link {
  background: rgba(166,187,167,0.15);
  color: var(--sage-dark);
}
.flyout {
  position: absolute;
  top: 0; /* position verticale ajustée par JS (aligné au titre survolé, sans dépasser le bas) */
  left: 100%;
  margin-left: 0.45rem;
  min-width: 340px;
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.2rem 1.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 210;
}
.discover-item:hover > .flyout,
.discover-item:focus-within > .flyout {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
/* Tunnel invisible reliant la carte mère au flyout (évite la disparition au survol) */
.flyout::before { content: ""; position: absolute; top: 0; left: -1.15rem; width: 1.15rem; height: 100%; }
/* Variante : flyout qui s'ouvre vers la GAUCHE (menu proche du bord droit) */
.dropdown--left .flyout { left: auto; right: 100%; margin-left: 0; margin-right: 0.45rem; transform: translateX(6px); }
.dropdown--left .discover-item:hover > .flyout,
.dropdown--left .discover-item:focus-within > .flyout { transform: translateX(0); }
.dropdown--left .flyout::before { left: auto; right: -1.15rem; }
/* Élément de menu non cliquable (ouvre seulement son sous-menu) */
.nav-static { cursor: default; }
/* Flèche d'accordéon : masquée sur desktop, affichée en mobile (cf. media query) */
.nav-acc-arrow { display: none; }
.flyout .dropdown-sub:first-child { margin-top: 0; }

/* ===== MODERN CONTENT SECTIONS (chemin / guides) ===== */
/* Clean headings (no numbered badges) with a light accent + lead paragraph */
.content-section h2 {
  position: relative;
  padding-left: 0.95rem;
}
.content-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--sage), var(--celadon));
}
.content-section h2 + p {
  color: var(--brown);
  font-size: 1.04rem;
  line-height: 1.75;
}
/* centered blocks (calcul / CTA) keep no accent bar */
.calcul-section h2,
.cta-section h2,
.cta-box h2,
.faq-section h2 { padding-left: 0; }
.calcul-section h2::before,
.cta-section h2::before,
.cta-box h2::before,
.faq-section h2::before,
.content-section h2.no-accent::before { display: none; }

/* ===== PREMIUM OVERVIEW GRID (signification pages) ===== */
.silo-premium {
  grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
  gap: 1.15rem;
  margin-top: 1.6rem;
}
.silo-premium .silo-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "num title" "desc desc";
  align-items: center;
  column-gap: 0.9rem;
  row-gap: 0.6rem;
  text-align: left;
  padding: 1.5rem 1.5rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, var(--cream-card) 0%, var(--cream-warm) 100%);
  position: relative;
  overflow: hidden;
}
.silo-premium .silo-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sage), var(--celadon));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.silo-premium .silo-card::after {
  content: "→";
  position: absolute;
  top: 1.55rem; right: 1.4rem;
  color: var(--sage-dark);
  font-weight: 700;
  font-size: 1.05rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.silo-premium .silo-card:hover { border-color: var(--sage); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.silo-premium .silo-card:hover::before { transform: scaleX(1); }
.silo-premium .silo-card:hover::after { opacity: 1; transform: translateX(0); }
.silo-premium .silo-number {
  grid-area: num;
  width: 52px;
  height: 52px;
  margin: 0;
  font-size: 1.4rem;
  background: linear-gradient(140deg, var(--sage), var(--celadon));
  color: #fff;
  box-shadow: 0 8px 18px rgba(166,187,167,0.4);
}
.silo-premium .silo-card h3 { grid-area: title; margin: 0; font-size: 1.06rem; padding-right: 1.4rem; }
.silo-premium .silo-card p { grid-area: desc; font-size: 0.86rem; margin: 0; }

/* ===== HOME: composantes grid ===== */
.compo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 1rem; }
/* gradient cards (same family as the chemin / année overview cards) */
.compo-grid .card, .card--bordered {
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, var(--cream-card) 0%, var(--cream-warm) 100%);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s;
}
.compo-grid .card:hover, .card--bordered:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--sage); }
.compo-grid .card h3 { margin-bottom: 0.4rem; }
.compo-grid .card p { font-size: 0.85rem; line-height: 1.6; color: var(--brown-muted); }
/* custom SVG icons in the round badge */
.feature-icon svg { width: 24px; height: 24px; color: var(--sage-dark); }
.compo-highlight {
  background: linear-gradient(160deg, rgba(166,187,167,0.2), rgba(174,199,196,0.13));
  border: 1px solid var(--sage);
}
.compo-highlight h3 { color: var(--sage-dark); }
.compo-highlight p { color: var(--brown-mid) !important; font-size: 0.9rem !important; }
/* highlight: icon on the right, on the same line as the title */
.compo-highlight-head { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.5rem; }
.compo-highlight-head h3 { margin: 0; }
.compo-highlight-head .feature-icon { margin: 0; flex-shrink: 0; color: var(--sage-dark); }
@media (max-width: 760px) { .compo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .compo-grid { grid-template-columns: 1fr; } }

/* calcul: breathing space between the selector and the text below */
.calcul-form { margin: 1rem 0 1.7rem; }
.calcul-note { margin-top: 1.3rem; }
/* remove number-input spinner arrows */
.calcul-input[type=number]::-webkit-outer-spin-button,
.calcul-input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calcul-input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* ===== PREMIUM BLOG INDEX ===== */
.page-hero { padding: 3.6rem 0 1.4rem; }
.blog-grid { gap: 1.6rem; }
.blog-card { border: 1px solid var(--border); position: relative; overflow: hidden; }
.blog-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sage), var(--celadon));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.blog-card:hover::before { transform: scaleX(1); }
.blog-card-body { padding: 1.5rem 1.6rem; }
.blog-card-body h3 { font-size: 1.05rem; line-height: 1.35; margin-bottom: 0.6rem; }
.blog-intro .prose {
  background: linear-gradient(170deg, var(--cream-card), var(--cream-warm));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
}
.blog-grid-section > h2 { position: relative; padding-bottom: 0.6rem; margin-bottom: 0.4rem; }
.blog-grid-section > h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--sage), var(--celadon));
  margin-top: 0.6rem;
}

/* =====================================================
   MOTION
===================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes softPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(166,187,167,0.28); }
  50%      { box-shadow: 0 0 0 6px rgba(166,187,167,0.08); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--cream-card); border-bottom: 1px solid var(--border); flex-direction: column; padding: 1.2rem 1.5rem; gap: 1rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }

  /* ===== Menu mobile : accordéon (tout replié par défaut) ===== */
  .nav-links { max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav-links > li { display: block; }
  .has-dropdown { position: relative; }
  .has-dropdown > a { padding: 0.6rem 2.6rem 0.6rem 0; display: block; }

  /* flèche d'accordéon niveau 0 (titres principaux), ajoutée par JS */
  .nav-acc-arrow {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 0.15rem; right: 0;
    width: 2.6rem; height: 2.6rem;
    background: none; border: none; padding: 0; cursor: pointer;
    color: var(--brown-mid); font-size: 0.75rem;
    transition: transform 0.18s ease;
  }
  .nav-acc-arrow::before { content: "\25BC"; }
  .nav-acc-arrow.open { transform: rotate(180deg); }

  /* dropdowns repliés par défaut, ouverts via .open */
  .dropdown {
    display: none;
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; box-shadow: none; border: none; background: transparent;
    padding: 0.2rem 0 0.5rem 0.8rem; border-radius: 0;
  }
  .dropdown.open { display: block; }
  .dropdown-grid { grid-template-columns: 1fr 1fr; }
  .dropdown-grid a { white-space: normal; }
  .dropdown--discover { min-width: 0; padding: 0; }

  /* carte mère : le titre reste cliquable (navigue), le caret = toggle des pages filles */
  .discover-item { position: relative; }
  .discover-caret {
    display: flex; align-items: center; justify-content: flex-end;
    min-width: 2.6rem; padding: 0.55rem 0 0.55rem 0.8rem; margin: -0.55rem 0;
    font-size: 1.3rem; color: var(--brown-mid); cursor: pointer;
    transition: transform 0.18s ease;
  }
  .discover-caret.open { transform: rotate(90deg); }

  /* flyout (pages filles) replié par défaut, ouvert via .open */
  .flyout {
    display: none;
    position: static; opacity: 1; visibility: visible; transform: none;
    min-width: 0; max-height: none; overflow: visible;
    box-shadow: none; border: none; background: transparent;
    margin-left: 0; padding: 0.2rem 0 0.4rem 0.8rem;
  }
  .flyout.open { display: block; }
  .flyout::before { display: none; }

  /* Mobile : on neutralise toute variante de positionnement (--left, --axes,
     --compact, centrage desktop…) pour empiler les cartes les unes sous les
     autres, jamais décalées hors de l'écran. */
  .nav-links .dropdown,
  .nav-links .flyout {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
  }

  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 2.8rem 0; }

  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .hero::before, .hero::after, .hero-section::before { display: none; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; text-align: center; }
  .silo-links { grid-template-columns: 1fr 1fr; }
}
