/* =========================================================
   Temple de la Lumière — feuille de style
   Direction : velours noir et panneaux blancs, néon violet, filets fins.
   ========================================================= */

:root {
  /* Palette */
  --black: #000000;
  --white: #ffffff;
  --bone: #f0f0f0;
  --ash: #a1a4a5;
  --smoke: #abafb4;
  --iron: #6e727a;
  --charcoal: #464a4d;
  --violet: #9281f7;
  --violet-glow: #baa7ff;
  --grad-violet: linear-gradient(135deg, rgb(146, 129, 247) 0%, rgb(154, 84, 220) 100%);
  --blue: #70b8ff;
  --green: #3ad389;
  --red: #ff9592;
  --amber: #ffca16;

  /* Rôles — thème sombre par défaut, redéfinis dans les sections .theme-light */
  --bg: var(--black);
  --fg: var(--white);
  --text: var(--bone);
  --muted: var(--ash);
  --subtle: var(--iron);
  --faint: var(--charcoal);
  --line: #292d30;
  --line-hi: #3a3f43;
  --lift: #0b0e14;
  --hover-line: rgba(255, 255, 255, .9);
  --hover-fill: rgba(255, 255, 255, .03);
  --spot-edge: rgba(255, 255, 255, .5);
  --spot-tint: rgba(186, 167, 255, .18);
  --spot-fill: rgba(255, 255, 255, .035);

  /* Couleurs qui se fondent : dégradés et halos */
  --fusion: linear-gradient(100deg, #c2b4ff 0%, #d27cf2 45%, #7fb2ff 100%);
  --aurora-1: rgba(146, 129, 247, .55);
  --aurora-2: rgba(196, 88, 232, .42);
  --aurora-3: rgba(70, 128, 255, .38);

  /* Typographies */
  --serif: 'Instrument Serif', 'Playfair Display', Georgia, serif;
  --display: 'Inter Tight', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Rayons */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Mise en page */
  --max: 1200px;
  --gutter: 24px;
  --nav-h: 64px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.lenis, html.lenis body { height: auto; }
html.lenis, .lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

::selection { background: rgba(146, 129, 247, .35); color: var(--fg); }

[hidden] { display: none !important; }
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
a, button, label { -webkit-tap-highlight-color: transparent; }
p, h1, h2, h3, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 1px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px));
}

.mono { font-family: var(--mono); }
.t-violet { color: var(--violet); }

/* ---------- Typographie ---------- */
.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 8.2vw, 104px);
  line-height: .98;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.h-display em { font-style: italic; }

.h-section {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--fg);
  text-wrap: balance;
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 580px;
  text-wrap: pretty;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--violet);
}
.label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
}

.u-link {
  color: var(--fg);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .3s var(--ease-out), color .15s;
}
.u-link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Découpage des mots (animations de titres) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- Boutons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s ease-out, background-color .15s ease-out;
}
.btn:hover { border-color: var(--hover-line); background: var(--hover-fill); }
.btn--sm { height: 36px; padding: 0 14px; }
.btn--block { width: 100%; }
.btn__arrow { width: 14px; height: 14px; transition: transform .25s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.link-chev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--text);
  transition: color .15s;
}
.link-chev svg { width: 14px; height: 14px; transition: transform .25s var(--ease-out); }
.link-chev:hover { color: var(--fg); }
.link-chev:hover svg { transform: translateX(3px); }

