body {
    background-color: #FFFDEF;
}
nav {
    padding: 10px 30px;
    z-index: 1000;
    background: #FFFDEF;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.logo_navbar{
    
    margin: 0;
    width: 25px;
}
.menu {
    justify-content: end;
    margin-right: 0;
}
.top_navbar .top_name img{
    height: 50px;
}
#home_navbar{
    font-size: 1.7em;
    margin:0% 10px;
}
.img-fluid {
    max-width: 70%;
    height: auto;
}

.container {
    max-width: 1500px;
    width: 90%;
    margin: 0 auto;
}


.container_img_etapes {
    width: 30%;
    margin: 0 auto;
    text-align: end;
}

.text-container {
    width: 60%;
}

.text-container {
    padding: 20px;
}

.banner {
    height: 600px;
    width: 100%;
    background-color: #FFFDEF;
    position: relative;
    background-image: url('baner.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.top_message {
    margin: 0% auto;
}

.row {
    margin-top: 5%;
}

.casier-container {
    perspective: 4000px;
    display: flex;
    justify-content: center;
}

.casier {
    width: 400px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transform: rotateX(-5deg);
    transition: transform 1s;
}

.face {
    position: absolute;
    width: 400px;
    height: 400px;
    background: black;
    border: 2px solid #333;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.front {
    transform: translateZ(200px);
}

.back {
    transform: rotateY(180deg) translateZ(200px);
}

.left {
    background: #444;
    transform: rotateY(-90deg) translateZ(200px);
}

.right {
    background: #444;
    transform: rotateY(90deg) translateZ(200px);
}

.top {
    background: #424242;
    transform: rotateX(90deg) translateZ(200px);
}

.bottom {
    background: #212020;
    transform: rotateX(-90deg) translateZ(200px);
}

.porte {
    transform-origin: left center;
    transition: transform 1s ease-in-out;
}

.casier.ouvert .porte {
    transform: rotateY(-120deg);
}

.poignee {
    width: 20px;
    height: 60px;
    background: white;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 5px;
}

/* Styles pour la popup */
.popup-reservation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.popup-reservation.visible {
    visibility: visible;
    opacity: 1;
    z-index: 1000;
}
h2 {
    color: #6f608f!important;
}
h3 {
    color: #fac628!important;
}
.badge {
    background-color: #fac628!important;
    color: #fff!important;
}


.newsletter_bloc {
    background-color: #FFC700;
    color: #000;
    padding: 100px 0;
}

.newsletter_bloc h2, .newsletter_bloc p {
    color: #000!important;
}
.newsletter_bloc h2{
    font-size: 2.5rem;
}
.newsletter_bloc .btn-primary {
    background-color: #9F82DC;
    border-color: #9F82DC;
}

.container_youtube {
    text-align: center;
    margin: 3% auto;
}
.container_youtube h2 {
   margin: 2% auto;
}

.footer{
    background-color: #FFC700;
    color: #000;
    padding: 20px 0;
    text-align: center;
}
.footer .row {
    margin: 3% auto;

}

.btn-primary {
    background-color: #9F82DC!important;
    border-color: #9F82DC!important;
}

.contact_form input, .contact_form textarea {
    background-color: #FFFDEF;
}

@media (max-width: 1200px) {
    nav{
        padding: 0px;
    }
    .logo_navbar{
        width:0px;
    }
    .top_navbar .top_name {
        align-items: center;
        color: #212020;
        vertical-align: center;
    }
    .menu a, .top_navbar label{
        color: #212020;
        padding: 5px;
    }
    .menu-btn{
        font-size: 2.5em;
    }
    .banner {
        height: 350px;
    }
    .container_img_etapes {
        width: 100%;
        text-align: center;
    }

    .text-container {
        width: 100%;
    }

    .text-container {
        padding: 20px;
    }

    .casier-container {
        perspective: 4000px;
        display: flex;
        justify-content: center;
    }

    .casier {
        width: 200px;
        height: 200px;
        position: relative;
        transform-style: preserve-3d;
        transform: rotateY(0deg);
        transform: rotateX(-5deg);
        transition: transform 1s;
    }

    .face {
        position: absolute;
        width: 200px;
        height: 200px;
        background: black;
        border: 2px solid #333;
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    }

    .front {
        transform: translateZ(100px);
    }

    .back {
        transform: rotateY(180deg) translateZ(100px);
    }

    .left {
        background: #444;
        transform: rotateY(-90deg) translateZ(100px);
    }

    .right {
        background: #444;
        transform: rotateY(90deg) translateZ(100px);
    }

    .top {
        background: #424242;
        transform: rotateX(90deg) translateZ(100px);
    }

    .bottom {
        background: #212020;
        transform: rotateX(-90deg) translateZ(100px);
    }

    .porte {
        transform-origin: left center;
        transition: transform 1s ease-in-out;
    }

    .casier.ouvert .porte {
        transform: rotateY(-120deg);
    }

    /* Styles pour la popup */
    .popup-reservation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        visibility: hidden;
        opacity: 0;
        transition: opacity
    }

    .popup {
        background: white;
        padding: 20px;
        border-radius: 10px;
        width: 90%;
        max-width: 500px;
        text-align: center;
    }

    .popup-reservation.visible {
        visibility: visible;
        opacity: 1;
    }
    h1{
        font-size: 2em !important;
    }

    @media (max-width: 720px){
        .container_video iframe {
            min-height: 400px;
        } 
    }
    @media (max-width: 600px){
        .container_video iframe {
            min-height: 350px;
        } 
    }
    @media (max-width: 500px){
        .container_video iframe {
            min-height: 300px;
        } 
    }


}
