
@charset "utf-8";


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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
}


/* ==================================================
   CONTENEUR
================================================== */

.galerie-page {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 15px;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ==================================================
   CADRE PANORAMIQUE
================================================== */

.diaporama4 {
    width: 100%;
    aspect-ratio: 1 / 1;

    position: relative;
    overflow: hidden;

    border: 3px solid #ddd;

    margin-top: 100px;
    margin-bottom: 25px;

    background: #000;
}


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

.panorama {
    position: absolute;
    inset: 0;

    background-image: url("./imgs/Le_lac.jpg");
    background-repeat: no-repeat;

    background-size: auto 100%;
    background-position: 0% center;

    animation: defilement-panorama 15s linear infinite alternate;

    will-change: background-position;
}


/* ==================================================
   DÉFILEMENT DE GAUCHE À DROITE
================================================== */

@keyframes defilement-panorama {

    from {
        background-position: 0% center;
    }

    to {
        background-position: 100% center;
    }
}


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

.menu {
    width: 100%;

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

    gap: 45px;

    margin-bottom: 20px;

    font-family: "Times New Roman", Times, serif;

    font-size: 35px;
    line-height: 1.55;
}


.menu a {
    position: relative;

    color: #000;
    text-decoration: none;

    font-family: "Times New Roman", Times, serif;

    font-size: 35px;
    line-height: 1.55;

    white-space: nowrap;
}


/* ==================================================
   FRANÇAIS / ANGLAIS
================================================== */

.menu .francais {
    display: inline;
}

.menu .anglais {
    display: none;
}


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

.menu a:hover .francais {
    display: none;
}

.menu a:hover .anglais {
    display: inline;
}


/* ==================================================
   TOUCHER
================================================== */

.menu a.touche .francais {
    display: none;
}

.menu a.touche .anglais {
    display: inline;
}


/* ==================================================
   RETOUR
================================================== */

.retour {
    margin-top: 15px;
}

.retour img {
    width: 25px;
    height: 25px;
}


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

@media (max-width: 900px) {

    .menu {
        gap: 30px;

        font-family: "Times New Roman", Times, serif;

        font-size: 23px;
        line-height: 1.55;
    }

    .menu a {
        font-family: "Times New Roman", Times, serif;

        font-size: 23px;
        line-height: 1.55;
    }
}


/* ==================================================
   SMARTPHONE
================================================== */

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

    .galerie-page {
        width: 100%;
        padding: 10px;
        border-right: 10px solid #fff;
    }


    .diaporama4 {
        width: 70%;
        margin-bottom: 20px;
    }


    .menu {
        width: 100% !important;

        display: grid !important;

        grid-template-columns: 50% 50% !important;

        gap: 18px 0 !important;

        margin-bottom: 20px;

        text-align: center;

        font-family: "Times New Roman", Times, serif;

        font-size: 21px;
        line-height: 1.55;
    }


    .menu a {
        position: static;

        display: block !important;

        width: 100% !important;
        min-width: 0 !important;

        padding: 0 5px;

        color: #000;
        text-decoration: none;

        font-family: "Times New Roman", Times, serif;

        font-size: 21px;
        line-height: 1.55;

        white-space: normal !important;

        overflow-wrap: anywhere;
        word-break: normal;
    }


    .retour {
        display: block;
        margin-top: 150px;
    }


    .retour img {
        width: 25px;
        height: 25px;
    }
}


/* ==================================================
   PETIT SMARTPHONE
================================================== */

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

    .menu {
        grid-template-columns: 50% 50% !important;

        font-size: 20px;
        line-height: 1.55;
    }


    .menu a {
        font-size: 20px;

        white-space: normal !important;
    }
}
