/* Global styles for modern UI */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --danger-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 0.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    font-family: 'Inter', sans-serif;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Enhanced buttons */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: var(--secondary-gradient);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

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

/* Enhanced cards */
.card-modern {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
}

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

.card-modern.dark {
    background: #374151;
    color: #f9fafb;
}

/* Modern form inputs */
.form-input-modern {
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    background: white;
}

.form-input-modern:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Animated badges */
.badge-modern {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.badge-modern:hover {
    transform: scale(1.05);
}

/* Loading animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.focus-ring:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Micro-interactions */
.hover-lift:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Gradient text */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern shadows */
.shadow-modern {
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-modern-lg {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Backdrop blur */
.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Header responsive styles */
.header-modern {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mobile-nav a {
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.mobile-nav a:hover {
    color: #0d6efd;
    background-color: #f8f9fa;
    padding-left: 1rem;
}

.mobile-nav a.text-danger:hover {
    color: #dc3545 !important;
}

/* Offcanvas styles */
.offcanvas {
    max-width: 280px;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Desktop nav hover effects */

.desktop-nav > * {
    display: inline-block;
    vertical-align: middle;
}

.desktop-nav a {
    position: relative;
    transition: all 0.2s ease;
    white-space: nowrap;
    vertical-align: middle;
}

.desktop-nav .dropdown {
    position: relative;
    vertical-align: middle;
}

.desktop-nav .dropdown .btn-link {
    position: relative;
    transition: all 0.2s ease;
    white-space: nowrap;
    color: white !important;
    text-decoration: none !important;
    vertical-align: middle;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
}

/* Forcer l'alignement du span et des éléments avec classes Bootstrap */
.desktop-nav span,
.desktop-nav .d-none,
.desktop-nav .d-lg-inline {
    vertical-align: middle;
    line-height: 1;
    display: inline-block;
}

.desktop-nav a:hover,
.desktop-nav .dropdown .btn-link:hover {
    transform: translateY(-1px);
}

.desktop-nav a[href="search.php"]::after {
    display: none;
}

.desktop-nav .dropdown .btn-link::after {
    display: none;
}

/* Dropdown menu alignment */
.dropdown-menu {
    min-width: 280px;
    margin-top: 0.5rem;
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
}

.dropdown-menu-dark {
    background: #374151;
    border: 1px solid #4b5563;
}

.dropdown-header {
    color: #9ca3af;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.dropdown-item {
    color: #f9fafb;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #4b5563;
    color: white;
    transform: translateX(2px);
}

/* Form styles in dropdown */
.dropdown-menu form {
    margin: 0;
}

.dropdown-menu .form-label {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.dropdown-menu .form-select {
    font-size: 0.8rem;
    border: 1px solid #4b5563;
    background: #4b5563;
    color: white;
}

.dropdown-menu .form-select:focus {
    background: #4b5563;
    border-color: #6b7280;
    box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.2);
}
