/* Polices Halenoir */
@font-face {
  font-family: "Halenoir Compact";
  src: url("./fonts/HalenoirCompact-Black.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Halenoir medium";
  src: url("./fonts/HalenoirCompact-Medium.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Halenoir regular";
  src: url("./fonts/HalenoirCompactText-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  background-color: #fffbf3;
  color: #2e2154;
  font-size: 1.4rem;
  line-height: 1.8;
}

/* Header Hero */
.hero {
  background-image: url(/img/PHOTO-2025-05-20-13-53-56_2.jpg);
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fffbf3;
  text-align: center;
  position: relative;
  padding: 0 1rem;
  font-family: "Halenoir Compact", sans-serif;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 3px;
}

.hero p {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

/* Responsive Hero */
@media (max-width: 992px) {
  .hero h1 { font-size: 3.5rem; }
  .hero p { font-size: 1.5rem; }
}
@media (max-width: 600px) {
  .hero { height: 70vh; padding: 0 2rem; border-radius: 0; }
  .hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
  .hero p { font-size: 1.2rem; margin-bottom: 1rem; }
}

/* ========== NAVBAR & MEGA MENU (modèle uniforme) ========== */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: #f9f6ef;
  font-family: "Halenoir medium", sans-serif;
}

.navbar .menu {
  list-style: none;
  display: flex;
  gap: 3rem;
  padding: 0;
  margin: 0;
}

.navbar .menu > li {
  position: relative;
}

.navbar .menu > li > a {
  text-decoration: none;
  color: #2e2154;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.4rem;
}

/* Méga menu centré et contenu contenu */
.megamenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f9f6ef;
  padding: 2rem 3rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 999;
  max-width: 1200px;
  width: 90vw;
  box-sizing: border-box;
  gap: 3rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Colonnes */
.megamenu-column {
  flex: 1 1 200px;
  min-width: 180px;
}

.megamenu-column h4 {
  font-size: 1.2rem;
  font-family: "Halenoir Compact", sans-serif;
  margin-bottom: 1rem;
}

.megamenu-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.megamenu-column ul li {
  margin-bottom: 0.5rem;
}

.megamenu-column ul li a {
  text-decoration: none;
  color: #2e2154;
  font-family: "Halenoir Regular", sans-serif;
  font-size: 1.1rem;
}

/* Survol */
.navbar .menu > li:hover .megamenu {
  display: flex;
}

/* -------------------- Desktop -------------------- */
@media (min-width: 769px) {
  .has-megamenu:hover .megamenu {
    display: flex;
  }

  .megamenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f9f6ef;
    padding: 2rem 3rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 999;
    max-width: 1200px;
    width: 90vw;
    box-sizing: border-box;
    gap: 3rem;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

/* -------------------- Mobile -------------------- */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
  }

  .navbar .menu {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .navbar .menu > li {
    width: 100%;
  }

  .navbar .menu > li > a {
    display: block;
    width: 100%;
    font-size: 1.2rem;
    background: none;
    border: none;
  }

  .megamenu {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
    background-color: #f9f6ef;
    padding: 0 1rem;
  }

  .has-megamenu.open .megamenu {
    max-height: 2000px; /* suffit pour afficher tout */
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .megamenu-column {
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .megamenu-column h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .megamenu-column ul li a {
    font-size: 1rem;
    padding: 0.3rem 0;
    display: block;
  }
}




/* =================== PRODUITS =================== */
.products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 0 1rem;
}

.product {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 350px;
  width: 100%;
  margin: 2rem auto;
  padding: 0;
  border: none;
}
.product img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 10px 10px 0 0;
  box-shadow: none;
  background: none;
  border: none;
}
.product p {
  font-weight: bold;
  font-family: "Halenoir Regular", sans-serif;
  font-size: 1rem;
  color: #2e2154;
  margin: 0.8rem 0 0.5rem;
  text-align: center;
  padding: 0;
  background: none;
}
/* Responsive Products */
@media (max-width: 900px) {
  .products-grid { gap: 1.2rem; }
}
@media (max-width: 600px) {
  .products-grid { gap: 0.8rem; padding: 0; }
  .product { max-width: 98vw; }
}

/* ========== Footer ========== */
footer {
  background-color: #ffffff;
  padding: 2.5rem;
  font-size: 1.2rem;
  font-family: Arial, sans-serif;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.map-container {
  flex: 1;
  min-width: 300px;
  max-width: 900px;
  border: 2px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
}
.newsletter-fixed {
  background-color: #ffffff;
  border: 1px solid #ccc;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  max-width: 300px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.newsletter-fixed .newsletter-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #000;
  text-align: center;
}
.newsletter-fixed input[type="email"] {
  width: 100%;
  padding: 10px;
  font-size: 13px;
  border: 1px solid #bbb;
  border-radius: 6px;
  outline: auto;
}
.newsletter-fixed input[type="email"]::placeholder { color: #999; }

/* Bas pied de page : texte + logo */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-content {
  flex: 1;
  min-width: 300px;
}
.logo img {
  max-width: 400px;
  height: auto;
  margin-left: auto;
  margin-bottom: -150px;
  width: 100%;
  display: block;
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-content {
    width: 100%;
    margin-bottom: 2rem;
    text-align: center;
  }
  .logo img {
    margin: 0 auto;
    max-width: 250px;
  }
}
@media (max-width: 480px) {
  .newsletter-fixed { max-width: 100%; }
  .footer-content p {
    font-size: 1rem;
    padding: 0 1rem;
  }
  .logo img {
    max-width: 180px;
  }
}

/* Titres */
.section h2,
.section h3,
.section h1 {
    margin-left: 2rem;
}

.product-title {
  text-align: center;
  font-weight: bold;
  font-family: "Halenoir Compact", Arial, sans-serif;
  font-size: 1.1rem;
  color: #241f47;
  background: none;
  margin: 1.7rem 0 1.1rem 0;
  padding: 0;
  letter-spacing: 0;
}

.catgorie-title {
  font-weight: bold;
  font-family: "Halenoir Regular", sans-serif;
  font-size: 2rem;
  color: #2e2154;
  margin-left: 3rem;
}

.product img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  margin: 0;
}

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  font-size: 1.5rem;
  background-color: #2e2154;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

#scrollTopBtn:hover {
  background-color: #4d3c85;
}

/* Afficher le bouton quand on scroll */
#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}