/* ============================================
   FMB — base.css
   Design tokens + layout + typographie + utils
   ============================================ */

:root {
  /* Couleurs */
  --white:       #ffffff;
  --ink:         #0f1117;
  --ink-soft:    #4a5064;
  --ink-muted:   #8a95a8;
  --navy:        #1b2d4f;
  --navy-deep:   #0f1b2e;
  --gold:        #c9a227;
  --gold-light:  #e8c84a;
  --accent:      #2d5be3;
  --surface:     #f6f7f9;
  --surface-2:   #edf0f6;
  --line:        #e4e8f0;

  /* Espacement */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 5rem;
  --s7: 7rem;

  /* Typographie */
  --font-sans:  Inter, "Segoe UI", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  /* Conteneur */
  --max-w: 80rem;

  /* Géométrie UI */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Ombres */
  --sh-sm:  0 1px 4px rgb(15 17 23 / 6%);
  --sh-md:  0 4px 16px rgb(15 17 23 / 8%);
  --sh-lg:  0 12px 40px rgb(15 17 23 / 10%);
  --sh-xl:  0 20px 60px rgb(15 17 23 / 14%);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 160ms;
  --mid:  300ms;
  --slow: 560ms;
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset, 5.5rem);
}

/* Marge supérieure sur chaque cible d'ancre — renforce scroll-padding-top */
[id] {
  scroll-margin-top: var(--scroll-offset, 5.5rem);
}

body {
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ── Utilitaires ── */
.container {
  width: min(100% - 3rem, var(--max-w));
  margin-inline: auto;
}

.container--narrow {
  max-width: 52rem;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--fast) var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* ── Cursor custom ── */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: 9000;
  transform: translate(-50%, -50%);
  transition: transform var(--fast) var(--ease),
              width var(--mid) var(--ease),
              height var(--mid) var(--ease),
              opacity var(--mid) var(--ease);
  opacity: 0;
}

body.cursor-ready .cursor-dot {
  opacity: 1;
}

body.cursor-hover .cursor-dot {
  width: 40px;
  height: 40px;
  background: rgb(201 162 39 / 20%);
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 85%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--mid) var(--ease),
              box-shadow var(--mid) var(--ease);
}

.nav.scrolled {
  border-color: var(--line);
  box-shadow: var(--sh-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
  gap: 1rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.nav-brand svg {
  flex-shrink: 0;
}

.nav-brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
}

.nav-brand-text {
  line-height: 1.1;
}

.nav-brand-baseline {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.2;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: background var(--fast) var(--ease),
              color var(--fast) var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--surface-2);
  color: var(--navy);
}

.nav-cta {
  color: var(--navy) !important;
  font-weight: 700 !important;
  border: 1.5px solid var(--line) !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--navy) !important;
  color: #fff !important;
  border-color: var(--navy) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--mid) var(--ease),
              opacity var(--fast) var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Menu mobile (panneau latéral) ── */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgb(0 0 0 / 45%);
  opacity: 0;
  transition: opacity var(--mid) var(--ease);
}
.mobile-menu-overlay[hidden] { display: none; }
.mobile-menu-overlay.is-open  { opacity: 1; }

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(88vw, 360px);
  background: var(--white);
  box-shadow: -6px 0 40px rgb(0 0 0 / 18%);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--mid) var(--ease);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { transform: translateX(0); }

/* Empêcher le scroll du body pendant que le menu est ouvert */
body.menu-open { overflow: hidden; }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.mobile-menu-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--s3) var(--s3) var(--s4);
  gap: var(--s4);
  overflow-y: auto;
}

.mobile-menu-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu-nav a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.mobile-menu-nav a:hover,
.mobile-menu-nav a:focus-visible {
  background: var(--surface-2);
  color: var(--navy-deep);
}
.mobile-menu-active {
  background: rgb(201 162 39 / 10%);
  color: var(--navy) !important;
}

