/* ==================================================
   BASE & RESET (SEO + PERFORMANCE)
================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Liens accessibles */
a {
  text-decoration: none;
  color: inherit;
}

/* ==================================================
   NAVIGATION (FIXE, LÉGÈRE)
================================================== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  font-weight: 500;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  display: none;
  min-width: 200px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.dropdown-menu a {
  color: #000;
  display: block;
  padding: 10px 20px;
}

.dropdown-menu a:hover {
  background: #f2f2f2;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* ==================================================
   HERO / BANNIÈRE (LCP optimisé)
================================================== */
header {
  width: 100%;
}

.banner {
  min-height: 90vh;
  background: url('images/banner.jpg') center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.2s ease-out;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero {
  position: relative;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.hero p {
  margin: 20px 0;
}

/* Bouton CTA */
.btn {
  display: inline-block;
  background: #e63946;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
}

/* ==================================================
   SECTIONS (STRUCTURE SEO)
================================================== */
section {
  padding: 80px 20px;
  max-width: 1100px;
  margin: auto;
}

section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
}

.pizza-category {
  margin: 50px 0 20px;
  font-size: 1.6rem;
  text-align: center;
  color: #c0392b;
}

/* ==================================================
   MENU & CARTES (UX + CLS SAFE)
================================================== */
.menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.pizza {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.pizza:hover {
  transform: translateY(-5px);
}

.pizza img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 10px;
}

.pizza h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.ingredients {
  font-size: 0.9rem;
  color: #555;
  margin: 8px 0 12px;
}

.price {
  color: #e63946;
  font-weight: 700;
  font-size: 1.1rem;
}


/* ==================================================
   MAP
================================================== */
.map-section {
  text-align: center;
}

.map-section iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 20px;
  margin-top: 30px;
}

/* ==================================================
   FOOTER
================================================== */
footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 30px 15px;
}

/* ==================================================
   RESPONSIVE (MOBILE FIRST)
================================================== */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 10px;
  }

  .banner {
    min-height: 70vh;
  }
}

@media (max-width: 480px) {
  section {
    padding: 60px 15px;
  }
}
