/* ============================================
   DESIGN MODERNE ET PROFESSIONNEL - PROCARTE
   ============================================ */

/* Variables CSS Modernes - Thème Noir (par défaut) */
:root {
    /* Couleurs principales - Palette bleue sur fond noir */
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #1d4ed8;
    --accent-color: #0ea5e9;
    
    /* Couleurs fonctionnelles */
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    /* Couleurs neutres - Thème Noir */
    --dark-color: #ffffff;
    --dark-light: #f1f5f9;
    --light-color: #1e293b;
    --white: #0f172a;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-600: #e2e8f0;
    --gray-700: #f1f5f9;
    
    /* Design tokens */
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --box-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Gradients - Thème noir avec accents bleus */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --gradient-modern: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #0ea5e9 100%);
    --gradient-hero: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%);
    --gradient-card: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
    
    /* Couleurs de fond - Tout en noir */
    --bg-primary: #000000;
    --bg-secondary: #000000;
    --bg-card: #000000;
    --text-primary: #ffffff;
    --text-secondary: #f1f5f9;
    --text-muted: #cbd5e1;
}

/* Thème clair */
[data-theme="light"] {
    /* Couleurs neutres - Thème Clair */
    --dark-color: #1f2937;
    --dark-light: #374151;
    --light-color: #f9fafb;
    --white: #ffffff;
    --gray-100: #f9fafb;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    
    /* Design tokens pour thème clair */
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --box-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Gradients pour thème clair */
    --gradient-hero: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 50%, #f9fafb 100%);
    --gradient-card: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    
    /* Couleurs de fond - Tout en blanc */
    --bg-primary: #ffffff;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #374151;
    --text-muted: #6b7280;
}

/* Thème clair : textes noirs / foncés pour la lisibilité (dashboard, admin, formulaires) */
[data-theme="light"] .dashboard-tab,
[data-theme="light"] .dashboard-tab i {
    color: #1f2937 !important;
}
[data-theme="light"] .dashboard-tab:hover,
[data-theme="light"] .dashboard-tab:hover i {
    color: #1e40af !important;
}
[data-theme="light"] .dashboard-tab.active,
[data-theme="light"] .dashboard-tab.active i {
    color: #ffffff !important;
}
[data-theme="light"] .dashboard-header h2,
[data-theme="light"] .dashboard-header p {
    color: #1f2937 !important;
}
[data-theme="light"] .dashboard-card,
[data-theme="light"] .dashboard-card h3,
[data-theme="light"] .dashboard-card h4,
[data-theme="light"] .dashboard-card p,
[data-theme="light"] .dashboard-card label,
[data-theme="light"] .dashboard-card .form-group label,
[data-theme="light"] .dashboard-card small,
[data-theme="light"] .card-form label,
[data-theme="light"] .card-form .form-group label {
    color: #1f2937 !important;
}
[data-theme="light"] .dashboard-card input:not([type="color"]),
[data-theme="light"] .dashboard-card textarea,
[data-theme="light"] .dashboard-card select {
    color: #1f2937 !important;
    background: #f9fafb !important;
    border-color: #d1d5db !important;
}
[data-theme="light"] .stat-label,
[data-theme="light"] .stat-value,
[data-theme="light"] .share-url input,
[data-theme="light"] .share-options p,
[data-theme="light"] .share-options h5 {
    color: #1f2937 !important;
}
[data-theme="light"] .auth-header p,
[data-theme="light"] .auth-card p {
    color: #374151 !important;
}
[data-theme="light"] .admin-page th,
[data-theme="light"] .admin-page td,
[data-theme="light"] .admin-page .stat-card p,
[data-theme="light"] .admin-page .dashboard-card,
[data-theme="light"] .admin-page .dashboard-card h3,
[data-theme="light"] .admin-page .dashboard-card h4,
[data-theme="light"] .admin-page .dashboard-card p,
[data-theme="light"] .admin-page .form-group label,
[data-theme="light"] .admin-page .alert {
    color: #1f2937 !important;
}
[data-theme="light"] .admin-page .alert-success {
    background: #d1fae5;
    color: #065f46 !important;
    border-color: #a7f3d0;
}
[data-theme="light"] .admin-page .alert-error {
    background: #fee2e2;
    color: #991b1b !important;
    border-color: #fecaca;
}
[data-theme="light"] .admin-page .users-search-label,
[data-theme="light"] .admin-page .users-search-count {
    color: #374151 !important;
}
[data-theme="light"] .admin-page .users-search-input {
    background: #f9fafb !important;
    color: #1f2937 !important;
    border-color: #e5e7eb;
}
[data-theme="light"] #navMenu.nav-drawer .nav-link {
    color: #1f2937 !important;
}
[data-theme="light"] .dashboard-no-subscription .dashboard-no-subscription-title,
[data-theme="light"] .dashboard-no-subscription .dashboard-no-subscription-text,
[data-theme="light"] .dashboard-no-subscription .fa-credit-card {
    color: #1f2937 !important;
}

/* Page carte en mode clair : tous les textes en noir */
[data-theme="light"] .card-page .profile-name {
    background: linear-gradient(135deg, #1f2937 0%, var(--theme-color) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
[data-theme="light"] .card-page .profile-title,
[data-theme="light"] .card-page .profile-company,
[data-theme="light"] .card-page .bio-text,
[data-theme="light"] .card-page .contact-label,
[data-theme="light"] .card-page .contact-value,
[data-theme="light"] .card-page .contact-value a {
    color: #1f2937 !important;
}
[data-theme="light"] .card-page .contact-value a:hover {
    color: var(--theme-color) !important;
}
[data-theme="light"] .card-page .contact-item .contact-icon {
    color: #1f2937 !important;
}
/* Formulaire "Laissez vos informations" en mode clair */
[data-theme="light"] #contactBackForm > div {
    background: #f9fafb !important;
    border-color: #e5e7eb !important;
}
[data-theme="light"] #contactBackForm h2,
[data-theme="light"] #contactBackForm p,
[data-theme="light"] #contactBackForm label,
[data-theme="light"] #contactBackForm input,
[data-theme="light"] #contactBackForm textarea,
[data-theme="light"] #contactBackForm button[type="button"] {
    color: #1f2937 !important;
}
[data-theme="light"] #contactBackForm input,
[data-theme="light"] #contactBackForm textarea,
[data-theme="light"] #contactBackForm button[type="button"] {
    background: #ffffff !important;
    border-color: #d1d5db !important;
}
[data-theme="light"] #contactBackForm button[type="submit"] {
    color: #ffffff !important;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 54px;
}

/* ============================================
   TYPOGRAPHIE MODERNE
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

/* ============================================
   BOUTONS MODERNES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-modern);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px 0 rgba(59, 130, 246, 0.5);
}

.btn-primary span,
.btn-primary i {
    position: relative;
    z-index: 1;
}

/* Bouton de connexion spécifique */
.btn-login {
    background-color: #003366 !important;
    border-color: #003366 !important;
}

.btn-login:hover {
    background-color: #004080 !important;
    border-color: #004080 !important;
}

.btn-secondary {
    background: #000000;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-modern);
    transition: left 0.4s ease;
    z-index: 0;
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-secondary:hover {
    color: var(--white);
    transform: translateY(-2px);
    border-color: transparent;
}

.btn-secondary span,
.btn-secondary i {
    position: relative;
    z-index: 1;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* Bouton "Ajouter un numéro" : pas d'effet bleu au survol */
.btn-add-numero::before {
    display: none !important;
}
.btn-add-numero:hover {
    background: transparent !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transform: none;
}

/* ============================================
   FORMULAIRES MODERNES
   ============================================ */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    font-size: 1.05rem;
    transition: var(--transition);
    background: var(--bg-card);
    font-family: inherit;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Ligne téléphone / email : input simple + bouton croix même hauteur */
.telephone-item,
.email-item {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: stretch;
}
.telephone-item input,
.email-item input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    font-size: 1.05rem;
    background: var(--bg-card);
    color: var(--text-primary);
}
.telephone-item input:focus,
.email-item input:focus {
    outline: none;
    border-color: var(--primary-color);
}
.btn-remove-tel,
.btn-remove-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    flex-shrink: 0;
    padding: 0;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.btn-remove-tel:hover,
.btn-remove-email:hover {
    border-color: var(--danger-color);
    color: var(--danger-color);
}
[data-theme="light"] .telephone-item input,
[data-theme="light"] .email-item input,
[data-theme="light"] .btn-remove-tel,
[data-theme="light"] .btn-remove-email {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #1f2937;
}
[data-theme="light"] .btn-remove-tel:hover,
[data-theme="light"] .btn-remove-email:hover {
    border-color: #dc2626;
    color: #dc2626;
}

/* ============================================
   ALERTS MODERNES
   ============================================ */
.alert {
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
    border-left: 4px solid;
    animation: slideInDown 0.3s ease;
}

.alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-color: var(--danger-color);
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-color: var(--success-color);
}

/* ============================================
   PAGES D'AUTHENTIFICATION
   ============================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #003366;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-xl);
    padding: 48px;
    border: 1px solid var(--gray-200);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.6s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    background: var(--gradient-modern);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.auth-header p {
    color: #f1f5f9;
    font-size: 1.05rem;
}

.auth-form {
    margin-bottom: 24px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============================================
   HEADER AVEC LOGO ET NAVIGATION
   ============================================ */
