@font-face {
  font-family: 'Edwardian Script ITC';
  src: url('../fonts/EdwardianScriptITC.woff2') format('woff2'),
  url('../fonts/EdwardianScriptITC.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ============================
   HOMEPAGE STYLES
   Scroll-driven video experience
   ============================ */

/* Hide default header on homepage */
.homepage header:not(.header-homepage):not(.header-landing) {
  display: none !important;
}

/* ============================
   TRANSPARENT HEADER - BORDEAUX
   ============================ */
.header-homepage {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 25px 40px;
  background: transparent !important;
}

.navbar-homepage {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* Burger Menu Button - Bordeaux */
.menu-toggle-home {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  justify-self: start;
}

.hamburger-home {
  display: block;
  width: 28px;
  height: 2px;
  background: #333;
  position: relative;
  transition: background 0.3s;
}

.hamburger-home::before,
.hamburger-home::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 2px;
  background: #333;
  left: 0;
  transition: transform 0.3s, top 0.3s;
}

.hamburger-home::before {
  top: -8px;
}

.hamburger-home::after {
  top: 8px;
}

/* Burger animation when menu is open */
.menu-toggle-home.active .hamburger-home {
  background: transparent;
}

.menu-toggle-home.active .hamburger-home::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--dark);
}

.menu-toggle-home.active .hamburger-home::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--dark);
}

/* Logo */
.logo-home {
  justify-self: center;
}

.logo-home img {
  height: 70px;
  width: auto;
  transition: opacity 0.3s;
}

.logo-home:hover img {
  opacity: 0.8;
}

/* Nav Icons Container */
.nav-icons-home {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-self: end;
}

/* Location Icon */
.location-icon-home {
  color: #333;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.location-icon-home:hover {
  color: var(--gold);
}

.menu-open .location-icon-home {
  color: var(--dark);
}

/* Cart Icon */
.cart-icon-home {
  position: relative;
  color: #333;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.cart-icon-home:hover {
  color: var(--gold);
}

.menu-open .cart-icon-home {
  color: var(--dark);
}

.cart-count-home {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

/* ============================
/* ============================
   SCROLL-DRIVEN VIDEO CONTAINER
   ============================ */
.scroll-video-container {
  position: relative;
  /* 6 sections (5 vidéo + 1 menu) = 600vh */
  height: 600vh;
}

/* Fixed Video Layer */
.video-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 101%;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
}

.scroll-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================
   SCROLL SECTIONS
   ============================ */
.scroll-sections {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.scroll-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 60px;
  pointer-events: auto;
}

