/* ==========================================================================
   VÔ-MO — Styles principaux du site
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--cream-50);
}
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--stone-600);
  background: var(--cream-50);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--ink-900);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-wrap: balance;
}
em { font-style: italic; }
p { text-wrap: pretty; }
a { color: var(--vomo-500); text-decoration: none; transition: color .2s; }
a:hover { color: var(--vomo-700); }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--vomo-500);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--vomo-100); color: var(--vomo-700); }

/* ─── Layout principal ─────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 56px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 56px; }
.container-prose  { max-width: 720px; margin: 0 auto; padding: 0 56px; }

@media (max-width: 768px) {
  .container, .container-narrow, .container-prose { padding: 0 24px; }
}

/* ─── HEADER ───────────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 16px 56px;
  background: rgba(247, 245, 240, 0);
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: all .3s cubic-bezier(.22,.61,.36,1);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.header.is-scrolled {
  background: rgba(247, 245, 240, 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--cream-200);
}
.header.is-on-dark { color: var(--cream-50); }
.header.is-on-dark:not(.is-scrolled) .nav-link { color: var(--cream-50); }
.header.is-on-dark:not(.is-scrolled) .logo-wordmark { color: var(--cream-50); }
.header.is-on-dark:not(.is-scrolled) .nav-list { background: rgba(255,255,255,0.08); }

.logo {
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink-900);
  justify-self: start;
}
.logo img { width: 52px; height: auto; }
.logo-wordmark {
  font-family: "Lucida Handwriting", "Fraunces", cursive;
  font-size: 28px;
  letter-spacing: 0.06em;
  color: var(--ink-900);
  font-weight: 400;
  display: inline-flex;
  flex-direction: column;
  /* On centre le bar relativement au wordmark — le ® en absolute ne perturbe
     pas le calcul. Compense l'effet visuel "logo penché à droite" causé par
     l'italique + le ® décalé à droite. */
  align-items: center;
  line-height: 1;
  position: relative;
}
.logo-wordmark sup {
  position: absolute;
  top: -0.55em;
  right: -0.85em;
  font-family: var(--font-sans);
  font-size: 0.32em;
  letter-spacing: 0;
  color: inherit;
  font-weight: 400;
  line-height: 1;
}
.logo-wordmark .energy-bar { margin-top: 7px; }

.energy-bar {
  display: flex;
  width: 110px;
  height: 3px;
  border-radius: 1px;
  overflow: hidden;
}
.energy-bar > span { flex: 1; }
.energy-bar > span:nth-child(1) { background: var(--energy-earth); }
.energy-bar > span:nth-child(2) { background: var(--energy-sun); }
.energy-bar > span:nth-child(3) { background: var(--energy-water); }
.energy-bar > span:nth-child(4) { background: var(--energy-spirit); }

.nav-list-wrap { display: flex; justify-content: center; }
.nav-list {
  display: flex;
  gap: 2px;
  padding: 4px;
  background: transparent;
  border-radius: 999px;
  list-style: none;
  margin: 0;
  transition: background .3s;
}
.header.is-scrolled .nav-list { background: rgba(255, 255, 255, 0.4); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }

.nav-link {
  padding: 8px 16px;
  background: transparent;
  color: var(--ink-900);
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all .2s;
  display: inline-block;
  text-decoration: none;
}
.nav-link.is-active,
.nav-link[aria-current="page"] {
  background: var(--ink-900);
  color: var(--cream-50);
}
.nav-link:not(.is-active):hover { background: rgba(31, 26, 36, 0.05); }

/* Burger button : 2 barres minimalistes plutôt qu'un hamburger classique */
.btn-mobile-menu {
  display: none;
  background: none;
  border: 1px solid var(--ink-900);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
  padding: 0;
}
.btn-mobile-menu:hover { background: var(--ink-900); }
.btn-mobile-menu .bar {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink-900);
  border-radius: 1px;
  transition: background 200ms ease;
}
.btn-mobile-menu:hover .bar { background: var(--cream-50); }

