/* ==========================================
   Golden Book EuroCave - Global Styles
   Modern, Immersive, Minimal (V2 Design)
   ========================================== */

/* CSS Variables */
:root {
  --color-black: #0a0a0a;
  --color-white: #ffffff;
  --color-gray-50: #fafafa;
  --color-gray-100: #f5f5f5;
  --color-gray-200: #e5e5e5;
  --color-gray-300: #d4d4d4;
  --color-gray-400: #a3a3a3;
  --color-gray-500: #737373;
  --color-gray-600: #525252;
  --color-gray-700: #404040;
  --color-gray-800: #262626;
  --color-gray-900: #171717;

  --color-accent: #8b7355;
  --color-accent-light: #a69076;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 0.8s cubic-bezier(0.4, 0, 0.2, 1);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  --header-height: 80px;
  --topbar-height: 32px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-gray-900);
  background-color: var(--color-white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Selection */
::selection {
  background: var(--color-accent);
  color: var(--color-white);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gray-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-500);
}

/* ==========================================
   Topbar (eurocave.com link)
   ========================================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-900);
  z-index: 101;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.topbar a {
  color: var(--color-gray-300);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.topbar a:hover {
  color: var(--color-white);
}

@media (max-width: 768px) {
  .topbar {
    font-size: 0.6875rem;
    padding: 0 var(--spacing-sm);
  }
}

/* ==========================================
   Header (V2 - Logo left, nav right)
   ========================================== */
.header {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-lg);
  z-index: 100;
  background: transparent;
  transition: background var(--transition-base), backdrop-filter var(--transition-base);
  will-change: transform, background;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
}

.header--dark {
  color: var(--color-white);
}

.header--dark.header--scrolled {
  color: var(--color-gray-900);
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo-img {
  height: 52px;
  width: auto;
}

/* Two logos: dark (default visible) and light (hidden by default) */
.header__logo-img--light {
  display: none;
}

/* On dark header: show white logo, hide dark */
.header--dark .header__logo-img--dark {
  display: none;
}
.header--dark .header__logo-img--light {
  display: block;
}

/* When scrolled (white bg): back to dark logo */
.header--dark.header--scrolled .header__logo-img--dark {
  display: block;
}
.header--dark.header--scrolled .header__logo-img--light {
  display: none;
}

/* Detail portrait: dark logo on desktop, light on mobile */
@media (min-width: 769px) {
  body.detail-portrait .header {
    color: var(--color-black);
  }
  body.detail-portrait .header__logo-img--dark { display: block; }
  body.detail-portrait .header__logo-img--light { display: none; }
}
@media (max-width: 768px) {
  body.detail-portrait .header {
    color: var(--color-white);
  }
  body.detail-portrait .header__logo-img--dark { display: none; }
  body.detail-portrait .header__logo-img--light { display: block; }
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.header__menu {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
}

/* Header link */
.header__link {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.header__link:hover {
  opacity: 1;
}

/* CTA link to eurocave.com — white on dark hero, dark on scroll */
.header__link--cta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--color-white);
  border: 1px solid var(--color-white);
  color: var(--color-gray-900) !important;
  border-radius: 4px;
  opacity: 1;
  font-size: 0.8125rem;
  padding: 0.4rem 0.85rem;
  transition: all var(--transition-fast);
}

.header__link--cta:hover {
  background: var(--color-gray-100);
  border-color: var(--color-gray-100);
}

/* Non-dark header: dark CTA */
.header:not(.header--dark) .header__link--cta {
  background: var(--color-gray-900);
  border-color: var(--color-gray-900);
  color: var(--color-white) !important;
}

.header:not(.header--dark) .header__link--cta:hover {
  background: var(--color-gray-700);
  border-color: var(--color-gray-700);
}

/* Scrolled (white bg): dark CTA */
.header--dark.header--scrolled .header__link--cta {
  background: var(--color-gray-900);
  border-color: var(--color-gray-900);
  color: var(--color-white) !important;
}

.header--dark.header--scrolled .header__link--cta:hover {
  background: var(--color-gray-700);
  border-color: var(--color-gray-700);
}

.header__external-icon {
  flex-shrink: 0;
}

/* Dropdown container */
.header__dropdown {
  position: relative;
}

.header__link--dropdown {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header__dropdown-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--ease-out-expo);
}

.header__dropdown:hover .header__dropdown-icon {
  transform: rotate(180deg);
}

/* Submenu — absolute card, slides down on hover */
.header__submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out-expo);
  z-index: 101;
  min-width: 160px;
}

.header__dropdown:hover .header__submenu {
  max-height: 300px;
}

.header__submenu-link {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #000;
  transition: opacity var(--transition-fast);
  white-space: nowrap;
}

.header__submenu-link:first-child {
  padding-top: 0.75rem;
}

.header__submenu-link:last-child {
  padding-bottom: 0.75rem;
}

.header__submenu-link::before {
  display: none;
}

.header__submenu-link:hover {
  opacity: 0.6;
}

.header__link--active {
  opacity: 1;
  font-weight: 500;
}

/* Language switcher */
.header__lang {
  position: relative;
}

.header__lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.header__lang-toggle:hover {
  opacity: 1;
}

.header__lang-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.header__lang:hover .header__lang-toggle svg {
  transform: rotate(180deg);
}

.header__lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 100px;
  background: var(--color-white);
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
  z-index: 100;
}

.header__lang:hover .header__lang-menu {
  opacity: 1;
  visibility: visible;
}

.header__lang-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--color-gray-700);
  transition: background var(--transition-fast);
}

.header__lang-menu a:hover {
  background: var(--color-gray-100);
  color: var(--color-gray-900);
}

.header__lang-menu a.active {
  font-weight: 500;
  color: var(--color-gray-900);
}

/* Mobile: hide menu, show hamburger later if needed */
@media (max-width: 768px) {
  .header__menu {
    display: none;
  }

  .header__logo-img {
    height: 32px;
  }

  .topbar {
    height: 28px;
  }

  .header {
    top: 28px;
  }
}

