/* ============================================================
   CHEZ CAMILLE — Ramatuelle
   style.css — palette terre cuite Pampelonne + bleu Méditerranée profond
   Direction artistique : Le Petit Nice / Auberge du Soleil / Cala di Volpe
   Référence pattern validé 20/20 : la-mediterranee-cannes
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Palette — design.md non-négociable */
  --color-bg: #F2E9D8;
  --color-bg-elevated: #E8DCC4;
  --color-bg-darker: #1C1612;
  --color-accent: #C2622D;
  --color-accent-deep: #A8541E;
  --color-sea: #1F4D6B;
  --color-text: #2A1F18;
  --color-text-muted: #6B5B4A;
  --color-text-dim: #8A7A66;
  --color-text-light: #F2E9D8;
  --color-line: #D9C9AC;
  --color-glow: rgba(194, 98, 45, 0.28);
  --color-shadow-warm: rgba(42, 31, 24, 0.12);

  /* Typo */
  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-signature: 'Italianno', 'Apple Chancery', cursive;

  /* Layout */
  --container: 1240px;
  --space-section: clamp(5rem, 9vw, 8rem);
  --space-x: clamp(1.25rem, 5vw, 2.5rem);

  /* Geometry */
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;

  /* Ombres */
  --shadow-1: 0 2px 8px rgba(42, 31, 24, 0.06);
  --shadow-2: 0 12px 32px rgba(42, 31, 24, 0.12);
  --shadow-3: 0 24px 80px rgba(42, 31, 24, 0.20), 0 0 0 1px rgba(217, 201, 172, 0.4);
  --shadow-glow-accent: 0 8px 32px rgba(194, 98, 45, 0.32);
  --shadow-glow-strong: 0 12px 48px rgba(194, 98, 45, 0.45);

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --dur-fast: 200ms;
  --dur-mid: 400ms;
  --dur-slow: 800ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
}

