/* PARAMETRAGE */

body {
    margin: 0;
    padding: 0;
    font-family: 'Circular Std', sans-serif;
}

::-webkit-scrollbar {
    display: none;
}


.scroll {
    overflow: auto;
    scroll-snap-type: y mandatory;
    height: 100vh;
}

@font-face {
    font-family: "myfont";
    src: url("assets/SchibstedGrotesk[wght].woff2") format('woff2');
}


/* BARRE DE NAVIGATION */
    nav {
        position: fixed;
        top: 0;
        inset: 0;
        height: 70px;
        display: flex;
        justify-content: space-between;
        background: transparent;
        padding: 0 40px;
        z-index: 20;
    }


    .menu {
        display: flex;
    }

    .title {
        display: flex;
        align-items: center;
    }

    ul {
        padding: 0;
        display: flex;
        gap: 30px;
    }

    nav li {
        list-style: none;
        display: flex;
        align-items: center;
    }

    nav a:hover {
        transform:scale(0.98);
        color: white;
    }


    nav li a {
        text-decoration: none;
        color: black;
        transition: all 200ms ease;
    }


    /* BOUTON AIRBNB */
        #airbnb {
            display: grid;
            place-content: center;
            width: 130px;
            height: 30px;
            background-color: #FF5252;
            border: 1px solid white;
            border-radius: 7px;
            transition: transform 200ms ease;
        }

        #airbnb a {
            display: flex;
            align-items: flex-end;
            gap: 5px;
            font-family: 'Circular Std', sans-serif;
            color: white;
        }

        #airbnb svg {
            width: 20px;
        }

        #airbnb path {
            fill: white;
        }


        /*HOVER*/
        #airbnb:hover {
            color: #FF5252;
            background-color: white;
            border-color: #FF5252;
            transform:scale(0.98);
        }

        #airbnb:hover a {
            color: #FF5252;
        }

        #airbnb:hover path {
            fill:#FF5252;
        }

    /* BOUTON MENU */
    .btn-menu {
        display: none;
        padding-top: 20px;
        align-items: flex-start;
    }

    /* Gestion de l'affichage du menu */

    .overlay {
        overflow: hidden;
    }

    .overlay .scroll{
        overflow: hidden;
    }

    .overlay nav {
        inset: 8px 8px auto auto;
        width: 50vw;
        height: auto;
        border-radius: 10px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        background-color: rgb(255, 255, 255, 0.5);
        position: fixed;
    }


    .overlay .menu {
        display: flex;
    }

    .overlay .menu ul {
        flex-direction: column;
    }

    .overlay #airbnb {
        order: -1;
    }

    .overlay .btn-menu {
        transform: translate(8px, -8px);
    }



/* FOND DE LA PAGE */



.conteneur {
    display: flex;
    flex-direction: column;
    background-color: floralwhite;
    justify-content: center;
    align-items: center;
    max-width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
}

#Debut {
    background-color: transparent;
}

#Debut h2 {
    font-family: "myfont", sans-serif;
    color: white;
    text-align: center;
    margin: 30px;
    font-size: 8vw;
    animation: titre2 1s ease;
}

.bg-img {
    position: relative;
    background-image: url("assets/1.jpg");
    background-size: cover;
    background-position: center;
}


@keyframes titre2 {
    from {
        opacity: 0.5;
        font-weight: 100;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        font-weight: 700;
        transform: translateY(0px);
    }
}

.sous-titre{
    text-align: center;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 5px;
    gap: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgb(255, 255, 255, 0.5);
    color: white;
    margin: 0 20px;
}

.sous-titre,
#Debut svg {
    animation: decouvrir 500ms 2s ease infinite alternate;
}

@keyframes decouvrir {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10px)
    }
}



.avis {
    margin: 10vw;
}

footer {
    display: grid;
    place-content: center;
    margin: 0;
    padding: 40px;
    color: white;
    background: black;
    scroll-snap-align: end;
}

footer a {
    text-decoration: none;
    color: white;
}

.btn-contact {
    height: 20px;
    padding: 10px;
    width: 200px;
    background-color: cornflowerblue;
    cursor: pointer;
    transition: all 1s ease;
    overflow: hidden;
}

.btn-contact p {
    margin: 0;
    transition: all 1s ease;
}

.btn-contact span {
    position: relative;
    transition: all 1s ease;
}

.active {
    background-color: #FF5252;
}

.active p{
    color: white;
    transform: translateY(-40px);
}

#Presentation {
    display: grid;
    grid-template-areas:
            "a b b";
}

#menu-galerie {
    display: none;
}

.infos {
    max-width: 40vw;
    grid-area: a;
    margin: 0 5%;
    height: 80%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border: 1px solid black;
    display: grid;
    grid-template-areas:
            "a a"
            "e e"
            "b c"
            "d d";
}

.infos > * {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;

}

.infos .personnes,
.infos .proximite,
.infos .pieces {
    border: 1px solid black;
}

.infos h4 {
    margin: 0;
}

.infos .pres {
    text-align: justify;
    flex-direction: column;
    grid-area: a;
    margin: 0;
}

.pres h2 {
    text-align: center;
    font-family: "myfont", sans-serif;
    margin: 0;
    font-size: 20px;
}

.infos .proximite {
    grid-area: e;
    font-weight: bold;
}

.infos .personnes {
    grid-area: b;
    font-weight: bold;
}

.infos .pieces {
    grid-area: c;
    font-weight: bold;
}

.infos .equipement {
    grid-area: d;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    margin: 0;
}


.equipement ul {
    display: block;
    padding-left: 30px;
    columns: 3;
}

.equipement p {
    margin: 0;
}

.swiper {
    height: 80%;
    width: 95%;
    grid-area: b;
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}


swiper-slide img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#Galerie {
    display: none;
}

    @media (max-width:950px) {
        .scroll {
            scroll-snap-type: none;
        }
        .btn-menu {
            display: flex;
        }

        .conteneur {
            height: auto;
        }

        .menu {
            display: none;
        }

        h2 {
            font-size: 20px;
        }

        #Presentation {
            display: flex;
        }

        #Presentation swiper-container {
            display: none;
        }

        #Presentation .infos {
            display: grid;
            max-width: 90vw;
            max-height: 90vh;
        }

        #Galerie {
            display: flex;
        }

        #menu-galerie {
            display: flex;
        }



    }
