/* ========================================
   RESET & GLOBALS
======================================== */
@import "leaflet/dist/leaflet.css";

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9e9ec;
  color: #0b3d2e;
  line-height: 1.5;
  overflow-x: hidden; /* Évite débordement horizontal */
}

h1, h2, h3, h4 {
  font-weight: 600;
  color: #0b3d2e;
}

h11, h12, h13, h14 {
  color: #ffffff;
  font-weight: 600;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.8rem; margin-bottom: 12px; }
h3 { font-size: 1.3rem; margin-bottom: 8px; }
h4 { font-size: 1.1rem; margin-bottom: 6px; }
h11 { font-size: 2rem; }
h12 { font-size: 1.8rem; margin-bottom: 12px; }
h13 { font-size: 1.3rem; margin-bottom: 8px; }
h14 { font-size: 1.1rem; margin-bottom: 6px; }

p, small {
  font-weight: 400;
}

/* ========================================
   NAVBAR / HEADER
======================================== */
header {
  background-color: #0b3d2e;
  padding: 10px 20px;
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 600;
}

.logo img {
  border-radius: 30%;
}

.logo h1 {
  font-size: 1.5rem;
  color: white;
}

.logo small {
  font-size: 0.7rem;
  color: #ffffff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 14px;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  background-color: #e23030;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
  font-weight: 600;
  border-radius: 20px;
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
  text-align: center;
  user-select: none;
}

.white-btn {
  background-color: white;
  color: #0b3d2e;
  border: 1.5px solid #0b3d2e;
}

.white-btn:hover {
  background-color: #0b3d2e;
  color: white;
}

.red-btn {
  background-color: white;
  color: #e23030;
  border: 1.5px solid #e23030;
}

.red-btn:hover {
  background-color: #e23030;
  color: white;
}

