/* ================================================================
   MENGO CONSULTING — DESIGN SYSTEM "LE TITRE"
   Concept : Vos droits ont un titre.
   Fonts   : EB Garamond (headings) · Inter (body)
   ================================================================ */

/* ── VARIABLES ────────────────────────────────────────────────── */
:root {
  /* Client palette */
  --bleu-royal:       #0033aa;
  --bleu-institution: #0052cc;
  --bleu-lumineux:    #3b82f6;
  --bleu-clair:       #60a5fa;
  --cyan-soft:        #93c5fd;

  /* Dark surfaces (hero) */
  --navy-deep:    #020c1b;
  --navy-mid:     #041533;
  --navy-bright:  #0a2060;

  /* Light surfaces */
  --blanc:       #ffffff;
  --gris-froid:  #f7f9ff;
  --gris-sec:    #eef2fb;
  --gris-border: #dde6f7;

  /* Text */
  --texte:       #0d1b3e;
  --texte-sec:   #4a5a80;
  --texte-muted: #8fa0c4;

  /* Typography */
  --font-serif: 'EB Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  /* Easing */
  --ease-stamp:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.45, 0, 0.55, 1);

  /* Glassmorphism — dark bg */
  --glass-d-bg:     rgba(255,255,255,0.05);
  --glass-d-border: rgba(255,255,255,0.10);
  --glass-d-blur:   blur(20px) saturate(1.3);
  --glass-d-shadow: 0 8px 40px rgba(0,0,0,0.30);

  /* Glassmorphism — light bg */
  --glass-l-bg:     rgba(255,255,255,0.68);
  --glass-l-border: rgba(255,255,255,0.92);
  --glass-l-blur:   blur(18px) saturate(1.5);
  --glass-l-shadow: 0 4px 24px rgba(0,51,170,0.08), inset 0 1px 0 rgba(255,255,255,0.8);

  /* Shadows */
  --shadow-sm:   0 2px 8px  rgba(0,51,170,0.06);
  --shadow-md:   0 4px 24px rgba(0,51,170,0.10);
  --shadow-lg:   0 8px 40px rgba(0,51,170,0.16);
  --shadow-card: 0 1px 0 var(--gris-border), 0 4px 16px rgba(0,51,170,0.07);

  /* Border radii */
  --r-xs:   6px;
  --r-sm:   12px;
  --r-md:   20px;
  --r-lg:   32px;
  --r-xl:   48px;
  --r-full: 9999px;

  /* Layout */
  --container-max: 1200px;
  --section-py:    clamp(5rem, 9vw, 9rem);
  --nav-h:         80px;
}

/* ── RESET ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--texte);
  background: var(--blanc);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── TYPOGRAPHY ───────────────────────────────────────────────── */
.t-display {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6.5vw, 6.5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.t-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.t-h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 500;
  line-height: 1.12;
}
.t-h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.25;
}
.t-body  { font-size: 1rem;   line-height: 1.72; color: var(--texte-sec); }
.t-small { font-size: 0.875rem; line-height: 1.65; color: var(--texte-sec); }
.t-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bleu-lumineux);
}
.t-label--inv { color: var(--cyan-soft); }

/* ── LAYOUT UTILITIES ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}
.container--wide {
  max-width: 1400px;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* ── GLASSMORPHISM ────────────────────────────────────────────── */
.glass-dark {
  background: var(--glass-d-bg);
  backdrop-filter: var(--glass-d-blur);
  -webkit-backdrop-filter: var(--glass-d-blur);
  border: 1px solid var(--glass-d-border);
  box-shadow: var(--glass-d-shadow);
}
.glass-light {
  background: var(--glass-l-bg);
  backdrop-filter: var(--glass-l-blur);
  -webkit-backdrop-filter: var(--glass-l-blur);
  border: 1px solid var(--glass-l-border);
  box-shadow: var(--glass-l-shadow);
}

