/* Styles pour le plugin Vérification d'Identité */

/* Bandeau de notification */
.vi-notice {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: 600px !important;
    width: 90% !important;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%) !important;
    color: white !important;
    z-index: 99999 !important;
    padding: 12px 20px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2) !important;
    border-radius: 8px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border: 2px solid #ffffff !important;
    min-height: 50px !important;
}

.vi-notice-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0px!important;
}

.vi-notice-content span {
    flex: 1;
    font-size: 14px;
}

.vi-notice-button {
    background: white;
    color: #0073aa;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 20px;
    transition: all 0.3s ease;
}

.vi-notice-button:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.vi-notice-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.vi-notice-close:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Formulaire de vérification */
.vi-verification-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e1e5e9;
}

.vi-verification-form h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 24px;
    text-align: center;
}

.vi-verification-form p {
    color: #6c757d;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.6;
}

.vi-form-group {
    margin-bottom: 25px;
}

.vi-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.vi-form-group input[type="text"],
.vi-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.vi-form-group input[type="text"]:focus,
.vi-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.vi-form-group input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px dashed #e1e5e9;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vi-form-group input[type="file"]:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.vi-form-group small {
    display: block;
    margin-top: 8px;
    color: #6c757d;
    font-size: 12px;
    line-height: 1.4;
}

.vi-submit-btn {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vi-submit-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004466 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,115,170,0.3);
}

.vi-submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.vi-submit-btn .vi-btn-loading {
    display: none;
}

/* Messages */
.vi-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.vi-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.vi-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Messages de statut */
.vi-restriction-message,
.vi-success-message,
.vi-error-message,
.vi-waiting-message {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.vi-restriction-message {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    color: #856404;
}

.vi-success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    color: #155724;
}

.vi-error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.vi-waiting-message {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Validation des champs */
.vi-form-group input.error,
.vi-form-group textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220,53,69,0.1);
}

/* Readonly fields */
.vi-readonly-field {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    cursor: not-allowed;
    border-color: #dee2e6 !important;
}

.vi-readonly-field:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #dee2e6 !important;
}

/* Field notes */
.vi-field-note {
    color: #0073aa !important;
    font-style: italic;
    margin-top: 5px;
    font-size: 12px;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .vi-notice {
        width: 95%;
        bottom: 10px;
        padding: 10px 15px;
    }
    
    .vi-notice-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .vi-notice-button {
        margin: 0;
        width: 100%;
        max-width: 200px;
    }
    
    .vi-notice-close {
        position: absolute;
        top: 10px;
        right: 10px;
    }
    
    .vi-verification-form {
        margin: 10px;
        padding: 20px;
    }
    
    .vi-verification-form h2 {
        font-size: 20px;
    }
    
    .vi-form-group input[type="text"],
    .vi-form-group textarea,
    .vi-form-group input[type="file"] {
        padding: 10px 12px;
    }
    
    .vi-submit-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .vi-verification-form {
        padding: 15px;
    }
    
    .vi-verification-form h2 {
        font-size: 18px;
    }
    
    .vi-form-group {
        margin-bottom: 20px;
    }
}

/* Amélioration de l'accessibilité */
.vi-form-group input:focus,
.vi-form-group textarea:focus,
.vi-submit-btn:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* États de chargement */
.vi-submit-btn:disabled .vi-btn-text {
    opacity: 0.7;
}

.vi-submit-btn:disabled .vi-btn-loading {
    display: inline-block;
}

/* Effet de pulsation pour le chargement */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.vi-submit-btn:disabled {
    animation: pulse 1.5s infinite;
} 