@font-face {
    font-family: 'The Seasons';
    src: url('../fonts/Fontspring-DEMO-theseasons-reg.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
  }
  
  .fallback-punctuation {
    font-family: serif;
  }

  @font-face {
    font-family: 'GlacialIndifference';
    src: url('../fonts/GlacialIndifference-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
  }

  p {
    font-family: 'GlacialIndifference', sans-serif;
  }
  
    body {
    margin: 0;
    font-family: 'The Seasons', serif, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
  }
  /* Header transparent */
  header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    color: white;
  }

  header h1 {
    font-family: 'The Seasons', serif;
    color: #3a5a8a;
    font-size: 25px;
    font-weight: normal; /* ou bold si tu veux */
  }

  /* Réinitialisation de base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  nav {
    display: flex;
    justify-content: center; /* Centrage horizontal */
    align-items: center;
    gap: 30px; /* Espacement entre les liens */
    position: relative;
    flex-wrap: wrap; /* Pour le responsive */
    font-family: 'GlacialIndifference', sans-serif;
  }
  
  
  /* Liens de navigation */
  nav a {
    text-decoration: none;
    color: #3a5a8a;

    padding: 8px 12px;
    font-weight: 500;
    position: relative;
  }

  
  /* Mega menu caché par défaut */
    
  .mega-menu {
    position: absolute;
    top: 156%;
    left: 46%;
    transform: translateX(-80%);
    width: 100vw;
    background-image: url('../img/background.jpg');
    background-size: cover;
    background-position: center;
    padding: 40px 20px;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .inner-mega-menu {
    display: flex;
    gap: 7%;
    justify-content: right;
    max-width: 1300px;
    margin: 0;
    flex-wrap: wrap; /* adaptatif */
  }

  .menu-column {
      display: flex;
      flex-direction: column;
      min-width: 180px;
  }

  .menu-column h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: bold;
  }

  .menu-column a {
    color: #3a5a8a;
    text-decoration: none;
  }

  .menu-column a:hover {
    color: #b37a4c;
  }

/* Affichage quand actif */
  .mega-dropdown.active .mega-menu {
    display: block;
  }
  .mega-menu.active {
  display: block !important;
  position: absolute;
  top: 156%;
  left: 46%;
  transform: translateX(-80%);
  width: 100vw;
  background-image: url('../img/background.jpg');
  background-size: cover;
  background-position: center;
  padding: 40px 20px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

    
  /* Responsive (pour plus tard si besoin) */
    @media (max-width: 768px) {

      .mega-menu.active {
    display: block !important;
    position: absolute;
    height: auto;
    max-height:90vw;
    overflow: auto;
    top: 100%;
    left: 80%;
    transform: translateX(-80%);
    width: 100%; /* au lieu de 100vw */
    max-height: 90vh; /* limite la hauteur */
    overflow-y: auto; /* scroll vertical si contenu trop grand */
    background-image: url('../img/background.jpg');
    background-size: cover;
    background-position: center;
    padding: 40px 20px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
  }
  
  .hamburger {
    display: block;
    cursor: pointer;
     color: #5d81af;
  }

  #nav-links {
    display: none;
    flex-direction: column;
    background: white;
    padding: 20px;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 999;
  }

  #nav-links.show {
    display: flex;
  }

  #nav-links a {
    margin: 10px 0;
  }

  .mega-menu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background-color: white;
    padding: 20px;
    transition: left 0.3s ease;
    z-index: 1000;
  }

  .back-button {
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: bold;
    background: none;
    border: none;
    color: #3a5a8a;
    align-self: flex-start;
  }

  #nav-links.submenu-open > a,
  #nav-links.submenu-open > .dropdown-toggle,
  #nav-links.submenu-open > .cart {
    display: none;
  }

  .dropdown {
    width: 100%;
    text-align: center;
  }
}
  @media (min-width: 769px) {
  /* plus de hover ici */
  .mega-menu {
    display: none;
  }

  /* Affiche le bouton retour uniquement en responsive */
  .back-button {
    display: none;
  }
}

  @media (min-width: 769px) {
    .hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #5d81af;
  }
}
  
  /* Modale panier */
  .modal {
    display: none; /* caché par défaut */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* fond semi-transparent */
  }
  
  .modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 6px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
    position: relative;
  }
  
  .close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  #cart-items {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
  
  #cart-items li {
    padding: 10px;
    border-bottom: 1px solid #eee;
  }
  
  #clear-cart {
    background-color: #e74c3c;
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
  }

/* Diaporama */
.diaporama-container {
    position: relative;
    max-width: 100%;
    height: 500px;
    overflow: hidden;
  }

  .diaporama-slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
  }

  .diaporama-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .fade {
    animation-name: fade;
    animation-duration: 1.5s;
  }

  @keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
  }

  .diaporama-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: right;
    color: #3a5a8a;
    font-size: 1.3em;
    font-family: 'The Seasons', serif;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.6); /* Pour que le texte reste lisible */
    padding: 0 20px;
    width: 100%;
    max-width: 90%;
  }

/* Produits */
.produits-section {
  padding: 3rem 1rem;
  background: #fff;
  text-align: center;
}

.produits-section h2 {
  font-family: 'The Seasons', serif, Arial, sans-serif;
  text-shadow: 2px 2px 4px rgba(255, 255, 300, 0.6); /* Pour que le texte reste lisible */
  font-size: 1.8rem;
  color: #3a5a8a;
  margin-bottom: 2rem;
  text-align: left;
  padding-left: 34px;
}

.produits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
}

.produit {
  background: #f8f8f8;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
  padding: 1rem;
}

.produit:hover {
  transform: scale(1.03);
}

.produit img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.produit p {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
}

.produit strong {
  color: #c36;
}

  /* === FOOTER === */
  footer {
    background-color: #5d81af;
    color: white;
    padding: 40px 20px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
  }

  footer div {
    margin: 10px 0;
  }

  footer h3 {
    font-size: 16px;
    font-weight: normal; /* ou bold si tu veux */
    margin-bottom: 10px;
  }

  footer a {
    color: white;
    text-decoration: none;
    margin-right: 10px;
    font-family: 'GlacialIndifference', sans-serif;
  }