/* --- Styles des formulaires & Notifications --- */

.container-notifications {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 1rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: 0.9rem;
}

/* Style des champs de saisie (Inputs) */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: #1e293b;
    background-color: #ffffff;
    background-clip: padding-box;
    border: 1px solid #d1d5db; /* Bordure douce */
    border-radius: 8px; /* Coins arrondis modernes */
    transition: all 0.2s ease-in-out;
    outline: none;
}

/* État au Focus (quand on clique dedans) */
.form-control:focus {
    border-color: var(--primary); /* Ta couleur bleue */
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); /* Halo lumineux subtil */
    background-color: #fff;
}

/* Gestion des erreurs de validation Symfony */
.invalid-feedback, .alert-danger, ul li {
    color: var(--danger);
    list-style: none;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.is-invalid {
    border-color: var(--danger) !important;
}

/* Flash Messages & Alertes */
.flash {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
}

.flash-success {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.flash-danger {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.flash-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

/* --- Alertes de formulaire --- */

/* État visuel du champ en erreur */
.form-control.is-invalid {
    border-color: var(--danger) !important;
    background-color: #fff8f8; /* Un rouge très léger pour le fond */
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Résumé des erreurs en haut de page */
.form-error-summary {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-left: 4px solid var(--danger);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    animation: fadeIn 0.3s ease-out;
}

.form-error-summary h3 {
    color: #991b1b;
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.form-error-summary ul {
    color: #b91c1c;
    margin: 0.75rem 0 0 0;
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.form-error-summary li {
    margin: 0.3rem 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Boutons de base --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

/* Variantes de couleurs */
.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-teacher {
    background-color: #9d174d; /* Le bordeaux spécifique prof */
    color: white;
}

.btn-teacher:hover {
    background-color: #831441;
    box-shadow: 0 4px 12px rgba(157, 23, 77, 0.2);
}

.btn-full {
    width: 100%;
}

/* État au survol */
.form-control:hover {
    border-color: #94a3b8;
}

/* Style des labels pour accompagner les inputs */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
}

/* Gestion des erreurs de validation */
.form-errors {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    list-style: none;
    padding-left: 0;
}

.form-control.is-invalid {
    border-color: #dc2626;
}

/* Style pour les placeholders */
.form-control::placeholder {
    color: #94a3b8;
    opacity: 1;
}
