/* ===========================================
   FICHIER CSS CONSOLIDÉ - INTERFACE CLIENT
   ===========================================
   Ce fichier contient tous les styles CSS
   pour l'interface client d'OPTIMUS Assurance

   CONTENU:
   - Styles généraux et variables CSS
   - Header et navigation
   - Sidebar et contenu principal
   - Cartes et composants
   - Modals et formulaires
   - Animations et effets
   - Responsive design
   - Accessibilité et contraste

   Fichiers consolidés:
   - style.css (dashboard et interface)
   - subscription.css (modals d'abonnement)
   - welcome.css (page d'accueil)

   =========================================== */
/* Variables CSS pour la cohérence et la maintenance */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --secondary-color: #1e293b;
    --accent-color: #06b6d4;
    --surface-color: #ffffff;
    --background-color: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 280px;
}

/* Reset et styles globaux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--background-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations globales */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -30px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Styles des liens */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:focus, a:active {
    outline: none;
    border: none;
}

a:hover {
    text-decoration: none;
    color: var(--primary-color);
}

/* Header moderne */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    backdrop-filter: blur(10px);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
    animation: slideIn 0.6s ease-out;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.header .logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.header .notifications {
    font-size: 1.8rem;
    position: relative;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header .notifications:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    animation: bounce 1s;
}

.header .notifications .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 50px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 4px rgba(238, 90, 36, 0.3);
}

/* Sidebar ultra-moderne */
.sidebar {
    height: 100vh;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    width: var(--sidebar-width);
    box-shadow: var(--shadow-heavy);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 16px 25px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    margin: 4px 12px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.sidebar a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.sidebar a:hover::before {
    left: 100%;
}

.sidebar a:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    transform: translateX(8px);
    color: white;
    box-shadow: var(--shadow-light);
}

.sidebar a i {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
    transition: var(--transition);
}

.sidebar a:hover i {
    transform: scale(1.2);
    color: var(--accent-color);
    filter: brightness(1.3);
}

.sidebar h4 {
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0;
    margin: 0 20px 30px;
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Lien actif dans la sidebar */
.sidebar a.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 600;
    transform: translateX(8px);
    box-shadow: var(--shadow-medium);
}

.sidebar a.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 60%;
    background: #ffffff;
    transform: translateY(-50%);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Contenu principal */
.content {
    margin-left: var(--sidebar-width);
    padding: 30px;
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.8s ease-out;
    min-height: 100vh;
}

.content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
}

/* Toggle sidebar button */
.toggle-sidebar {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1040;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    font-size: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.toggle-sidebar:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}

/* Cards modernes */
.card {
    border: none;
    border-radius: var(--border-radius);
    background: var(--surface-color);
    box-shadow: var(--shadow-light);
    overflow: visible;
    transition: var(--transition);
    cursor: default;
    position: relative;
    backdrop-filter: blur(10px);
}

/* Supprimer les pseudo-éléments qui bloquent les interactions */
.card::before {
    display: none !important;
}

.card:hover {
    transform: none;
    box-shadow: var(--shadow-light);
}

/* Assurer que le contenu des cartes est interactif */
.card-body,
.card-header,
.card-footer {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Notifications dropdown */
.dropdown-menu {
    min-width: 320px;
    max-height: 400px;
    overflow-y: auto;
    border: none;
    border-radius: var(--border-radius);
    background: var(--surface-color);
    box-shadow: var(--shadow-heavy);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: var(--background-color);
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.08), transparent);
    transition: left 0.5s;
}

.dropdown-item:hover::before {
    left: 100%;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(6, 182, 212, 0.03) 100%);
    transform: translateX(5px);
    color: var(--text-primary);
}

.dropdown-item:last-child {
    border-bottom: none;
}

/* Cartes de notification */
.notification-card {
    border-left: 4px solid var(--primary-color);
    background: var(--surface-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    animation: fadeIn 0.6s ease-out;
}

.notification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.02) 0%, rgba(6, 182, 212, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-card:hover::before {
    opacity: 1;
}

.notification-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.notification-card.unread {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-left-color: var(--primary-color);
}

.notification-card.read {
    background: var(--background-color);
    border-left-color: var(--text-secondary);
    opacity: 0.9;
}

.notification-card.success {
    border-left-color: var(--success-color);
}

.notification-card.warning {
    border-left-color: var(--warning-color);
}

.notification-card.danger {
    border-left-color: var(--danger-color);
}

/* Icônes de notification */
.notification-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    position: relative;
    overflow: hidden;
}

