/* ==========================================================================
   Institut Marie Silva — Refonte page d'accueil
   Direction : hybride dark / nude · Instrument Serif + Geist · GSAP
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Couleurs de marque (reprises du site : #F4C6AF, #BF7E5D, #995A32, #FFF7EF, or du logo #F3D5A3) */
  --ink: #120b0e;
  --ink-2: #1c1117;
  --espresso: #1a0f0d;
  --cream: #fbf5ee;
  --sand: #f2e5d9;
  --nude: #f4c6af;
  --nude-soft: #f7dccb;
  --terra: #bf7e5d;
  --copper: #995a32;
  --gold: #f3d5a3;
  --violet: #b77cff;

  --text: #2a1d1a;
  --text-muted: #6e5a52;
  --text-strong-muted: #5a4640; /* sur fonds nude (contraste AA) */
  --on-dark: #f6ece4;
  --on-dark-muted: rgba(246, 236, 228, 0.68);
  --line-light: rgba(42, 29, 26, 0.14);
  --line-dark: rgba(246, 236, 228, 0.16);

  --grad-brand: linear-gradient(120deg, #f4c6af 0%, #bf7e5d 55%, #995a32 100%);

  /* Typo */
  --ff-display: 'Instrument Serif', 'Times New Roman', serif;
  --ff-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Mouvement */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);

  /* Mise en page */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --r-lg: clamp(20px, 2vw, 28px);
  --r-md: clamp(14px, 1.4vw, 18px);
  --r-section: clamp(28px, 4vw, 56px);
  --section-y: clamp(100px, 13vw, 200px);

  /* Z-index */
  --z-main: 1;
  --z-menu: 45;
  --z-header: 50;
  --z-float: 60;
  --z-grain: 80;
  --z-cursor: 90;
  --z-preloader: 100;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--espresso);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 400; }
em { font-style: italic; }
::selection { background: var(--nude); color: var(--ink); }

:focus-visible { outline: 2px solid var(--nude); outline-offset: 3px; border-radius: 6px; }
[data-theme="light"] :focus-visible { outline-color: var(--copper); }
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 12px 20px; border-radius: 999px; background: var(--nude); color: var(--ink);
  font-weight: 500; transform: translateY(-160%); transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }

main { position: relative; z-index: var(--z-main); }

/* ---------- Typo utilitaire ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.9em;
  font-family: var(--ff-mono); font-size: 0.75rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: inherit; opacity: 0.85;
}
.eyebrow__num {
  display: inline-grid; place-items: center; min-width: 2.6em; height: 1.9em; padding: 0 0.6em;
  border: 1px solid currentColor; border-radius: 999px; font-size: 0.92em; opacity: 0.8;
}

.title-xl {
  font-family: var(--ff-display);
  font-size: clamp(2.9rem, 7vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.title-xl em, .cta__title em, .manifesto__text em { color: var(--copper); }
.section-dark .title-xl em, .hero em { color: var(--nude); }

/* Lignes masquées générées par SplitText (marge pour les jambages) */
.split-line-mask { padding-bottom: 0.12em; margin-bottom: -0.12em; }

/* Lien souligné animé */
.link-line {
  position: relative; display: inline-block; padding-block: 6px;
  font-size: 0.9375rem; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.6s var(--ease-out);
}
.link-line:hover { background-size: 0% 1px; background-position: 100% 100%; }

/* ---------- Boutons ---------- */
.btn {
  --h: 58px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 16px;
  height: var(--h); padding: 0 8px 0 28px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap;
  transition: color 0.5s var(--ease-out);
  touch-action: manipulation;
}
.btn::before {
  content: ''; position: absolute; inset: -1px; z-index: -1;
  background: var(--btn-fill, var(--copper));
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  transform: translateY(102%);
  transition: transform 0.7s var(--ease-out), border-radius 0.7s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); border-radius: 0; }
.btn__label { display: block; height: 1.3em; line-height: 1.3; overflow: hidden; }
.roll { display: flex; flex-direction: column; transition: transform 0.6s var(--ease-out); }
.btn:hover .roll, .btn:focus-visible .roll { transform: translateY(-50%); }
.btn__icon {
  flex: none; display: grid; place-items: center;
  width: calc(var(--h) - 14px); height: calc(var(--h) - 14px); border-radius: 50%;
  background: var(--ink); color: var(--nude);
  transition: transform 0.6s var(--ease-out), background-color 0.5s, color 0.5s;
}
.btn__icon svg { width: 18px; height: 18px; }
.btn:hover .btn__icon, .btn:focus-visible .btn__icon { transform: rotate(45deg); background: var(--cream); color: var(--copper); }

