@charset "utf-8";


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

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

html,
body{
    width:100%;
    overflow-x:hidden;
    background:#fff;
    font-family:"Times New Roman", Times, serif;
}


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

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

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


/* ==================================================
   DIAPORAMA
================================================== */

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

    position:relative;
    overflow:hidden;

    border:3px solid #ddd;

    margin-bottom:25px;
}


/* ==================================================
   COUCHES DES PHOTOS
================================================== */

.fondu{
    position:absolute;
    inset:0;

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    opacity:0;

    transform:scale(1.08);

    animation:diapo 30s linear infinite;

    will-change:opacity, transform;
}


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

/* 1 */
.photo1{
    background-image:url("imgs/Delph2.jpg");
    animation-delay:0s;
}

/* 2 */
.photo2{
    background-image:url("imgs/Evelyne.jpg");
    animation-delay:3s;
}

/* 3 */
.photo3{
    background-image:url("imgs/Delphine2.jpg");
    animation-delay:6s;
}

/* 4 */
.photo4{
    background-image:url("imgs/Helene2.jpg");
    animation-delay:9s;
}

/* 5 */
.photo5{
    background-image:url("imgs/Christophe.jpg");
    animation-delay:12s;
}

/* 6 */
.photo6{
    background-image:url("imgs/Nuvish2.jpg");
    animation-delay:15s;
}

/* 7 */
.photo7{
    background-image:url("imgs/Mani3.jpg");
    animation-delay:18s;
}

/* 8 */
.photo8{
    background-image:url("imgs/Mado2.jpg");
    animation-delay:21s;
}

/* 9 */
.photo9{
    background-image:url("imgs/Mani.jpg");
    animation-delay:24s;
}

/* 10 */
.photo10{
    background-image:url("imgs/Raphael2.jpg");
    animation-delay:27s;
}


/* ==================================================
   ANIMATION
================================================== */

/*
   10 photos
   3 secondes par photo
   = 30 secondes

   Chaque photo apparaît,
   reste visible,
   puis fond progressivement
   vers la suivante.
*/

@keyframes diapo{

    /* apparition */
    0%{
        opacity:0;
        transform:scale(1.08);
    }

    /* fondu d'entrée */
    1.5%{
        opacity:1;
    }

    /* photo visible */
    8.5%{
        opacity:1;
        transform:scale(1.02) translate(-1%,-1%);
    }

    /* début du fondu */
    9.5%{
        opacity:.75;
    }

    /* disparition */
    11.1%{
        opacity:0;
        transform:scale(1) translate(-2%,-2%);
    }

    /* reste invisible */
    100%{
        opacity:0;
        transform:scale(1) translate(-2%,-2%);
    }
}


/* ==================================================
   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 (max-width:600px){

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


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


    .menu{
        width:100%;

        display:grid;

        grid-template-columns:repeat(2,1fr);

        gap:18px 10px;

        text-align:center;

        font-family:"Times New Roman", Times, serif;
        font-size:21px;
        line-height:1.55;
    }


    .menu a{
        display:block;

        font-family:"Times New Roman", Times, serif;
        font-size:21px;
        line-height:1.55;
    }


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


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

}


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

@media (max-width:400px){

    .menu{
        font-family:"Times New Roman", Times, serif;
        font-size:20px;
        line-height:1.55;
    }


    .menu a{
        font-family:"Times New Roman", Times, serif;
        font-size:20px;
        line-height:1.55;
    }

}