/* Styles pour la page des témoignages */

/* Section héro */
#temoignages.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/hero/20210626_142444.jpg');
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    /*position: relative;*/
    top: 80px; /* Hauteur du header */
    margin-bottom: -10px; /* Compenser le top */
}

#temoignages.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    z-index: -1;
}

#temoignages.hero .hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

#temoignages.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

#temoignages.hero p {
    font-size: 1.2rem;
    font-family: 'Raleway', sans-serif;
}

/* Grille de témoignages */
.testimonials-section {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
    position: relative;
    z-index: 1;
}

.testimonials-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-size: 2.5rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-image: url(../img/temoignages/1.jpg);
    background-size: cover;
    /* background: antiquewhite; */
    min-height: 650px;

    color: white;
    font-size: large;
    font-weight: bold;
}

.testimonial-item:hover {
    transform: translateY(-5px);
}

.rating {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.testimonial-date {
    color: #888;
    font-size: 0.9rem;
}

/* Section pour ajouter un témoignage */
.add-testimonial {
    text-align: center;
    padding: 3rem 0;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 3rem 0;
}

.add-testimonial h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.add-testimonial p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    font-family: 'Raleway', sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
    #temoignages.hero {
        height: 300px;
    }

    #temoignages.hero h2 {
        font-size: 2rem;
    }

    #temoignages.hero p {
        font-size: 1rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-section {
        padding: 2rem 1rem;
    }

    .testimonials-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    #temoignages.hero {
        height: 250px;
    }

    #temoignages.hero h2 {
        font-size: 1.8rem;
    }

    .add-testimonial {
        padding: 2rem 1rem;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 1rem;
}

.pagination-button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background-color: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.pagination-button:hover {
    background-color: #f5f5f5;
}

.pagination-button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-numbers .pagination-button {
    min-width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-button, .next-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prev-button i, .next-button i {
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-numbers {
        order: 2;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .prev-button, .next-button {
        order: 1;
    }
} 