/* ── SCROLL REVEAL SYSTEM ─────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition:
    opacity  0.75s var(--ease-stamp),
    transform 0.75s var(--ease-stamp);
  will-change: opacity, transform;
}
[data-reveal="fade"] {
  transform: translateY(0) scale(1);
}
[data-reveal="left"] {
  transform: translateX(-40px);
}
[data-reveal="right"] {
  transform: translateX(40px);
}
[data-reveal="stamp"] {
  transform: scale(1.05);
}
[data-reveal].in-view {
  opacity: 1;
  transform: none;
}

/* Stagger delays */
[data-delay="1"] { transition-delay: 0.10s; }
[data-delay="2"] { transition-delay: 0.20s; }
[data-delay="3"] { transition-delay: 0.30s; }
[data-delay="4"] { transition-delay: 0.40s; }
[data-delay="5"] { transition-delay: 0.50s; }
[data-delay="6"] { transition-delay: 0.60s; }
[data-delay="7"] { transition-delay: 0.70s; }

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--r-full);
  transition: all 0.25s var(--ease-stamp);
  white-space: nowrap;
}
.btn--primary {
  background: var(--bleu-royal);
  color: var(--blanc);
}
.btn--primary:hover {
  background: var(--bleu-institution);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,51,170,0.28);
}
.btn--glass {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  color: var(--blanc);
  border: 1.5px solid rgba(255,255,255,0.22);
}
.btn--glass:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: var(--bleu-royal);
  border: 1.5px solid var(--bleu-clair);
}
.btn--outline:hover {
  background: var(--gris-froid);
  border-color: var(--bleu-institution);
}
.btn--whatsapp {
  background: #25d366;
  color: var(--blanc);
}
.btn--whatsapp:hover {
  background: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}
.btn--ghost {
  padding: 0;
  border-radius: 0;
  color: var(--bleu-royal);
  font-size: 0.875rem;
}
.btn--ghost .arrow { transition: transform 0.2s ease; }
.btn--ghost:hover .arrow { transform: translateX(5px); }

.btn--ghost-inv {
  padding: 0;
  border-radius: 0;
  color: var(--cyan-soft);
  font-size: 0.875rem;
}
.btn--ghost-inv .arrow { transition: transform 0.2s ease; }
.btn--ghost-inv:hover .arrow { transform: translateX(5px); }

/* ── SCROLL PROGRESS ──────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--bleu-royal), var(--bleu-lumineux));
  z-index: 500;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}

/* ── NAVIGATION ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

/* Default: transparent (over dark hero on home) */
.nav { background: transparent; border-bottom: 1px solid transparent; }

/* Scrolled or on inner pages */
.nav.nav--solid,
.nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--gris-border);
}

.nav__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}
.nav__logo-seal {
  width: 40px; height: 40px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.nav__logo:hover .nav__logo-seal { transform: rotate(15deg); }
.nav__logo-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--blanc);
  transition: color 0.3s ease;
}
.nav__logo-sub {
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color 0.3s ease;
}

/* Dark nav text when solid */
.nav--solid .nav__logo-name,
.nav.scrolled .nav__logo-name { color: var(--bleu-royal); }
.nav--solid .nav__logo-sub,
.nav.scrolled .nav__logo-sub  { color: var(--texte-sec); }

/* Nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1.5px;
  background: var(--bleu-lumineux);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__link:hover,
.nav__link.active { color: var(--blanc); }
.nav__link.active::after,
.nav__link:hover::after { transform: scaleX(1); }

/* Dark state */
.nav--solid .nav__link,
.nav.scrolled .nav__link  { color: var(--texte-sec); }
.nav--solid .nav__link:hover,
.nav.scrolled .nav__link:hover,
.nav--solid .nav__link.active,
.nav.scrolled .nav__link.active { color: var(--bleu-royal); }

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  color: var(--blanc);
}
.nav--solid .nav__toggle span,
.nav.scrolled .nav__toggle span { background: var(--bleu-royal); }