.btn--primary { background: var(--nude); color: var(--ink); --btn-fill: var(--copper); }
.btn--primary:hover, .btn--primary:focus-visible { color: var(--cream); }
.btn--ghost { color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--line-dark); --btn-fill: var(--nude); }
.btn--ghost .btn__icon { background: var(--nude); color: var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ink); }
.btn--ghost:hover .btn__icon { background: var(--ink); color: var(--nude); }
.btn--sm { --h: 44px; padding: 0 22px; font-size: 0.875rem; }

.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(246, 236, 228, 0.14); color: var(--on-dark);
  transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}
.icon-btn:hover { background: var(--nude); color: var(--ink); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Sections ---------- */
.section-dark { position: relative; background: var(--ink); color: var(--on-dark); }
.rounded-top {
  position: relative; z-index: 2;
  margin-top: calc(var(--r-section) * -1);
  border-radius: var(--r-section) var(--r-section) 0 0;
}

.section-head {
  display: grid; grid-template-columns: 1.35fr 1fr; align-items: end;
  gap: 24px clamp(32px, 6vw, 96px);
  margin-bottom: clamp(56px, 7vw, 110px);
}
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head__lead { max-width: 44ch; font-size: clamp(1rem, 1.2vw, 1.125rem); color: var(--text-muted); }
.section-dark .section-head__lead { color: var(--on-dark-muted); }

.glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(70vw, 900px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 124, 255, 0.2) 0%, rgba(183, 124, 255, 0.06) 40%, transparent 68%);
  animation: glow-float 18s ease-in-out infinite alternate;
}
.glow--a { top: -18%; right: -22%; }
.glow--b { bottom: -30%; left: -22%; animation-delay: -6s; }
@keyframes glow-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6%, 8%, 0) scale(1.12); }
}

/* ==========================================================================
   Préchargeur
   ========================================================================== */
.preloader { display: none; }
.js:not(.reduced-motion):not(.intro-seen) .preloader {
  position: fixed; inset: 0; z-index: var(--z-preloader);
  display: grid; place-items: center;
  background: var(--ink); color: var(--on-dark);
}
.is-ready .preloader { display: none !important; }
.preloader__inner { display: grid; justify-items: center; gap: 32px; }
.preloader__logo { position: relative; width: clamp(128px, 14vw, 190px); aspect-ratio: 68 / 42; }
.preloader__logo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.preloader__logo-base { color: rgba(243, 213, 163, 0.14); }
.preloader__logo-fill { color: var(--gold); clip-path: inset(100% 0% 0% 0%); }
.preloader__meta {
  display: flex; gap: 48px;
  font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark-muted);
}
.preloader__count { min-width: 4.5ch; text-align: right; color: var(--nude); font-variant-numeric: tabular-nums; }

/* États initiaux (évite le flash avant l'intro GSAP) */
.js:not(.reduced-motion):not(.is-ready) .hero__title,
.js:not(.reduced-motion):not(.is-ready) [data-hero-fade],
.js:not(.reduced-motion):not(.is-ready) .header__bar { visibility: hidden; }
.js:not(.reduced-motion):not(.is-ready) .hero:not(.hero--beauty) .hero__media { clip-path: inset(18% 32% 18% 32% round 32px); }
.is-ready .hero__title, .is-ready [data-hero-fade], .is-ready .header__bar { visibility: visible; }
.is-ready .hero__media { clip-path: none; }

/* ==========================================================================
   Curseur
   ========================================================================== */
