/* ===================================================== */
/* ===================== RESET ========================== */
/* ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}


/* ===================================================== */
/* ===================== BASE =========================== */
/* ===================================================== */

body {
    background: #F3EDE2;
    color: #1f2933;
    line-height: 1.6;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}


/* ===================================================== */
/* ===================== BANDEROLE ====================== */
/* ===================================================== */

.hero {
    background: #F3EDE2;
    padding: 20px 0;

    display: flex;
    justify-content: center;
}

.hero img {
    width: 95%;
    max-width: 1600px;

    height: 180px;

    object-fit: contain;
    display: block;
}


/* ===================================================== */
/* ===================== MENU =========================== */
/* ===================================================== */

.menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    background: #9B111E;

    position: sticky;
    top: 0;

    z-index: 10;
}

.menu a {
    padding: 20px 45px;

    text-decoration: none;

    color: white;

    font-weight: 700;
    font-size: 22px;

    letter-spacing: 1px;

    transition: background 0.3s, color 0.3s;
}

.menu a:hover,
.menu a.active {
    background: #F99B1D;
    color: #1f2933;
}


/* ===================================================== */
/* ===================== CADRE DU TITRE ================= */
/* ===================================================== */

.titre-cadre {
    width: fit-content;
    max-width: 90%;

    margin: 30px auto 25px;

    padding: 12px 30px;

    background: #ffffff;

    border-radius: 15px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);

    text-align: center;
}


/* ===================================================== */
/* ===================== TITRE PRINCIPAL ================ */
/* ===================================================== */

.titre-principal {
    font-family: "Segoe UI", Arial, sans-serif;

    font-size: 42px;

    font-weight: 700;

    color: #023047;

    line-height: 1.2;
}


/* ===================================================== */
/* ===================== CADRES DES SECTIONS ============ */
/* ===================================================== */

section {
    width: 95%;
    max-width: 1200px;

    margin: 35px auto;

    padding: 40px;

    background: #ffffff;

    border-radius: 20px;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}


/* ===================================================== */
/* ===================== TITRES DES SECTIONS ============ */
/* ===================================================== */

.section-title {
    text-align: left;

    font-size: 30px;

    font-weight: 700;

    color: #023047;

    margin-bottom: 30px;

    line-height: 1.2;
}
/* ===================================================== */
/* ===================== TEXTE =========================== */
/* ===================================================== */

.animation-content {
    width: 100%;

    margin-bottom: 30px;
}

.animation-content p {
    font-size: 18px;

    line-height: 1.6;

    text-align: left;
}


/* ===================================================== */
/* ===================== PHOTOS ========================== */
/* ===================================================== */

.animation-images {
    width: 100%;

    display: flex;

    flex-direction: row;

    justify-content: space-between;

    align-items: flex-start;

    gap: 25px;

    margin-top: 25px;
}


/* ===================================================== */
/* ===================== PHOTO INDIVIDUELLE ============== */
/* ===================================================== */

.photo-item {
    width: calc(33.333% - 17px);

    flex: 0 0 calc(33.333% - 17px);

    text-align: center;
}


/* ===================================================== */
/* ===================== IMAGE =========================== */
/* ===================================================== */

.photo-item img {
    width: 100%;

    height: 320px;

    object-fit: contain;

    display: block;

    border-radius: 12px;

    cursor: pointer;

    transition:
        transform 0.3s,
        box-shadow 0.3s;
}


/* ===================================================== */
/* ===================== SURVOL ========================== */
/* ===================================================== */

.photo-item img:hover {
    transform: scale(1.03);

    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}


/* ===================================================== */
/* ===================== LÉGENDES ======================== */
/* ===================================================== */

.photo-caption {
    margin-top: 8px;

    font-size: 14px;

    line-height: 1.4;

    color: #555;

    text-align: center;
}


/* ===================================================== */
/* ===================== LIGHTBOX ======================== */
/* ===================================================== */

#lightbox-overlay {
    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.9);

    justify-content: center;

    align-items: center;

    z-index: 1000;
}

#lightbox-overlay img {
    max-width: 95%;

    max-height: 95%;

    border-radius: 10px;
}


/* ===================================================== */
/* ===================== FLÈCHES ========================= */
/* ===================================================== */

.arrow {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 45px;
    height: 45px;

    background: rgba(0, 0, 0, 0.6);

    color: white;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 26px;

    cursor: pointer;

    border-radius: 6px;

    user-select: none;

    z-index: 1100;
}

.arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.arrow-left {
    left: 15px;
}