.mobile-menu-sections {
  border-top: 1px solid var(--line);
  padding-top: var(--s3);
}
.mobile-menu-sections-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--s2);
  padding-left: 0.25rem;
}
.mobile-menu-sections ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mobile-menu-sections a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  background: var(--surface-2);
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.mobile-menu-sections a:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ── Hero ── */
.hero {
  min-height: 92dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 50%, rgb(201 162 39 / 6%) 0, transparent 52%),
    radial-gradient(circle at 12% 80%, rgb(45 91 227 / 5%) 0, transparent 40%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--s5);
  width: min(100% - 3rem, var(--max-w));
  margin-inline: auto;
  padding: var(--s7) 0 var(--s6);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s3);
}

.tag::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: currentcolor;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: var(--s3);
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  color: var(--ink-soft);
  max-width: 54ch;
  line-height: 1.7;
  margin-bottom: var(--s4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ── Geo card (stats hero) ── */
.geo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  min-width: 260px;
}

.geo-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.06;
  pointer-events: none;
  width: 90%;
  max-width: 300px;
}

.geo-stats {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--line);
}

.stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.83rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* ── Scroll hint ── */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--s4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.scroll-line {
  width: 1.5px;
  height: 40px;
  background: linear-gradient(to bottom, var(--ink-muted), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.6); opacity: 0.4; }
}

/* ── Bande défilante ── */
.band {
  border-block: 1px solid var(--line);
  padding: 1rem 0;
  overflow: hidden;
  background: var(--surface);
}

.band-inner {
  display: flex;
  gap: 1rem;
  white-space: nowrap;
  animation: band-scroll 28s linear infinite;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.band-inner .dot {
  color: var(--gold);
}

@keyframes band-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Section générique ── */
.section {
  padding: var(--s7) 0;
}

.section--tight {
  padding: var(--s5) 0;
}

.section-dark {
  background: var(--navy-deep);
  color: var(--white);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--s3);
}

.section-label-light {
  color: rgb(255 255 255 / 45%);
}

.section-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0;
  font-weight: 700;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: var(--s5);
}

.section-title-light {
  color: var(--white);
}

.section-cta-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgb(255 255 255 / 80%);
  margin-bottom: var(--s4);
  max-width: 50ch;
}

/* ── Cards grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

/* ── Symbols layout (dark section) ── */
.symbols-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

.symbol-item {
  padding: var(--s4);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 4%);
  transition: background var(--mid) var(--ease),
              border-color var(--mid) var(--ease);
}

.symbol-item:hover {
  background: rgb(255 255 255 / 8%);
  border-color: rgb(201 162 39 / 40%);
}

.symbol-icon {
  margin-bottom: var(--s3);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(201 162 39 / 10%);
  border-radius: var(--radius);
}

.symbol-item h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: var(--s2);
}

.symbol-item p {
  color: rgb(255 255 255 / 65%);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Section split ── */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 60vh;
  padding: 0;
}

.split-left {
  display: flex;
  align-items: center;
  padding: var(--s7) max(var(--s5), (100% - var(--max-w) / 2));
  padding-left: calc((100vw - var(--max-w)) / 2 + var(--s5));
  border-right: 1px solid var(--line);
}

.split-content {
  max-width: 44ch;
}

.split-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.8vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: var(--s3);
}

.split-content p {
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: var(--s3);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--ink);
}

.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10l4 4 6-7' stroke='%23C9A227' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 100%;
}

/* ── Mosaic décorative ── */
.split-right {
  display: flex;
  align-items: stretch;
}

.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.mosaic-cell {
  aspect-ratio: 1;
}

.mosaic-cell.dark {
  background: var(--navy-deep);
}

.mosaic-cell.light {
  background: var(--surface-2);
}

/* ── Page d'accueil (index) ── */
.home-intro {
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.home-intro-line {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.home-intro-aim {
  margin-top: var(--s4);
  margin-bottom: var(--s3);
  font-size: 1.05rem;
}
.home-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: var(--s3);
  line-height: 1.6;
}
.home-lead--light {
  color: rgb(255 255 255 / 75%);
}
.home-cliches {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s4);
}
.home-cliches li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--ink-soft);
}
.home-cliches li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.home-cliches--light li {
  color: rgb(255 255 255 / 70%);
}
.home-cliches--light li::before {
  color: var(--gold);
}
.home-reality {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--s2);
}
.home-reality--light {
  color: var(--white);
  margin-bottom: 0;
}
.home-reality-text {
  color: var(--ink-soft);
  line-height: 1.7;
}
.section-dark .home-reality-text {
  color: rgb(255 255 255 / 70%);
}

