/* ==========================================================
   INSTITUT ESTHETICA — base : tokens, reset, composants, hero
   Direction artistique « Rosace & Nacre »
   Fil rouge : la rosace « E » de l'enseigne, l'arabesque, la perle.
   ========================================================== */

:root {
  /* Palette (rôles) */
  --ink: #17090f;          /* fond sombre, texte sur clair */
  --ink-2: #260f1b;        /* fond sombre secondaire */
  --plum: #3a1428;         /* cabine prune */
  --rose: #e0488c;         /* accent signature (rose de l'enseigne) */
  --rose-deep: #bf2f6c;    /* rose pour aplats avec texte clair, texte rose sur fond clair */
  --rose-soft: #f7d6e5;    /* rose poudré, texte accent sur fond sombre */
  --blush: #fbeff3;        /* fond clair principal */
  --cream: #fff8f4;        /* fond clair secondaire / nacre */
  --lagoon: #3f9aa0;       /* bleu lagon : beauté marine Thalgo, survol */
  --lagoon-deep: #1f5f66;
  --lagoon-soft: #d3ebe9;
  --gold: #c8946a;         /* or rosé pour les filets */

  --text: #2a1220;
  --text-soft: #6b4a58;
  --on-dark: #f8e9ef;
  --on-dark-soft: rgba(248, 233, 239, .74);

  --f-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --f-body: 'Jost', 'Avenir Next', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.19, 1, .22, 1);     /* expo.out */
  --ease-io: cubic-bezier(.76, 0, .24, 1);  /* expo.inOut */
  --gut: clamp(20px, 4.2vw, 64px);
  --nav-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: clamp(16px, 1.05vw + 10px, 18px);
  line-height: 1.62;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, ul, address { margin: 0; padding: 0; }
ul { list-style: none; }
address { font-style: normal; }
svg { fill: none; }
::selection { background: var(--rose); color: #fff; }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; border-radius: 4px; }

.wrap { width: min(1320px, calc(100% - 2 * var(--gut))); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 2000; background: var(--ink); color: #fff; padding: .7em 1.2em; border-radius: 99px; transition: top .3s; }
.skip:focus { top: 12px; }

/* ---------- Typo ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 6.4vw, 6rem);
  line-height: 1;
  letter-spacing: -.025em;
  color: var(--ink);
}
.h2 em, .film__title em, .rdv__title em { font-style: italic; color: var(--rose-deep); }

.eyebrow {
  display: flex; align-items: center; gap: 1em;
  font-size: .72rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  color: var(--rose-soft);
}
.eyebrow i { display: block; width: 3.2em; height: 1px; background: currentColor; opacity: .6; }
.eyebrow--dark { color: var(--rose-deep); }
.eyebrow--light { color: var(--rose-soft); }

/* split text */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > .c, .w > .wi { display: inline-block; will-change: transform; }
[data-split] { display: block; }

/* lien souligné animé */
.ulink {
  background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1px no-repeat;
  transition: background-size .55s var(--ease), color .3s;
  padding-bottom: 2px;
}
.ulink:hover, .ulink:focus-visible { background-size: 100% 1px; background-position: 0 100%; }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--rose-deep); --fg: #fff; --fill: var(--ink); --fg-h: #fff; --bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  padding: 1.05em 1.9em; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-size: .86rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  transition: color .5s var(--ease), border-color .5s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; background: var(--fill);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0; transform: translateY(102%);
  transition: transform .7s var(--ease), border-radius .7s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); border-radius: 0; }
.btn:hover, .btn:focus-visible { color: var(--fg-h); }
.btn svg { width: 1.25em; height: 1.25em; stroke: currentColor; transition: transform .5s var(--ease); }
.btn:hover svg:last-child { transform: translateX(4px); }
.btn--rose { --bg: var(--rose-deep); --fill: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--on-dark); --bd: rgba(255, 255, 255, .45); --fill: #fff; --fg-h: var(--ink); backdrop-filter: blur(6px); }
.btn--dark { --bg: var(--ink); --fg: var(--cream); --fill: var(--rose-deep); }
.btn--dark-ghost { --bg: transparent; --fg: var(--ink); --bd: rgba(23, 9, 15, .4); --fill: var(--ink); --fg-h: var(--cream); }
.btn--sm { padding: .8em 1.4em; font-size: .74rem; }

.round {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid currentColor; transition: background .4s var(--ease), color .4s var(--ease), transform .5s var(--ease);
}
.round svg { width: 22px; height: 22px; stroke: currentColor; }
.round:hover { background: currentColor; }
.round:hover svg { stroke: var(--cream); }