.cursor { display: none; }
.has-cursor .cursor { display: block; opacity: 0; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor__ring, .cursor__dot { position: fixed; top: 0; left: 0; z-index: var(--z-cursor); pointer-events: none; will-change: transform; }
.cursor__ring { width: 96px; height: 96px; display: grid; place-items: center; }
.cursor__circle {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(244, 198, 175, 0.7);
  transform: scale(0.42);
  transition: transform 0.5s var(--ease-out), background-color 0.4s, border-color 0.4s;
}
.cursor__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--nude); transition: opacity 0.3s, background-color 0.3s; }
.cursor__label {
  position: relative; font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity 0.3s;
}
.cursor[data-on="light"] .cursor__circle { border-color: rgba(153, 90, 50, 0.6); }
.cursor[data-on="light"] .cursor__dot { background: var(--copper); }
.cursor.is-hover .cursor__circle { transform: scale(0.7); background: rgba(244, 198, 175, 0.16); border-color: transparent; }
.cursor[data-on="light"].is-hover .cursor__circle { background: rgba(153, 90, 50, 0.14); }
.cursor.is-label .cursor__circle { transform: scale(1); background: var(--nude); border-color: transparent; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot, .cursor.is-hover .cursor__dot { opacity: 0; }

/* ==========================================================================
   En-tête & menu
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  padding: 14px var(--gutter);
  color: var(--on-dark);
  transition: transform 0.6s var(--ease-out), color 0.4s;
  pointer-events: none;
}
.header[data-on="light"] { color: var(--text); }
.header.is-hidden { transform: translateY(-130%); }
.header__bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  max-width: var(--max); margin-inline: auto;
  padding: 8px 8px 8px 22px; border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.header.is-scrolled .header__bar {
  background: rgba(18, 11, 14, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border-color: rgba(246, 236, 228, 0.1);
}
.header[data-on="light"].is-scrolled .header__bar {
  background: rgba(251, 245, 238, 0.72); border-color: rgba(42, 29, 26, 0.08);
  box-shadow: 0 10px 30px -18px rgba(42, 29, 26, 0.35);
}
.menu-open .header { color: var(--on-dark); transform: none; }
.menu-open .header[data-on] .header__bar { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

.header__logo { display: grid; place-items: center; min-height: 44px; }
.header__logo svg { width: 60px; height: 37px; color: currentColor; transition: color 0.4s; }
.header__nav { margin-left: auto; }
.header__nav ul { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.header__nav a { position: relative; display: block; padding-block: 10px; font-size: 0.875rem; letter-spacing: 0.02em; }
.header__nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out);
}
.header__nav a:hover::after, .header__nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.burger {
  display: none; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent);
}
.burger__lines { position: relative; width: 18px; height: 8px; }
.burger__lines span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
}
.burger__lines span:first-child { top: 0; }
.burger__lines span:last-child { top: 100%; }
.burger[aria-expanded="true"] .burger__lines span:first-child { top: 50%; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines span:last-child { top: 50%; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: var(--ink); color: var(--on-dark);
  visibility: hidden; clip-path: inset(0% 0% 100% 0%);
}
.menu::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 90% 10%, rgba(183, 124, 255, 0.18), transparent 70%);
}
.menu__nav li { overflow: hidden; }
.menu__nav a { display: block; font-family: var(--ff-display); font-size: clamp(2.75rem, 11vw, 5rem); line-height: 1.08; }
.menu__nav a span { display: inline-block; }
.menu__foot { position: relative; display: grid; gap: 18px; justify-items: start; }
.menu__foot p { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 640px;
  background: var(--ink); color: var(--on-dark);
}
.hero__media { position: absolute; inset: 0; z-index: -2; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18, 11, 14, 0.6) 0%, rgba(18, 11, 14, 0.18) 26%, rgba(18, 11, 14, 0.3) 55%, rgba(18, 11, 14, 0.95) 100%),
    linear-gradient(90deg, rgba(18, 11, 14, 0.72) 0%, rgba(18, 11, 14, 0.35) 45%, rgba(18, 11, 14, 0) 75%),
    linear-gradient(0deg, rgba(42, 22, 34, 0.25), rgba(42, 22, 34, 0.25));
}
.hero__inner {
  height: 100%; will-change: transform, opacity;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 120px; padding-bottom: calc(clamp(88px, 12vh, 132px) + var(--r-section));
}
.hero__eyebrow { color: var(--nude); opacity: 1; }
.hero__title {
  font-family: var(--ff-display);
  font-size: clamp(3.4rem, 14.5vw, 15.5rem);
  line-height: 0.86; letter-spacing: -0.035em;
  margin: clamp(14px, 2vh, 24px) 0 clamp(24px, 4vh, 48px);
}
.hero__line { display: block; }
.hero__line--indent { padding-left: clamp(0px, 11vw, 210px); }
.hero__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap; }
.hero__lead { max-width: 44ch; font-size: clamp(1rem, 1.15vw, 1.15rem); color: var(--on-dark-muted); }
.hero__ctas { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero__meta {
  position: absolute; left: 0; right: 0; bottom: calc(var(--r-section) + clamp(16px, 2.5vh, 28px));
  display: flex; align-items: center; gap: 16px;
  font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark-muted);
}
.hero__meta-sep { width: 40px; height: 1px; background: currentColor; opacity: 0.6; }
.hero__scroll {
  margin-left: auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-dark); color: var(--on-dark); transition: background-color 0.4s, color 0.4s;
}
.hero__scroll:hover { background: var(--nude); color: var(--ink); }
.hero__scroll svg { width: 18px; height: 18px; animation: bob 2.4s var(--ease-io) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }

/* ==========================================================================
   Manifeste + marquee
   ========================================================================== */
.manifesto { background: var(--cream); color: var(--text); padding-block: var(--section-y) clamp(56px, 8vw, 120px); overflow: hidden; }
.manifesto__inner { display: grid; gap: clamp(32px, 4vw, 56px); }
.manifesto .eyebrow { color: var(--copper); }
.manifesto__text {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 5.3vw, 5.5rem);
  line-height: 1.02; letter-spacing: -0.018em;
  max-width: 1180px; text-wrap: pretty;
}
.manifesto__foot { display: flex; align-items: center; gap: 24px; justify-self: end; max-width: 500px; }
.manifesto__logo { flex: none; width: 64px; height: 40px; color: var(--copper); }
.manifesto__foot p { color: var(--text-muted); }