@media (max-width: 980px) {
  .header {
    padding: 16px 20px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .logo img { width: 32px; }
  .logo-wordmark { font-size: 18px; }
  .logo-wordmark sup { font-size: 8px; }
  .logo-wordmark .energy-bar { width: 72px; height: 2px; margin-top: 4px; }
  .nav-list-wrap { display: none; }
  /* Le wrapper du CTA est vide en mobile : on le sort complètement de la grille */
  .header .header-actions { display: none; }
  .btn-mobile-menu { display: inline-flex; justify-self: end; }
}
@media (max-width: 540px) {
  .header { padding: 14px 16px; gap: 10px; }
  .logo img { width: 30px; }
  .logo { gap: 10px; }
  .logo-wordmark { font-size: 16px; }
  .logo-wordmark .energy-bar { width: 60px; height: 2px; margin-top: 3px; }
  .btn-mobile-menu { width: 38px; height: 38px; }
}

/* ─── Drawer mobile ───────────────────────────────────────────────────── */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--cream-50);
  display: flex;
  flex-direction: column;
  padding: 24px 28px 32px;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 420ms cubic-bezier(.22,.61,.36,1), opacity 200ms ease;
  pointer-events: none;
}
.mobile-drawer.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Texture subtile derrière le drawer */
.mobile-drawer::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 220px; height: 220px;
  background: radial-gradient(circle at top right, var(--vomo-100) 0%, transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

/* Head */
.mobile-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
/* Logo identique à celui du header (img + wordmark + energy bar) */
.mobile-drawer-logo { text-decoration: none; }
.mobile-drawer-logo img { width: 32px; height: auto; }
.mobile-drawer-logo .logo-wordmark { font-size: 18px; }
.mobile-drawer-logo .logo-wordmark sup { font-size: 8px; }
.mobile-drawer-logo .logo-wordmark .energy-bar { width: 72px; height: 2px; margin-top: 4px; }
.mobile-drawer-close {
  background: transparent;
  border: 1px solid var(--cream-200);
  color: var(--ink-900);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}
.mobile-drawer-close:hover {
  border-color: var(--ink-900);
  background: var(--ink-900);
  color: var(--cream-50);
}

/* Nav list */
.mobile-nav {
  margin-top: 56px;
  position: relative;
  z-index: 1;
}
.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mobile-nav-list li {
  border-bottom: 1px solid var(--cream-200);
  /* Stagger animation : chaque item entre avec un léger décalage */
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 360ms cubic-bezier(.22,.61,.36,1), transform 360ms cubic-bezier(.22,.61,.36,1);
  transition-delay: calc(120ms + var(--i, 0) * 50ms);
}
.mobile-drawer.is-open .mobile-nav-list li {
  opacity: 1;
  transform: translateX(0);
}
.mobile-nav-link {
  display: grid;
  grid-template-columns: 36px 1fr 18px;
  align-items: baseline;
  gap: 14px;
  padding: 18px 4px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 300;
  color: var(--ink-900);
  text-decoration: none;
  position: relative;
  transition: color 200ms ease, padding-left 250ms cubic-bezier(.22,.61,.36,1);
}
.mobile-nav-link .num {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--stone-600);
  font-weight: 500;
  align-self: center;
}
.mobile-nav-link .label { line-height: 1.1; }
.mobile-nav-link .arrow {
  color: var(--vomo-700);
  align-self: center;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 220ms ease, transform 220ms ease;
}
.mobile-nav-link:hover {
  color: var(--vomo-700);
  padding-left: 8px;
}
.mobile-nav-link:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}
.mobile-nav-link.is-active { color: var(--vomo-700); }
.mobile-nav-link.is-active .num { color: var(--vomo-700); }
.mobile-nav-link.is-active::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--vomo-700);
  transform: translateY(-50%);
}