/* Mobile menu */
.nav__mobile {
  position: fixed;
  inset: 0;
  background: var(--blanc);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav__mobile.open { opacity: 1; pointer-events: all; }
.nav__mobile-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 1.5rem;
  color: var(--texte-sec);
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav__mobile-link {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--texte);
  transition: color 0.2s ease;
}
.nav__mobile-link:hover { color: var(--bleu-royal); }

/* ── HERO (INDEX ONLY) ────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--navy-deep);
  display: grid;
  grid-template-columns: 52% 48%;
  overflow: hidden;
}

/* Background layers — parallax targets */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.hero__orb--1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,52,204,0.28) 0%, transparent 70%);
  top: -200px; right: -150px;
}
.hero__orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
  bottom: -100px; left: 10%;
}
.hero__orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(147,197,253,0.10) 0%, transparent 70%);
  top: 30%; left: 40%;
}

/* Grid background dots */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 44px 44px;
}

/* ── HERO CONTENT ─────────────────────────────────────────────── */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 3rem) clamp(1.25rem, 5vw, 3rem) 4rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cyan-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-stamp) 0.4s forwards;
}
.hero__eyebrow::before {
  content: '';
  width: 28px; height: 1.5px;
  background: var(--cyan-soft);
  border-radius: 2px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--blanc);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-stamp) 0.6s forwards;
}
.hero__title .em {
  font-style: italic;
  color: var(--cyan-soft);
  display: block;
}
.hero__title .titre-word {
  display: inline-block;
  position: relative;
}
.hero__title .titre-word::after {
  content: '';
  position: absolute;
  bottom: 6px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--bleu-lumineux), var(--cyan-soft));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: lineReveal 0.8s var(--ease-out) 1.6s forwards;
}

