/*
 * LES CHANTS DE MAMOUNE — V2 Artistique
 * =======================================
 * Concept : "Van Gogh peint les oliviers" — textures de peinture,
 * coups de pinceau, étiquette Laurine, cadres de musée.
 *
 * Pourquoi ce site est impossible à confondre avec un autre ?
 * → Texture de peinture à l'huile en arrière-plan (SVG procédural)
 * → Cadres "étiquette musée" sur chaque section
 * → Galerie masonry + sélecteur de langue
 * → Onde dorée vivante dans le hero
 * → Goutte d'huile scroll tracker + easter egg cyprès
 * → Contenu 100% piloté par Google Sheet
 *
 * Palette :
 * --noir-olive:   #1B1408
 * --vert-olive:   #556B2F
 * --or-chaud:     #D4A843
 * --pierre-clair: #F7F2E9
 */

/* ========== VARIABLES & RESET ========== */
:root {
  --noir-olive: #1B1408;
  --vert-olive: #556B2F;
  --vert-olive-light: #6B8339;
  --or-chaud: #D4A843;
  --or-clair: #E8D5A0;
  --or-pale: #F0E0B8;
  --pierre: #F7F2E9;
  --pierre-fonce: #EDE6D8;
  --blanc: #FDFBF7;
  --rouge-medal: #8B2E2E;
  --bleu-lavande: #7B8FA1;

  --ff-title: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --ff-accent: 'Georgia', 'Times New Roman', serif;
  --ff-body: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-card: 0 4px 24px rgba(27, 20, 8, 0.08);
  --shadow-hover: 0 12px 40px rgba(27, 20, 8, 0.14);
  --border-museum: 1px solid rgba(212, 168, 67, 0.2);
}

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

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

body {
  font-family: var(--ff-body);
  color: var(--noir-olive);
  background-color: var(--pierre);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Texture grain fond de page (style peinture) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
}

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

a {
  color: var(--or-chaud);
  text-decoration: none;
  transition: color var(--transition-smooth);
}
a:hover { color: var(--vert-olive); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--or-chaud);
  outline-offset: 3px;
}

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

/* ========== GOOGLE FONTS (loaded in HTML) ========== */
/* Playfair Display — titre artistique expressif */
/* Inter — texte sobre et lisible */

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-family: var(--ff-title);
  font-weight: 400;
  line-height: 1.2;
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  margin-bottom: 0.3em;
  position: relative;
}

.section-subtitle {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  color: var(--vert-olive);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--ff-body);
  font-weight: 400;
  margin-bottom: 1em;
}

/* Filet doré "coup de pinceau" sous titres */
.section-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--or-chaud), transparent);
  margin-top: 0.5em;
  border-radius: 2px;
  transition: width var(--transition-smooth);
}
.section-title.revealed::after { width: 140px; }

/* ========== CADRE MUSÉE (appliqué aux cartes) ========== */
.museum-frame {
  border: var(--border-museum);
  border-radius: 4px;
  position: relative;
  background: var(--blanc);
}
.museum-frame::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(212, 168, 67, 0.08);
  border-radius: 2px;
  pointer-events: none;
}

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}

.nav.scrolled {
  background: rgba(27, 20, 8, 0.96);
  box-shadow: 0 2px 20px rgba(27, 20, 8, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo-img {
  height: 44px;
  width: auto;
  border-radius: 4px;
  filter: brightness(1.8) saturate(0.3) sepia(1) hue-rotate(10deg) brightness(1.4);
  transition: filter 0.3s ease;
}

.nav-logo-img:hover {
  filter: brightness(2) saturate(0.3) sepia(1) hue-rotate(10deg) brightness(1.6);
}

/* Fallback logo quand image pas encore dispo */
.nav-logo-fallback {
  font-family: var(--ff-title);
  font-size: 1rem;
  color: var(--or-chaud);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 1.3rem;
  align-items: center;
  margin-left: auto;
}

.nav-links a {
  color: var(--or-clair);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--or-chaud);
  transition: width var(--transition-smooth);
}
.nav-links a:hover::after { width: 100%; }

/* Nav right zone: social + lang selector + burger */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-social {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-social a {
  color: var(--or-clair);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transition: all var(--transition-smooth);
}
.nav-social a:hover {
  color: var(--or-chaud);
  background: rgba(212, 168, 67, 0.15);
}

/* Language selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  color: var(--or-clair);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 4px;
  transition: all var(--transition-smooth);
  cursor: pointer;
  background: transparent;
}

.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  border-color: var(--or-chaud);
  background: rgba(212, 168, 67, 0.1);
}

.lang-btn svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.lang-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: rgba(27, 20, 8, 0.97);
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: 6px;
  padding: 0.4rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 1001;
  backdrop-filter: blur(12px);
}

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

.lang-option {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  color: var(--or-clair);
  font-size: 0.8rem;
  text-align: left;
  transition: all 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
}
.lang-option:hover { background: rgba(212, 168, 67, 0.1); color: var(--or-chaud); }
.lang-option.active { color: var(--or-chaud); font-weight: 600; }

/* Burger */
.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 1001;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--or-clair);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.nav-burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.nav-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 340px;
  height: 100vh;
  height: 100dvh;
  background: rgba(27, 20, 8, 0.98);
  backdrop-filter: blur(20px);
  padding: 5rem 2rem 2rem;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}
.nav-mobile-menu.open { right: 0; }

.nav-mobile-menu a {
  color: var(--or-clair);
  font-size: 1.05rem;
  font-family: var(--ff-title);
  letter-spacing: 0.04em;
  display: block;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(212, 168, 67, 0.08);
  transition: all var(--transition-smooth);
}
.nav-mobile-menu a:hover {
  color: var(--or-chaud);
  padding-left: 0.5rem;
}

.nav-mobile-socials {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  justify-content: center;
  border-bottom: none;
}

.nav-mobile-menu .nav-mobile-socials a {
  color: var(--or-clair);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 67, 0.2) !important;
  border-bottom: 1px solid rgba(212, 168, 67, 0.2) !important;
  padding: 0 !important;
  transition: all var(--transition-smooth);
}

.nav-mobile-menu .nav-mobile-socials a:hover {
  color: var(--or-chaud);
  border-color: var(--or-chaud) !important;
  background: rgba(212, 168, 67, 0.15);
  padding-left: 0 !important;
}