.home-header {
    background: #ffffff !important;
    padding: -150px 0px;
    margin: 0;
    font-size: 30%;
    line-height: 0.7;
    min-height: 0;
    transform: scale(0.7);
    display: inline-block; /* pour ajuster la boîte */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    transform: translateY(0);
    width: 100%;
    color: #000000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Header toujours blanc et texte noir quel que soit le thème */
[data-theme="light"] .home-header,
[data-theme="dark"] .home-header {
    background: #ffffff !important;
    color: #000000;
}

.home-header.hidden {
    transform: translateY(-100%);
}

.home-header .container {
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    position: relative;
    min-height: 70px;
}

.header-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 100%;
}

.header-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo {
    height: 120px;
    width: auto;
    max-width: 600px;
    object-fit: contain;
    display: block;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 15px rgba(59, 130, 246, 0.3));
}

.header-brand-link h1 {
    color: rgba(0, 0, 0, 0);
    font-size: 2.5rem;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-brand a:hover .header-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 20px rgba(59, 130, 246, 0.4));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* Theme Toggle Button - Design Moderne */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: var(--primary-color);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.theme-toggle:hover::before {
    width: 100%;
    height: 100%;
}

.theme-toggle:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
    border-color: var(--primary-color);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.theme-toggle:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.theme-toggle i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(15deg) scale(1.1);
    color: var(--primary-dark);
}

[data-theme="dark"] .theme-toggle {
    background: linear-gradient(135deg, rgba(5, 5, 5, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
    border-color: rgba(0, 0, 0, 0.3);
    color: #000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .theme-toggle:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-color: #000000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .theme-toggle:hover i {
    color: #3951d8;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.menu-toggle-icon {
    font-size: 1.5rem;
    color: #000000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .menu-toggle-icon {
    color: #1f2937;
}

.menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.menu-toggle:hover .menu-toggle-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.menu-toggle.active .menu-toggle-icon {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.header-nav {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    color: #000000;
    height: 100%;
    padding: 15px 0;
}

.header-nav-link {
    color: #000000 !important;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    background: transparent;
    border: 2px solid transparent;
    overflow: hidden;
}

.header-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    opacity: 0.1;
}

.header-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.header-nav-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.header-nav-link span {
    position: relative;
    z-index: 1;
}

.header-nav-link:hover::before {
    left: 0;
    opacity: 0.15;
}

.header-nav-link:hover::after {
    width: calc(100% - 36px);
}

.header-nav-link:hover {
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--gray-300);
    background: rgba(0, 0, 0, 0.05);
}

.header-nav-link:hover i {
    transform: scale(1.2) rotate(5deg);
}

.header-nav-cta {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #000000 !important;
    border: 2px solid #3b82f6 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    font-size: 0.8rem !important;
}

.header-nav-cta span {
    color: #000000 !important;
}

.header-nav-cta:hover {
    color: #000000 !important;
}

.header-nav-cta:hover span {
    color: #000000 !important;
}

.header-nav-cta::before {
    background: rgba(59, 130, 246, 0.2) !important;
    opacity: 0 !important;
}

.header-nav-cta::after {
    display: none;
}

.header-nav-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    background: #3b82f6 !important;
    color: #000000 !important;
}

.header-nav-cta:hover span {
    color: #000000 !important;
}

.header-nav-cta:hover::before {
    opacity: 1 !important;
}

.header-nav-cta i {
    animation: pulse 2s infinite;
    color: #000000 !important;
}

.header-nav-cta:hover i {
    color: #000000 !important;
}

/* Styles pour les menus déroulants */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    color: #000000 !important;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    background: transparent;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
}

.nav-dropdown-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    opacity: 0.1;
}

.nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.nav-dropdown-toggle i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.nav-dropdown-toggle .dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    margin-left: 4px;
}

.nav-dropdown-toggle span {
    color: #000000 !important;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown:hover .nav-dropdown-toggle::before {
    left: 0;
    opacity: 0.15;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
    width: calc(100% - 36px);
}

.nav-dropdown:hover .nav-dropdown-toggle {
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--gray-300);
    background: rgba(0, 0, 0, 0.05);
}

.nav-dropdown:hover .nav-dropdown-toggle i {
    transform: scale(1.2) rotate(5deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin-top: 8px;
    padding: 8px 0;
    border: 1px solid var(--gray-200);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-dropdown-item i {
    font-size: 0.85rem;
    width: 18px;
    text-align: center;
    color: var(--primary-color);
}

.nav-dropdown-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #000000 !important;
    padding-left: 24px;
}

.nav-dropdown-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.nav-dropdown-item:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* ============================================
   NAVIGATION MODERNE
   ============================================ */
.navbar,
.home-navbar {
    background: #ffffff;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
    min-height: auto;
    overflow: visible;
}

.navbar .container,
.home-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    background: var(--gradient-modern);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.75rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 120px;
    width: auto;
    max-width: 400px;
    object-fit: contain;
    display: block;
}

.logo-img-auth {
    max-height: 500px;
    width: auto;
    max-width: 600px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1;
    height: auto;
    overflow: visible;
}

.nav-brand h1 {
    margin: 0;
}

.hero-logo {
    display: block;
    margin: 0 auto 30px;
    max-height: 250px !important;
    width: auto;
    max-width: 800px;
    object-fit: contain;
}

.footer-logo {
    max-height: 150px !important;
    width: auto;
    max-width: 500px;
    object-fit: contain;
    display: block;
}

/* Logo du footer visible en thème clair */
[data-theme="light"] .footer-logo {
    filter: none !important;
}

.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Header admin/dashboard — z-index au-dessus des onglets (9998) ; détail dans admin_header.php */
.navbar-with-toggle {
    position: sticky;
    top: 0;
    z-index: 10040;
    overflow: visible;
}
.navbar-with-toggle .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}
.navbar-with-toggle .nav-brand .logo-img {
    height: 44px;
    max-height: 44px;
}
.nav-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.nav-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
[data-theme="dark"] .nav-menu-toggle,
.admin-page .nav-menu-toggle,
.dashboard-page .nav-menu-toggle {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(15, 23, 42, 0.2);
    color: #000000;
}
[data-theme="dark"] .nav-burger span,
.admin-page .nav-burger span,
.dashboard-page .nav-burger span {
    background: #000000;
}
.navbar-with-toggle .nav-menu:not(#navMenu) {
    display: none !important;
}
#navMenuBackdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10020 !important;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
#navMenuBackdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
#navMenu.nav-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: 0 !important;
    width: min(320px, 88vw) !important;
    max-width: 320px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important;
    background: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    z-index: 10030 !important;
    transform: translate3d(105%, 0, 0) !important;
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1) !important;
    overflow-y: auto !important;
}
#navMenu.nav-drawer.is-open {
    transform: translate3d(0, 0, 0) !important;
}
#navMenu.nav-drawer .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
}
#navMenu.nav-drawer .nav-link::after { display: none; }
html.nav-menu-open,
body.nav-menu-open { overflow: hidden; }
body.nav-menu-open .dashboard-tabs {
    visibility: hidden !important;
    pointer-events: none !important;
}
[data-theme="dark"] #navMenu.nav-drawer,
.admin-page #navMenu.nav-drawer,
.dashboard-page #navMenu.nav-drawer {
    background: #ffffff !important;
}
[data-theme="dark"] #navMenu.nav-drawer .nav-link,
.admin-page #navMenu.nav-drawer .nav-link,
.dashboard-page #navMenu.nav-drawer .nav-link,
[data-theme="dark"] #navMenu .nav-drawer-title,
.admin-page #navMenu .nav-drawer-title,
.dashboard-page #navMenu .nav-drawer-title {
    color: #000000 !important;
}
[data-theme="dark"] #navMenu.nav-drawer .nav-link i,
.admin-page #navMenu.nav-drawer .nav-link i,
.dashboard-page #navMenu.nav-drawer .nav-link i {
    color: #000000 !important;
}
.nav-link {
    color: #000000;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-modern);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 36px);
}

.nav-link:hover,
.nav-link.active {
    color: #000000 !important;
    background: var(--gradient-card);
}

.nav-link:hover span,
.nav-link.active span {
    color: #000000 !important;
}

/* Forcer la couleur noire pour tous les liens de navigation sur tous les écrans et tous les thèmes */
.header-nav-link,
.header-nav-link span,
.header-nav-link i,
.nav-dropdown-toggle,
.nav-dropdown-toggle span,
.nav-dropdown-toggle i,
.nav-link,
.nav-link span,
.header-nav-cta,
.header-nav-cta span,
.header-nav-cta i,
.nav-dropdown-item,
.nav-dropdown-item span {
    color: #000000 !important;
}

.header-nav-link:hover,
.header-nav-link:hover span,
.header-nav-link:hover i,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:hover span,
.nav-dropdown-toggle:hover i,
.nav-link:hover,
.nav-link:hover span,
.header-nav-link.active,
.header-nav-link.active span,
.header-nav-link.active i,
.nav-link.active,
.nav-link.active span,
.header-nav-cta:hover,
.header-nav-cta:hover span,
.header-nav-cta:hover i,
.nav-dropdown-item:hover,
.nav-dropdown-item:hover span {
    color: #000000 !important;
}