.hero__subtitle {
  margin-top: 2rem;
  font-size: 1.05rem;
  line-height: 1.72;
  color: rgba(255,255,255,0.55);
  max-width: 46ch;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-stamp) 1.0s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-stamp) 1.3s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.5s var(--ease-stamp) 2s forwards;
}
.hero__scroll-bar {
  width: 1.5px; height: 40px;
  background: linear-gradient(to bottom, var(--cyan-soft), transparent);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.hero__scroll-bar::after {
  content: '';
  position: absolute;
  top: -100%; left: 0; right: 0;
  height: 100%;
  background: var(--blanc);
  animation: scrollIndicator 1.8s ease-in-out 2.5s infinite;
}
@keyframes scrollIndicator {
  to { top: 100%; }
}
.hero__scroll-text {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* ── HERO VISUAL — DOCUMENT FAN ───────────────────────────────── */
.hero__visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background sceau SVG */
.hero__sceau-bg {
  position: absolute;
  width: 520px; height: 520px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.sceau-ring {
  fill: none;
  stroke: rgba(255,255,255,0.05);
  stroke-width: 1;
  stroke-dasharray: 1696;
  stroke-dashoffset: 1696;
  animation: ringDraw 3s var(--ease-out) 0.5s forwards;
}
.sceau-ring-2 {
  fill: none;
  stroke: rgba(255,255,255,0.035);
  stroke-width: 0.75;
  stroke-dasharray: 1319;
  stroke-dashoffset: 1319;
  animation: ringDraw 3s var(--ease-out) 0.9s forwards;
}
.sceau-ring-3 {
  fill: none;
  stroke: rgba(255,255,255,0.025);
  stroke-width: 0.5;
  stroke-dasharray: 942;
  stroke-dashoffset: 942;
  animation: ringDraw 3s var(--ease-out) 1.3s forwards;
}
@keyframes ringDraw { to { stroke-dashoffset: 0; } }

/* Document cards container */
.doc-fan {
  position: relative;
  width: 280px;
  height: 360px;
  z-index: 1;
}

/* Each slot: sets rotation + translation (static) */
.doc-slot {
  position: absolute;
  top: 50%; left: 50%;
  margin-top: -180px;
  margin-left: -120px;
  width: 240px;
}
.doc-slot--1 { transform: rotate(-18deg) translate(-115px, -10px); z-index: 1; }
.doc-slot--2 { transform: rotate(-6deg)  translate(-42px,  12px); z-index: 2; }
.doc-slot--3 { transform: rotate(6deg)   translate(42px,   12px); z-index: 3; }
.doc-slot--4 { transform: rotate(18deg)  translate(115px, -10px); z-index: 4; }

/* Appear div: handles opacity + initial slide-up transition */
.doc-appear {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.75s var(--ease-stamp), transform 0.75s var(--ease-stamp);
}
.doc-appear.in     { transform: translateY(0); }
.doc-slot--1 .doc-appear.in { opacity: 0.55; }
.doc-slot--2 .doc-appear.in { opacity: 0.72; }
.doc-slot--3 .doc-appear.in { opacity: 0.88; }
.doc-slot--4 .doc-appear.in { opacity: 1.0;  }

/* Float animation (added after appear) */
.doc-appear.floating { animation: docFloat 5.5s ease-in-out infinite; }
.doc-slot--2 .doc-appear.floating { animation-delay: -1.4s; }
.doc-slot--3 .doc-appear.floating { animation-delay: -2.9s; }
.doc-slot--4 .doc-appear.floating { animation-delay: -4.1s; }
@keyframes docFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* Document card visual */
.doc-card {
  width: 240px;
  border-radius: var(--r-md);
  padding: 1.5rem;
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}

/* Paper texture lines inside card */
.doc-card::before {
  content: '';
  position: absolute;
  top: 60px; left: 1.5rem; right: 1.5rem;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.doc-card__ref {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
  font-family: var(--font-sans);
}
.doc-card__icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(59,130,246,0.2);
  margin-bottom: 1rem;
}
.doc-card__icon svg {
  width: 18px; height: 18px;
  color: var(--cyan-soft);
}
.doc-card__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-bottom: 0.4rem;
  margin-top: 0.75rem;
}
.doc-card__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--blanc);
  line-height: 1.2;
  margin-bottom: 0.875rem;
}
.doc-card__items {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.doc-card__item {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.4;
}
.doc-card__item::before {
  content: '–';
  color: var(--cyan-soft);
  flex-shrink: 0;
  font-size: 0.7rem;
}
/* Stamp watermark */
.doc-card__stamp {
  position: absolute;
  bottom: 1rem; right: 1rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.05em;
}

/* ── PAGE HERO (inner pages) ──────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 0 5rem;
  background: var(--gris-froid);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: attr(data-label);
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: clamp(8rem, 18vw, 22rem);
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,51,170,0.05);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  will-change: transform;
}
.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--texte-sec);
  margin-bottom: 1.5rem;
}
.page-hero__breadcrumb a { color: var(--bleu-royal); }
.page-hero__breadcrumb span { color: var(--texte-muted); }
.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--texte);
  max-width: 14ch;
}
.page-hero__desc {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--texte-sec);
  max-width: 50ch;
}

/* Sceau decoration in page hero */
.page-hero__sceau {
  position: absolute;
  bottom: -60px;
  right: 10%;
  width: 260px; height: 260px;
  opacity: 0.06;
  pointer-events: none;
}

/* ── SECTION SHARED ───────────────────────────────────────────── */
.section {
  padding: var(--section-py) 0;
}
.section--alt  { background: var(--gris-froid); }
.section--dark {
  background: var(--bleu-royal);
  position: relative;
  overflow: hidden;
}
.section--navy {
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}
.section--dark-dot::before,
.section--navy::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 44px 44px;
  pointer-events: none;
}