img, video, iframe {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

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

ul, ol { list-style: none; }

/* ---------- DEMO BANNER ---------- */
.demo-banner {
  background: linear-gradient(90deg, var(--color-accent-deep), var(--color-accent));
  color: var(--color-text-light);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.55rem 1.25rem;
  position: relative;
  z-index: 101;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.demo-banner strong {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav { top: 38px; }
@media (max-width: 600px) {
  .demo-banner { font-size: 0.74rem; padding: 0.45rem 0.75rem; line-height: 1.4; }
  .nav { top: 44px; }
}

/* ---------- A11Y ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-bg-darker);
  color: var(--color-text-light);
  padding: 0.75rem 1.5rem;
  z-index: 10000;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-x);
}

.section {
  padding: var(--space-section) 0;
  position: relative;
}

.section-dark {
  background: var(--color-bg-darker);
  color: var(--color-text-light);
  overflow: hidden;
}

/* ---------- TYPO ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  color: var(--color-text);
  letter-spacing: -0.015em;
}

.section-dark h1, .section-dark h2, .section-dark h3, .title-light {
  color: var(--color-text-light);
}

h1 {
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-variation-settings: "opsz" 144, "wght" 320, "SOFT" 90;
  line-height: 1.02;
  letter-spacing: -0.022em;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-variation-settings: "opsz" 120, "wght" 400, "SOFT" 70;
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-variation-settings: "opsz" 72, "wght" 500, "SOFT" 50;
}

em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 350, "SOFT" 100;
  color: var(--color-accent-deep);
}

.section-dark em { color: var(--color-accent); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  margin-bottom: 1.25rem;
}

.eyebrow-light { color: var(--color-accent); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.85rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-large {
  padding: 1.15rem 2.4rem;
  font-size: 1.02rem;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text-light);
  box-shadow: var(--shadow-glow-accent);
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--color-accent-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong);
  }
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-text);
}

.section-dark .btn-ghost {
  color: var(--color-text-light);
  border-color: var(--color-text-light);
}

@media (hover: hover) {
  .btn-ghost:hover {
    background: var(--color-text);
    color: var(--color-bg);
    transform: translateY(-2px);
  }
  .section-dark .btn-ghost:hover {
    background: var(--color-text-light);
    color: var(--color-bg-darker);
  }
}

/* ============================================================
   1. CUSTOM CURSOR
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-bg);
  transition: transform 0.06s linear, opacity var(--dur-fast) ease;
}
.cursor-ring {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-bg);
  transition: transform 0.18s var(--ease-out),
              width 0.25s var(--ease-out),
              height 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out),
              opacity var(--dur-fast) ease,
              background 0.25s ease;
}
.cursor-ring.hovering {
  width: 60px; height: 60px;
  background: rgba(194, 98, 45, 0.18);
  border-color: var(--color-accent);
}
@media (max-width: 900px), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, .btn, input, textarea, select, [role="button"] { cursor: none; }
}

/* ============================================================
   2. SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-deep));
  z-index: 9998;
  box-shadow: 0 0 14px var(--color-glow);
  pointer-events: none;
  will-change: width;
  transition: width 0.06s linear;
}

/* ============================================================
   3. NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(242, 233, 216, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(217, 201, 172, 0.5);
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
  padding-top: env(safe-area-inset-top, 0);
}

.nav.nav-scrolled {
  background: rgba(242, 233, 216, 0.88);
  border-color: rgba(217, 201, 172, 0.9);
  box-shadow: 0 4px 16px rgba(42, 31, 24, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.1rem var(--space-x);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  font-variation-settings: "opsz" 72, "wght" 400, "SOFT" 60;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.logo-accent em {
  font-family: var(--font-signature);
  font-style: normal;
  font-size: 1.6em;
  color: var(--color-accent-deep);
  margin-left: 0.1em;
  font-weight: 400;
  line-height: 0;
  vertical-align: -0.18em;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 1.85rem;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--color-accent);
  transition: width var(--dur-fast) var(--ease-out);
}
@media (hover: hover) {
  .nav-links a:hover { color: var(--color-accent-deep); }
  .nav-links a:hover::after { width: 100%; }
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(217, 201, 172, 0.4);
  border-radius: 999px;
  padding: 3px;
}
.lang-toggle button {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: var(--color-text-muted);
  transition: all var(--dur-fast) ease;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--color-text);
  color: var(--color-bg);
}

.nav-cta {
  background: var(--color-accent);
  color: var(--color-text-light);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 4px 14px var(--color-glow);
  transition: all var(--dur-fast) var(--ease-out);
}
@media (hover: hover) {
  .nav-cta:hover {
    background: var(--color-accent-deep);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow-strong);
  }
}

.hamburger {
  display: none;
  width: 34px; height: 34px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--color-text);
  margin: 0 auto;
  border-radius: 1px;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 680px) {
  .nav-cta { display: none; }
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 99;
  padding: calc(80px + env(safe-area-inset-top, 0)) var(--space-x) var(--space-x);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
}
.mobile-menu[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-text);
  font-variation-settings: "opsz" 72, "wght" 400, "SOFT" 60;
}
.mobile-menu .btn { margin-top: 1rem; }
.mobile-lang {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.mobile-lang button {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--color-bg-elevated);
  color: var(--color-text-muted);
  font-weight: 600;
}
.mobile-lang button[aria-pressed="true"] {
  background: var(--color-text);
  color: var(--color-bg);
}

/* ============================================================
   4. HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: calc(80px + env(safe-area-inset-top, 0)) var(--space-x) clamp(6rem, 12vh, 9rem);
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.85) saturate(1.1);
}

.hero-poster-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  filter: brightness(0.85) saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(28, 22, 18, 0.20) 0%, rgba(28, 22, 18, 0.45) 50%, rgba(28, 22, 18, 0.88) 100%),
    radial-gradient(ellipse at 18% 78%, rgba(194, 98, 45, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 22%, rgba(31, 77, 107, 0.14) 0%, transparent 60%);
}

.hero-mesh {
  position: absolute;
  inset: -25%;
  z-index: -1;
  background: conic-gradient(from 220deg at 70% 30%,
    rgba(194, 98, 45, 0.30) 0%,
    rgba(168, 84, 30, 0.20) 25%,
    rgba(31, 77, 107, 0.22) 55%,
    rgba(28, 22, 18, 0.55) 80%,
    rgba(194, 98, 45, 0.30) 100%);
  filter: blur(40px);
  opacity: 0.7;
  animation: meshRotate 50s linear infinite;
  pointer-events: none;
}

@keyframes meshRotate {
  to { transform: rotate(360deg); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding-bottom: clamp(3rem, 8vh, 5rem);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 233, 216, 0.85);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-title {
  color: var(--color-text-light);
  font-variation-settings: "opsz" 144, "wght" 320, "SOFT" 90;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
  max-width: 16ch;
}
.hero-title em {
  font-variation-settings: "opsz" 144, "wght" 320, "SOFT" 100;
  color: var(--color-accent);
}

.hero-signature {
  font-family: var(--font-signature);
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--color-accent);
  line-height: 0.9;
  margin: -0.5rem 0 1.5rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  transform: translateX(2rem);
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(242, 233, 216, 0.92);
  max-width: 52ch;
  margin-bottom: 2rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-sticky-bar {
  position: absolute;
  left: var(--space-x);
  right: var(--space-x);
  bottom: clamp(2rem, 6vh, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.88rem;
  color: rgba(242, 233, 216, 0.88);
  background: rgba(28, 22, 18, 0.35);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(242, 233, 216, 0.12);
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  max-width: max-content;
  margin: 0 auto;
  z-index: 3;
}
.hero-sticky-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.hero-sticky-sep {
  opacity: 0.4;
}
@media (hover: hover) {
  a.hero-sticky-item:hover { color: var(--color-accent); }
}

.hero-scroll {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0) + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(242, 233, 216, 0.6);
  z-index: 3;
  animation: scrollBounce 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

@media (max-width: 760px) {
  .hero-sticky-bar {
    flex-direction: column;
    gap: 0.4rem;
    border-radius: 18px;
    bottom: 6rem;
    padding: 0.85rem 1.2rem;
    font-size: 0.82rem;
  }
  .hero-sticky-sep { display: none; }
  .hero-signature { transform: translateX(0.5rem); }
}

/* ============================================================
   5. MARQUEE
   ============================================================ */
.marquee-band {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  padding: 1.3rem 0;
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marqueeScroll 60s linear infinite;
  will-change: transform;
  width: max-content;
}
.marquee-band:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-item {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.marquee-item strong {
  color: var(--color-accent-deep);
  font-weight: 700;
}
.marquee-item em {
  color: var(--color-sea);
  font-variation-settings: "opsz" 72, "wght" 500, "SOFT" 60;
}
.marquee-sep {
  color: var(--color-accent);
  opacity: 0.6;
  font-weight: 700;
}
@keyframes marqueeScroll {
  to { transform: translateX(-50%); }
}

/* ============================================================
   6. HISTOIRE
   ============================================================ */
.histoire {
  background: var(--color-bg);
}

.histoire-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.histoire-figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3);
  aspect-ratio: 3 / 4;
  background: var(--color-bg-elevated);
}
.histoire-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform var(--dur-slow) var(--ease-out);
}
.histoire-figure:hover img { transform: scale(1.06); }

.histoire-stamp {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(242, 233, 216, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(217, 201, 172, 0.6);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  box-shadow: var(--shadow-2);
}
.stamp-italianno {
  font-family: var(--font-signature);
  font-size: 1.7rem;
  color: var(--color-accent-deep);
  line-height: 0.9;
}
.stamp-year {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96, "wght" 500, "SOFT" 80;
  font-size: 2.2rem;
  color: var(--color-text);
  margin: 0.25rem 0;
}
.stamp-place {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--color-text-muted);
}

.histoire-text > h2 {
  margin-bottom: 2rem;
}

.histoire-paragraph {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text);
  max-width: 52ch;
}