/* ---------- Préchargeur ---------- */
.loader { position: fixed; inset: 0; z-index: 1000; display: none; color: var(--rose-soft); }
.js .loader { display: block; }
.loader__pane { position: absolute; top: 0; bottom: 0; width: 50.2%; background: var(--ink); }
.loader__pane--l { left: 0; }
.loader__pane--r { right: 0; }
.loader__pane::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 14px;
  background: radial-gradient(circle at 0 50%, var(--ink) 0 11.4px, transparent 12px) 0 0 / 14px 28px repeat-y;
}
.loader__pane--l::after { left: 100%; }
.loader__pane--r::after { right: 100%; background: radial-gradient(circle at 100% 50%, var(--ink) 0 11.4px, transparent 12px) 0 0 / 14px 28px repeat-y; }
.loader__center {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; z-index: 2;
}
.loader__rosace { width: clamp(150px, 24vw, 230px); height: auto; overflow: visible; color: var(--rose); stroke-width: 1.8; }
.loader__rosace .lp { stroke-dasharray: 1; stroke-dashoffset: 1; }
.loader__e { opacity: 0; }
.loader__name { font-family: var(--f-display); font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: .02em; color: var(--on-dark); overflow: hidden; }
.loader__name em { color: var(--rose); }
.loader__name span, .loader__name em { display: inline-block; }
.loader__count { font-size: .8rem; letter-spacing: .3em; color: var(--on-dark-soft); font-variant-numeric: tabular-nums; }
.loader__count small { margin-left: 2px; }

/* ---------- Progression, curseur ---------- */
.progress { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 900; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--rose), var(--gold)); transform: scaleX(0); transform-origin: 0 50%; }

