*,
*::before,
*::after {
    box-sizing: border-box;
    font-family: 'Playfair Display', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    --main-color : rgb(185, 60, 54);
    --backColor : rgb(9, 9, 9);
    --fontColor: rgb(224, 225, 225);
    --card-width: 470px;
    -webkit-appearance : none;
    appearance: none;
}

body {
    background-color: rgb(226, 226, 226);
}

.wrapper {

    min-height: 100vh;
    max-width: 1900px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    box-shadow: 0px 0px 8px -3px rgba(0, 0, 0, 0.809)
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(9, 9, 9, 0.4);
    color: var(--fontColor);
    z-index: 10000;
}

.menu_wrapper {
    max-width: 1900px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: 16px 32px;
    margin: 0 auto;
    font-size: 1.2rem;
}

#logo {
    visibility: visible;
    display: flex;
    align-items: center;
    gap: 10px;
}


.frLang, .gbLang{
    background-image: url("https://flagsapi.com/FR/flat/24.png");
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: saturate(100%);
    transition: filter 0.3s;
}

.gbLang{
    background-image: url("https://flagsapi.com/GB/flat/24.png");
    filter: saturate(0%);
}

.frLang:hover, .gbLang:hover{
    transform: scale(1.2);
    cursor: pointer;
}

.menu_wrapper ul {
    /* list-style-type: none; */
    margin: 0;
    padding: 0;
    display: flex;
    gap: 64px;
    text-align: center;
    align-items: center;
}

.menu_wrapper li:hover{
    transform: scale(1.1);
    text-decoration: underline;
    text-underline-offset: 8px;
    cursor: pointer;
}



.menu-concat-items {
    position: absolute;
    right: 32px;
    top: -1px;
    display: none;
    align-self: flex-end;
    justify-self: flex-start;
}


#big_picture {
    background-image: url('images/chambre_hote/87328_14_1807.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 100vh;
    color: rgb(255, 255, 255);
    text-shadow: 0 0 2px 1px black;
    text-align: center;
    padding-top: 10%;
}

h1 {
    font-size: 5rem;
    font-weight: 900;
}

#logoImg {
    width: min(80%, 600px);
}

#dinerPhoto {
    margin-top: 20px;
    width: min(80%, 600px);
}

#contactImg {
    width: 150px;
    border-radius: 15%;
    box-shadow: 0px 0px 10px -3px rgba(0, 0, 0, 0.784);
    display: block;
}


#sub_title {
    display: block;
    font-size: 2rem;
    margin-top: 2rem;
}

.block_section {
    /* padding: 64px 128px; */
    padding: 64px 0;
    text-align: center;
}

.block_section:nth-child(even){
    background-color: rgb(255, 255, 255);
}

.block_section:nth-child(odd){
    background-color: rgb(244, 242, 242);
}

.section_title {
    margin-bottom: 32px;
    font-size: 4rem;
    font-weight: 900;
}

.section_content {
    font-weight: 400;
    font-size: 1.5rem;
    padding: 0 16px;
    color: rgb(37, 37, 37);
}

#description {
    padding: 64px 128px;
}

#gite_desc {
    display: flex;
    gap: 32px;
    margin-top: 64px;
}

#gite_desc_img {
    /* background-image: url('images/booking/437871293.jpg'); */
    /* background-position: center; */
    /* background-repeat: no-repeat; */
    /* background-size: cover; */
    width: 50vw;
    /* height: auto; */
    position: relative;
    overflow: hidden;
}

#gite_desc_text {
    width: 50%;
}

#gite_desc_text > .section_content {
    font-size: 1.2rem;
    text-align: left;
    margin-top: -1rem;
}

#gite_desc_text > .section_content > p {
    margin: 10px 0px;
}

#bedrooms {
    padding: 64px 128px;
    display: grid;
    --gap-width: 32px;
    gap: var(--gap-width);
    grid-template-columns: repeat(auto-fill, minmax(max(var(--card-width), calc((100% - var(--gap-width)) / 2)), 1fr));
    /* border: 2px solid red; */
}

#bedroom_modal_container {
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(3px);
    position: fixed;
    display: flex;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.bedroom_modal {
    position: relative;
    width: 95vw;
    max-width: 1000px;
    /* height: min(auto, 80vh); */
    max-height: 90vh;
    padding: 40px;
    border-radius: 8px;
    overflow-y: auto;
    background-color: rgb(255, 255, 255);
    box-shadow: 0px 0px 8px -3px rgb(0, 0, 0);
}

.close_modal_btn {
    position: absolute;
    top: -10px;
    right: 50px;
    font-size: 5rem;
    background: transparent;
    border: none;
    color: rgb(51, 51, 51);
    cursor: pointer;
    font-weight: bold;
    z-index: 10;
    transition: transform 0.2s ease;
}

.close_modal_btn:hover {
    transform: scale(1.2);
    color: var(--main-color);
}

.bedroom_card {
    box-shadow: 0px 0px 8px -3px rgba(0, 0, 0, 0.658);
    background-color: #fff;
    min-width: var(--card-width);
    min-height: 950px;
    /* border: 2px solid yellow; */
}

.bedroom_img{
    height: 50%;
    /* border: 2px solid violet; */
    background-color: black; /* pour bien voir les bandes si l'image est plus petite */
    position: relative;
    overflow: hidden;
}

.slide {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.3s;
    z-index: 1;
    overflow: hidden;
}

.slide::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: var(--bg-url);
    background-size: cover;
    background-position: center;
    filter: blur(13px) brightness(0.9);
    z-index: -1;
    transition: background-image 0.5s ease;
}

