/* ============================================================
   ENMIIS — Maison de Luxe
   Swiss-inspired luxury department store
   Mobile-first · breakpoints: 768px, 1024px, 1280px
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --ink: #111111;
  --ink-soft: #555555;
  --ink-faint: #8A8A8A;
  --line: #EAEAEA;
  --gold: #C8A86B;
  --gold-deep: #B29050;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Fluid type scale */
  --fs-hero: clamp(2.6rem, 1.2rem + 7vw, 5.75rem);
  --fs-h2: clamp(1.9rem, 1.2rem + 3vw, 3.25rem);
  --fs-h3: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem);
  --fs-body: 0.9375rem;
  --fs-small: 0.8125rem;
  --fs-label: 0.6875rem;

  /* Spacing rhythm */
  --space-section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --space-head: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --container: 1440px;

  --ease-lux: cubic-bezier(0.23, 1, 0.32, 1);
  --dur: 0.6s;

  --header-h: 60px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }

svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 300;
  background: var(--ink); color: var(--white);
  padding: 0.75rem 1.25rem; font-size: var(--fs-small);
  transition: top 0.3s var(--ease-lux);
}
.skip-link:focus { top: 1rem; }

::selection { background: var(--gold); color: var(--white); }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1.05em 2.6em;
  transition: background var(--dur) var(--ease-lux), color var(--dur) var(--ease-lux), border-color var(--dur) var(--ease-lux), letter-spacing var(--dur) var(--ease-lux);
}

.btn--hero {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--ink);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: none;
  padding: 0.8em 1.9em;
}
.btn--hero:hover { background: var(--ink); color: var(--white); letter-spacing: 0.03em; }

.btn--solid {
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
}
.btn--solid:hover { background: var(--gold-deep); border-color: var(--gold-deep); letter-spacing: 0.28em; }

.btn--line {
  position: relative;
  padding: 0 0 0.5em;
  color: var(--ink);
}
.btn--line::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-lux);
}
.btn--line:hover { color: var(--gold-deep); }
.btn--line:hover::after { transform: scaleX(0.35); background: var(--gold-deep); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
}

/* --- Utility bar --- */
.utility-bar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  overflow: hidden;
  max-height: 40px;
  transition: max-height 0.45s var(--ease-lux);
}
.site-header.is-scrolled .utility-bar { max-height: 0; }

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  height: 34px;
}
.utility-bar__note { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.utility-bar__links { display: none; align-items: center; gap: 1.75rem; }
.utility-bar__links a, .utility-bar__lang {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  transition: color 0.3s var(--ease-lux);
}
.utility-bar__links a:hover, .utility-bar__lang:hover { color: var(--gold); }

/* --- Main header row --- */
.header-main {
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.45s var(--ease-lux);
}
.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: var(--header-h);
  transition: height 0.45s var(--ease-lux);
}

.header-main__left { display: flex; align-items: center; gap: 0.35rem; min-width: 0; }
.header-main__right { display: flex; align-items: center; gap: 0.125rem; flex: none; }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 44px; height: 44px;
  color: var(--ink);
  transition: color 0.3s var(--ease-lux), transform 0.3s var(--ease-lux);
}
.icon-btn svg { width: 21px; height: 21px; flex: none; }
.icon-btn:hover { color: var(--gold-deep); }
.icon-btn:active { transform: scale(0.92); }

.icon-btn__badge {
  position: absolute;
  top: 4px; right: 2px;
  min-width: 16px; height: 16px;
  padding-inline: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 500;
  border-radius: 999px;
  transition: transform 0.3s var(--ease-lux);
}
.icon-btn__badge.is-bumped { animation: badge-bump 0.5s var(--ease-lux); }

.icon-btn--disabled {
  color: var(--ink-faint);
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}
.icon-btn--disabled:hover { color: var(--ink-faint); }
@keyframes badge-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

/* Logo — image wordmark, left-aligned like Globus */
/* Champ de recherche de l'en-tête : masqué par défaut, il ne sert
   qu'en desktop. Sur mobile la loupe et la barre de recherche rapide
   font déjà le travail, et la place manque. */
.header-search { display: none; }
.header-search__input {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 0.35rem 0;
}
.header-search__input::placeholder { color: var(--ink-faint); }
.header-search__input::-webkit-search-cancel-button { display: none; }
.header-search__btn { flex: none; color: var(--ink); line-height: 0; }
.header-search__btn svg { width: 18px; height: 18px; }

.header-logo {
  display: block;
  line-height: 0;
  min-width: 0;
}
.header-logo img {
  height: 28px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: height 0.45s var(--ease-lux);
}

/* Burger */
.burger-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 22px;
}
.burger-lines span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease-lux), width 0.4s var(--ease-lux);
}
.header-burger:hover .burger-lines span:last-child { width: 70%; }