/* Footer du drawer : langues + contact + CTA */
.mobile-drawer-foot {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  z-index: 1;
  /* Apparition retardée après les items de menu */
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms ease 420ms, transform 400ms cubic-bezier(.22,.61,.36,1) 420ms;
}
.mobile-drawer.is-open .mobile-drawer-foot {
  opacity: 1;
  transform: translateY(0);
}
.mobile-langs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
}
.mobile-langs a {
  color: var(--stone-600);
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color 180ms ease, border-color 180ms ease;
}
.mobile-langs a.is-active {
  color: var(--vomo-700);
  border-color: var(--vomo-300, var(--vomo-100));
  background: var(--vomo-100);
}
.mobile-langs a:hover { color: var(--ink-900); }
.mobile-langs .sep { color: var(--cream-200); }
.mobile-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--cream-200);
}
.mobile-contact-link {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--stone-600);
  text-decoration: none;
  transition: color 180ms ease;
}
.mobile-contact-link:hover { color: var(--ink-900); }
.mobile-cta {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

/* Cache le sélecteur de langue flottant quand le drawer est ouvert */
body:has(.mobile-drawer.is-open) .lang-switcher { display: none; }

@media (max-width: 540px) {
  .mobile-drawer { padding: 20px 22px 28px; }
  .mobile-nav { margin-top: 40px; }
  .mobile-nav-link { font-size: 24px; padding: 16px 4px; }
}

/* ─── BUTTONS ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 220ms cubic-bezier(.22,.61,.36,1);
  text-decoration: none;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--vomo-700);
  color: #fff;
  box-shadow: 0 2px 6px -2px rgba(122, 44, 191, 0.3);
}
.btn-primary:hover {
  background: var(--vomo-500);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(122, 44, 191, 0.5);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--ink-900);
  border: 1px solid var(--ink-900);
  padding: 13px 21px;
}
.btn-secondary:hover { background: var(--ink-900); color: var(--cream-50); }
.btn-secondary.on-dark { color: var(--cream-50); border-color: var(--cream-50); }
.btn-secondary.on-dark:hover { background: var(--cream-50); color: var(--ink-900); }
.btn-tertiary {
  padding: 6px 0;
  background: transparent;
  color: var(--vomo-700);
  border: none;
  border-bottom: 1px solid var(--cream-200);
  border-radius: 0;
  font-size: 14px;
}
.btn-tertiary:hover { border-bottom-color: var(--vomo-700); transform: none; box-shadow: none; }

.btn-glass {
  padding: 14px 22px;
  background: rgba(247, 245, 240, 0.12);
  color: var(--cream-50);
  border: 1px solid rgba(247, 245, 240, 0.4);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
}
.btn-glass:hover { background: rgba(247, 245, 240, 0.22); color: var(--cream-50); }

/* ─── Sélecteur de langue flottant (bas-droite) ───────────────────────── */
.lang-switcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  font-family: var(--font-sans);
}
.lang-switcher-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--ink-900);
  color: var(--cream-50);
  border: 1px solid var(--ink-900);
  border-radius: 999px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 8px 28px -6px rgba(31, 26, 36, 0.35), 0 2px 6px -2px rgba(31, 26, 36, 0.2);
  transition: transform 200ms ease, background 200ms ease;
}
.lang-switcher-toggle:hover {
  transform: translateY(-1px);
  background: var(--vomo-700);
  border-color: var(--vomo-700);
}
.lang-switcher-toggle .icon { color: var(--cream-50); }
.lang-switcher-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  box-shadow: 0 16px 40px -10px rgba(31, 26, 36, 0.15);
  padding: 6px;
  display: none;
  flex-direction: column;
  border-radius: 4px;
}
.lang-switcher.is-open .lang-switcher-menu { display: flex; }
.lang-option {
  display: grid;
  grid-template-columns: 36px 1fr 16px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--ink-900);
  font-size: 14px;
  border-radius: 2px;
  transition: background 150ms ease;
}
.lang-option:hover { background: var(--cream-100); }
.lang-option .code {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--stone-600);
}
.lang-option.is-active { background: var(--vomo-100); }
.lang-option.is-active .code { color: var(--vomo-700); }
.lang-option .check { color: var(--vomo-700); justify-self: end; }
@media (max-width: 540px) {
  .lang-switcher { right: 16px; bottom: 16px; }
  .lang-switcher-toggle { padding: 8px 12px; font-size: 11px; }
}

/* ─── ÉLÉMENTS RÉPÉTÉS ────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vomo-700);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow.on-dark { color: rgba(247, 245, 240, 0.85); }

.energy-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-600);
}
.energy-tag.size-sm { font-size: 11px; padding: 3px 9px; }
.energy-tag .dot { width: 6px; height: 6px; border-radius: 3px; }

.pull-quote {
  margin: 0;
  padding: 32px 0;
  border-top: 1px solid var(--cream-200);
  border-bottom: 1px solid var(--cream-200);
}
.pull-quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35;
  color: var(--ink-900);
  font-style: italic;
  font-weight: 300;
}
.pull-quote figcaption {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-600);
}

.dropcap {
  float: left;
  font-family: var(--font-serif);
  font-size: clamp(80px, 9vw, 112px);
  line-height: 0.85;
  color: var(--vomo-700);
  margin-right: 12px;
  margin-top: 6px;
  font-weight: 300;
}

/* ─── HERO COMMUN ─────────────────────────────────────────────────────── */
/* Le hero "dark" colle pile sous le header sticky (qui est transparent au-dessus).
   On ajoute -4px de marge supplémentaire pour absorber les rounds de subpixel
   rendering qui laissaient apparaître une fine bande de body-bg. */
