/* Base */
@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; /* texte général augmenté */
  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;
}

/* Texte du Hero */
.hero h1 {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 3px;
}

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

/* ✅ Responsive pour écrans moyens */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .hero p {
    font-size: 1.5rem;
  }
}

/* ✅ Responsive pour mobiles */
@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 {
  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;
  }
}

/* Main Content - Modifications mineures pour le responsive */
.content {
  padding: 2.5rem 1.5rem;
  font-size: 1.5rem;
  max-width: 100%; /* Ajout pour éviter les débordements */
  box-sizing: border-box; /* Ajout pour inclure le padding dans la largeur */
}

/* About Section - Structure inchangée */
.about {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 2rem 1rem;
}

.about .text {
  flex: 1 1 60%;
  text-align: justify;
  color: #2e2154;
  font-size: 1.5rem;
  padding-left: 5%;
  padding-right: 5%;
}

.about h2 {
  font-size: 4.5rem;
  font-weight: bold;
  line-height: 1.2;
  color: #2e2154;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
  font-family: "Halenoir Compact", sans-serif;
}

.about h2::after {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  background-color: black;
  margin-top: 0.75rem;
}

.about .highlight {
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
  font-size: 1.5rem;
  font-family: "Halenoir medium", sans-serif;
}

.about .petit {
  font-size: 1.2rem;
  font-family: "Halenoir regular", sans-serif;
}

/* Responsive About - Améliorations sans modifier la structure */
@media (max-width: 768px) {
  .content {
    padding: 1.5rem;
    font-size: 1.2rem;
  }

  .about {
    flex-direction: column;
    padding: 1rem;
  }

  .about .text {
    flex: 1 1 100%;
    padding-left: 0;
    padding-right: 0;
    font-size: 1.2rem;
  }

  .about h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .about h2::after {
    width: 60px;
    height: 2px;
  }

  .about .highlight {
    font-size: 1.2rem;
  }

  .about .petit {
    font-size: 1rem;
  }

  .about .image {
    order: 2;
    margin-top: 2rem;
  }

  .about .image img {
    width: 100%;
    aspect-ratio: auto;
    height: auto;
  }
}

/* Ajout d'un breakpoint supplémentaire pour les petits écrans */
@media (max-width: 480px) {
  .content {
    padding: 1rem;
    font-size: 1rem;
  }

  .about {
    gap: 1rem;
  }

  .about h2 {
    font-size: 2rem;
  }

  .about .text {
    font-size: 1rem;
  }
}

/* Produits de saison */
.season-products {
  margin-top: 3rem;
  padding: 0 3%;
  margin-bottom: 6rem;
}

.season-products h2 {
  font-size: 2.2rem;
  border-bottom: 1px solid #2e2154;
  padding-bottom: 0.5rem;
  font-family: "Halenoir Compact", sans-serif;
  text-align: center;
}

/* Grille des produits */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  padding: 0 1rem;
}

/* Responsive tablette */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive mobile */
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .product {
    aspect-ratio: auto;
  }

  .product img {
    aspect-ratio: 3 / 4;
    height: auto;
  }
}

.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;              /* <-- AUCUN padding pour éviter le trait blanc */
  border: none;
}

.product img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px 10px 0 0;
  background: #faf7ee; /* optionnel : couleur pour combler autour de l'image si elle ne remplit pas tout */
}

.product p {
  font-weight: bold;
  font-family: "Halenoir Regular", sans-serif;
  font-size: 1rem;
  color: #2e2154;
  margin: 0.8rem 0 0.5rem;
}

/* Footer global */
footer {
  background-color: #ffffff;
  padding: 2.5rem;
  font-size: 1.2rem;
  font-family: Arial, sans-serif;
}

/* Partie haute : carte à gauche, newsletter à droite */
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Carte */
.map-container {
  flex: 1;
  min-width: 300px;
  max-width: 900px;
  border: 2px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
}

/* Newsletter */
.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;
}

/* Partie basse : texte à gauche, logo à droite */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Texte */
.footer-content {
  flex: 1;
  min-width: 300px;
}

/* Logo - Modification pour le déplacer vers la droite */
.logo img {
  max-width: 400px;
  height: auto;
  margin-left: auto; /* Change -300px à auto pour le centrer à droite */
  margin-bottom: -150px;
  width: 100%;
  display: block; /* Ajout pour que margin-left: auto fonctionne */
}

/* Responsive : structure colonne pour petits écrans */
@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;
  }
}