/* --- Main nav (desktop) --- */
.main-nav {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.main-nav__list {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}
.main-nav__link {
  position: relative;
  display: inline-block;
  padding: 1rem 0.25rem 1.1rem;
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.3s var(--ease-lux);
}
.main-nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-lux);
}
.main-nav__item:hover .main-nav__link::after,
.main-nav__item.is-open .main-nav__link::after { transform: scaleX(1); }
.main-nav__link.is-accent { color: var(--gold-deep); }
.main-nav__link.is-accent::after { background: var(--gold-deep); }

/* --- Mega menu --- */
.mega-menu {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.4s var(--ease-lux), transform 0.4s var(--ease-lux), visibility 0s linear 0.4s;
  box-shadow: 0 30px 60px -30px rgba(17, 17, 17, 0.18);
}
.main-nav__item.is-open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.5s var(--ease-lux), transform 0.5s var(--ease-lux), visibility 0s;
}

.mega-menu__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 300px;
  gap: 2.5rem;
  padding-block: 3rem 3.5rem;
}
.mega-menu__heading {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.25rem;
}
.mega-menu__col li + li { margin-top: 0.7rem; }
.mega-menu__col a {
  font-size: var(--fs-small);
  font-weight: 300;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease-lux), padding-left 0.3s var(--ease-lux);
}
.mega-menu__col a:hover { color: var(--ink); padding-left: 0.4rem; }
.mega-menu__col a.is-accent { color: var(--gold-deep); }

.mega-menu__feature { display: block; }
.mega-menu__feature-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--off-white);
}
.mega-menu__feature-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-lux);
}
.mega-menu__feature:hover .mega-menu__feature-media img { transform: scale(1.06); }
.mega-menu__feature-label {
  margin-top: 1rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}
.mega-menu__feature-cta {
  margin-top: 0.2rem;
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* Veil under open mega menu */
.header-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(17, 17, 17, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-lux), visibility 0s linear 0.5s;
}
.header-veil.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s var(--ease-lux), visibility 0s;
}

.site-header.is-scrolled .header-main { box-shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgba(17, 17, 17, 0.12); }

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 220;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transform: translateY(-101%);
  transition: transform 0.6s var(--ease-lux);
  box-shadow: 0 30px 80px -30px rgba(17, 17, 17, 0.25);
}
.search-overlay.is-open { transform: translateY(0); }

.search-overlay__inner { padding-block: clamp(1.5rem, 4vw, 3rem); }

.search-overlay__form {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.9rem;
}
.search-overlay__form svg { width: 22px; height: 22px; flex: none; color: var(--ink-faint); }
.search-overlay__form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1rem + 2vw, 2rem);
  font-weight: 400;
  color: var(--ink);
}
.search-overlay__form input::placeholder { color: var(--ink-faint); }
.search-overlay__close { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.search-overlay__close svg { width: 20px; height: 20px; }

.search-overlay__suggestions { margin-top: 1.75rem; }
.search-overlay__label {
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
}
.search-overlay__suggestions ul { display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; }
.search-overlay__suggestions a {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.search-overlay__suggestions a:hover { color: var(--gold-deep); border-color: var(--gold-deep); }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  flex-direction: column;
  background: var(--white);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.65s var(--ease-lux), visibility 0s linear 0.65s;
}
.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.65s var(--ease-lux), visibility 0s;
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.mobile-menu__logo { line-height: 0; }
.mobile-menu__logo img { height: 24px; width: auto; }
.mobile-menu__close svg { width: 20px; height: 20px; }

.mobile-menu__nav {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem var(--gutter) 2rem;
}

.mobile-menu__item { border-bottom: 1px solid var(--line); }

.mobile-menu__toggle,
.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.1rem 0.25rem;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
}
.mobile-menu__link.is-accent { color: var(--gold-deep); }

.mobile-menu__toggle svg {
  width: 16px; height: 16px;
  flex: none;
  color: var(--ink-faint);
  transition: transform 0.45s var(--ease-lux);
}
.mobile-menu__toggle[aria-expanded="true"] svg { transform: rotate(90deg); color: var(--gold-deep); }

.mobile-menu__sub {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.55s var(--ease-lux);
}
.mobile-menu__sub li:first-child { padding-top: 0.25rem; }
.mobile-menu__sub li:last-child { padding-bottom: 1.25rem; }
.mobile-menu__sub a {
  display: block;
  padding: 0.55rem 0.25rem 0.55rem 1rem;
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--ink-soft);
}
.mobile-menu__sub a:active { color: var(--gold-deep); }
.mobile-menu__sub a.is-accent { color: var(--gold-deep); }

/* Staggered entrance of menu items */
.mobile-menu [data-stagger] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease-lux), transform 0.6s var(--ease-lux);
}
.mobile-menu.is-open [data-stagger] {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(0.18s + var(--i, 0) * 0.045s);
}