/* ---------- Preloader ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .6s ease, visibility .6s;
}
.is-loaded .preloader { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__inner { display: grid; justify-items: center; gap: 28px; }
.preloader__mark { width: 72px; height: 72px; color: var(--fg); }
.preloader__mark * {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.2s var(--ease-out) forwards;
}
.preloader__mark path:nth-of-type(1) { animation-delay: .15s; }
.preloader__mark path:nth-of-type(2) { animation-delay: .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.preloader__meta {
  display: flex;
  gap: 24px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--subtle);
}
.preloader__count { color: var(--violet); min-width: 3ch; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: transform .5s var(--ease-out), background-color .3s, border-color .3s, backdrop-filter .3s;
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, .72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.brand__mark { width: 26px; height: 26px; transition: transform .6s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__name { font-family: var(--display); font-size: 16px; font-weight: 500; letter-spacing: -0.02em; }
.brand__tag { font-size: 11px; color: var(--violet); padding: 3px 6px; border: 1px solid var(--line); border-radius: var(--r-sm); }

.nav__links { display: flex; gap: 28px; }
.nav__links a {
  position: relative;
  font-size: 14px;
  color: var(--smoke);
  transition: color .15s ease-out;
}
.nav__links a:hover, .nav__links a.is-active, .nav__links a[aria-current="page"] { color: var(--fg); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--violet);
  transform: scale(0);
  transition: transform .3s var(--ease-out);
}
.nav__links a.is-active::after, .nav__links a[aria-current="page"]::after { transform: scale(1); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__burger {
  display: none;
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
}
.nav__burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--fg);
  transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { top: 20px; }
.menu-open .nav__burger span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.menu-open .nav__burger span:nth-child(2) { top: 17px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 32px) var(--gutter) 32px;
  background: rgba(0, 0, 0, .96);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s;
}
.menu-open .menu { opacity: 1; visibility: visible; }
.menu__links { display: grid; }
.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(30px, min(10vw, 5.2vh), 52px);
  line-height: 1.05;
  color: var(--fg);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.menu__links a .mono { font-size: 12px; color: var(--violet); }
.menu-open .menu__links a { opacity: 1; transform: none; }
.menu-open .menu__links a:nth-child(2) { transition-delay: .04s; }
.menu-open .menu__links a:nth-child(3) { transition-delay: .08s; }
.menu-open .menu__links a:nth-child(4) { transition-delay: .12s; }
.menu-open .menu__links a:nth-child(5) { transition-delay: .16s; }
.menu-open .menu__links a:nth-child(6) { transition-delay: .2s; }
.menu-open .menu__links a:nth-child(7) { transition-delay: .24s; }
.menu-open .menu__links a:nth-child(8) { transition-delay: .28s; }
.menu__foot { font-size: 12px; color: var(--subtle); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 210vh; }
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.hero__grid {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding-top: var(--nav-h);
  padding-bottom: 96px;
}
.hero__copy { position: relative; z-index: 2; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  font-size: 13px;
  color: var(--text);
  transition: border-color .15s ease-out;
}
.pill:hover { border-color: var(--line-hi); }
.pill__tag {
  padding: 3px 8px;
  border-radius: 9999px;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--violet-glow);
}
.pill__chev { width: 14px; height: 14px; color: var(--violet); transition: transform .25s var(--ease-out); }
.pill:hover .pill__chev { transform: translateX(2px); }

.hero__title { margin-top: 28px; }
.hero__lead {
  margin-top: 28px;
  max-width: 500px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

.hero__stage { position: relative; height: min(76vh, 680px); }
.stone {
  position: absolute;
  inset: -10% -14% -10% -6%;
  opacity: 0;
  transform: scale(.94);
  transition: opacity 1.6s ease, transform 1.8s var(--ease-out);
}
.stone.is-in, html:not(.js) .stone { opacity: 1; transform: none; }
.stone canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.stone__fallback { position: absolute; inset: 22%; width: 56%; height: 56%; }
.stone.has-webgl .stone__fallback { display: none; }

.hero__hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  display: grid;
  grid-template-columns: 1fr minmax(0, 520px);
  align-items: end;
  gap: 24px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--subtle);
}
.hud__caption { position: relative; height: 1.4em; }
.hud__cap {
  position: absolute;
  inset: 0 auto auto 0;
  white-space: nowrap;
  color: var(--muted);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .5s ease, transform .5s var(--ease-out);
}
.hud__cap.is-on { opacity: 1; transform: none; }
.hud__track { display: flex; align-items: center; gap: 14px; }
.hud__bar { position: relative; flex: 1; height: 1px; background: var(--line); }
.hud__fill {
  position: absolute;
  inset: 0;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--grad-violet);
}
.hud__fill::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet-glow);
}
.hud__pct { min-width: 4ch; text-align: right; color: var(--violet); }
.hud__hint {
  position: absolute;
  left: var(--gutter);
  bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--subtle);
  transition: opacity .4s;
}
.hud__hint i {
  position: relative;
  width: 1px;
  height: 24px;
  background: var(--line);
  overflow: hidden;
}
.hud__hint i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--fg);
  animation: drip 1.8s var(--ease-out) infinite;
}
@keyframes drip { to { top: 100%; } }
.hero.is-carving .hud__hint { opacity: 0; }

/* ---------- Couleurs qui se fondent ---------- */
/* Mots en italique : dégradé violet → magenta → bleu qui glisse lentement */
.h-display em, .story__title em, .cta-band__title em {
  padding-right: .08em;
  background: var(--fusion);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fusion 9s ease-in-out infinite alternate;
}
@keyframes fusion { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* Halos : trois lueurs qui dérivent et se mélangent */
.aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute;
  width: 44vmax;
  height: 44vmax;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: drift 24s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { background: radial-gradient(circle, var(--aurora-1), transparent 62%); }
.aurora span:nth-child(2) { background: radial-gradient(circle, var(--aurora-2), transparent 62%); animation-duration: 28s; animation-delay: -8s; }
.aurora span:nth-child(3) { background: radial-gradient(circle, var(--aurora-3), transparent 62%); animation-duration: 32s; animation-delay: -16s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-9%, 7%, 0) scale(1.15); }
  100% { transform: translate3d(7%, -5%, 0) scale(.92); }
}

.aurora--hero { opacity: .5; }
.aurora--hero span:nth-child(1) { top: -18%; right: -12%; }
.aurora--hero span:nth-child(2) { top: 22%; right: 18%; }
.aurora--hero span:nth-child(3) { bottom: -30%; right: -4%; }

.aurora--center { opacity: .32; }
.aurora--center span { width: 36vmax; height: 36vmax; top: 50%; margin-top: -18vmax; }
.aurora--center span:nth-child(1) { left: 8%; }
.aurora--center span:nth-child(2) { left: 34%; }
.aurora--center span:nth-child(3) { left: 58%; }

