/* ===== ART — Pizzeria Haut de Gamme ===== */
:root {
  --black: #0a0a0a;
  --dark: #111111;
  --gold: #c9a96e;
  --gold-light: #e0c48a;
  --white: #f5f0eb;
  --gray: #8a8580;
  --cream: #faf7f3;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--black); z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hide { opacity: 0; visibility: hidden; }
.preloader { animation: hidePreloader 0.6s ease 1s forwards; }
@keyframes hidePreloader { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.preloader-ring {
  width: 50px; height: 50px; border: 2px solid transparent;
  border-top-color: var(--gold); border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 20px 5%;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.4s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  padding: 14px 5%;
  box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 700; color: var(--gold);
  text-decoration: none; letter-spacing: 4px; text-transform: uppercase;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--white); text-decoration: none; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase; font-weight: 500;
  position: relative; transition: color 0.3s;
  font-family: 'Inter', sans-serif;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  width: 28px; height: 20px; justify-content: center; z-index: 1002;
}
.hamburger span {
  display: block; height: 1.5px; background: var(--white);
  transition: all 0.3s ease; width: 100%;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translateY(6.5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translateY(-6.5px); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
  background: rgba(10,10,10,0.98); z-index: 1001;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 30px; transition: right 0.4s ease;
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  color: var(--white); text-decoration: none; font-size: 24px;
  letter-spacing: 4px; text-transform: uppercase; font-weight: 600;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--gold); }

/* ===== HERO ===== */
.hero {
  height: 100vh; width: 100%; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: url('https://images.unsplash.com/photo-1513104890138-7c749659a591?w=1600') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.7) 50%, rgba(10,10,10,0.95) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: 0 20px; max-width: 800px;
}
.hero-label {
  font-family: 'Inter', sans-serif; font-size: 12px;
  letter-spacing: 6px; text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px; opacity: 0; animation: fadeUp 1s ease 0.3s forwards;
}
.hero-title {
  font-size: clamp(42px, 8vw, 90px); font-weight: 700;
  line-height: 1.05; margin-bottom: 20px;
  opacity: 0; animation: fadeUp 1s ease 0.5s forwards;
}
.hero-title span { color: var(--gold); font-style: italic; }
.hero-subtitle {
  font-family: 'Inter', sans-serif; font-size: 16px;
  color: var(--gray); letter-spacing: 2px; margin-bottom: 40px;
  opacity: 0; animation: fadeUp 1s ease 0.7s forwards;
}
.hero-btn {
  display: inline-block; padding: 16px 48px;
  border: 1px solid var(--gold); color: var(--gold);
  text-decoration: none; font-family: 'Inter', sans-serif;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  transition: all 0.4s ease;
  opacity: 0; animation: fadeUp 1s ease 0.9s forwards;
}
.hero-btn:hover {
  background: var(--gold); color: var(--black);
}

.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 2; animation: bounce 2s ease infinite;
}
.scroll-indicator svg { width: 24px; height: 24px; stroke: var(--gold); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== SECTION COMMONS ===== */
section { padding: 100px 5%; }

.section-label {
  font-family: 'Inter', sans-serif; font-size: 11px;
  letter-spacing: 5px; text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 5vw, 52px); font-weight: 700;
  margin-bottom: 20px; line-height: 1.15;
}
.section-line {
  width: 60px; height: 1px; background: var(--gold); margin-bottom: 50px;
}
.section-line.center { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  animation: revealFallback 0.8s ease 0.3s forwards;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
  animation: none;
}
@keyframes revealFallback {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== ABOUT / A PROPOS ===== */
.about { background: var(--dark); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; max-width: 1200px; margin: 0 auto;
}
.about-img-wrap {
  position: relative; overflow: hidden;
}
.about-img-wrap img {
  width: 100%; height: 500px; object-fit: cover;
  filter: brightness(0.9);
}
.about-img-accent {
  position: absolute; top: -15px; left: -15px;
  width: 100px; height: 100px; border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}
.about-text p {
  font-size: 17px; color: var(--gray); margin-bottom: 20px;
  font-family: 'Inter', sans-serif; line-height: 1.8;
}
.about-text .highlight {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; color: var(--white); font-style: italic;
  margin-bottom: 30px; line-height: 1.5;
}

/* ===== MENU / CARTE ===== */
.menu { background: var(--black); }
.menu-categories {
  display: flex; justify-content: center; gap: 20px;
  flex-wrap: wrap; margin-bottom: 50px;
}
.menu-cat-btn {
  padding: 10px 28px; border: 1px solid rgba(201,169,110,0.3);
  background: transparent; color: var(--white); cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase;
  transition: all 0.3s ease;
}
.menu-cat-btn:hover, .menu-cat-btn.active {
  border-color: var(--gold); background: var(--gold); color: var(--black);
}
.menu-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px; max-width: 1200px; margin: 0 auto;
}
.menu-card {
  background: var(--dark); overflow: hidden; position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.menu-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.menu-card-img {
  width: 100%; height: 260px; object-fit: cover;
  transition: transform 0.6s ease;
}
.menu-card:hover .menu-card-img { transform: scale(1.05); }
.menu-card-body { padding: 24px; }
.menu-card-name {
  font-size: 22px; font-weight: 600; margin-bottom: 8px;
}
.menu-card-desc {
  font-family: 'Inter', sans-serif; font-size: 13px;
  color: var(--gray); margin-bottom: 14px; line-height: 1.6;
}
.menu-card-price {
  font-size: 20px; color: var(--gold); font-weight: 700;
}
.menu-card-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--gold); color: var(--black);
  font-family: 'Inter', sans-serif; font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 12px; font-weight: 700;
}