.mobile-menu__footer {
  flex: none;
  padding: 1rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--off-white);
  display: grid;
  gap: 0.25rem;
}
.mobile-menu__utility {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 0.25rem;
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.mobile-menu__utility svg { width: 18px; height: 18px; flex: none; color: var(--ink); }

/* Scrim shared by menu on tablet+ */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 205;
  background: rgba(17, 17, 17, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-lux), visibility 0s linear 0.5s;
}
.scrim.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s var(--ease-lux), visibility 0s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--white);
  overflow: hidden;
  touch-action: pan-y;
  /* Banner ratio — image is a wide banner, not full screen (Globus-style) */
  --hero-aspect: 4 / 3;
  --hero-max-h: 640px;
}

/* Slides stack in one grid cell and cross-fade */
.hero__slides { display: grid; }

.hero__slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s var(--ease-lux), visibility 0s linear 1.1s;
}
.hero__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transition: opacity 1.1s var(--ease-lux), visibility 0s;
  z-index: 1;
}

.hero__media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: var(--hero-aspect);
  max-height: var(--hero-max-h);
  background: var(--off-white);
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}
.hero__slide.is-active .hero__media img {
  animation: hero-kenburns 8s var(--ease-lux) forwards;
}
@keyframes hero-kenburns {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

/* Content sits BELOW the image on white, Globus-style */
.hero__content {
  padding-top: clamp(1.6rem, 4vw, 2.75rem);
  color: var(--ink);
}

.hero__label {
  font-size: 0.9375rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}

.hero__title {
  font-family: var(--sans);
  font-size: clamp(1.55rem, 0.9rem + 3.4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.6rem;
  max-width: 24ch;
}

/* Le média peut être une vidéo : mêmes règles que l'image, sans le
   travelling Ken Burns qui doublerait le mouvement du plan. */
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: -0.7rem 0 1.6rem;
}

/* Slide content entrance */
.hero__label, .hero__title, .hero__text, .hero__slide .btn {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s var(--ease-lux), transform 1s var(--ease-lux);
}
.hero__slide.is-active .hero__label { opacity: 1; transform: none; transition-delay: 0.3s; }
.hero__slide.is-active .hero__title { opacity: 1; transform: none; transition-delay: 0.42s; }
.hero__slide.is-active .hero__text { opacity: 1; transform: none; transition-delay: 0.52s; }
.hero__slide.is-active .btn { opacity: 1; transform: none; transition-delay: 0.64s; }

/* Progress-bar dots below the content */
.hero__dots {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding-top: 1.9rem;
  padding-bottom: 2.3rem;
}
.hero__dot {
  position: relative;
  width: 2.75rem; height: 18px;
  display: inline-flex;
  align-items: center;
}
.hero__dot span {
  display: block;
  width: 100%; height: 2px;
  background: var(--line);
  overflow: hidden;
  position: relative;
}
.hero__dot span::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}
.hero__dot.is-active span::after {
  animation: dot-progress var(--slide-ms, 6500ms) linear forwards;
}
@keyframes dot-progress { to { transform: scaleX(1); } }

/* Arrows overlay the banner image (desktop) */
.hero__arrows {
  position: absolute;
  top: 0; left: 0; right: 0;
  aspect-ratio: var(--hero-aspect);
  max-height: var(--hero-max-h);
  z-index: 2;
  pointer-events: none;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1rem, 2.5vw, 2.25rem);
}
.hero__arrow {
  pointer-events: auto;
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  color: var(--ink);
  box-shadow: 0 12px 30px -14px rgba(17, 17, 17, 0.4);
  transition: background 0.3s, transform 0.3s var(--ease-lux);
}
.hero__arrow svg { width: 18px; height: 18px; }
.hero__arrow:hover { background: var(--white); transform: scale(1.08); }

/* ============================================================
   QUICK SEARCH + CATEGORY GRID (mobile & tablet, Globus-style)
   ============================================================ */
.quick-shop { background: var(--white); }

/* Le scan était un décor à l'intérieur du bouton de recherche : le
   toucher ouvrait la recherche. C'est désormais un bouton à part —
   d'où le conteneur, les deux boutons ne pouvant pas être imbriqués. */
.quick-search {
  display: flex;
  align-items: stretch;
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quick-search__field {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 1;
  min-width: 0;
  padding: 0.95rem 0.5rem 0.95rem var(--gutter);
  text-align: left;
}
.quick-search__field > svg { width: 20px; height: 20px; flex: none; color: var(--ink); }
.quick-search__placeholder {
  flex: 1;
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quick-search__scan {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex: none;
  padding: 0.95rem var(--gutter) 0.95rem 0.5rem;
  color: var(--ink);
}
.quick-search__scan svg { width: 22px; height: 22px; }
.quick-search__field:active,
.quick-search__scan:active { background: var(--off-white); }

/* ============================================================
   SCAN CAMÉRA
   ============================================================ */
.scan {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  display: none;
}
.scan.is-open { display: block; }
.scan__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Le cadre découpe l'image sans masque supplémentaire : une ombre
   portée démesurée assombrit tout ce qui l'entoure. */
.scan__mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.scan__frame {
  width: min(74vw, 320px);
  aspect-ratio: 1.55;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5);
}
.scan__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}
.scan__hint {
  flex: 1;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.45;
}
.scan__close {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: #fff;
}
.scan__close svg { width: 20px; height: 20px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.category-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.4rem 0.75rem;
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.category-grid a:nth-child(odd) { border-right: 1px solid var(--line); }
.category-grid a:hover, .category-grid a:active { background: var(--off-white); }

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section { padding-block: var(--space-section); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: var(--space-head);
}
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head__label {
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.9rem;
}
.section-head__title {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.1;
}
.section-head__link {
  flex: none;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--ink);
  transition: color 0.3s, border-color 0.3s;
  white-space: nowrap;
  margin-bottom: 0.35rem;
}
.section-head__link:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.section-head > .section-head__label,
.section-head > .section-head__title { display: block; }
.section-head:not(.section-head--center) {
  flex-wrap: wrap;
}
.section-head:not(.section-head--center) .section-head__label { width: 100%; margin-bottom: 0; }
.section-head:not(.section-head--center) .section-head__title { margin-top: 0.9rem; }
.section-head:not(.section-head--center) .section-head__link { margin-left: auto; }

