@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) {
  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: var(--burgundy);
  position: relative;
  transition: background 0.3s;
}

.hamburger-home::before,
.hamburger-home::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 2px;
  background: var(--burgundy);
  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;
}

/* Cart Icon - Bordeaux */
.cart-icon-home {
  position: relative;
  color: var(--burgundy);
  transition: color 0.3s;
  justify-self: end;
  padding: 10px;
}

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

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

.cart-count-home {
  position: absolute;
  top: 2px;
  right: 0;
  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;
}

/* ============================
   FULLSCREEN MENU OVERLAY
   ============================ */
.menu-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--white);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.menu-fullscreen-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 60px 60px;
  max-width: 800px;
  margin: 0 auto;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

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

.menu-fullscreen.active .menu-link:nth-child(1) { transition-delay: 0.1s; }
.menu-fullscreen.active .menu-link:nth-child(2) { transition-delay: 0.15s; }
.menu-fullscreen.active .menu-link:nth-child(3) { transition-delay: 0.2s; }
.menu-fullscreen.active .menu-link:nth-child(4) { transition-delay: 0.25s; }
.menu-fullscreen.active .menu-link:nth-child(5) { transition-delay: 0.3s; }

.menu-number {
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
  min-width: 30px;
}

.menu-text {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dark);
  transition: color 0.3s, transform 0.3s;
}

.menu-link:hover .menu-text {
  color: var(--gold);
  transform: translateX(10px);
}

.menu-footer {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
}

.menu-fullscreen.active .menu-footer {
  opacity: 1;
  transform: translateY(0);
}

.menu-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-contact a {
  font-size: 14px;
  color: var(--gray);
  transition: color 0.3s;
}

.menu-contact a:hover {
  color: var(--gold);
}

.menu-social {
  display: flex;
  gap: 20px;
}

.menu-social a {
  color: var(--gray);
  transition: color 0.3s;
}

.menu-social a:hover {
  color: var(--gold);
}

/* ============================
   SCROLL-DRIVEN VIDEO CONTAINER
   ============================ */
.scroll-video-container {
  position: relative;
  /* 8 sections = 800vh */
  height: 800vh;
}

/* 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(201, 162, 39, 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;
  }

  .menu-fullscreen-content {
    padding: 100px 30px 40px;
  }

  .menu-link {
    padding: 15px 0;
    gap: 20px;
  }

  .menu-number {
    font-size: 10px;
    min-width: 25px;
  }

  .menu-text {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .menu-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .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;
}