/* Section Content - Texte bordeaux */
.section-content {
  max-width: 600px;
  color: var(--burgundy);
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-section.active .section-content {
  opacity: 1;
  transform: translateY(0);
}

.section-content.align-left {
  margin-right: auto;
  margin-left: 5%;
  text-align: left;
}

.section-content.align-right {
  margin-left: auto;
  margin-right: 5%;
  text-align: right;
}

/* Section Labels - Gold */
.section-label-anim {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.scroll-section.active .section-label-anim {
  opacity: 1;
  transform: translateY(0);
}

/* Section Titles - Bordeaux */
.section-title-anim {
  font-size: 64px;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 25px;
  color: var(--burgundy);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.scroll-section.active .section-title-anim {
  opacity: 1;
  transform: translateY(0);
}

/* Section Subtitles & Text - Dark gray */
.section-subtitle-anim,
.section-text-anim {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 2px;
  line-height: 1.8;
  color: var(--dark);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.scroll-section.active .section-subtitle-anim,
.scroll-section.active .section-text-anim {
  opacity: 1;
  transform: translateY(0);
}

/* Section Intro - Centered */
.section-intro .section-content {
  text-align: center;
  max-width: 800px;
}

.section-intro .section-title-anim {
  font-size: 80px;
  letter-spacing: 15px;
}

/* Title Script - Elegant cursive */
.title-script {
  font-family: 'Edwardian Script ITC', cursive;
  text-transform: none !important;
  letter-spacing: 2px !important;
  font-weight: 400 !important;
  font-size: 100px !important;
}

.section-intro .title-script {
  font-size: 140px !important;
}

/* Scroll Indicator - Bordeaux */
.scroll-indicator {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--burgundy);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-indicator svg {
  animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* ============================
   SECTION FINAL - Menu avec overlay
   ============================ */
.section-final {
  position: relative;
}

.section-final .section-overlay {
  position: absolute;
  inset: 0;
  background: rgba(253, 250, 245, 0.85);
  z-index: -1;
}

.section-final .section-content {
  text-align: center;
  max-width: 800px;
}

.section-final .title-script {
  font-size: 72px !important;
  margin-bottom: 40px;
}

/* Final Menu - Navigation links */
.final-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

.scroll-section.active .final-menu {
  opacity: 1;
  transform: translateY(0);
}

.final-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--white);
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(15px);
}

.scroll-section.active .final-menu-link {
  opacity: 1;
  transform: translateY(0);
}

.scroll-section.active .final-menu-link:nth-child(1) { transition-delay: 0.4s; }
.scroll-section.active .final-menu-link:nth-child(2) { transition-delay: 0.5s; }
.scroll-section.active .final-menu-link:nth-child(3) { transition-delay: 0.6s; }
.scroll-section.active .final-menu-link:nth-child(4) { transition-delay: 0.7s; }
.scroll-section.active .final-menu-link:nth-child(5) { transition-delay: 0.8s; }

.final-menu-link:hover {
  background: var(--burgundy);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(139, 13, 55, 0.25);
}

.final-menu-link:nth-child(1):hover,
.final-menu-link:nth-child(3):hover {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 8px 25px rgba(139,13,55, 0.25);
}

.final-menu-icon {
  display: flex;
  align-items: center;
}

/* Corner Decorations - to hide watermark */
.corner-decor {
  position: absolute;
  bottom: 30px;
  padding: 12px 25px;
  background: var(--burgundy);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.6s ease 0.9s;
}

.scroll-section.active .corner-decor {
  opacity: 1;
}

.corner-left {
  left: 30px;
}

.corner-right {
  right: 30px;
  background: var(--gold);
}

/* ============================
   PROGRESS BAR
   ============================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.2);
  z-index: 1001;
}

.progress-bar {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width 0.1s ease;
}

/* ============================
   RESPONSIVE - TABLET
   ============================ */
@media (max-width: 1024px) {
  .section-title-anim {
    font-size: 48px;
    letter-spacing: 4px;
  }

  .section-intro .section-title-anim {
    font-size: 56px;
    letter-spacing: 10px;
  }

  .title-script {
    font-size: 70px !important;
  }

  .section-intro .title-script {
    font-size: 90px !important;
  }

  .section-final .title-script {
    font-size: 56px !important;
  }
}

/* ============================
   RESPONSIVE - MOBILE
   ============================ */
@media (max-width: 768px) {
  .header-homepage {
    padding: 20px;
  }

  .logo-home img {
    height: 50px;
  }

  .scroll-section {
    padding: 0 25px;
  }

  .section-content.align-left,
  .section-content.align-right {
    margin: 0;
    text-align: center;
  }

  .section-label-anim {
    font-size: 10px;
    letter-spacing: 3px;
  }

  .section-title-anim {
    font-size: 32px;
    letter-spacing: 3px;
  }

  .section-intro .section-title-anim {
    font-size: 36px;
    letter-spacing: 6px;
  }

  .title-script {
    font-size: 48px !important;
  }

  .section-intro .title-script {
    font-size: 56px !important;
  }

  .section-final .title-script {
    font-size: 36px !important;
  }

  .section-subtitle-anim,
  .section-text-anim {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .scroll-indicator {
    bottom: 30px;
    font-size: 10px;
  }

  /* Final Menu Mobile */
  .final-menu {
    flex-direction: column;
    gap: 10px;
  }

  .final-menu-link {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 11px;
  }

  .scroll-section.active .final-menu-link {
    opacity: 1;
    transform: translateY(0);
  }

  /* Corner Decorations Mobile */
  .corner-decor {
    bottom: 15px;
    padding: 8px 15px;
    font-size: 8px;
    letter-spacing: 1px;
  }

  .corner-left {
    left: 15px;
  }

  .corner-right {
    right: 15px;
    background: var(--gold);
  }
}

/* ============================
   BODY STATE
   ============================ */
body.homepage {
  overflow-x: hidden;
}

body.homepage.menu-open {
  overflow: hidden;
}

/* ============================
   HERO SPLIT — 4 panneaux vidéo (desktop)
   + HERO MOBILE — vidéo plein écran
   ============================ */

/* Désactiver les anciens systèmes scroll-driven (non utilisés) */
.scroll-video-container,
.video-fixed,
.scroll-sections,
.scroll-section {
  display: none !important;
}

/* Stacked sections : visibles sur mobile seulement */
.stacked-sections { display: none; }

/* (services-section--mobile-only supprimé du template) */

/* Overflow pour scroll normal */
html {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.homepage,
body.homepage main {
  overflow: visible !important;
  height: auto !important;
}

/* ── Container 4 panneaux ── */
.hero-split {
  display: flex;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
  padding-top: 113px;
  background: #000;
  background-clip: content-box;
}

/* ── Un panneau ── */
.video-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #fff; /* Visible pendant le chargement des vidéos */

  /* Animation d'apparition : monte depuis le bas */
  animation: videoPanelIn 0.8s ease-out both;
}

/* ── Bouton positionné en bas de chaque panneau ── */
.video-panel-btn {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-block;
  padding: 13px 28px;
  background: #fff;
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
}

.video-panel-btn:hover {
  background: var(--burgundy);
  color: #fff;
}

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

.video-panel:nth-child(1) { animation-delay: 0s; }
.video-panel:nth-child(2) { animation-delay: 0.3s; }
.video-panel:nth-child(3) { animation-delay: 0.6s; }
.video-panel:nth-child(4) { animation-delay: 0.9s; }

/* ── Bandeaux noirs entre les panneaux ── */
.video-panel:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #000;
  z-index: 5;
}

/* ── Texte centré sur le hero desktop ── */
.hero-split-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;   /* Les clics passent vers les video-panels */
  z-index: 10;
  /*padding-top: 113px;*/     /* Compense le padding-top du conteneur */
}

/* SVG DrawSVG — le stroke trace les glyphes, le fill apparaît à la fin */
.hero-title-svg {
  width: clamp(65vw, 88vw, 1100px);
  height: auto;
  overflow: visible;
  display: block;
}

.hero-title-svg text {
  fill: transparent;
  stroke: var(--burgundy);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* Grande valeur : garantit que tout le chemin est une seule "dash" */
  stroke-dasharray: 8000;
  stroke-dashoffset: 8000;
  /* Halo blanc pour lisibilité sur les vidéos */
  filter:
    drop-shadow(0 0 18px rgba(255,255,255,1))
    drop-shadow(0 0 40px rgba(255,255,255,0.7));
  animation: drawCharles 2s ease-in-out both;
  animation-delay: 1.7s;
}

@keyframes drawCharles {
  /* Phase 1 (0→80%) : le stroke se trace */
  0%  { stroke-dashoffset: 8000; fill: transparent;     }
  80% { stroke-dashoffset: 0;    fill: transparent;     }
  /* Phase 2 (80→100%) : le fill bordeaux apparaît */
  100%{ stroke-dashoffset: 0;    fill: var(--burgundy); }
}

/* ── Vidéo de fond ── */
.video-panel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ══════════════════════════════════════════════════
   HERO MOBILE — Vidéo unique plein écran
   ══════════════════════════════════════════════════ */
.hero-mobile {
  display: none;
  height: 100svh;
  position: relative;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-mobile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-mobile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(51, 24, 33, 0.75) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 2;
}

.hero-mobile-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 20px;
}

.hero-mobile .scroll-indicator {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  color: rgba(255,255,255,0.65);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-mobile .scroll-indicator svg {
  animation: scrollBounce 2s ease infinite;
}

/* Section services (scroll normal, hors sticky) */
.services-section {
  position: relative !important;
  z-index: 10 !important;
  background: #fafafa;
  padding: 80px 40px;
}

/* ============================
   TYPOGRAPHIE HERO
   ============================ */

/* Titre principal — police Edwardian */
.hero-title {
  font-family: 'Edwardian Script ITC', 'Great Vibes', cursive;
  font-size: clamp(80px, 14vw, 180px);
  font-weight: normal;
  color: var(--burgundy);
  line-height: 1;
  text-shadow:
    0 0 30px rgba(255,255,255,1),
    0 0 60px rgba(255,255,255,0.9),
    0 4px 20px rgba(255,255,255,1);
}

.hero-subtitle {
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 400;
  color: #333;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 20px;
  text-shadow:
    0 0 20px rgba(255,255,255,1),
    0 0 40px rgba(255,255,255,0.9);
}

/* Labels de section */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 15px;
  padding: 8px 20px;
  background: rgba(255,255,255,0.95);
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--burgundy);
  margin-bottom: 15px;
  max-width: 500px;
  text-shadow:
    0 0 30px rgba(255,255,255,1),
    0 0 60px rgba(255,255,255,0.9),
    0 2px 15px rgba(255,255,255,1);
}

