
/* Réinitialisation */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Style général */
body {
    font-family: Arial, sans-serif;
    background-color: #f1f5f9;
    color: #1e293b;
}

/* En-tête */
header {
    background-color: #12345a;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

/* Contenu principal */
main {
    display: flex;
    justify-content: center;
    padding: 50px 20px;
}

/* Zone d'analyse */
.analyse {
    background-color: white;
    width: 100%;
    max-width: 700px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.analyse h2 {
    color: #12345a;
    margin-bottom: 15px;
}

.analyse p {
    margin-bottom: 15px;
}

/* Zone de texte */
textarea {
    width: 100%;
    height: 150px;
    padding: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    resize: vertical;
    margin-bottom: 20px;
}

/* Bouton */
button {
    background-color: #0d9488;
    color: white;
    border: none;
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #0f766e;
}

/* Boutons secondaires : coller, installer */
.outils {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

button.secondaire {
    background-color: white;
    color: #0f766e;
    border: 2px solid #0d9488;
    padding: 12px 18px;
}

button.secondaire:hover {
    background-color: #f0fdfa;
}

.info {
    background-color: #f0fdfa;
    border-left: 4px solid #0d9488;
    padding: 10px 14px;
    border-radius: 6px;
}

.aide {
    color: #9a3412;
    font-size: 14px;
}

/* Astuce de partage */
.astuce {
    margin-top: 20px;
    color: #475569;
    font-size: 15px;
}

.astuce summary {
    cursor: pointer;
    color: #12345a;
    font-weight: bold;
}

.astuce p {
    margin: 10px 0 0;
    line-height: 1.5;
}

/* Résultat */
#resultat {
    margin-top: 25px;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #0d9488;
}

#resultat h3 {
    margin-bottom: 10px;
    color: #12345a;
}

/* Pied de page */
footer {
    text-align: center;
    padding: 20px;
    color: #64748b;
    }
    /* Couleur de la zone de résultat selon le niveau de risque */
#resultat.resultat-faible {
    background: #e6f7ec;
    border-left: 8px solid #2e9d57;
    padding: 12px 16px;
    border-radius: 8px;
}

#resultat.resultat-moyen {
    background: #fff3e0;
    border-left: 8px solid #f08c00;
    padding: 12px 16px;
    border-radius: 8px;
}

#resultat.resultat-eleve {
    background: #fdecea;
    border-left: 8px solid #d32f2f;
    padding: 12px 16px;
    border-radius: 8px;
}

/* Résultat de l'API (T34) */
#resultat h4 {
    margin: 14px 0 6px;
    color: #12345a;
    font-size: 15px;
}

#resultat ul {
    margin: 0 0 4px;
    padding-left: 20px;
}

#resultat li {
    margin-bottom: 4px;
    line-height: 1.45;
}

#resultat .explication {
    font-size: 17px;
    font-weight: bold;
}

#resultat .note {
    margin-top: 12px;
    font-size: 14px;
    color: #475569;
}

#resultat .texte-lu {
    margin-top: 12px;
    font-size: 14px;
    color: #475569;
}

#resultat .texte-lu p {
    white-space: pre-wrap;
    margin-top: 6px;
}

/* Envoi d'une capture d'écran */
.capture {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.capture input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.bouton-fichier {
    display: inline-block;
    background-color: white;
    color: #0f766e;
    border: 2px solid #0d9488;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
}

.capture input[type="file"]:focus-visible + span,
.bouton-fichier:hover {
    background-color: #f0fdfa;
}

.aide-neutre {
    color: #475569;
    font-size: 14px;
}

button:disabled {
    opacity: 0.7;
    cursor: wait;
}