.marquee { position: relative; overflow: hidden; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex: none; }

/* ==========================================================================
   Fondatrice
   ========================================================================== */
.founder {
  position: relative; background: var(--cream); color: var(--text);
  padding-top: clamp(40px, 6vw, 90px); padding-bottom: calc(var(--section-y) + var(--r-section));
}
.founder__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.founder__visual { position: relative; padding-bottom: 22%; }
.frame { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--sand); }
.frame__inner { position: absolute; inset: -8% 0; will-change: transform; }
.frame__inner img { width: 100%; height: 100%; object-fit: cover; }
.founder__portrait { width: 84%; aspect-ratio: 4 / 5.3; }
.founder__store {
  position: absolute; right: 0; bottom: 0; width: 56%; aspect-ratio: 16 / 11;
  outline: 8px solid var(--cream); outline-offset: -1px;
}
.founder__badge {
  position: absolute; top: 5%; right: 2%; display: grid; place-items: center;
  width: clamp(112px, 11vw, 164px); aspect-ratio: 1; color: var(--copper);
  border-radius: 50%; background: var(--cream);
  box-shadow: 0 18px 40px -24px rgba(42, 29, 26, 0.45);
}
.founder__badge-text { position: absolute; inset: 8%; width: 84%; height: 84%; overflow: visible; animation: spin 24s linear infinite; }
.founder__badge-text text { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 2.9px; text-transform: uppercase; fill: currentColor; }
.founder__badge-logo { width: 42%; height: auto; aspect-ratio: 68 / 42; }
@keyframes spin { to { transform: rotate(360deg); } }

.founder__content { padding-top: clamp(0px, 5vw, 72px); }
.founder__content .eyebrow { color: var(--copper); }
.founder__content .title-xl { margin-top: 22px; font-size: clamp(3.2rem, 8vw, 8.5rem); }
.founder__role {
  margin: 16px 0 clamp(28px, 3vw, 44px);
  font-family: var(--ff-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper);
}
.founder__text { display: grid; gap: 1.1em; max-width: 52ch; color: var(--text-muted); }
.founder__quote {
  margin: clamp(32px, 4vw, 48px) 0; padding-left: 24px; border-left: 1px solid var(--terra);
  font-family: var(--ff-display); font-size: clamp(1.45rem, 2.1vw, 2.05rem); line-height: 1.2; color: var(--text);
  max-width: 30ch;
}
.founder__quote em { color: var(--copper); }
.founder__places { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-light); max-width: 560px; }
.founder__places li { display: grid; gap: 2px; padding: 22px 0; }
.founder__places li + li { padding-left: 24px; border-left: 1px solid var(--line-light); }
.founder__places-num { font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--copper); }
.founder__places strong { font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.35rem, 1.8vw, 1.7rem); line-height: 1.15; }
.founder__places li > span:last-child { font-size: 0.875rem; color: var(--text-muted); }

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding-block: var(--section-y); overflow: clip; }
.services > .container { position: relative; z-index: 1; }
.services .eyebrow, .reviews .eyebrow, .media .eyebrow, .institut .eyebrow { color: var(--nude); }