/* ============================================================
   FEATURED COLLECTIONS
   ============================================================ */
.collections__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.collection-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--off-white);
}
.collection-card__media { overflow: hidden; height: 100%; }
/* Deux cartes portent une vidéo plutôt qu'une image : memes regles,
   pour que le cadre et le survol se comportent à l’identique. */
.collection-card__media img,
.collection-card__video {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  transition: transform 1.4s var(--ease-lux);
}
.collection-card__video { display: block; pointer-events: none; }
.collection-card:hover .collection-card__media img,
.collection-card:hover .collection-card__video { transform: scale(1.05); }

.collection-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.55) 0%, rgba(17,17,17,0) 45%);
  transition: opacity 0.6s var(--ease-lux);
}

.collection-card__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--white);
}
.collection-card__label {
  font-size: var(--fs-label);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
}
.collection-card__title {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 0.9rem;
}
.collection-card__cta {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-bottom: 0.4em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  transition: border-color 0.4s, color 0.4s, letter-spacing 0.4s var(--ease-lux);
}
.collection-card:hover .collection-card__cta { color: var(--gold); border-color: var(--gold); letter-spacing: 0.28em; }

/* ============================================================
   BRANDS MARQUEE
   ============================================================ */
.brands {
  background: var(--off-white);
  border-block: 1px solid var(--line);
}

.brands__marquee {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.brands__marquee::-webkit-scrollbar { display: none; }
.brands__marquee.is-dragging { cursor: grabbing; }

.brands__track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(3rem, 8vw, 7rem);
  padding-inline: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: 0.5rem;
}

.brands__logo {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 0.9rem + 1vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--ink-faint);
  white-space: nowrap;
  transition: color 0.4s var(--ease-lux);
  user-select: none;
}
.brands__logo--serif {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  letter-spacing: 0.08em;
}
.brands__logo:hover { color: var(--ink); }

/* ============================================================
   TRENDING PRODUCTS
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem 1rem;
}

.product-card { position: relative; }

.product-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--off-white);
  margin-bottom: 1rem;
}

.product-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.8s var(--ease-lux), transform 1.2s var(--ease-lux);
}
.product-card__img--secondary { opacity: 0; }
.product-card:hover .product-card__img--primary { opacity: 0; }
.product-card:hover .product-card__img--secondary { opacity: 1; transform: scale(1.04); }

.product-card__wishlist {
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  z-index: 2;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  transition: transform 0.35s var(--ease-lux), color 0.3s;
}
.product-card__wishlist svg { width: 17px; height: 17px; }
.product-card__wishlist:hover { transform: scale(1.1); }
.product-card__wishlist.is-active { color: var(--gold-deep); }
.product-card__wishlist.is-active svg { fill: var(--gold-deep); stroke: var(--gold-deep); }
.product-card__wishlist.is-popped { animation: wish-pop 0.45s var(--ease-lux); }
@keyframes wish-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.28); }
  100% { transform: scale(1); }
}

.product-card__quickview {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 0.95em;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-lux), color 0.3s;
}
.product-card:hover .product-card__quickview,
.product-card:focus-within .product-card__quickview { transform: translateY(0); }
.product-card__quickview:hover { color: var(--gold-deep); }

/* Soft luxury shadow on hover */
.product-card__media::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.04);
}
.product-card:hover .product-card__media {
  box-shadow: 0 30px 50px -30px rgba(17, 17, 17, 0.28);
  transition: box-shadow 0.6s var(--ease-lux);
}