@media (max-width: 959px) {
  .nav-social { display: none !important; }
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-overlay.visible { opacity: 1; pointer-events: all; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
  background: var(--noir-olive);
}

.hero-bg {
  position: absolute;
  top: -30%;
  left: 0;
  right: 0;
  height: 160%;
  background-color: #1B1408;
  background-image: url('../assets/images/Photo%20de%20mamoune/chant%20des%20mamoune.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  z-index: 0;
  will-change: transform;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(85, 107, 47, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(212, 168, 67, 0.15) 0%, transparent 50%),
    linear-gradient(170deg, rgba(27,20,8,0.55) 0%, rgba(44,36,22,0.35) 40%, rgba(27,20,8,0.65) 100%);
  z-index: 1;
}

/* Particules dorées flottantes */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.hero-particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.9), rgba(212, 168, 67, 0.1));
  box-shadow: 0 0 6px 2px rgba(212, 168, 67, 0.3);
  animation: heroParticleFloat var(--dur) var(--delay) ease-in-out infinite;
  animation-play-state: running;
}
@keyframes heroParticleFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate3d(15px, -30px, 0) scale(1.4);
    opacity: 0.8;
  }
  50% {
    transform: translate3d(-10px, -60px, 0) scale(0.8);
    opacity: 0.5;
  }
  75% {
    transform: translate3d(20px, -35px, 0) scale(1.2);
    opacity: 0.9;
  }
}

/* Vignette cinématique */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(27, 20, 8, 0.6) 100%);
}

/* Rayon de lumière Van Gogh */
.hero-light-ray {
  position: absolute;
  top: -20%;
  right: 5%;
  width: 300px;
  height: 140%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    195deg,
    rgba(212, 168, 67, 0.12) 0%,
    rgba(212, 168, 67, 0.04) 30%,
    transparent 60%
  );
  transform: rotate(-15deg);
  opacity: 0.5;
}
@keyframes heroLightPulse {
  0%, 100% { opacity: 0.6; transform: rotate(-15deg) scaleX(1); }
  50% { opacity: 1; transform: rotate(-12deg) scaleX(1.15); }
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 60%;
  z-index: 1;
  pointer-events: none;
}
.hero-wave svg { width: 100%; height: 100%; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.hero-labels {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1s 0.2s ease forwards;
}

.hero-label-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: 20px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--or-clair);
  background: rgba(212, 168, 67, 0.06);
}
.hero-label-badge img {
  height: 18px;
  width: auto;
}

.hero-overline {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--or-chaud);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1s 0.3s ease forwards;
}

.hero h1 {
  font-size: clamp(1.6rem, 5.5vw, 5rem);
  color: var(--pierre);
  line-height: 1.1;
  margin-bottom: 0.5em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1s 0.6s ease forwards;
}
.hero h1 em {
  font-style: italic;
  color: var(--or-chaud);
  /* Effet "pinceau doré" */
  text-decoration: underline;
  text-decoration-color: rgba(212, 168, 67, 0.3);
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
  text-decoration-style: wavy;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--or-clair);
  font-family: var(--ff-accent);
  font-style: italic;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1s 0.9s ease forwards;
}

.hero-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1s 1.2s ease forwards;
}

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero keywords animés */
.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: heroFadeIn 1s 0.15s ease forwards;
}

.hero-keyword {
  padding: 0.25rem 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--or-clair);
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: 2px;
  opacity: 0.7;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: heroFadeIn 1s 1.8s ease forwards;
}
.hero-scroll-hint span {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--or-clair);
  opacity: 0.5;
}
.hero-scroll-hint .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--or-chaud), transparent);
  opacity: 0.5;
}

/* ========== BOUTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.85rem;
  font-family: var(--ff-body);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--or-chaud);
  color: var(--noir-olive);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(212, 168, 67, 0.3);
}
.btn-primary:hover {
  background: #C09A38;
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid var(--or-chaud);
  color: var(--or-chaud);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(212, 168, 67, 0.1);
  box-shadow: 0 4px 15px rgba(212, 168, 67, 0.2);
  transform: translateY(-2px);
}

/* ========== SECTIONS ========== */
.section {
  padding: 5rem 1.5rem;
  position: relative;
}
.section-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Separateur "coup de pinceau" entre sections */
.section-brush-sep {
  height: 4px;
  max-width: 200px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--or-chaud), transparent);
  border-radius: 2px;
  opacity: 0.3;
}

/* ========== REVEAL / WOW ANIMATIONS ========== */
/* Content visible by default. Hidden only after JS adds .js-ready to <html> */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.js-ready .reveal.visible { opacity: 1; transform: translateY(0); }

.js-ready .reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.js-ready .reveal-left.visible { opacity: 1; transform: translateX(0); }

.js-ready .reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.js-ready .reveal-right.visible { opacity: 1; transform: translateX(0); }