/* Grille des 6 thèmes de navigation */
.home-nav-themes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
  margin-top: var(--s5);
}
.home-nav-card {
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color var(--mid) var(--ease), box-shadow var(--mid) var(--ease);
}
.home-nav-card:hover {
  border-color: var(--gold);
  box-shadow: var(--sh-md);
}
.home-nav-emoji {
  display: block;
  font-size: 1.75rem;
  margin-bottom: var(--s2);
}
.home-nav-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: var(--s2);
}
.home-nav-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--s3);
}
.home-nav-link {
  font-weight: 600;
  color: var(--navy);
  text-underline-offset: 0.2em;
}
.home-nav-link:hover {
  color: var(--gold);
}
.home-nav-links {
  margin-bottom: 0;
  font-size: 0.9rem;
}
.home-audience {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s4);
}
.home-audience li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--ink-soft);
}
.home-audience li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.section-invitation .home-intro {
  text-align: left;
}
.home-invitation-joke {
  margin-top: var(--s4);
  font-style: italic;
  color: var(--ink-soft);
}

/* ── FAQ ── */
.faq-grid {
  display: grid;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s3) 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  list-style: none;
  transition: color var(--fast) var(--ease);
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--mid) var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item p {
  padding: 0 0 var(--s3);
  color: var(--ink-soft);
  max-width: 72ch;
  line-height: 1.75;
}

/* ── FAQ thématique (page dédiée, Q/R toujours visibles pour SEO/IA) ── */
.faq-thematic-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-thematic-item {
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
}

.faq-thematic-item:first-child {
  padding-top: 0;
}

.faq-thematic-question {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 var(--s2);
  line-height: 1.3;
}

.faq-thematic-answer {
  margin: 0;
}

.faq-thematic-answer p {
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 72ch;
  margin: 0;
}

.faq-thematic-back {
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
}

/* Navigation Précédent / Retour hub / Suivant en bas des FAQ thématiques */
.faq-thematic-nav {
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}
.faq-thematic-nav__prev { flex: 0 1 auto; }
.faq-thematic-nav__center { flex: 0 1 auto; }
.faq-thematic-nav__next { flex: 0 1 auto; margin-left: auto; }
/* (géré dans le bloc @media width <= 48rem global) */

/* ── FAQ accueil (liens vers FAQ thématiques) ── */
.faq-accueil {
  margin-bottom: var(--s5);
  padding-bottom: var(--s5);
  border-bottom: 1px solid var(--line);
}

.faq-accueil-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.faq-accueil-link {
  display: block;
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.faq-accueil-link:hover {
  border-color: var(--gold);
  box-shadow: var(--sh-sm);
}

.faq-accueil-link-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.faq-accueil-link-desc {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ── FAQ accueil (page hub) ── */
.faq-accueil-intro {
  margin-bottom: var(--s4);
}

.faq-accueil-intro p {
  margin-bottom: var(--s2);
}

.faq-accueil-notice {
  margin-bottom: var(--s5);
  padding: var(--s3);
  border: 1px solid rgb(201 162 39 / 35%);
  border-radius: var(--radius-lg);
  background: rgb(201 162 39 / 8%);
}

.faq-accueil-notice-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 var(--s1);
}

.faq-accueil-notice p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.faq-accueil-sections {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin-bottom: var(--s5);
}

.faq-accueil-section {
  padding: var(--s4);
  position: relative;
}

.faq-accueil-section-num {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: var(--s1);
  line-height: 1;
}

.faq-accueil-section-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 var(--s2);
  line-height: 1.25;
}

.faq-accueil-section-questions {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: var(--s2);
  font-style: italic;
}

.faq-accueil-section p:not(.faq-accueil-section-questions) {
  margin-bottom: var(--s2);
  color: var(--ink);
  line-height: 1.65;
}

.faq-accueil-cta {
  display: inline-block;
  margin-top: var(--s1);
  font-size: 0.9rem;
  font-weight: 600;
}

.faq-accueil-cta--soon {
  color: var(--ink-muted);
  font-style: italic;
  font-weight: 500;
  cursor: default;
}