.aurora--bottom { opacity: .3; }
.aurora--bottom span { width: 40vmax; height: 40vmax; bottom: -28vmax; }
.aurora--bottom span:nth-child(1) { left: -6%; }
.aurora--bottom span:nth-child(2) { left: 30%; }
.aurora--bottom span:nth-child(3) { left: 64%; }

/* Le contenu passe au-dessus des halos */
.hero__grid, .hero__hud, .page-hero > .container, .quote > .container, .cta-band > .container, .footer > .container { position: relative; z-index: 1; }
.quote, .cta-band, .footer { position: relative; overflow: hidden; }
.hero__hud { position: absolute; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.marquee span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}
.marquee b { font-weight: 400; font-size: 18px; color: var(--violet); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 144px 0; }
.section--line { border-top: 1px solid var(--line); }
.section__head { display: grid; gap: 20px; max-width: 760px; margin-bottom: 64px; }
.section__head--center { margin-left: auto; margin-right: auto; justify-items: center; text-align: center; }
.section__head--row {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: end;
  gap: 24px 64px;
}
.section__head-main { display: grid; gap: 20px; justify-items: start; }
.section__head--center .lead { margin: 0 auto; }

/* ---------- Sections claires : panneaux blancs posés sur le noir ---------- */
.theme-light {
  --bg: #ffffff;
  --fg: #0a0a0b;
  --text: #26282b;
  --muted: #5d6166;
  --subtle: #898d92;
  --faint: #c3c5c8;
  --line: #e6e6e3;
  --line-hi: #d2d3cf;
  --lift: #f4f4f2;
  --violet: #6a4fe0;
  --violet-glow: #5b3fd6;
  --hover-line: rgba(10, 10, 11, .85);
  --hover-fill: rgba(10, 10, 11, .03);
  --spot-edge: rgba(10, 10, 11, .28);
  --spot-tint: rgba(106, 79, 224, .22);
  --spot-fill: rgba(106, 79, 224, .035);
  --fusion: linear-gradient(100deg, #6a4fe0 0%, #a83fd6 50%, #2f6fe4 100%);
  margin: 12px;
  border-radius: 28px;
  background-color: var(--bg);
  background-image:
    radial-gradient(55% 38% at 100% 0%, rgba(146, 129, 247, .13), transparent 70%),
    radial-gradient(45% 32% at 0% 100%, rgba(70, 128, 255, .09), transparent 70%),
    radial-gradient(35% 25% at 85% 100%, rgba(196, 88, 232, .07), transparent 70%);
  color: var(--text);
}
.section--line.theme-light, .theme-light + .section--line { border-top: 0; }
.theme-light ::selection { background: rgba(106, 79, 224, .2); color: var(--fg); }

/* ---------- Cartes ---------- */
.card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  isolation: isolate;
  overflow: hidden;
}
[data-spot]::before {
  /* Filet lumineux qui suit le curseur */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--spot-edge), var(--spot-tint) 30%, transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
[data-spot]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), var(--spot-fill), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
[data-spot]:hover::before, [data-spot]:hover::after { opacity: 1; }

.card__title {
  margin-top: 28px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.card__text { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--muted); }

.icon-box {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad-violet);
  box-shadow: rgba(176, 199, 217, .145) 0 0 0 1px, inset 0 1px 0 rgba(255, 255, 255, .25);
  color: #fff;
}
.icon-box svg { width: 22px; height: 22px; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card--wide { grid-column: span 2; }

.grades {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  font-size: 12px;
  color: var(--muted);
}
.grade {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.grade i, .t-line i, .status i, .rite__note i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c, var(--green));
  flex: none;
}
.grade__line { flex: 1; height: 1px; min-width: 16px; background: linear-gradient(90deg, var(--line), var(--line-hi), var(--line)); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 12px;
  color: var(--violet-glow);
}

/* ---------- Chiffres ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 96px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 40px 28px 36px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--serif);
  font-size: clamp(56px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.stat__pre, .stat__suf { font-size: .55em; color: var(--subtle); }
.stat__cap { margin-top: 20px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.stat__text { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 240px; }

/* ---------- Atelier : texte + terminal ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}
.split__text { display: grid; gap: 20px; }
.checks { margin-top: 16px; border-top: 1px solid var(--line); }
.checks li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.checks__k { color: var(--fg); font-weight: 500; }
.checks__v { color: var(--muted); }

.term {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  overflow: hidden;
}
.term__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(rgb(14, 14, 14), rgb(3, 3, 3));
}
.term__dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-hi); }
.term__title { margin-left: auto; margin-right: auto; padding-right: 54px; font-size: 12px; color: var(--subtle); }
.term__body {
  display: grid;
  gap: 6px;
  padding: 24px;
  min-height: 360px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  overflow-x: auto;
}
.t-cmd { margin-bottom: 10px; white-space: nowrap; }
.t-prompt { color: var(--violet); }
.t-line { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.t-muted { color: var(--subtle); margin-bottom: 8px; }
.t-time { color: var(--subtle); }
.t-ev { min-width: 10ch; color: var(--violet-glow); }
.term .t-line i { --c: var(--violet); }
.t-done { margin-top: 10px; color: var(--muted); }
.t-ok { color: var(--violet); }
.t-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--violet);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.term.is-pending .t-line { opacity: 0; transform: translateY(4px); }
.term .t-line { transition: opacity .4s ease, transform .4s var(--ease-out); }


/* ---------- La vie de la loge : récit image + texte ---------- */
.story { display: grid; gap: clamp(88px, 11vw, 150px); }
.story__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}
.story__row > .media { grid-column: 1 / span 6; grid-row: 1; justify-self: center; }
.story__row > .story__text { grid-column: 8 / span 5; grid-row: 1; }
.story__row--reverse > .media { grid-column: 7 / span 6; }
.story__row--reverse > .story__text { grid-column: 1 / span 5; }