/* WOW fade-in zoom */
.js-ready .reveal-zoom {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.js-ready .reveal-zoom.visible { opacity: 1; transform: scale(1); }

/* WOW flip in */
.js-ready .reveal-flip {
  opacity: 0;
  transform: perspective(800px) rotateY(25deg);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.js-ready .reveal-flip.visible { opacity: 1; transform: perspective(800px) rotateY(0); }

/* WOW bounce up */
@keyframes wowBounceUp {
  0% { opacity: 0; transform: translateY(60px); }
  60% { opacity: 1; transform: translateY(-10px); }
  80% { transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}
.js-ready .reveal-bounce {
  opacity: 0;
  transform: translateY(60px);
}
.js-ready .reveal-bounce.visible {
  animation: wowBounceUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* WOW rotate in */
.js-ready .reveal-rotate {
  opacity: 0;
  transform: rotate(-8deg) translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.js-ready .reveal-rotate.visible { opacity: 1; transform: rotate(0) translateY(0); }

.delay-1 { transition-delay: 0.15s !important; }
.delay-2 { transition-delay: 0.3s !important; }
.delay-3 { transition-delay: 0.45s !important; }
.delay-4 { transition-delay: 0.6s !important; }
.delay-5 { transition-delay: 0.75s !important; }

/* Staggered children auto-delay */
.js-ready .stagger-children > *:nth-child(1) { transition-delay: 0.1s; }
.js-ready .stagger-children > *:nth-child(2) { transition-delay: 0.2s; }
.js-ready .stagger-children > *:nth-child(3) { transition-delay: 0.3s; }
.js-ready .stagger-children > *:nth-child(4) { transition-delay: 0.4s; }
.js-ready .stagger-children > *:nth-child(5) { transition-delay: 0.5s; }
.js-ready .stagger-children > *:nth-child(6) { transition-delay: 0.6s; }

/* ========== SECTION HISTOIRE (asymétrique) ========== */
.histoire { background: var(--blanc); overflow: hidden; }

.histoire-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.histoire-visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(85, 107, 47, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 70%, rgba(212, 168, 67, 0.08) 0%, transparent 50%),
    url('../assets/20240426_165636.webp') center/cover no-repeat,
    linear-gradient(150deg, #3D5220 0%, #2C2416 60%, #1B1408 100%);
  /* Cadre "tableau musée" */
  box-shadow: inset 0 0 0 1px rgba(212, 168, 67, 0.1), var(--shadow-card);
}

.histoire-text { padding: 1rem 0; }

.histoire-text .lead {
  font-size: 1.15rem;
  font-family: var(--ff-accent);
  font-style: italic;
  color: var(--vert-olive);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.histoire-text p {
  margin-bottom: 1rem;
  color: rgba(27, 20, 8, 0.8);
}

.histoire-accent {
  display: inline-block;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  background: rgba(212, 168, 67, 0.06);
  border-left: 3px solid var(--or-chaud);
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--noir-olive);
}

/* ========== SECTION DOMAINE (key points) ========== */
.domaine { background: var(--pierre); }

.domaine-content { margin-top: 2rem; }
.domaine-content p { margin-bottom: 1rem; color: rgba(27, 20, 8, 0.8); }
.domaine-content strong { color: var(--noir-olive); }

.domaine-keypoints {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--blanc);
  border: var(--border-museum);
  border-radius: 8px;
}

.domaine-kp {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0;
}

.domaine-kp-icon {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--or-chaud);
}

.domaine-kp span {
  font-size: 0.95rem;
  color: var(--noir-olive);
}

/* ========== SECTION TERROIR / CARTES ========== */
.terroir { background: var(--blanc); position: relative; }

.terroir-branch {
  position: absolute;
  top: -30px;
  right: -50px;
  width: 300px;
  opacity: 0.4;
  transform: rotate(15deg);
  pointer-events: none;
}

.terroir-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.terroir-card {
  padding: 2rem;
  background: var(--pierre);
  border-radius: 8px;
  border: var(--border-museum);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.terroir-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--or-chaud);
  transition: height 0.6s ease;
}
.terroir-card:hover::before,
.terroir-card.visible::before { height: 100%; }

.terroir-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.terroir-card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(212, 168, 67, 0.08);
  color: var(--or-chaud);
}

.terroir-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.terroir-card p { font-size: 0.92rem; color: rgba(27, 20, 8, 0.7); line-height: 1.6; }

/* ========== SECTION ATELIER DÉGUSTATION ========== */
.atelier {
  background: var(--noir-olive);
  color: var(--pierre);
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.atelier::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(85, 107, 47, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(212, 168, 67, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.atelier .section-title { color: var(--pierre); }
.atelier .section-title::after { background: linear-gradient(90deg, var(--or-chaud), transparent); }
.atelier .section-subtitle { color: var(--or-clair); }

.atelier-intro {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--or-clair);
  max-width: 600px;
  margin-bottom: 3rem;
  opacity: 0.8;
}

.atelier-senses {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.sense-card {
  position: relative;
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 168, 67, 0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  overflow: hidden;
}
.sense-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(212, 168, 67, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.sense-card:hover::before,
.sense-card.active::before { opacity: 1; }
.sense-card:hover,
.sense-card.active {
  border-color: rgba(212, 168, 67, 0.3);
  transform: translateY(-3px);
}

.sense-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }

.sense-meter {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 1rem;
}
.sense-meter-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--or-chaud);
  width: 0;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.sense-card.visible .sense-meter-fill,
.sense-card.active .sense-meter-fill { width: var(--level, 50%); }

.sense-name { font-family: var(--ff-title); font-size: 1.3rem; color: var(--or-chaud); }
.sense-level { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--or-clair); opacity: 0.6; }

.sense-description {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(247, 242, 233, 0.7);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}
.sense-card.active .sense-description { max-height: 200px; opacity: 1; margin-top: 1rem; }

.atelier-note {
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px dashed rgba(212, 168, 67, 0.15);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--or-clair);
  opacity: 0.7;
  text-align: center;
  font-style: italic;
}

/* ========== SECTION PRODUITS ========== */
.produits { background: var(--pierre); overflow: hidden; }

.produits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.produit-card {
  padding: 1.8rem;
  background: var(--blanc);
  border: var(--border-museum);
  border-radius: 8px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.produit-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--or-chaud), var(--vert-olive));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}
.produit-card:hover::after { transform: scaleX(1); }
.produit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.produit-visual {
  aspect-ratio: 4/3;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--pierre) 0%, var(--pierre-fonce) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.produit-visual img { width: 100%; height: 100%; object-fit: cover; }
.produit-visual img.produit-svg-illustration {
  object-fit: contain;
  padding: 1rem;
  width: 85%;
  height: 85%;
}

.produit-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.produit-card p { font-size: 0.88rem; color: rgba(27, 20, 8, 0.65); line-height: 1.6; margin-bottom: 0.6rem; }

.produit-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.produit-price {
  font-family: var(--ff-title);
  font-size: 1.1rem;
  color: var(--noir-olive);
  font-weight: 600;
}

.produit-badges {
  display: flex;
  gap: 0.4rem;
}

.produit-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid var(--or-chaud);
  color: var(--or-chaud);
}

/* ========== SECTION LABELS / PREUVES ========== */
.preuves { background: var(--blanc); text-align: center; }

.preuves-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 600px) {
  .preuves-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
}

.preuve-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.preuve-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(212, 168, 67, 0.06);
  border: var(--border-museum);
  transition: all var(--transition-smooth);
}
.preuve-item:hover .preuve-icon {
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.2);
}
.preuve-icon svg, .preuve-icon img { width: 48px; height: 48px; }

.preuve-label { font-family: var(--ff-title); font-size: 0.95rem; text-align: center; }
.preuve-detail { font-size: 0.78rem; color: var(--vert-olive); text-align: center; }

/* ========== SECTION ENGAGEMENTS ========== */
.engagements {
  background: var(--noir-olive);
  color: var(--pierre);
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.engagements::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(85, 107, 47, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(212, 168, 67, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(85, 107, 47, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.engagements .section-title { color: var(--pierre); }
.engagements .section-title::after { background: linear-gradient(90deg, var(--vert-olive), transparent); }
.engagements .section-subtitle { color: var(--or-clair); }

/* Branche d'olivier décorative */
.engagements-branch {
  position: absolute;
  top: 2rem;
  right: -60px;
  width: 320px;
  opacity: 0.15;
  transform: rotate(10deg);
  pointer-events: none;
  z-index: 1;
}
.engagements-branch img { width: 100%; height: auto; }

.engagements-intro {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--or-clair);
  max-width: 650px;
  margin-bottom: 2rem;
  opacity: 0.85;
}

/* Chiffre clé accrocheur */
.engagements-highlight {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: 12px;
  max-width: 600px;
}
.engagements-highlight-number {
  font-family: var(--ff-title);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--or-chaud);
  line-height: 1;
  flex-shrink: 0;
}
.engagements-highlight-number span {
  font-size: 0.6em;
  color: var(--vert-olive);
}
.engagements-highlight-text {
  font-size: 0.95rem;
  color: rgba(247, 242, 233, 0.7);
  line-height: 1.5;
}

/* Cartes engagements — layout horizontal */
.engagements-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.engagements-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 168, 67, 0.1);
  border-radius: 12px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-align: left;
}
.engagements-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 30%) var(--my, 50%), rgba(85, 107, 47, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.engagements-card:hover::before { opacity: 1; }
.engagements-card:hover {
  transform: translateX(6px);
  border-color: rgba(85, 107, 47, 0.3);
  box-shadow: -4px 0 24px rgba(85, 107, 47, 0.15);
}

.engagements-card-visual {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(85, 107, 47, 0.08);
  border: 1px solid rgba(212, 168, 67, 0.12);
  flex-shrink: 0;
  transition: transform 0.4s var(--transition-spring);
}
.engagements-card:hover .engagements-card-visual {
  transform: scale(1.05) rotate(-2deg);
}
.engagements-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.engagements-card-content { position: relative; z-index: 1; }
.engagements-card-number {
  font-family: var(--ff-title);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--or-chaud);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.3rem;
  opacity: 0.6;
}
.engagements-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--pierre);
}
.engagements-card p {
  font-size: 0.9rem;
  color: rgba(247, 242, 233, 0.65);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}
