/* ============================================================
   PIZZ'A LA FOLIE — style.css
   Nettoyé, sans doublons, syntaxe valide
   ============================================================ */

/* ── Variables globales ─────────────────────────────────── */
:root {
  --vert:       #32bc42;
  --rouge:      #bc3232;
  --rouge-prix: rgba(255, 0, 0, 0.75);
  --orange:     #ff5722;
  --fond-carte: rgba(77, 77, 77, 0.6);
  --fond-nav:   rgba(30, 30, 30, 0.92);
  --fond-header: rgba(30, 30, 30, 0.92);
  --blanc:      #ffffff;
  --header-h:   80px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Image de fond fixe ─────────────────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('images/fond-site.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

/* ── Voile sombre ───────────────────────────────────────── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.45);
  z-index: -1;
}

/* ── Body ───────────────────────────────────────────────── */
body {
  font-family: 'Lobster', cursive;
  background-color: transparent;
  color: var(--blanc);
  text-align: center;
  padding-top: var(--header-h);
}

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.pizza-name, nav ul li a, p, button {
  font-family: 'Lobster', cursive;
  letter-spacing: 1px;
}

h1 { font-size: 60px; font-weight: bold; }
h2 { font-size: 28px; color: var(--blanc); margin-top: 30px; }
h3 { font-size: 25px; color: var(--blanc); margin: 12px 0; }
h4 { font-size: 20px; color: var(--vert);  margin-top: 3px; }
h5 { font-size: 50px; color: var(--blanc); margin-top: 0; }
h6 { font-size: 28px; color: var(--blanc); margin-top: 5px; }

p  { font-size: 1rem; color: var(--blanc); margin: 6px 0; }

.title-green { color: var(--vert); }
.title-white { color: var(--blanc); }
.title-red   { color: var(--rouge); }

/* ============================================================
   HEADER FIXE
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--fond-header);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 10000;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

#logo {
  width: clamp(40px, 5vw, 60px);
  height: auto;
}

.site-title {
  display: flex;
  gap: 8px;
}

.site-title h1 {
  font-size: clamp(22px, 4vw, 34px);
  margin: 0;
}

/* ============================================================
   BOUTON BURGER — intégré dans le header, 2 barres
   ============================================================ */
#menu-toggle {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid var(--rouge);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
  /* plus de position:fixed, plus d'animation float */
}

#menu-toggle:hover {
  background: rgba(188, 50, 50, 0.15);
}

#menu-toggle span {
  width: 22px;
  height: 2.5px;
  background: var(--vert);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Croix quand ouvert — 2 barres qui se croisent */
#menu-toggle.active span:nth-child(1) {
  transform: translateY(5.25px) rotate(45deg);
}
#menu-toggle.active span:nth-child(2) {
  transform: translateY(-5.25px) rotate(-45deg);
}

/* Espace réservé à droite pour équilibrer le header (même largeur que le burger) */
.header-spacer {
  width: 44px;
  flex-shrink: 0;
}

/* ============================================================
   MENU LATÉRAL
   ============================================================ */
#main-nav {
  position: fixed;
  top: var(--header-h);
  left: -260px;
  width: 240px;
  height: calc(100vh - var(--header-h));
  background: rgba(30, 30, 30, 0.97);
  backdrop-filter: blur(10px);
  padding-top: 30px;
  transition: left 0.35s ease;
  z-index: 10001; /* au-dessus du header ET de l'overlay */
}

#main-nav.open { left: 0; }

#main-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 30px;
}

#main-nav a {
  color: var(--vert);
  font-size: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

#main-nav a:hover { color: var(--blanc); }

/* ── Overlay — sous le menu et sous le header ── */
#menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 9998; /* sous le header (10000) et sous le menu (10001) */
}

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

/* ============================================================
   SECTIONS
   ============================================================ */