/* Couleur blanche pour les liens de navigation en thème sombre */
[data-theme="dark"] .header-nav-link,
[data-theme="dark"] .header-nav-link span,
[data-theme="dark"] .header-nav-link i,
[data-theme="dark"] .nav-dropdown-toggle,
[data-theme="dark"] .nav-dropdown-toggle span,
[data-theme="dark"] .nav-dropdown-toggle i,
[data-theme="dark"] .nav-link,
[data-theme="dark"] .nav-link span,
[data-theme="dark"] .header-nav-cta,
[data-theme="dark"] .header-nav-cta span,
[data-theme="dark"] .header-nav-cta i,
[data-theme="dark"] .nav-dropdown-item,
[data-theme="dark"] .nav-dropdown-item span {
    color: #ffffff !important;
}

[data-theme="dark"] .header-nav-link:hover,
[data-theme="dark"] .header-nav-link:hover span,
[data-theme="dark"] .header-nav-link:hover i,
[data-theme="dark"] .nav-dropdown-toggle:hover,
[data-theme="dark"] .nav-dropdown-toggle:hover span,
[data-theme="dark"] .nav-dropdown-toggle:hover i,
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link:hover span,
[data-theme="dark"] .header-nav-link.active,
[data-theme="dark"] .header-nav-link.active span,
[data-theme="dark"] .header-nav-link.active i,
[data-theme="dark"] .nav-link.active,
[data-theme="dark"] .nav-link.active span,
[data-theme="dark"] .header-nav-cta:hover,
[data-theme="dark"] .header-nav-cta:hover span,
[data-theme="dark"] .header-nav-cta:hover i,
[data-theme="dark"] .nav-dropdown-item:hover,
[data-theme="dark"] .nav-dropdown-item:hover span {
    color: #ffffff !important;
}

/* Règles supplémentaires pour garantir la couleur noire dans toutes les media queries */
@media (max-width: 1200px) {
    .header-nav-link,
    .header-nav-link span,
    .header-nav-link i,
    .nav-dropdown-toggle,
    .nav-dropdown-toggle span,
    .nav-dropdown-toggle i,
    .nav-link,
    .nav-link span,
    .header-nav-cta,
    .header-nav-cta span,
    .header-nav-cta i,
    .nav-dropdown-item,
    .nav-dropdown-item span {
        color: #000000 !important;
    }
}

@media (max-width: 1024px) {
    .header-nav-link,
    .header-nav-link span,
    .header-nav-link i,
    .nav-dropdown-toggle,
    .nav-dropdown-toggle span,
    .nav-dropdown-toggle i,
    .nav-link,
    .nav-link span,
    .header-nav-cta,
    .header-nav-cta span,
    .header-nav-cta i,
    .nav-dropdown-item,
    .nav-dropdown-item span {
        color: #000000 !important;
    }
}

@media (max-width: 768px) {
    .header-nav-link,
    .header-nav-link span,
    .header-nav-link i,
    .nav-dropdown-toggle,
    .nav-dropdown-toggle span,
    .nav-dropdown-toggle i,
    .nav-link,
    .nav-link span,
    .header-nav-cta,
    .header-nav-cta span,
    .header-nav-cta i,
    .nav-dropdown-item,
    .nav-dropdown-item span {
        color: #000000 !important;
    }
}

@media (max-width: 480px) {
    .header-nav-link,
    .header-nav-link span,
    .header-nav-link i,
    .nav-dropdown-toggle,
    .nav-dropdown-toggle span,
    .nav-dropdown-toggle i,
    .nav-link,
    .nav-link span,
    .header-nav-cta,
    .header-nav-cta span,
    .header-nav-cta i,
    .nav-dropdown-item,
    .nav-dropdown-item span {
        color: #000000 !important;
    }
}

@media (max-width: 360px) {
    .header-nav-link,
    .header-nav-link span,
    .header-nav-link i,
    .nav-dropdown-toggle,
    .nav-dropdown-toggle span,
    .nav-dropdown-toggle i,
    .nav-link,
    .nav-link span,
    .header-nav-cta,
    .header-nav-cta span,
    .header-nav-cta i,
    .nav-dropdown-item,
    .nav-dropdown-item span {
        color: #000000 !important;
    }
}

/* ============================================
   PAGE D'ACCUEIL - HERO SECTION
   ============================================ */
.home-page {
    background: var(--bg-primary);
}

.hero-section {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 60px 0 0px 0;
    margin-bottom: 0;
    position: relative;
    overflow: visible;
    min-height: auto;
    z-index: 2;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

/* Formes géométriques flottantes dans hero */
.hero-section .floating-shape {
    position: absolute;
    opacity: 0.1;
    z-index: 0;
}

.hero-section .floating-shape-1 {
    top: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: floatShape 15s ease-in-out infinite;
}

.hero-section .floating-shape-2 {
    bottom: 15%;
    right: 8%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: floatShape 12s ease-in-out infinite reverse;
}

.hero-section .floating-shape-3 {
    top: 50%;
    right: 15%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: floatShape 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-30px, -30px) scale(1.1);
    }
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-section-container {
    margin-top: 0;
    padding-top: 0;
    overflow: visible;
}

.hero-section .container {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    overflow: visible;
    min-height: auto;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
    z-index: 50;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #003366;
    font-family: 'Inter', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
    position: relative;
    z-index: 51;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 12px;
    opacity: 0.95;
    line-height: 1.7;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    position: relative;
    z-index: 51;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    position: relative;
    z-index: 51;
    margin-bottom: 0;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease;
    position: relative;
    width: 100%;
    height: 800px;
    overflow: visible;
    z-index: 1;
}

.card-animation-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-base-image,
.card-shadow-image,
.card-falling-image,
.card-final-image {
    position: absolute;
    max-width: 150%;
    width: 150%;
    height: auto;
    object-fit: contain;
}

/* Image de base (Design1 copie.png) - statique */
.card-base-image {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

/* Ombre (Design1 pie.png) - apparaît en même temps que la carte descend */
.card-shadow-image {
    opacity: 0;
    transform: translateY(250px) scale(0.8);
    z-index: 0;
    animation: shadowAppear 3s ease-in-out forwards;
    animation-delay: 0.8s;
    animation-fill-mode: both;
    filter: blur(10px) brightness(0.3);
    top: 50%;
    left: 50%;
    transform-origin: center center;
    margin-left: -50%;
    margin-top: -50%;
}

/* Carte qui tombe (carte.png) - descend d'en haut et se pose */
.card-falling-image {
    opacity: 0;
    transform: translateY(-300px) scale(0.6) rotate(-8deg);
    z-index: 2;
    animation: cardFallAndLand 3s ease-in-out forwards;
    animation-delay: 0.8s;
    animation-fill-mode: both;
}

/* Image finale (pro.png) - statique */
.card-final-image {
    opacity: 0;
    z-index: 3;
}


@keyframes cardFallAndLand {
    0% {
        opacity: 0;
        transform: translateY(-300px) scale(0.6) rotate(-8deg);
        filter: drop-shadow(0 0 0 rgba(59, 130, 246, 0)) brightness(0.8) blur(5px);
    }
    30% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
        filter: drop-shadow(0 20px 50px rgba(59, 130, 246, 0.4)) brightness(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
        filter: drop-shadow(0 20px 50px rgba(59, 130, 246, 0.4)) brightness(1.05);
    }
}

@keyframes shadowAppear {
    0% {
        opacity: 0;
        transform: translateY(250px) scale(0.6);
        filter: blur(15px) brightness(0.2);
    }
    30% {
        opacity: 0.8;
        transform: translateY(250px) scale(1);
        filter: blur(10px) brightness(0.3);
    }
    100% {
        opacity: 0.8;
        transform: translateY(250px) scale(1);
        filter: blur(10px) brightness(0.3);
    }
}


.card-preview-mockup {
    width: 360px;
    height: 480px;
    background: var(--bg-card);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    border: 2px solid var(--gray-200);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.card-preview-mockup:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.card-preview-mockup i {
    font-size: 6rem;
    opacity: 0.9;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.features-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-radius: 50%;
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 50px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-modern);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-card);
    padding: 48px 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-modern);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-xl);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    background: var(--gradient-modern);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotate(5deg) scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ============================================
   CARDS SECTION
   ============================================ */
.cards-section {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.cards-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 0;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, transparent 100%);
    border-radius: 50%;
    filter: blur(60px);
    animation: float 15s ease-in-out infinite;
}

.cards-section::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 0;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, transparent 100%);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 18s ease-in-out infinite reverse;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 50px;
    line-height: 1.6;
    font-weight: 400;
}

.cards-gallery {
    margin-top: 50px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: flex-start;
}

/* Affichage desktop/mobile pour les cartes */
.cards-grid-desktop {
    display: block;
}

.cards-carousel-mobile {
    display: none;
}

/* Carousel Styles */
.cards-carousel-wrapper {
    margin-top: 50px;
    position: relative;
}

