@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;
  }
  
  /* Puis appliquer cette police aux paragraphes */
  p {
    font-family: 'GlacialIndifference', sans-serif;
  }
  
    body {
    margin: 0;
    font-family: 'The Seasons', serif, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
  }

  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: white;
    overflow: visible;
  }

  header h1 {
    font-family: 'The Seasons', serif;
    color: #5d81af;
    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;
  }

  #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;
  }
}
  
  /* 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: left;
    color: #243449;
    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%;
  }
  

  /* === SECTION MES CRÉATIONS === */
  .fond {
    display: flex;
    justify-content:left;
    border-radius: 15px;

  }

  .cards {
    display: flex;
    justify-content: center;
    gap: 40px;
  }

  .creations {
    background-color: #a6b1bc;
    background-image: url('../img/background-flower-white.png');
    background-repeat: no-repeat;
    background-position: left;
    background-size: contain; 
    padding: 60px 5%;
    text-align: center;
    position: relative;
    z-index: 0;
  }
  
  .creations::before {
    position: absolute;
    inset: 0;
    background-size: cover;
    opacity: 0.15; /* Régle selon ce que tu veux comme effet */
    z-index: 0;
  }
  
  .creations > * {
    position: relative;
    z-index: 1;
  }
  
  .creations h2 {
    font-family: 'The Seasons', serif;
    font-weight: normal; /* ou bold si tu veux */
    font-size: 30px;
    color: white;
    margin-bottom: 30px;
  }

  .creation-item {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    text-align: center;
    padding: 10px;
    margin: 10px;
    transition: transform 0.3s ease;
  }
  
  .creation-item:hover {
    transform: translateY(-5px);
  }

  .creation-item:hover img {
    box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.8);
    transition: box-shadow 0.3s ease;
  }
  
  .creation-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
  }
  
  .creation-item p {
    margin-top: 10px;
    font-family: 'The Seasons', serif;
    color: #f5f5f5; /* adapte selon ton fond */
    font-size: 1.1em;
  }
  

  /* === FORMULAIRE === */
  .contact-section {
    background-image: url('../img/background.jpg'); /* ✅ */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 50px;  
}

  .contact-section h2 {
    font-family: 'The Seasons', serif;
    font-weight: normal; /* ou bold si tu veux */
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: #5d81af; /* adapte selon ton fond */

  }


  .contact-wrapper {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    max-width: 1200px; /* limite la largeur si besoin */
    margin: 0 auto;
    flex-wrap: wrap;
  }
  
  .contact-text {
    flex: 1;
    font-size: 18px;
    color: #555;
    line-height: 1.5;
    text-align: left;
    padding-top: 20px;
  }
  
  .contact-text .intro-title {
    font-size: 29px;
    margin-bottom: 5px;
    color: #5d81af;
    text-align: left;
  }
  
  .contact-text p {
    font-size: 18px;
    color: #3a5a8a;
    line-height: 1.5;
  }

  .contact-form .form-title {
    font-size: 20px; /* Rétréci par rapport au titre principal */
    color: #5d81af;
    margin-bottom: 20px;
  }

  .contact-form {
    flex: 1;
  }

  .contact-form h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #5d81af;
  }
  
  form {
    max-width: 600px;
    margin: 0 auto;
  }

  form button {
    display: block;
    margin: 20px auto 0 auto; /* haut auto bas */
  }

 

  .contact-form form input,
  .contact-form form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
  }
  
  .contact-form form button {
    background-color: #dcae6c;
    font-family: 'The Seasons', serif;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
  }
  
  .contact-form form button:hover {
    background-color: #e0c296;
  }


  /* === FOOTER === */
  footer {
    background-color: #3e455c;
    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;
  }


/* RESPONSIVE */

@media (max-width: 768px) {
  .mega-menu {
    flex-direction: column;
    align-items: center;
    width: 100%;
    left: 0;
    top: 100%;
    padding: 20px 10px;
    gap: 20px;
  }

  .menu-column {
    width: 100%;
    align-items: center;
  }

  .menu-column h3 {
    text-align: center;
  }

  .menu-column a {
    text-align: center;
  }
}


/* RESPONSIVE HEADER */
/* --- Hamburger caché sur grand écran --- */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #5d81af;
  }
  
  /* Responsive nav */
  @media (max-width: 768px) {
    header {
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
    }
  
    .hamburger {
      display: block;
    }
  
    nav {
      display: none;
      flex-direction: column;
      width: 100%;
      margin-top: 10px;
    }
  
    nav a {
      margin-left: 0;
      padding: 10px 0;
      border-bottom: 1px solid #eee;
    }
  
    nav.show {
      display: flex;
    }
  }
  
  

  /* ✅ Responsive "Mes création" à partir de 768px et moins */
  .creations {
    padding: 60px 20px;
    background-image: url('../img/background-flower-white.png');
    text-align: center;
  }
  
  .creations h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #ffffff;
  }
  
  .cards {
    display: flex;
    justify-content: center;
    gap: 30px;
  }
  
  .creation-item {
    padding: 20px;
    border-radius: 12px;
    width: 280px;
    transition: transform 0.3s ease;
  }
  
  .creation-item:hover {
    transform: translateY(-5px);
  }
  
  .creation-item img {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    object-fit: cover;
  }
  
  .creation-item p {
    margin-top: 15px;
    font-size: 18px;
    color: #ffffff;
  }
  
  /* 🔁 Responsive SEULEMENT pour .creations */
  @media (max-width: 768px) {
    .cards {
      flex-direction: column;
      align-items: center;
    }
  
    .creation-item {
      width: 90%;
    }
  
    .creations h2 {
      font-size: 26px;
    }
  }


  /* RESPONSIVE Contact */
.contact-section {
    padding: 50px 20px;
    background-color: #fff;
    box-sizing: border-box;
  }
  
  .contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
  }
  
  /* Partie gauche */
  .contact-text {
    flex: 1 1 400px;
    text-align: left;
  }
  
  .contact-text .intro-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: #5d81af;
    text-align: left;
  }
  
  .contact-text p {
    font-size: 18px;
    color: #3a5a8a;
    line-height: 1.6;
  }
  
  /* Partie droite */
  .contact-form {
    flex: 1 1 400px;
  }
  
  .contact-form .form-title {
    font-size: 20px;
    color: #5d81af;
    margin-bottom: 20px;
  }
  
  .contact-form form input,
  .contact-form form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
  }
  
  .contact-form form button {
    background-color: #dcae6c;
    font-family: 'The Seasons', serif;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
  }
  
  .contact-form form button:hover {
    background-color: #e0c296;
  }
  
  /* 🎯 MEDIA QUERY POUR RESPONSIVE */
  @media (max-width: 768px) {
    .contact-wrapper {
      flex-direction: column;
      gap: 30px;
    }
  
    .contact-text, .contact-form {
      flex: 1 1 100%;
      text-align: left;
    }
  
    .contact-text .intro-title,
    .contact-form .form-title {
      font-size: 24px;
      text-align: left;
    }
  
    .contact-text p {
      font-size: 16px;
    }
  
    .contact-form form button {
      font-size: 14px;
      width: 100%;
    }
  }