/**
 * Styles personnalisés pour AZ Assistance Visa
 * Design futuriste et moderne
 */

/* ===========================
   Variables CSS
   =========================== */
:root {
    /* Couleurs principales */
    --primary-color: #1E40AF;
    --primary-light: #3B82F6;
    --primary-dark: #1E3A8A;
    
    /* Couleurs de statut */
    --success-color: #10B981;
    --success-light: #34D399;
    --warning-color: #F59E0B;
    --warning-light: #FBBF24;
    --danger-color: #EF4444;
    --danger-light: #F87171;
    --info-color: #3B82F6;
    --info-light: #60A5FA;
    
    /* Couleurs de fond */
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --bg-dark: #1F2937;
    
    /* Couleurs de texte */
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    
    /* Bordures */
    --border-color: #E5E7EB;
    --border-light: #F3F4F6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    --gradient-success: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    --gradient-warning: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    
    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* ===========================
   Styles de base
   =========================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ===========================
   Typographie
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   Cards
   =========================== */
.card-custom {
    background: var(--bg-white);
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.card-custom:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.card-header-custom {
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    padding: 1.25rem;
    font-weight: 600;
    border: none;
}

/* ===========================
   Boutons
   =========================== */
.btn-custom {
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition-normal);
    border: none;
}

.btn-primary-custom {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-success-custom {
    background: var(--gradient-success);
    color: white;
}

.btn-success-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: white;
}

/* ===========================
   Badges de statut
   =========================== */
.badge-custom {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-en-cours {
    background: var(--info-light);
    color: white;
}

.badge-complet {
    background: var(--success-color);
    color: white;
}

.badge-attente {
    background: var(--warning-color);
    color: white;
}

.badge-obtenu {
    background: var(--success-light);
    color: white;
}

.badge-refuse {
    background: var(--danger-color);
    color: white;
}

/* ===========================
   Formulaires
   =========================== */
.form-control-custom {
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    transition: var(--transition-normal);
}

.form-control-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-label-custom {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Labels flottants */
.form-floating-custom {
    position: relative;
}

.form-floating-custom .form-control {
    padding-top: 1.625rem;
    padding-bottom: .625rem;
}

.form-floating-custom label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 1rem .75rem;
    pointer-events: none;
    transition: var(--transition-fast);
}

/* ===========================
   Tables
   =========================== */
.table-custom {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table-custom thead {
    background: var(--gradient-primary);
    color: white;
}

.table-custom thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table-custom tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: var(--border-light);
}

.table-custom tbody tr:hover {
    background: var(--bg-light);
}

/* ===========================
   Timeline
   =========================== */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
}

.timeline-icon {
    position: absolute;
    left: 18px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    z-index: 1;
}

.timeline-content {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.timeline-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.timeline-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* ===========================
   Alerts personnalisées
   =========================== */
.alert-custom {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    box-shadow: var(--shadow-sm);
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.5s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===========================
   Hover Effects
   =========================== */
.hover-lift {
    transition: var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.hover-scale {
    transition: var(--transition-normal);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* ===========================
   Utilitaires
   =========================== */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-success {
    background: var(--gradient-success) !important;
}

.bg-gradient-warning {
    background: var(--gradient-warning) !important;
}

.shadow-custom {
    box-shadow: var(--shadow-md);
}

.shadow-custom-lg {
    box-shadow: var(--shadow-xl);
}

.rounded-custom {
    border-radius: 15px !important;
}

.rounded-custom-lg {
    border-radius: 20px !important;
}

/* ===========================
   WhatsApp Button
   =========================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: var(--transition-normal);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7);
    color: white;
}

.whatsapp-float i {
    animation: pulse 2s infinite;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .card-custom {
        border-radius: 10px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
}

/* ===========================
   Scrollbar personnalisée
   =========================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

