* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #AD91FF;
    --primary-dark: #8B6EE6;
    --dark: #1D1E28;
    --darker: #151620;
    --gray: #2C2F33;
    --text: #ffffff;
    --text-muted: #a2a8bd;
    --gradient: linear-gradient(135deg, #AD91FF 0%, #6366f1 100%);
    --glass: rgba(255, 255, 255, 0.05);
    --shadow: 0 8px 32px rgba(173, 145, 255, 0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #1D1E28, #2C2F33, #584a8f, #40429f);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Glass Morphism */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(29, 30, 40, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(29, 30, 40, 0.95);
    padding: 0.5rem 2rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.nav-brand img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.nav-brand:hover img {
    transform: rotate(360deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    transition: all 0.3s ease;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-button {
    padding: 0.7rem 1.5rem;
    background: var(--gradient);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(173, 145, 255, 0.3);
}

/* Mobile Menu Button */
.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideUp 1s ease-out;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: slideUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 1s ease-out 0.4s both;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--primary);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary:hover {
    box-shadow: 0 15px 45px rgba(173, 145, 255, 0.4);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Features Section */
.features {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%231D1E28" fill-opacity="1" d="M0,64L48,80C96,96,192,128,288,128C384,128,480,96,576,112C672,128,768,192,864,197.3C960,203,1056,149,1152,138.7C1248,128,1344,160,1392,176L1440,192L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>');
    background-size: cover;
    background-repeat: no-repeat;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(29, 30, 40, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(173, 145, 255, 0.2);
    border-color: var(--primary);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.feature-card p {
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    margin-bottom: 0.5rem;
}

/* Statistics */
.stats {
    padding: 6rem 2rem;
    background: var(--dark);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 600;
}

/* CTA Section */
.cta {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    text-align: center;
    position: relative;
}

.cta-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 3rem;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Partners */
.partners {
    padding: 4rem 2rem;
    background: var(--dark);
    text-align: center;
}

.partners-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.partner-logo {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    transition: all 0.3s ease;
    filter: grayscale(100%) opacity(0.7);
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: var(--darker);
    padding: 3rem 2rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.footer p {
    color: var(--text-muted);
    margin: 0.5rem 0;
}

.footer-links {
    margin: 1rem 0;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effects */
.glow {
    position: relative;
}

.glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    border-radius: inherit;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.glow:hover::after {
    opacity: 0.1;
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 1001;
    transition: transform 0.1s ease;
}

/* ======================== */
/* RESPONSIVE DESIGN */
/* ======================== */

/* Tablettes (768px - 1024px) */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Large (481px - 768px) */
@media (max-width: 768px) {
    /* Navigation mobile */
    .navbar {
        padding: 0.8rem 1rem;
    }
    
    .nav-container {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(29, 30, 40, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0 0 20px 20px;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .nav-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Hero section mobile */
    .hero {
        min-height: 90vh;
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Sections padding */
    .features {
        padding: 4rem 1rem;
    }
    
    .stats {
        padding: 4rem 1rem;
    }
    
    .cta {
        padding: 4rem 1rem;
    }
    
    .partners {
        padding: 3rem 1rem;
    }
    
    /* Titles */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
    
    /* Stats grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
        width: 100%;
    }
    
    .stat-card {
        width: 100%;
        margin: 0 auto;
        max-width: 300px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* CTA card */
    .cta-card {
        padding: 2rem 1.5rem;
    }
    
    .cta h2 {
        font-size: 1.8rem;
    }
    
    .cta p {
        font-size: 0.95rem;
    }
    
    /* Partners */
    .partners-grid {
        gap: 2rem;
    }
    
    .partner-logo {
        width: 100px;
        height: 100px;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-links a {
        display: block;
        margin: 0.5rem 0;
    }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    /* Navigation très petits écrans */
    .navbar {
        padding: 0.7rem 0.8rem;
    }
    
    .nav-brand {
        font-size: 1.3rem;
    }
    
    .nav-brand img {
        width: 35px;
        height: 35px;
    }
    
    /* Hero très petits écrans */
    .hero {
        padding: 0.8rem;
        min-height: 85vh;
    }
    
    .hero h1 {
        font-size: 1.9rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Sections padding réduit */
    .features {
        padding: 3rem 0.8rem;
    }
    
    .stats {
        padding: 3rem 0.8rem;
    }
    
    .cta {
        padding: 3rem 0.8rem;
    }
    
    .partners {
        padding: 2.5rem 0.8rem;
    }
    
    /* Titles plus petits */
    .section-title {
        font-size: 1.6rem;
    }
    
    /* Feature cards */
    .feature-card {
        padding: 1.2rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    /* Stats */
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    /* CTA */
    .cta-card {
        padding: 1.5rem 1rem;
    }
    
    .cta h2 {
        font-size: 1.6rem;
    }
    
    /* Partners */
    .partner-logo {
        width: 80px;
        height: 80px;
    }
    
    /* Container padding */
    .container {
        padding: 0 0.8rem;
    }
}

/* Mobile Extra Small (max 320px) */
@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .cta-card {
        padding: 1.2rem 0.8rem;
    }
    
    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
}

/* Améliorations tactiles pour mobile */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .feature-card:hover,
    .stat-card:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .feature-card:active {
        transform: scale(0.98);
    }
}

/* Optimisation pour les écrans haute densité */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-brand img,
    .footer-logo,
    .partner-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}