.header__back {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.875rem;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.header__back:hover {
  opacity: 1;
}

.header__back svg {
  width: 16px;
  height: 16px;
}

/* ==========================================
   Hero Section — Slider (fullscreen → framed on scroll)
   ========================================== */

/* Base hero (shared by all pages) */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero--compact {
  height: 50vh;
  min-height: 420px;
}

/* ---- Scroll-space wrapper: absorbs scroll for hero shrink ---- */
.hero-scroll-space {
  position: relative;
  height: 180vh; /* extra height = scroll consumed by shrink before content */
}

/* ---- Slider hero: sticky inside scroll-space, shrinks as you scroll ---- */
.hero--slider {
  position: sticky;
  top: 0;
  display: block;
  height: 100vh;
  min-height: 0;
  background: var(--color-white);
  overflow: hidden;
  padding: 0;
}

/* Image frame: scroll-driven morph via --shrink (0→1) */
.hero__slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Starts 100vh full, shrinks with margins all around */
  height: calc(100vh - var(--shrink, 0) * 25vh);
  max-width: calc(100vw - var(--shrink, 0) * 10vw);
  margin: calc(var(--shrink, 0) * 3vh) auto 0;
  border-radius: calc(var(--shrink, 0) * 12px);
}

/* Slides */
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__slide.active {
  opacity: 1;
  z-index: 1;
}

.hero__slide-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 7s ease-out;
}

.hero__slide.active .hero__slide-bg img {
  transform: scale(1);
}

/* Overlay — inside slider, dark gradient, visible initially */
.hero--slider .hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.0) 40%,
    rgba(0, 0, 0, 0.45) 100%
  );
  opacity: calc(1 - var(--shrink, 0));
  pointer-events: none;
}

/* Hero text — title/subtitle/scroll centered on image */
.hero__hero-text {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-align: center;
  padding: var(--spacing-lg);
  opacity: calc(1 - var(--shrink, 0) * 2);
}

.hero__hero-text .hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 200;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 0.4s forwards;
}

.hero__hero-text .hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 0.6s forwards;
}

.hero__hero-text .hero__scroll {
  position: absolute;
  bottom: var(--spacing-xl);
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--color-white);
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 1.2s forwards;
  text-decoration: none;
  cursor: pointer;
  z-index: 4;
  text-align: center;
}

.hero__scroll-icon {
  width: 28px;
  height: 46px;
  border: 2px solid currentColor;
  border-radius: 14px;
  position: relative;
}

.hero__scroll-icon::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: currentColor;
  border-radius: 2px;
  animation: scrollBounce 2s infinite;
}

.hero__scroll-text {
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Info bar — below slider, dark text on white, hidden initially */
.hero__info-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.25rem 6vw 1.5rem;
  color: var(--color-gray-900);
  opacity: var(--shrink, 0);
}

.hero__slide-info {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  flex-wrap: wrap;
  flex: 1;
  transition: opacity 0.4s ease;
}

.hero__slide-info--fade {
  opacity: 0 !important;
}

.hero__slide-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.625rem;
  color: var(--color-gray-900);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.hero__slide-link:hover {
  opacity: 0.6;
}

.hero__slide-collection {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero__slide-separator {
  opacity: 0.3;
  font-weight: 300;
}

.hero__slide-lieu {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.6;
}

.hero__slide-credit {
  font-size: 0.8125rem;
  font-weight: 400;
  opacity: 0.4;
  letter-spacing: 0.01em;
}

.hero__nav {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-gray-900);
  flex-shrink: 0;
}

.hero__nav-current { font-weight: 500; }
.hero__nav-sep { opacity: 0.35; }
.hero__nav-total { opacity: 0.35; }

.hero__nav-progress {
  width: 48px;
  height: 2px;
  background: var(--color-gray-200);
  border-radius: 1px;
  margin-left: 0.75rem;
  overflow: hidden;
}

.hero__nav-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--color-gray-900);
  border-radius: 1px;
}

/* Logo anniversaire 50 ans */
.hero__anniversary-logo {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  width: 220px;
  height: 220px;
  object-fit: contain;
  opacity: calc(1 - var(--shrink, 0));
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 3;
}

@media (max-width: 768px) {
  .hero__anniversary-logo {
    width: 110px;
    height: 110px;
    bottom: 1.25rem;
    left: 1.25rem;
  }
}

/* ========= FRAMED STATE (pointer-events only, visuals driven by --shrink) ========= */
.hero--framed .hero__hero-text {
  pointer-events: none;
}

/* ---- Legacy hero (non-slider, category pages) ---- */
.hero__click {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-indent: -9999px;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__background img,
.hero__background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.05) 40%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

.hero__content {
  position: relative;
  text-align: center;
  color: var(--color-white);
  padding: var(--spacing-lg);
  z-index: 3;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 200;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 0.4s forwards;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 0.6s forwards;
}

/* Scroll indicator (legacy hero only) */
.hero__scroll {
  position: absolute;
  bottom: var(--spacing-xl);
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--color-white);
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 1.2s forwards;
  text-decoration: none;
  cursor: pointer;
  z-index: 4;
  text-align: center;
}

/* ==========================================
   Header Search (Icon toggle + panel)
   ========================================== */
.header__search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.header__search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.8;
  transition: opacity var(--transition-fast), background var(--transition-fast);
}

.header__search-toggle svg {
  width: 18px;
  height: 18px;
}

.header__search-toggle:hover {
  opacity: 1;
  background: rgba(128, 128, 128, 0.1);
}

.header__search-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  padding: 0 var(--spacing-lg);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s var(--ease-out-expo);
}

.header__search-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Search bar in header */
.search-bar--header {
  flex: 1;
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-200);
  border-radius: 50px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.search-bar--header:focus-within {
  background: var(--color-white);
  border-color: var(--color-gray-300);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.search-bar--header .search-bar__icon {
  color: var(--color-gray-500);
}

.search-bar--header .search-bar__input {
  color: var(--color-gray-900);
  font-size: 0.9375rem;
}

.search-bar--header .search-bar__input::placeholder {
  color: var(--color-gray-400);
}

.header__search-close {
  position: absolute;
  right: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-gray-600);
  transition: background var(--transition-fast);
}

.header__search-close svg {
  width: 18px;
  height: 18px;
}

.header__search-close:hover {
  background: var(--color-gray-100);
}

/* Search dropdown in header context */
.header__search-panel .search-dropdown {
  position: absolute;
  top: calc(var(--header-height) - 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: min(640px, calc(100vw - 2 * var(--spacing-lg)));
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  max-height: 60vh;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 1000;
}

.header__search-panel .search-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Legacy search bar (non-header) */
.search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  padding: 0.875rem 1.25rem;
  transition: all 0.3s ease;
}