.cards-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cards-carousel {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.cards-carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 30px;
}

.card-carousel-item {
    min-width: calc(33.333% - 20px);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    opacity: 0.7;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-carousel-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow-lg);
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: var(--box-shadow-xl);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--gray-300);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 32px;
    border-radius: 6px;
}

.card-image-item {
    display: flex;
    flex-direction: column;
}

.card-image-name {
    padding: 20px 0 0 0;
    text-align: center;
}

.card-image-name h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    background: var(--gradient-modern);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    background: var(--bg-card);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 2 / 3;
    max-height: 260px;
}

.card-image-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-xl);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
}

.card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-image-wrapper:hover .card-image-overlay {
    opacity: 1;
}

.card-image-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.card-image-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.card-image-link i {
    font-size: 2rem;
}

/* Section "Ils nous ont fait confiance" */
.trusted-section {
    padding: 0px 0 100px 0;
    margin-top: 0px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    z-index: 3;
}

.trusted-section .container {
    max-width: 100%;
    padding: 0;
}

.trusted-section .section-title {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 54px;
}

/* Carousel de logos en défilement */
.logos-carousel-section {
    margin: 0 !important;
    padding: 15px 0 !important;
    overflow: hidden;
    position: relative;
    width: 100%;
    min-height: 90px !important;
    height: 90px !important;
}

/* Background bleu foncé en thème clair */
[data-theme="light"] .logos-carousel-section {
    background: #3b82f6;
}

.logos-carousel-section::before,
.logos-carousel-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px !important;
    z-index: 2;
    pointer-events: none;
}

/* S'assurer que les boutons hero restent visibles */
.hero-buttons {
    position: relative;
    z-index: 51;
}

.logos-carousel-section::before {
    left: 0;
    background: linear-gradient(to right, #003366, transparent);
}

.logos-carousel-section::after {
    right: 0;
    background: linear-gradient(to left, #003366, #003366, transparent);
}

.logos-carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.logos-carousel-track {
    display: flex;
    gap: 40px !important;
    animation: scrollLogos 40s linear infinite !important;
    will-change: transform;
    width: fit-content;
}

.logos-carousel-track:hover {
    animation-play-state: paused;
}

.logo-item {
    flex-shrink: 0;
    display: block;
    width: auto !important;
    height: 60px !important;
    padding: 0 !important;
    margin: 0;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-3px);
}

.logo-image {
    max-width: none !important;
    max-height: 60px !important;
    width: auto !important;
    height: 60px !important;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.logo-item:hover .logo-image {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-25%));
    }
}

/* Vidéos de démonstration */
.videos-section,
.animated-cards-showcase,
.videos-showcase {
    padding: 0 0 100px 0;
    margin-top: 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* Titre "Découvrez nos cartes en action" en noir en thème clair */
[data-theme="light"] .videos-showcase .section-title,
[data-theme="light"] .animated-cards-showcase .section-title {
    color: #000000 !important;
    text-shadow: none !important;
}

/* Paragraphe sous le titre en noir en thème clair */
[data-theme="light"] .videos-showcase p,
[data-theme="light"] .animated-cards-showcase p {
    color: #000000 !important;
}

/* Section subtitle en noir en thème clair */
[data-theme="light"] .section-subtitle {
    color: #000000 !important;
}

/* Container pour les vidéos */
.animated-cards-container,
.videos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

/* Item de vidéo */
.video-showcase-item {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    backdrop-filter: none;
}

.video-showcase-item:hover {
    transform: translateY(-8px);
    box-shadow: none;
}

/* Wrapper de la vidéo */
.video-showcase-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    overflow: hidden;
    border: none;
    outline: none;
}

/* Player vidéo */
.video-showcase-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.video-showcase-player::-webkit-media-controls {
    border: none !important;
    outline: none !important;
}

.video-showcase-player::-webkit-media-controls-panel {
    border: none !important;
    outline: none !important;
}

.video-showcase-wrapper * {
    border: none !important;
    outline: none !important;
}

/* Info de la vidéo */
.video-showcase-info {
    padding: 24px;
}

.video-showcase-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.video-showcase-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.videos-section::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, transparent 100%);
    border-radius: 50%;
    filter: blur(50px);
    animation: float 12s ease-in-out infinite;
}

.videos-section::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, transparent 100%);
    border-radius: 50%;
    filter: blur(60px);
    animation: float 14s ease-in-out infinite reverse;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.video-item {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.video-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-modern);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 1;
}

.video-item:hover::before {
    transform: scaleX(1);
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-xl);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    overflow: hidden;
}

.demo-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 24px;
}

.video-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 12px 0;
    background: var(--gradient-modern);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video-description {
    color: #f1f5f9;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}


.card-item {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    padding: 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-color, var(--gradient-modern));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card-item:hover::before {
    transform: scaleX(1);
}

.card-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-xl);
    border-color: var(--card-color, var(--primary-color));
}

.card-item-header {
    padding: 30px 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.card-item-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card-item:hover .card-item-header::after {
    opacity: 1;
}

.card-item-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.card-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-item-views {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f1f5f9;
    font-size: 0.875rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--gray-200);
}

.card-item-views i {
    color: var(--primary-color);
}

.card-item-body {
    padding: 20px 30px;
    flex-grow: 1;
}

.card-item-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.card-item-title {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 12px;
}

.card-item-company {
    font-size: 0.9rem;
    color: #f1f5f9;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-item-company i {
    color: var(--gray-400);
}

.card-item-description {
    font-size: 0.9rem;
    color: #f1f5f9;
    line-height: 1.6;
    margin-top: 12px;
}

.card-item-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-item-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.card-item:hover .card-item-link {
    gap: 12px;
    color: var(--card-color, var(--primary-color));
}

.card-item-link i {
    transition: transform 0.3s ease;
}

.card-item:hover .card-item-link i {
    transform: translateX(4px);
}

/* ============================================
   REQUEST SECTION
   ============================================ */
.request-section {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.request-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.request-section .container {
    position: relative;
    z-index: 1;
}

.request-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.request-info h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    background: var(--gradient-modern);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.request-info p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.request-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.125rem;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.benefit-item:hover {
    background: var(--gradient-card);
    transform: translateX(8px);
}

.benefit-item i {
    color: var(--success-color);
    font-size: 1.75rem;
    width: 32px;
    text-align: center;
}

.request-form-container {
    background: var(--bg-card);
    padding: 48px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-xl);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.request-form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.request-form-container::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 10s ease-in-out infinite reverse;
}

.request-form {
    margin-top: 8px;
}

/* ============================================
   FOOTER MODERNE
   ============================================ */
.home-footer {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 80px 0 32px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.home-footer::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 15s ease-in-out infinite;
}

.home-footer::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 18s ease-in-out infinite reverse;
}

.home-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-modern);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 24px;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
    color: var(--text-muted);
}

/* ============================================
   DASHBOARD MODERNE
   ============================================ */
   .dashboard-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    padding: 12px 0;
    border-bottom: 2px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px 12px 0 0;
    padding: 16px 20px;
    justify-content: center;
    align-items: center;
}

.dashboard-tab {
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid rgba(148, 163, 184, 0.3);
    background: rgba(30, 41, 59, 0.6);
    color: #e5e7eb;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dashboard-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.dashboard-tab:hover::before {
    left: 100%;
}

.dashboard-tab i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.dashboard-tab:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.dashboard-tab:hover i {
    transform: scale(1.1);
}

.dashboard-tab.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.dashboard-tab.active i {
    transform: scale(1.1);
}

    .dashboard-tab-panel {
    scroll-margin-top: 120px;
    display: none;
}

.dashboard-tab-panel.active {
    display: block;
}
    

.dashboard-page {
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
    overflow-x: hidden;
}

.dashboard-page::before {
    content: '';
    position: fixed;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

.dashboard-page::after {
    content: '';
    position: fixed;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
    z-index: 0;
}

.dashboard-header {
    padding: 20px 0;
    margin-bottom: 30px;
    text-align: center;
}

.dashboard-header h2 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    background: var(--gradient-modern);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    padding: 40px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-modern);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.dashboard-card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-4px);
}

.dashboard-card h3 {
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-200);
}

.card-form {
    margin-top: 24px;
}

/* Barre de recherche Utilisateurs (admin) */
.users-search-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.users-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    max-width: 400px;
}
.users-search-label {
    white-space: nowrap;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}
.users-search-label i {
    margin-right: 0.35rem;
    opacity: 0.8;
}
.users-search-input {
    flex: 1;
    min-width: 180px;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.users-search-input::placeholder {
    color: var(--gray-500);
}
.users-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.users-search-count {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.social-network-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
}

.social-platform {
    flex: 0 0 160px;
}

.social-url {
    flex: 1;
}

.btn-remove-social {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: var(--white);
    border: none;
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.btn-remove-social:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.preview-container {
    margin: 24px 0;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.card-preview {
    width: 100%;
    height: 600px;
    border: none;
}

.share-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid var(--gray-200);
}

.share-section h4 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
}

.share-url {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.share-url input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
}

.share-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.qr-section,
.nfc-section {
    text-align: center;
    padding: 32px;
    background: var(--gradient-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
}

.qr-section h5,
.nfc-section h5 {
    margin-bottom: 20px;
    font-size: 1.125rem;
}

#qrcode {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

#qrcode canvas,
#qrcode img {
    max-width: 100%;
    height: auto;
    display: block;
}

.stats-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid var(--gray-200);
}

