/* ==========================================================================
   AETHERA — design tokens
   Palette tirée des trois mondes : nuit indigo, aurore cyan, iris, corail.
   ========================================================================== */

:root {
  --night: #06070f;
  --night-2: #0b0d1c;
  --surface: #11142a;
  --surface-2: #181c38;
  --text: #f1f2fa;
  --muted: #9aa0bd;
  --line: rgba(214, 220, 255, 0.12);
  --line-strong: rgba(214, 220, 255, 0.24);

  --aurora: #3fe6d2;
  --iris: #8e73ff;
  --coral: #ff8a5c;
  --solar: #ffc66b;
  --grad: linear-gradient(100deg, var(--aurora) 0%, var(--iris) 50%, var(--coral) 100%);

  --f-display: "Syne", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-y: clamp(96px, 12vw, 176px);
  --radius: 22px;
  --radius-sm: 12px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { max-width: 100vw; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body); font-size: 16px; line-height: 1.6; color: var(--text);
  background: var(--night); -webkit-font-smoothing: antialiased;
}
/* Grain de film — profondeur cinématographique */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}
.nav-open body, .drawer-open body { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
:focus-visible { outline: 2px solid var(--aurora); outline-offset: 3px; border-radius: 6px; }

.skip { position: fixed; top: 12px; left: 12px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--aurora); color: var(--night); font-weight: 600; transform: translateY(-180%); transition: transform .2s var(--ease); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.i { width: 16px; height: 16px; flex-shrink: 0; }
.muted { color: var(--muted); }

/* Typographie */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--grad); }
.h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 4.6vw, 72px); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.aurora-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; padding-right: 0.06em; }
.lead { font-size: clamp(16px, 1.2vw, 18px); color: var(--muted); max-width: 48ch; }

.section-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head > div { display: flex; flex-direction: column; gap: 20px; }

/* Boutons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .35s var(--ease);
}
.btn .i { transition: transform .3s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn--aurora { background: var(--grad); color: var(--night); box-shadow: 0 10px 40px -12px rgba(142, 115, 255, 0.7); }
.btn--aurora::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--text); transform: translateX(-101%); transition: transform .5s var(--ease-io); }
.btn--aurora:hover::before { transform: none; }
.btn--aurora:hover { box-shadow: 0 14px 50px -10px rgba(63, 230, 210, 0.6); }
.btn--line { border-color: var(--line-strong); color: var(--text); background: rgba(6, 7, 15, 0.25); }
.btn--line::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: 0; transition: opacity .35s var(--ease); }
.btn--line:hover { color: var(--night); border-color: transparent; }
.btn--line:hover::before { opacity: 1; }
.link { background: none; border: 0; cursor: pointer; color: var(--aurora); text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   Préchargement
   ========================================================================== */

.loader { display: none; }
.motion .loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--night);
  transition: opacity .7s var(--ease), visibility 0s linear .7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.loader__word { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 5vw, 52px); letter-spacing: 0.32em; padding-left: 0.32em; }
.loader__bar { width: 200px; height: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; border-radius: 2px; }
.loader__bar span { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); transition: transform .4s var(--ease); }
.loader__sub { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding-inline: var(--gutter);
  transition: background-color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-solid { background: rgba(6, 7, 15, 0.82); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }

.brand { justify-self: start; display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 30px; height: 30px; }
.brand__word { font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: 0.3em; }

.nav__list { display: flex; gap: 34px; }
.nav__list a { position: relative; font-size: 14px; font-weight: 500; color: rgba(241, 242, 250, 0.78); transition: color .25s var(--ease); }
.nav__list a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav__list a:hover { color: var(--text); }
.nav__list a:not(.btn):hover::after { transform: scaleX(1); }
.nav__mobile-cta { display: none; }

.header__actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.header__cta { min-height: 44px; padding: 0 20px; }
.fav-toggle {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(6, 7, 15, 0.3); cursor: pointer; transition: border-color .3s var(--ease);
}
.fav-toggle svg { width: 20px; height: 20px; }
.fav-toggle:hover { border-color: var(--coral); }
.fav-toggle__count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--night); background: var(--coral);
  transform: scale(0); transition: transform .4s var(--ease);
}
.fav-toggle.has-favs .fav-toggle__count { transform: scale(1); }
.fav-toggle.has-favs svg path { fill: var(--coral); stroke: var(--coral); }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(6, 7, 15, 0.3); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.nav-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* ==========================================================================
   01 — Hero triptyque
   ========================================================================== */