.cursor { position: fixed; left: 0; top: 0; z-index: 950; pointer-events: none; display: none; }
.cursor span {
  display: block; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 1px solid var(--rose); background: rgba(224, 72, 140, .08);
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s;
}
.cursor.is-big span { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: rgba(224, 72, 140, .2); }
@media (hover: hover) and (pointer: fine) { .js .cursor { display: block; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; left: 0; right: 0; top: 0; z-index: 800; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0 var(--gut); color: var(--on-dark);
  transition: transform .8s var(--ease), background .5s, color .5s, backdrop-filter .5s, box-shadow .5s;
}
.nav.is-solid { background: rgba(251, 239, 243, .86); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); color: var(--ink); box-shadow: 0 1px 0 rgba(23, 9, 15, .08); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { display: flex; align-items: center; gap: .7rem; font-family: var(--f-display); font-size: 1.35rem; letter-spacing: .01em; }
.nav__logo em { color: var(--rose); font-weight: 500; }
.nav.is-solid .nav__logo em { color: var(--rose-deep); }
.nav__mark { width: 38px; height: 38px; color: var(--rose); flex: none; }
.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.nav__cta { margin-left: .5rem; }
.nav__burger { display: none; width: 48px; height: 48px; position: relative; border: 1px solid currentColor; border-radius: 50%; }
.nav__burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__burger span:nth-child(1) { top: 20px; }
.nav__burger span:nth-child(2) { top: 26px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { top: 23px; transform: rotate(-45deg); }
body.menu-open .nav { color: var(--on-dark); background: transparent; box-shadow: none; backdrop-filter: none; }
body.menu-open .nav.is-hidden { transform: none; }

.menu {
  position: fixed; inset: 0; z-index: 790; background: var(--ink); color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--nav-h) + 2vh) var(--gut) 32px;
  clip-path: circle(0% at calc(100% - 44px) 42px); visibility: hidden; overflow: hidden;
}
.menu__links { display: flex; flex-direction: column; gap: .2rem; margin-top: 4vh; }
.menu__links a { display: flex; align-items: baseline; gap: 1rem; font-family: var(--f-display); font-size: clamp(2.6rem, 11vw, 4.6rem); line-height: 1.12; overflow: hidden; }
.menu__links a i { font-family: var(--f-body); font-style: normal; font-size: .8rem; letter-spacing: .2em; color: var(--rose); }
.menu__links a span { display: inline-block; }
.menu__foot { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; position: relative; z-index: 2; }
.menu__tel { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.3rem; }
.menu__tel svg { width: 22px; height: 22px; stroke: var(--rose); }
.menu__rosace { position: absolute; right: -25vmin; bottom: -20vmin; width: 85vmin; height: 85vmin; color: rgba(224, 72, 140, .14); }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; height: 100vh; height: 100svh; min-height: 660px; overflow: hidden; display: flex; align-items: flex-end; color: var(--on-dark); background: var(--ink); }
.hero__media { position: absolute; inset: -7% 0; will-change: transform; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08) contrast(1.04); }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 9, 15, .62) 0%, rgba(23, 9, 15, .12) 36%, rgba(23, 9, 15, .86) 100%),
    radial-gradient(75% 60% at 12% 100%, rgba(224, 72, 140, .38), transparent 70%);
}
.hero__grain {
  position: absolute; inset: 0; opacity: .16; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero__pearls { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.hero__pearls i {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff 0, var(--rose-soft) 38%, rgba(224, 72, 140, .7) 100%);
  box-shadow: 0 0 18px rgba(255, 255, 255, .35), inset -2px -3px 5px rgba(120, 20, 70, .35);
  opacity: .9; will-change: transform;
}
.hero__rosace { position: absolute; z-index: 2; right: -14vmin; top: 6%; width: 86vmin; height: 86vmin; color: rgba(247, 214, 229, .2); pointer-events: none; will-change: transform; }
.hero__content { position: relative; z-index: 3; width: 100%; padding: 0 var(--gut) clamp(96px, 15vh, 160px); will-change: transform; }
.hero__eyebrow { margin-bottom: clamp(1rem, 3vh, 2rem); }
.hero__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(4.1rem, 15.4vw, 15.5rem); line-height: .84; letter-spacing: -.04em; }
.hero__line { display: block; }
.hero__line--script { font-style: italic; font-weight: 400; color: var(--rose-soft); margin-left: clamp(0px, 7.5vw, 130px); letter-spacing: -.045em; }
.hero__lead { max-width: 33rem; margin-top: clamp(1.4rem, 3.5vh, 2.6rem); font-size: clamp(1rem, 1.3vw, 1.2rem); color: var(--on-dark-soft); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: clamp(1.4rem, 3.5vh, 2.4rem); }
.hero__badge {
  position: absolute; z-index: 4; right: var(--gut); bottom: clamp(100px, 16vh, 170px);
  display: grid; grid-template-columns: auto auto; align-items: center; column-gap: .9rem; row-gap: .1rem;
  padding: 1rem 1.4rem; border-radius: 22px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .26);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .6s var(--ease), background .4s;
}
.hero__badge:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .18); }
.hero__stars { grid-column: 1 / -1; display: flex; gap: 3px; color: #ffcf6b; }
.hero__stars svg { width: 16px; height: 16px; fill: currentColor; }
.hero__badge strong { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; font-weight: 500; }
.hero__badge span:last-child { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-soft); }
.hero__scroll { position: absolute; z-index: 4; left: 50%; bottom: 26px; display: flex; flex-direction: column; align-items: center; gap: .7rem; font-size: .66rem; letter-spacing: .34em; text-transform: uppercase; color: var(--on-dark-soft); transform: translateX(-50%); }
.hero__scroll i { display: block; width: 1px; height: 46px; background: linear-gradient(var(--rose), transparent); transform-origin: 0 0; animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 6; margin: -4.4vw 0 -2.2vw; overflow: hidden; padding: 4vw 0; pointer-events: none; }
.marquee__rot { transform: rotate(-2.4deg); background: var(--rose-deep); color: var(--cream); padding: 1.15rem 0; margin: 0 -6%; box-shadow: 0 18px 50px rgba(23, 9, 15, .25); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex: none; gap: 2.2rem; padding-right: 2.2rem; }
.marquee__group span { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(1.7rem, 3.6vw, 3.2rem); white-space: nowrap; letter-spacing: -.01em; }
.marquee__group svg { width: clamp(34px, 4vw, 52px); height: clamp(34px, 4vw, 52px); flex: none; color: var(--rose-soft); }

/* ---------- Mobile base ---------- */
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero__badge { right: auto; left: var(--gut); bottom: auto; top: calc(var(--nav-h) + 12px); padding: .7rem 1rem; }
  .hero__badge strong { font-size: 1.8rem; }
  .hero__scroll { display: none; }
  .hero__line--script { margin-left: 0; }
}

@media (max-width: 640px) {
  .hero__title { font-size: 19.4vw; }
  .eyebrow { flex-wrap: wrap; gap: .2rem .9rem; font-size: .66rem; letter-spacing: .22em; }
  .eyebrow i { display: none; }
  .hero__eyebrow { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .hero__lead { max-width: 100%; }
  .btn { padding: 1em 1.5em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__scroll i { animation: none; transform: none; }
}
