/*
    Description : Cette page présente le CSS de la page agres_vs_gymnastique.
    Auteur      : Louisa Perelli
    Date        : 16.01.2026
*/

/* ============================= */
/* agres_vs_gymnastique.html */
/* ============================= */
.section_vs {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
}

/* BLOCS PRINCIPAUX */
.bloc_vs_a,
.bloc_vs_g {
    background-color: #ffffff;
    padding: 30px 25px;
    border-radius: 18px;
    width: 48%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bloc_vs_a:hover,
.bloc_vs_g:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(90, 29, 130, 0.3);
}

/* TITRES */
.bloc_vs_a h2,
.bloc_vs_g h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #5a1d82;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ICÔNES */
.icon_vs_a,
.icon_vs_g {
    width: 120px;
    margin: 10px auto 25px;
    display: block;
}

/* PETITS BLOCS */
.carre h3 {
    font-size: 15px;
    margin: 15px 0 5px;
    color: #5a1d82;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carre {
    background-color: #faf8fd;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 15px;
    max-width: 280px;
    margin: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carre:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(119, 87, 119, 0.4);
}

.carre p {
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 10px;
}

/* TITRE AVEC LIGNE */
.section_vs_g {
    width: 100%;
    margin: 100px 0 60px;
    padding: 0;
}

.titre-ligne {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    gap: 20px;
    color: #5a1d82;
    font-size: 22px;
    font-weight: 600;
}

.titre-ligne::before,
.titre-ligne::after {
    content: "";
    flex: 1;
    height: 2px;
    background-color: #5a1d82;
}


/* ----------------------------- */
/* TABLETTE : max-width 1200px */
/* ----------------------------- */
@media screen and (max-width: 1200px) {

    .section_vs {
        flex-direction: column;
        gap: 30px;
        margin: 60px auto;
    }

    .bloc_vs_a,
    .bloc_vs_g {
        width: 100%;
        padding: 25px 20px;
    }

    .bloc_vs_a h2,
    .bloc_vs_g h2 {
        font-size: 22px;
    }

    .icon_vs_a,
    .icon_vs_g {
        width: 100px;
        margin-bottom: 20px;
    }

    .carre {
        max-width: 100%;
    }

    .titre-ligne {
        font-size: 20px;
        gap: 15px;
    }
}


/* ----------------------------- */
/* MOBILE : max-width 430px */
/* ----------------------------- */
@media screen and (max-width: 430px) {

    /* Permet d inclure le padding et la bordure dans la largeur de l’élément */
    /* Évite que les blocs dépassent la largeur de l’écran */
    * {
        box-sizing: border-box;
    }

    .section_vs {
        margin: 40px auto;
        padding: 0 15px;
        gap: 25px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .bloc_vs_a,
    .bloc_vs_g {
        padding: 20px 15px;
        border-radius: 14px;
        width: 100%;
        max-width: 100%;
    }

    .bloc_vs_a h2,
    .bloc_vs_g h2 {
        font-size: 20px;
    }

    .icon_vs_a,
    .icon_vs_g {
        width: 80px;
        max-width: 100%;
        height: auto;
        margin-bottom: 15px;
    }

    .carre {
        padding: 14px;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
    }

    .carre h3 {
        font-size: 14px;
    }

    .carre p {
        font-size: 13px;
        line-height: 1.5;
        text-align: left;
    }

    .titre-ligne {
        font-size: 18px;
        gap: 10px;
        padding: 0 10px;
        max-width: 100%;
    }

    /* Hover désactivé sur mobile */
    .bloc_vs_a:hover,
    .bloc_vs_g:hover,
    .carre:hover {
        transform: none;
        box-shadow: none;
    }
}