/* Styles pour les cartes */
.card {
    width: 100%;
    height: auto;
    margin: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.card {
    overflow: hidden; /* important pour éviter que l'image dépasse */
}

.card img {
    width: 100%;
    height: auto; /* conserve le ratio original */
    object-fit: contain; /* montre l’image entière sans la couper */
    display: block; /* évite les espaces blancs en bas */
}

.card:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}


/* Ajustements pour les écrans mobiles */
@media (max-width: 768px) {
    .card {
        width: 100%;
        margin: 10px 0;
    }

    .card img {
        height: 500px;
    }
}






/* Styles pour les colonnes */
.column {
    flex: 1 1 calc(33.33% - 20px);
    margin: 10px;
    max-width: calc(33.33% - 20px);
}

/* Ajustements pour les écrans mobiles */
@media (max-width: 768px) {
    .column {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .column {
        flex: 1 1 100%;
        max-width: 100%;
    }
}






/* Styles pour les conteneurs */
.container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ajustements pour les écrans mobiles */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
}





/* Styles pour les images */
.category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Ajustements pour les écrans mobiles */
@media (max-width: 768px) {
    .category-image {
        height: 150px;
    }
}




/* Styles pour les titres */
h3 {
    font-size: 1.2rem;
    margin: 10px 0;
    text-align: center;
}

/* Ajustements pour les écrans mobiles */
@media (max-width: 768px) {
    h3 {
        font-size: 1rem;
    }
}





/* Styles pour les boutons */
button {
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    background-color: #f0e6dc;
    color: #4a4a4a;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #d9c6b6;
}

/* Ajustements pour les écrans mobiles */
@media (max-width: 768px) {
    button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}





/* Styles pour les modales */
.info-modal {
    display: flex; /* Permet de centrer */
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.info-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90vh; /* Limiter à la hauteur de l'écran */
    overflow-y: auto; /* Permet le défilement si le contenu est trop grand */
}


/* Ajustements pour les écrans mobiles */
@media (max-width: 768px) {
    .info-modal-content {
        padding: 10px;
    }
}




/* Styles pour les icônes */
.icons {
    display: flex;
    align-items: center;
}

.icons a {
    margin-left: 10px;
    font-size: 1.2rem;
    color: #000;
    text-decoration: none;
}

/* Ajustements pour les écrans mobiles */
@media (max-width: 768px) {
    .icons a {
        margin-left: 5px;
        font-size: 1rem;
    }
}



/* Correction responsive générale des cartes */
.product-list .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    gap: 220px;
    justify-content: center;
    padding: 20px;
}



.col-md-4 {
    flex: 0 0 calc(100% - 30px); /* Ajusté pour tenir compte du gap */
    max-width: calc(100% - 30px);
    margin: 0; /* Supprime les marges par défaut */
    padding: 0; /* Supprime le padding par défaut */
}

/* Ajustement des breakpoints avec le nouveau système d'espacement */
@media (min-width: 576px) {
    .col-md-4 {
        flex: 0 0 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 calc(33.333% - 30px);
        max-width: calc(33.333% - 30px);
    }
}

@media (min-width: 992px) {
    .col-md-4 {
        flex: 0 0 calc(25% - 30px);
        max-width: calc(25% - 30px);
    }
}

/* Conteneur des cartes (Centrage) */
.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement si besoin */
    gap: 20px; /* Espacement entre les cartes */
    width: 100%;
    padding: 20px 0;
}

/* Ajustements des cartes */
.card {
    width: 350px; /* Taille uniforme */
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre le contenu de la carte */
    justify-content: space-between; /* Équilibre le contenu */
    margin: 10px;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); /* Ombre subtile */
}

/* Effet WOW (Zoom au survol) */
.card:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.25);
}

/* Centrer le titre sous la navbar */
#produits-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #d81b60;
    margin-top: 100px; /* Ajuster selon la hauteur de la navbar */

    text-transform: uppercase;
    letter-spacing: 2px;
    width: 100%;
}


.card-body {

    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 15px;
}

/* Ajustements pour mobile */
@media (max-width: 767px) {
    .card {
        min-height: 500px;
    }

    .card-img-top {
        height: 100%;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-text {
        font-size: 0.9rem;
    }
}

/* Correction de l'espacement */
.d-flex.justify-content-center.w-100 {
    margin-left: 0 !important;
    width: 100% !important;
}

.btn.mt-2 {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 0.9rem;
}










/* ========== Centrage du titre sous la navbar ========== */
#produits-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #d81b60;
    margin-top: 100px; /* Ajuste la distance sous la navbar */
    text-transform: uppercase;
    letter-spacing: 2px;
    width: 100%; /* Centrage sur toute la largeur */
}
/* le css pour ammiliorer la card */





/* Styles pour la modale */
.info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-modal.show {
    opacity: 1;
}

.info-modal-content {
    position: relative;
    background: white;
    margin: 5% auto;
    padding: 30px;
    width: 80%;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.info-modal.show .info-modal-content {
    transform: scale(1);
}

.info-close {
    position: absolute;
    right: 25px;
    top: 25px;
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-close:hover {
    color: #ff4757;
    transform: rotate(90deg);
}

.info-product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Style pour la partie image */
.image-slider {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.image-wrapper img.active {
    opacity: 1;
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 15px;
}

.prev-btn, .next-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    background: white;
    transform: scale(1.1);
}

.prev-btn::before,
.next-btn::before {
    content: '';
    border: solid #333;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 5px;
}

.prev-btn::before {
    transform: rotate(135deg);
}

.next-btn::before {
    transform: rotate(-45deg);
}

.image-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.3);
}