.hero { position: relative; height: 100vh; height: 100svh; min-height: 680px; padding: calc(var(--header-h) + 4px) 12px 12px; overflow: hidden; }
.triptych { position: absolute; inset: calc(var(--header-h) + 4px) 12px 12px; display: flex; gap: 10px; }
.panel {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--radius); isolation: isolate;
  transition: flex-grow 1.1s var(--ease);
  background: var(--surface) center / cover no-repeat;
}
.panel.is-active { flex-grow: 2.6; }
.panel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease), filter 1.1s var(--ease); filter: saturate(0.75) brightness(0.7); }
.panel.is-active .panel__video { transform: scale(1); filter: none; }
.panel__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 7, 15, 0.45) 0%, rgba(6, 7, 15, 0) 26%, rgba(6, 7, 15, 0) 45%, rgba(6, 7, 15, 0.9) 100%); }
.panel__tag {
  position: absolute; top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px;
  font-family: var(--f-display); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap;
  background: rgba(6, 7, 15, 0.35); border: 1px solid rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.panel__tag b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: var(--night); font-size: 10px; }
.panel__meta { position: absolute; top: 24px; right: 20px; font-size: 12px; color: rgba(241, 242, 250, 0.8); white-space: nowrap; opacity: 0; transform: translateY(-6px); transition: opacity .6s var(--ease) .2s, transform .6s var(--ease) .2s; }
.panel.is-active .panel__meta { opacity: 1; transform: none; }

.hero__content {
  position: absolute; left: calc(12px + clamp(20px, 3vw, 48px)); right: calc(12px + clamp(20px, 3vw, 48px)); bottom: calc(12px + clamp(20px, 3vw, 44px));
  z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; pointer-events: none;
}
.hero__content > * { pointer-events: auto; }
.hero__title {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(52px, 9.4vw, 168px); line-height: 0.9; letter-spacing: -0.04em;
  text-shadow: 0 4px 40px rgba(6, 7, 15, 0.35);
}
.hero__title .serif { font-size: 1.08em; letter-spacing: -0.02em; text-shadow: none; }
.hero__lead { max-width: 46ch; font-size: clamp(15px, 1.15vw, 18px); color: rgba(241, 242, 250, 0.86); }

/* Recherche */
.search {
  margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: stretch; gap: 4px;
  width: min(880px, 100%); padding: 6px; border-radius: 22px;
  background: rgba(10, 12, 26, 0.6); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
}
.search__field { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 16px; border-radius: 16px; transition: background-color .25s var(--ease); min-width: 0; }
.search__field:hover, .search__field:focus-within { background: rgba(255, 255, 255, 0.06); }
.search__field span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.search__field select { appearance: none; background: none; border: 0; font-size: 15px; font-weight: 500; cursor: pointer; padding: 2px 0; width: 100%; text-overflow: ellipsis; }
.search__field select:focus { outline: none; }
.search__field select option { background: var(--surface); color: var(--text); }
.search__submit { border-radius: 16px; min-height: 56px; }

/* Curseur orbe (desktop uniquement) */
.cursor-orb {
  position: fixed; top: 0; left: 0; z-index: 70; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: none; opacity: 0; transform: scale(0.4);
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--f-display); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.cursor-orb.is-on { opacity: 1; transform: scale(1); }
@media (hover: none), (max-width: 1023px) { .cursor-orb { display: none; } }

