/* Style Premium André – surcharge des styles existants
   On suppose que le plugin principal utilise les classes :
   .assistant-container, .bloc-texte, .bloc-andre, .bloc-bilan, etc.
*/

/* Ne touche pas au bloc texte : on conserve le manuscrit crème existant */

/* Bloc André : fond sombre futuriste, comme sur le Mac */

.bloc-andre {
    margin-top: 24px;
    margin-bottom: 26px;
    padding: 24px 26px;
    border-radius: 24px;
    background: #15182B;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 40px rgba(0,0,0,0.55);
    color: #F9FAFB;
}

.bloc-andre h3 {
    font-size: 26px;
    font-weight: 700;
    color: #FFFFFF;
    margin-top: 0;
    margin-bottom: 18px;
}

/* Labels */
.bloc-andre label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #E5E7EB;
    margin-bottom: 4px;
}

/* Select + textarea élève */
.bloc-andre .etape-select,
.bloc-andre .andre-question {
    width: 100%;
    margin-top: 4px;
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 255, 0.45);
    color: #F9FAFB;
    font-size: 14px;
}

.bloc-andre .andre-question {
    min-height: 110px;
    resize: vertical;
}

/* Bouton envoyer à André */
.bloc-andre .btn-andre,
#assistant-envoyer {
    margin-top: 16px;
    width: 100%;
    padding: 13px 22px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #F9FAFF;
    background: linear-gradient(90deg, #7C3AED, #A78BFA);
    box-shadow: 0 0 20px rgba(129, 140, 248, 0.8);
    transition: box-shadow .2s ease, transform .2s ease;
}

.bloc-andre .btn-andre:hover,
#assistant-envoyer:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 26px rgba(167, 139, 250, 1);
}

/* Header André (avatar + nom) */
.andre-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    margin-bottom: 6px;
}

.andre-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(129, 140, 248, 0.9);
    border: 2px solid rgba(191, 219, 254, 0.95);
    object-fit: cover;
    background-color: #020617;
}

.andre-identite .andre-name {
    font-weight: 600;
    font-size: 15px;
    color: #F9FAFB;
}

.andre-identite .andre-role {
    font-size: 12px;
    color: #9CA3AF;
}

/* Réponse d'André */
.andre-reponse {
    margin-top: 4px;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 255, 0.6);
    padding: 10px 12px;
    font-size: 14px;
    color: #E5E7EB;
    line-height: 1.7;
}

/* Animation "André réfléchit" */
.andre-typing {
    color: #A5B4FC;
    font-style: italic;
    font-size: 13px;
    margin-top: 6px;
}

/* Historique */
.assistant-zone-historique h4 {
    margin-top: 18px;
    margin-bottom: 6px;
    font-size: 15px;
    color: #F9FAFB;
}

.assistant-historique-contenu {
    max-height: 260px;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 16px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 255, 0.4);
    font-size: 13px;
}

.assistant-histo-ligne {
    margin-bottom: 6px;
}

.assistant-histo-user strong {
    color: #4ADE80;
}
.assistant-histo-assistant strong {
    color: #93C5FD;
}

/* Bloc bilans : fond sombre légèrement moins marqué */
.bloc-bilan {
    margin-top: 30px;
    padding: 20px 22px 16px 22px;
    border-radius: 20px;
    background: #181B33;
    border: 1px solid rgba(148, 163, 255, 0.45);
    box-shadow: 0 16px 36px rgba(0,0,0,0.65);
    color: #E5E7EB;
}

.bloc-bilan h3 {
    font-size: 20px;
    color: #E0E7FF;
    margin-top: 0;
    margin-bottom: 12px;
}

.bilan-section h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #C7D2FE;
}

.bilan-notes {
    width: 100%;
    min-height: 80px;
    border-radius: 12px;
    border: 1px solid rgba(191, 219, 254, 0.6);
    padding: 8px 10px;
    font-size: 14px;
    resize: vertical;
    background: rgba(15, 23, 42, 0.98);
    color: #F9FAFB;
}

/* Bouton "Imprimer / Télécharger mes notes" */
.btn-imprimer-bilan {
    margin-left: auto;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    background: #111827;
    color: #F9FAFB;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,0.7);
}

/* Message d'état des sauvegardes */
.bilan-save-status {
    font-size: 13px;
    color: #4ADE80;
}