.product-card__brand {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.product-card__name {
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 0.45rem;
}
.product-card__price {
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   EDITORIAL
   ============================================================ */
.editorial { background: var(--off-white); border-block: 1px solid var(--line); }

.editorial-feature {
  display: grid;
  gap: clamp(1.75rem, 4vw, 4.5rem);
  align-items: center;
  margin-bottom: var(--space-section);
}
.editorial-feature__media { overflow: hidden; }
.editorial-feature__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.6s var(--ease-lux);
}
.editorial-feature:hover .editorial-feature__media img { transform: scale(1.03); }

.editorial-feature__label {
  font-size: var(--fs-label);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.editorial-feature__title {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.12;
  margin-bottom: 1.4rem;
}
.editorial-feature__text {
  max-width: 34rem;
  color: var(--ink-soft);
  margin-bottom: 2.1rem;
}

.editorial__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
}
.editorial-card { display: block; }
.editorial-card__media { overflow: hidden; margin-bottom: 1.25rem; }
.editorial-card__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.4s var(--ease-lux);
}
.editorial-card:hover .editorial-card__media img { transform: scale(1.05); }
.editorial-card__label {
  font-size: var(--fs-label);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.6rem;
}
.editorial-card__title {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0.9rem;
  transition: color 0.4s;
}
.editorial-card:hover .editorial-card__title { color: var(--gold-deep); }
.editorial-card__cta {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--ink);
  transition: color 0.3s, border-color 0.3s;
}
.editorial-card:hover .editorial-card__cta { color: var(--gold-deep); border-color: var(--gold-deep); }

/* ============================================================
   EXPERIENCES
   ============================================================ */
.experiences__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.experience-card { display: block; text-align: center; }
.experience-card__media {
  overflow: hidden;
  margin-bottom: 1.4rem;
  background: var(--off-white);
}
.experience-card__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 1.4s var(--ease-lux), filter 1s var(--ease-lux);
}
.experience-card:hover .experience-card__media img { transform: scale(1.06); }
.experience-card__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.experience-card__text {
  max-width: 26rem;
  margin-inline: auto;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.experience-card__cta {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-bottom: 0.35em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s;
}
.experience-card:hover .experience-card__cta { border-color: var(--gold-deep); }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  background: var(--ink);
  color: var(--white);
  padding-block: var(--space-section);
}
.newsletter__inner {
  max-width: 46rem;
  text-align: center;
}
.newsletter .section-head__label { color: var(--gold); }
.newsletter__title {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 1.1rem;
}
.newsletter__text {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2.25rem;
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 30rem;
  margin-inline: auto;
}
.newsletter__form input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  padding: 0.9em 0.25em;
  font-size: var(--fs-body);
  font-weight: 300;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color 0.4s;
  border-radius: 0;
}
.newsletter__form input::placeholder { color: rgba(255, 255, 255, 0.45); }
.newsletter__form input:focus { border-color: var(--gold); }
.newsletter .btn--solid {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.newsletter .btn--solid:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.newsletter__success {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--gold);
}
.newsletter__legal {
  margin-top: 1.75rem;
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--white);
  padding-top: var(--space-section);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  padding-bottom: var(--space-head);
}

.site-footer__heading {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.site-footer__heading--gap { margin-top: 2rem; }

.site-footer__col li + li { margin-top: 0.65rem; }
.site-footer__col a {
  font-size: var(--fs-small);
  font-weight: 300;
  color: var(--ink-soft);
  transition: color 0.3s;
}
.site-footer__col a:hover { color: var(--gold-deep); }

/* Comptes Instagram et contact WhatsApp : l'icône seule ne disait pas
   laquelle des trois pages on ouvrait. Chaque lien porte donc son nom,
   ce qui impose une liste en colonne plutôt qu'une rangée de pastilles. */
.site-footer__social { display: grid; gap: 0.7rem; }
.site-footer__social li + li { margin-top: 0; }
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-small);
  font-weight: 300;
  color: var(--ink-soft);
  transition: color 0.3s;
  /* Les identifiants sont longs : on coupe plutôt que de déborder. */
  overflow-wrap: anywhere;
}
.site-footer__social svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--ink);
  transition: color 0.3s;
}
.site-footer__social a:hover { color: var(--gold-deep); }
.site-footer__social a:hover svg { color: var(--gold-deep); }