.section__header { margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.section__header--center {
  text-align: center;
  margin-left: auto; margin-right: auto;
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}
.section__label  { margin-bottom: 0.75rem; }
.section__title  { color: var(--texte); }
.section__title--inv { color: var(--blanc); }
.section__desc {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--texte-sec);
  max-width: 52ch;
}
.section__desc--inv { color: rgba(255,255,255,0.6); }

/* Section parallax orbs */
.section__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  will-change: transform;
}
.section__orb--1 {
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.04);
  bottom: -150px; right: -100px;
}

/* ── PITCH / INTRO ────────────────────────────────────────────── */
.pitch {
  padding: var(--section-py) 0;
  background: var(--blanc);
}
.pitch__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}
.pitch__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.pitch__stat {
  padding: 1.75rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--gris-border);
  background: var(--blanc);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.pitch__stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--bleu-royal), var(--bleu-lumineux));
}
.pitch__stat:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.pitch__stat-num {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 400;
  color: var(--bleu-royal);
  line-height: 1;
}
.pitch__stat-label {
  font-size: 0.8rem;
  color: var(--texte-sec);
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* ── BIFURCATION ──────────────────────────────────────────────── */
.bifurcation {
  padding: var(--section-py) 0;
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}
.bifurcation__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: clamp(2.5rem, 4vw, 4rem);
}
.bifurcation__card {
  border-radius: var(--r-md);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.bifurcation__card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-4px);
}
.bifurcation__card-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  background: rgba(59,130,246,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.bifurcation__card-icon svg {
  width: 26px; height: 26px;
  color: var(--cyan-soft);
}
.bifurcation__card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blanc);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.bifurcation__card-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.75rem;
}

/* ── SERVICE CARDS ────────────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  padding: 1.875rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--gris-border);
  background: var(--blanc);
  position: relative;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--bleu-lumineux);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}
.service-card:hover::after { opacity: 1; }
.service-card__num {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--gris-border);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}
.service-card:hover .service-card__num { color: var(--bleu-clair); }
.service-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--texte);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.service-card__desc {
  font-size: 0.85rem;
  color: var(--texte-sec);
  line-height: 1.65;
}

/* ── FONDATEUR ────────────────────────────────────────────────── */
.fondateur__grid {
  display: grid;
  grid-template-columns: 42% 58%;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}
.fondateur__visual {
  position: relative;
}
.fondateur__photo-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  position: relative;
}
.fondateur__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.fondateur__photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.75rem 1.5rem;
  background: linear-gradient(to top, rgba(0,51,170,0.85), transparent);
}
.fondateur__photo-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--blanc);
  font-weight: 500;
}
.fondateur__photo-role {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.2rem;
}

/* Sceau décoration */
.fondateur__sceau-deco {
  position: absolute;
  bottom: -2.5rem;
  right: -2.5rem;
  width: 130px; height: 130px;
  z-index: -1;
}

.fondateur__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--texte);
  border-left: 3px solid var(--bleu-lumineux);
  padding-left: 1.5rem;
  margin: 1.75rem 0;
}
.fondateur__values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.fondateur__tag {
  padding: 0.35rem 0.875rem;
  border-radius: var(--r-full);
  background: var(--gris-sec);
  border: 1px solid var(--gris-border);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--bleu-institution);
  transition: background 0.2s ease, color 0.2s ease;
}
.fondateur__tag:hover {
  background: var(--bleu-royal);
  color: var(--blanc);
  border-color: var(--bleu-royal);
}

/* ── ÉQUIPE ───────────────────────────────────────────────────── */
.equipe__photo-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  margin-top: 3rem;
}
.equipe__photo {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}
.equipe__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,51,170,0.75) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 3rem;
}
.equipe__caption { color: var(--blanc); max-width: 360px; }
.equipe__caption-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.equipe__caption-desc { font-size: 0.875rem; opacity: 0.8; line-height: 1.6; }

