* {

    margin:0;

    padding:0;

    box-sizing:border-box;
}

html {

    scroll-behavior:smooth;
}

body {

    display: flex;

    flex-direction: column;

    background:#fff;

    font-family:sans-serif;

    color:#000;
}

.fixed-header {

    position:fixed;

    top:0;

    left:0;

    width:100%;

    height:50px;

    display:flex;

    justify-content:space-around;

    align-items:center;

    z-index: 100;

    background-color: #fff;

    opacity: 0.8;
}

.fixed-header p {
    min-width: 250px;
    display: flex;
    justify-content: center;
}


.fixed-header p a {
    margin: auto;
}

#insta {
    width: 25px;
}

.logo-box {

    height: 100vh;

    display: flex;
}

.logo {

    height: 40%;

    margin: auto;
}

main {

    padding: 50px 0 0 0;

    display: flex;

    flex-direction: column;

    width: 1400px;

    margin: 0 auto;
}

.main-header {

    height: 50px;;
}

.gallery {

    display:block;

}

.slide {

    display:flex;

    flex-direction:row;

    justify-content:center;

    max-height: 70vh;

}

.img-container {

    display:flex;

    flex-direction: column-reverse;

    padding: 1rem;

    height: 60vh;

}

.item {

    display:flex;

    height:100%;

    cursor:pointer;

    opacity:0;

    transform:scale(.5);

    animation:reveal linear forwards;

    animation-timeline:view();

    animation-range:
        entry 20%
        cover 40%;
}

.item img {

    width:auto;

    height:100%;
    
}

/* Gestion des tailles relatives des photos */ 

.hfull {
    height: 100%;
}  

.hsixtyvh {
    height: 60vh;
}

.hfiftyvh {
    height: 50vh;
}

.hsixty {
    height: 60%;
}

.hsixtyfive {
    height: 65%;
}

.hseventy {
    height: 70%;
}

.heightyvh {
    max-height: 80vh;
    height: 80vh;
}

#img01 {
    height: 60%;
}

#img03 {
    height: 50vh;
}

.img04 {

    max-height: 80vh;
    height: 80vh;
}

.img05 {

    height: 80%;
}


@keyframes reveal {

    from {
        opacity:0;
        transform:scale(.5);
    }

    to {
        opacity:1;
        transform:scale(1);
    }
}

/* CSS Panneau de series */

#series-panel {

    position: fixed;

    inset: 0;

    z-index: 999;

    pointer-events: none;
}

.panel-close {

    height: 25vh;

    width: 100%;

    opacity: 0;
}

.panel-content {

    position: absolute;

    bottom: 0;

    left: 0;

    width: 100%;

    height: 75vh;

    background: white;

    transform: translateY(100%);

    transition: transform .4s ease;

    display: flex;

    flex-direction: column;

    padding: 1rem;
}

#series-panel.open {

    pointer-events: auto;
}

#series-panel.open .panel-content {

    transform: translateY(0);
}

.main-image {

    flex: 1;

    display: flex;

    justify-content: center;

    align-items: center;

    overflow: hidden;
}
.main-image img {

    max-width: 100%;

    max-height: 100%;

    object-fit: contain;
}

#series-thumbs {

    height: 120px;

    display: flex;

    gap: .5rem;

    overflow-x: auto;

    margin-top: 1rem;
}
#series-thumbs img {

    height: 100px;

    cursor: pointer;

    flex-shrink: 0;
}

/* Polices 

// <weight>: Use a value from 400 to 700
// <uniquifier>: Use a unique and descriptive class name

*/

.gs500 {
  font-family: "Google Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500>;
  font-style: normal;
  font-variation-settings:"GRAD" 0;
}

/* ==========================================
   TABLETTES
   ========================================== */

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

    main {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .slide {
        flex-wrap: wrap;
    }

    .img-container {
        padding: .5rem;
    }
}


/* ==========================================
   MOBILE
   ========================================== */

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

    .panel-content {

        height: 85vh;
    }

    .panel-close {

        height: 15vh;
    }

    #series-thumbs {

        height: 90px;
    }

    #series-thumbs img {

        height: 70px;
    }


    /* Header */

    .fixed-header {

        height: auto;

        padding: 1rem;

        flex-direction: column;

        gap: .5rem;
    }

    .fixed-header p {

        min-width: auto;
    }


    /* Main */

    main {

        width: 100%;

        padding-top: 140px;
    }


    /* Logo */

    .logo {

        width: 70vw;

        height: auto;
    }


    /* Galerie */

    .gallery {

        display: block;
    }


    /* IMPORTANT :
       Chaque slide devient verticale
       afin de conserver l'ordre naturel
       des images dans le HTML
    */

    .slide {

        display: flex;

        flex-direction: column;

        max-height: none;

        height: auto;
    }


    .img-container {

        width: 100%;

        height: auto !important;

        max-height: none !important;

        padding: .5rem 0;
    }


    .item {

        width: 100%;

        height: auto !important;

        min-height: auto;
    }


    .item img {

        width: 100%;

        height: auto;

        display: block;

        object-fit: contain;
    }


    /* Neutralisation des classes desktop */

    .hfull,
    .hsixtyvh,
    .hfiftyvh,
    .hsixty,
    .hsixtyfive,
    .hseventy,
    .heightyvh,
    .img04,
    #img01,
    #img03 {

        height: auto !important;

        max-height: none !important;
    }


    .img05 {

        width: 100%;

        height: auto;
    }


    /* Footer */

    footer {

        padding: 2rem 1rem;
    }
}


/* ==========================================
   PETITS SMARTPHONES
   ========================================== */

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

    .logo {

        width: 85vw;
    }

    .fixed-header {

        font-size: 0.85rem;
    }

    .item {

        transform: scale(.8);
    }
}