/* ========== À PROPOS PAGE ========== */

.section-apropos {
    margin: 100px;
    padding: 3rem 2rem;
}

.apropos-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 100%;
    margin: 0;
    justify-content: flex-end;
    padding-right: 3rem;
}

.apropos-content {
    flex: 1;
    padding-left: 37px;
    padding-right: 37px;
}

.apropos-titles h2 {
    font-family: 'Parisienne';
    padding-bottom: 30px;
    font-size: 75px;
    color: #470B24;
}

.apropos-texte {
    column-count: 2;
    column-gap: 4rem;
    max-width: 675px;
}

.apropos-photo {
    width: 262px;
    height: 309px;
    margin-top: auto;
    overflow: hidden;
    /* indispensable */
}

@media screen and (max-width: 992px) {
    .section-apropos {
        margin: 50px 20px;
        padding: 2rem 1rem;
    }

    .apropos-container {
        flex-direction: column; /* empile le contenu */
        align-items: flex-start; /* texte à gauche */
        justify-content: flex-start;
        padding-right: 0;
        gap: 2rem;
    }

    .apropos-content {
        padding: 0;
        width: 100%;
    }

    .apropos-titles h2 {
        font-size: 50px;
        padding-bottom: 20px;
        text-align: left;
    }

    .apropos-texte {
        column-count: 1; /* plus de colonnes */
        max-width: 100%;
        column-gap: 0;
    }

    .apropos-photo {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }

    .apropos-photo img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 8px;
    }
}


/* ========== BOUTON CV ========== */

.cv-button {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    text-decoration: none;
    color: #470B24;
    transition: all 0.2s ease;
}

.cv-button:hover {
    color: #B1BAE1;
}

/* ========== CAROUSEL ========== */

.hors-ecrans-content p {
    margin-top: 100px;
    margin-bottom: 0%;
}

.carousel {
    width: 100%;
    display: flex;
    overflow-x: auto;
    gap: 1em;;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    animation: spin 20s linear infinite;
}

.item {
    width: 200px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes spin {
    from {
        translate: 0;
    }

    to {
        translate: -100%;
    }
}