/* Bannière */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections générales */
section {
    padding: 60px 0;
}

.section-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* Section Maison Communautaire */
.maison-section {
    background-color: white;
    padding: 70px 0;
}

.maison-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 2rem;
}

.maison-text {
    flex: 1;
}

.maison-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.maison-text ul {
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

.maison-text li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 10px;
}

.maison-text li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -10px;
}

.maison-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.maison-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Section Galerie */
.galerie-section {
    background-color: var(--light-bg);
    padding: 70px 0;
}

.galerie-categories {
    margin: 2rem 0 1rem;
}

.galerie-categories h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* Carousel pour galerie et projets */
.carousel-wrapper {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 3rem;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
}

.slide-caption{
    height: 100px;
}
.projets-carousel .slide-caption {
    height: 180px;
}

.projets-carousel .slide-caption h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.carousel-prev, .carousel-next {
    background: rgba(255,255,255,0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-prev:hover, .carousel-next:hover {
    background: white;
}

.carousel-indicators {
    display: flex;
    gap: 10px;
    margin: 0 15px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}


/* Vidéos grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 2rem 0;
}

.video-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

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

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.play-button i {
    color: var(--primary-color);
    font-size: 24px;
}

.play-button:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-item h4 {
    padding: 15px 15px 5px;
    font-size: 1.1rem;
}

.video-item p {
    padding: 0 15px 15px;
    color: #666;
}

/* Section Media */
.media-section {
    background-color: white;
    padding: 70px 0;
}

.media-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 3rem;
}

.media-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.media-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-text {
    flex: 1;
}

.media-text p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.media-programs h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.program-item {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

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

.program-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
}

.program-icon i {
    font-size: 28px;
}

.program-item h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.program-item p {
    margin-bottom: 10px;
    color: #666;
}

.program-time {
    display: block;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Section Témoignage */
.temoignage-section {
    background-color: var(--light-bg);
    padding: 70px 0;
}

.temoignage-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    line-height: 1.7;
}

.temoignage-intro p {
    margin-bottom: 1.2rem;
}

.membre-du-mois {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--card-shadow);
}

.membre-du-mois h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 2rem;
}

.membre-profile {
    display: flex;
    gap: 30px;
}

.membre-photo {
    flex: 0 0 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.membre-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.membre-info {
    flex: 1;
}

.membre-info h4 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.membre-role, .membre-location {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.membre-location {
    margin-bottom: 20px;
}

.membre-quote {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    margin-bottom: 25px;
}

.membre-quote i {
    color: var(--primary-color);
    font-size: 24px;
    position: absolute;
    top: 15px;
    left: 15px;
}

.membre-quote p {
    padding-left: 25px;
    font-style: italic;
    line-height: 1.6;
}

.archives-link {
    text-align: center;
    margin-top: 30px;
}

.archives-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.archives-link a:hover {
    color: var(--secondary-color);
}

.archives-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.archives-link a:hover i {
    transform: translateX(5px);
}

/* Section Projets */
.projets-section {
    background-color: white;
    padding: 70px 0;
}

.projets-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.soutien-projets {
    margin-top: 4rem;
}

.soutien-projets h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.soutien-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 2rem;
}

.soutien-option {
    text-align: center;
    flex: 1;
    max-width: 300px;
    background: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.soutien-option:hover {
    transform: translateY(-5px);
}

.soutien-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
}

.soutien-icon i {
    font-size: 28px;
}

.soutien-option h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.soutien-option p {
    color: #666;
}


.map-container {
    flex: 1;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

/* Boutons et éléments interactifs */
.btn-primary {
    display: block;
    width: fit-content;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    margin: 0 auto;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}


/* Styles pour la modal vidéo */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.video-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 pour les vidéos */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* Responsive styles */
@media (max-width: 991px) {
    .membre-profile {
        flex-direction: column;
        align-items: center;
    }

    .membre-photo {
        margin-bottom: 20px;
    }

    .contact-container {
        flex-direction: column;
    }

    .map-container {
        margin-top: 30px;
    }

    .media-content, .maison-content {
        flex-direction: column;
    }

    .media-image, .maison-image {
        order: -1;
        margin-bottom: 20px;
    }

    .soutien-options {
        flex-direction: column;
        align-items: center;
    }

    .soutien-option {
        width: 100%;
    }
}

@media (max-width: 768px) {

    .section-title {
        font-size: 1.8rem;
    }

    .carousel-slides {
        height: 350px;
    }

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

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

    .membre-info h4 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    
    .carousel-slides {
        height: 250px;
    }

    .carousel-prev, .carousel-next {
        width: 30px;
        height: 30px;
    }

    .carousel-indicators {
        gap: 8px;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }
}