.search-bar:focus-within {
  background: rgba(255, 255, 255, 0.38);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.search-bar__icon {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.search-bar__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 0.9375rem;
  color: #fff;
  font-family: var(--font-sans);
}

.search-bar__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-bar__kbd {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  opacity: 0;
  transition: opacity 0.2s;
}

.search-bar:focus-within .search-bar__kbd {
  opacity: 1;
}

/* Search Dropdown (generic) */
.search-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  max-height: 60vh;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 1000;
}

.search-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--color-gray-900);
  transition: background 0.15s;
}

.search-dropdown__item:hover,
.search-dropdown__item.highlighted {
  background: rgba(0, 0, 0, 0.05);
}

.search-dropdown__item:first-child {
  border-radius: 16px 16px 0 0;
}

.search-dropdown__item:last-child {
  border-radius: 0 0 16px 16px;
}

.search-dropdown__thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.search-dropdown__info {
  flex: 1;
  min-width: 0;
}

.search-dropdown__title {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown__meta {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  margin-top: 0.125rem;
}

.search-dropdown__empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--color-gray-500);
  font-size: 0.875rem;
}

.search-dropdown__count {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--color-gray-500);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero--compact {
    height: 40vh;
    min-height: 300px;
  }

  .hero-scroll-space {
    height: 160vh;
  }

  .hero__slider {
    max-width: calc(100vw - var(--shrink, 0) * 6vw);
  }

  .hero__info-bar {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 4vw 1.25rem;
  }

  .hero__slide-collection,
  .hero__slide-lieu {
    font-size: 0.875rem;
  }

  .hero__slide-credit {
    display: none;
  }

  .search-bar {
    padding: 0.75rem 1rem;
  }

  .search-bar__kbd {
    display: none;
  }

  .header__search-panel {
    padding: 0 var(--spacing-sm);
  }

  .header__search-panel .search-dropdown {
    width: calc(100vw - 2rem);
  }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.5; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   Category Sections (Homepage) — Mosaic layout
   ========================================== */
.categories {
  display: flex;
  flex-direction: column;
  gap: 8rem;
  padding: 6rem 8vw;
  background: var(--color-bg, #f7f5f0);
}

.category {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Header row: title+desc left, CTA right */
.category__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.category__header-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--color-gray-900);
}

.category__desc {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-gray-600, #666);
  max-width: 50ch;
}

/* Text CTA link below description */
.category__link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-gray-800, #333);
  text-decoration: none;
  margin-top: 1rem;
  padding: 0.25rem 0;
  position: relative;
  transition: all 0.3s var(--ease-out-expo);
}

.category__link-cta::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gray-900, #000);
  transition: width 0.3s var(--ease-out-expo);
}

.category__link-cta:hover {
  color: var(--color-gray-900, #000);
  gap: 0.85rem;
}

.category__link-cta:hover::after {
  width: calc(100% - 28px);
}

.category__link-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-out-expo);
}

.category__link-cta:hover svg {
  transform: translateX(4px);
}

/* Mobile CTA circle next to title — hidden on desktop */
.category__title-cta {
  display: none;
}

/* 3rd tile CTA overlay — "Voir toutes les réalisations" */
.category__img--cta .category__img-cta-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.35s ease;
}

.category__img--cta:hover .category__img-cta-overlay {
  background: rgba(0, 0, 0, 0.55);
}

.category__img-cta-text {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--color-white);
  line-height: 1.3;
}

.category__img-cta-arrow {
  width: 36px;
  height: 36px;
  color: var(--color-white);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-out-expo);
}

.category__img--cta:hover .category__img-cta-arrow {
  transform: translateX(8px);
}

/* Hide project info overlay on CTA tile */
.category__img--cta .category__img-info {
  display: none;
}

/* Asymmetric mosaic: 1 tall left + 2 stacked right */
.category__mosaic {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
  height: 75vh;
  min-height: 500px;
}

.category__img {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  display: block;
  text-decoration: none;
}

.category__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.category__img:hover img {
  transform: scale(1.04);
}

/* Project info overlay — bottom of each image */
.category__img-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.category__img:hover .category__img-info {
  opacity: 1;
  transform: translateY(0);
}

.category__img-collection {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.category__img-lieu {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
}

.category__img-credit-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.18rem;
}

.category__img-credit-badges .credit-badge {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.16rem 0.42rem;
  color: rgba(255,255,255,0.92);
}

.category__img-credit-badges .credit-badge__icon {
  width: 0.78rem;
  height: 0.78rem;
  opacity: 1;
}

.category__img-credit-badges .credit-badge__text {
  font-size: 0.69rem;
  line-height: 1.15;
}

/* Image 1: tall, spans both rows on the left */
.category__img--1 {
  grid-column: 1;
  grid-row: 1 / -1;
}

/* Image 2: top right */
.category__img--2 {
  grid-column: 2;
  grid-row: 1;
}

/* Image 3: bottom right */
.category__img--3 {
  grid-column: 2;
  grid-row: 2;
}

@media (max-width: 768px) {
  .categories {
    gap: 4rem;
    padding: 3rem 5vw;
  }

  .category__header {
    flex-direction: column;
    gap: 1rem;
  }

  .category__mosaic {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 50vw 35vw;
  }

  .category__img--1 {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .category__img--2 {
    grid-column: 1;
    grid-row: 2;
  }

  .category__img--3 {
    grid-column: 2;
    grid-row: 2;
  }

  .category__img-info {
    opacity: 1;
    transform: translateY(0);
    padding: 1.1rem 0.9rem 0.75rem;
    gap: 0.08rem;
  }

  .category__title-cta {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--color-gray-900);
    color: var(--color-white);
    vertical-align: middle;
    margin-left: 0.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
  }

  .category__title-cta svg {
    width: 14px;
    height: 14px;
  }

  .category__title-cta:active {
    transform: scale(0.9);
  }

  .category__img--cta .category__img-cta-overlay {
    background: rgba(0, 0, 0, 0.7);
  }

  .category__img-cta-text {
    font-size: 0.95rem;
    font-weight: 400;
  }

  .category__img-cta-arrow {
    width: 24px;
    height: 24px;
  }

  /* Mobile: préserver la lisibilité des visuels dans la mosaïque home */
  .category__img-credit-badges {
    display: none;
  }
}

/* ==========================================
   Latest Installations Strip (home bottom)
   ========================================== */
.latest-strip {
  padding: clamp(2.5rem, 6vw, 4rem) var(--spacing-lg) clamp(3rem, 7vw, 4.5rem);
  background: linear-gradient(180deg, #f5f5f5 0%, #f1f1f1 100%);
  border-top: 1px solid var(--color-gray-200);
}

.latest-strip__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.latest-strip__title {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}

.latest-strip__subtitle {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: var(--color-gray-500);
}

.latest-strip__nav {
  display: flex;
  gap: 0.5rem;
}

.latest-strip__nav-btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid var(--color-gray-300);
  background: #fff;
  color: var(--color-gray-900);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s ease;
}