.notification-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.notification-card:hover .notification-icon::before {
    width: 100%;
    height: 100%;
}

.notification-icon.info {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(79, 70, 229, 0.08) 100%);
    color: var(--primary-color);
}

.notification-icon.success {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.12) 0%, rgba(5, 150, 105, 0.08) 100%);
    color: var(--success-color);
}

.notification-icon.warning {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.12) 0%, rgba(217, 119, 6, 0.08) 100%);
    color: var(--warning-color);
}

.notification-icon.danger {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.12) 0%, rgba(220, 38, 38, 0.08) 100%);
    color: var(--danger-color);
}

/* Texte des notifications */
.notification-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.notification-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Actions de notification */
.notification-actions {
    opacity: 0;
    transition: var(--transition);
    transform: translateY(10px);
}

.notification-card:hover .notification-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Badge de notification */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--danger-color) 0%, #b91c1c 100%);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* Header animé */
.animated-header {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    animation: fadeIn 1s ease-out;
    /* Fallback pour les navigateurs ne supportant pas background-clip */
    color: var(--primary-color);
}

.animated-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: all 0.5s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.animated-header:hover::after {
    width: 100px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .content {
        margin-left: 0;
        padding: 20px;
    }
    
    .toggle-sidebar {
        display: flex;
    }
    
    .header {
        padding: 15px 20px;
    }
    
    .animated-header {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .dataTables_wrapper {
        overflow-x: auto;
    }
    
    .content {
        padding: 15px;
    }
    
    .notification-card {
        margin-bottom: 10px;
    }
    
    .dropdown-menu {
        min-width: 280px;
    }
}

/* Animations supplémentaires */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.slide-in {
    animation: slideIn 0.6s ease-out;
}

/* Effet de chargement */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
    :root {
        --surface-color: #1e293b;
        --background-color: #0f172a;
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --text-light: #64748b;
        --border-color: #334155;
        --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
        --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
        --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }
    
    .notification-card.unread {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    }
    
    .dropdown-menu {
        background: var(--surface-color);
        border: 1px solid var(--border-color);
    }
}

/* Contraste adaptatif - Texte sombre sur fond clair, texte clair sur fond sombre */

