/* ============================================================================
 *  v2-modals.css — Styles minimaux pour les modales V2 injectées dans V1
 *  Préfixe v2- pour éviter conflits avec les classes V1 existantes
 * ============================================================================ */

/* Modale */
.v2-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.v2-modal {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.v2-modal-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.v2-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

/* Boutons */
.v2-btn {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    font-family: inherit;
}
.v2-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.v2-btn-primary {
    background: #C8102E;
    color: #fff;
    border-color: #C8102E;
}
.v2-btn-primary:hover:not(:disabled) {
    background: #a30d24;
}
.v2-btn-secondary {
    background: #fff;
    color: #6b7280;
    border-color: #d1d5db;
}
.v2-btn-secondary:hover:not(:disabled) {
    background: #f9fafb;
}
.v2-btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

/* Champs */
.v2-field {
    margin-bottom: 12px;
}
.v2-field-label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}
.v2-input,
.v2-select,
.v2-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #1a1a1a;
}
.v2-input:focus,
.v2-select:focus,
.v2-textarea:focus {
    outline: none;
    border-color: #C8102E;
    box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.1);
}
.v2-textarea {
    min-height: 60px;
    resize: vertical;
}

/* Loader */
.v2-loader {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: #C8102E;
    border-radius: 50%;
    animation: v2-spin 0.8s linear infinite;
}
@keyframes v2-spin {
    to { transform: rotate(360deg); }
}

/* Animation pulse pour l'enregistrement vocal */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