.section-subtitle {
  font-size: clamp(14px, 1.8vw, 18px);
  color: #333;
  font-weight: 500;
  letter-spacing: 1px;
  max-width: 450px;
  text-shadow:
    0 0 20px rgba(255,255,255,1),
    0 0 40px rgba(255,255,255,0.9);
}

/* ============================
   SECTION SERVICES
   ============================ */
.services-container {
  max-width: 1100px;
  margin: 0 auto;
}

.services-title {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.service-item:hover { transform: translateY(-5px); }
.service-item:hover .service-icon { border-color: var(--burgundy); }
.service-item:hover .service-icon svg { stroke: var(--burgundy); }

.service-icon {
  width: 90px;
  height: 90px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.service-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
  transition: stroke 0.3s ease;
}

.service-name {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}

.service-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════
   MOBILE — Sections empilées (.stacked-sections)
   Chaque section = 100svh, vidéo de fond + overlay + texte centré
   ══════════════════════════════════════════════════ */

.stacked-section {
  position: relative;
  height: 100svh;
  overflow: hidden;
}

.stacked-section video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pas d'overlay sur les vidéos — le glassmorphism du .section-text-inner
   suffit à assurer la lisibilité du texte */

/* Zone texte : centrée verticalement */
.section-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 28px;
}

