* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /* variables */
    /* --primary-color: rgb(12, 75, 78);  */
    --primary-color: rgb(68, 102, 110); 
    --secondary-color: white;

    color: var(--primary-color);
    /* font-family: Arial, Helvetica, sans-serif; */
    font-family: 'Poppins', sans-serif;
    overflow-y: scroll; /* Force la barre de défilement verticale même lorsque la barre horizontale est absente */
}

h1,h2 {
    font-size: 2em;
    font-weight: 550;
}

h3 {
    font-weight: 500;
}

.menu {
    position: fixed;
    height: 100vh;
    width: 20%;
    /* background: no-repeat center / cover url(../img/FallingAppart_NicolasRichelet.jpg); */
    background-image: url(../img/FallingAppart_NicolasRichelet.jpg);
    background-repeat: no-repeat; 
    background-position: right top;
    background-size: cover;

}

.menu h1 {
    color: var(--secondary-color);
    margin: 20px;
    font-size: 2em;
    font-weight: 300;
    text-align: right;
    text-transform: uppercase;
}

.menu h1 span {
    display:block;
    font-size: .62em ;
}

.menu ul {
    padding-top: 5px;
}

.menu li {
    margin: 0px 20px;
    list-style-type: none;
    /* color: white; */
    text-align: right;
}

.menu a {
    transition: color .3s ease-in-out;
    text-decoration: none;
    color: var(--secondary-color)
}

.menu a:hover {
    color:var(--primary-color);
}

.menubar a.onpage{
    text-decoration: dashed;
    color: var(--primary-color) !important;
}

.book {
    width: 80%;
    padding: 10px;
    position: absolute;
    left: 20%;
    display: flex;
    flex-direction: column;
    gap:10px;
    
}

.book figure {
    width: 100%;
    display: flex;
}

.book figcaption, .book h2, .popupBackground h2{
    display:none;
}

.book img {
    /* flex-basis: 100%; */
    transition: opacity 0.2s ease-in-out,
                padding 0.2s ease-in-out;
    width: 100%;
    height: 250px;   
    object-fit: cover;
    cursor: pointer;
    /* filter:  contrast(90%) sepia(80%) hue-rotate(140deg) grayscale(40%); */
    filter: saturate(110%);
    gap:20px;
}

.book img:hover, .videoBox img:hover {
    filter: none;
    /* filter: saturate(110%) ; */
    padding: 5px;
    cursor: pointer;
    opacity: 90%;
}

.videoBox {
    position: absolute;
    left:20%;
    padding: 10px;
    display: flex;
    width: 80%;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 10px;
}

.videoBox img {
    height: 24vh;
    flex-basis: 49%;
    flex-grow: 1;
    object-fit: cover;
}

.videoBox h2 {
    display:none;
}

.contact {
    width: 50%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position:absolute;
    left: 20%;
    gap: 30px;
}

.equipe, .adresse {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.adresse h1 {
    margin-bottom: 10px;
}

.adresse a{
    display: block;
    padding: 3px 0px 15px 0px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
}

.adresse a:hover{
    color: var(--primary-color);
    opacity: 50%;
}

.equipe li {
    list-style-type: none;
}

.apropos {
    width: 50%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position:absolute;
    left: 20%;
    gap: 30px;
    padding-top: 21px;
}

.apropos li {
    list-style-type: none;
}

.apropos article {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#individus {
    width: 100%;
    display: flex;
   margin: auto;
    gap: 10px;
}

#tous {
    margin: 20px 0 20px 0;
}

#individus div{
    text-align: center;
    padding: 5px 15px;
    width: 100%;
    /* border: solid 1px black; */
    box-shadow: 0 0 10px rgb(68, 102, 110, .2);
}

.popupBackground {
    /* overflow: auto; */
    position: fixed;
    left:0;
    top:0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: none;
    background-color : white
}

.popup-vid {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.popup-img {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* display: flex; */
    width: 5%;
    line-height: 150px;
    /* margin: auto 10px; */
 
    display: inline-block;
    /* vertical-align: text-bottom; */
    font-size: 3em;
    font-weight: 100;
    padding: 0;
    margin:20px;
    border: none;
    cursor: pointer;
    opacity: 30%;
    color: var(--primary-color);  
    z-index: 1;
}

#left-arrow {
    left: 0;
}

#right-arrow {
    right: 0;
}

.arrow:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    opacity: 10%;
}

.popup-img figure {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.popup-img img {
    width: 100%;
    max-width: 1400px;
    display: flex;
    max-height: 900px;
    object-fit: cover;
    filter: saturate(110%);
    cursor: pointer;
}

.popup-vid video {
    /* width: 85%; */
    max-height: 900px;
    object-fit: cover;
    cursor: pointer;
}

#croix-fermeture {
    position: fixed;
    width: 80px;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 0 0 0;
    font-size: xx-large;
    text-align: center;
    cursor: pointer;
    caret-color: rgba(0,0,0,0);
    color: var(--primary-color);
    opacity:30%;
}

#croix-fermeture:hover {
    opacity: 80%;
}

.active {
    display: flex !important;
}

.scrollbar {
    overflow: hidden;
}

footer {
    display:none;
}

@media screen and (max-width: 1024px) {

    .popup-img img, .popup-vid video {
        width: 100%;
    }
}
    
@media screen and (max-width : 768px) {

    .menu {
        position:initial;
        height: 220px;
        width: 100%;
        z-index: 2;
        background:no-repeat center / cover url(../img/FallingAppart_Bandeau.jpg);
        background-position: -100px 0; 
    }

    .menu h1 {
        margin: 0 20px;
        padding: 20px 0;
    }

    .apropos, .contact, .book, .videoBox {
        width: 100%;
        position: relative;
        left: 0;
        top: 0;
        padding: 20px;
    }

    .book, .videoBox {
        
        padding: 10px;
        gap: 10px;
    }

    .popupBackground {
        overflow: auto;
    }

    .videoBox {
        flex-direction: column;
        flex-wrap: nowrap;
        flex-grow: 1;
        /* flex-basis: 100%; */
    }
    .popup-img img, .popup-vid video {
        width: 100%;
        /* height: 10vh; */
    }

    #croix-fermeture, .arrow {
        display: none;
    }

}


/* 
    @media (orientation: landscape) {
        .popupBackground {
            width: 100%;
            /* flex-direction: column-reverse;
            justify-content: flex-end;
            align-content: flex-start; */
            /* padding: 100px; */
            /* padding-top: 10px; */
            
        /* }
        .popup-img img, .popup-vid video { */

            /* width: 50%;
            height: 50vh; */
        /* }
    }  */