.site-footer__bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.75rem calc(1.75rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.site-footer__logo { line-height: 0; }
.site-footer__logo img { height: 26px; width: auto; }
.site-footer__copy {
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
}
.site-footer__legal a {
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  transition: color 0.3s;
}
.site-footer__legal a:hover { color: var(--ink); }

/* ============================================================
   QUICK VIEW MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  transition: visibility 0s linear 0.55s;
}
.modal.is-open { visibility: visible; transition-delay: 0s; }

.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(17, 17, 17, 0.5);
  opacity: 0;
  transition: opacity 0.55s var(--ease-lux);
}
.modal.is-open .modal__backdrop { opacity: 1; }

.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 92svh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.55s var(--ease-lux), opacity 0.55s var(--ease-lux);
}
.modal.is-open .modal__panel { transform: translateY(0); opacity: 1; }

.modal__close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  z-index: 2;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
}
.modal__close svg { width: 18px; height: 18px; }

.modal__media { background: var(--off-white); }
.modal__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.modal__body { padding: 1.75rem var(--gutter) 2.25rem; }
.modal__brand {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
}
.modal__name {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.modal__price { font-size: 1rem; font-weight: 400; margin-bottom: 1.1rem; }
.modal__desc {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  max-width: 34rem;
}
.modal__sizes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.modal__sizes button {
  padding: 0.55em 1.2em;
  border: 1px solid var(--line);
  font-size: var(--fs-small);
  transition: border-color 0.3s, color 0.3s;
}
.modal__sizes button.is-active,
.modal__sizes button:hover { border-color: var(--ink); }
.modal__add { width: 100%; }
.modal__note {
  margin-top: 1rem;
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-align: center;
}

/* ============================================================
   COMING SOON OVERLAY
   ============================================================ */
.construction {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  visibility: hidden;
  transition: visibility 0s linear 0.4s;
}
.construction.is-open { visibility: visible; transition-delay: 0s; }

.construction__backdrop {
  position: absolute; inset: 0;
  background: rgba(17, 17, 17, 0.5);
  opacity: 0;
  transition: opacity 0.4s var(--ease-lux);
}
.construction.is-open .construction__backdrop { opacity: 1; }

.construction__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  background: var(--white);
  padding: 3rem var(--gutter) 2.5rem;
  text-align: center;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.4s var(--ease-lux), opacity 0.4s var(--ease-lux);
}
.construction.is-open .construction__panel { transform: translateY(0); opacity: 1; }

.construction__close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.construction__close svg { width: 18px; height: 18px; }

.construction__label {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
}
.construction__title {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.construction__text {
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.5rem + env(safe-area-inset-bottom));
  z-index: 260;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--white);
  font-size: var(--fs-small);
  letter-spacing: 0.05em;
  padding: 0.9em 1.75em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-lux), transform 0.45s var(--ease-lux);
  max-width: min(90vw, 26rem);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast em { color: var(--gold); font-style: normal; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease-lux), transform 1s var(--ease-lux);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE — 768px and up
   ============================================================ */
@media (min-width: 768px) {
  :root { --header-h: 76px; }

  .utility-bar__inner { justify-content: space-between; }
  .utility-bar__links { display: flex; }

  .header-logo img { height: 34px; }

  .hero { --hero-aspect: 16 / 9; }
  .hero__arrows { display: flex; }


  .collections__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 1.5rem;
  }

  .editorial-feature { grid-template-columns: 1.1fr 1fr; }
  .editorial__grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }

  .experiences__grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.75rem; }

  .newsletter__form { flex-direction: row; align-items: stretch; }
  .newsletter__form input { flex: 1; }
  .newsletter .btn { flex: none; }

  .site-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; }

  .modal { align-items: center; padding: var(--gutter); }
  .modal__panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 60rem;
    max-height: min(88svh, 44rem);
  }
  .modal__media { height: 100%; }
  .modal__media img { height: 100%; aspect-ratio: auto; }
  .modal__body {
    padding: 3rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ============================================================
   RESPONSIVE — 1024px and up (full desktop)
   ============================================================ */
@media (min-width: 1024px) {
  :root { --header-h: 84px; }

  .site-header.is-scrolled { --header-h: 66px; }
  .site-header.is-scrolled .header-logo img { height: 30px; }

  /* ---- En-tête : recherche à gauche, logo au centre, icônes à droite.
     `display: contents` sur le groupe de gauche fait remonter le logo
     au niveau de la grille, sans quoi il resterait collé au bord. ---- */
  /* Le hero occupe toute la largeur. Plafonner le reste à 1440 px
     laissait près de 280 px de vide de chaque côté sur un écran de
     1920, et détachait l'en-tête comme les sections de l'image. Tout
     suit désormais la largeur de la fenêtre, avec la même retombée. */
  .container { max-width: none; padding-inline: clamp(1.5rem, 3vw, 3rem); }

  /* La recherche et la lettre d'information restent des colonnes de
     lecture : les étirer sur 1900 px les rendrait illisibles. */
  .search-overlay__inner { max-width: 1100px; margin-inline: auto; }
  .newsletter__inner { max-width: 900px; margin-inline: auto; }

  .header-main__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
  }
  .header-main__left { display: contents; }
  .header-burger { display: none; }

  .header-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    grid-column: 1;
    justify-self: start;
    width: min(260px, 100%);
    border-bottom: 1px solid var(--ink);
    padding-bottom: 0.15rem;
  }

  .header-logo { grid-column: 2; justify-self: center; }
  /* Le sous-titre doré « Says who you are » devient illisible à cette
     taille : on cadre sur le monogramme, qui reste net. */
  .header-logo img {
    height: 44px;
    width: 176px;
    object-fit: cover;
    object-position: top center;
  }
  .site-header.is-scrolled .header-logo img { height: 34px; width: 136px; }

  .header-main__right { grid-column: 3; justify-self: end; }
  /* La loupe ferait doublon avec le champ. */
  #searchBtn { display: none; }

  .main-nav { display: block; }

  /* ---- Hero : texte à gauche sur blanc, image à droite ----
     La même retombée que les sections : l'image s'arrête donc au même
     aplomb que la grille « Nos Univers », au lieu de filer jusqu'au
     bord de la fenêtre. */
  .hero {
    --hero-aspect: 4 / 3;
    --hero-max-h: 620px;
    padding-inline: clamp(1.5rem, 3vw, 3rem);
  }

  .hero__slide {
    display: grid;
    grid-template-columns: 42% 58%;
    align-items: center;
  }
  .hero__media { grid-column: 2; grid-row: 1; }
  .hero__content {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    margin: 0;
    padding: 0 clamp(2rem, 3vw, 3.5rem) 0 clamp(2.5rem, 5vw, 6rem);
  }
  .hero__title { font-size: clamp(1.6rem, 1vw + 1.2rem, 2.3rem); max-width: 16ch; }

  /* Les flèches encadrent toute la bande : celle de gauche se pose sur
     le blanc, celle de droite sur l'image — d'où son fond. */
  .hero__arrows {
    inset: 0;
    aspect-ratio: auto;
    max-height: none;
    padding-inline: clamp(1rem, 2vw, 2rem) 0;
  }
  .hero__arrow {
    width: 46px;
    height: 46px;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }
  .hero__arrow svg { width: 20px; height: 20px; }
  .hero__arrow:hover { background: transparent; transform: none; color: var(--gold-deep); }
  #heroNext,
  #heroNext:hover { background: var(--white); }

  /* Les tirets passent au bas de l'image, comme les repères de la
     bannière ; en clair, pour tenir sur une photographie. */
  .hero__dots {
    position: absolute;
    left: 42%;
    right: 0;
    bottom: clamp(1.25rem, 2.5vw, 2rem);
    padding: 0;
    z-index: 3;
  }
  /* Une ombre portée sous les tirets : sans elle ils s'effacent
     complètement sur un ciel clair. */
  .hero__dot span {
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 1px 2px rgba(17, 17, 17, 0.45);
  }
  .hero__dot span::after { background: var(--white); }

  .quick-shop { display: none; }

  .collections__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: clamp(280px, 22vw, 340px);
  }
  .collection-card__media { height: 100%; }
  .collection-card__media img { aspect-ratio: auto; height: 100%; }
  .collection-card--tall { grid-row: span 2; }
  .collection-card--wide { grid-column: span 2; }

  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 3.5rem 2rem; }

  .experiences__grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }

  .site-footer__grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }

  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  /* Mobile menu becomes a slide-in drawer on large screens (safety) */
  .mobile-menu { max-width: 420px; box-shadow: 40px 0 80px -40px rgba(17,17,17,0.3); }
}