.story__text { display: grid; gap: 20px; justify-items: start; max-width: 480px; }
.story__num {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--violet);
}
.story__num::after { content: ""; width: 48px; height: 1px; background: var(--line-hi); }
.story__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 4.6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-wrap: balance;
}
.story__title em { font-style: italic; }
.story__body { font-size: 17px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.story__text .tags { margin-top: 4px; }

.media {
  position: relative;
  width: 100%;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--lift);
  overflow: hidden;
  isolation: isolate;
}
.media--portrait { max-width: 460px; aspect-ratio: 4 / 5; }
.media--video { max-width: 360px; aspect-ratio: 9 / 16; }
.media--square { max-width: 520px; aspect-ratio: 1; }
.media--landscape { aspect-ratio: 3 / 2; }

.media__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: transform 1s var(--ease-out);
}
.media__img {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  height: 116%;
  object-fit: cover;
  will-change: transform;
}
.media--portrait .media__img { object-position: 50% 35%; }
.media:hover .media__frame { transform: scale(1.035); }

.media__hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: zoom-in;
}
.media__hit:focus-visible { outline: 1px solid var(--violet); outline-offset: -4px; }

.media__zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s ease, transform .4s var(--ease-out);
  pointer-events: none;
}
.media__zoom svg { width: 14px; height: 14px; }
.media:hover .media__zoom, .media__hit:focus-visible ~ .media__zoom { opacity: 1; transform: none; }

.media__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 11px;
  letter-spacing: .04em;
  color: #f0f0f0;
  pointer-events: none;
}
.media__badge i {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9281f7;
}
.media.is-playing .media__badge i::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid #9281f7;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* ---------- Visionneuse ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 16px;
  padding: 72px 24px 32px;
  background: rgba(0, 0, 0, .94);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 16px;
  min-width: 0;
  transform: scale(.97);
  transition: transform .6s var(--ease-out);
}
.lightbox.is-open .lightbox__stage { transform: none; }
.lightbox__media { display: grid; place-items: center; min-width: 0; max-width: 100%; }
.lightbox__media img, .lightbox__media video {
  display: block;
  max-width: min(100%, 1100px);
  max-height: calc(100vh - 170px);
  max-height: calc(100svh - 170px);
  width: auto;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--lift);
}
.lightbox__media .is-swapping { animation: swap .5s var(--ease-out); }
.lightbox__cap {
  display: flex;
  gap: 16px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--subtle);
}
.lightbox__cap [data-lb-title] { color: var(--text); }
.lightbox__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .6);
  color: var(--fg);
  cursor: pointer;
  transition: border-color .15s ease-out;
}
.lightbox__btn:hover { border-color: rgba(255, 255, 255, .85); }
.lightbox__btn svg { width: 16px; height: 16px; }
.lightbox__nav { justify-self: center; }
.lightbox__close { position: absolute; top: 16px; right: 16px; }

/* ---------- Valeurs ---------- */
.values { overflow: hidden; isolation: isolate; }
.geo {
  position: absolute;
  top: 40px;
  left: 50%;
  width: min(900px, 120vw);
  height: auto;
  transform: translateX(-50%);
  z-index: -1;
  stroke: var(--line);
  stroke-width: 1;
  opacity: .9;
  pointer-events: none;
}
.geo__p--hi { stroke: var(--faint); }
.values .container { position: relative; }

.triptych { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.value { padding: 40px 32px 36px; min-height: 340px; display: flex; flex-direction: column; background: rgba(0, 0, 0, .82); }
.value__num { font-family: var(--mono); font-size: 12px; color: var(--violet); letter-spacing: .08em; }
.value__word {
  margin-top: auto;
  padding-top: 72px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 4.6vw, 60px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--fg);
  transition: transform .6s var(--ease-out);
}
.value:hover .value__word { transform: translateX(6px); }

/* ---------- Citation ---------- */
.quote { padding: 160px 0; }
.quote__text {
  max-width: 1040px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--fg);
  text-wrap: balance;
}
.quote__text .sw { transition: none; }
.quote__src {
  margin-top: 40px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--violet);
}

/* ---------- Parcours ---------- */
.journey {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}
.journey__intro {
  position: sticky;
  top: calc(var(--nav-h) + 48px);
  display: grid;
  gap: 20px;
  justify-items: start;
}
.journey__intro .btn { margin-top: 12px; }

