/* Reset et base - Réinitialise tous les styles par défaut des navigateurs */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Mode sombre */
body.dark-mode {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #e2e8f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

body.dark-mode .navbar {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-brand:hover {
    transform: scale(1.05);
}

body.dark-mode .nav-brand {
    color: #94a3b8;
}

.nav-brand i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    transition: all 0.3s ease;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 0;
}

body.dark-mode .nav-link {
    color: #e2e8f0;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
    color: #94a3b8;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #667eea;
    border-radius: 1px;
}

body.dark-mode .nav-link.active::after {
    background: #94a3b8;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.dark-mode .nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

body.dark-mode .nav-toggle span {
    background: #e2e8f0;
}

/* Menu mobile actif */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" 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.5;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: left;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    animation: fadeInUp 0.8s ease;
}

.highlight {
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: #ffd700;
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    background: #ffed4a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.1rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.robot-icon {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

.robot-icon i {
    font-size: 8rem;
    color: #ffd700;
}

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

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

/* Features Preview - CORRIGÉ AVEC ANIMATIONS AU SCROLL */
.features-preview {
    padding: 120px 0 80px;
    background: white;
    transition: background 0.3s ease;
}

body.dark-mode .features-preview {
    background: #1e293b;
}

.features-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 80px;
    color: #333;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.features-preview h2.animate {
    opacity: 1;
    transform: translateY(0);
}

body.dark-mode .features-preview h2 {
    color: #e2e8f0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.6s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(80px) scale(0.9);
}

.feature-card.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.feature-card:nth-child(1).animate {
    transition-delay: 0.1s;
}

.feature-card:nth-child(2).animate {
    transition-delay: 0.3s;
}

.feature-card:nth-child(3).animate {
    transition-delay: 0.5s;
}

body.dark-mode .feature-card {
    background: #334155;
    border-color: #475569;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

body.dark-mode .feature-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

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

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

body.dark-mode .feature-card h3 {
    color: #e2e8f0;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

body.dark-mode .feature-card p {
    color: #cbd5e1;
}

/* Stats Section - CORRIGÉ AVEC ANIMATIONS AU SCROLL */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

body.dark-mode .stats {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

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

.stat-item {
    text-align: center;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    transition: all 0.6s ease;
}

.stat-item.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.stat-item:nth-child(1).animate {
    transition-delay: 0.1s;
}

.stat-item:nth-child(2).animate {
    transition-delay: 0.2s;
}

.stat-item:nth-child(3).animate {
    transition-delay: 0.3s;
}

.stat-item:nth-child(4).animate {
    transition-delay: 0.4s;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffd700;
    counter-reset: number-counter;
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* CTA Section - CORRIGÉ AVEC ANIMATIONS AU SCROLL */
.cta {
    padding: 80px 0;
    background: white;
    text-align: center;
    transition: background 0.3s ease;
}

body.dark-mode .cta {
    background: #1e293b;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.cta h2.animate {
    opacity: 1;
    transform: translateY(0);
}

body.dark-mode .cta h2 {
    color: #e2e8f0;
}

.cta p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.2s;
}

.cta p.animate {
    opacity: 1;
    transform: translateY(0);
}

body.dark-mode .cta p {
    color: #cbd5e1;
}

.cta .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.4s;
}

.cta .btn.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 50px 0 20px;
    transition: background 0.3s ease;
}

body.dark-mode .footer {
    background: #0f172a;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 15px;
}

body.dark-mode .footer-brand {
    color: #94a3b8;
}

.footer-brand i {
    font-size: 1.8rem;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: #ffd700;
}

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

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

body.dark-mode .footer-section ul li a:hover {
    color: #94a3b8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #667eea;
    transform: translateY(-2px);
}

body.dark-mode .social-links a {
    background: #475569;
}

body.dark-mode .social-links a:hover {
    background: #94a3b8;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
}

body.dark-mode .footer-bottom {
    border-top-color: #475569;
}

/* Bouton mode sombre */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #667eea;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    background: #5a6fd8;
}

body.dark-mode .dark-mode-toggle {
    background: #fbbf24;
    color: #1e293b;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

body.dark-mode .dark-mode-toggle:hover {
    background: #f59e0b;
}

/* Notifications - CORRIGÉ POUR POSITION EN BAS À DROITE */
.notification {
    position: fixed;
    bottom: 100px;
    right: 20px;
    max-width: 350px;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 500;
    z-index: 10000;
    animation: slideInFromBottom 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.notification.success {
    background: #10b981;
    color: white;
}

.notification.error {
    background: #ef4444;
    color: white;
}

.notification.warning {
    background: #f59e0b;
    color: white;
}

.notification.info {
    background: #3b82f6;
    color: white;
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design - Adaptation pour les écrans plus petits */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-text {
        text-align: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .features-preview {
        padding: 100px 0 60px;
    }

    .features-preview h2 {
        margin-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 50px 0;
        transition: left 0.3s ease;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    body.dark-mode .nav-menu {
        background: #1e293b;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .robot-icon {
        width: 200px;
        height: 200px;
    }

    .robot-icon i {
        font-size: 4rem;
    }

    .features-preview {
        padding: 80px 0 60px;
    }

    .features-preview h2 {
        margin-bottom: 50px;
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 10px;
    }

    .feature-card {
        padding: 30px 25px;
        /* Animation spéciale mobile pour éviter les superpositions */
        margin-bottom: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .dark-mode-toggle {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        bottom: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 90px 0 50px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .features-preview,
    .stats,
    .cta {
        padding: 60px 0;
    }

    .features-preview h2,
    .cta h2 {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .feature-card,
    .stat-item,
    .features-preview h2,
    .cta h2,
    .cta p,
    .cta .btn {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Focus visible pour l'accessibilité */
:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    border-radius: 4px;
}

body.dark-mode :focus-visible {
    outline-color: #94a3b8;
}

/* Amélioration du contraste en mode sombre */
body.dark-mode {
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --bg-primary: #1e293b;
    --bg-secondary: #334155;
    --border-color: #475569;
}

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