/* Styles globaux */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Arial', sans-serif;
    background-color: #1b151e;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

/* Arrière-plan et filtres */
.background {
    background-image: url('/static/img/back.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
}

.filter {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

/* Header */
.header {
    text-align: center;
}

.logo {
    width: 80%;
    max-width: 300px;
    margin-bottom: 5vh;
    margin-top: 7vh;
    cursor: pointer;
}

/* Contenu principal */
.content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
}

.container {
    background: rgba(50, 50, 50, 0.7);
    padding: 40px;
    border-radius: 15px;
    max-width: 800px;
    width: 70%;
    text-align: center;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    margin: auto;
    margin-bottom: 6em;
}

/* Textes */
.heading-text {
    font-size: 2em;
    margin-top: 0px;
    color: #ffffff;
    margin-bottom: 30px;
}

.description-text {
    font-size: 1.2em;
    color: #dddddd;
    margin-bottom: 40px;
    text-align: justify;
}

.description-text a {
    color: #dddddd;
}

.category-title {
    font-size: 1.3em;
    color: #cccccc;
    text-align: left;
    position: absolute;
    top: 20px;
    left: 60px;
}

.question-icon {
    height: 4em;
}

.question-text {
    font-size: 1.4em;
    line-height: 1.2em;
    color: #ffffff;
}

.explanation-text {
    font-size: 1.1em;
    color: #cccccc;
    margin-top: 30px;
    margin-bottom: 50px;
    text-align: justify;
    border-left: 4px solid #cccccc;
    padding-left: 20px;
}

/* Boutons et formulaires */
.option-button {
    background-color: #ffffff;
    color: #333333;
    padding: 10px 15px;
    margin: 5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
}

.option-button:hover {
    background-color: #ddd;
}

.button-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
    gap: 1em;
}

.button-container {
    margin-top: 20px;
    margin-bottom: 30px;
}

.start-button, .next-button {
    background-color: #5a2a6b;
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    width: 100%;
    max-width: 200px;
    margin-top: 20px;
}