.services__grid { display: grid; grid-template-columns: minmax(260px, 0.75fr) 1.6fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.services__video-wrap { position: sticky; top: 104px; display: flex; justify-content: flex-start; }
.services__video {
  position: relative; overflow: hidden;
  height: min(calc(100svh - 150px), 640px); aspect-ratio: 9 / 16; max-width: 100%;
  border-radius: var(--r-lg); background: var(--ink-2);
  box-shadow: 0 40px 80px -40px rgba(183, 124, 255, 0.35);
}
.services__video video { width: 100%; height: 100%; object-fit: cover; }
.services__video-ui {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 6px 6px 16px; border-radius: 999px;
  background: rgba(18, 11, 14, 0.5);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.services__video-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark);
}
.services__video-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 0 rgba(183, 124, 255, 0.6); }
.services__video.is-playing .dot { animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(183, 124, 255, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(183, 124, 255, 0); } }
.services__video-btns { display: flex; gap: 6px; }
.icon-btn .is-pause, .icon-btn .is-on { display: none; }
.services__video.is-playing .is-pause, .services__video.is-sound .is-on { display: block; }
.services__video.is-playing .is-play, .services__video.is-sound .is-off { display: none; }

.services__list { border-top: 1px solid var(--line-dark); }
.service { position: relative; }
.service__line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-dark); transform-origin: left; }
.service__link {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: clamp(12px, 2vw, 28px);
  padding: clamp(22px, 2.5vw, 34px) clamp(8px, 1.4vw, 22px);
  transition: color 0.5s var(--ease-out);
}
.service__link::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--nude);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 0.6s var(--ease-out);
}
.service__link:hover::before, .service__link:focus-visible::before { transform: scaleY(1); }
.service__link:hover, .service__link:focus-visible { color: var(--ink); }
.service__link:focus-visible { outline-offset: -2px; }
.service__num { font-family: var(--ff-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--nude); transition: color 0.5s; }
.service__body { display: flex; flex-direction: column; gap: 6px; transition: transform 0.6s var(--ease-out); }
.service__name { font-family: var(--ff-display); font-size: clamp(1.85rem, 3.5vw, 3.4rem); line-height: 1.02; letter-spacing: -0.01em; }
.service__desc { font-size: 0.9375rem; color: var(--on-dark-muted); transition: color 0.5s; }
.service__go {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--line-dark); color: var(--on-dark);
  transition: transform 0.6s var(--ease-out), background-color 0.5s, color 0.5s, border-color 0.5s;
}
.service__go svg { width: 20px; height: 20px; }
.service__link:hover .service__num, .service__link:focus-visible .service__num { color: var(--copper); }
.service__link:hover .service__body, .service__link:focus-visible .service__body { transform: translateX(12px); }
.service__link:hover .service__desc, .service__link:focus-visible .service__desc { color: var(--text-strong-muted); }
.service__link:hover .service__go, .service__link:focus-visible .service__go {
  background: var(--ink); color: var(--nude); border-color: transparent; transform: rotate(45deg);
}

/* ==========================================================================
   L'Institut — galerie
   Par défaut : grille (mobile, mouvement réduit, sans JS).
   .is-horizontal (ajoutée par GSAP sur desktop) : défilement horizontal épinglé.
   ========================================================================== */
.institut { overflow: clip; }
.hscroll { position: relative; padding-block: var(--section-y) calc(var(--section-y) * 0.8); }
.hscroll__track {
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: dense; gap: 12px;
  width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto;
}
.hscroll__intro, .hcard--quote, .hcard--wide, .hcard:last-child { grid-column: 1 / -1; }
.hscroll__intro { padding-bottom: 32px; max-width: 640px; }
.hscroll__intro .title-xl { margin-top: 22px; font-size: clamp(2.9rem, 5.6vw, 6rem); }
.hscroll__lead { margin: 28px 0 16px; font-family: var(--ff-display); font-size: clamp(1.45rem, 2vw, 1.95rem); line-height: 1.2; }
.hscroll__text { max-width: 46ch; color: var(--on-dark-muted); }
.hscroll__hint {
  display: none; align-items: center; gap: 10px; margin-top: 36px;
  font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nude);
}
.hscroll__hint svg { width: 16px; height: 16px; transform: rotate(45deg); }

.hcard { position: relative; display: flex; flex-direction: column; gap: 14px; }
.hcard__media { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--ink-2); width: 100%; }
.hcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hcard--tall .hcard__media, .hcard--square .hcard__media { aspect-ratio: 3 / 4; }
.hcard--wide .hcard__media { aspect-ratio: 16 / 10; }
.hcard:last-child .hcard__media { aspect-ratio: 16 / 10; }
.hcard figcaption {
  display: flex; gap: 12px;
  font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted);
}
.hcard figcaption span { color: var(--nude); }
.hcard--quote { padding: 32px 0; }
.hcard--quote p { max-width: 22ch; font-family: var(--ff-display); font-size: clamp(1.9rem, 3vw, 2.9rem); line-height: 1.08; letter-spacing: -0.01em; }
.hcard--quote em { color: var(--nude); }
.hscroll__progress { display: none; position: relative; height: 1px; margin-top: clamp(28px, 4vh, 48px); background: var(--line-dark); }
.hscroll__progress span { position: absolute; inset: 0; background: var(--nude); transform: scaleX(0); transform-origin: left; }