.latest-strip__nav-btn:hover:not(:disabled) {
  border-color: var(--color-gray-900);
  transform: translateY(-1px);
}

.latest-strip__nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.latest-strip__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 30vw);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.25rem;
}

.latest-strip__track::-webkit-scrollbar {
  display: none;
}

.latest-strip__card {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: 14px;
  overflow: hidden;
  min-height: 100%;
}

.latest-strip__card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.latest-strip__card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-gray-200);
}

.latest-strip__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.latest-strip__card-link:hover .latest-strip__card-media img {
  transform: scale(1.03);
}

.latest-strip__card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 0.9rem 0.8rem;
  background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.15) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.latest-strip__card-link:hover .latest-strip__card-info {
  opacity: 1;
  transform: translateY(0);
}

.latest-strip__card-collection {
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff;
}

.latest-strip__card-lieu {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.82);
}

.latest-strip__card-body {
  padding: 0.8rem 0.9rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.latest-strip__card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
}

.latest-strip__card-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-gray-500);
}

.latest-strip__credit-badges {
  margin-top: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.latest-strip__credit-badges .credit-badge {
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.42);
  color: rgba(255, 255, 255, 0.92);
}

.latest-strip__credit-badges .credit-badge__icon {
  width: 0.76rem;
  height: 0.76rem;
}

.latest-strip__credit-badges .credit-badge__text {
  font-size: 0.68rem;
  line-height: 1.15;
}

.latest-strip__card-cta {
  margin-top: 0.45rem;
  display: inline-flex;
  width: fit-content;
  font-size: 0.78rem;
  color: var(--color-gray-900);
  border-bottom: 1px solid rgba(17, 17, 17, 0.25);
}

@media (max-width: 980px) {
  .latest-strip__track {
    grid-auto-columns: minmax(260px, 58vw);
  }
}

@media (max-width: 640px) {
  .latest-strip {
    padding-top: 2rem;
  }

  .latest-strip__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .latest-strip__nav {
    display: none;
  }

  .latest-strip__track {
    grid-auto-columns: minmax(240px, 84vw);
    gap: 0.75rem;
  }

  .latest-strip__card-info {
    opacity: 1;
    transform: translateY(0);
    padding: 0.8rem 0.75rem 0.7rem;
  }

  .latest-strip__credit-badges {
    display: none;
  }
}

/* ==========================================
   Gallery Grid
   ========================================== */
/* ==========================================
   Category Hero — Sticky, réduction au scroll
   ========================================== */
.hero-wrap {
  height: 130vh;
  position: relative;
}

.hero-wrap .hero {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: block;
  min-height: 0;
}

.hero-wrap .hero__media {
  position: absolute;
  inset: 0;
  transition: all 0.8s var(--ease-out-expo);
  border-radius: 0;
  overflow: hidden;
}

.hero-wrap .hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-wrap .hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.4) 100%);
  transition: border-radius 0.8s var(--ease-out-expo);
}

.hero-wrap .hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(2rem, 5vw, 4rem);
  color: white;
  z-index: 2;
  text-align: left;
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.75rem;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  opacity: 0.8;
  max-width: 600px;
}

.hero-wrap .hero__scroll {
  position: absolute;
  bottom: clamp(1.5rem, 3vw, 2.5rem);
  right: clamp(2rem, 5vw, 4rem);
  left: auto;
  margin: 0;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: white;
  opacity: 0.6;
  z-index: 2;
  transition: opacity 0.3s;
  animation: none;
  text-align: center;
  cursor: default;
}

.hero-wrap .hero__scroll:hover { opacity: 1; }

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.4);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  animation: heroScrollLine 2s infinite;
}

@keyframes heroScrollLine {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

.hero__scroll-text {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* Hero réduction au scroll */
.hero-wrap .hero.is-reduced .hero__media {
  inset: 48px;
  border-radius: 20px;
}

.hero-wrap .hero.is-reduced .hero__overlay {
  border-radius: 20px;
}

/* Contenu post-hero */
.category-content {
  position: relative;
  z-index: 2;
  background: var(--color-gray-50);
}

/* ==========================================
   Section sticky (titre + filtres)
   ========================================== */
.section-wrap {
  position: sticky;
  top: var(--header-height);
  z-index: 10;
  background: var(--color-gray-50);
  padding-bottom: 1rem;
}

.section-header {
  padding: clamp(1.5rem, 3vw, 2rem) var(--spacing-lg) 0;
  display: flex;
  align-items: baseline;
  gap: 2rem;
}

.section-header__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
}

.section-header__filter-toggle {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-gray-500);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  transition: color 0.2s;
  border: none;
  background: none;
  font-family: var(--font-sans);
}

.section-header__filter-toggle:hover { color: var(--color-gray-900); }

.section-header__filter-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s;
}

.section-header__filter-toggle.is-open svg {
  transform: rotate(180deg);
}

/* Filters — fermés par défaut */
.filters {
  padding: 0 var(--spacing-lg);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo), margin 0.5s;
  margin-top: 0;
}

.filters.is-open {
  max-height: 200px;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.filters--no-contexts {
  /* compat — plus utilisé */
}

.filters__inner {
  display: contents;
}

.filter-tag {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  border: 1px solid var(--color-gray-200);
  border-radius: 100px;
  color: var(--color-gray-600);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  font-family: var(--font-sans);
}

.filter-tag:hover {
  border-color: var(--color-gray-900);
  color: var(--color-gray-900);
}

.filter-tag.active {
  background: var(--color-gray-900);
  border-color: var(--color-gray-900);
  color: white;
}

/* Context tabs — intégrés dans les filtres */
.context-tabs {
  display: none; /* remplacé par les séparateurs de contexte */
}

/* Mobile Filter Compact Button */
.filter-compact-btn {
  display: none;
  position: fixed;
  top: calc(var(--topbar-height) + var(--header-height) + 1rem + env(safe-area-inset-top));
  right: 1rem;
  width: 48px;
  height: 48px;
  background: var(--color-gray-900);
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 140;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
}

.filter-compact-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.filter-compact-btn svg {
  width: 20px;
  height: 20px;
}

.filter-compact-btn__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #dc2626;
  color: white;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Filter Modal (Mobile) */
.filter-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filter-modal-overlay.active {
  display: block;
  opacity: 1;
}

.filter-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 70vh;
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow-y: auto;
}