/* ── VALEURS ──────────────────────────────────────────────────── */
.valeurs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.valeur-card {
  padding: 2rem 1.5rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--gris-border);
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.valeur-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.valeur-card__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gris-sec);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.valeur-card__icon svg {
  width: 24px; height: 24px;
  color: var(--bleu-institution);
}
.valeur-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--texte);
  margin-bottom: 0.5rem;
}
.valeur-card__desc {
  font-size: 0.82rem;
  color: var(--texte-sec);
  line-height: 1.6;
}

/* ── FORMATIONS ───────────────────────────────────────────────── */
.formations__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 4vw, 4rem);
}
.formation-card {
  border-radius: var(--r-md);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.formation-card:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(147,197,253,0.3);
  transform: translateY(-4px);
}
.formation-card__badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-full);
  background: rgba(147,197,253,0.12);
  border: 1px solid rgba(147,197,253,0.25);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-bottom: 1.25rem;
}
.formation-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--blanc);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.formation-card__list { margin-bottom: 1.5rem; }
.formation-card__item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.45;
  padding: 0.25rem 0;
}
.formation-card__item::before {
  content: '→';
  color: var(--cyan-soft);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.05em;
}
.formation-card__duration {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* Vacances en entreprise */
.vacances {
  margin-top: 2rem;
  border-radius: var(--r-md);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(74,222,128,0.2);
  background: rgba(74,222,128,0.04);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.vacances__season {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.875rem;
  border-radius: var(--r-full);
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.25);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4ade80;
  margin-bottom: 0.875rem;
}
.vacances__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--blanc);
  margin-bottom: 0.625rem;
}
.vacances__desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 52ch;
}

/* ── INSCRIPTION FORM ─────────────────────────────────────────── */
.form-card {
  background: var(--blanc);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--gris-border);
  box-shadow: var(--shadow-card);
}
.form-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--texte);
  margin-bottom: 0.25rem;
}
.form-sub {
  font-size: 0.85rem;
  color: var(--texte-sec);
  margin-bottom: 1.75rem;
}
.form-group { margin-bottom: 1.125rem; }
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--texte);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gris-border);
  border-radius: var(--r-xs);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--texte);
  background: var(--blanc);
  outline: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--bleu-lumineux);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-select-wrap { position: relative; }
.form-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--texte-sec);
  pointer-events: none;
  font-size: 0.75rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group--formation { display: none; }

/* ── CONTACT ──────────────────────────────────────────────────── */
.contact__grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: clamp(3rem, 5vw, 6rem);
  align-items: start;
}
.phone-list { display: flex; flex-direction: column; gap: 0.75rem; }
.phone-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--r-xs);
  background: var(--gris-froid);
  border: 1px solid var(--gris-border);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.phone-item:hover {
  background: #ebf2ff;
  border-color: var(--bleu-clair);
  transform: translateX(4px);
}
.phone-item__icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bleu-royal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.phone-item__icon svg { width: 16px; height: 16px; color: var(--blanc); }
.phone-item__num { font-size: 0.95rem; font-weight: 600; color: var(--texte); }

/* Contact channels (contact page) */
.contact-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 4vw, 4rem);
}
.contact-channel {
  padding: 2rem 1.75rem;
  border-radius: var(--r-md);
  border: 1px solid var(--gris-border);
  background: var(--blanc);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.contact-channel:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.contact-channel--whatsapp {
  border-color: rgba(37,211,102,0.25);
  background: rgba(37,211,102,0.03);
}
.contact-channel__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gris-sec);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.contact-channel--whatsapp .contact-channel__icon {
  background: rgba(37,211,102,0.12);
}
.contact-channel__icon svg {
  width: 22px; height: 22px;
  color: var(--bleu-institution);
}
.contact-channel--whatsapp .contact-channel__icon svg { color: #25d366; }
.contact-channel__label {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--texte);
  margin-bottom: 1rem;
}
.contact-channel__items {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-channel__link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bleu-royal);
  font-family: var(--font-sans);
  transition: color 0.2s ease;
}
.contact-channel__link:hover { color: var(--bleu-institution); text-decoration: underline; }
.contact-channel__desc {
  font-size: 0.85rem;
  color: var(--texte-sec);
  line-height: 1.6;
}
.contact-channel__addr {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--texte);
  font-family: var(--font-sans);
  line-height: 1.5;
}