.progress-bar {
    width: 90%;
    background-color: #e0e0e0;
    border-radius: 10px;
    position: absolute;
    bottom: 1em;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.progress {
    height: 10px;
    background-color: #5a2a6b;
    border-radius: 10px;
}

footer {
    background-color: #1b151e;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 1.2em;
}

.version {
    text-align: right;
    position: fixed;
    margin-right: 1.5em;
    margin-bottom: 3em;
    font-size: 1.2em;
    color: #555555;
    font-weight: bold;
    bottom: 0;
    right: 0;
}

footer a {
    color: inherit;
    text-decoration: none;
}

footer a:hover {
    color: inherit;
    text-decoration: none;
}

footer p {
    margin: 0;
    font-size: 14px;
}

/* Formulaires */
.result-form {
    width: 100%;
}

.form-group {
    margin-bottom: 10px; /* Espacement entre les champs */
    display: flex;
    justify-content: center; /* Centrer chaque groupe de formulaire */
}

.pol-content {
    color: #ffffff;
    margin-bottom: 5em;
    justify-content: left;
    text-align: left;
}

.pol-content a {
    color: #ffffff;
}

.pol-content li {
    margin-bottom: 10px;
    text-align: left;
}

.start-button:disabled {
    background-color: #888;
    cursor: not-allowed;
}

.form-group input[type="checkbox"] {
    width: 1em;
    transform: scale(1.5);
    margin-right: 1.9em;
    cursor: pointer;
    margin-top: 0.1em;
}

.form-group label {
    color: #dddddd;
    font-size: 1.2em;
    text-align: justify;
}

.form-group a {
    color: #dddddd;
    text-decoration: underline;
}

.form-input {
    width: 55%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 1em;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    color: #333;
    vertical-align: middle; /* Aligner le champ de saisie au centre verticalement */
}

.send-button {
    background-color: #5a2a6b;
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.send-button:hover {
    background-color: #48205a;
}

.dl-button {
    background-color: #5a2a6b;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-decoration: none;
    max-width: 50%;
}

.dl-button:hover {
    background-color: #48205a;
}

.grade-container {
    display: flex;
    justify-content: space-around;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.grade-container input[type="radio"] {
    display: none;
}

.grade-container label {
    background-color: #e0e0e0;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.grade-container input[type="radio"]:checked + label {
    background-color: #5a2a6b;
    color: white;
}

.score-image {
    height: 5.5em;
    display: block;
    margin: 0 auto;
    margin-bottom: 2em;
}

.home-score-image {
  height: 3.2em;
  display: block;
  margin: 0 auto;
  margin-bottom: 1.5em;
  margin-top: -10px;
}

.home-report-image {
  height: 11em;
  display: block;
  margin: 1em auto;
}

/* Styles pour les options multi-réponses */
.multi-option-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.multi-option-container label {
    background-color: #ffffff;
    color: #333333;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    user-select: none; /* Désactiver la sélection de texte */
}

.multi-option-container input[type="checkbox"] {
    display: none; /* Masquer la case à cocher réelle */
}

.multi-option-container input[type="checkbox"]:checked + label {
    background-color: #5a2a6b;
    color: white;
}

.multi-option-container label:hover {
    background-color: #ddd;
}


.back-form {
    position: absolute;
    top: 20px;
    left: 20px;
}

.back-arrow {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.back-arrow img {
    width: 24px;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .heading-text {
        font-size: 1.8em;
    }

    .description-text {
        font-size: 1em;
    }

    .question-text {
        font-size: 1.2em;
    }

    .explanation-text {
        font-size: 1em;
    }

    .option-button {
        font-size: 1em;
    }

    .start-button, .next-button {
        font-size: 1em;
    }

    .form-input {
        width: 65%;
    }

    .version {
        font-size: 1em;
        margin-bottom: 0.5em;
    }

    .question-icon {
        height: 3.8em;
        margin-top: 1.5em;
    }

    .form-group label {
        font-size: 1em;
    }

    .form-group input[type="checkbox"] {
        margin-top: 0;
    }

}

@media screen and (max-width: 480px) {
    .logo {
        width: 70%;
        margin-bottom: 4vh !important;
        margin-top: 6vh !important;
    }

    .heading-text {
        font-size: 1.5em;
    }

    .container {
        padding: 30px;
        width: 76%;
    }

    .description-text {
        font-size: 1em;
        margin-bottom: 10px;
    }

    .question-text {
        font-size: 1.1em;
    }

    .back-arrow img {
        width: 20px;
        margin-bottom: 5px;
    }

    .explanation-text {
        font-size: 1em;
        margin-top: 20px;
        margin-bottom: 25px;
        border-left: none;
        padding-left: 0;
    }

    .button-container {
        margin-top: 0;
        margin-bottom: 15px;
    }

    .form-input {
        width: 85%;
    }

    .option-button {
        padding: 8px 10px;
        font-size: 0.9em;
    }

    .start-button, .next-button {
        font-size: 1em;
    }

    .footer {
        font-size: 1em;
    }

    .version {
        font-size: 1em;
        margin-bottom: 0.5em;
        margin-right: 0.75em;
    }

    .question-icon {
        height: 2.5em;
        margin-top: 1.3em;
        margin-bottom: -10px;
    }

    .button-group {
        margin-bottom: 20px;
        gap: 0.4em;
      }

    .category-title {
        font-size: 1.1em;
    }

    .logo {
        width: 60%;
        margin-bottom: 3vh !important;
        margin-top: 5vh !important;
    }

    .form-group label {
        font-size: 1em;
    }

    .footer-policy {
        margin-right: 2.5em;
    }

    .form-group input[type="checkbox"] {
        margin-top: 0;
    }

}