.faq-accueil-pourquoi {
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
}

.faq-accueil-pourquoi .article-list {
  margin-top: 0.5rem;
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--slow) var(--ease),
    transform var(--slow) var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Footer ── */
.footer {
  background: var(--navy-deep);
  color: var(--white);
  padding: var(--s5) 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.footer-copy {
  color: rgb(255 255 255 / 50%);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgb(255 255 255 / 45%);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--fast) var(--ease);
}

.footer-links a:hover {
  color: var(--gold);
}

/* ════════════════════════════════
   Responsive
   ════════════════════════════════ */

/* ── Tablette large (≤ 72rem / ~1152px) ── */
@media (width <= 72rem) {
  .hero-content {
    grid-template-columns: 1fr;
    padding: var(--s6) 0 var(--s5);
    gap: var(--s4);
  }

  .hero-right {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-bottom: var(--s5);
  }

  .hero-scroll-hint {
    display: none;
  }
}

/* ── Tablette (≤ 60rem / ~960px) : burger menu ── */
@media (width <= 60rem) {
  .cards-grid,
  .symbols-layout,
  .home-nav-themes {
    grid-template-columns: 1fr;
  }

  .section-split {
    grid-template-columns: 1fr;
  }

  .split-left {
    padding: var(--s6) var(--s4);
  }

  .split-right {
    min-height: 300px;
  }

  .nav-brand-baseline {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ── Mobile (≤ 48rem / ~768px) ── */
@media (width <= 48rem) {
  /* Container */
  .container { padding-inline: var(--s3); }

  /* Nav */
  .nav-inner { padding-inline: var(--s3); }

  /* Hero */
  .hero { padding-bottom: var(--s4); }
  .hero-content { padding: var(--s4) 0 var(--s3); gap: var(--s3); }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s2);
  }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .geo-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s2);
  }
  .stat-number { font-size: 1.5rem; }
  .stat-label  { font-size: 0.7rem; }

  /* Bande défilante */
  .band { display: none; }

  /* Sections */
  .section       { padding: var(--s5) 0; }
  .section--tight { padding: var(--s4) 0; }

  /* Split : cacher la mosaïque décorative */
  .split-right { display: none; }
  .split-left  { padding: var(--s5) var(--s3); }
  .section-split { grid-template-columns: 1fr; }

  /* Check-list */
  .check-list { font-size: 0.92rem; }

  /* Cards */
  .home-nav-card { padding: var(--s3); }
  .home-nav-themes { gap: var(--s3); }

  /* Intro accueil */
  .home-intro { text-align: left; }
  .section-cta-lead { max-width: none; }

  /* Grille FAQ thématique */
  .faq-thematic-nav {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s2);
  }
  .faq-thematic-nav__next { margin-left: 0; }
  .faq-thematic-nav .btn { font-size: 0.88rem; text-align: center; justify-content: center; }

  /* Page hero (pages intérieures) */
  .page-hero { padding: var(--s4) 0 var(--s3); }

  /* Article body */
  .article-body .container--narrow { padding-inline: var(--s3); }

  /* Subnav */
  .subnav-links a { padding: 0.55rem 0.75rem; font-size: 0.78rem; }

  /* FAQ accordion */
  .faq-item summary { font-size: 0.97rem; }

  /* Prose */
  .prose { font-size: 0.97rem; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s3);
  }
  .footer-links { flex-wrap: wrap; gap: 0.75rem; }
}

/* ── Petit mobile (≤ 30rem / ~480px) ── */
@media (width <= 30rem) {
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.6rem; }
  .page-hero-title { font-size: 1.9rem; }
  .home-nav-card { padding: var(--s2) var(--s3); }
  .geo-stats { grid-template-columns: 1fr; gap: var(--s2); }
  .stat-number { font-size: 1.8rem; }
  .stat-label  { font-size: 0.8rem; }
  .container { padding-inline: var(--s2); }
  .hero-content { padding: var(--s3) 0; }
  .section { padding: var(--s4) 0; }
  .section-cta-lead { font-size: 1rem; }
  .tag { font-size: 0.7rem; }
  .btn { font-size: 0.88rem; padding: 0.7rem 1.2rem; }
}