/* ========================================
   LAYOUT UTILITY CLASSES
======================================== */
.btn-group {
  margin-top: 15px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-group-centered {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.mb-20 { margin-bottom: 20px; }

.fullwidth-btn {
  display: block;
  width: 100%;
  text-align: center;
}

/* ========================================
   ICON COLORS
======================================== */
.icon-red { color: #e23030; }
.icon-green { color: #36846e; }
.icon-pink { color: #f2aac6; }
.icon-orange { color: #eb7d24; }

/* ========================================
   PAGE SECTIONS
======================================== */
.page-section {
  max-width: 1100px;
  margin: 30px auto 60px;
  padding: 0 15px;
}

/* ========================================
   ACCUEIL
======================================== */
.accueil-section h2 {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.accueil-section p {
  font-size: 1.1rem;
  font-weight: 500;
}

.hero {
  background: linear-gradient(135deg, #0b3d2e 0%, #184e38 100%);
  color: white;
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
}

.advantages {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.row-3cards > article,
.row-2cards > div {
  background: white;
  padding: 25px 15px 30px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(200, 20, 30, 0.12);
  width: calc(33% - 20px);
  margin-bottom: 30px;
  text-align: center;
}

.advantages .card h3 {
  margin: 12px 0 6px;
}

.advantages .card p {
  font-size: 0.9rem;
}

.promo-banner {
  margin-top: 40px;
  border-radius: 10px;
  padding: 30px 20px;
  color: white;
  box-shadow: 0 10px 25px rgba(255, 50, 50, 0.3);
  text-align: center;
}

.red-banner {
  background-color: #e23030;
}

.red-banner > h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.red-banner p {
  margin-bottom: 15px;
}

.row-3cards > article i,
.steps-grid > div i {
  margin-bottom: 8px;
}

/* ========================================
   PIZZA SECTION
======================================== */
.pizza-section h2,
.livraison-section h2,
.horaires-section h2 {
  font-size: 2rem;
  margin-bottom: 8px;
  font-weight: 700;
  text-align: center;
}

.pizza-section p,
.livraison-section p,
.horaires-section p {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 500;
}

.pizza-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.pizza-card {
  background: white;
  box-shadow: 0 8px 18px rgba(200, 20, 30, 0.12);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}

.pizza-card:hover {
  transform: translateY(-6px);
}

.pizza-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.pizza-img-placeholder {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.price-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #e23030;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.pizza-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 12px 15px 6px;
  color: #0b3d2e;
}

.pizza-card p {
  font-size: 0.9rem;
  margin: 0 15px 15px;
  font-weight: 400;
  color: #444;
}

.delivery-banner {
  background-color: #0b3d2e;
  color: white;
  border-radius: 15px;
  padding: 18px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.delivery-banner i {
  font-size: 1.3rem;
}

/* ========================================
   LIVRAISON SECTION
======================================== */
.livraison-section .delivery-content {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.livraison-section .order-steps {
  width: 65%;
  margin: 40px auto;
}

.card-shadow {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(11, 61, 46, 0.15);
  padding: 25px 25px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-shadow:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(11, 61, 46, 0.25);
}

.card-header {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 18px;
  color: #0b3d2e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.red-dark {
  color: #ffffff;
}

.dark-green {
  color: #ffffff;
  text-align: center;
  display: flex;
  justify-content: center;
}

.card-green-light {
  background: linear-gradient(135deg, #b4e3d0, #d9f2e6);
  color: #0b3d2e;
  padding: 15px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  margin-bottom: 20px;
  border-left: 6px solid #0b3d2e;
}

.card-green-light small {
  background-color: #0b3d2e;
  color: white;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  position: absolute;
  top: 8px;
  left: 10px;
}

.card-green-light strong {
  margin-top: 5px;
  display: block;
  color: #166643;
}

.delivery-price-row {
  border-radius: 10px;
  background: #f7f9f8;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  color: #0b3d2e;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  transition: background-color 0.3s ease;
}

.delivery-price-row:hover {
  background-color: #eaf7f0;
}

.card-blue-light {
  background: linear-gradient(135deg, #c9e1fc, #e7f0ff);
  color: #ffffff;
  padding: 20px;
  border-radius: 15px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
  font-weight: 600;
}

.card-header i,
.card-blue-light i {
  font-size: 1.3rem;
  color: #e23030;
}

/* ========================================
   STEPS COMMANDE
======================================== */
.order-steps {
  background: #f1f5f9;
  border-radius: 15px;
  padding: 25px 20px 30px;
  margin-top: 20px;
  text-align: center;
}

.steps-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 10px;
  flex-wrap: wrap; /* Permet de passer en colonne sur mobile */
}

.step {
  max-width: 180px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
  padding: 15px 10px 25px;
}

.step h4 {
  margin: 12px 0 6px;
  color: #0b3d2e;
}

.step small {
  font-size: 0.9rem;
  color: #555;
}

.step i {
  margin-bottom: 10px;
}

/* ========================================
   HORAIRES & CONTACT
======================================== */
.horaires-contact {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.horaires-contact > div {
  width: 380px;
}

.horaires ul {
  list-style: none;
}

.horaires ul li {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-weight: 600;
}

.alert-box {
  background-color: #f9e1ea;
  color: #b12132;
  padding: 10px 15px;
  border-radius: 10px;
  margin-top: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.horaires-header {
  color: white;
}

.horaires-list li {
  color: #0b3d2e;
}

.contact-list.left-align {
  text-align: left;
}

.contact-header {
  color: white;
}

.contact-items li {
  color: #0b3d2e;
  display: flex;
  align-items: center;
}

.contact-list {
  list-style: none;
  color: white;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 600;
}

.contact-list li strong {
  display: block;
  flex-basis: 110px;
  color: #0b3d2e;
}

.contact-list li i.icon-pink { color: #f2aac6; }
.contact-list li i.icon-red { color: #e23030; }
.contact-list li i.icon-green { color: #36846e; }

/* ========================================
   EASY ORDER BOX
======================================== */
.easy-order {
  background-color: #f9e1ea;
  color: #0b3d2e;
  border-radius: 15px;
  padding: 25px 30px;
  margin-top: 40px;
  text-align: center;
  font-weight: 500;
}

.easy-order h3 {
  font-size: 20px;
}

/* ========================================
   FOOTER
======================================== */
footer {
  background-color: #0b3d2e;
  color: white;
  padding: 30px 20px;
  text-align: center;
}

footer .footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

footer .footer-col {
  flex: 1;
  min-width: 200px;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer small {
  display: block;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #d0f0e0;
}

/* ========================================
   ANIMATIONS
======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.page-section,
.hero,
.promo-banner {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(0.16, 0.8, 0.25, 1);
}

.page-section.visible,
.hero.visible,
.promo-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE (PC & MOBILE)
======================================== */
/* Grossir sur PC */
@media (min-width: 1024px) {
  html {
    font-size: 18px;
    zoom: 110%;
  }
}

/* Adapter sur mobile */
@media (max-width: 767px) {
  html {
    font-size: 16px;
    zoom: 100%;
  }

  body {
    padding: 0 10px; /* Petit padding pour éviter les bords */
  }

  /* Header responsive */
  header {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 1em !important;
  }

  header .logo-container {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 0.5em !important;
  }
}


/* Afficher uniquement sur écran téléphone (<= 768px) */
@media (max-width: 768px) {

  /* Organisation verticale des cartes (première photo) */
  .advantages, 
  .row-3cards > article, 
  .row-2cards > div {
    flex-direction: column !important;
    width: 90% !important;
    max-width: 350px;
    margin: 10px auto !important;
    text-align: center !important;
    box-sizing: border-box;
  }

  .advantages {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 0 10px !important;
  }

  /* Empilage vertical des images carte livraison (deuxième photo) */
  .livraison-section .delivery-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 0 10px !important;
    width: 100%;
    box-sizing: border-box;
  }

  .livraison-section .delivery-content > div {
    width: 100% !important;
    max-width: 400px !important;
  }

  /* Ajustement cartes prix et carte map */
  .livraison-section .card-shadow,
  .livraison-section iframe {
    width: 100% !important;
    max-width: 400px !important;
    box-sizing: border-box;
    margin: 0 auto 15px;
  }
}
/* CONTENEUR DES COLONNES */
.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap; /* ✅ permet le retour à la ligne sur petit écran */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1em;
}

/* CHAQUE COLONNE */
.footer-col {
  flex: 1 1 200px; /* ✅ colonne flexible et minimum 200px de large */
  min-width: 200px;
}

/* COPYRIGHT */
footer small {
  display: block;
  margin-top: 1em;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* VERSION MOBILE */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column; /* ✅ empile les colonnes */
    align-items: center;
    text-align: center;
  }

  .footer-col {
    width: 100%;
  }

  footer {
    font-size: 0.9rem;
    padding: 2em 1em;
  }
}
/* ===== Navbar responsive et simple ===== */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0b3b2e;
  color: white;
  padding: 0.8em 1em;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.logo img {
  border-radius: 8px;
}

.logo-text h1 {
  font-size: 1.3rem;
  margin: 0;
}

.logo-text small {
  font-size: 0.8rem;
  color: #ccc;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5em;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.nav-link:hover {
  color: #ffb400;
}

/* ===== Mode téléphone ===== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    margin-top: 1em;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1em;
  }

  .nav-links li {
    padding: 0.5em 0;
  }
}