.engagements-card-tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vert-olive);
  background: rgba(85, 107, 47, 0.12);
  border-radius: 20px;
  border: 1px solid rgba(85, 107, 47, 0.2);
}

/* ========== SECTION RESSOURCES ========== */
.ressources {
  background: var(--pierre);
  position: relative;
}

.ressources .section-subtitle { color: var(--vert-olive); }

.ressources-intro {
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(27, 20, 8, 0.7);
  max-width: 680px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.ressources-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.ressources-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--blanc);
  border-radius: 12px;
  border: var(--border-museum);
  transition: all var(--transition-smooth);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.ressources-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--or-chaud), var(--vert-olive));
  transition: width 0.6s ease;
}
.ressources-card:hover::after { width: 100%; }
.ressources-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(27, 20, 8, 0.1);
}

.ressources-card-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.06), rgba(85, 107, 47, 0.06));
}
.ressources-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.6s var(--transition-spring);
}
.ressources-card:hover .ressources-card-visual img {
  transform: scale(1.08);
}

/* Badge lien externe */
.ressources-card-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blanc);
  border: 1px solid rgba(212, 168, 67, 0.2);
  color: var(--or-chaud);
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.3s ease;
}
.ressources-card:hover .ressources-card-badge {
  opacity: 1;
  transform: translateY(0);
}

.ressources-card-body {
  padding: 1.5rem 1.5rem 0.8rem;
  flex-grow: 1;
}
.ressources-card-tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--or-chaud);
  background: rgba(212, 168, 67, 0.1);
  border-radius: 20px;
  margin-bottom: 0.6rem;
}

.ressources-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--noir-olive);
}
.ressources-card p {
  font-size: 0.9rem;
  color: rgba(27, 20, 8, 0.65);
  line-height: 1.6;
}

.ressources-link {
  display: block;
  padding: 1rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--or-chaud);
  border-top: 1px solid rgba(212, 168, 67, 0.1);
  transition: all var(--transition-smooth);
  text-align: left;
}
.ressources-card:hover .ressources-link {
  color: var(--vert-olive);
  padding-left: 2rem;
}

/* Bande défilante Van Gogh */
.vangogh-banner {
  margin-top: 3rem;
  text-align: center;
  overflow: hidden;
}
.vangogh-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: vangoghScroll 40s linear infinite;
}
.vangogh-track img {
  height: 280px;
  width: auto;
  border-radius: 10px;
  border: 3px solid rgba(212, 168, 67, 0.2);
  box-shadow: 0 6px 24px rgba(27, 20, 8, 0.3);
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.vangogh-track img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(27, 20, 8, 0.4), 0 0 15px rgba(212, 168, 67, 0.15);
}
@keyframes vangoghScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.vangogh-banner:hover .vangogh-track {
  animation-play-state: paused;
}
.vangogh-citation {
  text-align: center;
  padding: 2rem 1.5rem 0;
  position: relative;
  z-index: 2;
}
.vangogh-quote {
  margin-top: 0;
  font-family: var(--ff-title);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--or-chaud);
  font-style: italic;
  letter-spacing: 0.02em;
}
.vangogh-caption {
  margin-top: 0.4rem;
  font-family: var(--ff-title);
  font-size: 0.85rem;
  color: rgba(27, 20, 8, 0.45);
  letter-spacing: 0.04em;
  font-style: italic;
}
@media (max-width: 639px) {
  .vangogh-track img {
    height: 180px;
  }
  .vangogh-track {
    gap: 1rem;
    animation-duration: 25s;
  }
}

/* ========== SECTION ACTUALITÉS / NEWSLETTER ========== */
.actus { background: var(--pierre); }

.actus-featured {
  padding: 2rem;
  background: var(--blanc);
  border: var(--border-museum);
  border-radius: 8px;
  margin-bottom: 2rem;
  position: relative;
}
.actus-featured::before {
  content: 'A la une';
  position: absolute;
  top: -10px;
  left: 1.5rem;
  padding: 0.2rem 0.8rem;
  background: var(--or-chaud);
  color: var(--noir-olive);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  font-weight: 600;
}

.actus-featured h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.actus-featured .actus-date { font-size: 0.78rem; color: var(--vert-olive); margin-bottom: 0.8rem; }
.actus-featured p { color: rgba(27, 20, 8, 0.75); }

.actus-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.actu-card {
  padding: 1.5rem;
  background: var(--blanc);
  border: var(--border-museum);
  border-radius: 6px;
  transition: all var(--transition-smooth);
}
.actu-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.actu-card h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.actu-card .actus-date { font-size: 0.72rem; color: var(--vert-olive); }
.actu-card p { font-size: 0.88rem; color: rgba(27, 20, 8, 0.65); margin-top: 0.5rem; }

/* ========== SECTION GALERIE (masonry) ========== */
.galerie { background: var(--blanc); overflow: hidden; }

/* Gallery grid */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
}

.galerie-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.galerie-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.galerie-item:hover img {
  transform: scale(1.05);
}