.filter-modal-overlay.active .filter-modal {
  transform: translateY(0);
}

.filter-modal__handle {
  width: 40px;
  height: 4px;
  background: var(--color-gray-300);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}

.filter-modal__section {
  margin-bottom: 1.5rem;
}

.filter-modal__section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-500);
  margin-bottom: 0.75rem;
}

.filter-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ==========================================
   Context sections (séparateurs)
   ========================================== */
.context-section {
  padding: clamp(2.5rem, 5vw, 4rem) var(--spacing-lg) clamp(1.5rem, 3vw, 2rem);
}

.context-section:first-child {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.context-section__name {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-gray-900);
}

/* ==========================================
   Grille alternée (Hitoba style)
   ========================================== */
.gallery-grid {
  padding: 0 var(--spacing-lg);
}

.grid-row {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.grid-row--3 { grid-template-columns: repeat(3, 1fr); }
.grid-row--2 { grid-template-columns: repeat(2, 1fr); }
.grid-row--2-1 { grid-template-columns: 1.4fr 1fr; }
.grid-row--1-2 { grid-template-columns: 1fr 1.4fr; }

/* Gallery items — nouveau style carte */
.gallery-item {
  display: block;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.gallery-item__image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--color-gray-200);
  margin-bottom: 0.875rem;
  height: 530px;
}

.gallery-item__image-wrap img,
.gallery-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out-expo);
}

/* Hauteur identique par type de row */
.grid-row--3 .gallery-item__image-wrap { height: 500px; }
.grid-row--2 .gallery-item__image-wrap { height: 560px; }
.grid-row--2-1 .gallery-item__image-wrap,
.grid-row--1-2 .gallery-item__image-wrap { height: 530px; }

.gallery-item:hover .gallery-item__image-wrap img,
.gallery-item:hover .gallery-item__image {
  transform: scale(1.04);
}

/* Hover overlay + "See detail" (Hitoba style) */
.gallery-item__image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.4s;
  z-index: 1;
}

.gallery-item__image-wrap::after {
  content: attr(data-hover-label);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(8px);
  color: white;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.4s, transform 0.4s var(--ease-out-expo);
  pointer-events: none;
}

.gallery-item:hover .gallery-item__image-wrap::before {
  background: rgba(0, 0, 0, 0.35);
}

.gallery-item:hover .gallery-item__image-wrap::after {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

.gallery-item__credit-overlay {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.gallery-item:hover .gallery-item__credit-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Compat: ancien overlay (masqué, remplacé par ::before/::after) */
.gallery-item__overlay { display: none; }
.gallery-item__info { display: none; }

/* Card body : titre + lieu */
.gallery-item__body {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.gallery-item__title {
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.gallery-item__lieu {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--color-gray-500);
  white-space: nowrap;
}

.credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: inherit;
}

.credit-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0.9;
}

.credit-badge__icon svg,
.credit-badge__icons svg {
  width: 100%;
  height: 100%;
  display: block;
}

.credit-badge__icons {
  display: inline-flex;
  gap: 0.12rem;
}

.credit-badge__text {
  line-height: 1.25;
}

.gallery-item__credit-overlay .credit-badge {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
}

.gallery-item__credit-overlay .credit-badge__icon {
  width: 0.88rem;
  height: 0.88rem;
  opacity: 1;
}

.gallery-item__credit-overlay .credit-badge__text {
  font-size: 0.73rem;
  font-weight: 400;
  line-height: 1.2;
}

/* Compat: anciens noms de classes collection/location */
.gallery-item__collection {
  font-size: clamp(0.9375rem, 1.3vw, 1.125rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.gallery-item__location {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-gray-500);
  white-space: nowrap;
}

/* Search bar dans le header (pages catégorie) */
.header__search {
  position: relative;
}

.header--scrolled .search-bar {
  background: var(--color-gray-100);
  border-color: var(--color-gray-200);
}

.header--scrolled .search-bar:focus-within {
  background: var(--color-white);
  border-color: var(--color-gray-400);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.header--scrolled .search-bar__icon {
  color: var(--color-gray-400);
}

.header--scrolled .search-bar__input {
  color: var(--color-gray-900);
}

.header--scrolled .search-bar__input::placeholder {
  color: var(--color-gray-400);
}

.header--scrolled .search-bar__kbd {
  background: var(--color-gray-200);
  color: var(--color-gray-500);
}

/* ==========================================
   Responsive — Catégorie
   ========================================== */
@media (max-width: 900px) {
  .grid-row--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Cacher les filtres desktop en mobile */
  .filters {
    display: none !important;
  }

  /* Afficher le bouton "Filtrer" en mobile */
  .filter-compact-btn {
    display: flex;
    top: calc(var(--topbar-height) + var(--header-height) + 1.5rem + env(safe-area-inset-top));
  }

  .hero-wrap .hero__content { padding: 1.5rem; }

  .hero-wrap .hero.is-reduced .hero__media {
    inset: 16px;
    border-radius: 12px;
  }

  .hero-wrap .hero.is-reduced .hero__overlay {
    border-radius: 12px;
  }
}

@media (max-width: 640px) {
  .header__search { flex: 1; margin-left: 1rem; }
  .search-bar { min-width: 0; }
  .search-bar__kbd { display: none; }

  .grid-row--2,
  .grid-row--3,
  .grid-row--2-1,
  .grid-row--1-2 {
    grid-template-columns: 1fr;
  }

  .gallery-item__image-wrap,
  .grid-row--3 .gallery-item__image-wrap,
  .grid-row--2 .gallery-item__image-wrap,
  .grid-row--2-1 .gallery-item__image-wrap,
  .grid-row--1-2 .gallery-item__image-wrap {
    height: 300px;
  }

  .gallery-item__body {
    flex-direction: column;
    gap: 0.25rem;
  }

  .gallery-grid {
    padding: 0 var(--spacing-sm);
  }
}

/* ==========================================
   Detail Page - Immersive Fullscreen (V2)
   ========================================== */
.detail-immersive {
  position: fixed;
  inset: 0;
  background: #000;
}

.detail-immersive__image-container {
  position: absolute;
  inset: 0;
}

.detail-immersive__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* object-position défini inline via le focal point */
}

/* Layout côte à côte pour 2 images */
.detail-immersive__dual-container {
  position: absolute;
  inset: 0;
  display: flex;
}

.detail-immersive__image-half {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.detail-immersive__image-half .detail-immersive__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Séparateur subtil entre les 2 images */
.detail-immersive__image-half:first-child {
  border-right: 1px solid rgba(0, 0, 0, 0.3);
}

/* Marqueurs de caves */
.cave-marker {
  position: absolute;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
  border: none;
  background: none;
  padding: 0;
}

.cave-marker__circle {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
}

.cave-marker:hover .cave-marker__circle,
.cave-marker:focus .cave-marker__circle {
  transform: scale(1.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.cave-marker__icon {
  font-size: 20px;
  font-weight: 300;
  color: #1a1a1a;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cave-marker__icon::before {
  content: '+';
}

/* Animation pulse subtile */
.cave-marker::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  animation: marker-pulse 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes marker-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Mobile: marqueurs plus petits et discrets */
@media (max-width: 768px) {
  .cave-marker {
    width: 28px;
    height: 28px;
  }

  .cave-marker__icon {
    font-size: 16px;
  }

  .cave-marker::after {
    inset: -3px;
    border-width: 1.5px;
  }

  /* Garder les marqueurs visibles en mobile (pas de masquage agressif par coordonnées) */
}

.detail-immersive__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

.detail-immersive--portrait .detail-immersive__image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f1eb;
}

.detail-immersive--portrait .detail-immersive__image {
  width: auto;
  height: 85vh;
  max-width: min(70vw, 820px);
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  border-radius: 6px;
}

.detail-immersive--portrait .detail-immersive__gradient {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0) 80%);
}

.detail-immersive__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 20;
}

.detail-immersive__nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.detail-immersive__nav--prev { left: 2rem; }
.detail-immersive__nav--next { right: 2rem; }
.detail-immersive__nav svg { width: 28px; height: 28px; }

.detail-immersive__counter {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  z-index: 10;
}

.detail-immersive__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 3rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  z-index: 20;
}