/* ============================================================
   FINE-TUNING — small phones (320–375px)
   ============================================================ */
@media (max-width: 374px) {
  :root { --gutter: 1rem; }

  .utility-bar__note { font-size: 0.625rem; }
  .header-logo img { height: 21px; }
  .icon-btn { width: 38px; }
  .hero__dots { gap: 0.5rem; }
  .hero__dot { width: 1.8rem; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 0.75rem; }
  .product-card__wishlist { width: 36px; height: 36px; }
}

/* ============================================================
   TOUCH DEVICES — keep quick actions reachable
   ============================================================ */
@media (hover: none) {
  .product-card__quickview { transform: translateY(0); background: rgba(255, 255, 255, 0.88); }
  .product-card:active .product-card__img--primary { opacity: 0; }
  .product-card:active .product-card__img--secondary { opacity: 1; }
}

/* ============================================================
   CUSTOMIZER PROMO (accueil)
   ============================================================ */
.customizer-promo {
  background: var(--ink);
  color: var(--white);
}
.customizer-promo__inner {
  padding-block: clamp(3.5rem, 3rem + 4vw, 6.5rem);
  text-align: center;
  max-width: 46rem;
}
.customizer-promo .section-head__label { color: var(--gold); }
.customizer-promo__title {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.15;
  margin: 0.75rem 0 1rem;
}
.customizer-promo__text {
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-small);
  max-width: 34rem;
  margin: 0 auto 2rem;
}
.customizer-promo__cta {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.customizer-promo__cta:hover { background: var(--gold-deep); border-color: var(--gold-deep); }

/* ============================================================
   PAGE HERO (pages intérieures)
   ============================================================ */
.page-hero {
  padding: calc(var(--header-h) * 0) var(--gutter) 0;
  text-align: center;
}
.page-hero__inner {
  max-width: 44rem;
  margin: 0 auto;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2rem, 1.5rem + 2vw, 3rem);
}
.page-hero__label {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.9rem;
}
.page-hero__title {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.page-hero__text {
  color: var(--ink-soft);
  font-size: var(--fs-small);
  max-width: 36rem;
  margin: 0 auto;
}

/* ============================================================
   GALERIE DE RÉALISATIONS (soutenance.html)
   ============================================================ */
.works-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 var(--gutter);
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}
.works-filter button {
  padding: 0.55em 1.3em;
  border: 1px solid var(--line);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: border-color 0.3s var(--ease-lux), color 0.3s var(--ease-lux), background 0.3s var(--ease-lux);
}
.works-filter button:hover { border-color: var(--ink); color: var(--ink); }
.works-filter button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem 1.25rem;
}