/* États d'entrée du hero (animés par JS) */
.motion [data-hero-fade] { opacity: 0; transform: translateY(18px); }
.motion .hero:not(.is-revealed) .panel { clip-path: inset(100% 0 0 0 round var(--radius)); }
.word { display: inline-block; }
.motion [data-split] .word { opacity: 0; transform: translateY(18px); filter: blur(6px); }

/* ==========================================================================
   02 — Manifeste
   ========================================================================== */

.manifesto { background: radial-gradient(60% 50% at 80% 0%, rgba(142, 115, 255, 0.14), transparent 70%), var(--night); }
.manifesto__text {
  margin-top: 28px; font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 4.2vw, 66px); line-height: 1.08; letter-spacing: -0.02em; max-width: 22ch;
}
.motion .manifesto__text .word { opacity: 0.16; }
.stats { margin-top: clamp(64px, 8vw, 120px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat { padding-top: 22px; border-top: 1px solid var(--line-strong); position: relative; }
.stat::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 1px; background: var(--grad); }
.stat__value { font-family: var(--f-display); font-weight: 600; font-size: clamp(40px, 4.4vw, 72px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat__value small { font-size: 0.42em; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.stat__label { margin-top: 12px; font-size: 14px; color: var(--muted); max-width: 26ch; }

/* ==========================================================================
   03 — Les trois mondes (épinglé)
   ========================================================================== */

.worlds { position: relative; height: 340vh; }
.worlds__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.worlds__layer { position: absolute; inset: 0; }
.worlds__layer video { width: 100%; height: 100%; object-fit: cover; }
.motion .worlds__layer[data-layer="1"], .motion .worlds__layer[data-layer="2"] { clip-path: circle(0% at 72% 50%); }
.worlds__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(6, 7, 15, 0.82) 0%, rgba(6, 7, 15, 0.35) 48%, rgba(6, 7, 15, 0) 75%), linear-gradient(0deg, rgba(6, 7, 15, 0.7) 0%, transparent 35%); }
.worlds__index { position: absolute; top: calc(var(--header-h) + 20px); right: var(--gutter); display: flex; gap: 22px; font-size: 13px; color: rgba(241, 242, 250, 0.5); }
.worlds__index li { display: flex; gap: 8px; transition: color .4s var(--ease); }
.worlds__index li b { font-family: var(--f-display); }
.worlds__index li.is-on { color: var(--text); }
.chapter {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(560px, calc(100% - 2 * var(--gutter)));
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
}
.chapter__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(64px, 11vw, 190px); line-height: 0.86; letter-spacing: -0.05em; }
.chapter[data-chapter="0"] .chapter__title { color: var(--aurora); }
.chapter[data-chapter="1"] .chapter__title { color: var(--iris); }
.chapter[data-chapter="2"] .chapter__title { color: var(--coral); }
.chapter__lead { font-size: clamp(16px, 1.3vw, 20px); color: rgba(241, 242, 250, 0.86); max-width: 40ch; }
.chapter__facts { display: flex; gap: 32px; padding: 16px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.chapter__facts dt { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.chapter__facts dd { font-family: var(--f-display); font-size: 22px; font-weight: 600; }
.motion .chapter { opacity: 0; visibility: hidden; }
.motion .chapter[data-chapter="0"] { opacity: 1; visibility: visible; }
.worlds__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; height: 2px; background: rgba(255, 255, 255, 0.14); border-radius: 2px; overflow: hidden; }
.worlds__progress span { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }

/* Sans animation : les trois mondes empilés */
html:not(.motion) .worlds { height: auto; }
html:not(.motion) .worlds__stage { position: relative; height: auto; display: grid; }
html:not(.motion) .worlds__layer { position: relative; height: 70vh; }
html:not(.motion) .worlds__veil, html:not(.motion) .worlds__index, html:not(.motion) .worlds__progress { display: none; }
html:not(.motion) .chapter { position: relative; left: auto; top: auto; transform: none; width: auto; padding: 48px var(--gutter) 96px; }
html:not(.motion) .worlds__stage { grid-template-areas: "l0" "c0" "l1" "c1" "l2" "c2"; }
html:not(.motion) [data-layer="0"] { grid-area: l0; } html:not(.motion) [data-chapter="0"] { grid-area: c0; }
html:not(.motion) [data-layer="1"] { grid-area: l1; } html:not(.motion) [data-chapter="1"] { grid-area: c1; }
html:not(.motion) [data-layer="2"] { grid-area: l2; } html:not(.motion) [data-chapter="2"] { grid-area: c2; }

/* ==========================================================================
   04 — Collection
   ========================================================================== */

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 36px; }
.chip {
  min-height: 42px; padding: 0 18px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 500;
  background: transparent; border: 1px solid var(--line-strong); color: rgba(241, 242, 250, 0.8);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.is-active { background: var(--text); color: var(--night); border-color: var(--text); }
.chip--fav.is-active { background: var(--coral); border-color: var(--coral); }
.filters__count { margin-left: auto; font-size: 14px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.card { position: relative; display: flex; flex-direction: column; gap: 16px; }
.card[hidden] { display: none; }
.card__media {
  position: relative; aspect-ratio: 4 / 3.4; border-radius: var(--radius); overflow: hidden; background: var(--surface); cursor: pointer;
  border: 0; padding: 0; width: 100%; text-align: left;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s var(--ease); }
.card__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card:hover .card__media::after { opacity: 1; }
.card__badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { padding: 6px 11px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; background: rgba(6, 7, 15, 0.55); border: 1px solid rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.badge--hot { background: var(--grad); color: var(--night); border-color: transparent; }
.card__view { position: absolute; left: 14px; bottom: 14px; padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--text); color: var(--night); opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.card:hover .card__view, .card__media:focus-visible .card__view { opacity: 1; transform: none; }
.card__fav {
  position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(6, 7, 15, 0.5); border: 1px solid rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.card__fav svg { width: 18px; height: 18px; }
.card__fav:hover { transform: scale(1.08); }
.card__fav[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); }
.card__fav[aria-pressed="true"] path { fill: var(--night); stroke: var(--night); }
.card__fav.pop { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.3); } }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card__name { font-family: var(--f-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.card__price { font-family: var(--f-display); font-size: 18px; font-weight: 600; white-space: nowrap; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.card__place { font-size: 14px; color: var(--muted); }
.card__specs { display: flex; gap: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: rgba(241, 242, 250, 0.82); }
.card__specs span { display: inline-flex; align-items: center; gap: 6px; }
.card__specs .dpe { margin-left: auto; padding: 1px 8px; border-radius: 6px; font-weight: 700; color: var(--night); background: var(--aurora); }
.grid__empty { padding: 48px 0; color: var(--muted); }

/* ==========================================================================
   Fiche bien (dialog)
   ========================================================================== */

.drawer { margin: auto 0 auto auto; height: 100%; max-height: 100%; width: min(1040px, 100%); max-width: 100%; border: 0; padding: 0; background: var(--night-2); color: var(--text); }
.drawer::backdrop { background: rgba(3, 4, 10, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.drawer[open] { animation: drawer-in .6s var(--ease); }
.drawer[open]::backdrop { animation: fade-in .4s var(--ease); }
@keyframes drawer-in { from { transform: translateX(60px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.drawer__inner { position: relative; min-height: 100%; display: grid; grid-template-columns: 1.15fr 1fr; }
.drawer__close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: rgba(6, 7, 15, 0.6); border: 1px solid var(--line-strong); }
.drawer__close svg { width: 20px; height: 20px; }
.drawer__gallery { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.drawer__main { width: 100%; flex: 1; min-height: 320px; object-fit: cover; border-radius: var(--radius); }
.drawer__thumbs { display: flex; gap: 10px; }
.drawer__thumbs button { flex: 1; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; opacity: 0.6; transition: opacity .3s var(--ease), border-color .3s var(--ease); }
.drawer__thumbs button[aria-current="true"] { border-color: var(--aurora); opacity: 1; }
.drawer__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.drawer__body { padding: 72px clamp(24px, 3vw, 48px) 40px; display: flex; flex-direction: column; gap: 18px; }
.drawer__title { font-family: var(--f-display); font-size: clamp(32px, 3.4vw, 52px); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.drawer__price { font-family: var(--f-display); font-size: 28px; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; width: fit-content; }
.drawer__specs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.drawer__specs div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer__specs dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.drawer__specs dd { font-size: 16px; font-weight: 500; }
.drawer__desc { color: rgba(241, 242, 250, 0.82); }
.drawer__finance { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.drawer__monthly { margin-top: 4px; font-family: var(--f-display); font-size: 24px; font-weight: 600; }
.drawer__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* ==========================================================================
   05 — Expérience (hotspots)
   ========================================================================== */

.experience { position: relative; padding-bottom: var(--section-y); }
.experience__media { position: relative; height: clamp(440px, 80vh, 860px); overflow: hidden; }
.experience__media img { width: 100%; height: 100%; object-fit: cover; }
.experience__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, var(--night) 0%, transparent 18%, transparent 60%, var(--night) 100%); }
.hotspot {
  position: absolute; left: var(--x); top: var(--y); z-index: 2; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; cursor: pointer;
  background: var(--text); border: 0; box-shadow: 0 0 0 6px rgba(241, 242, 250, 0.25);
}
.hotspot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--aurora); animation: ping 2.4s var(--ease) infinite; }
.hotspot[aria-expanded="true"] { background: var(--aurora); }
@keyframes ping { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
.hotspot__card {
  position: absolute; left: var(--x); top: var(--y); z-index: 3; width: min(280px, 70vw); margin-top: 24px; transform: translateX(-50%);
  padding: 16px 18px; border-radius: 16px; font-size: 14px; color: rgba(241, 242, 250, 0.86);
  background: rgba(10, 12, 26, 0.78); border: 1px solid rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: fade-in .4s var(--ease);
}
.hotspot__card b { display: block; margin-bottom: 4px; font-family: var(--f-display); font-size: 16px; color: var(--text); }
.experience__text { position: relative; z-index: 2; margin-top: -120px; display: flex; flex-direction: column; gap: 20px; }

/* ==========================================================================
   06 — Méthode
   ========================================================================== */

.method__track { position: relative; }
.method__line { position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: var(--grad); transform-origin: left; }
.motion .method__line { transform: scaleX(0); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step { position: relative; padding-top: 44px; display: flex; flex-direction: column; gap: 12px; }
.step__dot { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--night); border: 1px solid var(--aurora); box-shadow: 0 0 18px rgba(63, 230, 210, 0.5); }
.step__num { font-family: var(--f-display); font-size: 13px; color: var(--muted); }
.step h3 { font-family: var(--f-display); font-size: 24px; font-weight: 600; }
.step p:last-child { color: var(--muted); font-size: 15px; }

/* ==========================================================================
   07 — Outils
   ========================================================================== */

.tools { background: radial-gradient(50% 60% at 10% 100%, rgba(63, 230, 210, 0.1), transparent 70%), var(--night); }
.tools__tabs { display: inline-flex; padding: 5px; gap: 4px; border-radius: 999px; border: 1px solid var(--line-strong); margin-bottom: 28px; max-width: 100%; overflow-x: auto; }
.tools__tabs button { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background-color .3s var(--ease), color .3s var(--ease); }
.tools__tabs button[aria-selected="true"] { background: var(--text); color: var(--night); }
.tool { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.tool[hidden] { display: none; }
.tool__controls { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 28px; }
.tool__result { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
  background: radial-gradient(120% 120% at 100% 0%, rgba(142, 115, 255, 0.35), transparent 55%), radial-gradient(90% 90% at 0% 100%, rgba(63, 230, 210, 0.22), transparent 60%), var(--surface-2);
  border: 1px solid var(--line-strong); }
.tool__label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.tool__big { font-family: var(--f-display); font-weight: 600; font-size: clamp(40px, 5vw, 76px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tool__big small { font-size: 0.3em; color: var(--muted); letter-spacing: 0; }
.tool__details { width: 100%; display: grid; gap: 0; }
.tool__details div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tool__details dt { color: var(--muted); }
.tool__details dd { font-variant-numeric: tabular-nums; font-weight: 500; }
.tool__note { font-size: 14px; }
.tool__result .btn { margin-top: auto; }

.range { display: flex; flex-direction: column; gap: 12px; }
.range__head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.range__head output { font-family: var(--f-display); font-size: 18px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.range input { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; cursor: pointer;
  background: linear-gradient(90deg, var(--aurora), var(--iris)) 0 / var(--fill, 50%) 100% no-repeat, rgba(255, 255, 255, 0.12); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--text); border: 4px solid var(--iris); box-shadow: 0 0 0 6px rgba(142, 115, 255, 0.2); }
.range input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 4px solid var(--iris); }

.estimate { grid-template-columns: 1fr 1fr; gap: 20px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; font-size: 15px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); color: var(--text); appearance: none; resize: vertical;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; cursor: pointer; }
.field select option { background: var(--surface); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--aurora); background-color: rgba(63, 230, 210, 0.05); }
.field input:user-invalid { border-color: var(--coral); }
.toggles { grid-column: 1 / -1; border: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.toggles legend { width: 100%; margin-bottom: 10px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.toggles label { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer; font-size: 14px; transition: background-color .25s var(--ease), color .25s var(--ease); }
.toggles input { position: absolute; opacity: 0; }
.toggles label:has(input:checked) { background: var(--text); color: var(--night); }
.toggles label:has(input:focus-visible) { outline: 2px solid var(--aurora); outline-offset: 2px; }

/* ==========================================================================
   08 — Témoignages
   ========================================================================== */

.voices__grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.voice { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent); display: flex; flex-direction: column; gap: 28px; justify-content: space-between; }
.voice blockquote { font-family: var(--f-serif); font-size: clamp(22px, 1.9vw, 28px); line-height: 1.25; }
.voice figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.voice__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--night); background: var(--grad); }

/* ==========================================================================
   09 — Contact
   ========================================================================== */

.contact { position: relative; padding-block: var(--section-y); overflow: hidden; isolation: isolate; }
.contact__bg { position: absolute; inset: 0; z-index: -1; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--night) 0%, rgba(6, 7, 15, 0.55) 30%, rgba(6, 7, 15, 0.75) 70%, var(--night) 100%); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 72px; align-items: start; }
.contact__intro { display: flex; flex-direction: column; gap: 22px; }
.contact__direct { display: flex; flex-direction: column; gap: 6px; font-family: var(--f-display); font-size: 20px; }
.contact__direct a:hover { color: var(--aurora); }
.contact__form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius);
  background: rgba(10, 12, 26, 0.72); border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.field--full { grid-column: 1 / -1; }
.seg { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 999px; border: 1px solid var(--line-strong); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; min-height: 42px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background-color .3s var(--ease), color .3s var(--ease); }
.seg input:checked + span { background: var(--text); color: var(--night); }
.seg input:focus-visible + span { outline: 2px solid var(--aurora); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.consent input { margin-top: 3px; accent-color: var(--aurora); }
.form-status { font-size: 14px; color: var(--aurora); min-height: 1em; }
.form-status.is-error { color: var(--coral); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { padding-block: 72px 32px; border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.footer__word { font-family: var(--f-display); font-weight: 700; font-size: clamp(56px, 12vw, 200px); line-height: 0.8; letter-spacing: -0.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.alert label { display: block; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.alert__row { display: flex; gap: 8px; padding: 5px; border-radius: 999px; border: 1px solid var(--line-strong); }
.alert__row input { flex: 1; min-width: 0; background: none; border: 0; padding: 0 16px; font-size: 15px; }
.alert__row input:focus { outline: none; }
.alert .form-status { margin-top: 10px; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }
.footer__bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__bottom a:hover { color: var(--text); }

/* ==========================================================================
   Révélations
   ========================================================================== */

.motion [data-reveal] { opacity: 0; transform: translateY(28px); }

/* ==========================================================================
   Responsive — tablette
   ========================================================================== */

@media (max-width: 1100px) {
  .nav__list { gap: 22px; }
  .header__cta { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .method__line { display: none; }
  .drawer__inner { grid-template-columns: 1fr; }
  .drawer__main { min-height: 0; aspect-ratio: 16 / 10; flex: none; }
  .drawer__body { padding-top: 16px; }
}

@media (max-width: 900px) {
  .header { grid-template-columns: 1fr auto; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px; background: var(--night);
    opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s linear .5s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 6px; }
  .nav__list a:not(.btn) { display: block; padding: 8px 0; font-family: var(--f-display); font-size: clamp(30px, 8vw, 44px); font-weight: 600; color: var(--text); }
  .nav__list a:not(.btn)::after { display: none; }
  .nav__mobile-cta { display: block; margin-top: 28px; }
  .nav__mobile-cta .btn { width: 100%; }

  .section-head { grid-template-columns: 1fr; }
  .search { grid-template-columns: 1fr 1fr; }
  .search__submit { grid-column: 1 / -1; }
  .search__field:nth-child(3) { display: none; }
  .tool { grid-template-columns: 1fr; }
  .voices__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .chapter__facts { gap: 20px; }
}

/* ==========================================================================
   Responsive — mobile
   ========================================================================== */

@media (max-width: 720px) {
  :root { --header-h: 66px; --radius: 18px; }
  .brand__word { font-size: 15px; letter-spacing: 0.24em; }

  /* Triptyque en bandes horizontales */
  .hero { min-height: 640px; padding: calc(var(--header-h) + 2px) 8px 8px; }
  .triptych { inset: calc(var(--header-h) + 2px) 8px 8px; flex-direction: column; gap: 6px; }
  .panel.is-active { flex-grow: 4.2; }
  .panel__tag { top: 12px; left: 12px; font-size: 12px; }
  .panel__meta { display: none; }
  .hero__content { left: 22px; right: 22px; bottom: 22px; gap: 12px; }
  .hero__title { font-size: clamp(46px, 14vw, 72px); }
  .hero__lead { font-size: 14px; }
  .search { grid-template-columns: 1fr; border-radius: 18px; }
  .search__field:nth-child(2) { display: none; }
  .search__submit { min-height: 50px; }

  .stats { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .worlds { height: 300vh; }
  .worlds__index { display: none; }
  .chapter { top: auto; bottom: 72px; transform: none; }
  .worlds__veil { background: linear-gradient(0deg, rgba(6, 7, 15, 0.92) 0%, rgba(6, 7, 15, 0.5) 50%, rgba(6, 7, 15, 0.1) 100%); }
  .chapter__facts { width: 100%; justify-content: space-between; }
  .chapter__facts dd { font-size: 18px; }

  .grid { grid-template-columns: 1fr; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .filters__count { display: none; }

  .experience__text { margin-top: -60px; }
  .steps { grid-template-columns: 1fr; }
  .estimate { grid-template-columns: 1fr; }
  .contact__form { grid-template-columns: 1fr; }
  .drawer__specs { grid-template-columns: repeat(2, 1fr); }
  .drawer__actions .btn { flex: 1 1 100%; }
  .alert__row { flex-direction: column; border-radius: 22px; }
  .alert__row input { min-height: 48px; }
}

/* ==========================================================================
   Mouvement réduit
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