.histoire-paragraph strong {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72, "wght" 600, "SOFT" 50;
  font-size: 1.15em;
  color: var(--color-accent-deep);
  font-weight: 400;
}

.counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-line);
}

.counter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.counter-value {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 80;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--color-accent-deep);
  letter-spacing: -0.02em;
}
.counter-label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  line-height: 1.35;
}

@media (max-width: 880px) {
  .histoire-grid {
    grid-template-columns: 1fr;
  }
  .histoire-figure {
    aspect-ratio: 4 / 3;
    max-width: 520px;
    margin: 0 auto;
  }
  .counters {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 520px) {
  .counters {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

/* ============================================================
   7. LE RITUEL — section sombre
   ============================================================ */
.rituel {
  background: var(--color-bg-darker);
  color: var(--color-text-light);
}
.rituel-mesh {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background: conic-gradient(from 100deg at 25% 75%,
    rgba(194, 98, 45, 0.20) 0%,
    rgba(168, 84, 30, 0.10) 30%,
    rgba(31, 77, 107, 0.12) 60%,
    rgba(28, 22, 18, 1) 90%);
  filter: blur(60px);
  opacity: 0.7;
  animation: meshRotate 90s linear infinite reverse;
  pointer-events: none;
}
.rituel .container { position: relative; z-index: 2; }

.rituel-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}
.rituel-intro {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(242, 233, 216, 0.78);
  margin-top: 1rem;
}

.rituel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.showreel-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0e0a08;
  aspect-ratio: 4 / 5;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(194, 98, 45, 0.30),
    inset 0 0 0 1px rgba(242, 233, 216, 0.08);
}
.showreel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.05) saturate(1.15);
}
.showreel-tag {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(28, 22, 18, 0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(242, 233, 216, 0.18);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
}
.showreel-tag-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent);
  animation: dotPulse 1.6s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.rituel-steps {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.rituel-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(217, 201, 172, 0.15);
}
.rituel-step:last-child { border-bottom: none; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(194, 98, 45, 0.5);
  background: rgba(194, 98, 45, 0.08);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 48, "wght" 500, "SOFT" 50;
  font-size: 1.3rem;
  color: var(--color-accent);
}
.step-content h3 {
  color: var(--color-text-light);
  font-variation-settings: "opsz" 72, "wght" 400, "SOFT" 70;
  margin-bottom: 0.4rem;
}
.step-content h3 em {
  font-variation-settings: "opsz" 72, "wght" 400, "SOFT" 100;
  color: var(--color-accent);
}
.step-content p {
  color: rgba(242, 233, 216, 0.78);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 38ch;
}