/* Horaires */
.horaires {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: var(--r-sm);
  background: var(--gris-froid);
  border: 1px solid var(--gris-border);
}
.horaires__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texte-sec);
  margin-bottom: 1rem;
}
.horaires__row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gris-border);
  font-size: 0.875rem;
  color: var(--texte);
}
.horaires__row:last-of-type { border-bottom: none; }
.horaires__row--off { color: var(--texte-muted); }
.horaires__note {
  margin-top: 0.875rem;
  font-size: 0.78rem;
  color: var(--texte-sec);
  font-style: italic;
  line-height: 1.5;
}

/* ── CTA BANNER ───────────────────────────────────────────────── */
.cta-banner {
  padding: clamp(5rem, 9vw, 9rem) 0;
  background: linear-gradient(135deg, var(--bleu-royal) 0%, var(--bleu-institution) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-banner__orb {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-banner__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 3.5rem);
  font-weight: 400;
  color: var(--blanc);
  max-width: 20ch;
  margin: 1rem auto;
}
.cta-banner__desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 48ch;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.cta-banner__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ── SCEAU ANIMATED (general) ─────────────────────────────────── */
.sceau-anim { pointer-events: none; }
.sceau-anim .ring {
  fill: none;
  stroke-dasharray: var(--circ);
  stroke-dashoffset: var(--circ);
  transition: stroke-dashoffset 1.5s var(--ease-out);
}
.sceau-anim.drawn .ring { stroke-dashoffset: 0; }

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.55);
  padding: 4rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 2rem;
}
.footer__brand-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--blanc);
  margin: 0.75rem 0 0.375rem;
}
.footer__brand-tagline {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--cyan-soft);
  margin-bottom: 1rem;
}
.footer__brand-desc { font-size: 0.8rem; max-width: 28ch; line-height: 1.6; }
.footer__col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blanc);
  margin-bottom: 1.25rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__link { font-size: 0.82rem; transition: color 0.2s ease; }
.footer__link:hover { color: var(--blanc); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
}
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal-link { transition: color 0.2s ease; }
.footer__legal-link:hover { color: var(--blanc); }

/* ── BOOK CAROUSEL (Hero right panel) ────────────────────────── */
.book-carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  animation: fadeUp 0.9s var(--ease-stamp) 1.2s both;
}

/* The open book */
.book {
  position: relative;
  display: flex;
  width: 430px;
  height: 420px;
  border-radius: 4px 14px 14px 4px;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.6),
    0 16px 40px rgba(0,0,0,0.4),
    inset 0 0 0 1px rgba(255,255,255,0.07);
  overflow: hidden;
  /* perspective lives here so only .book__leaf gets the 3D projection */
  perspective: 1400px;
}

/* Left decorative page */
.book__left {
  flex-shrink: 0;
  width: 185px;
  background: rgba(255,255,255,0.042);
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 1.75rem 1.5rem;
}
.book__left-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}
.book__left-seal {
  width: 62px;
  height: 62px;
}
.book__left-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 1.25rem 0;
  justify-content: center;
}
.book__left-line {
  height: 1px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  width: var(--w, 80%);
}
.book__left-footer {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.15);
  font-family: var(--font-sans);
}

/* Spine */
.book__spine {
  width: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 4;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.55) 0%,
    rgba(255,255,255,0.07) 45%,
    rgba(0,0,0,0.45) 100%
  );
}
.book__spine::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.3));
}

/* Right page area — holds stage + flipping leaf */
.book__right {
  flex: 1;
  position: relative;
  transform-style: preserve-3d;
  overflow: hidden;
}