/* Style pour la partie texte */
.info-text-container {
    padding: 20px;
}

#infoModalTitle {
    font-size: 2.2em;
    color: #2d3436;
    margin-bottom: 15px;
    font-weight: 700;
}

.info-price {
    font-size: 1.8em;
    color: #e74c3c;
    margin-bottom: 25px;
    font-weight: 600;
}

.info-description {
    color: #636e72;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.info-specs {
    display: grid;
    gap: 15px;
}

.info-spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2d3436;
    font-size: 1em;
}

.info-spec-item i {
    color: #e74c3c;
    font-size: 1.2em;
}

.add-to-cart-form button {
    background: linear-gradient(45deg, #ff6b6b, #ff4757);
    color: white !important;
    border: none !important;
    padding: 15px 30px !important;
    border-radius: 30px !important;
    font-size: 1.1em !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.add-to-cart-form button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .info-product-details {
        grid-template-columns: 1fr;
    }

    .image-wrapper img {
        height: 300px;
    }

    .info-modal-content {
        width: 90%;
        margin: 10% auto;
    }

    #infoModalTitle {
        font-size: 1.8em;
    }
}



@keyframes slideIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.info-modal-content {
    animation: slideIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.image-wrapper img {
    transition: transform 0.3s ease;
}

.image-wrapper img:hover {
    transform: scale(1.02);
}

/* Ajoutez ce style dans votre balise <style> existante */
.pastel-pink-btn {
    background-color: #ffb3c1 !important; /* Rose pastel */
    color: white !important;
    border: none !important;
    padding: 12px 25px !important;
    border-radius: 30px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    position: relative;
    overflow: hidden;
}

.pastel-pink-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: all 0.5s;
}

.pastel-pink-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}

.pastel-pink-btn:hover::before {
    left: 100%;
}

.pastel-pink-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Pour le bouton dans le formulaire */
.add-to-cart-form .pastel-pink-btn {
    width: 100% !important;
    padding: 12px !important;
}



/* le code pour rendre ma modale responsive */

/* Modal principale */
.info-modal {
    padding: 20px 10px;
  }

  .info-modal-content {
    width: 90%;
    max-width: 1200px;
  }

  /* Disposition responsive */
  @media screen and (max-width: 768px) {
    .info-product-details {
      flex-direction: column;
    }

    .info-image-container {
      width: 100% !important;
      height: 300px;
    }

    .info-text-container {
      width: 100% !important;
      padding: 20px 15px !important;
    }
  }

  /* Taille moyenne d'écran */
  @media screen and (max-width: 992px) {
    .info-modal-content {
      width: 95%;
    }

    .info-product-details {
      max-height: 90vh;
      overflow-y: auto;
    }
  }

  /* Petits écrans (téléphones) */
  @media screen and (max-width: 576px) {
    .info-image-container {
      height: 250px;
    }

    .info-specs {
      flex-direction: column;
    }

    .info-spec-item {
      width: 100% !important;
      margin-bottom: 10px;
    }z

    .image-dots {
      bottom: 10px;
    }

    .slider-nav button {
      padding: 12px;
    }

    #infoModalTitle {
      font-size: 1.5em;
    }

    .info-price {
      font-size: 1.2em !important;
    }

    .info-description {
      font-size: 0.9em;
    }
  }

  /* Très petits écrans */
  @media screen and (max-width: 480px) {
    .info-image-container {
      height: 200px;
    }

    .image-slider img {
      max-height: 180px;
    }

    #infoModalTitle {
      font-size: 1.3em;
    }

    .info-price {
      font-size: 1.1em !important;
    }

    .info-spec-item span {
      font-size: 0.9em;
    }

    .add-to-cart-form button {
      font-size: 0.9em;
      padding: 8px 12px;
    }
  }

  /* Orientation paysage */
  @media screen and (max-height: 500px) and (orientation: landscape) {
    .info-modal-content {
      max-height: 90vh;
      overflow-y: auto;
    }

    .info-image-container {
      height: 200px;
    }
  }




  .info-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000; /* Assure qu'il est au-dessus de tout */
    font-size: 35px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  /* Sur mobile */
  @media screen and (max-width: 768px) {
    .info-close {
      top: 10px;
      right: 10px;
      font-size: 30px;
      background: rgba(0,0,0,0.5);
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
      padding-bottom: 3px;
    }
  }

  /* Très petits écrans */
  @media screen and (max-width: 480px) {
    .info-close {
      top: 5px;
      right: 5px;
      font-size: 25px;
      width: 35px;
      height: 35px;
    }
  }





  /* ajouter pour les liens du header */

  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;

}

header img {
    height: 40px;
}

header nav a {

    color: black;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s ease;
}
.nava{
  margin-right:100px;
}

header nav a:hover {
    color: #1008345d;
}

/* Styles pour le slider d'images */
.image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.image-wrapper img {
    position: absolute;
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
    opacity: 0;
}

.image-wrapper img.active {
    opacity: 1;
    position: relative;
}

/* Animation pour le slide de gauche à droite */
.slide-left-enter {
    transform: translateX(-100%);
    opacity: 0;
}

.slide-right-enter {
    transform: translateX(100%);
    opacity: 0;
}

.slide-active {
    transform: translateX(0);
    opacity: 1;
}









