/* Page À propos */

.text-wrapper {
    max-width: 498px;
    margin: 0 auto;
}

div.hero.apropos {
    background-color: var(--bordeaux-fonce);
}

footer.aPropos {
    margin: 0;
}

section.premier-texte {
    margin: 4rem auto;
    text-align: center;
}

section.texte-histoire {
    margin: 4rem auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

section.texte-histoire img {
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    display: block;
}

section.texte-histoire h2 {
    text-align: center;
    border-bottom: 2px solid var(--bordeaux-fonce);
    padding-bottom: 0.5rem;
}

.background-bourg-clair {
    background-color: var(--bordeaux-clair);
    color: var(--creme-clair);
    padding: 3rem 0;
    margin: 1rem 0;
    text-align: center;
}

.background-bourg-clair p {
    font-family: "Marcellus", serif;
    font-size: 20px;
}

.background-bourg-clair .text-wrapper {
    display: flex;
    max-width: 800px;
}

.background-bourg-clair .text-wrapper p {
    font-size: 24px;
    margin: 0;
    padding: 0 2rem;
    flex: 1;
}

section.texte-citation {
    font-size: 24px;
}

section.texte-citation div.text-wrapper {
    flex-direction: column;
}

.background-bourg-clair h3:first-child,
.background-bourg-clair h3:last-child {
    font-family: "Marcellus", serif;
    font-size: 36px;
    margin: 0;
}

.background-bourg-clair h3:first-child { align-self: flex-start; }
.background-bourg-clair h3:last-child  { align-self: flex-end; }

section.texte-fin {
    margin-top: 3rem;
    margin-bottom: 0;
}

section.texte-fin .text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

section.texte-fin span p, 
section.texte-citation span p {
    font-family: "Karla", sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    font-size: 18px;
    margin-top: 2rem;
    margin-bottom: 0;
}

section.cours.aPropos {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

/* --------- Responsive page À propos ----------------*/

/* Marges latérales dès que les blocs bordeaux (800 px) touchent les bords */
@media (max-width: 848px) {
    .text-wrapper {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 600px) {
    .text-wrapper {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    section.texte-histoire {
        margin: 2.5rem auto;
    }

    section.texte-histoire p {
        line-height: 1.65;
    }

    section.texte-histoire img {
        margin: 1.5rem auto;
        border-radius: 8px;
    }

    section.texte-histoire h2 {
        font-size: 1.6rem;
    }

    .background-bourg-clair {
        padding: 2.25rem 0;
    }

    .background-bourg-clair .text-wrapper p {
        font-size: 19px;
        line-height: 1.5;
        padding: 0 0.5rem;
    }

    .background-bourg-clair h3:first-child,
    .background-bourg-clair h3:last-child {
        font-size: 28px;
        line-height: 1;
    }

    section.texte-fin span p,
    section.texte-citation span p {
        font-size: 15px;
        margin-top: 1.25rem;
    }

    section.cours.aPropos {
        flex-direction: column;
        padding: 2.5rem 1.25rem;
    }

    section.cours.aPropos .bouton {
        width: 100%;
        max-width: 320px;
        margin: 0;
    }
}
