/* Conteneur : garde l'alignement horizontal */
.products-container {
    display: flex; /* Aligner les produits horizontalement */
    flex-wrap: wrap; /* Permet d'aller à la ligne si nécessaire */
    gap: 20px; /* Espacement entre les produits */
    justify-content: center; /* Centre les produits horizontalement */
}

/* Produit individuel */
.product-item {
    display: flex;
    justify-content: center; /* Centre l'image horizontalement */
    text-align: center;
    width: 120px; /* Limite la largeur des items */
}

/* Image cliquable */
.product-image {
    cursor: pointer; /* Indique que l'image est cliquable */
    border: 2px solid transparent; /* Optionnel : pour ajouter du focus */
    transition: border-color 0.3s ease; /* Animation douce du focus */
}

.product-image:hover {
    border-color: #0073aa; /* Change la couleur au survol */
    border-radius: 8px;
}

/* Style général de la modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 600px;
    position: relative;
    border-radius: 20px;
    margin: 40px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: scale(0.95);
    animation: modalContentScale 0.3s ease forwards;
    display: flex;
    flex-direction: column;
}

@keyframes modalContentScale {
    to {
        transform: scale(1);
    }
}

.modal .close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal .close:hover {
    color: #333;
    transform: rotate(90deg);
    transition: all 0.3s ease;
}

.modal-content img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 20px 20px 0 0;
}

.modal .description {
    padding: 30px;
    text-align: center;
    background: linear-gradient(to bottom, #fff, #f9f9f9);
    flex: 1;
}

.modal h2 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.modal .static-text {
    margin: 15px 0;
    color: #666;
    font-style: italic;
    font-size: 16px;
    line-height: 1.6;
}

.modal p {
    color: #555;
    line-height: 1.6;
    margin: 15px 0;
    font-size: 14px;
}

.contact-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #4A90E2;
    color: white;
    text-decoration: none !important;
    border-radius: 25px;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.contact-button:hover {
    background-color: #357ABD;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    text-decoration: none;
    color: white;
}

.contact-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
    text-decoration: none;
    color: white;
}

.contact-button:visited {
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }

    .modal-content img {
        height: 250px;
    }

    .modal .description {
        padding: 20px;
    }
}

.categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.category-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    width: 250px;
    margin: 0 auto;
}

.category-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.category-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.quick-view-banner-categorie {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: black;
    color: white;
    text-align: center;
    padding: 8px 15px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    font-size: 14px;
    letter-spacing: 1px;
    transform: translateY(100%);
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-card:hover .quick-view-banner-categorie {
    opacity: 1;
    transform: translateY(0);
}

.category-info {
    padding: 1rem;
    text-align: center;
}

.category-name {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: normal;
}

.category-price {
    margin: 0.5rem 0 0;
    color: #666;
    font-size: 1rem;
}

.category-card-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
    width: 250px;
    margin: 0 auto;
}

.category-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.category-card-link:visited {
    color: inherit;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.section-title {
    text-align: center;
    margin: 2rem 0;
    padding: 0 1rem;
}

.section-title h1 {
    font-size: 2.5rem;
    color: #333;
    margin: 0;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.section-title h1:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #4A90E2;
    margin: 10px auto 0;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .section-title h1 {
        font-size: 2rem;
    }
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    width: 250px;
    margin: 0 auto;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.product-card:hover .quick-view-banner-categorie {
    opacity: 1;
    transform: translateY(0);
}