.has-dark-hero main { margin-top: calc(-1 * var(--header-h, 90px) - 4px); }
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: calc(var(--header-h, 90px) + 80px) 56px 100px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,26,36,0.15) 0%, rgba(31,26,36,0.55) 100%);
}
.hero-content {
  position: relative;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  justify-content: center;       /* contenu centré verticalement */
  align-items: flex-start;
  min-height: calc(100vh - var(--header-h) - 100px);
}
.hero h1 {
  margin-top: 24px;
  font-family: var(--font-serif);
  font-size: clamp(56px, 8.4vw, 132px);
  line-height: 1.06;
  color: var(--cream-50);
  font-weight: 300;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(31, 26, 36, 0.3);
}
.hero h1 em { color: var(--cream-50); }
.hero p.subtitle {
  margin-top: 28px;
  max-width: 560px;
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.55;
  color: rgba(247, 245, 240, 0.92);
}
.hero-actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-scroll-indicator {
  position: absolute; bottom: 40px; right: 56px;
  display: flex; align-items: center; gap: 10px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,245,240,0.75);
  writing-mode: vertical-rl;
}

/* Hero "page intérieure" — sans image de fond */
.hero-page {
  margin-top: 0;
  min-height: 0;
  padding: 160px 56px 100px;
  background: var(--cream-50);
}
.hero-page h1 {
  color: var(--ink-900);
  text-shadow: none;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.08;
  margin-top: 20px;
}
.hero-page p.subtitle {
  color: var(--stone-600);
  margin-top: 24px;
  max-width: 640px;
  font-size: 18px;
}

@media (max-width: 768px) {
  .hero { padding: calc(var(--header-h) + 50px) 24px 60px; min-height: 92vh; }
  .hero h1 { font-size: 48px; }
  .hero p.subtitle { font-size: 17px; }
  .hero-page { padding: 120px 24px 60px; }
  .hero-page h1 { font-size: 44px; }
  .hero-scroll-indicator { display: none; }
}

/* ─── SECTIONS ────────────────────────────────────────────────────────── */

/* ╔══════════════════════════════════════════════════════════════════════╗
   ║  SYSTÈME D'ANIMATIONS — déclenchées via IntersectionObserver         ║
   ║                                                                      ║
   ║  Usage : <element data-anim="fade-up">…</element>                    ║
   ║  Stagger : <parent data-anim-stagger>                                ║
   ║              <child data-anim="fade-up">                             ║
   ║              <child data-anim="fade-up">  (délai +90ms)              ║
   ║              <child data-anim="fade-up">  (délai +180ms)             ║
   ║                                                                      ║
   ║  Types : fade, fade-up, fade-down, slide-right, slide-left,          ║
   ║          zoom-in, mask-up                                            ║
   ╚══════════════════════════════════════════════════════════════════════╝ */

[data-anim] {
  opacity: 0;
  transition:
    opacity 800ms cubic-bezier(.22,.61,.36,1),
    transform 800ms cubic-bezier(.22,.61,.36,1),
    clip-path 900ms cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--anim-delay, 0ms);
  will-change: transform, opacity;
}
[data-anim="fade"]        { /* opacity only */ }
[data-anim="fade-up"]     { transform: translateY(28px); }
[data-anim="fade-down"]   { transform: translateY(-28px); }
[data-anim="slide-right"] { transform: translateX(-28px); }
[data-anim="slide-left"]  { transform: translateX(28px); }
[data-anim="zoom-in"]     { transform: scale(.94); }
[data-anim="mask-up"] {
  transform: translateY(40px);
  clip-path: inset(100% 0 0 0);
}

[data-anim].is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}
/* Le clip-path n'est appliqué QUE pour mask-up (sinon il rogne les descendants
   des lettres g, p, f, j, y dans tous les titres animés en fade-up). */
[data-anim="mask-up"].is-visible {
  clip-path: inset(0 0 0 0);
}

