/* Styles pour le body, le header et le footer pour une mise en page correcte */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030; /* Assurez que le header est au-dessus des autres éléments */
    background-color: white; /* Ajoute un fond pour éviter la transparence */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Ajoute une ombre légère */
}

main {
    flex-grow: 1; /* Permet au contenu principal de remplir l'espace disponible */
    padding-top: 100px; /* Espace pour le header, ajustez si la hauteur du header change */
    padding-bottom: 60px; /* Espace pour le footer, ajustez si la hauteur du footer change */
}

footer {
    width: 100%;
    z-index: 1020;
}

/* Styles pour les produits et le carrousel (existant) */
.carousel-item img {
    height: 400px;
    object-fit: contain;
}

.product-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1050;
}

@media (min-width: 768px) {
    .floating-cta {
        display: none;
    }
}

/* Styles pour le panier (existant) */
.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}



/*Produit.php*/
        .carousel-item img {
            height: 400px;
            object-fit: contain;
        }
        .floating-cta {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: white;
            padding: 1rem;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
            z-index: 1050;
        }
        
        @media (min-width: 768px) {
            .floating-cta {
                display: none;
            }
        }











        /* ... (votre code CSS existant) ... */

/* Styles pour la section Témoignages */
.testimonials-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.testimonials-section .section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #333;
}

.testimonial-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    height: 100%; /* S'assure que toutes les cartes ont la même hauteur dans une rangée */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    flex-grow: 1; /* Permet au paragraphe de prendre l'espace disponible */
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #007bff;
}

.testimonial-author strong {
    font-size: 1.1rem;
    color: #333;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: #777;
    display: block; /* Force la ville à aller à la ligne */
}

/* Nouveau style pour le carrousel de témoignages */
.testimonials-carousel .carousel-inner {
    overflow: visible; /* Permet aux cartes de "déborder" visuellement si nécessaire */
}

.testimonials-carousel .carousel-item {
    padding: 0 15px; /* Ajoutez un peu d'espacement sur les côtés des groupes de cartes */
}

.testimonials-carousel .carousel-control-prev,
.testimonials-carousel .carousel-control-next {
    width: 5%; /* Rend les contrôles plus discrets */
}

/* Ajustements pour que 3 cartes s'affichent par slide sur les grands écrans */
@media (min-width: 992px) {
    .testimonials-carousel .carousel-item-three-per-slide {
        display: flex;
        justify-content: space-between;
    }
    .testimonials-carousel .carousel-item-three-per-slide .col-md-4 {
        flex: 0 0 32%; /* Assure que 3 éléments tiennent sur une ligne */
        max-width: 32%;
        margin-right: 2%; /* Espacement entre les cartes */
    }
    .testimonials-carousel .carousel-item-three-per-slide .col-md-4:last-child {
        margin-right: 0;
    }
}

/* Assurez-vous que les images d'avatar s'affichent correctement */
.testimonial-author img {
    width: 60px; /* Taille fixe */
    height: 60px; /* Taille fixe */
    border-radius: 50%; /* Forme circulaire */
    object-fit: cover; /* Recadre l'image pour qu'elle remplisse le cercle */
    margin-right: 15px;
    border: 2px solid #007bff; /* Petite bordure pour le style */
}

/* Assurez-vous que les cartes restent de même hauteur */
.testimonials-carousel .carousel-item .testimonial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.testimonials-carousel .carousel-item .testimonial-card p {
    flex-grow: 1;
}



/* Règle pour le prompt de défilement */
.scroll-prompt-container {
    position: fixed;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    width: 85%;
    max-width: 395px;
    animation-duration: 0.5s;
    display: none;
}

/* Ajustements pour les écrans mobiles */
@media (max-width: 768px) {
    .scroll-prompt-container {
        width: 85%;
        max-width: 310px;
        top: 30%;
    }
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
    .scroll-prompt-container {
        width:80%;
        max-width: 270px;
        top: 25%;
    }
    
    .scroll-prompt-container .lead {
        font-size: 0.7rem;
    }
    
    .scroll-prompt-container .display-6 {
        font-size: 1.3rem;
    }
}