.section-text-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* CTA dans les sections empilées */
.stacked-section-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 13px 32px;
  background: transparent;
  border: 1.5px solid #fff;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.stacked-section-btn:hover {
  background: #fff;
  color: var(--burgundy);
}

/* ============================
   RESPONSIVE HOMEPAGE
   ============================ */
@media (max-width: 968px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* 4 panneaux desktop → masqués */
  .hero-split { display: none !important; }

  /* Vidéo unique simple → masquée (remplacée par sections empilées) */
  .hero-mobile { display: none !important; }

  /* Sections empilées → visibles */
  .stacked-sections { display: block; }

  /* Texte des sections empilées */
  .section-title,
  .section-subtitle { max-width: 100%; }

  .hero-subtitle {
    color: var(--burgundy);
  }

  /* Carte autour du texte */
  .stacked-sections .section-text-inner {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    padding: 30px 35px;
    max-width: 500px;
    width: 100%;
  }

  /* Boutons CTA → fond bordeaux */
  .stacked-section-btn {
    background: var(--burgundy);
    border-color: var(--burgundy);
    color: #fff;
  }

  .stacked-section-btn:hover {
    background: var(--burgundy-dark, #7a0020);
    border-color: var(--burgundy-dark, #7a0020);
    color: #fff;
  }
}
