* {
    padding: 0;
    margin: 0;
    font-family: "Inter Tight", sans-serif;
}








.social-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background-color: rgba(2, 184, 197);
    color: white;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
}

.social-toggle:hover {
    background-color: white;
    color: rgba(2, 184, 197);
    border: 2px solid rgba(2, 184, 197);
}

.social-popup {
    position: fixed;
    bottom: 95px;
    right: 25px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.social-popup a {
    background-color: #00101af3;
    color: rgba(2, 184, 197);
    border: 2px solid #02b8c5;
    padding: 10px 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}

.social-popup a:hover {
    background-color: rgba(2, 184, 197);
    color: white;
}













nav a {
    text-decoration: none;
    color: white;
}

nav {
    background: linear-gradient(rgba(0, 0, 0, 0.73), rgba(0, 0, 0, 0.604)), url('Images/imgFondNav.png');
    background-repeat: no-repeat;
    background-position: 55% 9%;
    background-size: cover;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    border-bottom: 2px solid #fff;
    flex-wrap: wrap;
}

nav h1 {
    color: white;
}

nav span {
    color: rgba(2, 184, 197);
}

.info-link span:hover {
    color: white;
}

.buttonNav,
.buttonInfo {
    display: flex;
    gap: 40px;
    font-weight: bold;
    font-size: 1.4rem;
}

a:hover {
    color: rgba(2, 184, 197);
}





main {
    background-color: rgba(0, 16, 26, 0.953);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding-top: 5%;
}

.mag h3 {
    text-align: center;
}

.bienvenue {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    border: 2px solid rgba(2, 184, 197);
    border-radius: 15px;
    margin: 0% 10% 0 10%;
    background-color: rgba(0, 16, 26, 0.953);
    padding: 2%;
}

h2 {
    font-size: 1.7rem;
    padding: 20px;
}

span {
    color: rgba(2, 184, 197);
}

.bienvenue .ressources {
    font-size: 1.5rem;
}

.bienvenue a {
    
    color: rgba(2, 184, 197);
}

.bienvenue a:hover {
    color: white;
}



.quiz {
  max-width: 700px;
  margin: 4rem auto;
  padding: 2rem;
  background-color: rgba(0, 16, 26, 0.953);
  border: 2px solid rgba(2, 184, 197);
  border-radius: 12px;
  color: #ffffff;
}

.quiz h2 {
  text-align: center;
  margin-bottom: 0.5rem;
  color: rgba(2, 184, 197);
}

.quiz-subtitle {
  text-align: center;
  color: #9adfe0;
  margin-bottom: 2rem;
}

.question {
  margin-bottom: 1.5rem;
}

.question p {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.question label {
  display: block;
  margin-bottom: 0.4rem;
  cursor: pointer;
}

button {
  display: block;
  width: 100%;
  padding: 0.8rem;
  color: rgba(2, 184, 197);
  border: 2px solid rgba(2, 184, 197);
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #00b3b5;
  color: white;
}

#result {
  margin-top: 1rem;
  text-align: center;
  font-weight: bold;
}

main .button_fin {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

main .button_fin a {
    background-color: white;
    color: rgba(2, 184, 197);
    border: 2px solid rgba(2, 184, 197);
    border-radius: 10px;
    padding: 10px 20px;
    text-decoration: none;
    text-align: center;
}

main .button_fin a:hover {
    background-color: rgba(2, 184, 197);
    color: white;
    border: none;
}


.container {
    display: flex;
    justify-content: center;
    gap: 50px 40px;
    flex-wrap: wrap;
}


.container a {
  display: block;
  width: 10%;
  padding: 0.8rem;
  color: white;
  border: 2px solid rgba(2, 184, 197);
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(2, 184, 197);
  text-align: center;
  text-decoration: none;
}

.container a:hover {
    background: white;
    border: 2px solid rgba(2, 184, 197);
    color: #00b3b5;
}






footer {
    background-color: rgba(0, 16, 26, 0.953);
    color: white;
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: center;
    font-size: 0.7rem;
    padding-bottom: 40px;
    padding-top: 40px;
}





@media (max-width: 768px) {
    nav {
        font-size: 0.85rem;
        padding: 15px 3%;
        background-position: center 10%;

        display: flex;
        flex-direction: column;
        gap: 10px;
        font-size: 0.85rem;
    }

    .bienvenue {
        margin: 0 5%;
        padding: 1.5%;
    }

    h2 {
        font-size: 1.5rem;
    }

    .quiz {
        max-width: 90%;
        margin: 2rem auto;
        padding: 1.5rem;
    }

    .container {
        gap: 20px;
        justify-content: center;
    }

    .container a {
        width: 40%;
        padding: 0.7rem;
    }
}

/* Petits écrans mobiles */
@media (max-width: 480px) {
    nav h1 {
        font-size: 1.3rem;
    }

    .buttonNav,
    .buttonInfo {
        font-size: 0.8rem;
        gap: 5px;
    }

    .bienvenue h2 {
        font-size: 1.2rem;
    }

    .bienvenue p,
    .mag h3 {
        font-size: 0.9rem;
    }

    .quiz h2 {
        font-size: 1.3rem;
    }

    .quiz-subtitle {
        font-size: 0.9rem;
    }

    .question p {
        font-size: 0.9rem;
    }

    button,
    .container a {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .container a {
        width: 70%;
    }

    main .button_fin {
        flex-direction: column;
        gap: 10px;
    }

    main .button_fin a {
        width: 100%;
    }

    .social-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.6rem;
        bottom: 20px;
        right: 20px;
    }

    .social-popup a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}
