/* Timeline */
.timeline {
    position: relative;
    margin: 50px auto;
    padding: 20px 0;
    max-width: 800px;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #001c5e;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    width: 45%;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
    font-family: 'Police_banniere', serif;
}

.timeline-item.left {
    left: 0;
    margin-right: 5%;
    align-items: flex-end;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    margin-left: 5%;
    align-items: flex-start;
    text-align: left;
}

.timeline-item h3 {
    color: #001c5e;
    margin: 10px 0;
}

.timeline-item p {
    color: #001c5e;
    line-height: 1.6;
}

.timeline-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #001c5e;
    border-radius: 50%;
    left: 50%;
    margin-left: -6px;
    z-index: 10;
}

/* Photo de groupe */
.hero-section {
    position: relative;
    width: 100%;
    height: 800%; /* Ajuste selon la hauteur souhaitée */
    overflow: hidden; /* Pour éviter que les nuages ne débordent */
    background-color: #f7ebd7; /* Fond beige comme dans ton design */
    display: flex;
    justify-content: center;
    align-items: center;
}

.group-photo {
    height: auto;
    width: 100vw;
    z-index: 1; /* Place la photo au-dessus des nuages */
}

/* Qui sommes-nous */
.blue-band {
    background-color: #001c5e; 
    color: #f7ebd7; 
    width: 100vw;
    display: flex;
    align-items: center; 
    justify-content: center; 
    height: 60px; 
    font-family: 'Police_titres'; 
    font-size: 22px; 
    font-weight: bold;
    text-transform: uppercase;
}

.content-section {
    width: 100%;
    max-width: 1200px; /* Largeur maximale pour éviter que le contenu ne soit trop large */
    margin: 0 auto; /* Centre la section horizontalement */
    padding: 20px; /* Espacement autour de la section */
    background-color: transparent; /* Fond beige comme dans ton design */
}

/* Ligne du haut : 2 paragraphes côte à côte */
.top-row {
    display: flex;
    gap: 20px; /* Espace entre les deux paragraphes */
    margin-bottom: 20px; /* Espace entre la ligne du haut et celle du bas */
}

.text-box {
    flex: 1; /* Chaque paragraphe prend 50% de la largeur */
    padding: 15px;
    box-sizing: border-box; /* Inclut le padding dans la largeur */
    text-align: left;
}

/* Ligne du bas : 1 paragraphe + 1 photo */
.bottom-row {
    display: flex;
    gap: 20px; /* Espace entre le paragraphe et la photo */
    align-items: flex-start; /* Aligne les éléments en haut */
    width: 100%;
}

.image-box {
    flex: 1; /* La photo prend 50% de la largeur */
    max-width: calc(50% - 20px); /* Ajuste pour tenir compte du gap */
}

.content-image {
    max-width: 100%; /* Ajuste pour tenir compte du gap */
    height: auto; /* Hauteur proportionnelle */
}

/* Style des paragraphes */
.text-box p {
    margin: 0;
    padding: 0;
    font-family: 'Police_sous_banniere', serif;
    font-size: 16px;
    line-height: 1.5; /* Espacement entre les lignes */
    color: #001c5e; /* Couleur du texte */
}

.text-box p strong{
    font-family: 'Police_banniere';
}

/* Ligne-plume en arrière-plan */

.background-container {
    overflow: hidden;
}

.design-section {
    position: relative; /* Nécessaire pour superposer le contenu */
    width: 100%;
    height: auto; /* Hauteur minimale pour éviter le rognage (ajuste selon ton design) */
    background-image: url('../Images/ligne_plume.png'); /* Chemin vers ton SVG */
    background-size: contain; /* Étire le SVG pour couvrir tout le conteneur */
    background-position: center bottom; /* Centre le SVG */
    background-repeat: no-repeat; /* Empêche la répétition */
    overflow: hidden; /* Permet au SVG de déborder si nécessaire */
    margin: 0;
    padding-bottom: 220px;
}


/* Bouton Newsletter */
.newsletter-section {
    display: flex;
    justify-content: center; /* Centre le bouton horizontalement */
    margin: 40px auto; /* Espace en haut et en bas */
    width: 100%;
    max-width: 800px; /* Largeur maximale pour le conteneur */
}

.newsletter-button {
    display: inline-block;
    background-color: #001c5e; /* Fond bleu foncé */
    color: #f7ebd7; /* Texte blanc */
    text-decoration: none; /* Supprime le soulignement du lien */
    padding: 15px 30px; /* Espace interne (haut/bas, gauche/droite) */
    font-family: 'Police_banniere', sans-serif;
    font-size: 27px;
    font-weight: 700; /* Texte en gras */
    text-transform: uppercase; /* Texte en majuscules */
    letter-spacing: 1px; /* Espacement entre les lettres */
    border-radius: 50px; /* Bordures arrondies pour un effet "pill" */
    text-align: center;
    transition: all 0.3s ease; /* Animation au survol */
}

.newsletter-button:hover {
    background-color: #C7004F; /* Fond plus foncé au survol */
}

.banner-end {
    background-color: transparent;
    height: 100px;
}

/* ===========================
   RESPONSIVE MOBILE (< 768px)
   =========================== */

@media (max-width: 768px) {

    /* Photo groupe */
    .hero-section {
        height: auto;
    }

    .group-photo {
        width: 100vw;
        height: auto;
    }

    /* Bande bleue */
    .blue-band {
        font-size: 16px;
        height: auto;
        padding: 12px 16px;
        text-align: center;
    }

    /* Section contenu */
    .content-section {
        padding: 16px;
    }

    .top-row {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 16px;
    }

    .text-box {
        padding: 0;
    }

    .text-box p {
        font-size: 15px;
    }

    .bottom-row {
        flex-direction: column;
        gap: 16px;
    }

    .image-box {
        max-width: 100%;
    }

    .content-image {
        width: 100%;
        height: auto;
    }

    /* Design / ligne plume */
    .design-section {
        background-image: none;
        padding-bottom: 40px;
    }

    /* Trombinoscope */
    .members-grid {
        gap: 16px;
        row-gap: 30px;
        padding: 0 16px;
    }

    .member-card h3 {
        font-size: 18px;
    }

    .member-card p {
        font-size: 13px;
    }

    /* Timeline */
    .timeline::before {
        left: 16px;
    }

    .timeline-item {
        width: 85%;
        left: 30px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left !important;
        align-items: flex-start !important;
        padding: 12px 0;
   }

    .timeline-dot {
        left: 16px;
    }

    /* Titre "La Troupe" */
    .la-troupe h2 {
        font-size: 26px;
    }

    /* Newsletter */
    .newsletter-section {
        padding: 0 16px;
    }

    .newsletter-button {
        font-size: 18px;
        padding: 12px 20px;
        width: 100%;
        text-align: center;
    }

    .banner-end {
        height: 50px;
    }
}
