/**
 * Formulaire Validation Styles
 * Styling for form validation feedback and scoring
 */

/* Input validation states */
.td-input.valid {
    border: 2px solid #4caf50 !important;
    background-color: #f1f8f4 !important;
}

.td-input.invalid {
    border: 2px solid #f44336 !important;
    background-color: #fef1f0 !important;
}

/* Score feedback container */
.score-feedback-formulaire {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none;
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.score-number {
    font-size: 48px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.score-percentage {
    font-size: 32px;
    font-weight: 600;
    color: #666;
}

.score-message {
    text-align: center;
    font-size: 18px;
    color: #555;
    font-weight: 500;
}



/* Score container2 - formulaire specific override */
.score-container2.formulaire {
    display: none;
    width: 100%;
    max-width: 600px;
}

/* Function buttons container - formulaire specific override */
/* Note: Base .function-buttons-container defined in activite1-a1.css */
.function-buttons-container.formulaire {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 15px;
}

/* Note: .custom-alert, .custom-alert-content, .custom-alert-close already defined in giweb.webflow.css */

/* Responsive design for scoring elements */
@media (max-width: 768px) {
    .score-number {
        font-size: 36px;
    }
    
    .score-percentage {
        font-size: 24px;
    }
    
    .score-message {
        font-size: 16px;
    }
    
    .score-feedback-formulaire {
        padding: 15px;
    }
}

/* Animation for validation */
.td-input {
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Score feedback animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.score-feedback-formulaire {
    animation: fadeInUp 0.5s ease;
}

