body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    /*c
    background: linear-gradient(135deg, #233543 0%, #B89161 100%);
    background: linear-gradient(to right, #233543, #4d5b66, #B89161);
    background: linear-gradient(to bottom, #233543, #B89161);
    background: linear-gradient(120deg, #233543 0%, #3a4b59 50%, #B89161 100%);
    background: linear-gradient(
            120deg,
            #B89161 0%,
            #B89161 5%,
            #233543 15%,
            #3a4b59 50%,
            #233543 85%,
            #B89161 95%,
            #B89161 100%
    );
    background: linear-gradient(
            120deg,
            #B89161 0%,
            #B89161 3%,
            #233543 10%,
            #3a4b59 50%,
            #233543 90%,
            #B89161 97%,
            #B89161 100%
    );*/
    background: linear-gradient(to bottom, #233543, #B89161);
    background-size: cover;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);

    font-family: 'Jane Doe', serif;
    width: 100%;
    overflow: hidden;
}

.door-container {
    z-index: 1; /* Au-dessus du mur */
    width: 350px;
    height: 600px;
    background: #233543;
    border: 4px solid #B89161;
    border-radius: 10px;
    position: relative;
    perspective: 1000px;
    flex-shrink: 0;
}

.door {
    width: 100%;
    height: 100%;
    background: #233543;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: left center;
    transition: transform 1s ease-in-out;
    border-radius: 10px;
    position: relative;
    text-align: center;
    padding: 1rem;
}

.door.open {
    transform: rotateY(-100deg);
    transition: transform 1s ease; /* passe à 0.8s */
}

.logo {
    width: 30px;
    cursor: pointer;
    position: absolute;
    top: 270px;
    right: 50px;
}

.logo2 {
    width: 250px;
    position: absolute;
    top: 50px;
}
.logoText{
    position: absolute;
    top: 270px;
    right: 100px;
}
.wrapper {
    transform: scale(1);
    transform-origin: center;
    z-index: 1;
}

/* Réduction très légère sur petits écrans */
@media (max-width: 400px) {
    .wrapper {
        transform: scale(0.95);
    }
}

@media (max-width: 350px) {
    .wrapper {
        transform: scale(0.9);
    }
}
/* Animation du contour */
@keyframes draw-border {
    0% {
        border-color: transparent;
    }
    100% {
        border-color: #B89161;
    }
}

/* Animation du fond de la porte */
@keyframes fade-in-door {
    0% {
        background-color: transparent;
    }
    100% {
        background-color: #233543;
    }
}

/* Classe pour animer le contour */
.door-container.animate-border {
    animation: draw-border 3s ease-out forwards;
}

/* Classe pour animer le fond après un petit délai */
.door.animate-background {
    animation: fade-in-door 1s ease-in-out forwards;
    animation-delay: 5s; /* Délai après le contour */
    background-color: transparent; /* Départ transparent */
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
}
