/* ============================
   VARIABLES & RESET
   ============================ */
:root {
  --gold: #872651;
  --burgundy: #872651;
  --dark: #1a1a1a;
  --gray: #666;
  --light-gray: #aaa;
  --bg: #fafafa;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Calibri', 'Segoe UI', sans-serif;
  background: var(--white);
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Titres en Poppins */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

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

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

/* ============================
   HEADER
   ============================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  z-index: 1000;
  box-shadow: 0 1px 0 #e8e8e8, 0 2px 12px rgba(0,0,0,0.06);
}

/* Header Landing (homepage) — effet glassmorphism */
.header-landing {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
}

/* Header scrollé — ombre renforcée + fond pleinement opaque */
.header-landing.header-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12) !important;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Pages internes — fond blanc solide */
.header-solid {
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.header-landing .navbar {
  padding: 15px 40px;
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  position: static;
}

.header-landing .menu-toggle {
  display: block;
  order: 1;
  justify-self: start;
}

.header-landing .logo {
  order: 2;
  justify-self: center;
}

.header-landing .nav-right {
  order: 3;
  justify-self: end;
}

.header-landing .logo img {
  height: 70px;
}

/* Homepage desktop — nav links masqués (remplacées par le burger) */
.header-landing .nav-links {
  display: none;
}

/* Icons et liens en noir, hover bordeaux */
.header-landing .nav-links a {
  color: #333;
}

.header-landing .nav-links a::after {
  background: var(--gold);
}

.header-landing .cart-icon,
.header-landing .location-icon,
.header-landing .account-icon {
  color: #333;
}

.header-landing .cart-icon:hover,
.header-landing .location-icon:hover,
.header-landing .account-icon:hover {
  color: var(--gold);
}

/* Top Bar */
.top-bar {
  background: var(--gold);
  color: var(--white);
  text-align: center;
  padding: 10px 20px;
  font-size: 15px;
  letter-spacing: 1px;
  overflow: hidden;
  height: 38px;
}

.top-bar-slider {
  position: relative;
  height: 18px;
}

.top-bar-item {
  position: absolute;
  width: 100%;
  left: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.top-bar-item.active {
  opacity: 1;
  transform: translateY(0);
}

.top-bar-item.exit {
  opacity: 0;
  transform: translateY(-20px);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* Logo */
.logo {
  flex-shrink: 0;
}

.logo img {
  height: 80px;
  width: auto;
  transition: opacity 0.3s;
}

.logo:hover img {
  opacity: 0.8;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 35px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
  color: #333;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--gold);
}

.nav-links a.active::after {
  width: 100%;
}

/* Nav Right - Cart */
.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

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

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

.location-icon {
  color: #333;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

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

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

.account-icon {
  color: #333;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

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

.account-icon.active {
  color: var(--burgundy);
}

.cart-count {
  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;
}

/* Mobile Menu - Hidden by default */
.nav-links-mobile {
  display: none;
  list-style: none;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

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

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

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.menu-toggle.active .hamburger {
  background: transparent;
}

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

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

/* ============================
   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 {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: menu-counter;
}

.menu-nav > li {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  counter-increment: menu-counter;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.menu-nav > li::before {
  content: counter(menu-counter, decimal-leading-zero);
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
  min-width: 30px;
  flex-shrink: 0;
}

.menu-nav > li > a {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dark);
  transition: color 0.3s, transform 0.3s;
  display: block;
  text-decoration: none;
}

.menu-nav > li > a:hover {
  color: var(--gold);
  transform: translateX(10px);
}

.menu-fullscreen.active .menu-nav > li { opacity: 1; transform: translateY(0); }
.menu-fullscreen.active .menu-nav > li:nth-child(1) { transition-delay: 0.1s; }
.menu-fullscreen.active .menu-nav > li:nth-child(2) { transition-delay: 0.15s; }
.menu-fullscreen.active .menu-nav > li:nth-child(3) { transition-delay: 0.2s; }
.menu-fullscreen.active .menu-nav > li:nth-child(4) { transition-delay: 0.25s; }
.menu-fullscreen.active .menu-nav > li:nth-child(5) { transition-delay: 0.3s; }

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

/* ============================
   HERO SECTION
   ============================ */
.hero {
  padding-top: 100px;
}

.hero-content {
  width: 100%;
}

/* Illustration/Video Container */
.hero-illustration {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: auto;
  display: block;
}

/* Overlay with zones */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.hero-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Clickable Zones - Left and Right halves */
.hero-zone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.zone-left {
  background: rgba(139,13,55, 0.8);
}

.zone-right {
  background: rgba(139, 13, 55, 0.8);
}

.zone-title {
  font-size: 32px;
  letter-spacing: 8px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--white);
  transition: all 0.3s ease;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.zone-left:hover {
  background: rgba(139,13,55, 0.95);
}

.zone-right:hover {
  background: rgba(139, 13, 55, 0.95);
}

.hero-zone:hover .zone-title {
  transform: scale(1.1);
}

/* ============================
   FOOTER
   ============================ */
footer {
  color: var(--white);
  position: relative;
  z-index: 1;
}

/* Partie haute : colonnes menu / info — fond bordeaux */
.footer-main {
  background: var(--burgundy);
  padding: 60px 25px 50px;
  border-top: 1px solid #2d2b27;
}

/* Partie basse : newsletter + copyright — fond noir */
.footer-lower {
  background: #000;
  padding: 50px 25px 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h3 {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--white);
  font-weight: 500;
}

.footer-col p,
.footer-col a {
  font-size: 13px;
  color: var(--light-gray);
  line-height: 2;
  display: block;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

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

.social-links a:hover {
  color: #fff;
}

/* Newsletter */
.footer-newsletter p {
  margin-bottom: 15px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.3s, background 0.3s;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.35);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
}

.newsletter-form button {
  padding: 12px 20px;
  background: #ffffff;
  border: none;
  border-radius: 6px;
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: #f0eded;
}

.newsletter-success {
  display: none;
  color: var(--gold);
  font-size: 13px;
  margin-top: 10px;
}

.newsletter-success.show {
  display: block;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

/* Newsletter */
.footer-newsletter {
  text-align: center;
  padding: 0 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 600px;
  margin: 0 auto;
}

.footer-newsletter h3 {
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 10px;
  text-transform: none;
}

.footer-newsletter p {
  font-size: 13px;
  color: var(--light-gray);
  margin-bottom: 25px;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 450px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.35);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
}

.newsletter-form button {
  padding: 14px 28px;
  background: #ffffff;
  border: none;
  border-radius: 8px;
  color: var(--burgundy);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.newsletter-form button:hover {
  background: #f0eded;
  transform: translateY(-2px);
}

.newsletter-success {
  display: none;
  color: var(--gold);
  font-size: 14px;
  margin-top: 15px;
}

.newsletter-success.show {
  display: block;
}

/* ============================
   RESPONSIVE - TABLET
   ============================ */


@media (max-width: 900px) {
  .top-bar {
    padding: 8px 15px;
    font-size: 11px;
  }

  .navbar {
    padding: 10px 20px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  .logo img {
    height: 70px;
  }

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

  .footer-col:first-child {
    grid-column: 1 / -1;
  }
}

/* ============================
   RESPONSIVE - MOBILE
   ============================ */
@media (max-width: 768px) {
  .menu-fullscreen-content {
    padding: 100px 30px 40px;
  }

  .menu-nav > li > a {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .menu-nav > li {
    padding: 15px 0;
    gap: 20px;
  }

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

  /* Top Bar */
  .top-bar {
    padding: 8px 10px;
    font-size: 10px;
    height: 34px;
  }

  .top-bar-slider {
    height: 16px;
  }

  /* Navbar - Burger left, Logo center, Cart right */
  .navbar {
    padding: 10px 20px;
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    align-items: center;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
    order: 1;
    justify-self: start;
  }

  .logo {
    order: 2;
    justify-self: center;
  }

  .logo img {
    height: 70px;
  }

  .nav-right {
    order: 3;
    justify-self: end;
  }

  /* Homepage header — aligner le padding sur les autres pages en mobile */
  .header-landing .navbar {
    padding: 10px 20px;
  }

  /* Mobile Menu */
  .nav-links-mobile {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: left 0.4s ease;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .nav-links-mobile.active {
    left: 0;
  }

  .nav-links-mobile a {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #333;
    transition: color 0.3s;
  }

  .nav-links-mobile a:hover {
    color: var(--gold);
  }

  /* Hero */
  .hero {
    padding-top: 90px;
  }

  .zone-title {
    font-size: 22px;
    letter-spacing: 5px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col:first-child {
    grid-column: auto;
  }

  .social-links {
    justify-content: center;
  }

  /* Newsletter mobile */
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input[type="email"],
  .newsletter-form button {
    width: 100%;
  }
}

@media (max-width: 900px) and (min-width: 601px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================
   RESPONSIVE - SMALL MOBILE
   ============================ */
@media (max-width: 400px) {
  .top-bar {
    font-size: 9px;
  }

  .logo img {
    height: 60px;
  }

  .zone-title {
    font-size: 16px;
    letter-spacing: 3px;
  }
}

/* ============================
   UTILITIES
   ============================ */
body.menu-open {
  overflow: hidden;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
  z-index: 999;
}

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