/* ===== EMPORTER ===== */
.emporter { background: var(--dark); }
.emporter-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 30px; max-width: 1000px; margin: 0 auto;
}
.emporter-card {
  text-align: center; padding: 50px 30px;
  border: 1px solid rgba(201,169,110,0.15);
  transition: all 0.4s ease;
}
.emporter-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
}
.emporter-icon {
  margin-bottom: 24px;
}
.emporter-icon svg {
  width: 48px; height: 48px; stroke: var(--gold); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.emporter-card h3 {
  font-size: 20px; margin-bottom: 12px; font-weight: 600;
}
.emporter-card p {
  font-family: 'Inter', sans-serif; font-size: 14px;
  color: var(--gray); line-height: 1.7;
}

/* ===== GALLERY ===== */
.gallery { background: var(--black); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px; max-width: 1200px; margin: 0 auto;
}
.gallery-item {
  overflow: hidden; position: relative; cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 300px; object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: brightness(0.85);
}
.gallery-item:hover img {
  transform: scale(1.08); filter: brightness(1);
}
.gallery-item-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10,10,10,0.4); display: flex;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay svg {
  width: 32px; height: 32px; stroke: var(--white); fill: none;
  stroke-width: 1.5;
}

/* Lightbox */
.lightbox {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.95); display: flex;
  align-items: center; justify-content: center;
  z-index: 9999; opacity: 0; transition: opacity 0.3s;
}
.lightbox.active { opacity: 1; }
.lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 20px; right: 30px;
  color: #fff; font-size: 36px; cursor: pointer;
  transition: color 0.3s;
}
.lightbox-close:hover { color: var(--gold); }

/* ===== CONTACT ===== */
.contact { background: var(--dark); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 50px; max-width: 1200px; margin: 0 auto;
}
.contact-info-list { list-style: none; }
.contact-info-list li {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 28px;
}
.contact-info-list svg {
  width: 22px; height: 22px; stroke: var(--gold); fill: none;
  stroke-width: 1.5; flex-shrink: 0; margin-top: 3px;
}
.contact-info-list .label {
  font-family: 'Inter', sans-serif; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gray);
  margin-bottom: 4px;
}
.contact-info-list .value {
  font-size: 17px; color: var(--white);
}
.contact-map {
  width: 100%; height: 100%; min-height: 350px;
  border: none; filter: grayscale(0.8) brightness(0.8) contrast(1.1);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--black); border-top: 1px solid rgba(201,169,110,0.15);
  padding: 40px 5%; text-align: center;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif; font-size: 22px;
  color: var(--gold); letter-spacing: 4px; text-transform: uppercase;
  margin-bottom: 16px; font-weight: 700;
}
.footer p {
  font-family: 'Inter', sans-serif; font-size: 12px;
  color: var(--gray); letter-spacing: 1px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap img { height: 400px; }
  .menu-grid { grid-template-columns: 1fr 1fr; }
}

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

  section { padding: 70px 5%; }

  .hero-title { font-size: clamp(36px, 10vw, 52px); }

  .menu-grid { grid-template-columns: 1fr; }
  .emporter-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item img { height: 200px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { min-height: 280px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: 250px; }
  .menu-categories { gap: 10px; }
  .menu-cat-btn { padding: 8px 18px; font-size: 11px; }
}
