:root {
    --clr-principale : #a0009c;
    --clr-blanc : #ffffff;
    --clr-noir : #000000;
    --clr-secondaire : #5e186c;
    --clr-tertiaire : #a98aff;
    --clr-soutien : #ff0062;
    --clr-contrast : #00a00c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 1rem;
    text-decoration: none;
    font-weight:normal;
    font-family: Calibri, Verdana, Geneva, Tahoma, sans-serif;
    color: var(--clr-noir);
}


/* conteneur */
html, body {
    width: 100%;
}

body {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
}

nav {
    width: 100%;
    z-index: 830;
    /*position:fixed;*/
    top: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    padding: 1rem;
    background-color: var(--clr-blanc);
    box-shadow: 0 0.1rem 1rem #00000030;
}

#newNav{
    display:none;
}

header {
    width: 100%;
    /*height: 100vh;*/
    display: flex;
    position: relative;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    background-color: var(--clr-blanc);
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
}

section {
    width: 100%;
    min-height: 100vh;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(to bottom, var(--clr-blanc), var(--clr-principale) 80%);
}

article {
    width: 80vw;/*100%*/
    margin: 3rem;
    max-width: 60rem;
    height: 100%;
    min-height: 10rem;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content:stretch;
    align-items: start;
    background-color: var(--clr-blanc);
}

.corps_article {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content:space-evenly;
    align-items: center;
    padding: 2rem;
}


footer {
    width: 100%;
    background-color: var(--clr-secondaire);
    color: var(--clr-blanc);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.info_foot {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: stretch;
}

.sous_info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: start;
}

.deroulant_foot {
    cursor: pointer;
}


#scene {
    width: 75%;
    min-width: 312px;
    max-width: 1112px;
    background-color: var(--clr-principale);
}

/* textes */
#titre,#sous-titre {
    z-index: 30;
}


h1 {
    font-family: REM, Calibri, Verdana, Geneva, Tahoma, sans-serif;
    font-size: 5rem;
    color: var(--clr-noir);
}

h2 {
    font-family: REM, Calibri, Verdana, Geneva, Tahoma, sans-serif;
    font-size: 2.4rem;
    font-weight: lighter;
    color: var(--clr-secondaire);
    margin: 1rem;
    text-align: center;
}

h3 {
    font-family: REM, Calibri, Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.8rem;
    font-weight: light;
    color: var(--clr-noir);
}

h4 {
    font-family: REM, Calibri, Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.1rem;
    font-weight:normal;
    color: var(--clr-noir);
}

.sous_titre {
    color: var(--clr-secondaire);
    font-size: 1.5rem;
    font-family: REM, Calibri, Verdana, Geneva, Tahoma, sans-serif;
    font-weight: lighter;
}

.lien_menu {
    color: var(--clr-secondaire);
    border-bottom: 0.1rem solid var(--clr-blanc);
    transition: all 0.2s;
}

.lien_menu:hover {
    color: var(--clr-noir);
    border-bottom: 0.1rem solid var(--clr-soutien);
}

.lien_externe::before {
    content: url("../img/lien_externe.svg");
    display: inline-block;
    width: 1rem;
    height: 1rem;
}

.button {
    border-radius: 0.5rem;
    margin: 0.5rem;
    padding: 0.5rem;
    color: var(--clr-blanc);
    background-color: var(--clr-principale);
    transition: all 0.2s;

}

.button:hover {
    background-color: var(--clr-contrast);
}

p, ul {
    margin: 0 0 0.8rem 0;
}

li {
    margin-left: 1rem;
}

footer h2,footer h3, footer h4,footer p, footer a {
    color: var(--clr-blanc);
}


/* images */
img {
    display: block;
}

.img_titre {
    width: 30rem;
    max-width: 90%;
}

.logo {
    width: 3rem;
}

.logo_fincanceur {
    width: 10rem;
}

.illustration_article img {
    width: 40vw;
    max-width: 30rem;
}

.decors {
    position:absolute;
    width: 18%;
    max-width: 1200px;
    /*max-height: 50%;*/
    object-fit: contain;
}

.bas {
    bottom: 1vh;
} 

.haut {
    top: 1vh;
} 

.droit {
    right: 1vw;
} 

.gauche {
    left: 1vw;
} 

#bac {
    width: 12vw;
    /*max-width: 150px;*/
    bottom: 1vh;
    min-width: 90px;
}

/* actions */
.cache {
    display: none;
}

.visible {
    display: inherit;
}

/*game*/
.piece img{
    width:100%;
}

#divTarget{
    display: none;
    position: absolute;
    border: 3px var(--clr-principale) dashed;
    border-radius: 1rem;
    background-color: #ffffff70;
    max-width: 20vw;
    max-height: 20vh;
    padding: 0.5rem;
    aspect-ratio: 1;

}
#divTarget img{
    width:100%;
    object-fit:contain;
    opacity: 0.7;
}

#pause_button{
    display: none;
    position: absolute;
    border: 1px var(--clr-principale) solid;
    border-radius: 0.5rem;
    background-color: #ffffff90;
    padding: 0.5rem 1rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 300ms;
}

#pause_button:hover {
    background-color: #a0009c30;
}

.menu_jeu {
    background-color: #fefefe;
    border-bottom: 3px solid var(--clr-principale);
}

.zone_score {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ligne_score {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.ligne_score p {
    margin: 0 0.5rem;
}

#scoreSpan, #comboSpan {
    font-weight: bold;
    color: var(--clr-secondaire);
}

#chanceSpan {
    font-weight: bold;
    color: var(--clr-contrast);
}

.violet, .violet * {
    color: var(--clr-secondaire);
}

.overlay {
    display: none; /*flex*/
    width: 100%;
    height: 100Vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 800;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    background-color: #5e186c30;
}

.game_over_menu, .game_pause_menu{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--clr-blanc);
    padding: 2.5rem;
    border-radius: 1rem;
    aspect-ratio: 1;
}


#span_affiche_score {
    font-weight: bolder;
    color: var(--clr-contrast);
}

.bouton {
    background-color: var(--clr-principale);
    color: var(--clr-blanc);
    border: none;
    border-radius: 1rem;
    transition: all 300ms;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.bouton:hover {
    background-color: var(--clr-secondaire);
}

.blink {
    animation-name : blinkAnimation;
    animation-duration: 0.3s;
    animation-iteration-count: infinite;
}

@keyframes blinkAnimation {
    from {border: 3px var(--clr-principale) dashed;}
    to {border: 3px transparent;}
}

.span_blink {
    animation-name : spanBlinkAnimation;
    animation-duration: 0.3s;
    animation-iteration-count: infinite;
}

@keyframes spanBlinkAnimation {
    from {color: var(--clr-secondaire);}
    to {color: var(--clr-soutien);}
}


/* adaptabilité */

@media screen and (orientation:portrait) {
    article {
        flex-direction: column;
        max-width: 100%;
    }

    .corps_article {
        width: 100%;
    }

    .illustration_article img {
        width: 100%;
    }

    .info_foot {
        flex-direction: column;
        padding: 1rem;
    }

    .sous_info {
        align-items: center;
    }
}