.detail-immersive__info-main { color: #fff; }

.detail-immersive__collection {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
}

.detail-immersive__location {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

.detail-immersive__context {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.detail-immersive__credit {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.detail-immersive__credit .credit-badge {
  color: rgba(255, 255, 255, 0.9);
}

.detail-immersive__credit .credit-badge__icon {
  width: 1rem;
  height: 1rem;
  opacity: 1;
}

.detail-immersive__gamme-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.detail-immersive__gamme-toggle:hover { background: rgba(255, 255, 255, 0.2); }
.detail-immersive__gamme-toggle svg { width: 18px; height: 18px; transition: transform 0.3s ease; }
.detail-immersive__gamme-toggle[aria-expanded='true'] svg { transform: rotate(180deg); }

.detail-immersive__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-bottom: 5rem;
}

.detail-immersive__edit {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.detail-immersive__edit:hover { background: rgba(255, 255, 255, 0.2); }
.detail-immersive__edit.is-visible { display: inline-flex; }

.detail-immersive__edit--floating {
  position: fixed;
  top: calc(var(--header-height) + 16px);
  right: 24px;
  z-index: 40;
  padding: 0.85rem 1.35rem;
  font-size: 0.875rem;
}

.detail-immersive__back {
  position: fixed;
  top: calc(var(--header-height) + 16px);
  left: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.detail-immersive__back:hover { background: rgba(255, 255, 255, 0.2); }


.detail-immersive__gamme-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 90vw);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border-radius: 0;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 300;
  overflow-y: auto;
}

.detail-immersive__gamme-panel.open { transform: translateX(0); }

.detail-immersive__gamme-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.detail-immersive__gamme-close:hover { background: #e5e5e5; }
.detail-immersive__gamme-close svg { width: 20px; height: 20px; color: #333; }

.detail-immersive__gamme-content {
  padding: 2.5rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.detail-immersive__gamme-header { margin-bottom: 1.5rem; }
.detail-immersive__gamme-label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #737373; }
.detail-immersive__gamme-name { font-size: 2rem; font-weight: 300; color: #0a0a0a; margin: 0.25rem 0; }
.detail-immersive__gamme-baseline { font-size: 1.125rem; font-style: italic; color: #8b7355; margin: 0; }
.detail-immersive__gamme-description { font-size: 1rem; line-height: 1.7; color: #525252; margin-bottom: 1.5rem; }

.detail-immersive__gamme-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 1.5rem;
}

.detail-immersive__gamme-spec {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: #404040;
  line-height: 1.6;
}

.detail-immersive__gamme-spec svg {
  width: 18px;
  height: 18px;
  opacity: 0.6;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.detail-immersive__gamme-ideal { font-size: 0.9375rem; color: #525252; margin-bottom: 2rem; }
.detail-immersive__gamme-ideal strong { color: #0a0a0a; }

.detail-immersive__gamme-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: #0a0a0a;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.detail-immersive__gamme-cta:hover { background: #262626; transform: translateY(-2px); }
.detail-immersive__gamme-cta svg { width: 18px; height: 18px; }

/* Footer for immersive pages */
.detail-immersive__footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  z-index: 15;
  pointer-events: none;
}

.detail-immersive__footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  pointer-events: auto;
  transition: color 0.2s ease;
}

.detail-immersive__footer a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Mobile: dual-image en colonne verticale */
@media (max-width: 768px) {
  .detail-immersive__dual-container {
    flex-direction: column;
  }

  .detail-immersive__image-half:first-child {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  }
}

/* Orientation paysage sur mobile: garder côte à côte */
@media (max-width: 768px) and (orientation: landscape) {
  .detail-immersive__dual-container {
    flex-direction: row;
  }

  .detail-immersive__image-half:first-child {
    border-right: 1px solid rgba(0, 0, 0, 0.3);
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .detail-immersive__footer {
    padding: 0.5rem 1rem;
    font-size: 0.6875rem;
  }
}

@media (max-width: 768px) {
  .detail-immersive__nav { width: 44px; height: 44px; }
  .detail-immersive__nav--prev { left: 1rem; }
  .detail-immersive__nav--next { right: 1rem; }
  .detail-immersive__nav svg { width: 22px; height: 22px; }
  .detail-immersive__info { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
  .detail-immersive__collection { font-size: 0.875rem; }
  .detail-immersive__location { font-size: 1.75rem; }
  .detail-immersive__context { font-size: 1.125rem; }

  /* Multi-gamme sur mobile: boutons empilés */
  .detail-immersive__actions {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 35vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 4.5rem;
  }
  .detail-immersive__gamme-toggle {
    display: none;
  }
  /* Bottom panel en mobile au lieu de side panel */
  .detail-immersive__gamme-panel {
    top: auto;
    right: auto;
    left: 0;
    bottom: 0;
    width: 100%;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .detail-immersive__gamme-panel.open {
    transform: translateY(0);
  }
  .detail-immersive__gamme-content {
    padding: 1.5rem 1.25rem;
    padding-bottom: 2rem;
  }
  .detail-immersive__gamme-header { margin-bottom: 1rem; }
  .detail-immersive__gamme-description {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
  }
  .detail-immersive__gamme-specs {
    padding: 1.25rem 0;
    margin-bottom: 1.25rem;
    gap: 0.875rem;
  }
  .detail-immersive__gamme-ideal {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }
  .detail-immersive__gamme-cta {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
  }
  .detail-immersive__gamme-name { font-size: 1.5rem; }
  .detail-immersive__gamme-close {
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
  }
  .detail-immersive__gamme-close svg {
    width: 18px;
    height: 18px;
  }

  /* Portrait images full screen on mobile */
  .detail-immersive--portrait .detail-immersive__image-container {
    background: #000;
  }
  .detail-immersive--portrait .detail-immersive__image {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    box-shadow: none;
    border-radius: 0;
  }
  .detail-immersive--portrait .detail-immersive__gradient {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0.3) 100%);
  }
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  padding: var(--spacing-lg);
  border-top: 1px solid var(--color-gray-200);
  font-size: 0.875rem;
  color: var(--color-gray-500);
}

.footer__discover {
  font-size: 0.8125rem;
}

.footer a {
  color: var(--color-gray-900);
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-xs);
  }
}

/* ==========================================
   Animations (Scroll Reveal)
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  body {
    overflow-x: hidden;
  }

  .header {
    padding: 0 var(--spacing-sm);
  }

  .hero {
    height: 100svh;
  }

  .filters {
    padding: 0.5rem var(--spacing-sm);
  }

  .filters__inner {
    justify-content: flex-start;
  }
}

/* ========================================
   Contact Form - Floating Button & Modal
   ======================================== */

.contact-floating-btn {
    position: fixed;
    bottom: 1.5rem;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding: 0;
    /* background color is set dynamically via JavaScript from database config */
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.contact-floating-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.contact-floating-btn svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1rem;
    padding-bottom: 6rem; /* Space for floating button */
}

.contact-modal.is-open {
    display: flex;
}

.contact-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    backdrop-filter: blur(2px);
}

.contact-modal__content {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 2rem);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #999;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    z-index: 1;
}

.contact-modal__close:hover {
    background: #f0f0f0;
    color: #333;
}

#contactModalBody {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#contactForm {
    display: flex;
    flex-direction: column;
}

/* Multi-step progress */
.contact-header {
    padding: 1.5rem 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.contact-header h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    color: #1f2937;
    padding-right: 2rem;
}

.contact-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all 0.3s ease;
}

.progress-dot.active {
    width: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.progress-dot.completed {
    background: #10b981;
}

.contact-step-title {
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.contact-step-content {
    padding: 1.5rem 1.5rem 0;
    min-height: 200px;
}

.contact-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.contact-btn-secondary {
    padding: 0.875rem 1.5rem;
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.contact-field {
    margin-bottom: 1rem;
}

.contact-field label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: #374151;
}

.contact-field input[type="text"],
.contact-field input[type="email"],
.contact-field textarea,
.contact-field select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s;
    background: #fff;
}

.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.contact-field textarea {
    resize: vertical;
    min-height: 80px;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.4;
}

.radio-label input,
.checkbox-label input {
    cursor: pointer;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.contact-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.contact-btn:active {
    transform: translateY(0);
}

.contact-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

.contact-mentions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
}

.contact-mentions a {
    color: #dc2626;
    text-decoration: underline;
}

.contact-success {
    text-align: center;
    padding: 3rem 1rem;
}

.contact-success__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
}

.contact-success h2 {
    margin: 0 0 0.75rem;
    color: #1f2937;
    font-size: 1.5rem;
}

.contact-success p {
    margin: 0 0 1.5rem;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    /* 1. Bouton flottant optimisé */
    .contact-floating-btn {
        bottom: calc(1rem + env(safe-area-inset-bottom));
        right: 1rem !important;
        left: auto !important;
        width: 56px;
        height: 56px;
        min-height: 56px; /* Zone tactile */
    }

    .contact-floating-btn svg {
        width: 24px;
        height: 24px;
    }

    /* 4. Animation slide-up pour la modal */
    .contact-modal {
        padding: 0;
        align-items: flex-end;
    }

    .contact-modal__content {
        max-width: 100%;
        max-height: 85vh;
        border-radius: 16px 16px 0 0;
        animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    /* 6. Header compact */
    .contact-header {
        padding: 1rem 1.25rem 0.75rem;
    }

    .contact-header h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    /* 3. Progress dots simplifiés */
    .contact-progress {
        gap: 0.375rem;
        margin-bottom: 0.75rem;
    }

    .progress-dot {
        width: 8px;
        height: 8px;
    }

    .progress-dot.active {
        width: 20px;
        border-radius: 4px;
    }

    .contact-step-title {
        font-size: 0.875rem;
        margin-bottom: 0.875rem;
    }

    .contact-step-content {
        padding: 1.25rem;
        padding-bottom: 0; /* Espace pour navigation sticky */
    }

    /* 1. Navigation sticky en bas avec safe area */
    .contact-navigation {
        position: sticky;
        bottom: 0;
        padding: 1rem 1.25rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
        z-index: 10;
    }

    /* 2. Zones tactiles 48px minimum */
    .contact-btn,
    .contact-btn-secondary {
        min-height: 48px;
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
        border-radius: 10px;
    }

    .contact-field {
        margin-bottom: 1rem;
    }

    /* 7. Focus states améliorés */
    .contact-field input:focus,
    .contact-field textarea:focus,
    .contact-field select:focus {
        outline: 3px solid rgba(220, 38, 38, 0.3);
        outline-offset: 2px;
        border-color: #dc2626;
        box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
    }

    .contact-field input,
    .contact-field textarea,
    .contact-field select {
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 48px;
        padding: 0.75rem 1rem;
    }

    .contact-field textarea {
        min-height: 100px;
    }

    /* 8. Checkbox/Radio en mode card - ultra compact sur une ligne */
    .radio-label,
    .checkbox-label {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
        padding: 0.5rem 0.625rem !important;
        border: 1.5px solid #e5e7eb !important;
        border-radius: 6px !important;
        background: #fff !important;
        transition: all 0.2s ease;
        cursor: pointer;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
    }

    .radio-label:active,
    .checkbox-label:active {
        background: #f9fafb !important;
        transform: scale(0.98);
    }

    .radio-label:has(input:checked),
    .checkbox-label:has(input:checked) {
        border-color: #dc2626 !important;
        background: rgba(220, 38, 38, 0.04) !important;
        border-width: 2px !important;
    }

    .radio-label input,
    .checkbox-label input {
        width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }

    .radio-label span,
    .checkbox-label span {
        line-height: 1.2 !important;
        font-size: 0.9375rem !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 1 !important;
    }

    .radio-group,
    .checkbox-group {
        gap: 0.5rem !important;
    }

    /* Safe area pour le contenu scrollable */
    .contact-modal__content {
        padding-bottom: env(safe-area-inset-bottom);
    }
}



/* ========================================
   MOBILE MENU HAMBURGER - VERSION CORRIGÉE
   ======================================== */

/* Bouton hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.header__hamburger span {
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.header__hamburger.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.header__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Mobile menu drawer - LARGE */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 150;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 90%;
  max-width: none;
  height: 100%;
  background: #fff;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu {
  transform: translateX(0);
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.mobile-menu__logo {
  height: 28px;
  width: auto;
}

.mobile-menu__close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 8px;
}

.mobile-menu__close:active {
  background: #f3f4f6;
  transform: scale(0.95);
}

.mobile-menu__close svg {
  width: 20px;
  height: 20px;
  color: #6b7280;
}

.mobile-menu__content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 0;
  -webkit-overflow-scrolling: touch;
}

/* Menu items - TEXTE PLUS GROS, ALIGNÉ À GAUCHE */
.mobile-menu__content .header__menu {
  display: flex !important;
  flex-direction: column;
  gap: 0;
}

.mobile-menu__content .header__dropdown,
.mobile-menu__content .header__link {
  display: block;
  width: 100%;
}

.mobile-menu__content .header__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  color: #1f2937;
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
  text-align: left;
  transition: all 0.2s;
}

.mobile-menu__content .header__link:active {
  background: #f9fafb;
}

/* CTA eurocave.com in mobile menu */
.mobile-menu__content .header__link--cta {
  border: none;
  border-top: 1px solid #f3f4f6;
  border-radius: 0;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-accent);
  opacity: 1;
}

.mobile-menu__content .header__link--cta .header__external-icon {
  width: 16px;
  height: 16px;
}

/* Chevron pour les dropdowns */
.mobile-menu__content .header__dropdown .header__link svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.6;
}

