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

/* ============================= */
/* romont_gym.html */
/* ============================= */

/* CALENDRIER */
.calendar {
    max-width: 100%;
    margin: 0 auto;
    justify-content: center;
}

.calendar > * {
    flex: 1 1 300px; /* Se réduit automatiquement */
    max-width: 100%;
}

/* BIOGRAPHIE */
.biographie {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
}

/* CONTENEURS DES SECTIONS */
.section,
.section-h2 {
    margin-bottom: 30px;
    padding: 25px 20px;
    border-radius: 15px;
    background-color: #ffffff;
    color: #000000;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Ligne décorative en haut de chaque section */
.section::before,
.section-h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #ffffff, #6c308f);
    /* violet gradient */
    border-radius: 0 0 5px 5px;
}

/* Hover des sections */
.section:hover,
.section-h2:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 255, 255, 0.25);
    background: linear-gradient(145deg, #ffffff 0%, #7b6988 100%);
    color: #ffffff;
}

/* TITRES DANS LES SECTIONS */
.section h2,
.section-h2 h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #000000;
    /* titre noir */
    transition: color 0.3s ease;
}

/* Texte des paragraphes */
.section p,
.section-h2 p {
    font-size: 1rem;
    line-height: 1.7;
    color: #000000;
    /* texte noir */
}


/* CONTENEURS GLOBAUX */
.toutbox {
    margin: 2vw;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* GROUPES DE LIENS */
.groupe {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.groupe a {
    color: #ffffff;
    /* texte blanc dans les liens */
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 8px;
    background: linear-gradient(45deg, #918597, #5c3f57);
    transition: transform 0.3s ease, background 0.3s ease;
}

.groupe a:hover {
    transform: scale(1.1);
    background: linear-gradient(45deg, #6d576a, #160c1b);
}

/* ANIMATION AU SCROLL */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section,
.section-h2,
.image-section,
.groupe a {
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
    animation-delay: 0.2s;
}

.section-h2 {
    animation-delay: 0.3s;
}

.image-section {
    animation-delay: 0.4s;
}

.groupe a {
    animation-delay: 0.5s;
}

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

    /* Boîtes individuelles */
    .boite {
        width: 48%;
        flex-direction: column;
        padding: 15px;
        margin-bottom: 20px;
    }

    /* Biographie */
    .biographie {
        flex-direction: column;
        gap: 25px;
    }

    /* Sections avec titre */
    .section-h2 {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Calendrier */
    .calendar {
        flex-direction: column;
        gap: 20px;
        margin: 0 auto;
    }

    /* Groupes de liens */
    .groupe {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .groupe a {
        width: 70%;
        text-align: center;
    }

        .calendar {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
        justify-content: center;
    }

    .calendar > * {
        width: 100%;
        max-width: 600px;
    }
}


/* ----------------------------- */
/* MOBILE : max-width 430px */
/* ----------------------------- */

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

    /* CONTENEUR GLOBAL */
    .toutbox {
        margin: 2vw 1vw;
        gap: 25px;
    }

    /* CALENDRIER */
    .calendar {
        flex-direction: column;
        gap: 15px;
    }

    /* BIOGRAPHIE */
    .biographie {
        flex-direction: column;
        gap: 20px;
    }

    /* SECTIONS */
    .section,
    .section-h2 {
        width: 100%;
        padding: 15px 15px;
        border-radius: 12px;
    }

    .section::before,
    .section-h2::before {
        width: 60px;
        height: 4px;
    }

    /* TITRES DANS LES SECTIONS */
    .section h2,
    .section-h2 h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    /* PARAGRAPHES */
    .section p,
    .section-h2 p {
        font-size: 0.9rem;
        line-height: 1.5;
    }


    /* GROUPES DE LIENS */
    .groupe {
        flex-direction: column;
        gap: 10px;
    }

    .groupe a {
        text-align: center;
        padding: 10px;
        font-size: 0.9rem;
    }

    .calendar {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .calendar>* {
        width: 100%;
    }


    .calendar {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .calendar>* {
        width: 100%;
    }
}