.steps { position: relative; display: grid; gap: 16px; padding-left: 56px; }
.steps__rail { position: absolute; left: 11px; top: 30px; bottom: 30px; width: 1px; background: var(--line); }
.steps__fill {
  position: absolute;
  inset: 0;
  transform-origin: top;
  transform: scaleY(0);
  background: linear-gradient(var(--violet), rgb(154, 84, 220));
}
.step { position: relative; }
.step__node {
  position: absolute;
  left: -56px;
  top: 30px;
  width: 23px;
  height: 23px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: border-color .4s ease;
}
.step__node::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
  transition: background-color .4s ease, transform .4s var(--ease-out);
}
.step.is-lit .step__node { border-color: var(--violet); }
.step.is-lit .step__node::after { background: var(--violet-glow); transform: scale(1.15); }
.step__card { padding: 28px 32px; transition: border-color .4s ease; }
.step.is-lit .step__card { border-color: var(--line-hi); }
.step__num { font-size: 12px; letter-spacing: .06em; color: var(--subtle); }
.step__title {
  margin-top: 10px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--fg);
}

/* ---------- Le Rite ---------- */
.rite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}
.rite__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s ease-out, border-color .15s ease-out;
}
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: var(--fg); border-color: var(--hover-line); }

.degrees { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 8px; }
.deg {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--subtle);
  cursor: pointer;
  transition: color .2s ease-out, border-color .2s ease-out, opacity .35s ease, transform .35s var(--ease-out);
}
.deg:hover { color: var(--fg); border-color: var(--hover-line); }
.deg.is-dim { opacity: .22; }
.deg.is-current { color: var(--violet-glow); border-color: var(--violet); transform: translateY(-2px); }
.deg.is-current::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: var(--violet);
}
.rite__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--subtle);
}
.rite__note i { --c: var(--violet); }

.rite__panel { position: sticky; top: calc(var(--nav-h) + 24px); min-height: 360px; display: flex; flex-direction: column; }
.rite__group { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.rite__roman {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 96px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.rite__name {
  margin-top: 12px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.rite__meter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 28px;
  font-size: 12px;
  color: var(--subtle);
}
.rite__meter b { font-weight: 400; color: var(--fg); }
.rite__bar { position: relative; flex: 1; height: 1px; background: var(--line); }
.rite__bar span {
  position: absolute;
  inset: 0;
  transform-origin: left;
  transform: scaleX(.03);
  background: var(--violet);
  transition: transform .6s var(--ease-out);
}
.rite__swap { animation: swap .5s var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.faq__intro { display: grid; gap: 20px; position: sticky; top: calc(var(--nav-h) + 48px); }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item h3 { font-weight: inherit; }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  border: 0;
  background: none;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
}
.faq__icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .15s, transform .5s var(--ease-out);
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1px;
  margin: -.5px 0 0 -5px;
  background: var(--fg);
  transition: transform .5s var(--ease-out);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q:hover .faq__icon { border-color: var(--hover-line); }
.faq__item.is-open .faq__icon { transform: rotate(180deg); }
.faq__item.is-open .faq__icon::after { transform: rotate(0deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease-out);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 56px 28px 0; font-size: 16px; line-height: 1.65; color: var(--muted); }
.faq__a strong { color: var(--text); font-weight: 500; }

/* ---------- Candidature ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.contact__intro { display: grid; gap: 20px; }
.infos { margin-top: 20px; border-top: 1px solid var(--line); }
.infos__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.infos dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); padding-top: 2px; }
.infos dd { color: var(--text); }
.infos a.mono { font-size: 14px; transition: color .15s; }
.infos a.mono:hover { color: var(--violet-glow); }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.status i { --c: var(--green); }

.form-card { padding: 36px; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--subtle); }
.input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.4 var(--sans);
  transition: border-color .15s ease-out, box-shadow .15s ease-out;
  -moz-appearance: textfield;
}
.input::-webkit-outer-spin-button, .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
textarea.input { height: auto; min-height: 132px; padding: 12px 14px; resize: vertical; }
.input:hover { border-color: var(--line-hi); }
.input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(146, 129, 247, .16); }
.input.is-invalid { border-color: var(--red); }

.check { position: relative; display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; }
.check__box {
  flex: none;
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid var(--line-hi);
  border-radius: 4px;
  transition: border-color .15s, background-color .15s;
}
.check__box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--bg);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .25s var(--ease-out);
}
.check input:checked + .check__box { background: var(--fg); border-color: var(--fg); }
.check input:checked + .check__box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 1px solid var(--violet); outline-offset: 3px; }
.check.is-invalid .check__box { border-color: var(--red); }
.form__error { font-size: 12px; color: var(--red); }
.form .btn { margin-top: 6px; height: 48px; }

.form-done { display: grid; justify-items: start; gap: 4px; padding: 24px 0; }
.form-done__icon { width: 56px; height: 56px; color: var(--green); margin-bottom: 20px; }
.form-done__icon * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--ease-out) forwards; }
.form-done__icon path { animation-delay: .4s; }
.form-done__title { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.05; color: var(--fg); }
.form-done__wa { margin-top: 20px; }
.form-done__wa .wa-icon { width: 16px; height: 16px; color: var(--green); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 32px; overflow: hidden; }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.3fr);
  gap: 48px;
  align-items: start;
}
.footer__about { margin-top: 18px; max-width: 320px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.footer__col { display: grid; gap: 12px; justify-items: start; }
.footer__title { margin-bottom: 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.footer__col a, .footer__legal a { font-size: 14px; color: var(--muted); transition: color .15s; }
.footer__col a:hover, .footer__legal a:hover { color: var(--fg); }
.footer__giant {
  margin: 72px 0 40px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(64px, 16.5vw, 236px);
  line-height: .9;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-hi);
  user-select: none;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--subtle);
}
.footer__legal { display: flex; gap: 24px; }
.footer__legal a { font-size: 12px; }


/* ---------- WhatsApp ---------- */
.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  transition: color .15s ease-out;
}
.wa-link .wa-icon { width: 16px; height: 16px; color: var(--green); }
.wa-link__arrow { width: 14px; height: 14px; color: var(--subtle); transition: transform .25s var(--ease-out), color .15s; }
.wa-link:hover { color: var(--fg); }
.wa-link:hover .wa-link__arrow { color: var(--fg); transform: translate(2px, -2px); }

.form__alt { font-size: 13px; color: var(--muted); text-align: center; }
.form__alt a { white-space: nowrap; }

.wa-fab {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 18px 0 6px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .4s ease, transform .6s var(--ease-out), border-color .15s ease-out;
}
.wa-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.menu-open .wa-fab { opacity: 0; pointer-events: none; }
.wa-fab:hover { border-color: rgba(255, 255, 255, .85); }
.wa-fab__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: var(--bg);
}
.wa-fab__icon::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--green);
  animation: wa-ring 2.8s ease-out infinite;
}
@keyframes wa-ring { 0% { transform: scale(1); opacity: .8; } 60%, 100% { transform: scale(1.6); opacity: 0; } }
.wa-fab__icon .wa-icon { width: 20px; height: 20px; }