.stats-section h4 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--gradient-card);
    border-radius: var(--border-radius-sm);
    margin-bottom: 12px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateX(4px);
    box-shadow: var(--box-shadow);
}

.stat-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-modern);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Desktop - grands écrans */
@media (min-width: 1201px) {
    .hero-section {
        padding: 60px 0 0px 0;
        overflow: visible;
        min-height: auto;
        z-index: 2;
    }
    
    .hero-content {
        position: relative;
        z-index: 50;
    }
    
    .hero-image {
        z-index: 1;
    }
    
    .trusted-section {
        margin-top: 0 !important;
    }
    
    .hero-buttons {
        margin-bottom: 0 !important;
    }
}

/* Grandes tablettes et petits écrans (max-width: 1200px) */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .hero-section {
        padding: 60px 0 0px 0;
        overflow: visible;
        min-height: auto;
        z-index: 2;
    }
    
    .hero-section .container {
        gap: 60px;
        overflow: visible;
        z-index: 5;
    }
    
    .trusted-section {
        margin-top: 0 !important;
    }
    
    .hero-buttons {
        margin-bottom: 0 !important;
    }
    
    .hero-title {
        font-size: 3.5rem;
        margin-bottom: 16px;
    }
    
    .section-title {
        font-size: 2.75rem;
    }
}

/* Tablettes et écrans moyens (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header h2 {
        font-size: 2rem;
    }
    
    .dashboard-header p {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 60px 0 0px 0 !important;
    }
    
    .trusted-section {
        margin-top: 0 !important;
    }
    
    /* Inverser l'ordre : image en premier sur tablettes */
    .hero-section .container {
        display: flex !important;
        flex-direction: column !important;
        gap: 60px;
        text-align: center;
        align-items: center;
    }
    
    .hero-image {
        order: -1 !important; /* Image en premier */
        width: 100%;
        max-width: 100%;
        display: flex !important;
        justify-content: center;
        align-items: center;
        overflow: visible !important;
        position: relative !important;
        min-height: 500px !important;
        height: 500px !important;
    }
    
    .card-animation-container {
        max-width: 100% !important;
        width: 100% !important;
        height: 500px !important;
        overflow: visible !important;
        position: relative !important;
    }
    
    /* Forcer la visibilité des images de l'animation */
    .card-base-image,
    .card-shadow-image,
    .card-falling-image,
    .card-final-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        position: absolute !important;
    }
    
    .card-base-image {
        opacity: 1 !important;
        z-index: 1 !important;
    }
    
    .card-falling-image {
        opacity: 1 !important;
        animation: cardFallAndLand 3s ease-in-out forwards !important;
        animation-delay: 0.8s !important;
        z-index: 2 !important;
    }
    
    .card-shadow-image {
        animation: shadowAppear 3s ease-in-out forwards !important;
        animation-delay: 0.8s !important;
        z-index: 0 !important;
    }
    
    .hero-content {
        order: 1 !important; /* Contenu en second */
        width: 100%;
        max-width: 100%;
        overflow: visible;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 20px;
        position: relative;
        z-index: 10 !important;
    }
    
    .hero-title {
        font-size: 3rem;
        margin-bottom: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.2;
        position: relative;
        z-index: 51 !important;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.6;
        position: relative;
        z-index: 51 !important;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        position: relative;
        z-index: 51 !important;
        margin-bottom: 0 !important;
    }
    
    .trusted-section {
        margin-top: 0 !important;
    }
    
    .request-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 32px;
    }

/* Onglets du dashboard utilisateur */
.dashboard-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    padding: 12px 0;
    border-bottom: 2px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px 12px 0 0;
    padding: 16px 20px;
    justify-content: center;
    align-items: center;
}

.dashboard-tab {
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid rgba(148, 163, 184, 0.3);
    background: rgba(30, 41, 59, 0.6);
    color: #e5e7eb;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dashboard-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.dashboard-tab:hover::before {
    left: 100%;
}

.dashboard-tab i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.dashboard-tab:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.dashboard-tab:hover i {
    transform: scale(1.1);
}

.dashboard-tab.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.dashboard-tab.active i {
    transform: scale(1.1);
}

.dashboard-tab-panel {
    scroll-margin-top: 120px;
    display: none;
}