.demande {
    text-align: center;
    margin: 50px 0;
    font-family: "Halenoir Regular", "Courier New", Courier, monospace;
}

.section-title {
    font-size: 2.3rem;
    font-family: "Halenoir Compact", sans-serif;
    color: #2e2154;
    font-weight: 700;
    margin-bottom: 2rem;
}

.demande-form {
    max-width: 540px;
    margin: 0 auto;
    padding: 2.5rem 2rem 2rem 2rem;
    background-color: #fffbf3;
    border: 1.5px solid #f1e9d2;
    border-radius: 28px;
    box-shadow: 0 10px 32px rgba(46,33,84,0.055);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group {
    width: 100%;
    margin-bottom: 24px;
    text-align: left;
}

.form-group label {
    /* label visuellement caché */
    position: absolute !important;
    width: 1px; height: 1px; 
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    border: 0;
}

input[type="text"], input[type="email"], input[type="tel"], textarea, select {
    width: 100%;
    background: #fff;
    color: #2e2154;
    font-family: "Halenoir Regular", monospace;
    font-size: 1.15rem;
    border: none;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(46,33,84,.04);
    transition: box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: 2px solid #c1bec2;
    box-shadow: 0 4px 20px #c1bec240;
}

textarea {
    min-height: 80px;
    font-size: 1.13rem;
    resize: vertical;
}

#produits {
    width: 100%;
}

.produit {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.produit select, 
.produit input[type="number"] {
    width: 100%;
    margin-bottom: 0;
}

.produit input[type="number"] {
    max-width: 130px;
}

.produit button[type="button"] {
    background-color: #e6b7cb;
    color: #2e2154;
    border: none;
    border-radius: 8px;
    font-family: "Halenoir Medium";
    font-size: 1.04rem;
    font-weight: 600;
    padding: 10px 18px;
    cursor: pointer;
    transition: background .18s;
    margin-top: 7px;
}

.produit button[type="button"]:hover {
    background: #db5b81;
    color: #fff;
}

/* Bouton Ajouter */
button.ajouter-produit {
    width: 100%;
    background: #b7cbea;
    color: #2e2154;
    border: none;
    border-radius: 8px;
    font-family: "Halenoir Medium";
    font-size: 1.08rem;
    font-weight: 600;
    padding: 13px 18px;
    cursor: pointer;
    margin-bottom: 18px;
    margin-top: 10px;
    transition: background .18s;
}

button.ajouter-produit:hover {
    background: #5c77b9;
    color: #fff;
}

/* Bouton Envoyer */
.submit-btn,
button[type="submit"] {
    display: block;
    width: 100%;
    background: #2e2154;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: "Halenoir Compact",sans-serif;
    font-size: 1.24rem;
    padding: 1.15rem 0;
    font-weight: bold;
    cursor: pointer;
    margin-top: 0.7rem;
    transition: background 0.18s;
    box-shadow: 0 2px 8px rgba(46,33,84,0.07);
}
.submit-btn:hover, button[type="submit"]:hover {
    background: #6151a2;
}

/* optgroup titles style */
select optgroup {
    font-family: "Halenoir Compact", sans-serif;
    font-size: 1.08em;
    color: #544890;
    font-weight: 600;
    background: #f8f7f5;
}

/* Responsive */
@media (max-width:650px) {
    .demande-form {
        padding: 1.2rem .8rem 1.5rem .8rem;
        border-radius: 16px;
    }
    .section-title { font-size: 1.3rem;}
    .form-group { margin-bottom: 15px;}
    .submit-btn { font-size: 1rem; padding:.78rem 0; }
}

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

* {
    box-sizing: border-box;
}

/* Page Termes et Conditions */

.termes-section {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-family: Arial, sans-serif;
  color: #2e2154;
  line-height: 1.7;
}

.termes-title {
  font-size: 2.5rem;
  text-align: center;
  color: #2e2154;
  border-bottom: 2px solid #2e2154;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

.termes-article {
  margin-bottom: 2rem;
}

.termes-subtitle {
  font-size: 1.5rem;
  border-left: 4px solid #2e2154;
  padding-left: 1rem;
  margin-bottom: 0.8rem;
}

.termes-article p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.termes-article a {
  color: #2e2154;
  text-decoration: underline;
}

/* Responsive mobile */
@media (max-width: 600px) {
  .termes-section {
    padding: 1rem;
  }

  .termes-title {
    font-size: 2rem;
  }

  .termes-subtitle {
    font-size: 1.3rem;
  }

  .termes-article p {
    font-size: 0.95rem;
  }
}

#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;
}