body {
    margin: 0;
    width: 100%;

}

.redo{
    background-color: white;
    border-radius: 5px;
    cursor: pointer;
    color: #398e3c;
    margin-top: 25px;
    padding: 8px;
    text-decoration: none;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.mascotte {
    position: absolute;
    z-index: 2;
    top: -40px;
    left: -34px;
    transform-origin: top center;
    animation: rotateMascotte 2s ease-in-out infinite;
    cursor: pointer;
}

.textIntro, .reponse {
    color: white;
    font-size: 25px;
    font-family: 'Amatic SC', cursive;
}

/* Animation de rotation entre 20 et 30 degrés */
@keyframes rotateMascotte {
    0% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(05deg);
    }

    100% {
        transform: rotate(-10deg);
    }
}

.mascotte img {
    max-width: 65%;
}

.image-top-left,
.image-top-right,
.image-bottom-left,
.image-bottom-right {
    position: absolute;
    width: 350%;
    height: auto;
    animation: fadeOutOverlay 1s ease forwards;
    animation-delay: 1s;
}

.image-top-left {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: slideOutTopLeft 1s ease forwards;
    animation-delay: 1.5s;
}

.image-top-right {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: slideOutTopRight 1s ease forwards;
    animation-delay: 1.6s;
}

.image-bottom-left {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: slideOutBottomLeft 1s ease forwards;
    animation-delay: 1.7s;
}

.image-bottom-right {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: slideOutBottomRight 1s ease forwards;
    animation-delay: 1.8s;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/fond-coffre-web-9sur16.jpg');
    background-size: cover;
    background-position: left;
    z-index: 1;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 4;
    padding: 5px;
}

.modal-content {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    background-color: #398e3c;
    position: relative;
    z-index: 5;
    max-width: 80%;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.footer {
    position: absolute;
    bottom: 0;
    z-index: 6;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 5px;
}

.footer img {
    filter: invert(100%) brightness(2);
}


form {
    background-color: #e8f5e9;
    /* Vert pâle rappelant le feuillage */
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    margin: auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

form label {
    color: #2e7d32;
    /* Vert foncé pour un look jungle */
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

form input[type="text"],
form input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid #66bb6a;
    /* Bordure verte rappelant les plantes */
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 16px;
    color: #2e7d32;
    box-sizing: border-box;
}

form input[type="text"]:focus,
form input[type="email"]:focus {
    outline: none;
    border-color: #388e3c;
    /* Vert plus foncé pour le focus */
    box-shadow: 0px 0px 8px rgba(56, 142, 60, 0.4);
}

form button {
    background-color: #388e3c;
    /* Vert forêt */
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

form button:hover {
    background-color: #2e7d32;
}

form button:active {
    background-color: #1b5e20;
}

form button:focus {
    outline: none;
}


/* Animations for diagonal sliding */
@keyframes slideOutTopLeft {
    to {
        transform: translate(-200%, -200%);
    }
}

@keyframes slideOutTopRight {
    to {
        transform: translate(200%, -200%);
    }
}

@keyframes slideOutBottomLeft {
    to {
        transform: translate(-200%, 200%);
    }
}

@keyframes slideOutBottomRight {
    to {
        transform: translate(200%, 200%);
    }
}

@keyframes fadeOutOverlay {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        display: none;
    }
}