/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #000000;
  --white: #ffffff;
  --light: #F7F7F7;
  --gray: #e8e8e8;
  --gray-mid: #888888;
  --accent: #1a1a1a;
  --font-main: 'Montserrat', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --transition: 0.3s ease;
  --radius: 4px;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background-color: var(--light);
  color: var(--black);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 0.5rem; }

p { color: #333; line-height: 1.8; }

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-mid);
  display: block;
  margin-bottom: 0.75rem;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 6rem 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--black);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  border-radius: var(--radius);
}

.btn:hover {
  background: transparent;
  color: var(--black);
}

.btn-outline {
  background: transparent;
  color: var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.btn:hover svg { transform: translateX(4px); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: var(--white);
  padding: 0.85rem 0;
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

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

.navbar-logo img {
  height: 50px;
  width: auto;
  transition: filter var(--transition);
}

.navbar:not(.scrolled) .navbar-logo img { filter: brightness(0) invert(1); }

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

.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  transition: opacity var(--transition);
  position: relative;
}

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

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

.navbar:not(.scrolled) .nav-links a { color: var(--white); }
.navbar:not(.scrolled) .nav-links a::after { background: var(--white); }

.nav-cta {
  font-size: 0.78rem;
  padding: 0.6rem 1.4rem;
}

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

.navbar.scrolled .hamburger span { background: var(--black); }

.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 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/mamzelle-pizza.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero.loaded .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 1.5rem;
  animation: fadeUp 0.8s ease forwards;
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.85);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.85);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.8);
  max-width: 550px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce 2s infinite;
}

.hero-scroll svg { width: 20px; height: 20px; }

/* ===== WELCOME SECTION ===== */
.welcome {
  background: var(--white);
  padding: 7rem 0;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.welcome-img-wrap {
  position: relative;
}

.welcome-img-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 2px;
}

.welcome-img-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--black);
  color: var(--white);
  padding: 1.5rem;
  text-align: center;
  min-width: 130px;
}

.welcome-img-badge .year {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.welcome-img-badge .label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: block;
  margin-top: 0.25rem;
}

.welcome-text { }

.welcome-text .section-tag { margin-bottom: 1rem; }

.welcome-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--gray);
  border-bottom: 1px solid var(--gray);
}

.stat-item { text-align: center; }

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

/* ===== PIZZERIAS SECTION ===== */
.pizzerias {
  background: var(--light);
  padding: 7rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header p {
  max-width: 600px;
  margin: 1rem auto 0;
  color: var(--gray-mid);
}

.pizzerias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.pizzeria-card {
  background: var(--white);
  border: 1px solid var(--gray);
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.pizzeria-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--black);
  transition: width var(--transition);
}

.pizzeria-card:hover::before { width: 100%; }
.pizzeria-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }

.card-number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gray-mid);
  margin-bottom: 0.75rem;
  display: block;
}

.pizzeria-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.card-detail {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: #555;
  margin-bottom: 0.4rem;
}

.card-detail svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gray-mid);
}

.card-badge {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--light);
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
}

.card-badge.soon {
  background: var(--black);
  color: var(--white);
}

.pizzerias-cta {
  text-align: center;
}

/* ===== CHAMPIONS SECTION ===== */
.champions {
  background: var(--black);
  color: var(--white);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}

.champions-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: clamp(5rem, 15vw, 14rem);
  font-weight: 700;
  color: rgba(255,255,255,0.03);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.champions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.champions-text .section-tag { color: rgba(255,255,255,0.5); }
.champions-text h2 { color: var(--white); margin-bottom: 1.5rem; }
.champions-text p { color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; }

.awards-list {
  list-style: none;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.awards-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}

.award-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.champions-img-wrap {
  position: relative;
}

.champions-img-main {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 2px;
  opacity: 0.9;
}

.champions-img-overlay {
  position: absolute;
  bottom: 2rem;
  left: -2rem;
  background: var(--white);
  color: var(--black);
  padding: 1.5rem 2rem;
  max-width: 280px;
}

.champions-img-overlay .award-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.champions-img-overlay .award-desc {
  font-size: 0.78rem;
  color: var(--gray-mid);
  line-height: 1.5;
}

.btn-white {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

.btn-white:hover {
  background: transparent;
  color: var(--white);
}

/* ===== FORMATION SECTION ===== */
.formation {
  background: var(--white);
  padding: 7rem 0;
}

.formation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.formation-text { order: 1; }
.formation-visual { order: 2; }

.formation-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.feature-card {
  background: var(--light);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.feature-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.8rem;
  color: var(--gray-mid);
  line-height: 1.5;
}

.formation-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: var(--light);
  padding: 7rem 0;
}

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

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 2.5rem; color: var(--gray-mid); }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius);
}

.contact-icon svg { width: 18px; height: 18px; }

.contact-item-text strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 0.2rem;
}

.contact-item-text span, .contact-item-text a {
  font-size: 0.95rem;
  color: var(--black);
  font-weight: 500;
}

.contact-item-text a:hover { text-decoration: underline; }

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: all var(--transition);
  color: var(--black);
}

.social-link:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.social-link svg { width: 18px; height: 18px; }

/* Contact Map */
.contact-map {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  overflow: hidden;
}

.map-placeholder {
  height: 260px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--gray-mid);
}

.map-placeholder svg { width: 32px; height: 32px; opacity: 0.4; }

.contact-form {
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  border: 1px solid var(--gray);
  background: var(--light);
  color: var(--black);
  border-radius: var(--radius);
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--black);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit { width: 100%; justify-content: center; }

/* ===== FOOTER ===== */
footer {
  background: var(--black);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.footer-brand img {
  height: 55px;
  width: auto;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}

.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ===== ANIMATIONS ===== */
@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(8px); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .welcome-grid,
  .champions-grid,
  .formation-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

  .pizzerias-grid { grid-template-columns: repeat(2, 1fr); }

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

  .champions-img-overlay { left: 1rem; }

  .formation-text { order: 1; }
  .formation-visual { order: 2; }

  .welcome-img-badge { right: 1rem; }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: right var(--transition);
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .nav-links.open { right: 0; }
  .nav-links a { color: var(--black) !important; font-size: 1rem; }
  .nav-links a::after { background: var(--black) !important; }

  .hamburger { display: flex; z-index: 1001; }

  .nav-cta { display: none; }

  .pizzerias-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }

  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.8rem); }

  .welcome-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }

  .champions-img-overlay { position: static; margin-top: 1rem; max-width: 100%; left: 0; }

  .form-row { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .welcome-stats { grid-template-columns: 1fr; }
  .formation-cards { grid-template-columns: 1fr; }
}

/* ===== GALERIE ===== */
.galerie {
  padding: 5rem 0;
  background: var(--white);
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.galerie-item {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  background: var(--gray);
  cursor: pointer;
}

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
  filter: brightness(0.95);
}

.galerie-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  background: none;
  border: none;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.7;
  padding: 0.5rem;
  transition: opacity 0.2s;
  line-height: 1;
}

.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

@media (max-width: 900px) {
  .galerie-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .galerie-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
}
