/* ==========================================================================
   PIZZA — Site vitrine luxe / chic
   Palette : noir profond + or champagne + blanc cassé
   ========================================================================== */

:root {
  --bg: #0e0b08;
  --bg-soft: #17120d;
  --gold: #d4a853;
  --gold-light: #e8c67a;
  --cream: #f5efe4;
  --text: #e9e2d4;
  --muted: #a89b84;
  --line: rgba(212, 168, 83, 0.25);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.14);
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  --serif: "Georgia", "Times New Roman", serif;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ==========================================================================
   NAVBAR — transparente (fond visible) avec flou au scroll
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: padding 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: 2px;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo .mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.35s ease;
}

.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-cta {
  padding: 11px 24px;
  border: 1px solid var(--gold);
  border-radius: 40px;
  color: var(--gold) !important;
  transition: all 0.3s !important;
}
.nav-cta:hover { background: var(--gold); color: #1a120a !important; }
.nav-cta::after { display: none !important; }

/* navbar scrollée */
.navbar.scrolled {
  background: rgba(14, 11, 8, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
}
.hamburger span {
  width: 26px; height: 2px;
  background: var(--cream);
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.15); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 7, 4, 0.55), rgba(10, 7, 4, 0.85));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 0 20px;
}

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 1s ease 0.2s forwards;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  color: var(--cream);
  margin-bottom: 22px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeUp 1s ease 0.45s forwards;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 560px;
  margin: 0 auto 34px;
  opacity: 0;
  animation: fadeUp 1s ease 0.7s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  border-radius: 40px;
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s;
  border: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a120a;
  box-shadow: 0 12px 30px rgba(212, 168, 83, 0.35);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(212, 168, 83, 0.5); }

.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  color: var(--cream);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--cream);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 12px); }
}

/* ==========================================================================
   SECTIONS GÉNÉRIQUES
   ========================================================================== */

.section { padding: 100px 0; position: relative; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }

.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--cream);
  margin-bottom: 16px;
}

.section-head p { color: var(--muted); }

.divider {
  width: 60px; height: 2px;
  background: var(--gold);
  margin: 20px auto 0;
}

/* ==========================================================================
   GLASSMORPHISM — cartes
   ========================================================================== */

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 18px;
}

/* ==========================================================================
   SERVICES — cartes hover 3D
   ========================================================================== */

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

.service-card {
  position: relative;
  perspective: 1000px;
}

.service-card-inner {
  position: relative;
  padding: 40px 30px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s;
  transform-style: preserve-3d;
  height: 100%;
}

.service-card:hover .service-card-inner {
  transform: translateY(-12px) rotateX(6deg) rotateY(-4deg);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(212, 168, 83, 0.12);
  border-color: var(--gold);
}

.service-icon {
  width: 62px; height: 62px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212, 168, 83, 0.12);
  color: var(--gold);
  margin-bottom: 22px;
  transition: transform 0.5s;
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-5deg); }

.service-card h3 {
  font-size: 1.4rem;
  color: var(--cream);
  margin-bottom: 12px;
}

.service-card p { color: var(--muted); font-size: 0.95rem; }

/* ==========================================================================
   MENU / CARTE — items avec photos
   ========================================================================== */

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.menu-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  transition: transform 0.5s, box-shadow 0.5s;
}

.menu-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  border-color: var(--gold);
}

.menu-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.6s;
}
.menu-card:hover img { transform: scale(1.08); }

.menu-card-body { padding: 24px; }

.menu-card-body h3 {
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-price { color: var(--gold); font-family: var(--serif); font-size: 1.15rem; }

.menu-card-body p { color: var(--muted); font-size: 0.9rem; }

.menu-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(212, 168, 83, 0.15);
  color: var(--gold);
}

/* ==========================================================================
   GALERIE
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.7s;
}
.gallery-item:hover img { transform: scale(1.12); }

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.gallery-item:hover::after { opacity: 1; }

/* ==========================================================================
   CTA BANDEAU
   ========================================================================== */

.cta-banner {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.12), rgba(212, 168, 83, 0.02));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 70px 40px;
  text-align: center;
}
.cta-banner h2 { color: var(--cream); margin-bottom: 14px; }
.cta-banner p { color: var(--muted); margin-bottom: 30px; }

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.contact-info-item svg { color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.contact-info-item h4 { color: var(--cream); margin-bottom: 4px; font-size: 1.05rem; }
.contact-info-item p { color: var(--muted); }

.contact-form {
  padding: 36px;
  border-radius: 18px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--cream);
  font-size: 0.95rem;
  transition: border-color 0.3s, background 0.3s;
  font-family: var(--sans);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.07);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.form-success {
  display: none;
  padding: 16px;
  border-radius: 10px;
  background: rgba(70, 160, 90, 0.15);
  border: 1px solid rgba(70, 160, 90, 0.4);
  color: #9fe0af;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.map-wrap {
  margin-top: 60px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}
.map-wrap iframe { width: 100%; height: 400px; border: 0; display: block; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  background: #0a0705;
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--cream);
  font-size: 1.05rem;
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.footer-col p { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
.footer-col a { color: var(--muted); font-size: 0.9rem; display: block; margin-bottom: 10px; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ==========================================================================
   PAGE HERO (sous-pages)
   ========================================================================== */

.page-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.page-hero .hero-bg { animation: none; }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--cream);
  position: relative;
  z-index: 2;
}
.page-hero .hero-kicker { position: relative; z-index: 2; }

/* ==========================================================================
   REVEAL
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Fallback : force l'apparition même si l'observer ne se déclenche pas */
@keyframes revealFallback { to { opacity: 1; transform: translateY(0); } }
.reveal { animation: revealFallback 0.9s ease 0.5s forwards; }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  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; border-radius: 8px; }
.lightbox-close {
  position: absolute;
  top: 24px; right: 30px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 992px) {
  .services-grid, .menu-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: rgba(14, 11, 8, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transition: right 0.4s ease;
    z-index: 1050;
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; }

  .section { padding: 70px 0; }
  .services-grid, .menu-grid, .gallery-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.4rem; }
  .menu-card img, .gallery-item img { height: 220px; }
}