.arrow-right {
    right: 15px;
}


/* ===================================================== */
/* ===================== BOUTON FERMER =================== */
/* ===================================================== */

#close-lightbox {
    position: absolute;

    top: 20px;
    right: 20px;

    font-size: 35px;

    color: white;

    background: rgba(0, 0, 0, 0.4);

    border: none;

    padding: 5px 12px;

    cursor: pointer;

    border-radius: 6px;

    z-index: 1100;
}

#close-lightbox:hover {
    background: rgba(255, 255, 255, 0.3);
}


/* ===================================================== */
/* ===================== FOOTER ========================== */
/* ===================================================== */

footer {
    background: #9B111E;

    color: #ffffff;

    text-align: center;

    padding: 12px 10px;

    margin-top: auto;

    font-size: 14px;
}

footer a {
    color: #ffffff;

    text-decoration: none;
}

footer a:hover {
    color: #F99B1D;
}


/* ===================================================== */
/* ===================== MENTIONS LÉGALES =============== */
/* ===================================================== */

.legal {
    background: #f9f9f9;

    padding: 50px 30px;

    max-width: 900px;

    margin: 50px auto;

    border-radius: 15px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);

    font-size: 16px;

    line-height: 1.8;
}

.legal h1 {
    font-size: 36px;

    text-align: center;

    margin-bottom: 50px;

    color: #fb8500;
}

.legal-section h2 {
    font-size: 20px;

    margin-bottom: 12px;

    color: #023047;

    border-bottom: 2px solid #ffb703;
}


/* ===================================================== */
/* ===================== TABLETTE ======================== */
/* ===================================================== */

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

    .menu a {
        padding: 14px 25px;

        font-size: 18px;
    }


    /* ===================== TITRE ===================== */

    .titre-cadre {
        max-width: 90%;

        margin: 25px auto 20px;

        padding: 10px 22px;

        border-radius: 15px;
    }

    .titre-principal {
        font-size: 34px;
    }


    /* ===================== SECTIONS ===================== */

    section {
        width: 95%;

        margin: 30px auto;

        padding: 30px 25px;

        border-radius: 18px;
    }


    /* ===================== TITRE SECTION ===================== */

    .section-title {
        font-size: 26px;

        margin-bottom: 25px;
    }


    /* ===================== TEXTE ===================== */

    .animation-content {
        margin-bottom: 25px;
    }

    .animation-content p {
        font-size: 16px;

        line-height: 1.6;
    }


    /* ===================== PHOTOS ===================== */

    .animation-images {
        display: flex;

        flex-direction: row;

        gap: 10px;
    }

    .photo-item {
        width: calc(33.333% - 7px);

        flex: 0 0 calc(33.333% - 7px);
    }

    .photo-item img {
        height: 230px;

        border-radius: 8px;
    }

    .photo-caption {
        font-size: 11px;

        line-height: 1.3;
    }


    /* ===================== FLÈCHES ===================== */

    .arrow {
        width: 35px;
        height: 35px;

        font-size: 20px;
    }

    .arrow-left {
        left: 5px;
    }

    .arrow-right {
        right: 5px;
    }
}


/* ===================================================== */
/* ===================== PETIT TÉLÉPHONE ================= */
/* ===================================================== */

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

    .hero img {
        height: 140px;
    }


    .menu a {
        padding: 12px 15px;

        font-size: 16px;
    }


    /* ===================== TITRE ===================== */

    .titre-cadre {
        max-width: 94%;

        margin: 20px auto 15px;

        padding: 9px 15px;

        border-radius: 13px;
    }

    .titre-principal {
        font-size: 25px;
    }


    /* ===================== SECTIONS ===================== */

    section {
        width: 96%;

        margin: 25px auto;

        padding: 25px 15px;

        border-radius: 15px;
    }


    /* ===================== TITRE SECTION ===================== */

    .section-title {
        font-size: 22px;

        margin-bottom: 20px;
    }


    /* ===================== TEXTE ===================== */

    .animation-content {
        margin-bottom: 20px;
    }

    .animation-content p {
        font-size: 13px;

        line-height: 1.55;
    }


    /* ===================== PHOTOS ===================== */

    .animation-images {
        display: flex;

        flex-direction: row;

        gap: 5px;
    }

    .photo-item {
        width: calc(33.333% - 4px);

        flex: 0 0 calc(33.333% - 4px);
    }

    .photo-item img {
        height: 170px;

        border-radius: 7px;
    }

    .photo-caption {
        font-size: 9px;

        line-height: 1.3;
    }

}