/* Variables CSS modernes avec palette de couleurs 2025 */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Couleurs neutres modernes */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Couleurs de surface */
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --surface-dark: #0f172a;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-inverse: #ffffff;
    
    /* Transitions et animations modernes */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Ombres modernes */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-base: 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);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Rayons de bordure */
    --radius-sm: 0.375rem;
    --radius-base: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
}

/* Corrections pour éliminer l'espace blanc */
html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Fin du fichier styles.css */

/* Fin du fichier styles.css */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Assurer que le footer colle en bas */
footer {
    margin-top: auto;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--surface);
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

/* Navigation moderne */
.modern-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: var(--transition-base);
}

.modern-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.modern-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modern-nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-base);
    transition: var(--transition-fast);
    position: relative;
}

.modern-nav-link:hover {
    color: var(--primary) !important;
    background: rgba(99, 102, 241, 0.1);
}

.modern-theme-btn {
    background: var(--gray-100);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    color: var(--text-primary);
}

.modern-theme-btn:hover {
    background: var(--gray-200);
    transform: scale(1.05);
}

.btn-modern-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.btn-modern-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: white;
}

.modern-toggler {
    border: none;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.modern-toggler span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Hero Section Ultra-Moderne */
.modern-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        rgba(139, 92, 246, 0.05) 50%, 
        rgba(245, 158, 11, 0.05) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -5%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 10%;
    animation-delay: 1s;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-icon {
    font-size: 1rem;
}

.modern-hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.highlight-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.modern-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-modern-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
    border: none;
}

.btn-modern-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
    color: white;
}

.btn-modern-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 1rem 2rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
}

.btn-modern-secondary:hover {
    background: var(--gray-50);
    border-color: var(--primary);
    color: var(--primary);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stats .stat-item {
    text-align: left;
}

.hero-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.hero-stats .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.main-image-container {
    position: relative;
    display: inline-block;
}

.main-hero-image {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    animation: float 4s ease-in-out infinite;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    animation: float 4s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.25rem;
    color: var(--primary);
}

.card-1 {
    top: 20%;
    left: -20%;
    animation-delay: 0.5s;
}

.card-2 {
    top: 60%;
    right: -15%;
    animation-delay: 1.5s;
}

.card-3 {
    bottom: 10%;
    left: -10%;
    animation-delay: 2.5s;
}

/* Services Section Moderne */
#services {
    padding: 6rem 0;
    background: var(--surface-alt);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-base);
    border: 1px solid var(--gray-100);
    transition: var(--transition-base);
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: var(--transition-base);
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Section Statistiques Ultra-Moderne */
.stats {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    padding: 6rem 0;
    position: relative;
    color: white;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.stats::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.03) 50%, transparent 70%);
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.stats .container {
    position: relative;
    z-index: 2;
}

.stats-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stats-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-weight: 400;
}

.stats .stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    transition: var(--transition-base);
    border-radius: var(--radius-xl);
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.stats .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 0 0 var(--radius-base) var(--radius-base);
}

