/*
    Description : Cette page présente le CSS de toute les pages engin.
    Auteur      : Louisa Perelli
    Date        : 16.01.2026
*/

/* ============================= */
/* engin.HTML (ANNEAUX, RECK, SAUT, SOL) */
/* ============================= */

.tout {
    margin-top: 2vw;
    margin-left: 2vw;
    margin-right: 2vw;
    margin-bottom: 2vw;
}

/* MAIN CONTENT */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2vw;
    font-family: 'Arial', sans-serif;
    color: #403953;
}

/* PAGE TITLE */
.page-title {
    text-align: center;
    margin-bottom: 3vw;
}

.page-title h1 {
    font-size: 3rem;
    color: #5a1d82;
    margin-bottom: 0.5rem;
}

.page-title .intro {
    font-size: 1.2rem;
    color: #555;
    font-style: italic;
}

/* INFO SECTION */
.info-section {
    display: flex;
    gap: 2vw;
    flex-wrap: wrap;
    margin-bottom: 3vw;
}

.info-box {
    background: #fafafa;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1.5rem;
    flex: 1 1 45%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-box:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(34, 31, 34, 0.2);
}

.info-box h2 {
    font-size: 1.5rem;
    color: #5a1d82;
    margin-bottom: 1rem;
}

.info-box p {
    line-height: 1.6;
}

/* MEDIA SECTION */
.media-section {
    display: flex;
    gap: 2vw;
    flex-wrap: wrap;
    margin-bottom: 3vw;
    justify-content: center;
}

.image-box {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1vw;
}

.logo-img {
    width: 80px;
    height: auto;
}

.main-img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
}

/* vidéo */
.video-box {
    height: 260px;
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.4s;
    flex-wrap: wrap;
    margin-top: 6%;
}

.video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s, filter 0.4s;
}

.video-box:hover {
    transform: scale(1.03);
}

.video-box:hover video {
    transform: scale(1.15);
    filter: brightness(1.1);
}



/* MATERIEL SECTION */
.materiel-section {
    background: #e9e9e9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 3vw;
    box-shadow: 0 10px 25px rgba(120, 91, 139, 0.541);
}

.materiel-section h2 {
    color: #5a1d82;
    margin-bottom: 1rem;
}

.materiel-section ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

/* TABLE SECTION */
.table-section table {
    width: 80%;
    margin: 0 auto;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
}

.table-section h2 {
    color: #5a1d82;
    margin-bottom: 2em;
    text-align: center;
    margin-bottom: 5vw;
}

.table-section table {
    width: 100%;
    border-collapse: collapse;
}

.table-section th,
.table-section td {
    border: 1px solid #ccc;
    padding: 0.8rem;
    text-align: left;
}

.table-section th {
    background-color: #f3f3f3;
}

.table-section tbody tr:nth-child(even) {
    background-color: #fafafa;
}


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

    .tout {
        margin: 20px;
    }

    .main-content {
        padding: 20px;
    }

    /* Titre */
    .page-title h1 {
        font-size: 2.4rem;
    }

    .page-title .intro {
        font-size: 1.05rem;
    }

    /* Info section */
    .info-section {
        flex-direction: column;
        gap: 25px;
    }

    .info-box {
        flex: 1 1 100%;
    }

    /* Media section */
    .media-section {
        flex-direction: column;
        gap: 30px;
    }

    .image-box {
        flex: 1 1 100%;
    }

    .main-img {
        max-width: 100%;
    }

    .video-box {
        display: none;

    }


    /* Matériel */
    .materiel-section {
        padding: 20px;
    }

    /* Tableau */
    .table-section {
        overflow-x: auto;
    }

    .table-section table {
        width: 100%;
        min-width: 600px;
    }
}

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

    /* -------- RESET SÉCURITÉ -------- */
    * {
        box-sizing: border-box;
        max-width: 100%;
    }

    html,
    body {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden;
        /* SUPPRIME l’espace blanc à droite */
    }

    /* Cache TOUTES les vidéos sur mobile */
    .video-box {
        display: none;
    }

    /* -------- CONTENEUR GLOBAL -------- */
    .tout {
        width: 60%;
        padding: 15px;
        margin: 0;
    }

    /* -------- TITRES -------- */
    h1 {
        max-width: 60%;
        word-wrap: break-word;
    }

    h2 {
        max-width: 90%;
    }

    h3 {
        width: 30%;
    }

    .materiel-section {
        width: 60%;
    }

    .page-title .intro {
        display: none;
    }


    /* -------- BOX -------- */
    .info-box {
        width: 60%;
        padding: 16px;
        margin-bottom: 20px;
        border-radius: 10px;
        overflow: hidden;
        /* empêche tout débordement */
    }

    .info-box h2 {
        font-size: 1.2rem;
    }

    .info-box p {
        font-size: 0.9rem;
        line-height: 1.5;
        word-wrap: break-word;
    }



    /* -------- LISTES -------- */
    ul {
        padding-left: 1.2rem;
        margin: 0;
    }

    li {
        word-wrap: break-word;
    }

    /* -------- SECTION MATÉRIEL -------- */
    .materiel-section h2 {
        font-size: 1.3rem;
        text-align: center;
    }

    /* -------- TABLEAU -------- */
    .table-section {
        width: 70%;
        overflow-x: auto;
        /* scroll UNIQUEMENT ici */
    }

    .table-section table {
        width: 60%;
        min-width: 600px;
        /* empêche l’écrasement */
        border-collapse: collapse;
    }

    .table-section th,
    .table-section td {
        padding: 0.6rem;
        font-size: 0.85rem;
        white-space: nowrap;
        text-align: left;
    }

    /* -------- DÉSACTIVE LES HOVER -------- */
    *:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}