.mobile-menu__content .header__dropdown.expanded .header__link svg {
  transform: rotate(180deg);
}

/* Submenu - SLIDE DOWN FLUIDE */
.mobile-menu__content .header__submenu {
  background: #f9fafb;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu__content .header__dropdown.expanded .header__submenu {
  max-height: 500px;
}

.mobile-menu__content .header__submenu-link {
  display: block;
  padding: 0.875rem 2rem 0.875rem 3rem;
  font-size: 1rem;
  color: #4b5563;
  text-decoration: none;
  text-align: left;
  transition: all 0.2s;
  position: relative;
}

.mobile-menu__content .header__submenu-link:first-child {
  padding-top: 1.125rem;
}

.mobile-menu__content .header__submenu-link:last-child {
  padding-bottom: 1.125rem;
}

.mobile-menu__content .header__submenu-link::before {
  content: '';
  position: absolute;
  left: 2.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: #9ca3af;
  border-radius: 50%;
}

.mobile-menu__content .header__submenu-link:active {
  background: #f3f4f6;
  color: #1f2937;
}

/* Mobile only */
@media (max-width: 768px) {
  .header__hamburger {
    display: flex;
  }

  .mobile-menu-overlay {
    display: block;
  }
}

/* ========================================
   HEADER MOBILE - LOGO CENTRÉ
   ======================================== */