.galerie-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem 0.8rem;
  background: linear-gradient(to top, rgba(27, 20, 8, 0.7), transparent);
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.galerie-item:hover .galerie-caption {
  opacity: 1;
}
.galerie-caption-text {
  display: block;
  font-size: 0.85rem;
  color: var(--blanc);
  font-style: italic;
  font-family: var(--ff-accent);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ========== CARROUSEL PHOTOS ========== */
.carousel-section {
  padding: 2rem 0;
  background: var(--noir-olive);
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
}

.carousel-track {
  display: flex;
  gap: 0.75rem;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Desktop: 3 photos visible */
.carousel-slide {
  flex: 0 0 calc((100% - 1.5rem) / 3);
  position: relative;
  box-sizing: border-box;
}

.carousel-slide img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.carousel-slide img:hover {
  transform: scale(1.03);
}

/* ========== ZOOMABLE IMAGES ========== */
.zoomable {
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
}

.zoomable::after {
  content: '';
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  width: 32px;
  height: 32px;
  background: rgba(27, 20, 8, 0.55);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.zoomable:hover::after {
  opacity: 1;
}

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.lightbox.active .lightbox-img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 2;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
  z-index: 2;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; background: rgba(0, 0, 0, 0.7); }
.lightbox-prev svg,
.lightbox-next svg { width: 24px; height: 24px; }
.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: 50%;
  background: rgba(27, 20, 8, 0.6);
  color: var(--or-clair);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.carousel-btn:hover {
  background: rgba(212, 168, 67, 0.85);
  color: var(--noir-olive);
  border-color: transparent;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn svg {
  width: 22px;
  height: 22px;
}

.carousel-btn-prev { left: 0; }
.carousel-btn-next { right: 0; }

/* Progress dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.carousel-dot {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.carousel-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--or-chaud);
  border-radius: 2px;
  transition: width 0s linear;
}

.carousel-dot.done::after {
  width: 100%;
  transition: width 0s linear;
}

.carousel-dot.active {
  background: rgba(255, 255, 255, 0.15);
}

.carousel-dot.active::after {
  width: 100%;
  transition: width 5s linear;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Counter */
.carousel-counter {
  text-align: center;
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.carousel-counter .current {
  color: var(--or-chaud);
  font-weight: 600;
}

/* Tablet: 2 photos */
@media (max-width: 1024px) {
  .carousel-slide {
    flex: 0 0 calc((100% - 0.75rem) / 2);
  }
}

/* Phone: 1 photo */
@media (max-width: 600px) {
  .carousel-section {
    padding: 1.5rem 0;
  }

  .carousel-container {
    padding: 0;
  }

  .carousel-track {
    gap: 0;
  }

  .carousel-slide {
    flex: 0 0 100%;
  }

  .carousel-slide img {
    aspect-ratio: 3 / 2;
    border-radius: 8px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-btn svg {
    width: 16px;
    height: 16px;
  }

  .carousel-btn-prev { left: 0.5rem; }
  .carousel-btn-next { right: 0.5rem; }

  .carousel-dot {
    width: 20px;
  }
}

/* ========== SECTION FACEBOOK WIDGET ========== */
.facebook-section { background: var(--pierre-fonce); }

.facebook-widget {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: var(--border-museum);
}
.facebook-widget iframe { width: 100%; min-width: 0; border: 0; display: block; margin: 0 auto; }

.facebook-widget {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ========== SECTION AVIS ========== */
.avis { background: var(--blanc); }

.avis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.avis-card {
  padding: 2rem;
  background: var(--pierre);
  border: var(--border-museum);
  border-radius: 8px;
  position: relative;
  transition: all var(--transition-smooth);
}
.avis-card:hover {
  border-color: rgba(212, 168, 67, 0.35);
  transform: translateY(-2px);
}
.avis-card::before {
  content: '\201C';
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 3rem;
  font-family: var(--ff-title);
  color: var(--or-chaud);
  opacity: 0.15;
  line-height: 1;
}
.avis-text { font-style: italic; color: rgba(27, 20, 8, 0.7); margin-bottom: 1rem; padding-top: 1rem; }
.avis-author { font-weight: 600; font-size: 0.88rem; }
.avis-stars { color: var(--or-chaud); margin-bottom: 0.5rem; letter-spacing: 2px; }

/* ========== SECTION VENIR ========== */
.venir { background: var(--pierre-fonce); padding-bottom: 0; }

.venir-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.venir-info { padding: 2rem 0; }
.venir-info h3 { font-size: 1.3rem; margin-bottom: 1rem; }

.venir-detail { display: flex; gap: 0.8rem; margin-bottom: 1.2rem; align-items: flex-start; }
.venir-detail-icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--or-chaud); margin-top: 2px; }
.venir-detail p { font-size: 0.92rem; line-height: 1.6; color: rgba(27, 20, 8, 0.8); }

.venir-warning {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  margin-top: 1.5rem;
  background: rgba(212, 168, 67, 0.08);
  border-radius: 6px;
  border-left: 3px solid var(--or-chaud);
  font-size: 0.92rem;
  font-weight: 500;
}

.venir-map-wrap {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/10;
}
.venir-map-wrap iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.8) contrast(1.05); }

.venir-itineraire { position: absolute; bottom: 1rem; right: 1rem; z-index: 5; }

/* ========== SECTION CONVINCED (CTA) ========== */
.convinced {
  background: var(--noir-olive);
  text-align: center;
  padding: 5rem 1.5rem;
}
.convinced h2 { color: var(--pierre); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.5rem; }
.convinced p { color: var(--or-clair); font-family: var(--ff-accent); font-style: italic; font-size: 1.1rem; margin-bottom: 2rem; }

/* ========== FOOTER ========== */
.footer {
  background: var(--noir-olive);
  color: var(--or-clair);
  padding: 4rem 1.5rem 2rem;
}

.footer--mini {
  padding: 1rem 1.5rem;
}

.footer-mini {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-mini p {
  font-size: 0.75rem;
  color: rgba(232, 213, 160, 0.4);
}

.footer-mini__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-mini__links a {
  font-size: 0.75rem;
  color: rgba(232, 213, 160, 0.5);
  transition: color 0.2s ease;
}

.footer-mini__links a:hover {
  color: var(--or-chaud);
}

.footer-mini__links span {
  color: rgba(232, 213, 160, 0.3);
  font-size: 0.75rem;
}

@media (max-width: 600px) {
  .footer-mini {
    flex-direction: column;
    text-align: center;
  }
  .footer-mini__links {
    justify-content: center;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer h4 { font-size: 1rem; color: var(--or-chaud); margin-bottom: 0.8rem; }
.footer p, .footer a { font-size: 0.88rem; color: rgba(232, 213, 160, 0.7); line-height: 1.8; }
.footer a:hover { color: var(--or-chaud); }

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a { display: inline-block; padding: 0.2rem 0; }

.footer-social { display: flex; gap: 0.8rem; margin-top: 0.5rem; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 67, 0.15);
  transition: all var(--transition-smooth);
}
.footer-social a:hover { background: rgba(212, 168, 67, 0.1); border-color: var(--or-chaud); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 168, 67, 0.08);
  text-align: center;
  font-size: 0.78rem;
  color: rgba(232, 213, 160, 0.35);
}

.footer-cypress {
  display: inline-block;
  width: 14px;
  height: 36px;
  cursor: pointer;
  opacity: 0.12;
  transition: all var(--transition-smooth);
  vertical-align: middle;
  margin: 0 0.3rem;
}
.footer-cypress:hover { opacity: 0.3; }

.easter-egg-msg {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.8s ease, opacity 0.8s ease;
  font-family: var(--ff-accent);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--or-chaud);
  text-align: center;
}
.easter-egg-msg.show { max-height: 60px; opacity: 1; margin-top: 1rem; }

/* ========== CTA OVERLAY ========== */
.cta-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 20, 8, 0.92);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.cta-overlay.open { opacity: 1; pointer-events: all; }

.cta-overlay-content {
  text-align: center;
  max-width: 420px;
  padding: 2rem;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.5s var(--transition-spring);
}
.cta-overlay.open .cta-overlay-content { transform: scale(1) translateY(0); }

.cta-overlay-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--or-clair);
  font-size: 1.5rem;
  border-radius: 50%;
  transition: all var(--transition-smooth);
}
.cta-overlay-close:hover { background: rgba(212, 168, 67, 0.15); color: var(--or-chaud); }

