/* SafetyAI - Styles principaux */

:root {
    /* Couleurs principales */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --info-color: #0891b2;
    --light-color: #f8fafc;
    --dark-color: #0f172a;
    
    /* Couleurs de fond */
    --bg-primary: #ffffff;
    --bg-secondary: #f1f5f9;
    --bg-dark: #1e293b;
    
    /* Typographie */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Espacement */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Bordures et ombres */
    --border-radius: 0.75rem;
    --border-radius-sm: 0.5rem;
    --border-radius-lg: 1rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--bg-primary);
    font-size: 16px;
}

/* Utilitaires de texte */
.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-info { color: var(--info-color) !important; }

/* Utilitaires de fond */
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--bg-secondary) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }

/* ================================
   COMPOSANTS GLOBAUX
================================ */

/* Boutons améliorés */
.btn {
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius);
    border: none;
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1e40af);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #ea580c);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: white;
}


@media (max-width: 768px) {
    .hero-stat-number {
        font-size: 3rem !important;
    }
}

/* Animation pulse pour bouton principal */
.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(217, 119, 6, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

/* Cards modernes */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    background: white;
}

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

.card-header {
    border-bottom: 1px solid #e2e8f0;
    background: transparent;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    font-weight: var(--font-weight-semibold);
}

.card-body {
    padding: 1.5rem;
}