section {
  padding: 50px;
  margin: 20px auto;
  width: 80%;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

/* ============================================================
   GRILLES
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 20px auto;
}

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

/* ============================================================
   CARTES PIZZA & BOISSON
   ============================================================ */
.pizza,
.boisson {
  background: var(--fond-carte);
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.pizza:hover,
.boisson:hover {
  transform: scale(1.05);
}

.pizza.active {
  box-shadow: 0 0 18px var(--vert);
  transform: scale(1.04);
}

/* Images */
.pizza img,
.boisson img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 10px;
}

/* ── Nom de pizza ────────────────────────────────────────── */
.pizza-name {
  font-size: 1.4rem;
  margin-top: 10px;
  color: var(--vert);
  transition: color 0.3s;
  position: relative;
}

.pizza-name:hover { color: #c61509; }

/* ── Détails (accordéon) ─────────────────────────────────── */
.details {
  display: none;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.5s ease;
}

.details.open {
  display: block;
  opacity: 1;
  max-height: 500px;
}

.prix {
  color: var(--rouge-prix);
  font-weight: bold;
}

/* ============================================================
   BOUTONS
   ============================================================ */
button {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 16px;
  font-family: 'Lobster', cursive;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background: rgba(255, 87, 34, 0.15);
  transform: scale(1.05);
}

button:active {
  background: rgba(255, 87, 34, 0.25);
  transform: scale(0.97);
}

/* ── Bouton appel ────────────────────────────────────────── */
.call-button {
  display: block;
  text-align: center;
  margin: 15px 0;
}

.call-button a {
  display: inline-block;
  background: #ff4500;
  color: var(--blanc);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.call-button a:hover { background: #cc3700; }

/* ── Bouton flottant appel ───────────────────────────────── */
.call-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--vert);
  color: var(--blanc);
  font-size: 26px;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  z-index: 999;
  animation: float-call 2s ease-in-out infinite;
}

@keyframes float-call {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ── Bouton Facebook ─────────────────────────────────────── */
.facebook-btn {
  display: inline-block;
  background: #1877F2;
  color: var(--blanc);
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.facebook-btn:hover { background: #145dbf; }

/* ── Boutons GPS ─────────────────────────────────────────── */
.btn-gps-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  justify-content: center;
}

.btn-gps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Lobster', cursive;
  border-radius: 8px;
  text-decoration: none;
  color: var(--blanc);
  transition: transform 0.3s, background 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-gps:hover { transform: scale(1.05); }
.btn-gps.maps  { background: #4285F4; }
.btn-gps.maps:hover { background: #3367d6; }
.btn-gps.waze  { background: #33ccff; }
.btn-gps.waze:hover { background: #00bfff; }
.btn-gps i { font-size: 18px; }

/* ── Prix boisson ────────────────────────────────────────── */
.price {
  font-size: 1.2em;
  color: var(--rouge-prix);
  font-weight: bold;
}

/* ============================================================
   CARTE LEAFLET
   ============================================================ */
#map {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  margin-top: 40px;
  padding: 20px;
  background: rgba(74, 73, 73, 0.7);
  color: var(--blanc);
  font-size: 14px;
}

/* ============================================================
   JOURS D'OUVERTURE
   ============================================================ */
.opening-hours-container { text-align: center; }

.jour {
  margin: 16px auto;
  max-width: 500px;
}

/* ============================================================
   SECTION CONTACT
   ============================================================ */
#contact p { margin: 10px 0; }

/* ============================================================
   RESPONSIVE — TABLETTE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  section {
    width: 95%;
    padding: 25px 15px;
  }

  h1 { font-size: 38px; }
  h2 { font-size: 22px; }
  h5 { font-size: 30px; }

  .grid            { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .grid-boissons   { grid-template-columns: repeat(2, 1fr); }
  .grid-moment     { grid-template-columns: repeat(2, 1fr); }

  .pizza img,
  .boisson img { max-height: 190px; }

  .pizza-name { font-size: 1.2rem; }
  .details p  { font-size: 0.9rem; }

  header img  { max-width: 18%; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .grid         { grid-template-columns: 1fr; }
  .grid-moment  { grid-template-columns: 1fr; }
  .grid-boissons { grid-template-columns: 1fr; }
  h1 { font-size: 30px; }
  h2 { font-size: 18px; }

  .pizza,
  .boisson      { padding: 8px; }

  .pizza img,
  .boisson img  { max-height: 240px; }

  button { width: 100%; }
}