.cta-overlay h2 { font-size: clamp(1.5rem, 4vw, 2rem); color: var(--pierre); margin-bottom: 0.5rem; }
.cta-overlay .phone-number {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-family: var(--ff-title);
  color: var(--or-chaud);
  margin: 1.5rem 0;
  letter-spacing: 0.05em;
  user-select: all;
}
.cta-overlay p { color: rgba(247, 242, 233, 0.6); font-size: 0.92rem; margin-bottom: 1.5rem; }

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  background: rgba(212, 168, 67, 0.12);
  border: 1px solid var(--or-chaud);
  color: var(--or-chaud);
  border-radius: 3px;
  font-size: 0.88rem;
  transition: all var(--transition-smooth);
}
.btn-copy:hover { background: var(--or-chaud); color: var(--noir-olive); }
.btn-copy.copied { background: var(--vert-olive); border-color: var(--vert-olive); color: var(--pierre); }

/* ========== OIL DROP ========== */
.oil-drop {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  width: 16px;
  height: 26px;
  opacity: 0;
  transition: opacity 0.5s ease, top 0.3s ease;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(212, 168, 67, 0.4));
}
.oil-drop.visible { opacity: 0.6; }
.oil-drop.pulse { animation: dropPulse 0.6s ease; }

@keyframes dropPulse {
  0%, 100% { filter: drop-shadow(0 2px 6px rgba(212, 168, 67, 0.4)); }
  50% { filter: drop-shadow(0 2px 15px rgba(212, 168, 67, 0.8)); transform: translateY(-50%) scale(1.15); }
}

.singing-active .oil-drop { animation: dropDance 0.5s ease 3; }
@keyframes dropDance {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  25% { transform: translateY(-50%) rotate(-8deg) scale(1.1); }
  75% { transform: translateY(-50%) rotate(8deg) scale(1.1); }
}

/* ========== PAGES LÉGALES ========== */
.legal-page {
  padding: 6rem 1.5rem 4rem;
  max-width: 400px;
  margin: 0 auto;
  min-height: 100vh;
}
.legal-page h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 2rem; }
.legal-page h1::after { content: ''; display: block; width: 80px; height: 2px; background: var(--or-chaud); margin-top: 0.8rem; }
.legal-page h2 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: 0.8rem; }
.legal-page p { margin-bottom: 1rem; color: rgba(27, 20, 8, 0.75); line-height: 1.8; }
.legal-page a { color: var(--or-chaud); text-decoration: underline; text-underline-offset: 3px; }
.legal-page ul { margin-left: 1.5rem; margin-bottom: 1rem; color: rgba(27, 20, 8, 0.75); }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
  font-size: 0.88rem;
  color: var(--vert-olive);
}
.legal-back:hover { color: var(--or-chaud); }

/* ========== RESPONSIVE — TABLETTE ========== */
@media (min-width: 640px) {
  .terroir-cards { grid-template-columns: repeat(2, 1fr); }
  .produits-grid { grid-template-columns: repeat(2, 1fr); }
  .avis-grid { grid-template-columns: repeat(2, 1fr); }
  .atelier-senses { grid-template-columns: repeat(3, 1fr); }
  .actus-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .domaine-keypoints { grid-template-columns: repeat(2, 1fr); }
  .engagements-card { grid-template-columns: 120px 1fr; }
  .ressources-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ========== RESPONSIVE — DESKTOP ========== */
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-right .nav-burger { display: none; }
  .section { padding: 7rem 2rem; }

  .histoire-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
  .histoire-visual { margin-left: -3rem; border-radius: 0 16px 16px 0; aspect-ratio: 3/4; }
  .histoire-text { padding: 2rem 0 2rem 1rem; }

  .terroir-cards { grid-template-columns: repeat(4, 1fr); }
  .engagements-cards { grid-template-columns: repeat(2, 1fr); }
  .engagements-card { grid-template-columns: 130px 1fr; }
  .engagements-card-visual { width: 130px; height: 130px; }

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

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



  .venir-grid { grid-template-columns: 1fr 1.2fr; gap: 0; }
  .venir-info { padding: 2rem 3rem 2rem 0; }
  .venir-map-wrap { border-radius: 0; aspect-ratio: auto; min-height: 400px; }

  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }

  .oil-drop { right: 20px; width: 20px; height: 32px; }
}

@media (min-width: 1280px) {
  .section-container { max-width: 1200px; }
  .histoire-visual { margin-left: -5rem; }
}

/* ========== WOW EFFECTS ========== */

