@font-face {
    font-family: "inter_regular";
    src: url("./fonts/inter_regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'inter_regular', sans-serif;
    background: linear-gradient(180deg, rgb(47 124 129), rgb(36 96 101));
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
}

header {
    background-color: rgb(71 137 142);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.zoneTitre {
    margin-top: 50px;
    text-align: center;
}

h1 {
    margin: 0;
    text-align: center;
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 900;
    letter-spacing: 1px;
}

.zoneJeu {
    display: flex;
    flex-direction: column;
    text-align: center;
    background-color: rgb(71 137 142);
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    margin: 60px auto;
    padding: 30px 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.zoneQuestion {
    padding: 20px;
    margin: 20px auto;
    background-color: rgb(61 117 121);
    border-radius: 16px;
    font-size: clamp(18px, 2.5vw, 22px);
}

.formulaire {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.buttonStyle {
    width: 100%;
    max-width: 260px;
    font-size: 22px;
    padding: 14px;
    background-color: white;
    color: rgb(69, 123, 128);
    border-radius: 12px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.buttonStyle:hover {
    background-color: rgb(42 114 119);
    color: white;
    transform: translateY(-2px);
}

.buttonStyle:active {
    transform: scale(0.97);
}

.bouttonSuivant {
    display: block;
    margin: 10px auto;
}

.hidden {
    display: none;
}


.zoneScore {
    padding: 20px;
}

.zoneExplication {
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    border-radius: 16px;
    background-color: rgb(42 114 119);
    line-height: 1.6;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 250ms ease, opacity 250ms ease, transform 250ms ease;
}
/* pour afficher :*/
.is-open {
  max-height: 500px; /* assez grand pour contenir ton texte */
  opacity: 1;
  transform: translateY(0);
}

footer {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 20px;
    font-weight: 600;
    font-size: 14px;
    background-color: rgb(71 137 142);
    text-align: center;
}

@media (max-width: 768px) {
    .formulaire {
        flex-direction: column;
        align-items: center;
    }

    .zoneJeu {
        margin: 30px auto;
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .zoneTitre {
        margin-top: 30px;
        padding: 0 15px;
    }

    .zoneQuestion {
        font-size: 18px;
    }
}