
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* MAIN MENU */

#mainMenu {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    overflow: hidden;
}

/* SCENE */

.menuScene {
    position: absolute;
    inset: -2%;
    width: 104%;
    height: 104%;
    animation: mouvementBackground 12s ease-in-out infinite alternate;
}

/* BACKGROUND */

.backgroundMainMenu {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

/* MOUVEMENT DU BACKGROUND */

@keyframes mouvementBackground {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.04);
    }
}

/* SPARKLES */

.sparkle {
    position: absolute;
    z-index: 2;
    color: #fff8c5;
    font-size: 20px;
    text-shadow: 0 0 4px white, 0 0 8px #ffd700, 0 0 14px #ffd700;
    opacity: 0;
    pointer-events: none;
    animation: glitter 3s infinite;
}

@keyframes glitter {
    0%, 70%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }

    78% {
        opacity: 1;
        transform: scale(1.4) rotate(45deg);
    }

    86% {
        opacity: 0;
        transform: scale(0.3) rotate(90deg);
    }
}

/* POSITION DES SPARKLES */

.sparkle1 {
    left: 25%;
    top: 67%;
    font-size: 50px;
    animation-delay: 0s;
}

.sparkle2 {
    left: 25%;
    top: 78%;
    animation-delay: 0.8s;
}

.sparkle3 {
    left: 37%;
    top: 69%;
    animation-delay: 1.7s;
}

.sparkle4 {
    left: 79%;
    top: 32%;
    animation-delay: 0.4s;
}

.sparkle5 {
    left: 86%;
    top: 47%;
    font-size: 50px;
    animation-delay: 1.3s;
}

.sparkle6 {
    left: 50%;
    top: 50%;
    font-size: 50px;
    animation-duration: 5s;
    animation-delay: 2.1s;
}

/* BOUTONS DU MENU */

.boutonsMenu {
    position: absolute;
    left: 50%;
    top: 64%;
    transform: translateX(-50%);
    z-index: 10;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;

    width: 80%;
}

.boutonPirate {
    display: block;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.boutonPirate img {
    display: block;
    width: 300px;
    max-width: 70vw;
    height: auto;
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.6));
}

.boutonPirate:hover {
    transform: scale(1.1);
}

/* FOND DERRIERE LE PARCHEMIN */

#fondParchemin {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5vh;
    background-color: rgba(0, 0, 0, 0.35);
}

#fondParchemin.visible {
    display: flex;
}

/* PARCHEMIN */

#parchemin {
    position: relative;
    width: 500px;
    height: 650px;
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 0.7s ease;
    overflow: hidden;
}

#parchemin.ouvert {
    transform: scaleY(1);
}

/* IMAGE DU PARCHEMIN */

.imageParchemin {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 1;
    pointer-events: none;
}

/* CONTENU DU PARCHEMIN */

.contenuParchemin {
    position: absolute;
    z-index: 2;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    color: #38200d;
    font-family: Georgia, serif;
    text-align: center;
}

.contenuParchemin h1 {
    margin-top: 15px;
    margin-bottom: 35px;
    font-size: 38px;
    color: #542b0e;
}

/* CHAMPS */

.champ {
    margin-bottom: 25px;
    text-align: left;
}

.champ label {
    display: block;
    margin-bottom: 7px;
    font-size: 20px;
    font-weight: bold;
}

.champ input {
    width: 100%;
    padding: 10px;
    border: 2px solid #68421e;
    background-color: rgba(255, 239, 188, 0.65);
    color: #2e1a09;
    font-family: Georgia, serif;
    font-size: 18px;
    outline: none;
}

.champ input:focus {
    border-color: #a56b27;
}

/* ERREUR */

.erreur {
    margin-top: 5px;
    color: #8c1818;
    font-size: 15px;
}

/* BOUTON SE CONNECTER */

.boutonConnexion {
    margin-top: 10px;
    padding: 10px 25px;
    border: none;
    background: transparent;
    color: #542b0e;
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.boutonConnexion:hover {
    transform: scale(1.1);
    color: #8b4a13;
}

/* FERMER */

#fermerParchemin {
    position: absolute;
    right: 0;
    top: -5px;
    border: none;
    background: transparent;
    color: #542b0e;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

#fermerParchemin:hover {
    transform: scale(1.2);
}

/* TITRE MAIN MENU */

.titreMainMenu {
    position: absolute;
    top: 33%;
    left: 50%;
    transform: translateX(-50%);
    width: 950px;
    max-width: 90%;
    height: auto;
    z-index: 9999;
    animation: flotterTitre 4s ease-in-out infinite;
}

@keyframes flotterTitre {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.actionsConnexion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mdpOublie {
    display: block;
    color: #654321;
    font-size: 14px;
    text-decoration: underline;
}

.mdpOublie:hover {
    color: #a16a32;
}
.actionsConnexion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mdpOublie {
    display: block;
    color: #654321;
    font-size: 14px;
    text-decoration: underline;
    text-align: center;
    cursor: pointer;
}

.mdpOublie:hover {
    color: #a16a32;
}

#contenuMdpOublie h1 {
    font-size: 25px;
}

#fermerMdpOublie {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
}