@import url(reset.css);
@import url(variables.css);
@import url(nav.css);
@import url(footer.css);

@font-face {
    font-family: 'space_grotesklight';
    src: url('../assets/fonts/spacegrotesk-variablefont_wght-webfont.woff2')format('woff2'),
         url('../assets/fonts/spacegrotesk-variablefont_wght-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


/* CSS General */

html, body{
    font-size: 16px;
    font-family: var(--font-family);
}

/* CSS Header */

.header{
    height: var(--max-height-header);
    background: #000000 url(../assets/banners/banner-home.jpg);
    background-size: cover;
}

.header__title{
    font-size: var(--font-size-h1);
    text-transform: uppercase;
    font-weight: var(--font-weight-xl);
    color: var(--text-color-primary-white);
    letter-spacing: var(--spacing-xs);
    text-align: center;
}

.header__link__decouvrir{
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: var(--font-weight-xl);
    color: var(--text-color-primary-white);
}

.header__block__titre{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 48px;
    margin-top: calc(var(--max-height-header) / 2);
}

/* ***********CSS MAIN******** */

.main{
    padding: 64px;
}

.chambres, .restaurant, .hotels{
    margin-bottom: 64px;
}

.chambre__title, .restaurant__title, .hotel__title, .balade__title{
    font-size: var(--font-size-subtitle);
    font-weight: var(--font-weight-xl);
    margin-bottom: var(--spacing-xl);
}

.chambres__content{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: var(--spacing-xl);
}

.chambre__picture{
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
}

.chambre__card__link{
    text-decoration: none;
    color: var(--text-color-primary-white);
}

.chambre__card{
    position: relative;
}

.chambre__card__title{
    color: var(--text-color-primary-dark);
    font-size: var(--font-size-subtitle);
    font-weight: var(--font-weight-xl);
    margin-bottom: var(--spacing-md);
}

.chambre__card__content{
    position: absolute;
    bottom: 0;
    left: 0;
    padding: var(--spacing-md)0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(203, 192, 192, 0.4);
    width: 100%;
}

.btn{
    background: var(--bg-btn);
    color: var(--text-color-primary-white);
    text-decoration: none;
    padding: var(--spacing-xs);
    width: 100px;
    text-align: center;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-xl);
}

.restaurant, .hotels, .balade{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 64px;
}

.restaurant__content, .hotel__content, .balade__content{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    row-gap: var(--spacing-md);
}

.restaurant__block__pictures{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 220px auto;
    gap: var(--spacing-xl);
}

.restaurant__picture1{
    grid-column: 1 / 7;
}

.restaurant__picture2{
    grid-column: 1 / 3;
}

.restaurant__picture3{
    grid-column: 3 / 7;
}

.restaurant__picture__item1{
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
}

.restaurant__picture__item2{
    object-fit: cover;
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
}

.restaurant__picture__item3{
    object-fit: cover;
    width: 100%;
    height: 300px;
    border-radius: var(--radius-md);
}

.hotel__picture__item, .balade__picture__item{
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--spacing-md);
}


.open-btn{
    font-size: 16px;
    cursor: pointer;
    color: white;
    border: none;
    text-decoration: none;
}

.feedback-form-container{
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.feedback-form{
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
}
.close-btn{
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    text-decoration: none;
    color: #333;
}

.input[type="text"], input[type="email"], textarea{
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}


.button[type="submit"]{
    width: 100%;
    padding: 10px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#feedbackForm:target{
    display: flex;
}

/* Media Queries */

@media screen and (max-width: 1024px){
    .header__nav{
        padding: 0 1rem;
    }

    .main{
        padding: 64px 0;
    }

    .chambres{
        padding: 0 1rem;
    }

    .chambres__content{
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto 250px;
        row-gap: 2rem;
    }

    .chambre__card:last-child{
        grid-column: 1 / 3;
    }

    .chambre__picture:last-child{
        object-fit: cover;
    }

    .restaurant, .hotels, .balade{
        grid-template-columns: 1fr;
        row-gap: 2rem;
        padding: 0 1rem;
    }

    .restaurant__title, .hotel__title, .balade__title{
        margin-bottom: 0.75rem;
    }
    
    .hotels{
        background:lightgrey;
        padding: 2rem 1rem;
    }
    
    .hotel__content{
        order: 1;
    }

    .hotel__block__pictures{
        order: 2;
    }

}

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

    .header{
        height: 500px;
    }

    .header__nav{
        flex-direction: column;
        padding: 1rem 0;
    }

    .link__logo{
        margin-bottom: 1rem;
    }

    .nav__list{
        flex-direction: column;
        row-gap: 0.5rem;
        text-align: center;
    }

    .nav__link{
        margin-left: 0;
    }

    .header__block__titre{
        margin-top: 50px;
        row-gap: 12px;
    }

    .hotel__picture__item, .balade__picture__item{
        height: 300px;
    }

    .restaurant__block__pictures{
        gap: 1rem;
    }

    /* .footer__informations footer__content{
        flex-direction: column;
        padding: 1rem 1rem;
    } */
}