/* Styles pour les formulaires - Programme Jeune & Entrepreneur */

/* Styles pour les messages d'erreur */
.form-errors {
    background-color: #fff8f8;
    border-left: 4px solid #e74c3c;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.form-errors .error-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-errors .error-header i {
    color: #e74c3c;
    font-size: 20px;
    margin-right: 10px;
}

.form-errors .error-header h3 {
    color: #e74c3c;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.form-errors ul {
    margin: 0;
    padding-left: 35px;
}

.form-errors ul li {
    color: #555;
    margin-bottom: 5px;
    font-size: 14px;
}

/* Styles pour les champs avec erreur */
.form-group.has-error label {
    color: #e74c3c;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #e74c3c;
    background-color: #fff8f8;
}

.form-group .error-message {
    display: block;
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

/* Animation pour les notifications flash */
.flash-notification {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.flash-notification.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

/* Styles pour les notifications de succès */
.flash-notification.success {
    background-color: #eefaf3;
    border-left: 4px solid #00AAE4;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flash-notification .notification-content {
    display: flex;
    align-items: center;
}

.flash-notification .notification-content i {
    color: #00AAE4;
    font-size: 20px;
    margin-right: 10px;
}

.flash-notification .notification-content p {
    color: #333;
    margin: 0;
    font-size: 15px;
}

.flash-notification .close-notification {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    transition: color 0.2s ease;
}

.flash-notification .close-notification:hover {
    color: #333;
}

/* Styles pour améliorer l'accessibilité */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #00AAE4;
    box-shadow: 0 0 0 3px rgba(0, 170, 228, 0.2);
    outline: none;
}

/* Styles pour les boutons de formulaire */
.form-submit-button {
    background-color: #00AAE4;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.form-submit-button:hover {
    background-color: #0090c5;
}

.form-submit-button:focus {
    box-shadow: 0 0 0 3px rgba(0, 170, 228, 0.3);
    outline: none;
}

/* Styles pour les champs obligatoires */
.form-group label::after {
    content: " *";
    color: #e74c3c;
}

.form-group label[for$="-optional"]::after {
    content: "";
}