/* Mode horizontal (desktop, animations actives) */
.hscroll.is-horizontal {
  height: 100vh; height: 100svh; min-height: 620px;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 96px 48px; overflow: hidden;
}
.is-horizontal .hscroll__track {
  display: flex; align-items: center; gap: clamp(20px, 2.6vw, 44px);
  width: max-content; margin-inline: 0; padding-inline: var(--gutter) calc(var(--gutter) * 2);
  will-change: transform;
}
.is-horizontal .hscroll__intro { flex: none; width: min(560px, 82vw); max-width: none; padding: 0 clamp(16px, 4vw, 72px) 0 0; }
.is-horizontal .hscroll__hint { display: inline-flex; }
.is-horizontal .hcard { flex: none; }
.is-horizontal .hcard__media { aspect-ratio: auto; }
.is-horizontal .hcard__media img { left: -10%; width: 120%; max-width: none; }
.is-horizontal .hcard--tall .hcard__media { height: min(62svh, 600px); width: calc(min(62svh, 600px) * 0.75); }
.is-horizontal .hcard--wide .hcard__media { height: min(50svh, 480px); width: calc(min(50svh, 480px) * 1.5); }
.is-horizontal .hcard--square .hcard__media { height: min(44svh, 420px); width: min(44svh, 420px); }
.is-horizontal .hcard--quote { width: min(440px, 72vw); padding: 0 clamp(8px, 2vw, 32px); }
.is-horizontal .hscroll__progress { display: block; }

/* ==========================================================================
   Pourquoi — bento
   ========================================================================== */
.why { background: var(--cream); color: var(--text); padding-block: var(--section-y) calc(var(--section-y) + var(--r-section)); }
.why .eyebrow { color: var(--copper); }
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(280px, 23vw)); gap: 16px;
}
.bento__card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: clamp(24px, 2.4vw, 36px); border-radius: var(--r-lg);
  background: var(--sand);
}
.bento__card--team { grid-column: 1 / 3; grid-row: 1 / 3; }
.bento__card--premium { grid-column: 3; grid-row: 1; background: var(--nude); }
.bento__card--quality { grid-column: 4; grid-row: 1; }
.bento__card--ambiance { grid-column: 3 / 5; grid-row: 2; }
.bento__card h3 { font-family: var(--ff-display); font-size: clamp(1.65rem, 2.2vw, 2.3rem); line-height: 1.05; }
.bento__card p { max-width: 32ch; font-size: 0.9375rem; color: var(--text-muted); }
.bento__card--premium p { color: var(--text-strong-muted); }
.bento__icon { width: 38px; height: 38px; margin-bottom: auto; color: var(--copper); }
.bento__num { position: absolute; top: clamp(20px, 2vw, 28px); right: clamp(22px, 2.2vw, 30px); font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--copper); }
.bento__card--photo { color: var(--on-dark); }
.bento__card--photo img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.bento__card--team img { object-position: 50% 30%; }
.bento__card--photo::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(18, 11, 14, 0.05) 25%, rgba(18, 11, 14, 0.88) 100%);
}
.bento__card--photo:hover img { transform: scale(1.05); }
.bento__card--photo .bento__num, .bento__card--photo .bento__icon { color: var(--nude); }
.bento__card--photo p { color: var(--on-dark-muted); }
.bento__content { display: grid; gap: 10px; }
.bento__content .bento__icon { margin-bottom: 8px; }

/* ==========================================================================
   Témoignages
   ========================================================================== */