/* --- 1. Shimmer doré sur les titres de section --- */
@keyframes shimmerGold {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.section-title.shimmer-active {
  background: linear-gradient(
    90deg,
    currentColor 0%,
    currentColor 40%,
    var(--or-chaud) 50%,
    currentColor 60%,
    currentColor 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerGold 1.5s ease-in-out 0.3s 1 forwards;
  background-position: -200% center;
}

/* Reset after animation so color stays normal */
.section-title.shimmer-done {
  background: none;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  -webkit-background-clip: unset;
}

/* --- 2. Compteur animé --- */
.engagements-highlight-number {
  transition: transform 0.5s var(--transition-spring);
}
.engagements-highlight-number.counting {
  transform: scale(1.1);
}

/* --- 3. Tilt 3D sur carousel --- */
.carousel-slide {
  transform-style: preserve-3d;
  perspective: 800px;
}

.carousel-slide img {
  transition: transform 0.4s ease;
  will-change: transform;
}

/* --- 4. Hero titre lettre par lettre --- */
@keyframes letterReveal {
  0% { opacity: 0; transform: translateY(20px) rotateX(-40deg); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0) rotateX(0deg); filter: blur(0); }
}

.hero-letter {
  display: inline-block;
  opacity: 0;
  animation: letterReveal 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-letter-space {
  display: inline-block;
  width: 0.3em;
}

/* --- 5. Magnetic hover sur CTA --- */
.btn-primary {
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(212, 168, 67, 0.35);
}

/* --- 6. Flip 3D sur cartes terroir/engagements --- */
.terroir-card,
.engagements-card {
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}

.terroir-card:hover {
  transform: perspective(800px) rotateY(5deg) rotateX(2deg) translateY(-6px);
  box-shadow: -8px 12px 40px rgba(27, 20, 8, 0.18);
}

.engagements-card:hover {
  transform: perspective(800px) rotateY(-3deg) rotateX(2deg) translateY(-4px);
  box-shadow: 8px 12px 40px rgba(27, 20, 8, 0.18);
}

/* --- 7. Glow pulse sur les médailles au scroll --- */
@keyframes medalGlow {
  0% { filter: drop-shadow(0 0 0 transparent); transform: scale(1); }
  50% { filter: drop-shadow(0 0 12px rgba(212, 168, 67, 0.6)); transform: scale(1.08); }
  100% { filter: drop-shadow(0 0 4px rgba(212, 168, 67, 0.2)); transform: scale(1); }
}

.preuve-card.visible img {
  animation: medalGlow 0.8s ease-out;
}

/* --- 8. Smooth entrance pour carousel --- */
@keyframes carouselSlideIn {
  0% { opacity: 0.5; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

.carousel-slide.active-slide img {
  animation: carouselSlideIn 0.6s ease-out;
}

/* ========== MOUVEMENT RÉDUIT ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-left, .reveal-right, .reveal-zoom, .reveal-flip, .reveal-bounce, .reveal-rotate { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media print {
  .nav, .oil-drop, .cta-overlay, .hero-wave, .hero-scroll-hint, .lang-selector { display: none; }
  body { color: #000; background: #fff; }
  body::after { display: none; }
}

/* ==========================================================
   V3 ARTISTIC ENHANCEMENTS — "Van Gogh meets Laurine"
   ========================================================== */

/* --- Brush stroke decorations on sections (not hero) --- */
.section:not(.hero)::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 5%;
  right: 5%;
  height: 4px;
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(212,168,67,0.08) 10%,
      rgba(212,168,67,0.15) 30%,
      rgba(85,107,47,0.1) 50%,
      rgba(212,168,67,0.15) 70%,
      rgba(212,168,67,0.08) 90%,
      transparent 100%);
  border-radius: 50%;
  pointer-events: none;
}

/* --- Enhanced section titles with decorative elements --- */
.section-title {
  position: relative;
  display: inline-block;
}

.section-title em {
  font-style: italic;
  color: var(--or-chaud);
}

/* --- Animated gradient border on cards --- */
.terroir-card,
.produit-card,
.actu-card,
.avis-card {
  background-image:
    linear-gradient(var(--blanc), var(--blanc)),
    linear-gradient(135deg, rgba(212,168,67,0.3), rgba(85,107,47,0.2), rgba(212,168,67,0.3));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* --- Hero label badges --- */
.hero-label-badge {
  position: relative;
  overflow: hidden;
}

/* --- "Papier artisanal" texture on white sections --- */
.histoire,
.terroir,
.preuves,
.galerie {
  position: relative;
}
/* SVG noise texture removed for performance */

/* --- Premium badges styling --- */
.produit-badge {
  position: relative;
  background: linear-gradient(135deg, rgba(212,168,67,0.06) 0%, rgba(212,168,67,0.12) 100%);
  font-weight: 600;
}

/* --- Atelier section: enhanced glow on cards --- */
.sense-card {
}
.sense-card:hover {
  box-shadow: 0 0 30px rgba(212,168,67,0.1), 0 8px 32px rgba(0,0,0,0.15);
}

/* --- Galerie grid responsive --- */
@media (max-width: 768px) {
  .galerie-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .galerie-item img { height: 200px; }
  .galerie-caption { opacity: 1; }
}
@media (max-width: 480px) {
  .galerie-grid { grid-template-columns: 1fr; }
  .galerie-item img { height: 250px; }

  /* Engagements mobile : empiler illustration au-dessus */
  .engagements-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
  .engagements-card-visual {
    width: 80px;
    height: 80px;
    margin: 0 auto;
  }
  .engagements-highlight {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }

  /* Ressources mobile : image plus compacte */
  .ressources-card-visual { aspect-ratio: 16/9; }
}

/* --- Labels / logos section in hero --- */
.hero-labels-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1s 1.5s ease forwards;
}

.hero-label-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.hero-label-logo img {
  height: 48px;
  width: auto;
  filter: brightness(0.9) contrast(1.1);
  transition: transform 0.3s ease;
}
.hero-label-logo:hover img {
  transform: scale(1.1);
}

.hero-label-logo .logo-fallback {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  border: 1px dashed rgba(212,168,67,0.3);
  border-radius: 6px;
  font-size: 0.65rem;
  color: var(--or-clair);
  opacity: 0.6;
  letter-spacing: 0.05em;
}
.hero-label-logo .logo-fallback svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

/* --- Convinced section: premium treatment --- */
.convinced {
  position: relative;
  overflow: hidden;
}
.convinced::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(212,168,67,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* --- Hover lift for preuve items --- */
.preuve-item {
  transition: transform 0.4s ease;
}
.preuve-item:hover {
  transform: translateY(-6px);
}

/* --- Footer enhanced --- */
.footer {
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or-chaud), transparent);
  opacity: 0.2;
}

/* --- Actus featured card: golden border top --- */
.actus-featured {
  border-top: 3px solid var(--or-chaud);
}

/* --- Facebook widget enhanced frame --- */
.facebook-widget {
  position: relative;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.4s ease;
}
.facebook-widget:hover {
  box-shadow: var(--shadow-hover);
}

/* --- Domaine key points: staggered animation --- */
.domaine-kp {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}
.domaine-keypoints.visible .domaine-kp {
  opacity: 1;
  transform: translateX(0);
}
.domaine-keypoints.visible .domaine-kp:nth-child(1) { transition-delay: 0.05s; }
.domaine-keypoints.visible .domaine-kp:nth-child(2) { transition-delay: 0.1s; }
.domaine-keypoints.visible .domaine-kp:nth-child(3) { transition-delay: 0.15s; }
.domaine-keypoints.visible .domaine-kp:nth-child(4) { transition-delay: 0.2s; }
.domaine-keypoints.visible .domaine-kp:nth-child(5) { transition-delay: 0.25s; }
.domaine-keypoints.visible .domaine-kp:nth-child(6) { transition-delay: 0.3s; }
.domaine-keypoints.visible .domaine-kp:nth-child(7) { transition-delay: 0.35s; }
.domaine-keypoints.visible .domaine-kp:nth-child(8) { transition-delay: 0.4s; }
.domaine-keypoints.visible .domaine-kp:nth-child(9) { transition-delay: 0.45s; }
.domaine-keypoints.visible .domaine-kp:nth-child(10) { transition-delay: 0.5s; }

/* --- Decorative olive branch before terroir --- */
.terroir .section-subtitle::before {
  content: '\1F343 ';
  opacity: 0.6;
}

/* --- Enhanced section separators --- */
.section-brush-sep {
  position: relative;
  height: 20px;
  max-width: 400px;
  background: none;
  opacity: 1;
}
.section-brush-sep::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,168,67,0.25), transparent);
}
.section-brush-sep::after {
  content: '';
  position: absolute;
  top: calc(50% - 3px);
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  background: var(--or-chaud);
  border-radius: 50%;
  opacity: 0.4;
}