.dashboard-tab-panel.active {
    display: block;
}
    
    .hero-image {
        height: 450px;
    }
    
    .card-animation-container {
        max-width: 500px;
        height: 450px;
    }
    
    .card-preview-mockup {
        width: 320px;
        height: 420px;
    }
    
    .card-preview-mockup i {
        font-size: 5rem;
    }
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .menu-toggle {
        display: flex;
        width: 36px;
        height: 36px;
    }
    
    .menu-toggle-icon {
        font-size: 1.6rem;
    }
    
    .home-header {
        padding: 8px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .header-actions {
        order: 2;
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
    
    .header-logo {
        height: 70px;
        max-width: 450px;
    }
    
    /* .header-nav {
        display: none !important;
    } */
    /* Règle commentée - le style est géré dans index.php avec le menu hamburger */
    
    .header-nav-link,
    .nav-dropdown {
        display: flex;
        align-items: center;
        padding: 0.8rem 1.5rem;
        color: #000000 !important;
        text-decoration: none;
        font-weight: 500;
        font-size: 1rem;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
        width: 100%;
    }
    
    .header-nav-link:hover,
    .nav-dropdown:hover {
        background: rgba(0, 0, 0, 0.05);
        border-left-color: var(--primary-color, #3b82f6);
        padding-left: 2rem;
        color: #000000 !important;
    }
    
    .header-nav-link.active {
        background: rgba(0, 0, 0, 0.08);
        border-left-color: var(--primary-color, #3b82f6);
        font-weight: 600;
        color: #000000 !important;
    }
    
    .header-nav-link i {
        color: #000000 !important;
        font-size: 1rem;
        margin-right: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header-nav-link span {
        color: #000000 !important;
        font-weight: inherit;
    }
    
    .nav-dropdown-toggle {
        color: #000000 !important;
    }
    
    .nav-dropdown-toggle span {
        color: #000000 !important;
    }
    
    .nav-dropdown-toggle i:not(.dropdown-arrow) {
        color: #000000 !important;
    }
    
    /* Styles pour les menus déroulants en mobile */
    .nav-dropdown {
        flex-direction: column;
        padding: 0;
    }
    
    .nav-dropdown-toggle {
        display: flex !important;
    }
    
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        margin: 0;
        padding: 0;
        border-radius: 0;
        display: flex !important;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-dropdown-item {
        display: flex;
        align-items: center;
        padding: 0.8rem 1.5rem 0.8rem 3rem;
        color: #000000 !important;
        text-decoration: none;
        font-weight: 500;
        font-size: 1rem;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
        width: 100%;
    }
    
    .nav-dropdown-item:hover {
        background: rgba(0, 0, 0, 0.05);
        border-left-color: var(--primary-color, #3b82f6);
        padding-left: 3.5rem;
        color: #000000 !important;
    }
    
    .nav-dropdown-item.active {
        background: rgba(0, 0, 0, 0.08);
        border-left-color: var(--primary-color, #3b82f6);
        font-weight: 600;
        color: #000000 !important;
    }
    
    .nav-dropdown-item i {
        color: #000000 !important;
        font-size: 1rem;
        margin-right: 0.75rem;
    }
    
    .nav-dropdown-item span {
        color: #000000 !important;
        font-weight: inherit;
    }
    
    .dropdown-arrow {
        display: none !important;
    }
    
    .hero-section {
        padding: 40px 0 0px 0;
        margin-top: 0;
        overflow: visible !important;
        min-height: auto;
        z-index: 2 !important;
    }
    
    .trusted-section {
        z-index: 3 !important;
        margin-top: 0 !important;
        position: relative !important;
        overflow: visible !important;
    }
    
    .hero-section-container {
        margin-top: 0;
        padding-top: 0;
        overflow: visible !important;
    }
    
    /* Inverser l'ordre : image en premier sur mobile */
    .hero-section .container {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px;
        align-items: center;
        overflow: visible !important;
        z-index: 5 !important;
    }
    
    .hero-image {
        order: -1 !important; /* Image en premier */
        width: 100%;
        max-width: 100%;
        display: flex !important;
        justify-content: center;
        align-items: center;
        overflow: visible !important;
        position: relative !important;
        min-height: 400px !important;
        height: 400px !important;
    }
    
    .card-animation-container {
        max-width: 100% !important;
        width: 100% !important;
        height: 400px !important;
        overflow: visible !important;
        position: relative !important;
    }
    
    /* Forcer la visibilité des images de l'animation */
    .card-base-image,
    .card-shadow-image,
    .card-falling-image,
    .card-final-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        position: absolute !important;
    }
    
    .card-base-image {
        opacity: 1 !important;
        z-index: 1 !important;
    }
    
    .card-falling-image {
        opacity: 1 !important;
        animation: cardFallAndLand 3s ease-in-out forwards !important;
        animation-delay: 0.8s !important;
        z-index: 2 !important;
    }
    
    .card-shadow-image {
        animation: shadowAppear 3s ease-in-out forwards !important;
        animation-delay: 0.8s !important;
        z-index: 0 !important;
    }
    
    .hero-content {
        order: 1 !important; /* Contenu en second */
        margin-top: 0;
        padding-top: 0;
        width: 100%;
        max-width: 100%;
        text-align: center;
        overflow: visible;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 16px;
        position: relative;
        z-index: 10 !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 12px;
        padding-top: 0;
        margin-top: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.2;
        position: relative;
        z-index: 51 !important;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.6;
        position: relative;
        z-index: 51 !important;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
        position: relative;
        z-index: 51 !important;
        margin-bottom: 0 !important;
    }
    
    /* Carousel de logos adapté pour mobile (768px) */
    .logos-carousel-section {
        margin: 0 !important;
        padding: 15px 0 !important;
        margin-bottom: 0 !important;
        min-height: 90px !important;
        height: 90px !important;
    }
    
    .logo-item {
        width: auto !important;
        height: 60px !important;
        padding: 0 !important;
        flex-shrink: 0;
    }
    
    .logo-image {
        max-height: 60px !important;
        height: 60px !important;
        width: auto !important;
    }
    
    .logos-carousel-track {
        gap: 40px !important;
        animation: scrollLogos 40s linear infinite !important;
    }
    
    .logos-carousel-section::before,
    .logos-carousel-section::after {
        width: 150px !important;
    }
    
    .trusted-section .section-title {
        padding: 0 24px !important;
        margin-bottom: 35px !important;
        font-size: 1.75rem !important;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .features-section,
    .request-section,
    .cards-section {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .feature-card {
        padding: 32px 24px;
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    /* Afficher carousel sur mobile, cacher grille */
    .cards-grid-desktop {
        display: none;
    }
    
    .cards-carousel-mobile {
        display: block;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Carousel responsive */
    .card-carousel-item {
        min-width: calc(50% - 15px);
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .cards-carousel-container {
        gap: 10px;
    }
    
    /* Vidéos responsive */
    .videos-section {
        padding: 60px 0;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .animated-cards-container,
    .videos-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .video-showcase-item {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .card-item-header {
        padding: 20px 20px 15px;
    }
    
    .card-item-body {
        padding: 15px 20px;
    }
    
    .card-item-footer {
        padding: 15px 20px;
    }
    
    .request-form-container {
        padding: 32px 24px;
    }
    
    .request-info h2 {
        font-size: 2rem;
    }
    
    .request-info p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 0 !important;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .navbar .container,
    .home-navbar .container {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-menu:not(#navMenu) {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .dashboard-card {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .share-options {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        height: 400px;
    }
    
    .card-animation-container {
        max-width: 400px;
        height: 400px;
    }
    
    .card-preview-mockup {
        width: 280px;
        height: 380px;
    }
    
    .card-preview-mockup i {
        font-size: 4rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .social-network-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .social-platform {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .menu-toggle {
        width: 30px;
        height: 30px;
    }
    
    .menu-toggle-line {
        height: 2.5px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    .auth-card {
        padding: 32px 20px;
    }
    
    .auth-header h1 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 130px 0 0px 0;
        margin-top: 0;
        overflow: visible !important;
        min-height: auto;
        z-index: 2 !important;
    }
    
    .trusted-section {
        z-index: 3 !important;
        margin-top: 0 !important;
        position: relative !important;
        overflow: visible !important;
    }
    
    /* Inverser l'ordre : image en premier sur très petits écrans */
    .hero-section .container {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px;
        align-items: center;
    }
    
    .hero-image {
        order: -1 !important; /* Image en premier */
        width: 100%;
        max-width: 100%;
        display: flex !important;
        justify-content: center;
        align-items: center;
        overflow: visible !important;
        position: relative !important;
        min-height: 350px !important;
        height: 350px !important;
    }
    
    .card-animation-container {
        max-width: 100% !important;
        width: 100% !important;
        height: 350px !important;
        overflow: visible !important;
        position: relative !important;
    }
    
    /* Forcer la visibilité des images de l'animation */
    .card-base-image,
    .card-shadow-image,
    .card-falling-image,
    .card-final-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        position: absolute !important;
    }
    
    .card-base-image {
        opacity: 1 !important;
        z-index: 1 !important;
    }
    
    .card-falling-image {
        opacity: 1 !important;
        animation: cardFallAndLand 3s ease-in-out forwards !important;
        animation-delay: 0.8s !important;
        z-index: 2 !important;
    }
    
    .card-shadow-image {
        animation: shadowAppear 3s ease-in-out forwards !important;
        animation-delay: 0.8s !important;
        z-index: 0 !important;
    }
    
    .hero-content {
        order: 1 !important; /* Contenu en second */
        margin-top: 0;
        padding-top: 0;
        width: 100%;
        max-width: 100%;
        text-align: center;
        overflow: visible;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 12px;
        position: relative;
        z-index: 10 !important;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        padding-top: 0;
        margin-top: 0;
        margin-bottom: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.5;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        position: relative;
        z-index: 51 !important;
        margin-bottom: 0 !important;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 32px;
    }
    
    .features-section,
    .request-section,
    .cards-section {
        padding: 50px 0;
    }
    
    .animated-cards-container,
    .videos-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .video-showcase-info {
        padding: 20px;
    }
    
    .video-showcase-title {
        font-size: 1.25rem;
    }
    
    .logos-carousel-section {
        margin: 0 !important;
        padding: 15px 0 !important;
        margin-bottom: 0 !important;
        min-height: 90px !important;
        height: 90px !important;
    }
    
    .logo-item {
        width: auto !important;
        height: 60px !important;
        padding: 0 !important;
        flex-shrink: 0;
    }
    
    .logo-image {
        max-height: 60px !important;
        height: 60px !important;
        width: auto !important;
    }
    
    .logos-carousel-track {
        gap: 40px !important;
        animation: scrollLogos 40s linear infinite !important;
    }
    
    .logos-carousel-section::before,
    .logos-carousel-section::after {
        width: 150px !important;
    }
    
    .trusted-section {
        z-index: 3 !important;
        margin-top: 0 !important;
        position: relative !important;
        overflow: visible !important;
    }
    
    .trusted-section .section-title {
        padding: 0 20px !important;
        margin-bottom: 30px !important;
        font-size: 1.5rem !important;
    }
    
    .animated-cards-container,
    .videos-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-showcase-info {
        padding: 16px;
    }
    
    .video-showcase-title {
        font-size: 1.125rem;
    }
    
    .video-showcase-description {
        font-size: 0.9rem;
    }
    
    .feature-card {
        padding: 24px 20px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
        margin-bottom: 20px;
    }
    
    .feature-card h3 {
        font-size: 1.25rem;
    }
    
    .feature-card p {
        font-size: 0.95rem;
    }
    
    /* Carousel mobile */
    .card-carousel-item {
        min-width: 100%;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .cards-carousel-container {
        gap: 5px;
    }
    
    .cards-carousel-track {
        gap: 20px;
    }
    
    .carousel-dots {
        margin-top: 30px;
    }
    
    /* Vidéos mobile */
    .videos-section {
        padding: 50px 0;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .video-info {
        padding: 20px;
    }
    
    .video-title {
        font-size: 1.25rem;
    }
    
    .header-content {
        gap: 12px;
    }
    
    .header-logo {
        height: 70px;
        max-width: 380px;
    }
    
    /* Navigation mobile responsive pour 480px */
    /* .header-nav {
        display: none !important;
    } */
    /* Règle commentée - le style est géré dans index.php */
    
    .request-info h2 {
        font-size: 1.75rem;
    }
    
    .request-info p {
        font-size: 0.95rem;
    }
    
    .request-form-container {
        padding: 24px 20px;
    }
    
    .benefit-item {
        font-size: 1rem;
        padding: 10px;
    }
    
    .benefit-item i {
        font-size: 1.5rem;
    }
    
    .hero-image {
        height: 350px;
    }
    
    .card-animation-container {
        max-width: 350px;
        height: 350px;
    }
    
    .card-preview-mockup {
        width: 240px;
        height: 320px;
    }
    
    .card-preview-mockup i {
        font-size: 3.5rem;
    }
    
    .card-image-wrapper {
        max-height: 220px;
    }
    
    .card-item-header {
        padding: 16px;
    }
    
    .card-item-body {
        padding: 16px;
    }
    
    .card-item-footer {
        padding: 16px;
    }
    
    .dashboard-card {
        padding: 20px;
    }
    
    .dashboard-card h3 {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 16px 28px;
        font-size: 1rem;
    }
    
    .footer-content {
        gap: 24px;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.125rem;
        margin-bottom: 16px;
    }
    
    .footer-section p,
    .footer-section ul li a {
        font-size: 0.9rem;
    }
}

/* Très petits écrans (max-width: 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-content {
        padding: 0 8px;
        overflow: visible;
        word-wrap: break-word;
        overflow-wrap: break-word;
        position: relative;
        z-index: 10 !important;
    }
    
    .hero-title {
        font-size: 1.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.2;
        position: relative;
        z-index: 51 !important;
        margin-bottom: 8px !important;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.5;
        position: relative;
        z-index: 51 !important;
        margin-bottom: 8px !important;
    }
    
    .header-logo {
        height: 60px;
        max-width: 320px;
    }
    
    /* Navigation mobile responsive pour 360px */
    /* .header-nav {
        display: none !important;
    } */
    /* Règle commentée - le style est géré dans index.php */
    
    /* Inverser l'ordre : image en premier sur très petits écrans (360px) */
    .hero-section .container {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px;
        align-items: center;
        z-index: 5 !important;
    }
    
    .hero-image {
        order: -1 !important; /* Image en premier */
        height: 300px !important;
        width: 100%;
        max-width: 100%;
        display: flex !important;
        justify-content: center;
        align-items: center;
        overflow: visible !important;
        position: relative !important;
        min-height: 300px !important;
    }
    
    .card-animation-container {
        max-width: 100% !important;
        width: 100% !important;
        height: 300px !important;
        overflow: visible !important;
        position: relative !important;
    }
    
    /* Carousel de logos adapté pour très petits écrans */
    .logos-carousel-section {
        margin: 0 !important;
        padding: 15px 0 !important;
        margin-bottom: 0 !important;
        min-height: 90px !important;
        height: 90px !important;
    }
    
    .logo-item {
        width: auto !important;
        height: 60px !important;
        padding: 0 !important;
        flex-shrink: 0;
    }
    
    .logo-image {
        max-height: 60px !important;
        height: 60px !important;
        width: auto !important;
    }
    
    .logos-carousel-track {
        gap: 40px !important;
        animation: scrollLogos 40s linear infinite !important;
    }
    
    .logos-carousel-section::before,
    .logos-carousel-section::after {
        width: 150px !important;
    }
    
    .trusted-section {
        z-index: 3 !important;
        margin-top: 0 !important;
        position: relative !important;
        overflow: visible !important;
    }
    
    .trusted-section .section-title {
        padding: 0 12px !important;
        margin-bottom: 20px !important;
        font-size: 1.125rem !important;
    }
    
    /* Forcer la visibilité des images de l'animation */
    .card-base-image,
    .card-shadow-image,
    .card-falling-image,
    .card-final-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        position: absolute !important;
    }
    
    .card-base-image {
        opacity: 1 !important;
        z-index: 1 !important;
    }
    
    .card-falling-image {
        opacity: 1 !important;
        animation: cardFallAndLand 3s ease-in-out forwards !important;
        animation-delay: 0.8s !important;
        z-index: 2 !important;
    }
    
    .card-shadow-image {
        animation: shadowAppear 3s ease-in-out forwards !important;
        animation-delay: 0.8s !important;
        z-index: 0 !important;
    }
    
    .hero-content {
        order: 1 !important; /* Contenu en second */
        width: 100%;
        text-align: center;
    }
    
    .card-preview-mockup {
        width: 200px;
        height: 280px;
    }
    
    .card-preview-mockup i {
        font-size: 3rem;
    }
    
    .feature-card {
        padding: 20px 16px;
    }
}

/* ============================================
   RESPONSIVE DASHBOARD - TOUTES LES TAILLES
   ============================================ */

/* Tablettes (max-width: 1024px) */
@media (max-width: 1024px) {
    .dashboard-page::before,
    .dashboard-page::after {
        display: none;
    }
    
    .dashboard-header {
        padding: 15px 0;
        margin-bottom: 20px;
    }
    
    .dashboard-header > div {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .dashboard-header h2 {
        font-size: 2rem;
    }
    
    .dashboard-header p {
        font-size: 1rem;
    }
    
    .dashboard-tabs {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 16px;
    }
    
    .dashboard-tab {
        padding: 10px 16px;
        font-size: 0.9rem;
        flex: 1 1 calc(50% - 4px);
        min-width: 140px;
    }
    
    .dashboard-card {
        padding: 30px 24px;
    }
    
    .dashboard-card h3 {
        font-size: 1.35rem;
    }
    
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .share-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-preview {
        height: 500px;
    }
    
    .preview-container {
        margin: 20px 0;
    }
    
    .share-url {
        flex-direction: column;
    }
    
    .share-url input {
        width: 100%;
    }
    
    .share-url button {
        width: 100%;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        padding: 12px 20px;
    }
    
    .nav-brand h1 {
        font-size: 1.5rem;
    }
    
    .nav-menu:not(#navMenu) {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
        color: #000000 !important;
    }
    
    .nav-link span {
        display: none;
        color: #000000 !important;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .dashboard-header {
        padding: 12px 0;
        margin-bottom: 16px;
    }
    
    .dashboard-header h2 {
        font-size: 1.75rem;
        margin-bottom: 6px;
    }
    
    .dashboard-header p {
        font-size: 0.95rem;
    }
    
    .dashboard-header > div > div:last-child {
        width: 100%;
        margin-top: 16px;
    }
    
    .dashboard-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 10px 12px;
        border-radius: 12px;
        justify-content: space-between;
    }
    
    .dashboard-tab {
        flex: 1;
        min-width: 0;
        padding: 12px 8px;
        font-size: 0.9rem;
        justify-content: center;
        display: flex;
        align-items: center;
    }
    
    .dashboard-tab .dashboard-tab-label {
        display: none;
    }
    
    .dashboard-tab i {
        margin-right: 0;
        font-size: 1.35rem;
    }
    
    .dashboard-card {
        padding: 20px 16px;
        border-radius: 12px;
    }
    
    .dashboard-card h3 {
        font-size: 1.25rem;
        padding-bottom: 12px;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .social-network-item {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .social-platform {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .social-url {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .btn-remove-social {
        width: 100%;
        padding: 10px;
    }
    
    .card-preview {
        height: 400px;
    }
    
    .preview-container {
        margin: 16px 0;
        border-radius: 12px;
    }
    
    .share-url {
        flex-direction: column;
        gap: 10px;
    }
    
    .share-url input {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .share-url button {
        width: 100%;
        padding: 12px;
    }
    
    .share-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .qr-section,
    .nfc-section {
        text-align: center;
    }
    
    .qr-section h5,
    .nfc-section h5 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .stats-section {
        margin-top: 16px;
    }
    
    .stats-section h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .stat-item {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .current-photo {
        margin-bottom: 12px;
    }
    
    .current-photo img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .current-photo p {
        font-size: 0.9rem;
    }
}

/* Petits mobiles (max-width: 480px) */
@media (max-width: 480px) {
    .navbar {
        padding: 8px 0;
    }
    
    .navbar .container {
        padding: 8px 16px;
    }
    
    .nav-brand h1 {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        gap: 4px;
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        margin-right: 4px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .dashboard-header {
        padding: 10px 0;
        margin-bottom: 12px;
    }
    
    .dashboard-header h2 {
        font-size: 1.5rem;
    }
    
    .dashboard-header p {
        font-size: 0.9rem;
    }
    
    .dashboard-tabs {
        padding: 10px;
        gap: 6px;
    }
    
    .dashboard-tab {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .dashboard-tab i {
        font-size: 0.9rem;
        margin-right: 6px;
    }
    
    .dashboard-card {
        padding: 16px 12px;
    }
    
    .dashboard-card h3 {
        font-size: 1.15rem;
        padding-bottom: 10px;
        margin-bottom: 16px;
        flex-wrap: wrap;
    }
    
    .dashboard-card h3 i {
        font-size: 1rem;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 14px;
        font-size: 16px; /* Évite le zoom sur iOS */
        border-radius: 8px;
    }
    
    .form-group small {
        font-size: 0.8rem;
    }
    
    .form-row {
        gap: 16px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .btn-secondary {
        width: 100%;
    }
    
    .social-network-item {
        gap: 8px;
    }
    
    .card-preview {
        height: 350px;
    }
    
    .share-url input {
        font-size: 16px; /* Évite le zoom sur iOS */
        padding: 10px;
    }
    
    .share-url button {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .qr-section #qrcode,
    .qr-section #qrcode img {
        max-width: 100%;
        height: auto;
    }
    
    .stat-item {
        padding: 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .current-photo p {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .current-photo img {
        margin-bottom: 8px;
    }
}

/* Grille des options disponibles (page d'accueil) */
.options-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .options-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .options-grid {
        gap: 16px;
    }
}

/* Très petits écrans (max-width: 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .nav-brand h1 {
        font-size: 1.2rem;
    }
    
    .nav-link {
        padding: 5px 8px;
        font-size: 0.75rem;
        color: #000000 !important;
    }
    
    .nav-link span {
        color: #000000 !important;
    }
    
    .menu-toggle {
        width: 28px;
        height: 28px;
    }
    
    .menu-toggle-icon {
        font-size: 1.2rem;
    }
    
    .theme-toggle {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .dashboard-header h2 {
        font-size: 1.35rem;
    }
    
    .dashboard-header p {
        font-size: 0.85rem;
    }
    
    .dashboard-tabs {
        padding: 8px;
        gap: 6px;
    }
    
    .dashboard-tab {
        padding: 10px 6px;
        font-size: 0.8rem;
    }
    
    .dashboard-tab i {
        font-size: 1.25rem;
    }
    
    .dashboard-card {
        padding: 14px 10px;
    }
    
    .dashboard-card h3 {
        font-size: 1.05rem;
        padding-bottom: 8px;
        margin-bottom: 14px;
    }
    
    .form-group {
        margin-bottom: 14px;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 9px 12px;
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .card-preview {
        height: 300px;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
}

/* ============================================
   RÈGLE GLOBALE FINALE - NAVIGATION
   Header toujours blanc : texte/liens (Accueil, Services, etc.) en noir
   ============================================ */
/* Texte noir dans le header (fond toujours blanc) — Accueil, Services, Fonctionnalités, Demander une carte, Connexion */
.home-header .header-nav .header-nav-link,
.home-header .header-nav .header-nav-link span,
.home-header .header-nav .header-nav-link i,
.home-header .header-nav .nav-link,
.home-header .header-nav .nav-link span,
.home-header .header-nav .nav-dropdown-toggle,
.home-header .header-nav .nav-dropdown-toggle span,
.home-header .header-nav .nav-dropdown-toggle i:not(.dropdown-arrow),
.home-header .header-nav .header-nav-cta,
.home-header .header-nav .header-nav-cta span,
.home-header .header-nav .header-nav-cta i,
.home-header .header-nav .nav-dropdown-item,
.home-header .header-nav .nav-dropdown-item span {
    color: #000000 !important;
}

.home-header .header-nav .header-nav-link:hover,
.home-header .header-nav .header-nav-link:hover span,
.home-header .header-nav .header-nav-link:hover i,
.home-header .header-nav .nav-link:hover,
.home-header .header-nav .nav-link:hover span,
.home-header .header-nav .nav-dropdown-toggle:hover,
.home-header .header-nav .nav-dropdown-toggle:hover span,
.home-header .header-nav .nav-dropdown-toggle:hover i:not(.dropdown-arrow),
.home-header .header-nav .header-nav-cta:hover,
.home-header .header-nav .header-nav-cta:hover span,
.home-header .header-nav .header-nav-cta:hover i,
.home-header .header-nav .nav-dropdown-item:hover,
.home-header .header-nav .nav-dropdown-item:hover span {
    color: #1e40af !important;
}

/* Navigation hors header : noir en thème clair */
.header-nav-link,
.header-nav-link span,
.header-nav-link i,
.nav-dropdown-toggle,
.nav-dropdown-toggle span,
.nav-dropdown-toggle i:not(.dropdown-arrow),
.header-nav-cta,
.header-nav-cta span,
.header-nav-cta i,
.nav-dropdown-item,
.nav-dropdown-item span {
    color: #000000 !important;
}

.header-nav-link:hover,
.header-nav-link:hover span,
.header-nav-link:hover i,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:hover span,
.nav-dropdown-toggle:hover i:not(.dropdown-arrow),
.header-nav-cta:hover,
.header-nav-cta:hover span,
.header-nav-cta:hover i,
.nav-dropdown-item:hover,
.nav-dropdown-item:hover span {
    color: #000000 !important;
}

/* Thème dark : nav blanche uniquement hors header (autres pages) */
[data-theme="dark"] .header-nav-link,
[data-theme="dark"] .header-nav-link span,
[data-theme="dark"] .header-nav-link i,
[data-theme="dark"] .nav-dropdown-toggle,
[data-theme="dark"] .nav-dropdown-toggle span,
[data-theme="dark"] .nav-dropdown-toggle i:not(.dropdown-arrow),
[data-theme="dark"] .header-nav-cta,
[data-theme="dark"] .header-nav-cta span,
[data-theme="dark"] .header-nav-cta i,
[data-theme="dark"] .nav-dropdown-item,
[data-theme="dark"] .nav-dropdown-item span {
    color: #ffffff !important;
}

[data-theme="dark"] .header-nav-link:hover,
[data-theme="dark"] .header-nav-link:hover span,
[data-theme="dark"] .header-nav-link:hover i,
[data-theme="dark"] .nav-dropdown-toggle:hover,
[data-theme="dark"] .nav-dropdown-toggle:hover span,
[data-theme="dark"] .nav-dropdown-toggle:hover i:not(.dropdown-arrow),
[data-theme="dark"] .header-nav-cta:hover,
[data-theme="dark"] .header-nav-cta:hover span,
[data-theme="dark"] .header-nav-cta:hover i,
[data-theme="dark"] .nav-dropdown-item:hover,
[data-theme="dark"] .nav-dropdown-item:hover span {
    color: #ffffff !important;
}

/* Toujours noir dans le header (Accueil, Services, Fonctionnalités, Demander une carte, Connexion) — tous thèmes */
[data-theme="dark"] .home-header .header-nav .header-nav-link,
[data-theme="dark"] .home-header .header-nav .header-nav-link span,
[data-theme="dark"] .home-header .header-nav .header-nav-link i,
[data-theme="dark"] .home-header .header-nav .nav-link,
[data-theme="dark"] .home-header .header-nav .nav-link span,
[data-theme="dark"] .home-header .header-nav .nav-dropdown-toggle,
[data-theme="dark"] .home-header .header-nav .nav-dropdown-toggle span,
[data-theme="dark"] .home-header .header-nav .nav-dropdown-toggle i:not(.dropdown-arrow),
[data-theme="dark"] .home-header .header-nav .header-nav-cta,
[data-theme="dark"] .home-header .header-nav .header-nav-cta span,
[data-theme="dark"] .home-header .header-nav .header-nav-cta i,
[data-theme="dark"] .home-header .header-nav .nav-dropdown-item,
[data-theme="dark"] .home-header .header-nav .nav-dropdown-item span {
    color: #000000 !important;
}

[data-theme="dark"] .home-header .header-nav .header-nav-link:hover,
[data-theme="dark"] .home-header .header-nav .header-nav-link:hover span,
[data-theme="dark"] .home-header .header-nav .header-nav-link:hover i,
[data-theme="dark"] .home-header .header-nav .nav-link:hover,
[data-theme="dark"] .home-header .header-nav .nav-link:hover span,
[data-theme="dark"] .home-header .header-nav .nav-dropdown-toggle:hover,
[data-theme="dark"] .home-header .header-nav .nav-dropdown-toggle:hover span,
[data-theme="dark"] .home-header .header-nav .nav-dropdown-toggle:hover i:not(.dropdown-arrow),
[data-theme="dark"] .home-header .header-nav .header-nav-cta:hover,
[data-theme="dark"] .home-header .header-nav .header-nav-cta:hover span,
[data-theme="dark"] .home-header .header-nav .header-nav-cta:hover i,
[data-theme="dark"] .home-header .header-nav .nav-dropdown-item:hover,
[data-theme="dark"] .home-header .header-nav .nav-dropdown-item:hover span {
    color: #1e40af !important;
}

/* Styles spécifiques pour les éléments du dashboard */
.dashboard-header > div > div:last-child {
    min-width: 0;
}

.dashboard-header > div > div:last-child > div {
    width: 100%;
    max-width: 100%;
}

/* Messages de contact */
@media (max-width: 768px) {
    .dashboard-card > div[style*="max-height"] {
        max-height: 400px !important;
    }
    
    .dashboard-card > div > div[style*="padding"] {
        padding: 8px 0 !important;
    }
    
    .dashboard-card > div > div > div[style*="font-size"] {
        font-size: 0.85rem !important;
    }
    
    .dashboard-card button[onclick*="addContactToPhone"] {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
        width: 100%;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .dashboard-card > div[style*="max-height"] {
        max-height: 350px !important;
    }
    
    .dashboard-card > div > div > div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
}

/* Abonnement card */
@media (max-width: 768px) {
    .dashboard-header > div > div:last-child > div[style*="background"] {
        padding: 14px 18px !important;
    }
    
    .dashboard-header > div > div:last-child > div > div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    .dashboard-header > div > div:last-child > div > div > div {
        width: 100%;
    }
    
    .dashboard-header > div > div:last-child > div > div > div > div[style*="font-weight: 700"] {
        font-size: 1rem !important;
    }
    
    .dashboard-header > div > div:last-child > div > div > div > div[style*="font-size: 0.85rem"] {
        font-size: 0.8rem !important;
    }
}

/* Section abonnement dans preview */
@media (max-width: 768px) {
    .dashboard-card > div[style*="background: linear-gradient"] {
        padding: 16px !important;
    }
    
    .dashboard-card > div > div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .dashboard-card > div > div > div > div[style*="font-size: 0.85rem"] {
        font-size: 0.8rem !important;
    }
    
    .dashboard-card > div > div > div > div[style*="font-weight: 700"],
    .dashboard-card > div > div > div > div[style*="font-weight: 600"] {
        font-size: 0.95rem !important;
    }
    
    .dashboard-card > div > div[style*="display: flex"] {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    
    .dashboard-card > div > div > span[style*="background"] {
        padding: 5px 10px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .dashboard-header > div > div:last-child > div[style*="background"] {
        padding: 12px 14px !important;
    }
    
    .dashboard-card > div[style*="background: linear-gradient"] {
        padding: 14px !important;
    }
}