.reviews { padding-block: var(--section-y); overflow: hidden; }
.reviews__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  margin-bottom: clamp(48px, 6vw, 84px);
}
.reviews__head .title-xl { margin-top: 22px; }
.reviews__badge {
  display: inline-flex; align-items: center; gap: 14px; padding: 12px 20px;
  border: 1px solid var(--line-dark); border-radius: 999px; font-size: 0.875rem; color: var(--on-dark-muted);
}
.stars { display: inline-flex; gap: 3px; color: var(--gold); }
.stars svg { width: 15px; height: 15px; }
.marquee--reviews + .marquee--reviews { margin-top: 16px; }
.marquee--reviews .marquee__group { align-items: stretch; gap: 16px; padding-right: 16px; }
.review {
  flex: none; display: flex; flex-direction: column; gap: 20px;
  width: clamp(290px, 30vw, 430px); padding: clamp(24px, 2.2vw, 32px);
  border-radius: var(--r-lg); background: rgba(246, 236, 228, 0.04); border: 1px solid var(--line-dark);
  transition: background-color 0.4s, border-color 0.4s;
}
.review:hover { background: rgba(246, 236, 228, 0.07); border-color: rgba(244, 198, 175, 0.4); }
.review blockquote { flex: 1; font-family: var(--ff-display); font-size: clamp(1.2rem, 1.45vw, 1.45rem); line-height: 1.3; }
.review__author { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; font-size: 0.9375rem; font-weight: 500; }
.review__avatar {
  grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-brand); color: var(--ink); font-family: var(--ff-display); font-size: 1.3rem; font-weight: 400;
}
.review__author small { font-family: var(--ff-mono); font-size: 0.66rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); }

/* ==========================================================================
   Médias
   ========================================================================== */
.media { padding-block: clamp(80px, 9vw, 140px) calc(var(--section-y) + var(--r-section)); overflow: clip; }
.media__stage { position: relative; z-index: 1; min-height: min(118vh, 1040px); display: grid; place-items: center; }
.media__center { position: relative; z-index: 2; display: grid; justify-items: center; gap: 28px; max-width: 920px; text-align: center; }
.media__title { font-size: clamp(3rem, 7.6vw, 7.6rem); }
.media__title em { display: inline; }
.float { position: absolute; z-index: 1; display: block; will-change: transform; }
.float__inner {
  position: relative; display: block; overflow: hidden; border-radius: var(--r-md);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
}
.float__inner img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.float:hover .float__inner img, .float:focus-visible .float__inner img { transform: scale(1.07); }
.float__tag {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px;
  background: rgba(18, 11, 14, 0.74);
  font-family: var(--ff-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark);
}
.float--1 { top: 0; left: 0; width: clamp(200px, 22vw, 340px); }
.float--1 .float__inner { aspect-ratio: 16 / 10; }
.float--2 { top: 6%; right: 0; width: clamp(210px, 24vw, 370px); }
.float--2 .float__inner { aspect-ratio: 16 / 9; }
.float--3 { bottom: 2%; left: 7%; width: clamp(160px, 15vw, 230px); }
.float--3 .float__inner { aspect-ratio: 1; }
.float--4 { bottom: 0; right: 9%; width: clamp(170px, 16vw, 250px); }
.float--4 .float__inner { aspect-ratio: 4 / 5; }

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta {
  background: linear-gradient(180deg, var(--cream) 0%, var(--nude-soft) 60%, var(--nude) 100%);
  color: var(--text); text-align: center;
  padding-block: var(--section-y);
  border-radius: var(--r-section);
}
.cta .eyebrow { color: var(--copper); }
.cta__inner { display: grid; justify-items: center; gap: clamp(28px, 3.5vw, 44px); }
.cta__title {
  font-family: var(--ff-display); font-size: clamp(3.1rem, 8.4vw, 9.25rem);
  line-height: 0.92; letter-spacing: -0.03em;
}
.cta__title em { display: block; }
.cta__circle { position: relative; display: grid; place-items: center; width: clamp(150px, 14vw, 200px); aspect-ratio: 1; color: var(--ink); }
.cta__circle-text { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: spin 18s linear infinite; }
.cta__circle-text text { font-family: var(--ff-mono); font-size: 12.5px; letter-spacing: 3.9px; text-transform: uppercase; fill: currentColor; }
.cta__circle-core {
  display: grid; place-items: center; width: 56%; aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); color: var(--nude);
  transition: transform 0.6s var(--ease-out), background-color 0.5s, color 0.5s;
}
.cta__circle-core svg { width: 32%; height: 32%; }
.cta__circle:hover .cta__circle-core, .cta__circle:focus-visible .cta__circle-core { transform: scale(1.08) rotate(45deg); background: var(--copper); color: var(--cream); }
.cta__alt { color: var(--text-strong-muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative; z-index: 0; overflow: hidden;
  margin-top: calc(var(--r-section) * -1);
  padding-top: calc(clamp(80px, 9vw, 140px) + var(--r-section));
  background: var(--espresso); color: var(--on-dark);
}
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 40px; }
.footer__logo { width: 96px; height: 60px; color: var(--gold); }
.footer__brand p { margin-top: 24px; max-width: 34ch; color: var(--on-dark-muted); }
.footer__label { margin-bottom: 18px; font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nude); }
.footer__col li { color: var(--on-dark-muted); }
.footer__col li + li { margin-top: 8px; }
.footer__col a { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; color: var(--on-dark); background: linear-gradient(currentColor, currentColor) 0 90% / 0% 1px no-repeat; transition: background-size 0.5s var(--ease-out); }
.footer__col a:hover { background-size: 100% 1px; }
.footer__ico { width: 18px; height: 18px; }
.footer__word {
  margin-top: clamp(56px, 8vw, 120px); overflow: hidden; text-align: center; white-space: nowrap;
  font-family: var(--ff-display); font-size: clamp(4rem, 19vw, 22rem); line-height: 0.82; letter-spacing: -0.04em;
}
.footer__word span {
  display: inline-block; padding-bottom: 0.08em;
  background: linear-gradient(180deg, var(--nude) 10%, var(--copper) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-block: 24px; padding-right: 84px; border-top: 1px solid var(--line-dark);
  font-size: 0.8125rem; color: var(--on-dark-muted);
}
.footer__top-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--on-dark); }
.footer__top-link svg { width: 16px; height: 16px; transform: rotate(-45deg); transition: transform 0.5s var(--ease-out); }
.footer__top-link:hover svg { transform: rotate(-45deg) translate(2px, -2px); }