/* --- Smooth nav transition --- */
.nav {
  background: rgba(27, 20, 8, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* --- Venir section: warm accent --- */
.venir-info h3 {
  position: relative;
  padding-left: 1rem;
}
.venir-info h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--or-chaud);
  border-radius: 2px;
}

/* --- Produit card: image overlay hover --- */
.produit-visual {
  position: relative;
  overflow: hidden;
}
.produit-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,20,8,0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.produit-card:hover .produit-visual::after {
  opacity: 1;
}

/* --- Histoire accent: decorative quote mark --- */
.histoire-accent {
  position: relative;
}
.histoire-accent::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 8px;
  font-size: 2.5rem;
  font-family: var(--ff-title);
  color: var(--or-chaud);
  opacity: 0.15;
  line-height: 1;
}

/* --- Responsive touch targets improvement --- */
@media (max-width: 639px) {
  .btn {
    min-height: 48px;
    padding: 0.85rem 1.6rem;
  }
  .nav-burger {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .lang-btn {
    min-height: 40px;
    padding: 0.4rem 0.7rem;
  }
  .produit-card {
    padding: 1.2rem;
  }
  .facebook-widget iframe {
    height: 500px;
  }
  .hero-labels {
    gap: 0.5rem;
  }
  .hero-label-badge {
    font-size: 0.6rem;
    padding: 0.25rem 0.6rem;
  }
  .venir-grid {
    padding: 0 1rem;
  }
  .section { padding: 3.5rem 1rem; }

  /* Cacher le texte "Mamoune" dans la nav sur mobile */
  .nav-logo-fallback {
    display: none;
  }

  /* Engagements : carrousel horizontal sur mobile */
  .engagements-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
  }
  .engagements-cards::-webkit-scrollbar {
    display: none;
  }
  .engagements-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }

  /* Dots indicateurs du carrousel */
  .engagements-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
  }
  .engagements-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(247, 242, 233, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
  }
  .engagements-dot.active {
    background: var(--or-chaud);
    transform: scale(1.3);
  }
}

/* --- Tablet refinements --- */
@media (min-width: 640px) and (max-width: 959px) {
  .facebook-widget iframe {
    height: 550px;
  }
}

/* Hide carousel dots on desktop */
@media (min-width: 640px) {
  .engagements-dots { display: none; }
}

/* --- Large screen luxury spacing --- */
@media (min-width: 1280px) {
  .hero-content {
    max-width: 850px;
  }
  .hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
  }
}

/* ========== WOW EFFECTS ========== */

/* --- Canvas particules --- */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* --- Parallax elements --- */
.parallax-element {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* --- Float slow (branches, olives décoratives) --- */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(1deg); }
  50% { transform: translateY(-4px) rotate(-0.5deg); }
  75% { transform: translateY(-10px) rotate(0.8deg); }
}
.float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

/* --- Pulse glow on hover --- */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 168, 67, 0); }
  50% { box-shadow: 0 0 20px 4px rgba(212, 168, 67, 0.2); }
}
.glow-hover {
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.glow-hover:hover {
  box-shadow: 0 0 25px 5px rgba(212, 168, 67, 0.2), 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* --- Section entry flash --- */
@keyframes sectionFlash {
  0% { opacity: 0; }
  30% { opacity: 0.12; }
  100% { opacity: 0; }
}
.section-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212, 168, 67, 0.15) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.section.flash-active .section-flash {
  animation: sectionFlash 1s ease-out forwards;
}

/* --- Ripple button effect --- */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleExpand 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleExpand {
  to { transform: scale(4); opacity: 0; }
}

/* --- Cursor trail --- */
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--or-chaud);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.15s;
  mix-blend-mode: screen;
}

/* --- Universal tilt on images/cards --- */
.tilt-3d {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
}

/* --- Sections --- */
.section {
  position: relative;
}

/* --- Gradient shift on sections --- */
.section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
  pointer-events: none;
  z-index: 0;
}
.section.in-view::before {
  opacity: 1;
}
.histoire::before { background: radial-gradient(ellipse at 20% 50%, rgba(212, 168, 67, 0.04) 0%, transparent 60%); }
.atelier::before { background: radial-gradient(ellipse at 80% 30%, rgba(85, 107, 47, 0.05) 0%, transparent 60%); }
.engagements::before { background: radial-gradient(ellipse at 50% 80%, rgba(212, 168, 67, 0.04) 0%, transparent 60%); }
.ressources::before { background: radial-gradient(ellipse at 30% 60%, rgba(85, 107, 47, 0.04) 0%, transparent 60%); }

/* --- Brush separators animate on scroll --- */
.section-brush-sep {
  transition: transform 0.6s ease;
}
.section-brush-sep.in-view {
  animation: brushWave 3s ease-in-out infinite;
}
@keyframes brushWave {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(1.02) translateY(-1px); }
}

/* --- Van Gogh glow removed (now handled by banner hover) --- */

/* --- Floating decorative elements --- */
.floating-olive {
  position: absolute;
  width: 8px;
  height: 10px;
  background: radial-gradient(ellipse, #1B1408 60%, transparent);
  border-radius: 50%;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.floating-leaf {
  position: absolute;
  width: 20px;
  height: 8px;
  background: #4A7B4F;
  border-radius: 50%;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-30deg);
}

/* --- Preuve medals float --- */
.preuve-card img {
  transition: transform 0.6s ease;
}
.preuve-card.in-view img {
  animation: floatSlow 5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.8s);
}

/* --- Sense meter bars animate on scroll --- */
.sense-meter-fill {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}
.sense-card.visible .sense-meter-fill {
  transform: scaleX(1);
}

/* --- Stagger wave enhanced --- */
.stagger-wave > *:nth-child(1) { transition-delay: 0s; }
.stagger-wave > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-wave > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-wave > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-wave > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-wave > *:nth-child(6) { transition-delay: 0.40s; }

/* --- Mobile: disable heavy effects --- */
@media (max-width: 639px) {
  #particles-canvas { display: none; }
  .cursor-dot { display: none; }
  .float-slow { animation: none; }
  .floating-olive, .floating-leaf { display: none; }
  .section-flash { display: none; }
  .section::before { display: none; }
  .section-brush-sep.in-view { animation: none; }
  .tilt-3d { transition: none; }
  .glow-hover:hover { box-shadow: none; }
  .preuve-card.in-view img { animation: none; }
}

/* --- Reduced motion override for WOW effects --- */
@media (prefers-reduced-motion: reduce) {
  #particles-canvas { display: none !important; }
  .cursor-dot { display: none !important; }
  .float-slow { animation: none !important; }
  .section-flash { display: none !important; }
  .sense-meter-fill { transform: scaleX(1) !important; transition: none !important; }
  .vangogh-track { animation: none !important; }
  .preuve-card.in-view img { animation: none !important; }
  .section-brush-sep.in-view { animation: none !important; }
}