/* Stage: the page revealed when the leaf turns away */
.book__stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* The leaf — the page currently being read / about to flip */
.book__leaf {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  z-index: 2;
  transition: transform 0.65s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}
.book__leaf.is-flipping {
  transform: rotateY(-180deg);
}

/* Leaf faces */
.book__leaf-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.book__leaf-back {
  transform: rotateY(180deg);
  /* inner side of a turned page — decorative ruled lines */
  background: rgba(4,21,51,0.7);
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 2rem 1.5rem;
  justify-content: center;
}
.book__leaf-inner-line {
  height: 1px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
}

/* Page content (shared between stage and leaf-front) */
.book__page-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem 1.5rem;
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}
.book__page-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-bottom: 0.875rem;
}
.book__page-icon {
  width: 40px;
  height: 40px;
  background: rgba(59,130,246,0.16);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
  flex-shrink: 0;
}
.book__page-icon svg {
  width: 20px;
  height: 20px;
  color: var(--cyan-soft);
  display: block;
}
.book__page-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--blanc);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.book__page-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.book__page-item {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.52);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}
.book__page-item::before {
  content: '—';
  color: var(--cyan-soft);
  font-size: 0.68rem;
  flex-shrink: 0;
  margin-top: 0.06em;
  opacity: 0.65;
}
.book__page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: auto;
}
.book__page-ref {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.18);
  font-family: var(--font-sans);
}
.book__page-num {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.32);
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
}

/* Bottom carousel controls */
.bc-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.bc-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.bc-arrow:hover {
  background: rgba(255,255,255,0.14);
  color: var(--blanc);
  transform: scale(1.08);
}
.bc-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}
.bc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s var(--ease-stamp);
  flex-shrink: 0;
}
.bc-dot.bc-dot--active {
  background: var(--cyan-soft);
  transform: scale(1.5);
}

/* ── KEYFRAME ANIMATIONS ──────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lineReveal {
  to { transform: scaleX(1); }
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .book { width: 380px; height: 390px; }
  .book__left { width: 160px; }
}

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__visual { display: none; }
  .hero__content {
    padding: calc(var(--nav-h) + 3rem) clamp(1.25rem, 5vw, 3rem) 5rem;
    text-align: center;
    align-items: center;
  }
  .hero__title .em { display: inline; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__scroll { left: 50%; transform: translateX(-50%); }

  .pitch__inner { grid-template-columns: 1fr; }
  .pitch__stats { grid-template-columns: repeat(4, 1fr); }

  .bifurcation__cards { grid-template-columns: 1fr; }

  .services__grid { grid-template-columns: 1fr 1fr; }

  .fondateur__grid { grid-template-columns: 1fr; }
  .fondateur__photo-wrap { max-width: 380px; margin: 0 auto; }

  .valeurs__grid { grid-template-columns: 1fr 1fr; }

  .formations__grid { grid-template-columns: 1fr; }
  .vacances { grid-template-columns: 1fr; }

  .contact__grid { grid-template-columns: 1fr; }
  .contact-channels { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr 1fr; }

  /* Inline grid responsive helpers */
  .inline-grid-2,
  [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: 40% 60%"],
  [style*="grid-template-columns: 42% 58%"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  .nav__links,
  .nav__cta-desktop { display: none; }
  .nav__toggle { display: flex; }

  .pitch__stats { grid-template-columns: 1fr 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .valeurs__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }

  .equipe__photo { height: 340px; }
  .equipe__overlay { background: linear-gradient(to top, rgba(0,51,170,0.85) 0%, transparent 60%); }

  .page-hero::before { display: none; }
}

@media (max-width: 480px) {
  :root { --section-py: clamp(4rem, 8vw, 6rem); }
  .valeurs__grid { grid-template-columns: 1fr; }
  .pitch__stats  { grid-template-columns: 1fr 1fr; }
  .bifurcation__card { padding: 1.5rem; }
}

/* ── REDUCED MOTION ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