/* ── Lien actif dans la nav ── */
.nav-active {
  color: var(--navy) !important;
  font-weight: 700 !important;
  background: rgb(201 162 39 / 10%) !important;
}

.nav-active:hover,
.nav-active:focus-visible {
  background: rgb(201 162 39 / 16%) !important;
}

/* ── Bouton fermer menu mobile ── */
.mobile-menu-close {
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ink-soft);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  flex-shrink: 0;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}

.mobile-menu-close:hover {
  background: var(--surface-2);
  color: var(--navy);
}

/* ── Sub-navigation ── */
.subnav {
  background: var(--surface);
  border-top: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.subnav::-webkit-scrollbar {
  display: none;
}

.subnav .container {
  padding-block: 0;
}

.subnav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.subnav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  letter-spacing: 0.01em;
  transition:
    color var(--fast) var(--ease),
    border-color var(--fast) var(--ease),
    background var(--fast) var(--ease);
}

.subnav-links a:hover {
  color: var(--navy);
  background: var(--surface-2);
}

.subnav-links a.subnav-active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

/* ── Page hero (pages intérieures) ── */
.page-hero {
  padding: var(--s5) 0 var(--s4);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 var(--s2);
}

.page-hero-sub {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
  line-height: 1.65;
}

/* ── Fil d'Ariane ── */
.breadcrumb {
  margin-bottom: var(--s2);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.35rem;
  color: var(--ink-muted);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color var(--fast) var(--ease);
}

.breadcrumb a:hover {
  color: var(--navy);
}

/* ── Grille obédiences ── */
.obedience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s3);
  margin-top: var(--s3);
}

.obedience-card {
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--mid) var(--ease), transform var(--mid) var(--ease);
}

.obedience-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.obedience-abbr {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.02em;
  margin-bottom: var(--s1);
}

.obedience-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: var(--s1);
}

.obedience-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
}

/* ── Liste rites ── */
.rite-list {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin-top: var(--s3);
}

.rite-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--sh-sm);
}

.rite-badge {
  flex-shrink: 0;
  min-width: 56px;
  padding: 0.4rem 0.6rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgb(201 162 39 / 12%);
  border: 1px solid rgb(201 162 39 / 30%);
  border-radius: var(--radius-sm);
}

.rite-item h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: var(--s1);
}

.rite-item p {
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
}

/* ── Annuaire loges ── */
.lodge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s3);
}

.lodge-card {
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  transition: box-shadow var(--mid) var(--ease), transform var(--mid) var(--ease);
}

.lodge-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.lodge-card--wip {
  opacity: 0.7;
  background: var(--surface);
}

.lodge-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lodge-badge {
  display: inline-flex;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--white);
}

.lodge-badge--glnf {
  background: var(--ink);
}

.lodge-rite {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  background: rgb(201 162 39 / 10%);
  border: 1px solid rgb(201 162 39 / 25%);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.lodge-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0;
}

.lodge-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.lodge-info-label {
  font-weight: 700;
  color: var(--ink);
  margin-right: 0.3rem;
}

.lodge-wip {
  font-size: 0.88rem;
  color: var(--ink-muted);
  font-style: italic;
  margin: 0;
}

.lodge-btn {
  margin-top: auto;
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
}

/* ── Agenda / événements ── */
.event-list {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.event-card {
  display: flex;
  gap: var(--s3);
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--mid) var(--ease), transform var(--mid) var(--ease);
}

.event-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.event-date {
  flex-shrink: 0;
  width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0.3rem;
  gap: 0.1rem;
}

.event-day {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--navy);
}

.event-month {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.event-content {
  flex: 1;
  min-width: 0;
}

.event-content h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0.4rem 0 0.5rem;
}

.event-content p {
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
  line-height: 1.65;
}

.event-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ── WIP / placeholder section ── */
.wip-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s2);
  padding: var(--s5) var(--s4);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.wip-icon {
  opacity: 0.6;
}

.wip-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: rgb(201 162 39 / 8%);
  border: 1px solid rgb(201 162 39 / 25%);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.wip-note svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ── Footer liens utilitaires ── */
.footer-util {
  opacity: 0.5;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-dot {
    display: none;
  }
}