/* Stagger automatique : les enfants directs s'animent en cascade */
[data-anim-stagger] > [data-anim]:nth-child(1) { --anim-delay: 0ms; }
[data-anim-stagger] > [data-anim]:nth-child(2) { --anim-delay: 90ms; }
[data-anim-stagger] > [data-anim]:nth-child(3) { --anim-delay: 180ms; }
[data-anim-stagger] > [data-anim]:nth-child(4) { --anim-delay: 270ms; }
[data-anim-stagger] > [data-anim]:nth-child(5) { --anim-delay: 360ms; }
[data-anim-stagger] > [data-anim]:nth-child(6) { --anim-delay: 450ms; }
[data-anim-stagger] > [data-anim]:nth-child(7) { --anim-delay: 540ms; }
[data-anim-stagger] > [data-anim]:nth-child(8) { --anim-delay: 630ms; }
[data-anim-stagger] > [data-anim]:nth-child(9) { --anim-delay: 720ms; }
[data-anim-stagger] > [data-anim]:nth-child(n+10) { --anim-delay: 800ms; }

/* Variante "fast" pour les listes très longues */
[data-anim-stagger="fast"] > [data-anim] { --anim-delay: 0ms; }
[data-anim-stagger="fast"] > [data-anim]:nth-child(n+2) { --anim-delay: 60ms; }
[data-anim-stagger="fast"] > [data-anim]:nth-child(n+3) { --anim-delay: 120ms; }
[data-anim-stagger="fast"] > [data-anim]:nth-child(n+4) { --anim-delay: 180ms; }
[data-anim-stagger="fast"] > [data-anim]:nth-child(n+5) { --anim-delay: 240ms; }
[data-anim-stagger="fast"] > [data-anim]:nth-child(n+6) { --anim-delay: 300ms; }
[data-anim-stagger="fast"] > [data-anim]:nth-child(n+7) { --anim-delay: 360ms; }
[data-anim-stagger="fast"] > [data-anim]:nth-child(n+8) { --anim-delay: 420ms; }
[data-anim-stagger="fast"] > [data-anim]:nth-child(n+9) { --anim-delay: 480ms; }

/* Prefers-reduced-motion : on désactive tout */
@media (prefers-reduced-motion: reduce) {
  [data-anim] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}
.section { padding: 160px 56px; background: var(--cream-50); }
.section.alt { background: var(--cream-100); }
.section.dark { background: var(--ink-900); color: var(--cream-50); }
.section.dark h2, .section.dark h3 { color: var(--cream-50); }
@media (max-width: 768px) {
  .section { padding: 80px 24px; }
}

.section-head {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 80px;
}
.section-head h2 {
  margin-top: 20px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.12;
}
@media (max-width: 768px) {
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 48px; }
  .section-head h2 { font-size: 40px; }
}

/* ─── ICÔNES SVG (système simple via classe) ──────────────────────────── */
.icon { width: 1em; height: 1em; vertical-align: middle; }
svg.icon { stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ─── FOOTER ──────────────────────────────────────────────────────────── */
.footer {
  background: var(--ink-900);
  color: var(--cream-100);
  padding: 120px 56px 40px;
  margin-top: 0; /* pas d'espace blanc avant le footer — il enchaîne directement */
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(247, 245, 240, 0.12);
}
.footer .logo-block .tagline {
  margin-top: 24px;
  max-width: 320px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(247, 245, 240, 0.7);
}
.footer .energies-row {
  margin-top: 32px;
}
.footer .energies-row .energy-bar { width: 200px; height: 4px; }
.footer .energies-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 200px;
  gap: 6px;
  margin-top: 6px;
  font-family: ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.5);
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.5);
  margin-bottom: 18px;
  font-weight: 400;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--cream-50);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
}
.footer-col a:hover { color: var(--vomo-100); }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(247, 245, 240, 0.45);
}
.footer-bottom .credit {
  font-family: var(--font-script);
  font-size: 18px;
  color: rgba(247, 245, 240, 0.7);
}
.footer-bottom .credit-link {
  color: rgba(247, 245, 240, 0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 245, 240, 0.3);
  transition: color .2s, border-color .2s;
}
.footer-bottom .credit-link:hover {
  color: var(--vomo-100);
  border-bottom-color: var(--vomo-100);
}

@media (max-width: 980px) {
  .footer { padding: 72px 24px 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 48px; padding-bottom: 48px; }
  .footer-bottom { flex-direction: column; }
}

/* ─── 404 ─────────────────────────────────────────────────────────────── */
.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
}
.error-page h1 { font-size: clamp(60px, 12vw, 140px); color: var(--vomo-700); }
.error-page p { margin-top: 16px; font-size: 18px; }
.error-page .actions { margin-top: 32px; }
