* {
    box-sizing: border-box;
}

.title {
    font-size: 60px;
    padding: 20px 0px;
}

/* Base container styles */
.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Product container specific styles */
.container.product-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Category container specific styles */
.container.category-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.column {
    float: left;
    width: 60%; /* Augmenté de 48% à 60% */
    padding: 0 25px; /* Augmenté de 20px à 25px */
    margin-bottom: 30px;
}

/* Remove extra left and right margins, due to padding */
.row {
    margin: 0 -5px;
}

/* Clear floats after the columns */
.row:after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive columns */
@media screen and (max-width: 700px) {
    .container {
        width: 100%;
    }

    .column {
        width: 100%;
        display: block;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .card {
        height: auto; /* Hauteur automatique sur mobile */
        min-height: 600px; /* Hauteur minimale sur mobile */
    }
}

/* Style the counter cards */
.card {
    width: 70%; /* Reduce the width by 30% */
    height: auto; /* Allow height to adjust based on content */
    overflow-y: auto; /* Only allow vertical scroll */
    transition: transform 0.3s ease;
    padding: 10px;
    background: linear-gradient(135deg, #f5f5f5, #fbf6ee);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensure content is spaced evenly */
    margin: 0 auto; /* Center the card horizontally */
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 250px; /* Hauteur fixe pour les images */
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.1);
}

.card .profile {
    border-radius: 10px;
    transition: 0.2s;
}

.card:hover .profile {
    transform: scale(1.4);
    border-top-right-radius: 50px;
    border-top-left-radius: 50px;
}

.card .content {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card .content .back {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #f1f1f1e6;
    transition: 1s;
    z-index: 1;
    padding: 10px;
}

/* Animation for content sliding */
.from-left {
    top: 0;
    left: -100%;
}

.card:hover .content .from-left {
    left: 0%;
}

.from-bottom {
    top: 100%;
    left: 0;
}

.card:hover .content .from-bottom {
    top: 0%;
}

.from-right {
    top: 0%;
    right: -100%;
}

.card:hover .content .from-right {
    right: 0;
}

.card .content .back h3 {
    font-size: 15px;
    letter-spacing: 2px;
    color: red;
}

.card .content .back .tem-img {
    border-radius: 100%;
}

.card .content .back .des {
    font-size: 13px;
    padding: 20px 0px;
}

.card .content .back .social-icon {
    list-style: none;
    margin: 0;
    padding: 0;
}

.card .content .back .social-icon li {
    display: inline-block;
}

.card .content .back .social-icon li a {
    display: block;
    background: #333;
    color: #fff;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 100%;
}
span{
    color: black;
}
.footer {
    background-color: #6b625e;
    padding: 20px 0;
    text-align: center;
    color: white;
    font-family: 'Lato', sans-serif;
}

.footer h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    flex-wrap: wrap;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 20%;
}

.footer-column i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-column p,
.footer-column a {
    font-size: 1rem;
    color: white;
    margin: 5px 0;
}

.footer-column a:hover {
    text-decoration: underline;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-media a {
    color: #000;
    background-color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
}

.social-media a i {
    margin-right: 8px;
}

.social-media a:hover {
    background-color: #f1f1f1;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
    .footer-column {
        width: 100%;
        margin-bottom: 20px;
    }

    .social-media {
        flex-direction: column;
    }
}

/* Colonnes responsives */
.column.product {
    flex: 0 0 calc(70% - 40px); /* Augmenté de 50% à 70% */
    margin: 20px;
    max-width: 600px; /* Augmenté pour correspondre à la nouvelle largeur max */
}

/* Media queries */
@media (max-width: 991px) {
    .column.product {
        flex: 0 0 calc(50% - 30px); /* 2 cartes par ligne */
    }
}

@media (max-width: 768px) {
    .column.product {
        flex: 0 0 calc(100% - 30px); /* 1 carte par ligne */
        margin: 15px auto;
    }
    
    .card {
        min-height: 450px;
    }
    
    .card img {
        height: 200px;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 95%; /* Augmente la largeur du conteneur sur les grands écrans */
        max-width: 1400px; /* Ajoute une largeur maximale */
    }
    .column.product {
        flex: 0 0 calc(85% - 40px); /* Augmenté pour les écrans moyens */
    }
}

/* Style des cartes produits */
.column.product {
    flex: 0 0 30%; /* Trois colonnes */
    margin: 15px;
}

.card {
    width: 70%; /* Reduce the width by 30% */
    height: auto; /* Allow height to adjust based on content */
    overflow-y: auto; /* Only allow vertical scroll */
    transition: transform 0.3s ease;
    padding: 10px;
    background: linear-gradient(135deg, #f5f5f5, #fbf6ee);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensure content is spaced evenly */
    margin: 0 auto; /* Center the card horizontally */
}

.card img {
    max-height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.card h3, .card h2 {
    font-size: 1.4rem;
    margin: 10px 0;
    text-align: center;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.back {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

/* Media queries */
@media (max-width: 991px) and (min-width: 769px) {
    .column.product {
        flex: 0 0 22%;
        margin: 10px 1%;
    }
}

@media (max-width: 768px) {
    .column.product {
        flex: 0 0 48%;
        margin: 10px 1%;
    }
}

@media (max-width: 576px) {
    .column.product {
        flex: 0 0 100%;
        margin: 10px 0;
    }
    
    .card {
        height: auto;
    }
    
    .card img {
        height: auto;
        width: 100%;
        object-fit: contain;
    }
}

/* New product card styles */
@import url('https://fonts.googleapis.com/css?family=Muli:400,400i,700,700i');

.shell {
  padding: 80px 0;
}

.wsk-cp-product {
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  position: relative;
  margin: 20px auto;
  min-height: 550px; /* Increased minimum height */
  width: 100%; /* Increased width */
  max-width: 900px; /* Increased max width */
}

.wsk-cp-img {
  position: relative;
  margin-bottom: 15px;
  width: 100%;
  height: 300px; /* Increased fixed height */
  padding: 15px;
  transition: all 0.2s ease-in-out;
}

.wsk-cp-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.2s ease-in-out;
  border-radius: 6px;
}

.wsk-cp-text {
  padding-top: 10px;
}

.wsk-cp-text .category {
  text-align: center;
  font-size: 14px; /* Increased font size */
  font-weight: bold;
  padding: 5px;
  margin-bottom: 15px;
  position: relative;
}

.wsk-cp-text .category span {
  padding: 10px 25px; /* Adjusted padding */
  background: #212121;
  color: #fff;
  border-radius: 20px;
  display: inline-block;
}

.wsk-cp-text .title-product h3 {
  font-size: 1.6rem; /* Increased font size */
  margin-bottom: 10px;
}

.wsk-cp-text .description-prod p {
  font-size: 1rem; /* Increased font size */
  margin-bottom: 15px;
}

.card-footer {
  padding: 15px 0 5px;
  border-top: 1px solid #ddd;
}

.card-footer .wcf-left {
  float: left;
}

.card-footer .wcf-right {
  float: right;
}

.price {
  font-size: 1.2rem; /* Increased font size */
  font-weight: bold;
}

a.buy-btn {
  display: block;
  color: #212121;
  text-align: center;
  font-size: 1.2rem; /* Increased font size */
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  border: 1px solid #212121;
  transition: all 0.2s ease-in-out;
}

a.buy-btn:hover, a.buy-btn:active, a.buy-btn:focus {
  border-color: #FF9800;
  background: #FF9800;
  color: #fff;
  text-decoration: none;
}

/* Media queries */
@media screen and (max-width: 991px) {
  .wsk-cp-product {
    margin: 20px auto;
    min-height: 500px; /* Adjusted for mobile */
    max-width: 100%; /* Full width on mobile */
  }
  
  .wsk-cp-img {
    height: 250px; /* Slightly smaller on mobile */
  }
}

@media screen and (max-width: 991px) {
  .wsk-cp-product {
    margin: 40px auto;
  }
}

/* Nouveau style pour les cartes produits */
.wrapper {
    width: 300px;
    height: 500px;
    background: white;
    margin: auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0;
    transform: scale(0.95);
    transition: box-shadow 0.5s, transform 0.5s;
}

.wrapper:hover {
    transform: scale(1);
    box-shadow: 5px 20px 30px rgba(0,0,0,0.2);
}

.wrapper .container {
    width: 100%;
    height: 100%;
}

.wrapper .top {
    height: 80%;
    width: 100%;
    background-size: cover !important;
    background-position: center !important;
}

.wrapper .bottom {
    width: 200%;
    height: 20%;
    transition: transform 0.5s;
}

.wrapper .bottom.clicked {
    transform: translateX(-50%);
}

.wrapper .bottom h1,
.wrapper .bottom p {
    margin: 0;
    padding: 0;
}

.wrapper .left {
    height: 100%;
    width: 50%;
    background: #f4f4f4;
    position: relative;
    float: left;
}

.wrapper .left .details {
    padding: 20px;
    float: left;
    width: calc(70% - 40px);
}

.wrapper .left .buy {
    float: right;
    width: calc(30% - 2px);
    height: 100%;
    background: #f1f1f1;
    transition: background 0.5s;
    border-left: solid thin rgba(0,0,0,0.1);
}

.wrapper .left .buy i {
    font-size: 30px;
    padding: 30px;
    color: #254053;
    transition: transform 0.5s;
}

.wrapper .left .buy:hover {
    background: #A6CDDE;
}

.wrapper .left .buy:hover i {
    transform: translateY(5px);
    color: #00394B;
}

.wrapper .right {
    width: 50%;
    background: #A6CDDE;
    color: white;
    float: right;
    height: 200%;
    overflow: hidden;
}

.wrapper .right .details {
    padding: 20px;
    float: right;
    width: calc(70% - 40px);
}

.wrapper .right .done {
    width: calc(30% - 2px);
    float: left;
    transition: transform 0.5s;
    border-right: solid thin rgba(255,255,255,0.3);
    height: 50%;
}

.wrapper .right .done i {
    font-size: 30px;
    padding: 30px;
    color: white;
}

.wrapper .right .remove {
    width: calc(30% - 1px);
    clear: both;
    border-right: solid thin rgba(255,255,255,0.3);
    height: 50%;
    background: #BC3B59;
    transition: transform 0.5s, background 0.5s;
}

.wrapper .right .remove:hover {
    background: #9B2847;
}

.wrapper .right .remove:hover i {
    transform: translateY(5px);
}

.wrapper .right .remove i {
    transition: transform 0.5s;
    font-size: 30px;
    padding: 30px;
    color: white;
}

.wrapper .right:hover .remove,
.wrapper .right:hover .done {
    transform: translateY(-100%);
}

.wrapper .inside {
    z-index: 9;
    background: #92879B;
    width: 140px;
    height: 140px;
    position: absolute;
    top: -70px;
    right: -70px;
    border-radius: 0px 0px 200px 200px;
    transition: all 0.5s, border-radius 2s, top 1s;
    overflow: hidden;
}

.wrapper .inside .icon {
    position: absolute;
    right: 85px;
    top: 85px;
    color: white;
    opacity: 1;
}

.wrapper .inside:hover {
    width: 100%;
    right: 0;
    top: 0;
    border-radius: 0;
    height: 80%;
}

.wrapper .inside:hover .icon {
    opacity: 0;
    right: 15px;
    top: 15px;
}

.wrapper .inside .contents {
    padding: 5%;
    opacity: 0;
    transform: scale(0.5);
    transform: translateY(-200%);
    transition: opacity 0.2s, transform 0.8s;
}

.wrapper .inside:hover .contents {
    opacity: 1;
    transform: scale(1);
    transform: translateY(0);
}

.wrapper .inside .contents table {
    text-align: left;
    width: 100%;
}

.wrapper .inside .contents h1,
.wrapper .inside .contents p,
.wrapper .inside .contents table {
    color: white;
}

.wrapper .inside .contents p {
    font-size: 13px;
}

/* Ajustements responsifs */
@media screen and (max-width: 991px) {
    .wrapper {
        width: 280px;
        height: 450px;
    }
}

@media screen and (max-width: 768px) {
    .wrapper {
        width: 100%;
        max-width: 300px;
        height: 480px;
    }
}

/* Nouveau style pour les cartes produits */
.product-box {
    width: 300px;
    height: 400px;
    position: relative;
    margin: 20px auto;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border-radius: 10px;
}

.overlay {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 2fr 2fr 1fr;
    background: rgba(77, 77, 77, .9);
    color: #FEF5DF;
    opacity: 0;
    transition: all 0.5s;
    font-family: 'Playfair Display', serif;
}

.items {
    padding-left: 20px;
    letter-spacing: 3px;
}

.head {
    font-size: 30px;
    line-height: 40px;
    transform: translateY(40px);
    transition: all 0.7s;
}

.head hr {
    display: block;
    width: 0;
    border: none;
    border-bottom: solid 2px #FEF5DF;
    position: absolute;
    bottom: 0;
    left: 20px;
    transition: all .5s;
}

.price {
    font-size: 22px;
    line-height: 10px;
    font-weight: bold;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s;
}

.cart {
    font-size: 12px;
    opacity: 0;
    letter-spacing: 1px;
    font-family: 'Lato', sans-serif;
    transform: translateY(40px);
    transition: all 0.7s;
}

.cart button {
    background: none;
    border: none;
    color: #FEF5DF;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 1px;
    font-family: 'Lato', sans-serif;
    padding: 0;
}

.cart i {
    font-size: 16px;
}

.cart span {
    margin-left: 10px;
}

.product-box:hover .overlay {
    opacity: 1;
}

.product-box:hover .overlay .head {
    transform: translateY(0px);
}

.product-box:hover .overlay hr {
    width: 75px;
    transition-delay: 0.4s;
}

.product-box:hover .overlay .price {
    transform: translateY(0px);
    transition-delay: 0.3s;
    opacity: 1;
}

.product-box:hover .overlay .cart {
    transform: translateY(0px);
    transition-delay: 0.6s;
    opacity: 1;
}

/* Ajustements responsifs */
@media screen and (max-width: 991px) {
    .product-box {
        width: 280px;
        height: 380px;
    }
}

@media screen and (max-width: 768px) {
    .product-box {
        width: 260px;
        height: 360px;
    }
}

@import url(https://fonts.googleapis.com/css?family=Lato);

.container {
    width: 1000px;
    display: flex;
    justify-content: space-between;
}

.card {
    margin: 1em;
}

.card-img-top {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    transition: 0.5s;
    object-fit: contain; /* Ensure the image is displayed completely */
}

.card-body {
    z-index: 1;
    box-sizing: border-box;
    padding: 1.25em;
    height: 220px;
    background: white;
    box-shadow: 0 2.8px 2.2px rgba(0, 0, 0, 0.056),
        0 6.7px 5.3px rgba(0, 0, 0, 0.081), 0 12.5px 10px rgba(0, 0, 0, 0.1),
        0 22.3px 17.9px rgba(0, 0, 0, 0.119),
        0 41.8px 33.4px rgba(0, 0, 0, 0.144), 0 100px 80px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%);
    transition: 0.5s;
    flex: 1; /* Allow card body to grow and fill available space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensure content is spaced evenly */
    overflow-y: auto; /* Add vertical scroll if content overflows */
    align-items: center; /* Center content horizontally */
    filter: blur(10px); /* Réduction du flou de 4px à 2px */
    transition: all 0.5s ease; /* Transition plus fluide pour tous les effets */
}

.card:hover .card-body {
    transform: translateY(0);
    filter: blur(0); /* Suppression du flou au survol */
}

.card-body .btn {
    display: none; /* Hide the button by default */
    margin-top: auto; /* Push the button to the bottom */
    margin-bottom: auto; /* Center the button vertically */
}

.card:hover .card-body .btn {
    display: block; /* Show the button on hover */
}

.card-title {
    margin: 0 0 0.75em 0;
    font-size: 1.25em;
    font-weight: bold;
    line-height: 1.2;
}

.card-text {
    margin: 0 0 1em 0;
}

.btn {
    padding: 0.375em 0.75em;
    color: black;
    text-decoration: none;
    line-height: 1.5;
    border: 1px solid black;
    border-radius: 0.25em;
    transition: 0.5s;
}

.btn:hover {
    color: white;
    background: black;
}

.card:hover .card-img-top {
    transform: translateY(2%);
}

.card:hover .card-body {
    transform: translateY(0);
}

/* Styles pour le modal d'information */
.info-modal {
    display: none;
    position: fixed;
    z-index: 2000; /* Augmenter le z-index du modal */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
}

.info-modal.show {
    opacity: 1;
}

.info-modal-content {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 80%;
    max-width: 1000px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    z-index: 2001; /* Assurer que le contenu du modal est aussi au-dessus */
}

.info-modal.show .info-modal-content {
    transform: translateY(0);
}

.info-close {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2002; /* Le bouton de fermeture doit être au-dessus du contenu */
}

.info-close:hover {
    color: #000;
}

.info-product-details {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.info-image-container {
    flex: 0 0 45%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.info-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.info-text-container {
    flex: 1;
    padding: 20px 0;
}

.info-text-container h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.info-price {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 500;
}

.info-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

.info-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(0,0,0,0.03);
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.info-spec-item:hover {
    transform: translateY(-2px);
}

.info-spec-item i {
    color: #2c3e50;
    font-size: 24px;
}

.info-spec-item span {
    color: #444;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .info-product-details {
        flex-direction: column;
    }
    
    .info-image-container {
        flex: 0 0 100%;
    }
    
    .info-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .info-text-container h2 {
        font-size: 2rem;
    }
    
    .info-price {
        font-size: 1.75rem;
    }
}

/* Styles pour le slider d'images */
.image-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
}

.image-wrapper img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none;
}

.image-wrapper img.active {
    opacity: 1;
    display: block;
}

.slider-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2px;
}

.slider-nav button {
    background: #6b625e;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 24px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    outline: none;
}

slider-nav button:hover {
    background: #4a4a4a;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.slider-nav button:active {
    transform: scale(0.95);
}

.prev-btn::before {
    content: "❮";
    font-weight: bold;
}

.next-btn::before {
    content: "❯";
    font-weight: bold;
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
    .slider-nav button {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

.image-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: rgba(0, 0, 0, 0.8);
}

/* Ajustements pour le modal en version mobile */
@media (max-width: 768px) {
    .info-modal {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .info-modal-content {
        width: 90%;
        max-width: 450px;
        margin: 0 auto;
        padding: 15px;
        max-height: 90vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    .info-product-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .info-image-container {
        order: -1; /* Met le carousel en premier */
        width: 100%;
        height: auto;
        max-height: 40vh;
        margin-bottom: 15px;
    }
    
    .image-wrapper {
        height: 250px;
    }
    
    .info-text-container {
        width: 100%;
        padding: 0;
    }
    
    .info-text-container h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .info-price {
        font-size: 1.25rem;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .info-description {
        font-size: 1rem;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .info-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 15px;
    }
}

/* Ajustements pour très petits écrans */
@media (max-width: 480px) {
    .info-modal-content {
        width: 95%;
        padding: 10px;
    }

    .info-specs {
        grid-template-columns: 1fr;
    }
    
    .image-wrapper {
        height: 200px;
    }
}

/* Amélioration des contrôles du carousel pour mobile */
@media (max-width: 768px) {
    .slider-nav {
        padding: 0 5px;
    }
    
    .slider-nav button {
        width: 35px;
        height: 35px;
        background: rgba(107, 98, 94, 0.8);
        z-index: 10;
    }

    .image-dots {
        bottom: 5px;
    }
}

/* Ajustements pour le modal en version mobile */
@media (max-width: 768px) {
    .info-modal-content {
        width: 95%;
        margin: 2% auto; /* Réduit la marge supérieure */
        padding: 15px;
        max-height: 98vh; /* Hauteur maximale en mode mobile */
        overflow-y: auto; /* Permet le défilement si nécessaire */
    }
    
    .info-product-details {
        flex-direction: column;
        gap: 20px;
    }
    
    .info-image-container {
        flex: 0 0 auto;
        height: 300px; /* Hauteur fixe pour le conteneur d'image */
    }
    
    .image-wrapper {
        height: 250px; /* Réduire la hauteur des images */
    }
    
    .info-text-container {
        padding: 10px 0;
    }
    
    .info-text-container h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .info-price {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }
    
    .info-description {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .info-specs {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 15px;
    }
    
    .slider-nav {
        padding: 0 10px;
    }
    
    .slider-nav button {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}

/* Ajustements supplémentaires pour les très petits écrans */
@media (max-width: 480px) {
    .info-modal-content {
        width: 98%;
        margin: 1% auto;
        padding: 10px;
    }
    
    .info-image-container {
        height: 250px;
    }
    
    .image-wrapper {
        height: 200px;
    }
    
    .info-text-container h2 {
        font-size: 1.25rem;
    }
    
    .info-price {
        font-size: 1.1rem;
    }
}
/* *********************************** */
/* Désactiver complètement le modal s'il est caché */
.info-modal {
    display: none !important;  /* Empêche toute interaction */
    z-index: -1 !important;    /* L'envoie derrière tout */
    opacity: 0 !important;     /* Cache complètement */
    pointer-events: none !important; /* Désactive le clic */
}

/* Désactiver aussi le backdrop du modal */
.info-modal.show {
    display: flex !important; /* Réactive le modal seulement quand il est visible */
    z-index: 2000 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