/* Footer révélé sous le contenu (desktop) */
@media (min-width: 1024px) and (min-height: 760px) {
  .footer { position: sticky; bottom: 0; }
}

/* ==========================================================================
   WhatsApp flottant + grain
   ========================================================================== */
.wa {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: var(--z-float);
  display: flex; align-items: center; gap: 0; height: 56px; padding-left: 0; border-radius: 999px;
  background: var(--ink); color: var(--on-dark);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(246, 236, 228, 0.12);
  transition: padding 0.5s var(--ease-out), opacity 0.4s, transform 0.4s var(--ease-out);
}
.wa__label {
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  font-size: 0.875rem; font-weight: 500;
  transition: max-width 0.6s var(--ease-out), opacity 0.4s, padding 0.6s var(--ease-out);
}
.wa__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: var(--ink); flex: none; }
.wa__icon svg { width: 26px; height: 26px; }
.wa:hover .wa__label, .wa:focus-visible .wa__label { max-width: 260px; opacity: 1; padding: 0 14px 0 22px; }
.menu-open .wa { opacity: 0; pointer-events: none; transform: translateY(20px); }

.grain {
  position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: 0.05; transform: translateZ(0);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1023px) {
  .founder__grid { grid-template-columns: 1fr; }
  .founder__visual { max-width: 640px; }
  .founder__content { padding-top: 0; }

  .services__grid { grid-template-columns: 1fr; }
  .services__video-wrap { position: relative; top: 0; justify-content: center; }
  .services__video { height: min(66svh, 560px); }

  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .bento__card { min-height: 280px; }
  .bento__card--team, .bento__card--ambiance { grid-column: 1 / -1; grid-row: auto; min-height: 420px; }
  .bento__card--premium, .bento__card--quality { grid-column: auto; grid-row: auto; }
}

@media (max-width: 960px) {
  .header__nav { display: none; }
  .header__cta { margin-left: auto; }
  .burger { display: grid; }
  .section-head { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .hero__meta-sep, .hero__meta > span:nth-of-type(2) { display: none; }
  .hero__ctas { gap: 20px; }
  .manifesto__foot { justify-self: start; }
  .founder__places { grid-template-columns: 1fr; }
  .founder__places li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-light); }

  .service__link { grid-template-columns: 32px 1fr auto; }
  .service__go { width: 44px; height: 44px; }

  .media__stage { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; place-items: stretch; }
  .media__center { grid-column: 1 / -1; margin-bottom: 36px; }
  .float { position: relative; inset: auto; width: auto !important; }
  .float .float__inner { aspect-ratio: 4 / 5 !important; }

  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .wa { height: 52px; }
  .wa__icon { width: 52px; height: 52px; }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento__card--premium, .bento__card--quality { min-height: 240px; }
  .hscroll__track { grid-template-columns: 1fr; }
  .hcard .hcard__media { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  .marquee--reviews .marquee__track { width: auto; overflow-x: auto; padding-inline: var(--gutter); scroll-snap-type: x mandatory; }
  .marquee--reviews .review { scroll-snap-align: start; }
}