.work-card {
  position: relative;
  display: block;
}
.work-card.is-hidden { display: none; }
.work-card__media {
  position: relative;
  overflow: hidden;
  /* Ton chaud proche du fond des photos : les éventuels filets laissés
     par « contain » se fondent au lieu de trancher en blanc. */
  background: #EDE6DC;
  margin-bottom: 0.9rem;
}
/* Les photos de créations sont au format 5/7 : le cadre adopte le même
   rapport et « contain » garantit que la tenue est montrée en entier —
   auparavant « cover » rognait le haut et le bas (mortier et bas de robe
   coupés). Le survol agrandit légèrement, sans jamais couper au repos. */
.work-card__media img {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: contain;
  transition: transform 1.1s var(--ease-lux);
}
.work-card:hover .work-card__media img { transform: scale(1.05); }

.work-card__wishlist {
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  color: var(--ink);
  transition: color 0.3s var(--ease-lux), transform 0.3s var(--ease-lux);
}
.work-card__wishlist svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.work-card__wishlist.is-active { color: var(--gold-deep); }
.work-card__wishlist.is-active svg { fill: currentColor; }
.work-card__wishlist.is-popped { animation: badge-bump 0.5s var(--ease-lux); }

.work-card__label {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.3rem;
}
.work-card__title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.25;
}
.work-card.is-placeholder .work-card__media::after {
  content: "Votre photo ici";
  position: absolute;
  left: 50%; bottom: 12%;
  transform: translateX(-50%);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #B9A88C;
  white-space: nowrap;
}

.works-cta {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  text-align: center;
}

@media (min-width: 600px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .works-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem 1.75rem; }
}
@media (min-width: 1280px) {
  .works-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   WORK CARD ACTIONS & ZOOM LIGHTBOX MODAL
   ============================================================ */
.work-card__desc {
  font-size: var(--fs-small);
  color: var(--gold-deep);
  margin-top: 0.3rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
  opacity: 0.85;
}

.work-card__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.work-card__btn-zoom,
.work-card__btn-choose {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.6rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s var(--ease-lux);
  cursor: pointer;
  white-space: nowrap;
}

.work-card__btn-zoom {
  background: var(--off-white);
  color: var(--ink);
  border: 1px solid rgba(17, 17, 17, 0.12);
}

.work-card__btn-zoom:hover {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
}

.work-card__btn-choose {
  background: var(--gold-deep);
  color: #FFFFFF;
  border: 1px solid var(--gold-deep);
}

.work-card__btn-choose:hover {
  background: #111111;
  color: var(--gold-light);
  border-color: #111111;
}

/* Lightbox / Zoom Modal */
.model-modal {
  position: fixed;
  inset: 0;
  z-index: 990;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-lux), visibility 0.35s var(--ease-lux);
}

.model-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.model-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.model-modal__card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.95) translateY(12px);
  transition: transform 0.35s var(--ease-lux);
}

.model-modal.is-open .model-modal__card {
  transform: scale(1) translateY(0);
}

.model-modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 10;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 243, 238, 0.9);
  border: none;
  border-radius: 50%;
  color: #111;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.model-modal__close:hover {
  background: #111111;
  color: #FFFFFF;
  transform: rotate(90deg);
}

.model-modal__close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; }

.model-modal__grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .model-modal__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.model-modal__zoom-container {
  position: relative;
  overflow: hidden;
  background: #F8F6F2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

/* La visionneuse doit montrer la création entière : « contain » plutôt
   que « cover », qui rognait le haut et le bas de la photo. */
.model-modal__img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  transition: transform 0.5s var(--ease-lux);
}

.model-modal__zoom-container:hover .model-modal__img {
  transform: scale(1.18);
}

.model-modal__zoom-hint {
  position: absolute;
  bottom: 1rem; left: 1rem;
  padding: 0.35rem 0.75rem;
  background: rgba(17, 17, 17, 0.7);
  color: #FFFFFF;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 99px;
  pointer-events: none;
}

.model-modal__info {
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.model-modal__title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin-top: 0.4rem;
  margin-bottom: 1rem;
}

.model-modal__desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #4A4A4A;
  margin-bottom: 1.4rem;
}

.model-modal__highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.model-modal__highlights li {
  font-size: 0.84rem;
  color: #222222;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.model-modal__highlights li span {
  color: var(--gold-deep);
  font-weight: bold;
}

.model-modal__cta {
  width: 100%;
  text-align: center;
  padding: 0.9rem 1.2rem;
  font-size: 0.85rem;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__label, .hero__title, .hero__slide .btn { opacity: 1; transform: none; }
}

/* Sous la galerie filtrée : configurer la pièce à partir de son propre
   modèle plutôt que d'en choisir un dans la liste. Le bouton n'apparaît
   que sur une catégorie configurable (toges, écharpes, mortiers). */
.works-own {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.works-own[hidden] { display: none; }
