/* ESPA-FRANCE - Styles pour le formulaire de contact */

/* Animation des champs */
.contact-page fieldset {
    position: relative;
    transition: all 0.3s ease;
}

.contact-page fieldset.focused {
    transform: translateY(-2px);
}

.contact-page input,
.contact-page textarea {
    transition: all 0.3s ease;
    border: 2px solid #ddd;
}

.contact-page input:focus,
.contact-page textarea:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.2);
    outline: none;
}

/* États de validation */
.contact-page input.valid,
.contact-page textarea.valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.94-.94 2.94 2.94L7.88 7 9 8.12 3.24 13.88z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
}

.contact-page input.error,
.contact-page textarea.error {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

/* Messages d'erreur */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
    animation: fadeInDown 0.3s ease;
}

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

/* Message de succès */
.success-message {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
}

.success-message .success-content {
    max-width: 500px;
    margin: 0 auto;
}

.success-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.success-message h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.success-message p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.success-message small {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    min-width: 300px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.error {
    border-left: 4px solid #dc3545;
}

.notification.error i {
    color: #dc3545;
}

.notification.success {
    border-left: 4px solid #28a745;
}

.notification.success i {
    color: #28a745;
}

.notification span {
    flex: 1;
    font-weight: 500;
}

.close-notification {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-notification:hover {
    color: #666;
}

/* Compteur de caractères */
.character-counter {
    text-align: right;
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.character-counter.warning {
    color: #ff6b35;
    font-weight: bold;
}

/* Animation du bouton de soumission */
.orange-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.orange-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.orange-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* Animation de chargement */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .success-message {
        padding: 20px 15px;
    }
    
    .success-message i {
        font-size: 2.5rem;
    }
    
    .success-message h4 {
        font-size: 1.3rem;
    }
}

/* Améliorations visuelles */
.contact-page .row {
    position: relative;
}

.contact-page fieldset label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.contact-page input[type="name"],
.contact-page input[type="text"],
.contact-page input[type="subject"],
.contact-page textarea {
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    line-height: 1.5;
}

.contact-page textarea {
    min-height: 120px;
    resize: vertical;
}

/* Animation au chargement de la page */
.contact-page form {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus visible pour l'accessibilité */
.contact-page input:focus-visible,
.contact-page textarea:focus-visible,
.orange-button:focus-visible {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}