/* Formulaires élégants */
.form-label {
    font-weight: var(--font-weight-semibold);
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background-color: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-valid {
    border-color: var(--success-color);
}

.invalid-feedback,
.valid-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Input groups avec icônes */
.input-group-text {
    border: 2px solid #e2e8f0;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
}

/* ================================
   PAGE D'ACCUEIL
================================ */

.landing-page {
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-buttons .btn {
    margin-bottom: 1rem;
}

.hero-stats .stat-item h3 {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.25rem;
}

.hero-stats .stat-item small {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Mockup téléphone */
.hero-image {
    position: relative;
    z-index: 2;
}

.phone-mockup {
    position: relative;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.scan-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: scan 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes scan {
    0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

/* Indicateur de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translate3d(-50%, 0, 0); }
    40%, 43% { transform: translate3d(-50%, -30px, 0); }
    70% { transform: translate3d(-50%, -15px, 0); }
    90% { transform: translate3d(-50%, -4px, 0); }
}

/* Animations d'apparition */
.animate-fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.animate-fade-in-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   SECTION FONCTIONNALITÉS
================================ */

.feature-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid #f1f5f9;
}

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

.feature-icon {
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 1rem;
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.feature-card:hover .feature-icon i {
    color: white;
}

/* ================================
   SECTION CTA
================================ */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
}

.cta-buttons .btn {
    margin-bottom: 1rem;
}

/* ================================
   NAVIGATION
================================ */

.navbar-brand {
    font-size: 1.8rem !important;
    padding: 0.5rem 0 !important;
}
.logo-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar-brand:hover .logo-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.logo-icon i {
    font-size: 28px;
}

.brand-name {
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.2;
    color: white;
}

.brand-tagline {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.9);
    max-width: 220px;
}

/* Boutons navigation améliorés */
.nav-btn {
    border-radius: 20px !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

.nav-btn-special {
    border-radius: 20px !important;
    padding: 8px 20px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.nav-btn-special:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
}

/* Navigation responsive */
@media (max-width: 991px) {
    .brand-tagline {
        display: none;
    }
    
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-icon i {
        font-size: 20px;
    }
    
    .nav-btn, .nav-btn-special {
        margin-bottom: 5px !important;
        display: block !important;
        text-align: center !important;
    }
}
.navbar-nav .nav-link {
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ================================
   FOOTER
================================ */
/* Correction Footer - Visibilité améliorée */
footer.bg-dark {
    background-color: #2c3e50 !important; /* Fond plus clair */
}

footer h5 {
    color: #ffffff !important;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer p {
    color: #ecf0f1 !important; /* Texte plus clair */
}

footer small {
    color: #bdc3c7 !important; /* Texte plus visible */
}

footer .social-links a {
    color: #ecf0f1 !important;
    font-size: 1.2rem;
    display: inline-block;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    color: #f39c12 !important; /* Couleur orange au survol */
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    footer .col-md-6 {
        text-align: center !important;
        margin-bottom: 1rem;
    }
    
    footer .text-md-end {
        text-align: center !important;
    }
}




/* ================================
   ALERTES ET NOTIFICATIONS
================================ */

.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}


/* ================================
   SOLUTION QUI MARCHE À 100% - REMPLACE TOUT LE CSS CARROUSEL
================================ */
/* ================================
   SOLUTION QUI MARCHE À 100% - REMPLACE TOUT LE CSS CARROUSEL
================================ */

/* CONTENEUR PRINCIPAL - HAUTEUR FIXE POUR ÉVITER LES SAUTS */
.demo-carousel-container {
    height: 400px;
    position: relative;
    overflow: visible; /* PERMETTRE AUX INDICATEURS D'ÊTRE VISIBLES */
    border-radius: 20px;
    margin-bottom: 60px; /* ESPACE POUR LES INDICATEURS */
}

/* CARROUSEL - DIMENSIONS STABLES */
.carousel-inner,
.carousel-item {
    height: 100% !important;
    position: relative;
}

/* Container principal - DIMENSIONS FIXES */
.demo-image-container {
    height: 100% !important;
    width: 100% !important;
    background: #1f2937;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* EMPÊCHER VARIATIONS DE TAILLE */
    min-height: 400px;
    max-height: 400px;
}

.demo-image-container img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    border-radius: 20px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}


/* PLACEHOLDERS UNIFORMES - MÊME TAILLE TOUJOURS */
.demo-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    border-radius: 20px;
    z-index: 1;
    /* PAS DE TRANSITION POUR ÉVITER LES SAUTS */
    transition: none !important;
}

.carousel-item:nth-child(1) .demo-image-container::before {
    content: '📸';
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
}

.carousel-item:nth-child(2) .demo-image-container::before {
    content: '🧠';
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.carousel-item:nth-child(3) .demo-image-container::before {
    content: '📄';
    background: linear-gradient(135deg, #dc2626 0%, #f59e0b 100%);
}

/* CONTRÔLES - POSITION FIXE */
.carousel-control-prev,
.carousel-control-next {
    width: 60px !important;
    height: 60px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 0.9 !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.carousel-control-prev {
    left: -30px !important;
}

.carousel-control-next {
    right: -30px !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px !important;
    height: 24px !important;
}

/* INDICATEURS - POSITION ABSOLUE FIXE */
.carousel-indicators {
    /* FORCER LE CENTRAGE ABSOLU */
    margin-left: 0 !important;
    margin-right: 0 !important;
    list-style: none !important;
}

.carousel-indicators [data-bs-target] {
    width: 15px !important;
    height: 15px !important;
    border-radius: 50% !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    border: 3px solid rgba(255, 255, 255, 0.8) !important;
    opacity: 0.6 !important;
    transition: all 0.3s ease !important;
    margin: 0 8px !important; /* ESPACEMENT UNIFORME */
    text-indent: 0 !important;
}

.carousel-indicators .active {
    background-color: #4f46e5 !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.4) !important;
    opacity: 1 !important;
    transform: scale(1.3) !important;
}
/* TRANSITIONS CARROUSEL - PLUS FLUIDES */
.carousel-item {
    transition: transform 0.4s ease !important;
}

/* ANIMATION ÉTAPES - PLUS STABLE */
.demo-step {
    transition: all 0.3s ease;
    opacity: 0.7;
    transform: translateX(10px); /* MOINS DE MOUVEMENT */
    cursor: pointer;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.demo-step.active {
    opacity: 1 !important;
    transform: translateX(0) !important;
    background: linear-gradient(45deg, rgba(79, 70, 229, 0.15), rgba(124, 58, 237, 0.15)) !important;
    border-left: 5px solid #4f46e5 !important;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.2) !important;
}

@media (max-width: 768px) {
    .demo-carousel-container {
        height: 300px;
        margin-bottom: 50px;
    }
    
    .carousel-indicators {
        bottom: -40px !important;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 45px !important;
        height: 45px !important;
    }
    
    .carousel-control-prev {
        left: 10px !important;
    }
    
    .carousel-control-next {
        right: 10px !important;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 18px !important;
        height: 18px !important;
    }
}

/* RESPONSIVE MOBILE - HAUTEURS FIXES AUSSI */
@media (max-width: 768px) {
    .demo-carousel-container {
        height: 300px; /* HAUTEUR FIXE MOBILE */
    }
    
    .demo-image-container {
        min-height: 300px !important;
        max-height: 300px !important;
        border-radius: 15px;
    }
    
    .carousel-overlay {
        height: 60% !important;
        border-radius: 0 0 15px 15px !important;
    }
    
    .carousel-caption {
        padding: 15px !important;
        bottom: 20px !important;
        left: 20px !important;
        right: 20px !important;
        min-height: 70px !important;
    }
    
    .carousel-caption h5 {
        font-size: 1.1rem !important;
    }
    
    .carousel-caption p {
        font-size: 0.9rem !important;
    }
    
   .carousel-control-prev,
.carousel-control-next {
    width: 50px !important; /* PLUS PETITES */
    height: 50px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 0.9 !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

/* REPOSITIONNER À L'INTÉRIEUR DU CARROUSEL */
.carousel-control-prev {
    left: 15px !important; /* À L'INTÉRIEUR */
}

.carousel-control-next {
    right: 15px !important; /* À L'INTÉRIEUR */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px !important;
    height: 20px !important;
}


/* FORCER L'AFFICHAGE SUR MOBILE */
.carousel-caption.d-none.d-md-block {
    display: block !important;
}
/* ================================
   BADGES ET ÉTIQUETTES
================================ */

.badge {
    font-weight: var(--font-weight-semibold);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.badge-success {
    background: linear-gradient(135deg, var(--success-color), #047857);
}

.badge-warning {
    background: linear-gradient(135deg, var(--warning-color), #ea580c);
}

.badge-danger {
    background: linear-gradient(135deg, var(--danger-color), #b91c1c);
}

/* ================================
   LOADING ET SPINNERS
================================ */

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Spinner inline */
.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

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

/* Tablettes */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Smartphones */
@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .hero-stats .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* ================================
   CLASSES UTILITAIRES
================================ */

/* Espacement */
.mt-6 { margin-top: 4rem; }
.mb-6 { margin-bottom: 4rem; }
.py-6 { padding-top: 4rem; padding-bottom: 4rem; }

/* Curseur */
.cursor-pointer { cursor: pointer; }

/* Transitions */
.transition-all { transition: all var(--transition-normal); }

/* Z-index */
.z-10 { z-index: 10; }

/* Débordement */
.overflow-hidden { overflow: hidden; }

/* Position */
.position-relative { position: relative; }

/* ================================
   THÈME SOMBRE (optionnel)
================================ */

@media (prefers-color-scheme: dark) {
    .dark-mode {
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --dark-color: #f8fafc;
        
        background-color: var(--bg-primary);
        color: var(--dark-color);
    }
    
    .dark-mode .card {
        background-color: var(--bg-secondary);
        border-color: #334155;
    }
    
    .dark-mode .form-control {
        background-color: var(--bg-secondary);
        border-color: #334155;
        color: var(--dark-color);
    }
}

/* ================================
   ANIMATIONS DE CHARGEMENT
================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

/* ================================
   PRINT STYLES
================================ */

@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}