.stats .stat-item:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stats .stat-number {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    color: white;
    margin-bottom: 0.75rem;
    display: block;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.stats .stat-number::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.stats .stat-item p {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

/* Les animations sont gérées par JavaScript */
.stats .stat-item:nth-child(1) .stat-number {
    /* animation gérée par JS */
}

.stats .stat-item:nth-child(2) .stat-number {
    /* animation gérée par JS */
}

.stats .stat-item:nth-child(3) .stat-number {
    /* animation gérée par JS */
}

.stats .stat-item:nth-child(4) .stat-number {
    /* animation gérée par JS */
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Icônes pour les statistiques */
.stats .stat-item::after {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.stats .stat-item:nth-child(1)::after {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>');
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.stats .stat-item:nth-child(2)::after {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.stats .stat-item:nth-child(3)::after {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M16 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm4 18v-6h2.5l-2.54-7.63A1.5 1.5 0 0 0 18.54 8H16c-.8 0-1.54.37-2.01.99L12 11l-1.99-2.01A2.5 2.5 0 0 0 8 8H5.46c-.8 0-1.49.59-1.42 1.37L6.5 16H9v6h2v-6h2v6h2z"/></svg>');
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.stats .stat-item:nth-child(4)::after {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/></svg>');
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Section À propos moderne */
#apropos {
    padding: 6rem 0;
    background: var(--surface);
}

#apropos .section-title {
    margin-bottom: 2rem;
}

#apropos img {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

#apropos p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Section des fondateurs */
.founders-section {
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.founders-section h4 {
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
}

.founder-card {
    text-align: center;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    border: 1px solid var(--gray-100);
}

.founder-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.founder-name {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.founder-role {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Section Portfolio moderne */
#portfolio {
    padding: 6rem 0;
    background: var(--surface);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.portfolio-filter-btn {
    background: var(--surface);
    border: 2px solid var(--gray-200);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: var(--transition-fast);
    cursor: pointer;
    font-size: 0.9rem;
}

.portfolio-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.portfolio-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.portfolio-item {
    transition: var(--transition-base);
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.portfolio-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-base);
    border: 1px solid var(--gray-100);
    transition: var(--transition-base);
    height: 100%;
}

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

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition-base);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info h4 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.portfolio-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-portfolio-view,
.btn-portfolio-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-portfolio-view:hover,
.btn-portfolio-link:hover {
    background: white;
    color: var(--primary);
    transform: scale(1.1);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.portfolio-category {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.portfolio-results {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.result-item {
    text-align: center;
    flex: 1;
}

.result-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.result-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Section Cours moderne */
#cours {
    padding: 6rem 0;
    background: var(--surface-alt);
}

/* Filtres de cours */
.course-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: var(--surface);
    border: 2px solid var(--gray-200);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: var(--transition-fast);
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

/* Animation pour les cours */
.course-item {
    transition: var(--transition-base);
}

.course-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.card {
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-base);
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--transition-base);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 2rem;
}

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

.card-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.text-primary {
    color: var(--primary) !important;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-base);
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Témoignages modernes */
#temoignages {
    padding: 6rem 0;
    background: var(--surface);
}

.testimonial-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-base);
    border: 1px solid var(--gray-100);
    margin-bottom: 2rem;
    transition: var(--transition-base);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 2rem;
    font-size: 4rem;
    color: var(--primary);
    font-family: serif;
    opacity: 0.3;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.2);
}

.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid var(--gray-100);
}

.testimonial-card h5 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.testimonial-card .text-muted {
    color: var(--text-secondary) !important;
    font-size: 0.875rem;
}

.testimonial-card p:last-child {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Footer moderne */
footer {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    color: white;
    padding: 5rem 0 0;
    position: relative;
    margin-top: 0;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

footer h3, footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}

footer p, footer li {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-base);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    color: white;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding: 2rem 0 1rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Animations modernes */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Utilitaires modernes */
.gradient-bg {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mode sombre */
[data-theme="dark"] {
    --surface: #0f172a;
    --surface-alt: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --gray-100: #334155;
    --gray-200: #475569;
}

[data-theme="dark"] .modern-nav {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .modern-logo,
[data-theme="dark"] .modern-nav-link {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .modern-nav-link:hover {
    background: rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .modern-theme-btn {
    background: var(--gray-200);
    color: var(--text-primary);
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .card {
    background: var(--surface-alt);
    border-color: var(--gray-200);
}

[data-theme="dark"] .bg-light {
    background-color: var(--surface-alt) !important;
}

[data-theme="dark"] .text-muted {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

[data-theme="dark"] .btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

[data-theme="dark"] .table {
    --bs-table-color: var(--text-primary);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--gray-200);
    --bs-table-striped-bg: var(--surface-alt);
    --bs-table-striped-color: var(--text-primary);
    --bs-table-active-bg: var(--gray-200);
    --bs-table-active-color: var(--text-primary);
    --bs-table-hover-bg: var(--gray-100);
    --bs-table-hover-color: var(--text-primary);
}

[data-theme="dark"] .form-control {
    background-color: var(--surface-alt);
    border-color: var(--gray-200);
    color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus {
    background-color: var(--surface);
    border-color: var(--primary);
    color: var(--text-primary);
}

[data-theme="dark"] .form-select {
    background-color: var(--surface-alt);
    border-color: var(--gray-200);
    color: var(--text-primary);
}

[data-theme="dark"] .breadcrumb-item a {
    color: var(--primary);
}

[data-theme="dark"] .breadcrumb-item.active {
    color: var(--text-secondary);
}

[data-theme="dark"] .alert {
    --bs-alert-color: var(--text-primary);
    --bs-alert-bg: var(--surface-alt);
    --bs-alert-border-color: var(--gray-200);
}

[data-theme="dark"] .modal-content {
    background-color: var(--surface);
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    border-color: var(--gray-200);
}

[data-theme="dark"] .dropdown-menu {
    background-color: var(--surface-alt);
    border-color: var(--gray-200);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-primary);
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: var(--gray-200);
}

/* Responsive Design Moderne */
@media (max-width: 1400px) {
    .container {
        max-width: 1320px;
        padding: 0 1rem;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .modern-hero-title {
        font-size: 3.5rem;
    }
    
    .floating-card {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 992px) {
    .modern-hero {
        text-align: center;
        min-height: auto;
        padding: 8rem 0 4rem;
    }
    
    .modern-hero .row {
        min-height: auto;
    }
    
    .hero-cta-group {
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        justify-content: center;
        margin-bottom: 3rem;
    }
    
    .floating-card {
        display: none;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .modern-hero-title {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .main-hero-image {
        max-width: 400px;
        margin-top: 2rem;
    }
    
    /* Navigation mobile améliorée */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: var(--radius-lg);
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: var(--shadow-xl);
    }
    
    .modern-nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
        border-radius: var(--radius-base);
    }
    
    .btn-modern-cta {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .modern-hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        margin-bottom: 1rem;
    }
    
    .modern-hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .modern-hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .btn-modern-primary,
    .btn-modern-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }
    
    .hero-stats {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-stats .stat-item {
        flex: 0 0 calc(50% - 0.5rem);
        text-align: center;
    }
    
    .hero-stats .stat-number {
        font-size: 1.75rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Ajustement pour 3 colonnes de témoignages sur tablette */
    @media (min-width: 768px) and (max-width: 991px) {
        #temoignages .col-lg-4 {
            flex: 0 0 50%;
            max-width: 50%;
        }
        
        #temoignages .col-lg-4:nth-child(3) {
            flex: 0 0 100%;
            max-width: 100%;
            margin-top: 1rem;
        }
    }
    
    .testimonial-img {
        width: 50px;
        height: 50px;
    }
    
    .main-hero-image {
        max-width: 350px;
    }
    
    /* Fondateurs responsive */
    .founders-section {
        padding: 1.5rem;
    }
    
    .founder-card {
        margin-bottom: 1rem;
    }
    
    /* Filtres responsive */
    .course-filters,
    .portfolio-filters {
        gap: 0.5rem;
    }
    
    .filter-btn,
    .portfolio-filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Portfolio responsive */
    .portfolio-image {
        height: 200px;
    }
    
    .portfolio-overlay {
        padding: 1rem;
    }
    
    .portfolio-info h4 {
        font-size: 1.1rem;
    }
    
    .portfolio-results {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .result-number {
        font-size: 1.25rem;
    }
    
    /* Stats section responsive */
    .stats {
        padding: 4rem 0;
    }
    
    .stats .stat-item {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .stats .stat-number {
        font-size: 2.5rem;
    }
    
    .stats .stat-item p {
        font-size: 1rem;
        letter-spacing: 0.25px;
    }
    
    .stats .stat-item::after {
        width: 30px;
        height: 30px;
        top: -10px;
        right: -10px;
    }
}

@media (max-width: 576px) {
    .modern-nav {
        padding: 0.75rem 0;
    }
    
    .modern-logo {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    .modern-hero {
        padding: 5rem 0 2rem;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .modern-hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .modern-hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-cta-group {
        margin-bottom: 1.5rem;
    }
    
    .btn-modern-primary,
    .btn-modern-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .hero-stats .stat-item {
        flex: 0 0 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-stats .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.75rem;
    }
    
    .stats {
        padding: 3rem 0;
    }
    
    .stats .stat-item {
        padding: 1.25rem 0.75rem;
        margin-bottom: 1rem;
    }
    
    .stats .stat-number {
        font-size: 2rem;
    }
    
    .stats .stat-item p {
        font-size: 0.9rem;
        letter-spacing: 0.1px;
    }
    
    .stats .stat-item::after {
        width: 25px;
        height: 25px;
        top: -8px;
        right: -8px;
    }
    
    #services,
    #apropos,
    #cours,
    #temoignages {
        padding: 3rem 0;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .main-hero-image {
        max-width: 300px;
    }
    
    footer {
        padding: 2.5rem 0 1rem;
    }
    
    .footer-links h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .social-icons a {
        width: 40px;
        height: 40px;
    }
    
    /* Portfolio très petits écrans */
    .portfolio-filters {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .portfolio-filter-btn {
        width: 100%;
        max-width: 200px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .portfolio-image {
        height: 180px;
    }
    
    .portfolio-content {
        padding: 1rem;
    }
    
    .portfolio-actions {
        gap: 0.5rem;
    }
    
    .btn-portfolio-view,
    .btn-portfolio-link {
        width: 40px;
        height: 40px;
    }
}

/* Très petits écrans */
@media (max-width: 400px) {
    .modern-hero-title {
        font-size: 1.75rem;
    }
    
    .hero-badge span:last-child {
        display: none;
    }
    
    .hero-badge::after {
        content: "Innovation";
    }
    
    .btn-modern-primary,
    .btn-modern-secondary {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
    
    .service-card h4 {
        font-size: 1.25rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
}

/* Optimisations de performance */
.hero-background,
.floating-shapes,
.shape {
    will-change: transform;
}

.service-card,
.testimonial-card,
.card {
    will-change: transform, box-shadow;
}

/* Améliorations d'accessibilité */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-shapes,
    .animate-float {
        animation: none !important;
    }
}

/* Focus states pour l'accessibilité */
.btn-modern-primary:focus,
.btn-modern-secondary:focus,
.btn-modern-cta:focus,
.modern-theme-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.modern-nav-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: var(--radius-base);
}

/* États actifs pour les boutons */
.btn-modern-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-modern-secondary:active {
    transform: scale(0.98);
}

/* Améliorations pour les cartes de service */
.service-card:active {
    transform: translateY(-5px) scale(0.98);
}

/* Corrections finales pour l'espacement */
section {
    position: relative;
}

.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Correction pour les marges négatives */
.row {
    margin-left: 0;
    margin-right: 0;
}

/* Assurer que les images ne débordent pas */
img {
    max-width: 100%;
    height: auto;
}

/* Correction pour le menu mobile */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 0.5rem;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        padding: 0.5rem 0;
    }
}

/* Corrections pour éliminer l'espace blanc */
html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Fin du fichier styles.css */