@media (max-width: 768px) {
  /* Header avec logo centré - GRID 3 COLONNES */
  .header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
  }

  .header__hamburger {
    grid-column: 1;
    justify-self: start;
  }

  .header__logo {
    grid-column: 2;
    text-align: center;
  }

  .header__nav {
    grid-column: 3;
    justify-self: end;
  }

  /* Hamburger hérite de la couleur du header */
  .header--dark .header__hamburger span {
    background: #fff;
  }

  /* Au scroll (fond blanc) : hamburger noir */
  .header--dark.header--scrolled .header__hamburger span {
    background: var(--color-gray-900);
  }

  /* Cacher le bouton "Filtrer" texte en mobile (le FAB rond prend le relais) */
  .section-header__filter-toggle {
    display: none !important;
  }

  /* Barre de recherche avec padding adapté mobile */
  .header__search-panel {
    padding: 0 1rem;
  }
}

/* ========================================
   404 PAGE
   ======================================== */

.notfound-page .hero--slider .hero__overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.28) 45%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.notfound-hero-wrap {
  height: 100svh;
}

.notfound-hero-wrap .hero {
  min-height: 100svh;
  height: 100svh;
}

.notfound-hero-wrap .hero__overlay {
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.48) 0%, rgba(8, 12, 20, 0.88) 100%);
}

.notfound-hero-wrap .hero.is-reduced .hero__media {
  inset: 0;
  border-radius: 0;
}

.notfound-hero-wrap .hero.is-reduced .hero__overlay {
  border-radius: 0;
}

.notfound-hero-wrap .hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 1.25rem) 1.2rem 1.2rem;
}

.notfound-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.notfound-hero__btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.68rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notfound-hero__btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.54);
}

.notfound-hero__btn--primary {
  background: #fff;
  color: #121212;
  border-color: #fff;
}

.notfound-hero__btn--primary:hover {
  background: rgba(255, 255, 255, 0.92);
}

.notfound-content .section-wrap {
  padding-top: 1.2rem;
}

.notfound-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  padding: 0 1.5rem 3rem;
}

@media (max-width: 1024px) {
  .notfound-grid {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .notfound-hero-wrap {
    height: 100svh;
  }

  .notfound-hero-wrap .hero {
    min-height: 100svh;
    height: 100svh;
  }

  .notfound-hero__actions {
    margin-top: 1rem;
    gap: 0.45rem;
  }

  .notfound-hero__btn {
    width: 100%;
    text-align: center;
  }

  .notfound-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0 1rem 2rem;
  }
}