.rituel-cta {
  text-align: center;
  margin-top: 4rem;
}
.rituel-cta-fine {
  font-size: 0.85rem;
  color: rgba(242, 233, 216, 0.6);
  margin-top: 1rem;
  font-style: italic;
}

@media (max-width: 880px) {
  .rituel-grid {
    grid-template-columns: 1fr;
  }
  .showreel-frame {
    aspect-ratio: 16 / 10;
    max-width: 560px;
    margin: 0 auto;
  }
}

/* ============================================================
   8. TERRASSE / GALLERY
   ============================================================ */
.terrasse { background: var(--color-bg-elevated); }

.terrasse-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}
.terrasse-text {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-top: 1.5rem;
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-line);
  box-shadow: var(--shadow-2);
  cursor: pointer;
}
.gallery-tall {
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-mid) ease;
  filter: brightness(1) saturate(1.05);
}
@media (hover: hover) {
  .gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.85) saturate(1.15);
  }
  .gallery-item:hover figcaption {
    opacity: 1;
    transform: translateY(0);
  }
}
.gallery-item figcaption {
  position: absolute;
  bottom: 0; left: 0;
  right: 0;
  padding: 1.5rem 1.25rem 1.25rem;
  background: linear-gradient(0deg, rgba(28, 22, 18, 0.85) 0%, transparent 100%);
  color: var(--color-text-light);
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 72, "wght" 400, "SOFT" 80;
  font-size: 1.05rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
  letter-spacing: -0.005em;
}