/* CORRECTION CRITIQUE : Assurer l'interactivité des formulaires */
.content input,
.content textarea,
.content select,
.content button,
.content .btn,
.content .form-control,
.content .form-select {
    pointer-events: auto !important;
    user-select: auto !important;
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Assurer que les formulaires sont cliquables */
.content form {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 5 !important;
}

/* Assurer que les cartes contenant des formulaires sont interactives */
.content .card {
    pointer-events: auto !important;
    position: relative !important;
}

/* Supprimer tout overlay qui pourrait bloquer les interactions */
.content *::before,
.content *::after {
    pointer-events: none !important;
}

/* CORRECTIONS SUPPLÉMENTAIRES POUR L'INTERACTIVITÉ */

/* Supprimer tous les overlays et pseudo-éléments problématiques */
.sidebar::before,
.header::before,
.notification-card::before,
.dropdown-item::before,
.sidebar a::before {
    display: none !important;
}

/* Assurer que tous les éléments interactifs sont cliquables */
.content a,
.content button,
.content input,
.content textarea,
.content select,
.content .btn,
.content .form-control,
.content .form-select,
.content .dropdown-toggle,
.content .dropdown-item {
    pointer-events: auto !important;
    user-select: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 100 !important;
}

/* Spécifiquement pour les champs de texte */
.content input[type="text"],
.content input[type="email"],
.content input[type="password"],
.content input[type="tel"],
.content input[type="number"],
.content textarea {
    cursor: text !important;
    user-select: text !important;
}

/* Assurer que les modals sont interactives */
.modal,
.modal-dialog,
.modal-content,
.modal-body,
.modal-header,
.modal-footer {
    pointer-events: auto !important;
    z-index: 1050 !important;
}

/* Supprimer les animations qui pourraient bloquer */
.content .card,
.content .notification-card,
.content .dropdown-item {
    animation: none !important;
    transform: none !important;
    transition: none !important;
}

/* Assurer que les tableaux sont interactifs */
.content table,
.content .table,
.content .dataTables_wrapper {
    pointer-events: auto !important;
}

/* Corrections pour les boutons spécifiques */
.content .btn-group .btn,
.content .dropdown-menu .dropdown-item,
.content .pagination .page-link {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 10 !important;
}

/* Titres principaux - Texte clair sur fond général sombre */
.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.content .animated-header {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: none !important;
    -webkit-text-fill-color: white !important;
}

/* Textes sur fond général sombre - Texte clair */
.content > * {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Cartes avec fond clair - Texte sombre */
.content .card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.content .card h1,
.content .card h2,
.content .card h3,
.content .card h4,
.content .card h5,
.content .card h6,
.content .card .card-title {
    color: #2d3748 !important;
    text-shadow: none !important;
}

.content .card p,
.content .card .fw-bold,
.content .card strong,
.content .card .form-label,
.content .card label,
.content .card .text-muted {
    color: #4a5568 !important;
    text-shadow: none !important;
}

.content .card .text-muted {
    color: #718096 !important;
}

/* Tableaux avec fond clair - Texte sombre */
.content .table {
    background: rgba(255, 255, 255, 0.95) !important;
}

.content .table th {
    background: rgba(248, 250, 252, 0.95) !important;
    border-color: rgba(226, 232, 240, 0.8) !important;
    color: #2d3748 !important;
    text-shadow: none !important;
}

.content .table td {
    border-color: rgba(226, 232, 240, 0.6) !important;
    color: #4a5568 !important;
    text-shadow: none !important;
}

/* Cartes colorées - Garder le texte blanc */
.content .card.bg-primary,
.content .card.bg-success,
.content .card.bg-warning,
.content .card.bg-danger,
.content .card.bg-info {
    background: var(--bs-primary) !important;
}

.content .card.bg-primary *,
.content .card.bg-success *,
.content .card.bg-warning *,
.content .card.bg-danger *,
.content .card.bg-info * {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Alertes avec fond clair - Texte sombre */
.content .alert {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #2d3748 !important;
    text-shadow: none !important;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.content .alert.alert-success {
    background: rgba(240, 253, 244, 0.95) !important;
    color: #22543d !important;
    border-color: rgba(154, 230, 180, 0.8);
}

.content .alert.alert-warning {
    background: rgba(255, 251, 235, 0.95) !important;
    color: #744210 !important;
    border-color: rgba(251, 211, 141, 0.8);
}

.content .alert.alert-danger {
    background: rgba(254, 242, 242, 0.95) !important;
    color: #742a2a !important;
    border-color: rgba(252, 165, 165, 0.8);
}

.content .alert.alert-info {
    background: rgba(235, 248, 255, 0.95) !important;
    color: #2a4365 !important;
    border-color: rgba(144, 205, 244, 0.8);
}

/* Listes avec fond clair - Texte sombre */
.content .list-group-item {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(226, 232, 240, 0.6) !important;
}

.content .list-group-item h6,
.content .list-group-item p,
.content .list-group-item small,
.content .list-group-item .notification-title,
.content .list-group-item .notification-text,
.content .list-group-item .notification-time {
    color: #4a5568 !important;
    text-shadow: none !important;
}

.content .list-group-item.list-group-item-warning {
    background: rgba(255, 251, 235, 0.95) !important;
}

/* Modals - Fond clair, texte sombre */
.modal-content {
    background: rgba(255, 255, 255, 0.98) !important;
}

.modal-content h1,
.modal-content h2,
.modal-content h3,
.modal-content h4,
.modal-content h5,
.modal-content h6,
.modal-content p,
.modal-content label,
.modal-content .form-label {
    color: #2d3748 !important;
    text-shadow: none !important;
}

/* Liens - Adaptatifs selon le contexte */
.content .card a:not(.btn),
.content .table a:not(.btn),
.content .list-group-item a:not(.btn),
.content .alert a:not(.btn) {
    color: #3182ce !important;
    text-shadow: none !important;
}

.content .card a:not(.btn):hover,
.content .table a:not(.btn):hover,
.content .list-group-item a:not(.btn):hover,
.content .alert a:not(.btn):hover {
    color: #2c5282 !important;
    text-decoration: underline;
}

/* Liens sur fond sombre général */
.content > a:not(.btn),
.content > div > a:not(.btn) {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.content > a:not(.btn):hover,
.content > div > a:not(.btn):hover {
    color: white !important;
    text-decoration: underline;
}

/* Badges - Garder leurs couleurs d'origine */
.content .badge {
    text-shadow: none !important;
    font-weight: 600;
}

/* Boutons - Garder leurs styles d'origine */
.content .btn {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Styles pour les modals */
.modal {
    z-index: 1050 !important;
}

.modal-backdrop {
    z-index: 1040 !important;
}

.modal-dialog {
    z-index: 1055 !important;
}

/* Assurer que les éléments de formulaire dans les modals sont interactifs */
.modal input,
.modal textarea,
.modal select,
.modal button {
    pointer-events: auto !important;
    z-index: 1060 !important;
}
:root {
    --primary: #0071bf;
    --primary-dark: #005a99;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow: 0 20px 40px rgba(0,0,0,.1);
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(.25,.8,.25,1);
}

/* Modal Content */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    background: rgba(255,255,255,0.95);
}

.modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 2rem 2rem 1rem;
}

.modal-title {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal {
    z-index: 1100;
}

.modal-backdrop {
    z-index: 1090;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem auto;
    pointer-events: none;
}

.modal-xl {
    max-width: 1140px;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 0.3rem;
    outline: 0;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
    overflow-y: auto;
    max-height: 70vh;
}

/* Form Styles */
.form-floating {
    margin-bottom: 1.5rem;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255,255,255,0.9);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0,113,191,0.1);
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
}

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: 10px;
    background: rgba(0,113,191,0.1);
    margin-bottom: 2rem;
}

.progress-bar {
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    transition: var(--transition);
}

/* Step Indicators */
.step-indicators {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    font-weight: 600;
    transition: var(--transition);
}

.step-indicator.active {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.step-indicator.completed {
    background: #28a745;
    color: white;
}

/* Payment Methods */
.payment-method {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.payment-method:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.payment-method.selected {
    border-color: var(--primary);
    background: rgba(0,113,191,0.05);
}

.payment-method i {
    font-size: 2rem;
    color: var(--primary);
    margin-right: 1rem;
}

.payment-method .method-info h5 {
    margin-bottom: 0.5rem;
    color: #333;
}

.payment-method .method-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Invoice Styles */
.invoice-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 3rem;
    max-width: 800px;
    margin: 2rem auto;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.invoice-details {
    background: #f8f9ff;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.price-breakdown {
    background: white;
    color: black;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.file-upload-area:hover {
    border-color: var(--primary);
    background: rgba(0,113,191,0.05);
}

.file-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(0,113,191,0.1);
}

.file-upload-area i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
    display: block;
}

.file-preview {
    display: flex;
    align-items: center;
    background: #f8f9ff;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

.file-preview i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-right: 1rem;
}

.file-preview .file-info {
    flex: 1;
}

.file-preview .file-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.file-preview .file-size {
    font-size: 0.85rem;
    color: #666;
}

.file-preview .remove-file {
    color: #dc3545;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Vehicle Type Cards */
.vehicle-type-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.vehicle-type-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.vehicle-type-card.selected {
    border-color: var(--primary);
    background: rgba(0,113,191,0.05);
}

.vehicle-type-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Owner Toggle */
.owner-toggle {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
}

.owner-toggle:hover {
    border-color: var(--primary);
}

.owner-toggle.selected {
    border-color: var(--primary);
    background: rgba(0,113,191,0.05);
}

.toggle-switch {
    width: 50px;
    height: 28px;
    background: #e9ecef;
    border-radius: 14px;
    position: relative;
    transition: var(--transition);
}

.toggle-switch.active {
    background: var(--primary);
}

.toggle-switch::after {
    content: '';
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch.active::after {
    left: 24px;
}

/* Error states */
.is-invalid {
    border-color: #dc3545 !important;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Success states */
.is-valid {
    border-color: #28a745 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-body {
        padding: 1rem;
    }
    
    .invoice-header {
        flex-direction: column;
        text-align: center;
    }
}

        :root {
            --primary: #0071bf;
            --primary-dark: #005a99;
            --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --shadow: 0 20px 40px rgba(0,0,0,.1);
            --border-radius: 20px;
            --transition: all 0.4s cubic-bezier(.25,.8,.25,1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            line-height: 1.6;
            color: #333;
            overflow-x: hidden;
        }

        /* Hero Section Modernisée */
        .hero-section {
            background: linear-gradient(135deg, rgba(0,113,191,0.9) 0%, rgba(26,35,126,0.9) 100%), 
                        url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?ixlib=rb-4.0.3') center/cover;
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 20% 80%, rgba(120,119,198,0.3) 0%, transparent 50%),
                        radial-gradient(circle at 80% 20%, rgba(255,119,198,0.3) 0%, transparent 50%);
            pointer-events: none;
        }

        .hero-content {
            position: relative;
            z-index: 2;
            text-align: center;
            color: white;
            max-width: 800px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .hero-logo {
            width: 150px;
            margin-bottom: 2rem;
            opacity: 0;
            animation: fadeInUp 1s ease 0.5s forwards;
            filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
            background: rgba(255,255,255,0.95);
            padding: 20px;
            border-radius: 20px;
            backdrop-filter: blur(10px);
        }

        .hero-title {
            font-size: clamp(2.5rem, 6vw, 4rem);
            font-weight: 800;
            margin-bottom: 1.5rem;
            opacity: 0;
            animation: fadeInUp 1s ease 0.7s forwards;
            background: linear-gradient(45deg, #fff, #e0e7ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-subtitle {
            font-size: 1.3rem;
            margin-bottom: 3rem;
            opacity: 0;
            animation: fadeInUp 1s ease 0.9s forwards;
            font-weight: 300;
        }

        .hero-buttons {
            opacity: 0;
            animation: fadeInUp 1s ease 1.1s forwards;
        }

        .btn-modern {
            padding: 15px 35px;
            border-radius: 50px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            border: none;
            position: relative;
            overflow: hidden;
            transition: var(--transition);
            margin: 0 10px;
            font-size: 0.9rem;
        }

        .btn-primary-modern {
            background: linear-gradient(45deg, #0071bf, #005a99);
            color: white;
            box-shadow: 0 8px 25px rgba(0,113,191,0.3);
        }

        .btn-primary-modern:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(0,113,191,0.4);
        }

        .btn-outline-modern {
            background: rgba(255,255,255,0.1);
            color: white;
            border: 2px solid rgba(255,255,255,0.3);
            backdrop-filter: blur(10px);
        }

        .btn-outline-modern:hover {
            background: rgba(255,255,255,0.2);
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(255,255,255,0.1);
        }

        /* Section Partenaires */
        .partners-section {
            padding: 80px 0;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            position: relative;
            overflow: hidden;
        }

        .partners-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><path d="M0,300V230c47-45,142-45,190,0s95,45,142,0,95-45,142,0,95,45,142,0,95-45,142,0,95,45,142,0V300Z" fill="rgba(255,255,255,0.1)"/></svg>') repeat-x;
            animation: wave 10s ease-in-out infinite;
        }

        @keyframes wave {
            0%, 100% { transform: translateX(0); }
            50% { transform: translateX(-50px); }
        }

        .partner-logo {
            background: rgba(255,255,255,0.95);
            border-radius: 15px;
            padding: 30px;
            margin: 15px;
            transition: var(--transition);
            height: 120px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            backdrop-filter: blur(10px);
        }

        .partner-logo:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
        }

        .partner-logo img {
            max-height: 60px;
            max-width: 150px;
            object-fit: contain;
        }

        /* Modals Modernisées */
        .modal-content {
            border: none;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            backdrop-filter: blur(20px);
            background: rgba(255,255,255,0.95);
        }

        .modal-header {
            border-bottom: 1px solid #f0f0f0;
            padding: 2rem 2rem 1rem;
        }

        .modal-title {
            font-weight: 700;
            color: var(--primary);
            font-size: 1.5rem;
        }

        .modal-body {
            padding: 2rem;
        }

        /* Form Styles Modernes */
        .form-floating {
            margin-bottom: 1.5rem;
        }

        .form-control, .form-select {
            border: 2px solid #e9ecef;
            border-radius: 15px;
            padding: 1rem;
            font-size: 1rem;
            transition: var(--transition);
            background: rgba(255,255,255,0.9);
        }

        .form-control:focus, .form-select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 0.2rem rgba(0,113,191,0.1);
            transform: translateY(-2px);
        }

        .form-label {
            font-weight: 600;
            color: #555;
            margin-bottom: 0.5rem;
        }

        /* Progress Bar Moderne */
        .progress {
            height: 8px;
            border-radius: 10px;
            background: rgba(0,113,191,0.1);
            margin-bottom: 2rem;
        }

        .progress-bar {
            background: linear-gradient(45deg, var(--primary), var(--primary-dark));
            border-radius: 10px;
            transition: var(--transition);
        }

        /* Step Indicators */
        .step-indicators {
            display: flex;
            justify-content: center;
            margin-bottom: 2rem;
        }

        .step-indicator {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #e9ecef;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 10px;
            font-weight: 600;
            transition: var(--transition);
        }

        .step-indicator.active {
            background: var(--primary);
            color: white;
            transform: scale(1.1);
        }

        .step-indicator.completed {
            background: #28a745;
            color: white;
        }

        /* Info Cards */
        .info-section {
            padding: 100px 0;
            background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
        }

        .info-card {
            background: white;
            border-radius: var(--border-radius);
            padding: 3rem 2rem;
            text-align: center;
            box-shadow: var(--shadow);
            transition: var(--transition);
            height: 100%;
            border: 1px solid rgba(0,113,191,0.1);
        }

        .info-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 30px 60px rgba(0,0,0,0.15);
        }

        .info-card i {
            font-size: 3rem;
            color: var(--primary);
            margin-bottom: 1.5rem;
            display: block;
        }

        .info-card h3 {
            font-weight: 700;
            margin-bottom: 1rem;
            color: #333;
        }

        /* Payment Methods */
        .payment-method {
            background: white;
            border: 2px solid #e9ecef;
            border-radius: 15px;
            padding: 1.5rem;
            margin-bottom: 1rem;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
        }

        .payment-method:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

        .payment-method.selected {
            border-color: var(--primary);
            background: rgba(0,113,191,0.05);
        }

        .payment-method i {
            font-size: 2rem;
            color: var(--primary);
            margin-right: 1rem;
        }

        .payment-method .method-info h5 {
            margin-bottom: 0.5rem;
            color: #333;
        }

        .payment-method .method-info p {
            margin: 0;
            color: #666;
            font-size: 0.9rem;
        }

        /* Invoice Styles */
        .invoice-container {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            padding: 3rem;
            max-width: 800px;
            margin: 2rem auto;
        }

        .invoice-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 3rem;
            padding-bottom: 2rem;
            border-bottom: 2px solid #f0f0f0;
        }

        .invoice-details {
            background: #f8f9ff;
            border-radius: 15px;
            padding: 2rem;
            margin-bottom: 2rem;
        }

        .price-breakdown {
            background: white;
            color: black;
            border-radius: 15px;
            padding: 2rem;
            margin-top: 2rem;
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        .loading {
            animation: pulse 1.5s infinite;
        }

        /* Footer Moderne */
        footer {
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
            color: white;
            padding: 3rem 0 2rem;
            margin-top: 5rem;
        }

        .footer-content {
            text-align: center;
        }

        .footer-links a {
            color: #bdc3c7;
            text-decoration: none;
            margin: 0 15px;
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: white;
            transform: translateY(-2px);
        }

        /* Vehicle Type Cards */
        .vehicle-type-card {
            background: white;
            border: 2px solid #e9ecef;
            border-radius: 15px;
            padding: 2rem;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            margin-bottom: 1rem;
        }

        .vehicle-type-card:hover {
            border-color: var(--primary);
            transform: translateY(-5px);
            box-shadow: var(--shadow);
        }

        .vehicle-type-card.selected {
            border-color: var(--primary);
            background: rgba(0,113,191,0.05);
        }

        .vehicle-type-card i {
            font-size: 3rem;
            color: var(--primary);
            margin-bottom: 1rem;
        }

        /* Error states */
        .is-invalid {
            border-color: #dc3545 !important;
            animation: shake 0.5s;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }

        /* Success states */
        .is-valid {
            border-color: #28a745 !important;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.5rem;
            }
            
            .btn-modern {
                display: block;
                width: 100%;
                margin: 10px 0;
            }
            
            .modal-body {
                padding: 1rem;
            }
            
            .invoice-header {
                flex-direction: column;
                text-align: center;
            }

            .partner-logo {
                margin: 10px;
                height: 100px;
                padding: 20px;
            }
        }
    