.slide > img{
    object-fit: contain;
    position: relative;
    z-index: 1;
    margin: auto;
    display: block;
    height: auto;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.438);
    border-radius: 4px;       /* facultatif pour arrondir */
    box-shadow: 0 0 20px rgba(0,0,0,0.4); /* optionnel, pour surélever */

}

.btn-prev, .btn-next{
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    margin: 0 2%;
    position: absolute;
    top: 50%;
    background-color: #fff;
    z-index: 10;
    cursor: pointer;
    opacity: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-prev:hover, .btn-next:hover{
    opacity: 100%;
}

.btn-prev{
    left: 0;
}

.btn-next{
    right: 0;
}

.bedroom_img > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: black;
}

.bedroom_info {
    padding: 16px 32px;
    height: 50%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    text-align: left;
}

.bedroom_title {
    font-weight: 800;
    font-size: 2rem;
}

.small_title {
    margin-left: 16px;
    font-size: 1rem;
}

.bedroom_subtitle {
    color: var(--main-color);
    font-size: 0.8rem;
}

.bedroom_desc {
    font-size: 1rem;
    /* height: 20%; */
    flex: 1;
}

.bedroom_equipments {
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    column-gap: 32px;
    row-gap: 8px;
    width: 100%;
    /* height: 35%; */
    flex: 1;
}

.bedroom_equipment {
    font-size: 1rem;
    color: rgb(140, 141, 141);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
}

.bedroom_buttons {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.bedroom_buttons > button {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 8px 32px;
}

.bedroom_buttons > button:hover {
    cursor: pointer;
    transform: scale(1.05);
}

.availability_btn {
    background-color: var(--main-color);
    border: 1px solid black;
    color: #fff;
}

.reserve_btn {
    background-color: #fff;
    border: 1px solid var(--main-color);
    color: var(--main-color);
}

.footer {
    text-align: center;
    background-color: var(--backColor);
    color: var(--fontColor);
    padding: 12px;
}

#map{
    height: 350px;
    margin-top: 20px;
}

#faqContent{
    text-align: left;
    margin-left: 30px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faqQuestion{
    font-weight: 700;
}

.faqQuestion:before{
    content: '\02795';
    margin-right: 16px;
}

.activeQuestion:before{
    content: '\2796'
}

.faqQuestion:hover{
    transform: scale(1.01);
    cursor: pointer;
}

.faqAnswer{
    padding: 8px 0px 0px 50px;
    font-weight: 400;
    display: none;
}

#contactForm{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}


.contactItem{
    display: flex;
    margin: 10px 0;
    gap: 20px;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
}

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

    .menu_wrapper {
        gap: 16px;
    }

    .menu_wrapper ul {
        gap: 16px;
    }

    #description {
        padding: 64px;
    }

    #gite_desc {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    #gite_desc_img {
        width: 90vw;
        height: 50vh;
    }

    #gite_desc_text {
        width: 100%;
    }

    #bedrooms{
        padding: 64px 32px;
    }
}

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

    #big_picture {
        height: 30vh;
    }

    h1 {
        font-size: 2.2rem;
        font-weight: 900;
    }

    #sub_title {
        display: block;
        font-size: 1.3rem;
        margin-top: 2rem;
    }

    .menu_wrapper {
        display: block;
        padding: 8px 16px;
    }

    .menu_wrapper ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 2rem;
    }

    .menu-item {
        display: none;
    }

    .menu-concat-items {
        display: block;

    }
    
    .block_section {
        padding: 16px 0;
    }

    .section_title {
        margin-bottom: 8px;
        font-size: 1.8rem;
        font-weight: 900;
        padding: 0 2px;
    }

    .section_content {
        font-weight: 400;
        font-size: 1.2rem;
        padding: 0 4px;
    }

    #description {
        padding: 2px 4px;
    }

    #gite_desc {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    #gite_desc_img {
        width: 90vw;
        height: 50vh;
    }

    #gite_desc_text {
        width: 100%;
    }

    #gite_desc_text > .section_content {
        font-size: 1.2rem;
        margin: 0;
        padding: 0 4px;
    
    }
    
    #gite_desc_text > .section_content > p {
        margin:0;
    }

    #bedrooms {
        padding: 16px 4px;
        grid-template-columns: 1fr;
    }

    .close_modal_btn {
        font-size: 2.5rem;
        top: 10px;
        right: 30px;
    }

    .bedroom_card {
        min-width: 300px;
        min-height: 0;
    }

    .bedroom_img{
        height: 30vh;
    }
    
    .bedroom_info {
        padding: 16px 16px;
        gap: 16px;
        height: auto;
    }
    
    .bedroom_title {
        font-weight: 800;
        font-size: 1.5rem;
    }
    
    .small_title {
        margin-left: 16px;
        font-size: 0.9rem;
    }
    
    .bedroom_subtitle {
        font-size: 0.8rem;
    }
    
    .bedroom_desc {
        font-size: 0.9rem;
        height: auto;
    }
    
    .bedroom_equipments {
        height: auto;
    }
    
    .bedroom_equipment {
        font-size: 0.9rem;
        gap: 8px;
    }
    
    .bedroom_buttons {
        display: grid;
        margin-top: 8px;
    }

    .bedroom_buttons > button {
        font-size: 1.3rem;
        font-weight: 600;
        padding: 8px 32px;
    }

    #contactImg {
        display: none;
    }

    #faqContent{
        margin-left: 5px;
    }
}