@media (max-width: 980px) {
  .gallery-masonry {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
  }
  .gallery-item figcaption {
    opacity: 1;
    transform: translateY(0);
    font-size: 0.95rem;
  }
}
@media (max-width: 680px) {
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
    gap: 0.6rem;
  }
}

/* ============================================================
   9. ÉQUIPE
   ============================================================ */
.equipe { background: var(--color-bg); }

.equipe-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}
.equipe-intro {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

.equipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 5rem;
}
.team-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-line);
  padding: 2.2rem 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
}
@media (hover: hover) {
  .team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-3);
  }
}
.team-portrait {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-deep));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72, "wght" 500, "SOFT" 60;
  font-size: 2.3rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 24px rgba(194, 98, 45, 0.30);
  letter-spacing: -0.02em;
}
.team-portrait-2 {
  background: linear-gradient(135deg, #1F4D6B, #143548);
  box-shadow: 0 8px 24px rgba(31, 77, 107, 0.30);
}
.team-portrait-3 {
  background: linear-gradient(135deg, #6B5B4A, #2A1F18);
  box-shadow: 0 8px 24px rgba(42, 31, 24, 0.30);
}
.team-card h3 {
  margin-bottom: 0.25rem;
}
.team-role {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  margin-bottom: 1rem;
}
.team-bio {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

@media (max-width: 780px) {
  .equipe-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* PRESSE */
.presse-band {
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 5rem;
  text-align: center;
}
.presse-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}
.presse-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.presse-logo {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72, "wght" 400, "SOFT" 60;
  font-size: 1.15rem;
  color: var(--color-text);
  opacity: 0.78;
  transition: opacity var(--dur-fast) ease, color var(--dur-fast) ease;
}
@media (hover: hover) {
  .presse-logo:hover { opacity: 1; color: var(--color-accent-deep); }
}
.presse-sep {
  color: var(--color-accent);
  opacity: 0.5;
}

/* AVIS */
.avis-head {
  text-align: center;
  margin-bottom: 3rem;
}
.avis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.avis-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--color-line);
  padding: 2rem 1.8rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
}
@media (hover: hover) {
  .avis-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
  }
}
.avis-stars {
  color: var(--color-accent);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
}
.avis-card blockquote {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72, "wght" 400, "SOFT" 70;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--color-text);
  font-style: italic;
  flex: 1;
}
.avis-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.avis-name {
  font-weight: 600;
  font-size: 0.92rem;
}
.avis-meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.avis-cta { text-align: center; }