/* =========================================================
   Pages intérieures
   ========================================================= */
/* En-tête de page */
.page-hero { position: relative; padding: calc(var(--nav-h) + 96px) 0 120px; overflow: hidden; }
.page-hero--compact { padding-bottom: 88px; }
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 48px;
  align-items: center;
}
.page-hero--compact .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--subtle);
}
.crumbs a { color: var(--muted); transition: color .15s ease-out; }
.crumbs a:hover { color: var(--fg); }
.crumbs [aria-current] { color: var(--violet); }
.page-hero__title { font-size: clamp(52px, 7.2vw, 96px); text-wrap: balance; }
.page-hero__lead { margin-top: 28px; max-width: 560px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.page-hero__meta { margin-top: 20px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.page-hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

/* Illustrations au trait, qui se dessinent au chargement */
.art {
  width: 100%;
  max-width: 420px;
  justify-self: end;
  fill: none;
  stroke: var(--line-hi);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.art .hi { stroke: var(--violet); }
.art > * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s var(--ease-out) forwards; }
.art > :nth-child(2) { animation-delay: .12s; }
.art > :nth-child(3) { animation-delay: .24s; }
.art > :nth-child(4) { animation-delay: .36s; }
.art > :nth-child(5) { animation-delay: .48s; }
.art > :nth-child(6) { animation-delay: .6s; }
.art > :nth-child(7) { animation-delay: .72s; }
.art > :nth-child(8) { animation-delay: .84s; }
.art > :nth-child(9) { animation-delay: .96s; }
.art > :nth-child(10) { animation-delay: 1.08s; }

/* Histoire */
.history { border-top: 1px solid var(--line); }
.history__item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.history__year { font-family: var(--serif); font-size: clamp(36px, 3.6vw, 52px); line-height: 1; color: var(--fg); }
.history__title { font-family: var(--display); font-size: 21px; font-weight: 500; line-height: 1.3; letter-spacing: -0.025em; color: var(--fg); }
.history__text { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* Grilles de cartes */
.symbols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.symbols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.symbol .card__title { margin-top: 24px; font-size: 20px; }
.card__tag {
  display: inline-block;
  margin-top: 20px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--violet);
}
.link-row { margin-top: 48px; display: flex; justify-content: center; }

/* Lexique */
.glossary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
  border-top: 1px solid var(--line);
}
.glossary__item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.glossary dt { font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--fg); }
.glossary dd { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Bandeau d'appel */
.cta-band { padding: 168px 0; text-align: center; }
.cta-band__inner { display: grid; justify-items: center; gap: 24px; }
.cta-band__title {
  max-width: 980px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-wrap: balance;
}
.cta-band__title em { font-style: italic; }
.cta-band__actions { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; }

/* Agenda */
.agenda { display: grid; gap: 16px; }
.event { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.event__date { display: grid; gap: 8px; padding-right: 32px; border-right: 1px solid var(--line); }
.event__day { font-family: var(--serif); font-size: 64px; line-height: .9; color: var(--fg); }
.event__month { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.event__meta { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.event__type { color: var(--violet); }
.event__title {
  margin-top: 10px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.event__place { margin-top: 14px; font-size: 12px; color: var(--subtle); }
.event.is-past { opacity: .55; }
.agenda__sub { margin: 56px 0 20px; font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.empty { display: grid; justify-items: center; gap: 14px; padding: 72px 32px; text-align: center; }
.empty .card__title { margin-top: 12px; }
.empty .card__text { max-width: 480px; margin-top: 0; }
.empty__actions { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; }

/* Actualités */
.news { border-top: 1px solid var(--line); }
.news__item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.news__date { padding-top: 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); }
.news__title { font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: -0.025em; color: var(--fg); }
.news__text { margin-top: 8px; color: var(--muted); }

/* Étapes condensées */
.mini-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.mini-step { position: relative; padding-top: 24px; border-top: 1px solid var(--line); }
.mini-step::before { content: ""; position: absolute; top: -1px; left: 0; width: 32px; height: 1px; background: var(--violet); }
.mini-step__num { font-size: 12px; color: var(--violet); }
.mini-step__title { margin-top: 14px; font-family: var(--display); font-size: 19px; font-weight: 500; letter-spacing: -0.02em; color: var(--fg); }
.mini-step .card__text { font-size: 14px; }

.note { display: flex; align-items: center; gap: 10px; margin-top: 32px; font-size: 13px; color: var(--muted); }
.note i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }

/* Page 404 */
.page-hero--404 { min-height: 88vh; min-height: 88svh; display: flex; align-items: center; }
.page-hero--404 .page-hero__grid { width: 100%; }
.err-code {
  justify-self: end;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(160px, 22vw, 320px);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-hi);
  user-select: none;
}

/* Pages légales */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; align-items: start; }
.legal__toc { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 2px; }
.legal__toc-title { margin-bottom: 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.legal__toc a {
  padding: 7px 0 7px 14px;
  border-left: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  transition: color .15s, border-color .15s;
}
.legal__toc a:hover, .legal__toc a.is-active { color: var(--fg); border-left-color: var(--violet); }
.prose { max-width: 720px; }
.prose h2 {
  margin: 56px 0 14px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--fg);
  scroll-margin-top: calc(var(--nav-h) + 32px);
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 16px; line-height: 1.75; color: var(--muted); }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 20px; }
.prose li + li { margin-top: 4px; }
.prose strong { font-weight: 500; color: var(--fg); }
.prose a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-hi); }
.prose a:hover { text-decoration-color: currentColor; }
.todo {
  padding: 1px 6px;
  border: 1px dashed currentColor;
  border-radius: 4px;
  background: rgba(106, 79, 224, .08);
  font-family: var(--mono);
  font-size: .82em;
  color: var(--violet);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .brand__tag { display: none; }
  .symbols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .nav__links { gap: 20px; }
  .rite { grid-template-columns: 1fr; }
  .rite__panel { order: -1; position: relative; top: 0; min-height: 0; }
}

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }

  .hero { height: 190vh; }
  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0;
    padding-top: calc(var(--nav-h) + 4px);
    padding-bottom: 104px;
  }
  .hero__stage { order: -1; height: 100%; }
  .stone { inset: -6% -10%; }
  .hero__title { margin-top: 20px; font-size: clamp(50px, 13vw, 84px); }
  .hero__lead { margin-top: 18px; font-size: 16px; }
  .hero__actions { margin-top: 24px; }
  .hero__hud { grid-template-columns: 1fr; gap: 12px; bottom: 20px; }
  .hud__hint { display: none; }
  .aurora--hero span { width: 70vmax; height: 70vmax; }
  .aurora--hero span:nth-child(1) { top: -30%; right: -40%; }
  .aurora--hero span:nth-child(2) { top: -15%; right: 10%; }
  .aurora--hero span:nth-child(3) { top: 5%; right: -20%; bottom: auto; }

  .bento { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 32px 20px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .split, .journey, .faq, .contact { grid-template-columns: 1fr; gap: 48px; }
  .journey__intro, .faq__intro { position: relative; top: 0; }

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

  .section__head--row { grid-template-columns: 1fr; }
  .story__row { grid-template-columns: 1fr; gap: 32px; }
  .story__row > .media, .story__row--reverse > .media { grid-column: 1; grid-row: 1; justify-self: start; }
  .story__row > .story__text, .story__row--reverse > .story__text { grid-column: 1; grid-row: 2; }
  .media--video { max-width: 320px; }
  .media__zoom { opacity: 1; transform: none; }
  .value { min-height: 0; }
  .value__word { padding-top: 40px; }

  .page-hero { padding: calc(var(--nav-h) + 56px) 0 80px; }
  .page-hero__grid { grid-template-columns: 1fr; }
  .art { display: none; }
  .err-code { order: -1; justify-self: start; font-size: 120px; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .symbols--3 { grid-template-columns: 1fr; }
  .glossary { grid-template-columns: 1fr; }
  .history__item { grid-template-columns: 110px minmax(0, 1fr); gap: 20px; }
  .event { grid-template-columns: 1fr; gap: 20px; }
  .event__date {
    grid-auto-flow: column;
    justify-content: start;
    align-items: baseline;
    gap: 14px;
    padding: 0 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .event .btn { justify-self: start; }
  .news__item { grid-template-columns: 1fr; gap: 6px; }
  .mini-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal { grid-template-columns: 1fr; gap: 40px; }
  .legal__toc { position: relative; top: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .legal__toc-title { width: 100%; margin-bottom: 4px; }
  .legal__toc a { padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding: 96px 0; }
  .quote { padding: 112px 0; }
  .section__head { margin-bottom: 40px; }
  .card { padding: 24px; }
  .form-card { padding: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .brand__tag { display: none; }
  .nav__actions .btn { display: none; }
  .pill { font-size: 12px; }
  .hero__lead { font-size: 15px; }
  .hud__track > span:not(.hud__bar):not(.hud__pct) { display: none; }
  .checks li, .infos__row { grid-template-columns: 1fr; gap: 4px; }
  .grades { flex-wrap: wrap; }
  .grade__line { display: none; }
  .term__body { padding: 18px; font-size: 12px; min-height: 0; }
  .degrees { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .steps { padding-left: 40px; }
  .step__node { left: -40px; }
  .steps__rail { left: 11px; }
  .step__card { padding: 22px; }
  .faq__q { font-size: 17px; padding: 22px 0; }
  .faq__a p { padding-right: 0; }
  .rite__roman { font-size: 72px; }
  .wa-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding: 0 6px; height: 52px; }
  .wa-fab__label { display: none; }
  .theme-light { margin: 8px; border-radius: 20px; }
  .symbols { grid-template-columns: 1fr; }
  .mini-steps { grid-template-columns: 1fr; }
  .glossary__item { grid-template-columns: 1fr; gap: 6px; }
  .history__item { grid-template-columns: 1fr; gap: 10px; }
  .cta-band { padding: 112px 0; }
  .event__day { font-size: 52px; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .story__body { font-size: 16px; }
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 64px 16px 24px; }
  .lightbox__stage { grid-column: 1 / -1; grid-row: 1; }
  .lightbox__nav--prev { grid-row: 2; justify-self: end; }
  .lightbox__nav--next { grid-row: 2; justify-self: start; }
  .lightbox__media img, .lightbox__media video { max-height: calc(100svh - 240px); }
}

/* ---------- Téléphone : finitions ---------- */
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .quote { padding: 96px 0; }
  .theme-light { margin: 6px; border-radius: 18px; }
  .section__head { gap: 16px; margin-bottom: 32px; }
  .h-section { font-size: 34px; letter-spacing: -0.04em; }
  .lead, .page-hero__lead { font-size: 16px; }

  /* Accueil */
  .hero__lead-intro { display: none; }
  .hero__grid { padding-bottom: 92px; }
  .hero__hud { padding-right: calc(var(--gutter) + 64px); }
  .hero__actions { gap: 14px 20px; }
  .marquee { padding: 16px 0; }
  .stat__text { font-size: 13px; }
  .quote__text { font-size: 32px; }
  .story { gap: 72px; }
  .story__row { gap: 28px; }
  .story__title { font-size: 38px; }
  .tags span { font-size: 11px; }

  /* Terminal : les lignes passent à la ligne au lieu de défiler de côté */
  .term__title { padding-right: 0; margin-right: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .term__body { overflow-x: hidden; gap: 10px; }
  .t-line {
    display: grid;
    grid-template-columns: 6px auto 1fr;
    column-gap: 10px;
    row-gap: 2px;
    white-space: normal;
  }
  .t-line > span:last-child:not(.t-ev) { grid-column: 3; }
  .t-ev { min-width: 0; }
  .t-muted, .t-done { display: block; }
  .t-muted span { word-break: break-all; }

  /* Le Rite : détail compact */
  .rite__panel { padding: 22px; }
  .rite__roman { margin-top: 14px; font-size: 56px; }
  .rite__name { font-size: 21px; }
  .rite__meter { padding-top: 18px; }

  /* Symboles : icône à gauche, texte à droite */
  .symbols .symbol {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
    padding: 20px;
  }
  .symbols .symbol .icon-box { grid-row: span 3; }
  .symbols .symbol .card__title { margin-top: 0; font-size: 18px; }
  .symbols .symbol .card__text { margin-top: 6px; font-size: 14px; }
  .symbols .symbol .card__tag { justify-self: start; margin-top: 12px; }

  /* Pages intérieures */
  .page-hero { padding: calc(var(--nav-h) + 40px) 0 64px; }
  .page-hero__title { font-size: 46px; }
  .page-hero__actions { gap: 14px 20px; }
  .cta-band__title { font-size: 40px; }
  .event { padding: 22px; }

  /* Zones tactiles plus confortables */
  .link-chev, .crumbs a, .infos a, .footer__col a, .footer__legal a { padding-block: 6px; }
  .footer__col { gap: 4px; }
  .footer__giant { margin: 48px 0 28px; }
  .footer { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
}