@media (max-width: 880px) {
  .avis-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   10. FINAL CTA
   ============================================================ */
.final-cta {
  background: var(--color-bg-darker);
  color: var(--color-text-light);
  text-align: center;
}
.final-mesh {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background: conic-gradient(from 150deg at 50% 50%,
    rgba(194, 98, 45, 0.35) 0%,
    rgba(168, 84, 30, 0.20) 30%,
    rgba(31, 77, 107, 0.15) 60%,
    rgba(28, 22, 18, 0.9) 85%);
  filter: blur(80px);
  opacity: 0.75;
  animation: meshRotate 70s linear infinite;
  pointer-events: none;
}
.final-cta .container { position: relative; z-index: 2; }

.final-cta-head {
  max-width: 700px;
  margin: 0 auto 3rem;
}
.final-cta-text {
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(242, 233, 216, 0.78);
  margin-top: 1.25rem;
}

.final-ctas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

.btn-glass {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.5rem 1.25rem;
  background: rgba(242, 233, 216, 0.06);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(242, 233, 216, 0.18);
  border-radius: var(--radius-md);
  color: var(--color-text-light);
  text-decoration: none;
  transition: all var(--dur-mid) var(--ease-out);
}
.btn-glass-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 233, 216, 0.6);
}
.btn-glass-value {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72, "wght" 400, "SOFT" 80;
  font-size: 1.25rem;
  color: var(--color-text-light);
}
@media (hover: hover) {
  .btn-glass:hover {
    background: rgba(242, 233, 216, 0.10);
    border-color: rgba(194, 98, 45, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  }
  .btn-glass:hover .btn-glass-value { color: var(--color-accent); }
}

.btn-glass-primary {
  background: rgba(194, 98, 45, 0.15);
  border-color: rgba(194, 98, 45, 0.5);
}
.btn-glass-primary .btn-glass-value { color: var(--color-accent); }

.final-cta-season {
  font-size: 0.88rem;
  color: rgba(242, 233, 216, 0.55);
  font-style: italic;
}

@media (max-width: 780px) {
  .final-ctas {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   11. FOOTER
   ============================================================ */
.footer {
  background: var(--color-bg-darker);
  color: var(--color-text-light);
  padding: clamp(4rem, 8vw, 6rem) 0 2rem;
  position: relative;
}
.footer::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 3rem;
}

.footer-title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72, "wght" 500, "SOFT" 70;
  font-size: 1.4rem;
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
}

.footer-address {
  font-style: normal;
  line-height: 1.75;
  color: rgba(242, 233, 216, 0.78);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.footer-address em {
  font-size: 0.88rem;
  color: rgba(242, 233, 216, 0.6);
  font-variation-settings: "opsz" 48, "wght" 400, "SOFT" 80;
}

.footer-map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: var(--radius-md);
}

.footer-hours {
  display: grid;
  gap: 1rem;
}
.footer-hours dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.3rem;
}
.footer-hours dd {
  font-size: 1rem;
  color: rgba(242, 233, 216, 0.85);
  margin-left: 0;
  line-height: 1.5;
}
.footer-season {
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: rgba(242, 233, 216, 0.7);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(242, 233, 216, 0.12);
}
.footer-season-fine {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(242, 233, 216, 0.5);
}

.footer-contact {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}
.footer-contact li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.footer-contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 233, 216, 0.5);
}
.footer-contact a {
  font-size: 1rem;
  color: var(--color-text-light);
  font-weight: 500;
  transition: color var(--dur-fast) ease;
}
@media (hover: hover) {
  .footer-contact a:hover { color: var(--color-accent); }
}
.footer-tagline {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72, "wght" 400, "SOFT" 90;
  font-size: 1.1rem;
  color: rgba(242, 233, 216, 0.85);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(242, 233, 216, 0.12);
}
.footer-tagline em {
  color: var(--color-accent);
}

.footer-legal {
  padding-top: 2rem;
  border-top: 1px solid rgba(242, 233, 216, 0.10);
  text-align: center;
}
.footer-legal p {
  font-size: 0.78rem;
  color: rgba(242, 233, 216, 0.5);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.footer-legal a {
  color: rgba(242, 233, 216, 0.7);
  text-decoration: underline;
  text-decoration-color: rgba(194, 98, 45, 0.5);
  text-underline-offset: 3px;
}
@media (hover: hover) {
  .footer-legal a:hover { color: var(--color-accent); }
}

@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ============================================================
   12. ANIMATIONS - FADE-UP INTERSECTION
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: calc(var(--delay, 0) * 1ms);
}
.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .hero-mesh, .rituel-mesh, .final-mesh { animation: none; }
  .hero-scroll { animation: none; }
  .showreel-tag-dot { animation: none; }
}

/* ============================================================
   13. UTILS
   ============================================================ */
.parallax-layer { will-change: transform; }

/* iOS safe area & viewport stability */
@supports (height: 100dvh) {
  .hero { min-height: 100dvh; }
}
